referrerpolicy=no-referrer-when-downgrade

Crate parachains_common

Source

Re-exports§

pub use opaque::*;

Modules§

impls
Auxiliary struct/enums for parachain runtimes. Taken from polkadot/runtime/common (at a21cd64) and adapted for parachains.
message_queue
Helpers to deal with configuring the message queue in the runtime.
opaque
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core data structures.
pay
xcm_config

Constants§

AVERAGE_ON_INITIALIZE_RATIO
We assume that ~5% of the block weight is consumed by on_initialize handlers. This is used to limit the maximal weight of a single extrinsic.
DAYS
HOURS
MAXIMUM_BLOCK_WEIGHT
We allow for 0.5 seconds of compute with a 6 second average block time.
MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING
We allow for 2 seconds of compute with a 6 second average block.
MILLISECS_PER_BLOCK
This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by SLOT_DURATION. SLOT_DURATION is picked up by pallet_timestamp which is in turn picked up by pallet_aura to implement fn slot_duration().
MINUTES
NORMAL_DISPATCH_RATIO
We allow Normal extrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics.
SLOT_DURATION
TREASURY_PALLET_ID
Treasury pallet id of the local chain, used to convert into AccountId

Type Aliases§

AccountId
Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
AccountIndex
The type for looking up accounts. We don’t expect more than 4 billion of them, but you never know…
AssetHubPolkadotAuraId
AssetIdForTrustBackedAssets
AuraId
Balance
Balance of an account.
BlockNumber
An index to a block.
CollectionId
DigestItem
Digest item type.
Hash
A hash of some data used by the chain.
ItemId
Nonce
Index of a transaction in the chain.
Signature
Alias to 512-bit hash when used in the context of a transaction signature on the chain.