Expand description
Pallet Domains
Modules§
- block_
tree - Domain block tree
- 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
- migrations
- Migration module for pallet-domains
- runtime_
registry - Runtime registry 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.
- Operator
Config - 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§
- Allowed
Default Share Price Epoch - TODO: remove after all “missing-share-price” withdrawal is unlocked on Taurus Storage that hold a domain epoch, for epoch that happen before it, the share price may be missing due to https://github.com/autonomys/subspace/issues/3459, in this case, we use the current share price as the default.
- 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
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 - Fraud
Proof For - Frozen
Domains - Storage that hold a list of all frozen domains.
- 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
- Receipt
Hash For - Runtime
Registry - Storage type is [
StorageMap
] with key typeRuntimeId
and value typeRuntimeObject < BlockNumberFor < T > , T :: Hash >
. - Singleton
Receipt Of - Skip
Balance Checks - TODO: remove once https://github.com/autonomys/subspace/issues/3466 is resolved Storage that hold a list of all domains for which balance checks are ignored.
- Successful
Bundles - Bundles submitted successfully in current block.