Expand description
Primitives for domains pallet.
Modules§
Structs§
- Auto
IdDomain Runtime Config - AutoId-specific domain runtime config.
- Block
Fees - Bundle
- Domain bundle.
- Bundle
Digest - A digest of the bundle
- Bundle
Header - Domain
Allowlist Updates - Domain chains allowlist updates.
- Domain
Bundle Limit - Domain
Id - Unique identifier of a domain.
- Domain
Instance Data DomainInstanceData
is used to construct the genesis storage of domain instance chain- Domain
Sudo Call - Domain Sudo runtime call.
- EvmDomain
Contract Creation Allowed ByCall - EVM Domain “update contract creation allowed by” runtime call.
- EvmDomain
Runtime Config - EVM-specific domain runtime config.
- Execution
Receipt - Receipt of a domain block execution.
- Genesis
Domain - Inboxed
Bundle InboxedBundle
represents a bundle that was successfully submitted to the consensus chain- Operator
Key - A type that implements
BoundToRuntimeAppPublic
, used for operator signing key. - Proof
OfElection - Runtime
Object - Sealed
Bundle Header - Header of bundle.
- Sealed
Singleton Receipt - Singleton
Receipt - Singleton receipt submit along when there is a gap between
domain_best_number
andHeadReceiptNumber
- Transfers
- Type that holds the transfers(in/out) for a given chain.
Enums§
- Bundle
Validity - ChainId
- Identifier of a chain.
- Domain
Digest Item - Domains specific digest item.
- Domain
Runtime Config - Configurations for specific domain runtime kinds.
- EvmType
- EVM-specific domain type (and associated data).
- Extrinsic
Digest - Represents the extrinsic either as full data or hash of the data.
- Invalid
Bundle Type - Bundle invalidity type
- Invalid
Receipt - Receipt invalidity type.
- Operator
Allow List - Type that represents an operator allow list for Domains.
- Operator
Reward Source - Permissioned
Action Allowed By - Permissioned actions allowed by either specific accounts or anyone.
- Receipt
Validity - Runtime
Type - Types of runtime pallet domains currently supports
Constants§
- DOMAIN_
EXTRINSICS_ SHUFFLING_ SEED_ SUBJECT - Extrinsics shuffling seed
- DOMAIN_
STORAGE_ FEE_ MULTIPLIER - EMPTY_
EXTRINSIC_ ROOT - Empty extrinsics root.
- INITIAL_
DOMAIN_ TX_ RANGE - Initial tx range = U256::MAX / INITIAL_DOMAIN_TX_RANGE.
- KEY_
TYPE - Key type for Operator.
Traits§
- Bundle
Producer Election Api - Domain
Bundle Submitted - Post hook to know if the domain had bundle submitted in the previous block.
- Domain
Owner - Trait to check domain owner.
- Domains
Api - APIs used to access the domains pallet.
- Domains
Digest Item - Domains specific digest items.
- Domains
Transfers Tracker - Trait that tracks the balances on Domains.
- OnChain
Rewards - Hook to handle chain rewards.
- OnDomain
Instantiated - A hook to call after a domain is instantiated
Functions§
- calculate_
max_ bundle_ weight_ and_ size - Calculates the max bundle weight and size
- derive_
domain_ block_ hash - domain_
account_ storage_ key - Account info on frame_system on Domains
- domain_
total_ issuance_ storage_ key - Total issuance storage key for Domains.
- dummy_
opaque_ bundle - self_
domain_ id_ storage_ key - The storage key of the
SelfDomainId
storage item inpallet-domain-id
- signer_
in_ tx_ range - Checks if the signer Id hash is within the tx range
- system_
digest_ final_ key - Digest storage key in frame_system. Unfortunately, the digest storage is private and not possible to derive the key from it directly.
Type Aliases§
- Channel
Id - Channel identity.
- Epoch
Index - Type representing domain epoch.
- Execution
Receipt For - Extrinsics
Root - The Trie root of all extrinsics included in a bundle.
- Header
Hash For - Type alias for Header hash.
- Header
Hashing For - Type alias for Header Hashing.
- Header
Number For - Type alias for Header number.
- Opaque
Bundle - Bundle with opaque extrinsics.
- Opaque
Bundles - List of
OpaqueBundle
. - Operator
Id - Type representing operator ID
- Operator
Pair - An operator authority keypair. Necessarily equivalent to the schnorrkel public key used in the main executor module. If that ever changes, then this must, too.
- Operator
Public Key - An operator authority identifier.
- Operator
Signature - An operator authority signature.
- Runtime
Id - Type representing the runtime ID.
- Stake
Weight - Stake weight in the domain bundle election.