Expand description
The Westend runtime. This can be compiled with #[no_std], ready for Wasm.
Modules§
- api
- delegated_
staking_ stub - Minimal stub pallet preserving
RuntimeHoldReason::DelegatedStaking(StakingDelegation)encoding (pallet_index 38, codec index 0) for existing on-chain holds created by the now-removedpallet_delegated_staking. Enablestry_decode_entire_stateto succeed until all holds are migrated away. Remove once Westend storage is clean. - dynamic_
params - Dynamic params that can be adjusted at runtime.
- fast_
runtime_ binary - migrations
- The runtime migrations per release.
- xcm_
config - XCM configurations for Westend.
Macros§
- add_
benchmarks - Calls
add_benchmarkwith all configs fromdefine_benchmarksand passes the first two parameters on. - impl_
elections_ weights - Implements the weight types for the elections module and a specific
runtime.
This macro should not be called directly; use
impl_runtime_weightsinstead. - list_
benchmarks - Calls
list_benchmarkwith all configs fromdefine_benchmarksand passes the first two parameters on.
Structs§
- Accumulate
Forward FeePercent - Percentage of fees that go to the accumulation account. The remainder goes to block author. Tips always go 100% to author.
- Announcement
Deposit Base - Announcement
Deposit Factor - Asset
HubLocation - Basic
Deposit - Beefy
SetId Session Entries - Block
Execution Weight - Time to execute an empty block.
Calculated by multiplying the Average with
1.0and adding0. - Block
Length - Maximum length of a relay-chain block is up to 10 MiB.
- Block
Weights - Block weights base values and limits.
- Bonding
Duration - Broker
Id - Broker
Pallet Id - Broker
Pot - Byte
Deposit - Crowdloan
Id - Deposit
Base - Deposit
Factor - Dynamic
Parameter Origin - Defines what origin can modify which dynamic parameters.
- Ending
Period - Ensure
Asset Hub - Epoch
Duration - Existential
Deposit - Expected
Block Time - Extrinsic
Base Weight - Time to execute a NO-OP extrinsic, for example
System::remark. Calculated by multiplying the Average with1.0and adding0. - Hrmp
Channel Size AndCapacity With System Ratio - Index
Deposit - IsIdentity
Call - 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.
- Leaf
Version - Lease
Period - MaxActive
Validators - MaxAdditional
Fields - MaxAgents
ToMigrate - Bounding number of agent pot accounts to be migrated in a single block.
- MaxAuthorities
- MaxHistorical
Revenue - MaxLocks
- MaxMemo
Length - MaxPending
- MaxProxies
- MaxRegistrars
- MaxReserves
- MaxScheduled
PerBlock - MaxSet
IdSession Entries - MaxSignatories
- MaxSub
Accounts - MaxTemporary
Slot PerLease Period - MaxXcm
Transact Weight - Maximum
Scheduler Weight - MbmService
Weight - Message
Processor - Message processor to handle any messages that were enqueued into the
MessageQueuepallet. - Message
Queue Heap Size - Message
Queue MaxStale - Message
Queue Service Weight - Amount of weight that can be spent per block to service messages.
- Migration
MaxKey Len - Migration
Signed Deposit Base - Migration
Signed Deposit PerItem - MinContribution
- MinVested
Transfer - Minimum
Period - NoPreimage
Postponement - Npos
Solution Priority - Offchain
Solution Length Limit - A limit for off-chain phragmen unsigned solution length.
- Offchain
Solution Weight Limit - A limit for off-chain phragmen unsigned solution submission.
- Offset
- OnDemand
Pallet Id - OnDemand
Traffic Default Value - Operational
FeeMultiplier - This value increases the priority of
Operationaltransactions by adding a “virtual tip” that’s equal to theOperationalFeeMultiplier * final_fee. - Pallet
Info - Provides an implementation of
PalletInfoto provide information about the pallet setup in the runtime. - Para
Deposit - Para
Heads Root Provider - A BEEFY data provider that merkelizes all the parachain heads at the current block (sorted by their parachain id).
- Paras
Unsigned Priority - Parity
DbWeight ParityDBcan 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.- Period
- Permanent
Slot Lease Period Length - Preimage
Base Deposit - Preimage
Byte Deposit - Preimage
Hold Reason - Proxy
Deposit Base - Proxy
Deposit Factor - Queued
Offence ToXcm - Recovery
Pallet Name - Registrar
Data Deposit PerByte - Remove
Keys Limit - Report
Longevity - Rocks
DbWeight - By default, Substrate uses
RocksDB, so this will be the weight used throughout the runtime. - Runtime
- Runtime
Api - Runtime
ApiImpl - Implements all runtime apis for the client side.
- Runtime
Genesis Config - Runtime
Origin - The runtime origin type representing the origin of a call.
- SS58
Prefix - Sample
Length - Session
Keys - Generated by
impl_opaque_keys!. - Session
Report ToXcm - Sessions
PerEra - Staking
XcmTo Asset Hub - SubAccount
Deposit - Submission
Deposit - Swap
Leases - Temporary
Slot Lease Period Length - Transaction
Byte Fee - Unvested
Funds Allowed Withdraw Reasons - Username
Deposit - Version
Enums§
- Balances
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Origin
Caller - Proxy
Type - The type used to represent the kinds of proxying allowed.
- Runtime
Call - The aggregated runtime call type.
- Runtime
Error - Runtime
Event - Runtime
Freeze Reason - A reason for placing a freeze on funds.
- Runtime
Hold Reason - A reason for placing a hold on funds.
- Runtime
Lock Id - An identifier for each lock placed on funds.
- Runtime
Slash Reason - A reason for slashing funds.
- Runtime
Task - An aggregation of all
Taskenums across all pallets included in the current runtime. - Runtime
View Function - Runtime query type.
- System
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Timestamp
Call - Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- AVERAGE_
ON_ INITIALIZE_ RATIO - 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%. - BABE_
GENESIS_ EPOCH_ CONFIG - The BABE epoch configuration at genesis.
- MAXIMUM_
BLOCK_ WEIGHT - We allow for 2 seconds of compute with a 6 second average block time. The storage proof size is not limited so far.
- NORMAL_
DISPATCH_ RATIO - We allow
Normalextrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics. - RUNTIME_
API_ VERSIONS - VERSION
- Runtime version (Westend).
- WASM_
BINARY - WASM_
BINARY_ BLOATY - WASM_
BINARY_ PATH
Traits§
- Build
Storage - Complex storage builder stuff.
Functions§
- native_
version - Native version.
Type Aliases§
- Accumulate
Forward - Address
- The address format for describing accounts.
- AllPallets
With System - All pallets included in the runtime as a nested tuple of types.
- AllPallets
Without System - All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- Asset
Rate - Assigned
Slots - Assigned
Slots Config - Auctions
- Authority
Discovery - Authority
Discovery Config - Authorship
- Babe
- Babe
Config - Balances
- Balances
Config - Beefy
- Beefy
Config - Beefy
MmrLeaf - Block
- Block type as expected by this runtime.
- BlockId
BlockIdtype as expected by this runtime.- Configuration
- Configuration
Config - Coretime
- Crowdloan
- Delegated
Staking - Dmp
- Executive
- Executive: handles dispatch to the various modules.
- Grandpa
- Grandpa
Config - Header
- Block header type as expected by this runtime.
- Historical
- Hrmp
- Hrmp
Config - Identity
- Identity
Migrator - Indices
- Indices
Config - Initializer
- Message
Queue - Migrations
- All migrations that will run on the next runtime upgrade.
- Mmr
- Multi
Block Migrations - Multisig
- Offences
- OnDemand
Assignment Provider - Para
Inclusion - Para
Inherent - Para
Scheduler - Para
Session Info - Parachains
Origin - Parameters
- Paras
- Paras
Config - Paras
Disputes - Paras
Shared - Paras
Slashing - Paras
Sudo Wrapper - Preimage
- Proxy
- Registrar
- Registrar
Config - Root
Offences - Root
Testing - Scheduler
- Session
- Session
Config - Signed
Block - A Block signed with a Justification
- Signed
Payload - The payload being signed in transactions.
- Slots
- Staking
AhClient - Staking
AhClient Config - Sudo
- Sudo
Config - System
- System
Config - Timestamp
- Transaction
Payment - Transaction
Payment Config - TxExtension
- The extension to the basic transaction logic.
- Unchecked
Extrinsic - Unchecked extrinsic type as expected by this runtime.
- Unchecked
Signature Payload - Unchecked signature payload type as expected by this runtime.
- Utility
- Vesting
- Vesting
Config - XcmPallet
- XcmPallet
Config