Tezos_raw_protocol_014_PtKathmamodule Alpha_context : sig ... endAn Alpha_context.t is an immutable snapshot of the ledger state at some block height, preserving type-safety and invariants of the ledger state.
module Alpha_services : sig ... endThis declares Protocol RPC services.
module Amendment : sig ... endAmendments and proposals.
module Apply : sig ... endThis module supports advancing the ledger state by applying operations.
module Apply_internal_results : sig ... endTypes representing results of applying an internal operation.
module Apply_operation_result : sig ... endmodule Apply_results : sig ... endTypes representing results of applying an operation.
module Baking : sig ... endmodule Bitset : sig ... endmodule Blinded_public_key_hash : sig ... endThis module handles hashes of implicit contract addresses used for commitments in the origin block.
module Block_header_repr : sig ... endRepresentation of block headers.
module Block_payload_hash : sig ... endA specialized Blake2B implementation for hashing block's payloads.
module Block_payload_repr : sig ... endValue on which validators try to reach a consensus.
module Bond_id_repr : sig ... endThis module defines identifiers for frozen bonds.
module Bootstrap_storage : sig ... endThis module provides functions that can be used in a private network to delay initial rewarding, typically when waiting for more bakers to join the network.
module Cache_memory_helpers : sig ... endmodule Cache_repr : sig ... endFrequently used data should be kept in memory and persisted along a chain of blocks. The caching mechanism allows the economic protocol to declare such data and to rely on a Least Recently Used strategy to keep the cache size under a fixed limit.
module Carbonated_map : sig ... endAn in-memory data-structure for a key-value map where all operations account for gas costs.
module Carbonated_map_costs : sig ... endmodule Commitment_repr : sig ... endmodule Commitment_storage : sig ... endmodule Constants_parametric_previous_repr : sig ... endmodule Constants_parametric_repr : sig ... endmodule Constants_repr : sig ... endmodule Constants_services : sig ... endmodule Constants_storage : sig ... endThis module provides functions to extract the value of protocol parameters from the context. See Constant_repr.parametric for more details about these values.
module Contract_delegate_storage : sig ... endmodule Contract_hash : sig ... endA specialized Blake2B implementation for hashing contract identifiers.
module Contract_manager_storage : sig ... endmodule Contract_repr : sig ... endThis module defines identifiers for two basic types of contracts. It also specifies how to compute originated contract's hash from origination nonce.
module Contract_services : sig ... endThis module defines RPC services to access the information associated to contracts (balance, delegate, script, etc.).
module Contract_storage : sig ... endLow-level handlers of raw contexts for base operations on contracts.
module Cycle_repr : sig ... endThis module provides a type and functions to manipulate cycle numbers.
module Dal_apply : sig ... endThis modules handles all the validation/application/finalisation of any operation related to the DAL.
module Dal_endorsement_repr : sig ... endSlot endorsement representation for the data-availability layer.
module Dal_errors_repr : sig ... endmodule Dal_slot_repr : sig ... endSlot header representation for the data-availability layer.
module Dal_slot_storage : sig ... endStorage management of slots for the data-availability layer.
module Delegate_activation_storage : sig ... endThis module provides functions related to delegates' activity.
module Delegate_services : sig ... endThis module defines RPC services to access the information associated to delegates (who they are, their delegators, their different kinds of balances, their activity, etc.).
module Delegate_storage : sig ... endmodule Dependent_bool : sig ... endDependent booleans
module Destination_repr : sig ... endThe type of the destination argument of the Operation_repr.manager_operation.Transaction manager operation.
module Entrypoint_repr : sig ... endmodule Fees_storage : sig ... endmodule Fitness_repr : sig ... endmodule Fixed_point_repr : sig ... endThis module defines a standard signature for modules providing fixed-point arithmetic.
module Frozen_deposits_storage : sig ... endSimple abstraction from low-level storage to handle frozen deposits
module Gas_comparable_input_size : sig ... endGas_input_size includes the definitions for the different sizes used in the gas models of the protocol. They do not always represent memory sizes, but rather they can be seen as an information size. They are tailored to the models that use them, and should not be used for anything other than gas computation.
module Gas_input_size : sig ... endGas_input_size includes the definitions for the different sizes used in the gas models of the protocol. They do not always represent memory sizes, but rather they can be seen as an information size. They are tailored to the models that use them, and should not be used for anything other than gas computation.
module Gas_limit_repr : sig ... endInternal representation of the gas limit available to the node baking a new block. It should be proportional to the time and energy required to perform a computation.
module Gas_monad : sig ... endmodule Global_constants_costs : sig ... endCosts function for the global table of constants.
module Global_constants_storage : sig ... endThis module represents access to a global table of constant Micheline values. Users may register a Micheline value in the table, paying the cost of storage. Once stored, contracts source code may reference this value by its hash.
module Indexable : sig ... endIn transaction rollups, some values can be replaced by indexes in the messages sent from the layer-1 to the layer-2.
module Init_storage : sig ... endFunctions to setup storage. Used by Alpha_context.prepare.
module Lazy_storage_diff : sig ... endSee Lazy_storage_kind for an introduction on lazy storage.
module Lazy_storage_kind : sig ... endLazy_storage offers a unified interface for specific Michelson datatype that behave somewhat lazily, because they are intended to be quite big. Instead of serializing/deserializing the whole value to/from the storage, only an identifier is used. The identifier acts like a pointer. When using the value in a Michelson script, some part of it may be read from the storage, and a lightweight diff is computed. The diff is effectively applied to the storage at the end of the execution.
module Level_repr : sig ... endThis module defines the protocol representation of a level. Besides the "raw level", which is the shell's notion of the level, this representation also contains additional information, like the cycle the level belongs to.
module Level_storage : sig ... endmodule Liquidity_baking_cpmm : sig ... endmodule Liquidity_baking_lqt : sig ... endmodule Liquidity_baking_migration : sig ... endmodule Liquidity_baking_repr : sig ... endOptions available for the Liquidity Baking per-block vote
module Liquidity_baking_storage : sig ... endmodule Local_gas_counter : sig ... endThis module exposes an API for local gas counting. It provides a set of functions for updating a gas counter without applying it on an an Alpha_context.context.
module Main : sig ... endTezos Protocol Implementation - Protocol Signature Instance
module Manager_repr : sig ... endmodule Merkle_list : sig ... endmodule Michelson_v1_gas : sig ... endThis module provides the gas costs for typechecking Michelson scripts, parsing and unparsing Michelson values, and interpreting Michelson instructions.
module Michelson_v1_primitives : sig ... endmodule Migration_repr : sig ... endmodule Misc : sig ... endmodule Non_empty_string : sig ... endmodule Nonce_hash : sig ... endA specialized Blake2B implementation for hashing nonces.
module Nonce_storage : sig ... endThis module provides types and functions to manipulate nonces.
module Operation_repr : sig ... endTezos Protocol Implementation - Low level Repr. of Operations
module Origination_nonce : sig ... endmodule Parameters_repr : sig ... endThis module defines protocol parameters, i.e. constants regulating the behaviour of the blockchain under the protocol.
module Path_encoding : sig ... endmodule Period_repr : sig ... endmodule Ratio_repr : sig ... endmodule Raw_context : sig ... endState of the validation.
module Raw_context_intf : sig ... endAll context manipulation functions. This signature is included as-is for direct context accesses, and used in Storage_functors to provide restricted views to the context.
module Raw_level_repr : sig ... endmodule Receipt_repr : sig ... endmodule Round_repr : sig ... endA round represents an iteration of the single-shot consensus algorithm.
module Sampler : sig ... endEfficient sampling from given finitely supported (nonzero, positive) measures using the alias method. Measures need not be normalized on input, but sampling proceeds from the normalized probability measure associated to the given measure.
module Sapling_repr : sig ... endmodule Sapling_services : sig ... endmodule Sapling_storage : sig ... endmodule Sapling_validator : sig ... endmodule Saturation_repr : sig ... endThis module provides saturated arithmetic between 0 and 2^62 - 1.
module Sc_rollup_PVM_sem : sig ... endThis module introduces the semantics of Proof-generating Virtual Machines.
module Sc_rollup_arith : sig ... endThis module provides a temporary toy rollup to be used as a demo.
module Sc_rollup_commitment_repr : sig ... endmodule Sc_rollup_commitment_storage : sig ... endDefines storage for Smart Contract Optimistic Rollups.
module Sc_rollup_costs : sig ... endThis module contains constants and utility functions for gas metering functions used when handling SC rollups operations in context.
module Sc_rollup_data_version_sig : sig ... endThe values are versioned, to let the possibility to modify the values in future iterations of the protocol.
module Sc_rollup_errors : sig ... endmodule Sc_rollup_game_repr : sig ... endThe smart contract rollup refutation game types are defined here, as well as the basic pure logic for:
module Sc_rollup_inbox_message_repr : sig ... endmodule Sc_rollup_inbox_repr : sig ... endMerkelizing inbox for smart-contract rollups.
module Sc_rollup_inbox_storage : sig ... endmodule Sc_rollup_management_protocol : sig ... endThis module provides a typed API for the Rollup Management Protocol that defines the communication protocol for exchanging messages between Layer 1 and Layer 2 for smart-contract rollups.
module Sc_rollup_operations : sig ... endmodule Sc_rollup_outbox_message_repr : sig ... endThis module defines a data type t that represents messages from Layer 2 to Layer 1.
module Sc_rollup_proof_repr : sig ... endA refutation game proof is required as part of the final move in a game.
module Sc_rollup_refutation_storage : sig ... endmodule Sc_rollup_repr : sig ... endThe basic components of an optimistic rollup for smart-contracts.
module Sc_rollup_stake_storage : sig ... endmodule Sc_rollup_storage : sig ... endmodule Sc_rollup_tick_repr : sig ... endThis module defines Tick.t, an execution step counter for smart-contract rollups.
module Sc_rollup_wasm : sig ... endmodule Sc_rollups : sig ... endHere is the list of PVMs available in this protocol.
module Script_big_map : sig ... endmodule Script_cache : sig ... endThis module manages the cache for smart contracts.
module Script_comparable : sig ... endmodule Script_expr_hash : sig ... endA specialized Blake2B implementation for hashing Michelson expressions.
module Script_int : sig ... endmodule Script_interpreter : sig ... endThis is the Michelson interpreter.
module Script_interpreter_defs : sig ... endmodule Script_interpreter_logging : sig ... endmodule Script_ir_annot : sig ... endmodule Script_ir_translator : sig ... endmodule Script_list : sig ... endmodule Script_map : sig ... endFunctions to ease the manipulation of Michelson maps.
module Script_repr : sig ... endDefines a Michelson expression representation as a Micheline node with canonical (int) location and Michelson_v1_primitives.prim as content.
module Script_set : sig ... endFunctions to ease the manipulation of sets of values in Michelson.
module Script_string : sig ... endStrings of printable characters
module Script_tc_context : sig ... endThis module defines the typechecking context used during the translation from Michelson untyped nodes to typed nodes (Script_ir_translator). The context keeps track of the origin of the code (top-level from a contract, in a view, etc.), plus some information to allow or forbid instructions given the context (no `SELF` in a lambda for example).
module Script_tc_errors : sig ... endmodule Script_tc_errors_registration : sig ... endThis module registers all the errors from Script_tc_errors as a top-level effect.
module Script_timestamp : sig ... endDefines the internal Michelson representation for timestamps and basic operations that can be performed on it.
module Script_typed_ir : sig ... endmodule Script_typed_ir_size : sig ... endThis module provides overapproximation of memory footprint for Michelson-related values.
module Script_typed_ir_size_costs : sig ... endmodule Seed_repr : sig ... endTezos Protocol Implementation - Random number generation
module Seed_storage : sig ... endmodule Services_registration : sig ... endFunctions for RPC service registration, using Updater.rpc_context and RPC_service.t from the Protocol Environment.
module Skip_list_repr : sig ... endThis module provides an implementation of the skip list data structure.
module Slot_repr : sig ... endSlot index representation
module Stake_storage : sig ... endThis library provides basic operations (accessors and setters) on staking tokens.
module State_hash : sig ... endA specialized Blake2B implementation for hashing internal states of random number generators.
module Storage : sig ... endTezos Protocol Implementation - Typed storage
module Storage_costs : sig ... endmodule Storage_description : sig ... endThis module is responsible for building the description of the current state of the storage, which is then used to build specification of the RPC endpoints for accessing the storage. It produces resto RPC_directory.t values, which can be used directly to construct the RPC endpoint tree.
module Storage_functors : sig ... endTezos Protocol Implementation - Typed storage builders.
module Storage_sigs : sig ... endmodule Tez_repr : sig ... endmodule Ticket_accounting : sig ... endmodule Ticket_balance_key : sig ... endThis module exposes a function for generating a ticket-balance key-hash given an owner and a ticket-token. The key-hash is used for populating the global ticket-balance table that tracks ownership of tickets for different tokens.
module Ticket_costs : sig ... endThis module contains constants and utility functions for gas metering functions used for extracting and handling tickets for the global ticket balance table.
module Ticket_hash_builder : sig ... endmodule Ticket_hash_repr : sig ... endTicket hashes are used to uniquely identify pairs made of Michelson ticktes and their owner.
module Ticket_lazy_storage_diff : sig ... endmodule Ticket_operations_diff : sig ... endA module that provides functionality for extracting ticket-token differences from a list of operations.
module Ticket_scanner : sig ... endThis module provides an API for extracting tickets of arbitrary types from an OCaml values, given a type-witness.
module Ticket_storage : sig ... endmodule Ticket_token : sig ... endA module for handling ticket-tokens. A ticket-token represents the combination of a ticketer (creator of a ticket) and the content. That is, a ticket comprises a ticket-token and an amount.
module Ticket_token_map : sig ... endA module exposing a carbonated map where keys are Ticket_token.ex_token values.
module Time_repr : sig ... endmodule Token : sig ... endThe aim of this module is to manage operations involving tokens such as minting, transferring, and burning. Every constructor of the types source, container, or sink represents a kind of account that holds a given (or possibly infinite) amount of tokens.
module Tx_rollup_commitment_repr : sig ... endmodule Tx_rollup_commitment_storage : sig ... endThis module introduces various functions to manipulate the storage related to commitments for transaction rollups.
module Tx_rollup_errors_repr : sig ... endmodule Tx_rollup_gas : sig ... endmodule Tx_rollup_hash_builder : sig ... endmodule Tx_rollup_inbox_repr : sig ... endmodule Tx_rollup_inbox_storage : sig ... endFunctions to manipulate transaction rollup’s inboxes.
module Tx_rollup_l2_address : sig ... endThis module introduces the types used to identify ticket holders within a transaction rollup.
module Tx_rollup_l2_apply : sig ... endThis module introduces the interpretation (off-chain) of layer2 operations read from its inboxes.
module Tx_rollup_l2_batch : sig ... endThis module introduces the batches of transactions that the layer-2 (1) reads from its inboxes (see Tx_rollup_message_repr.t.Batch), and (2) interprets off-chain.
module Tx_rollup_l2_context : sig ... endmodule Tx_rollup_l2_context_hash : sig ... endA specialized Blake2B implementation for hashing tx_rollup contexts.
module Tx_rollup_l2_context_sig : sig ... endmodule Tx_rollup_l2_proof : sig ... endmodule Tx_rollup_l2_qty : sig ... endThis module is an abstraction on top of int64 to build positive (or zero) quantities within the int64 bounds. It comes with a compact encoding to be used in the transaction rollup batches.
module Tx_rollup_l2_storage_sig : sig ... endmodule Tx_rollup_l2_verifier : sig ... endmodule Tx_rollup_level_repr : sig ... endmodule Tx_rollup_message_hash_repr : sig ... endThe Blake2B hash of a message.
module Tx_rollup_message_repr : sig ... endCommunication from the layer-1 (Tezos) to the layer-2 (a transaction rollup) happens thanks to messages, crafted in the layer-1 to be interpreted in the layer-2.
module Tx_rollup_message_result_hash_repr : sig ... endThe hash of the result of a layer-2 operation: that is, the hash of (l2_ctxt_hash ^ withdraw_hash) where l2_ctxt_hash is the Merkle tree root of the L2 context after any message (ie. deposit or batch), and withdraw_hash is a Tx_rollup_withdraw_repr.withdraw_list_hash
module Tx_rollup_message_result_repr : sig ... endmodule Tx_rollup_parameters : sig ... endA module for representing and extracting typed transactional rollup parameters.
module Tx_rollup_prefixes : sig ... endmodule Tx_rollup_repr : sig ... endThis module defines identifiers for transaction only rollup (or tx rollup). It also specifies how to compute originated tx rollup's hash from origination nonce.
module Tx_rollup_reveal_repr : sig ... endmodule Tx_rollup_reveal_storage : sig ... endmodule Tx_rollup_services : sig ... endmodule Tx_rollup_state_repr : sig ... endmodule Tx_rollup_state_storage : sig ... endA collection of functions to manipulate the state of a transaction rollup.
module Tx_rollup_storage : sig ... endmodule Tx_rollup_ticket : sig ... endThis module provides various helpers to manipulate tickets, that are used by the Transaction Rollups.
module Tx_rollup_withdraw_list_hash_repr : sig ... endmodule Tx_rollup_withdraw_repr : sig ... endmodule Validate_operation : sig ... endThe purpose of this module is to provide the validate_operation function, that decides quickly whether an operation may safely be included in a block. See the function's description for further information.
module Vote_repr : sig ... endmodule Vote_storage : sig ... endManages all the voting related storage in Storage.Vote.
module Voting_period_repr : sig ... endmodule Voting_period_storage : sig ... endmodule Voting_services : sig ... endThis module provides RPC services that return voting-related information.