Crate kitchensink_runtime
source ·Expand description
The Substrate runtime. This can be compiled with #[no_std]
, ready for Wasm.
Modules
- Runtime API definition for assets. Runtime API definition for assets.
- Constant values used within the runtime. A set of constant values used in substrate runtime.
- Implementations of some helper traits passed into runtime modules as associated types. Some configurable implementations as associated type for the substrate runtime.
Macros
- Calls
add_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on. - Calls
list_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on.
Structs
- Implements the transaction payment for a pallet implementing the
Currency
trait (eg. the pallet_balances) using an unbalance handler (implementingOnUnbalanced
). - The numbers configured here could always be more than the the maximum limits of staking pallet to ensure election snapshot will not run out of memory. For now, we set them to smaller values since the staking is bounded and the weight pipeline takes hours for this single pallet.
- Allocate at most 20% of each block for message processing.
- A source of random balance for NposSolver, which is meant to be run by the OCW election miner.
- 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.
- Calls that can bypass the safe-mode pallet.
- We prioritize im-online heartbeats over election solution submission.
- A struct to update the weight multiplier per block. It implements
Convert<Multiplier, Multiplier>
, meaning that it can convert the previous multiplier to the next one. This should be called onon_finalize
of a block, prior to potentially cleaning the weight data from the system pallet. - Calls that cannot be paused by the tx-pause pallet.
Enums
- Contains a variant per dispatchable extrinsic that this pallet has.
- The type used to represent the kinds of proxying allowed.
- 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.
- Representation of the status of a staker.
- Contains a variant per dispatchable extrinsic that this pallet has.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants
- The BABE epoch configuration at genesis.
- Maximum number of iterations for balancing that will be executed in the embedded OCW miner of election provider multi phase.
- Runtime version.
Traits
- Complex storage builder stuff.
Functions
- Native version.
- Wasm binary unwrapped. If built with
SKIP_WASM_BUILD
, the function panics.
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.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- Extrinsic type that has already been checked.
- Executive: handles dispatch to the various modules.
- GenesisConfigDeprecated
- Block header type as expected by this runtime.
- Fee multiplier.
- 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.