Crate frontier_template_runtime
source ·Expand description
The Substrate Node Template runtime. This can be compiled with #[no_std]
, ready for Wasm.
Modules§
- Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core data structures.
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs§
- 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.
Enums§
- 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.
- An aggregation of all
Task
enums across all pallets included in the current runtime. - Contains a variant per dispatchable extrinsic that this pallet has.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- We allow for 2000ms of compute with a 6 second average block time.
Functions§
- 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 type for looking up accounts. We don’t expect more than 4 billion of them, but you never know…
- 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.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- Type of block number.
- Extrinsic type that has already been checked.
- Digest item type.
- Executive: handles dispatch to the various modules.
- A hash of some data used by the chain.
- The hashing algorithm used by the chain.
- Block header type as expected by this runtime.
- 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.