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§
- Weight of executing 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. - Weight of executing 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.
- The aggregated runtime call type.
- 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.
- An aggregation of all
Task
enums across all pallets included in the current runtime. - 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.
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§
- Build
GenesisConfig
from a JSON blob not using any defaults and store it in the storage. For more info refer tosp_genesis_builder::GenesisBuilder::build_state
. - Get the default
GenesisConfig
as a JSON blob ifname
is None. - The version information used to identify this runtime when compiled natively.
Type Aliases§
- 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.
- All pallets included in the runtime as a nested tuple of types.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- An Aura authority identifier using S/R 25519 as its crypto.
- 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.
- 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.
- The current time for the current block.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- A Block signed with a Justification
- The payload being signed in transactions.
- The extension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.