Crate substrate_test_runtime
source ·Expand description
The Substrate runtime. This can be compiled with #[no_std]
, ready for Wasm.
Re-exports§
pub use extrinsic::ExtrinsicBuilder;
pub use extrinsic::Transfer;
Modules§
- Provides utils for building the
Extrinsic
instances used withsubstrate-test-runtime
. - Tool for creating the genesis block.
- Some tests require the hashed keys of the storage. As the values of hashed keys are not trivial to guess, this small module provides the values of the keys, and the code which is required to generate the keys.
- substrate-test pallet
Structs§
- Configuration data used by the BABE consensus engine that may change with epochs.
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
- Unit type wrapper that represents a slot.
- Transfer data extracted from Extrinsic containing
Balances::transfer_allow_death
.
Enums§
- Types of allowed slots.
- 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.
Constants§
- Test runtime version.
Traits§
Functions§
- Native version.
- Wasm binary unwrapped. If built with
SKIP_WASM_BUILD
, the function panics. - Wasm binary unwrapped. If built with
SKIP_WASM_BUILD
, the function panics.
Type Aliases§
- An identifier for an account on this system.
- 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.
- Balance of an account.
- A test block.
- The block number type used in this runtime.
- The digest of a block.
- The item of a block digest.
- Unchecked extrinsic type as expected by this runtime.
- A simple hash type for all our hashing.
- The hashing algorithm used.
- A test block’s header.
- Index of a transaction.
- The payload being signed in transactions.
- The extension to the basic transaction logic.