Modules§
Macros§
- construct_
runtime - Construct a runtime, with the given name and the given pallets.
- parameter_
types - Create new implementations of the
Get
trait.
Structs§
- Approval
Deposit - AsEnsure
Origin With Arg - Asset
Account Deposit - Asset
Deposit - Asset
Hub - Assets
String Limit - Block
Execution Weight - Weight of executing an empty block.
Calculated by multiplying the Average with
1.0
and adding0
. - Block
Hash Count - Checking
Account - Const
Bool - Const getter for a basic type.
- ConstU8
- Const getter for a basic type.
- Const
U32 - Const getter for a basic type.
- Const
U64 - Const getter for a basic type.
- Constant
Multiplier - Implementor of
WeightToFee
that uses a constant multiplier. - Creation
Fee - Either
OfDiverse - “OR gate” implementation of
EnsureOrigin
allowing for differentSuccess
types forL
andR
, with them combined using anEither
type. - Existential
Deposit - Extrinsic
Base Weight - Weight of executing a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - Identity
Fee - Implementor of
WeightToFee
that maps one unit of weight to one unit of fee. - IsInVec
- Trivial utility for implementing
Contains
/OrderedMembership
with aVec
. - MaxAssets
Into Holding - MaxInstructions
- Message
Queue Service Weight - Metadata
Deposit Base - Metadata
Deposit PerByte - Pallet
Info - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - Parent
OrParents Unit Plurality - Perbill
- A fixed point representation of a number in the range [0, 1].
- Permill
- A fixed point representation of a number in the range [0, 1].
- Relay
Chain Origin - Relay
Origin - Remove
Collective Flip - Reserved
DmpWeight - Reserved
Xcmp Weight - RocLocation
- Rocks
DbWeight - By default, Substrate uses RocksDB, so this will be the weight used throughout the runtime.
- Rococo
Network - Runtime
- Runtime
Api - Runtime
ApiImpl - Implements all runtime apis for the client side.
- Runtime
Block Length - Runtime
Block Weights - Runtime
Genesis Config - Runtime
Origin - The runtime origin type representing the origin of a call.
- SS58
Prefix - Session
Keys - System
Asset HubAssets Pallet Location - System
Asset HubLocation - Transaction
Byte Fee - Transfer
Fee - Unit
Body - Unit
Weight Cost - Universal
Location - Version
- Weight
- Weight
Price - XcmConfig
Enums§
- Balances
Call - Contains a variant per dispatchable extrinsic that this pallet has.
- Dispatch
Class - A generalized group of dispatch types.
- Everything
- A
Contains
implementation that contains every value. - Nothing
- A
Contains
implementation that contains no value. - Origin
Caller - 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
Task
enums across all pallets included in the current runtime. - Runtime
View Function - Runtime query type.
- Timestamp
Call - Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- DAYS
- EPOCH_
DURATION_ IN_ BLOCKS - HOURS
- MICROROC
- MILLIROC
- MILLISECS_
PER_ BLOCK - MINUTES
- PRIMARY_
PROBABILITY - ROC
- RUNTIME_
API_ VERSIONS - SLOT_
DURATION - VERSION
- This runtime version.
- WASM_
BINARY - WASM_
BINARY_ BLOATY - WASM_
BINARY_ PATH - WEIGHT_
REF_ TIME_ PER_ SECOND
Traits§
- Build
Storage - Complex storage builder stuff.
- Contains
- A trait for querying whether a type can be said to “contain” a value.
- Randomness
- A trait that is able to provide randomness.
- Storage
Value - A trait for working with macro-generated storage values under the substrate storage API.
Functions§
- build_
state - Build
GenesisConfig
from a JSON blob not using any defaults and store it in the storage. For more info refer tosp_genesis_builder::GenesisBuilder::build_state
. - get_
preset - Get the default
GenesisConfig
as a JSON blob ifname
is None. - native_
version - The version information used to identify this runtime when compiled natively.
Type Aliases§
- Address
- The address format for describing accounts.
- Admin
Origin - A majority of the Unit body from Rococo over XCM is our required administration origin.
- 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
Transactors - Means for transacting assets on this chain.
- Assets
- Assets
Config - Aura
- Aura
Config - AuraExt
- Aura
ExtConfig - AuraId
- An Aura authority identifier using S/R 25519 as its crypto.
- Balance
- Balance of an account.
- Balances
- Balances
Config - Barrier
- Block
- Block type as expected by this runtime.
- BlockId
- BlockId type as expected by this runtime.
- Block
Number - An index to a block.
- Cumulus
Xcm - Executive
- Executive: handles dispatch to the various modules.
- Fungible
Transactor - Means for transacting assets on this chain.
- Fungibles
Transactor - Means for transacting assets besides the native currency on this chain.
- Hash
- A hash of some data used by the chain.
- Header
- Block header type as expected by this runtime.
- Local
Origin ToLocation - Converts a local signed origin into an XCM location. Forms the basis for local origins sending/executing XCMs.
- Location
ToAccount Id - Type for specifying how a
Location
can be converted into anAccountId
. This is used when determining ownership of accounts for asset transacting and when attempting to use XCMTransact
in order to determine the dispatch Origin. - Message
Queue - Nonce
- Index of a transaction in the chain.
- Parachain
Info - Parachain
Info Config - Parachain
System - Parachain
System Config - Polkadot
Xcm - Polkadot
XcmConfig - Reserves
- Session
Handlers - Signed
Block - A Block signed with a Justification
- Spambot
- 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.
- Weight
Reclaim - XcmOrigin
ToTransact Dispatch Origin - This is the type we use to convert an (incoming) XCM origin into a local
Origin
instance, ready for dispatching a transaction with Xcm’sTransact
. There is anOriginKind
which can biases the kind of localOrigin
it will become. - XcmRouter
- The means for routing XCM messages which are not for local execution into the right message queues.
- Xcmp
Queue
Attribute Macros§
- derive_
impl - This attribute can be used to derive a full implementation of a trait based on a local partial impl and an external impl containing defaults that can be overridden in the local impl.