package tezos-protocol-014-PtKathma

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Ticket_costs/index.html

Module Tezos_raw_protocol_014_PtKathma.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.