Expand description
The Polkadot runtime. This can be compiled with #[no_std], ready for Wasm.
Modules§
- api
- governance
- New governance configurations for the Polkadot runtime.
- migrations
- The runtime migrations per release.
- xcm_
config - XCM configuration for Polkadot.
Macros§
- 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.
Structs§
- Announcement
Deposit Base - Announcement
Deposit Factor - BagThresholds
- Basic
Deposit - Better
Unsigned Threshold - Block
Execution Weight - Time to execute an empty block.
Calculated by multiplying the Average with
1.0and adding0. - Block
Weights - Block weights base values and limits.
- Bonding
Duration - Bounty
Deposit Base - Bounty
Deposit Payout Delay - Bounty
Update Period - Bounty
Value Minimum - Burn
- Child
Bounty Value Minimum - Council
Spend Origin MaxAmount - Crowdloan
Id - Curator
Deposit Max - Curator
Deposit Min - Curator
Deposit Multiplier - Data
Deposit PerByte - Deposit
Base - Deposit
Factor - Election
Bounds - 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.
- Ending
Period - Epoch
Duration - EraPayout
- 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. - Field
Deposit - Geometric
Deposit Base - Type that can be used to calculate the deposit base for signed submissions.
- Identity
Calls - 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.
- ImOnline
Unsigned Priority - Index
Deposit - Initiate
Nomination Pools - Lease
Offset - Lease
Period - MaxActive
Child Bounty Count - MaxActive
Validators - Setup election pallet to support maximum winners upto 1200. This will mean Staking Pallet cannot have active validators higher than this count.
- MaxAdditional
Fields - MaxApprovals
- MaxAuthorities
- MaxElecting
Voters - MaxKeys
- MaxLocks
- MaxMemo
Length - MaxNominations
- MaxNominator
Rewarded PerValidator - MaxPeer
InHeartbeats - MaxPending
- MaxPoints
ToBalance - MaxProxies
- MaxRegistrars
- MaxReserves
- MaxRetries
- MaxScheduled
PerBlock - MaxSet
IdSession Entries - MaxSignatories
- MaxSub
Accounts - Maximum
Reason Length - Maximum
Scheduler 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.
- MinContribution
- MinVested
Transfer - Minimum
Period - NoPreimage
Postponement - Nomination
Pools Migration V4Old Pallet - Npos
Compact Solution16 - Npos
Solution Priority - Offchain
Repeat - 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.
- Offending
Validators Threshold - OnChain
SeqPhragmen - Operational
FeeMultiplier - This value increases the priority of
Operationaltransactions by adding a “virtual tip” that’s equal to theOperationalFeeMultiplier * final_fee. - Origin
Privilege Cmp - Used the compare the privilege of an origin inside the scheduler.
- Pallet
Info - Provides an implementation of
PalletInfoto provide information about the pallet setup in the runtime. - Para
Data Byte Deposit - Para
Deposit - Paras
Unsigned Priority - Parathread
Deposit - 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.- Pools
Pallet Id - Prefix
- Preimage
Base Deposit - Preimage
Byte Deposit - Preimage
Hold Reason - Proposal
Bond - Proposal
Bond Maximum - Proposal
Bond Minimum - Proxy
Deposit Base - Proxy
Deposit Factor - Remove
Keys Limit - Report
Longevity - Reward
Curve - Rocks
DbWeight - By default, Substrate uses
RocksDB, so this will be the weight used throughout the runtime. - Root
Spend Origin MaxAmount - 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 - Sessions
PerEra - Signed
Deposit Base - Signed
Deposit Byte - Signed
Deposit Increase Factor - Signed
Fixed Deposit - Signed
MaxRefunds - Signed
MaxSubmissions - Signed
Phase - Signed
Reward Base - Slash
Defer Duration - Spend
Period - SubAccount
Deposit - Submission
Deposit - TipCountdown
- TipFinders
Fee - TipReport
Deposit Base - Transaction
Byte Fee - Treasury
Pallet Id - Unsigned
Phase - Unvested
Funds Allowed Withdraw Reasons - Version
Enums§
- Balances
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- EPMCall
- 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 - 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.
- Staker
Status - Representation of the status of a staker.
- 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. - VERSION
- Runtime version (Polkadot).
- WASM_
BINARY - WASM_
BINARY_ BLOATY
Traits§
- Build
Storage - Complex storage builder stuff.
Functions§
- native_
version - Native version.
Type Aliases§
- Address
- The address format for describing accounts.
- AllPallets
Deprecated - All pallets included in the runtime as a nested tuple of types.
- AllPallets
Reversed With System First Deprecated - All pallets included in the runtime as a nested tuple of types in reversed order. With the system pallet first.
- AllPallets
With System - All pallets included in the runtime as a nested tuple of types.
- AllPallets
With System Reversed Deprecated - All pallets included in the runtime as a nested tuple of types in reversed order.
- AllPallets
Without System - All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AllPallets
Without System Reversed Deprecated - All pallets included in the runtime as a nested tuple of types in reversed order. Excludes the System pallet.
- Auctions
- Authority
Discovery - Authority
Discovery Config - Authorship
- Babe
- Babe
Config - Balances
- Balances
Config - Block
- Block type as expected by this runtime.
- BlockId
BlockIdtype as expected by this runtime.- Bounties
- Child
Bounties - Claims
- Claims
Config - Configuration
- Configuration
Config - Conviction
Voting - Crowdloan
- Dmp
- Election
Provider Multi Phase - Executive
- Executive: handles dispatch to the various modules.
- Fast
Unstake - Genesis
Config Deprecated - Grandpa
- Grandpa
Config - Header
- Block header type as expected by this runtime.
- Historical
- Hrmp
- Hrmp
Config - Identity
- ImOnline
- ImOnline
Config - Indices
- Indices
Config - Initializer
- Message
Queue - Migrations
- All migrations that will run on the next runtime upgrade.
- Multisig
- Nomination
Pools - Nomination
Pools Config - Offences
- Origins
- Para
Assignment Provider - Para
Inclusion - Para
Inherent - Para
Scheduler - Para
Session Info - Parachains
Origin - Paras
- Paras
Config - Paras
Disputes - Paras
Shared - Paras
Slashing - Preimage
- Proxy
- Referenda
- Registrar
- Scheduler
- Session
- Session
Config - Signed
Block - A Block signed with a Justification
- Signed
Extra - The
SignedExtensionto the basic transaction logic. - Signed
Payload - The payload being signed in transactions.
- Slots
- Staking
- Staking
Config - System
- System
Config - Timestamp
- Transaction
Payment - Treasury
- Treasury
Config - Unchecked
Extrinsic - Unchecked extrinsic type as expected by this runtime.
- Utility
- Vesting
- Vesting
Config - Voter
List - Whitelist
- XcmPallet
- XcmPallet
Config