package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Storage/index.html
Module Tezos_raw_protocol_alpha.Storage
Source
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.
Storage from this submodule must only be accessed through the module `Contract`.
module Delegates :
Storage_sigs.Data_set_storage
with type t := Raw_context.t
and type elt =
Tezos_protocol_environment_alpha.Signature.Public_key_hash.t
Set of all registered delegates.
module Consensus_keys :
Storage_sigs.Data_set_storage
with type t := Raw_context.t
and type elt =
Tezos_protocol_environment_alpha.Signature.Public_key_hash.t
Set of all active consensus keys in cycle `current + preserved_cycles + 1`
module Pending_consensus_keys :
Storage_sigs.Indexed_data_storage
with type t := Raw_context.t * Cycle_repr.t
and type key = Contract_repr.t
and type value = Tezos_protocol_environment_alpha.Signature.public_key
The pending consensus key of a delegate at the given cycle
slashed_level
with all fields being false
.
module Slashed_deposits :
Storage_sigs.Indexed_data_storage
with type t := Raw_context.t * Cycle_repr.t
and type key =
Raw_level_repr.t
* Tezos_protocol_environment_alpha.Signature.Public_key_hash.t
and type value = slashed_level
Set used to avoid slashing multiple times the same event
module Pending_staking_parameters :
Storage_sigs.Indexed_data_storage
with type t := Raw_context.t * Cycle_repr.t
and type key = Contract_repr.t
and type value = Staking_parameters_repr.t
module Delegate_sampler_state :
Storage_sigs.Indexed_data_storage
with type key = Cycle_repr.t
and type value = Raw_context.consensus_pk Sampler.t
and type t := Raw_context.t
State of the sampler used to select delegates. Managed synchronously with Stake.Selected_distribution_for_cycle
.
module Issuance_bonus :
Storage_sigs.Indexed_data_storage
with type key = Cycle_repr.t
and type value = Tezos_protocol_environment_alpha.Int64.t
and type t := Raw_context.t
Compounding reward bonus for Adaptive Issuance
module Issuance_coeff :
Storage_sigs.Indexed_data_storage
with type key = Cycle_repr.t
and type value = Tezos_protocol_environment_alpha.Q.t
and type t := Raw_context.t
Multiplicative coefficient for rewards under Adaptive Issuance (Includes the bonus)
Votes
Seed
Storage from this submodule must only be accessed through the module `Seed`.
Commitments
module Commitments :
Storage_sigs.Indexed_data_storage
with type key = Blinded_public_key_hash.t
and type value = Tez_repr.t
and type t := Raw_context.t
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
.
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