referrerpolicy=no-referrer-when-downgrade

Crate polkadot_test_runtime

Source
Expand description

The Polkadot runtime. This can be compiled with #[no_std], ready for Wasm.

Modules§

api
pallet_test_notifier
The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.
xcm_config

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_weights instead.

Structs§

BlockExecutionWeight
Importing a block with 0 Extrinsics.
BlockWeights
Block weights base values and limits.
BondingDuration
BrokerId
BrokerPot
DummyXcmSender
ElectionBoundsOnChain
EndingPeriod
EpochDuration
ExistentialDeposit
ExpectedBlockTime
ExtrinsicBaseWeight
Executing a NO-OP System::remarks Extrinsic.
HrmpChannelSizeAndCapacityWithSystemRatio
IndexDeposit
LeasePeriod
MaxAuthorities
MaxExposurePageSize
MaxHistoricalRevenue
MaxLocks
MaxNominators
MaxReserves
MaxSetIdSessionEntries
MaxXcmTransactWeight
MinVestedTransfer
MinimumPeriod
OffchainSolutionLengthLimit
A limit for off-chain phragmen unsigned solution length.
OffchainSolutionWeightLimit
A limit for off-chain phragmen unsigned solution submission.
Offset
OnChainMaxWinners
OnChainSeqPhragmen
OnDemandPalletId
OnDemandTrafficDefaultValue
OperationalFeeMultiplier
This value increases the priority of Operational transactions by adding a “virtual tip” that’s equal to the OperationalFeeMultiplier * final_fee.
PalletInfo
Provides an implementation of PalletInfo to provide information about the pallet setup in the runtime.
ParasUnsignedPriority
ParityDbWeight
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.
Period
Prefix
ReportLongevity
RewardCurve
RocksDbWeight
By default, Substrate uses RocksDB, so this will be the weight used throughout the runtime.
Runtime
RuntimeApi
RuntimeApiImpl
Implements all runtime apis for the client side.
RuntimeGenesisConfig
RuntimeOrigin
The runtime origin type representing the origin of a call.
SS58Prefix
SessionKeys
SessionsPerEra
SlashDeferDuration
SlotDuration
TransactionByteFee
UnvestedFundsAllowedWithdrawReasons
Version

Enums§

BalancesCall
Contains a variant per dispatchable extrinsic that this pallet has.
OriginCaller
ParasCall
Contains a variant per dispatchable extrinsic that this pallet has.
ParasSudoWrapperCall
Contains a variant per dispatchable extrinsic that this pallet has.
RuntimeCall
The aggregated runtime call type.
RuntimeError
RuntimeEvent
RuntimeFreezeReason
A reason for placing a freeze on funds.
RuntimeHoldReason
A reason for placing a hold on funds.
RuntimeLockId
An identifier for each lock placed on funds.
RuntimeSlashReason
A reason for slashing funds.
RuntimeTask
An aggregation of all Task enums across all pallets included in the current runtime.
RuntimeViewFunction
Runtime query type.
StakerStatus
Representation of the status of a staker.
SudoCall
Contains a variant per dispatchable extrinsic that this pallet has.
TimestampCall
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 Normal extrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics.
RUNTIME_API_VERSIONS
VERSION
Runtime version (Test).
WASM_BINARY
WASM_BINARY_BLOATY
WASM_BINARY_PATH

Traits§

BuildStorage
Complex storage builder stuff.
GetLastTimestamp

Functions§

native_version
Native version.

Type Aliases§

Address
The address format for describing accounts.
AllPalletsWithSystem
All pallets included in the runtime as a nested tuple of types.
AllPalletsWithoutSystem
All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
AuthorityDiscovery
AuthorityDiscoveryConfig
Authorship
Babe
BabeConfig
Balances
BalancesConfig
Block
Block type as expected by this runtime.
BlockId
BlockId type as expected by this runtime.
Claims
ClaimsConfig
Configuration
ConfigurationConfig
Coretime
CoretimeAssignmentProvider
Dmp
Executive
Executive: handles dispatch to the various modules.
Extrinsic
Grandpa
GrandpaConfig
Hash
Header
Block header type as expected by this runtime.
Historical
Hrmp
HrmpConfig
Indices
IndicesConfig
Initializer
Offences
OnDemandAssignmentProvider
ParaInclusion
ParaInherent
ParaSessionInfo
Paras
ParasConfig
ParasDisputes
ParasOrigin
ParasShared
ParasSlashing
ParasSudoWrapper
Scheduler
Session
SessionConfig
SignedBlock
A Block signed with a Justification
SignedPayload
The payload being signed in transactions.
Staking
StakingConfig
Sudo
SudoConfig
System
SystemConfig
TestNotifier
Timestamp
TransactionPayment
TransactionPaymentConfig
TxExtension
The extension to the basic transaction logic.
UncheckedExtrinsic
Unchecked extrinsic type as expected by this runtime.
UncheckedSignaturePayload
Unchecked signature payload type as expected by this runtime.
Vesting
VestingConfig
Xcm
XcmConfig