Crate westend_runtime
source ·Expand description
The Westend runtime. This can be compiled with #[no_std]
, ready for Wasm.
Modules§
- Dynamic params that can be adjusted at runtime.
- New governance configurations for the Kusama runtime.
- The runtime migrations per release.
- XCM configurations for Westend.
Macros§
- Calls
add_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on. - Implements the weight types for the elections module and a specific runtime. This macro should not be called directly; use
impl_runtime_weights
instead. - Calls
list_benchmark
with all configs fromdefine_benchmarks
and passes the first two parameters on.
Structs§
- Time to execute an empty block. Calculated by multiplying the Average with
1.0
and adding0
. - Block weights base values and limits.
- Defines what origin can modify which dynamic parameters.
- We take the top 22500 nominators as electing voters and all of the validators as electable targets. Whilst this is the case, we cannot and shall not increase the size of the validator intentions.
- Time to execute a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - Type that can be used to calculate the deposit base for signed submissions.
- A type to identify calls to the Identity pallet. These will be filtered to prevent invocation, locking the state of the pallet and preventing further updates to identities and sub-identities. The locked state will be the genesis state of a new system chain and then removed from the Relay Chain.
- Bounding number of agent pot accounts to be migrated in a single block.
- Message processor to handle any messages that were enqueued into the
MessageQueue
pallet. - Amount of weight that can be spent per block to service messages.
- A limit for off-chain phragmen unsigned solution length.
- A limit for off-chain phragmen unsigned solution submission.
- This value increases the priority of
Operational
transactions by adding a “virtual tip” that’s equal to theOperationalFeeMultiplier * final_fee
. - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - A BEEFY data provider that merkelizes all the parachain heads at the current block (sorted by their parachain id).
ParityDB
can be enabled with a feature flag, but is still experimental. These weights are available for brave runtime engineers who may want to try this out as default.- 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.
Enums§
- Contains a variant per dispatchable extrinsic that this pallet has.
- 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. - Contains a variant per dispatchable extrinsic that this pallet has.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- We assume that an on-initialize consumes 1% of the weight on average, hence a single extrinsic will not be allowed to consume more than
AvailableBlockRatio - 1%
. - The BABE epoch configuration at genesis.
- We allow for 2 seconds of compute with a 6 second average block time. The storage proof size is not limited so far.
- We allow
Normal
extrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics. - Runtime version (Westend).
Traits§
- Complex storage builder stuff.
Functions§
- Native version.
Type Aliases§
- 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.- Executive: handles dispatch to the various modules.
- Block header type as expected by this runtime.
- All migrations that will run on the next runtime upgrade.
- A Block signed with a Justification
- The payload being signed in transactions.
- The extension to the basic transaction logic.
- Unchecked extrinsic type as expected by this runtime.
- Unchecked signature payload type as expected by this runtime.