Module pallet_domains::storage_types

source ·
Expand description

Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.

§Warning: Doc-Only

Members of this module cannot be used directly and are only provided for documentation purposes.

To see the actual storage type, find a struct with the same name at the root of the pallet, in the list of Type Definitions.

Structs§

  • Accumulate treasury funds temporarily until the funds are above Existential despoit. We do this to ensure minting small amounts into treasury would not fail.
  • The domain block tree, map (domain_id, domain_block_number) to the hash of ER, which can be used get the block tree node in BlockTreeNodes
  • Mapping of block tree node hash to the node, each node represent a domain block
  • The consensus block hash used to verify ER, only store the consensus block hash for a domain if that consensus block contains bundle of the domain, the hash will be pruned when the ER that point to the consensus block is pruned.
  • List of all deposits for given Operator.
  • The domain registry
  • Storage used to keep track of which consensus block the domain runtime upgrade happen.
  • Temporary storage keep track of domain runtime upgrade happen in the current block, cleared in the next block initialization.
  • Warning: Doc-Only
  • Temporary storage to hold the sudo calls meant for the Domains. Storage is cleared when there are any successful bundles in the next block. Only one sudo call is allowed per domain per consensus block.
  • Warning: Doc-Only
  • A set of BundleDigest from all bundles that successfully submitted to the consensus block, these bundles will be used to construct the domain block and ExecutionInbox is used to:
  • Storage that hold a list of all frozen domains. A frozen domain does not accept the bundles but does accept a fraud proof.
  • The block number of the best domain block, increase by one when the first bundle of the domain is successfully submitted to current consensus block, which mean a new domain block with this block number will be produce. Used as a pointer in ExecutionInbox to identify the current under building domain block, also used as a mapping of consensus block number to domain block number.
  • The head receipt number of each domain
  • A mapping of bundle_header_hash -> bundle_author for all the successfully submitted bundles of the last BlockTreePruningDepth domain blocks. Used to verify the invalid bundle fraud proof and slash malicious operator who have submitted invalid bundle.
  • A temporary storage to hold any previous epoch details for a given domain if the epoch transitioned in this block so that all the submitted bundles within this block are verified. TODO: The storage is cleared on block finalization that means this storage is already cleared when verifying the submit_bundle extrinsic and not used at all
  • Storage to hold all the domain’s latest confirmed block.
  • The latest ER submitted by the operator for a given domain. It is used to determine if the operator has submitted bad ER and is pending to slash.
  • The hash of the new head receipt added in the current consensus block
  • Stores the next domain id.
  • Stores the next evm chain id.
  • Warning: Doc-Only
  • Stores the next runtime id.
  • Tracks the nominator count under given operator. This storage is necessary since CountedStorageNMap does not support prefix key count, so cannot use that storage type for Nominators storage. Note: The count is incremented for new nominators and decremented when the nominator withdraws all the stake. Since Operator themselves are first nominator, they are not counted.
  • The set of slot of the bundle submitted by an operator in the current block, cleared at the next block initialization
  • Share price for the operator pool at the end of Domain epoch.
  • The highest slot of the bundle submitted by an operator
  • Warning: Doc-Only
  • Indexes operator signing key against OperatorId.
  • List of all registered operators and their configuration.
  • A list operators who were slashed during the current epoch associated with the domain. When the epoch for a given domain is complete, operator total stake is moved to treasury and then deleted.
  • The pending staking operation count of the current epoch, it should not larger than MaxPendingStakingOperation and will be resetted to 0 upon epoch transition.
  • Storage for PermissionedActions for domain instantiation and other permissioned calls.
  • Warning: Doc-Only
  • Warning: Doc-Only
  • Bundles submitted successfully in current block.
  • List of all withdrawals for a given operator.