package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Ticket_costs/index.html

Module Tezos_raw_protocol_alpha.Ticket_costsSource

This module contains constants and utility functions for gas metering functions used for extracting and handling tickets for the global ticket balance table.

Sourcemodule Constants : sig ... end

consume_gas_steps ctxt ~num_steps consumes gas corresponding to a given num_steps and step_cost. It's useful for paying for gas upfront where the number of steps can be determined.

This function is generic and should probably be moved. See issue https://gitlab.com/tezos/tezos/-/issues/1950.

has_tickets_of_ty_cost ty returns the cost of producing a has_tickets, used internally in the Ticket_scanner module.

negate_cost z returns the cost of negating the given value z.

add_int_cost n1 n2 returns the cost of adding the values n1 and n2.

add_z_cost z1 z2 returns the cost of adding the values z1 and z2.

OCaml

Innovation. Community. Security.