Crate cumulus_test_runtime
source ·Modules
Macros
- Construct a runtime, with the given name and the given pallets.
- Create new implementations of the
Get
trait.
Structs
- Time to execute an empty block. Calculated by multiplying the Average with
1.0
and adding0
. - Const getter for a basic type.
- Implementor of [
WeightToFee
] that uses a constant multiplier. - Time to execute a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - Implementor of
WeightToFee
that maps one unit of weight to one unit of fee. - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - A fixed point representation of a number in the range [0, 1].
- A fixed point representation of a number in the range [0, 1].
- By default, Substrate uses RocksDB, so this will be the weight used throughout the runtime.
- Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
Enums
- Contains a variant per dispatchable extrinsic that this pallet has.
- A generalized group of dispatch types.
- Contains a variant per dispatchable extrinsic that this pallet has.
- A reason for placing a freeze on funds.
- A reason for placing a hold on funds.
- An identifier for each lock placed on funds.
- A reason for slashing funds.
- Contains a variant per dispatchable extrinsic that this pallet has.
- A special pallet that exposes dispatchables that are only useful for testing. Contains a variant per dispatchable extrinsic that this pallet has.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants
- The para-id used in this runtime.
- Some key that we set in genesis and only read in
TestOnRuntimeUpgrade
to ensure that [OnRuntimeUpgrade
] works as expected.
Traits
- Complex storage builder stuff.
- A trait that is able to provide randomness.
- A trait for working with macro-generated storage values under the substrate storage API.
Functions
- The version information used to identify this runtime when compiled natively.
Type Definitions
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- The address format for describing accounts.
- AllPalletsDeprecatedAll pallets included in the runtime as a nested tuple of types.
- AllPalletsReversedWithSystemFirstDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. With the system pallet first.
- All pallets included in the runtime as a nested tuple of types.
- AllPalletsWithSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AllPalletsWithoutSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. Excludes the System pallet.
- Balance of an account.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- An index to a block.
- Executive: handles dispatch to the various modules.
- GenesisConfigDeprecated
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- Opaque block type.
- Index of a transaction in the chain.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- A Block signed with a Justification
- The SignedExtension to the basic transaction logic.
- The payload being signed in transactions.
- Unchecked extrinsic type as expected by this runtime.