Expand description
Common primitives for subspace domain runtime.
Modules§
- opaque
- Opaque types.
Structs§
- Account
Id20 - A fully Ethereum-compatible
AccountId
. Conforms to H160 address and ECDSA key standards. Alternative to H256->H160 mapping. - Account
Id20 Converter - An AccountId20 to MultiAccount converter.
- Account
IdConverter - An AccountId32 to MultiAccount converter.
- Check
Extrinsics Validity Error - Decode
Extrinsic Error - EVMSignature
- Target
Block Fullness - The portion of the
NORMAL_DISPATCH_RATIO
that we adjust the fees with. Blocks filled less than this will decrease the weight and more will increase.
Enums§
- Hold
Identifier - Multi
Account Id - MultiAccountId used by all the domains to describe their account type.
Constants§
- CHECK_
EXTRINSICS_ AND_ DO_ PRE_ DISPATCH_ METHOD_ NAME - Fully qualified method name of check_extrinsics_and_do_pre_dispatch runtime api. Used to call state machine. Change it when the runtime api’s name is changed in the interface.
- DEFAULT_
EXTENSION_ VERSION - Default version of the Extension used to construct the inherited implication for legacy transactions.
- ERR_
BALANCE_ OVERFLOW - Custom error when balance overflow occurs.
- ERR_
CONTRACT_ CREATION_ NOT_ ALLOWED - Custom error when a user tries to create a contract, but their account is not on the allow list.
- ERR_
NONCE_ OVERFLOW - Custom error when nonce overflow occurs.
- EXISTENTIAL_
DEPOSIT - Computed as ED = Account data size * Price per byte, where Price per byte = Min Number of validators * Storage duration (years) * Storage cost per year Account data size (80 bytes) Min Number of redundant validators (10) - For a stable and redundant blockchain we need at least a certain number of full nodes/collators. Storage duration (1 year) - It is theoretically unlimited, accounts will stay around while the chain is alive. Storage cost per year of (12 * 1e-9 * 0.1 ) - SSD storage on cloud hosting costs about 0.1 USD per Gb per month
- MAX_
OUTGOING_ MESSAGES - NORMAL_
DISPATCH_ RATIO - Dispatch ratio for domains
- SLOT_
DURATION - Slot duration that is same as consensus chain runtime.
Traits§
- Signer
- Extracts the signer from an unchecked extrinsic.
- TryConvert
Back - Extensible conversion trait. Generic over both source and destination types.
Functions§
- block_
weights - maximum_
block_ length - Maximum block length for all dispatches. This is set to 3.75 MiB since consensus chain supports on 3.75 MiB for normal
- maximum_
domain_ block_ weight - The maximum domain block weight with 3.25 MiB as proof size Consensus allows 3.75 MiB but Fraud proof can carry extra size along with proof size So we set the proof size to 3.25 MiB
Type Aliases§
- Account
Id - Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- Address
- The address format for describing accounts.
- Balance
- Balance of an account.
- Block
Number - An index to a block.
- EVMChain
Id - The EVM chain Id type
- Ethereum
Account Id - Some way of identifying an account on the EVM chain. We intentionally make it equivalent to the public key of the EVM transaction signing scheme.
- Ethereum
Signature - Alias to 512-bit hash when used in the context of a transaction signature on the EVM chain.
- Hash
- A hash of some data used by the chain.
- Nonce
- Index of a transaction in the chain.
- Signature
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.