package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Tezos Protocol Implementation - Typed storage

This module hides the hierarchical (key x value) database under pre-allocated typed accessors for all persistent entities of the tezos context.

This interface enforces no invariant on the contents of the database. Its goal is to centralize all accessors in order to have a complete view over the database contents and avoid key collisions.

module type Simple_single_data_storage = sig ... end
module Roll_legacy : sig ... end

Storage from this submodule must only be accessed through the module `Roll_legacy`.

type deposits = {
  1. initial_amount : Tez_repr.t;
  2. current_amount : Tez_repr.t;
}
type missed_endorsements_info = {
  1. remaining_slots : int;
  2. missed_levels : int;
}
module Contract : sig ... end

Storage from this submodule must only be accessed through the module `Contract`.

module Big_map : sig ... end
module Sapling : sig ... end

Set of all registered delegates.

type slashed_level = {
  1. for_double_endorsing : bool;
  2. for_double_baking : bool;
}

Set used to avoid slashing multiple times the same event

module Stake : sig ... end

Sum of the active stakes of all the delegates with rolls

State of the sampler used to select delegates. Managed synchronously with Stake.Selected_distribution_for_cycle.

Set of all the delegates with frozen rewards/deposits/fees for a given cycle. Deprecated: This is now only used for stitching while migrating from an emmy protocol. This is to be removed in the next version.

Votes

module Vote : sig ... end
module type FOR_CYCLE = sig ... end

Seed

module Seed : sig ... end

Storage from this submodule must only be accessed through the module `Seed`.

Commitments

module Ramp_up : sig ... end

Ramp up rewards

module Pending_migration : sig ... end
module Liquidity_baking : sig ... end
module Global_constants : sig ... end

A map of Script_repr.expr values, indexed by their hash (Script_expr_hash.t). Values from this map can be incorporated by any contract via the primitive Michelson_v1_primitives.H_constant.

module Ticket_balance : sig ... end

This module exposes a balance table for tracking ticket ownership. The table is a mapping from keys to values where the keys consist of a hashed representation of:

Tenderbake

module Tenderbake : sig ... end
module Tx_rollup : sig ... end

Storage from this submodule must only be accessed through the module `Tx_rollup_storage`.

OCaml

Innovation. Community. Security.