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§
- api
- currency
- extrinsic
- Provides utils for building the
Extrinsic
instances used withsubstrate-test-runtime
. - genesismap
- Tool for creating the genesis block.
- storage_
key_ generator - 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 - substrate-test pallet
- wasm_
binary_ logging_ disabled
Structs§
- Babe
Epoch Configuration - Configuration data used by the BABE consensus engine that may change with epochs.
- Block
Hash Count - Check
Substrate Call - Epoch
Duration - Existential
Deposit - H256
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- MaxLocks
- MaxReserves
- Pallet
Info - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - Runtime
- Runtime
Api - Runtime
ApiImpl - Implements all runtime apis for the client side.
- Runtime
Block Length - Runtime
Block Weights - Runtime
Genesis Config - Runtime
Origin - The runtime origin type representing the origin of a call.
- Session
Keys - Slot
- Unit type wrapper that represents a slot.
- Transfer
Data - Transfer data extracted from Extrinsic containing
Balances::transfer_allow_death
. - Version
Enums§
- Allowed
Slots - Types of allowed slots.
- Balances
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Origin
Caller - Runtime
Call - The aggregated runtime call type.
- Runtime
Error - Runtime
Event - Runtime
Freeze Reason - A reason for placing a freeze on funds.
- Runtime
Hold Reason - A reason for placing a hold on funds.
- Runtime
Lock Id - An identifier for each lock placed on funds.
- Runtime
Slash Reason - A reason for slashing funds.
- Runtime
Task - An aggregation of all
Task
enums across all pallets included in the current runtime. - Runtime
View Function - Runtime query type.
- Utility
Call - Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- RUNTIME_
API_ VERSIONS - TEST_
RUNTIME_ BABE_ EPOCH_ CONFIGURATION - VERSION
- Test runtime version.
- WASM_
BINARY - WASM_
BINARY_ BLOATY - WASM_
BINARY_ PATH
Traits§
Functions§
- native_
version - Native version.
- wasm_
binary_ logging_ disabled_ unwrap - Wasm binary unwrapped. If built with
SKIP_WASM_BUILD
, the function panics. - wasm_
binary_ unwrap - Wasm binary unwrapped. If built with
SKIP_WASM_BUILD
, the function panics.
Type Aliases§
- Account
Id - An identifier for an account on this system.
- Address
- The address format for describing accounts.
- AllPallets
With System - All pallets included in the runtime as a nested tuple of types.
- AllPallets
Without System - All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AuraId
- Babe
- Babe
Config - Balance
- Balance of an account.
- Balances
- Balances
Config - Block
- A test block.
- Block
Number - The block number type used in this runtime.
- Bls381
Pop - Bls381
Public - Digest
- The digest of a block.
- Digest
Item - The item of a block digest.
- Ecdsa
Bls381 Pop - Ecdsa
Bls381 Public - Ecdsa
Pop - Ed25519
Pop - Executive
- Extrinsic
- Unchecked extrinsic type as expected by this runtime.
- Hash
- A simple hash type for all our hashing.
- Hashing
- The hashing algorithm used.
- Header
- A test block’s header.
- Nonce
- Index of a transaction.
- Pair
- Signature
- Signed
Payload - The payload being signed in transactions.
- Sr25519
Pop - Substrate
Test - Substrate
Test Config - System
- System
Config - TxExtension
- The extension to the basic transaction logic.
- Utility