Expand description
Pallet Domains
Re-exports§
pub use crate::weights::WeightInfo;
pub use staking::OperatorConfig;
Modules§
- block_
tree - Domain block tree
- bundle_
storage_ fund - Bundle storage fund
- dispatchables
- Auto-generated docs-only module listing all defined dispatchables for this pallet.
- domain_
registry - Domain registry for domains
- extensions
- Extensions for unsigned general extrinsics
- runtime_
registry - Runtime registry for domains
- staking
- Staking for domains
- storage_
types - Auto-generated docs-only module listing all (public and private) defined storage types for this pallet.
- weights
- Autogenerated weights for pallet_domains
Structs§
- Ensure
Domain Origin - Ensure the domain origin.
- Genesis
Config - Can be used to configure the genesis state of this pallet.
- Pallet
- The
Pallet
struct, the main type that implements traits and standalone functions within the pallet. - StartingEVM
Chain Id - Starting EVM chain ID for evm runtimes.
- TxRange
State - Per-domain state for tx range calculation.
Enums§
- Bundle
Error - Call
- Contains a variant per dispatchable extrinsic that this pallet has.
- Error
- The
Error
enum of this pallet. - Event
- The
Event
enum of this pallet - Fraud
Proof Error - RawOrigin
- Custom origin for validated unsigned extrinsics.
- Slashed
Reason - Reason for slashing an operator
Constants§
- MAX_
NOMINATORS_ TO_ SLASH - Maximum number of nominators to slash within a give operator at a time.
Traits§
- Block
Slot - Config
- Configuration trait of this pallet.
- Hold
Identifier
Functions§
- calculate_
tx_ range - Calculates the new tx range based on the bundles produced during the interval.
Type Aliases§
- Block
Inherent Extrinsic Data - Combined fraud proof data for the InvalidInherentExtrinsic fraud proof
- Block
Tree Node For - Consensus
Block Hash - Map of consensus block hashes.
- Domain
Block Number For - Domain
Chain Rewards - Storage for chain rewards specific to each domain. These rewards to equally distributed to active operators during epoch migration.
- Domain
Genesis Block Execution Receipt - Storage to hold all the domain’s genesis execution receipt.
- Domain
Hashing For - Domain
Runtime Upgrades - Temporary storage to keep track of domain runtime upgrades which happened in the parent block. Cleared in the current block’s initialization.
- Domain
Sudo Calls - Temporary storage to hold the sudo calls meant for domains.
- EvmDomain
Contract Creation Allowed ByCalls - Temporary storage to hold the “set contract creation allowed by” calls meant for EVM Domains.
- Execution
Inbox - A set of
BundleDigest
from all bundles that successfully submitted to the consensus block, these bundles will be used to construct the domain block andExecutionInbox
is used to: - Execution
Receipt Of - Execution
Receipt RefOf - Fraud
Proof For - Frozen
Domains - Storage that hold a list of all frozen domains.
- Invalid
Bundle Authors - Storage for operators who are marked as invalid bundle authors in the current epoch. Will be cleared once epoch is transitioned.
- Latest
Confirmed Domain Execution Receipt - Storage to hold all the domain’s latest confirmed block.
- Module
Deprecated - Type alias to
Pallet
, to be used byconstruct_runtime
. - Opaque
Bundle Of - Operator
Epoch Share Price - Share price for the operator pool at the end of Domain epoch.
- Origin
- Previous
Bundle AndExecution Receipt Versions - Storage that hold a previous versions of Bundle and Execution Receipt. Unfortunately, it adds a new item for every runtime upgrade if the versions change between runtime upgrades. If the versions does not change, then same version is set with higher block number. Pruning this storage is not quiet straight forward since each domain may submit an ER with a gap as well and also introduces the loop to find the correct block number.
- Receipt
Hash For - Runtime
Registry - Storage type is [
StorageMap
] with key typeRuntimeId
and value typeRuntimeObject < BlockNumberFor < T > , T :: Hash >
. - Singleton
Receipt Of - Successful
Bundles - Bundles submitted successfully in current block.