Crate hashed_runtime
source ·Re-exports
pub use pallet_template;
Modules
- The hooks we want to run in Maintenance Mode 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.
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
. - We allow for 2 seconds of compute with a 6 second average block time.
- Const getter for a basic type.
- Const getter for a basic type.
- Const getter for a basic type.
- Const getter for a basic type.
- Implementor of [
WeightToFee
] that uses a constant multiplier. - “OR gate” implementation of
EnsureOrigin
allowing for differentSuccess
types forL
andR
, with them combined using anEither
type. - 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. - A pallet identifier. These are per pallet and should be stored in a registry somewhere.
- 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.
- Metadata about storage from the runtime.
Enums
- Contains one variant per dispatchable that can be called by an extrinsic.
- Contains one variant per dispatchable that can be called by an extrinsic.
- Contains one variant per dispatchable that can be called by an extrinsic.
Constants
- This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by
SLOT_DURATION
.SLOT_DURATION
is picked up bypallet_timestamp
which is in turn picked up bypallet_aura
to implementfn slot_duration()
.
Traits
- Complex storage builder stuff.
- Something which can compute and check proofs of a historical key owner and return full identification data of that key owner.
- 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.
- 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.
- Index of a transaction in the chain.
- All migrations that will run on the next runtime upgrade.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- The SignedExtension to the basic transaction logic.
- The payload being signed in transactions.
- Unchecked extrinsic type as expected by this runtime.