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.
- Dynamic parameters that can be changed at runtime through the
pallet_parameters::set_parameter
. - 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§
- CurrencyAdapterDeprecatedImplements 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.
- 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. - 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 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 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.
- 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.
- 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 payload being signed in transactions.
- The TransactionExtension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.
- Unchecked signature payload type as expected by this runtime.