Crate sp_domains

Source
Expand description

Primitives for domains pallet.

Modules§

bundle
bundle_producer_election
core_api
execution_receipt
extrinsics
merkle_tree
proof_provider_and_verifier
storage
valued_trie

Structs§

AutoIdDomainRuntimeConfig
AutoId-specific domain runtime config.
BundleAndExecutionReceiptVersion
Bundle and Execution Versions.
DomainAllowlistUpdates
Domain chains allowlist updates.
DomainBundleLimit
DomainId
Unique identifier of a domain.
DomainInstanceData
DomainInstanceData is used to construct the genesis storage of domain instance chain
DomainSudoCall
Domain Sudo runtime call.
EvmDomainContractCreationAllowedByCall
EVM Domain “update contract creation allowed by” runtime call.
EvmDomainRuntimeConfig
EVM-specific domain runtime config.
GenesisDomain
NominatorPosition
Complete nominator position information for a specific operator
OperatorKey
A type that implements BoundToRuntimeAppPublic, used for operator signing key.
PendingDeposit
Represents a nominator’s pending deposit that hasn’t been converted to shares yet
PendingWithdrawal
Represents a nominator’s pending withdrawal with unlock timing
ProofOfElection
RuntimeObject
StorageFeeDeposit
Represents a nominator’s storage fee deposit information

Enums§

ChainId
Identifier of a chain.
DomainDigestItem
Domains specific digest item.
DomainRuntimeConfig
Configurations for specific domain runtime kinds.
EvmType
EVM-specific domain type (and associated data).
ExtrinsicDigest
Represents the extrinsic either as full data or hash of the data.
InvalidReceipt
Receipt invalidity type.
OperatorAllowList
Type that represents an operator allow list for Domains.
OperatorRewardSource
PermissionedActionAllowedBy
Permissioned actions allowed by either specific accounts or anyone.
ReceiptValidity
RuntimeType
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§

BundleProducerElectionApi
DomainBundleSubmitted
Post hook to know if the domain had bundle submitted in the previous block.
DomainOwner
Trait to check domain owner.
DomainsApi
APIs used to access the domains pallet.
DomainsDigestItem
Domains specific digest items.
DomainsTransfersTracker
Trait that tracks the balances on Domains.
OnChainRewards
Hook to handle chain rewards.
OnDomainInstantiated
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.
self_domain_id_storage_key
The storage key of the SelfDomainId storage item in pallet-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§

ChannelId
Channel identity.
EpochIndex
Type representing domain epoch.
ExtrinsicsRoot
The Trie root of all extrinsics included in a bundle.
HeaderHashFor
Type alias for Header hash.
HeaderHashingFor
Type alias for Header Hashing.
HeaderNumberFor
Type alias for Header number.
OperatorId
Type representing operator ID
OperatorPair
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.
OperatorPublicKey
An operator authority identifier.
OperatorSignature
An operator authority signature.
RuntimeId
Type representing the runtime ID.
StakeWeight
Stake weight in the domain bundle election.