Expand description
Primitives of the Westend chain.
Modules§
- parachains
- Primitives of polkadot-like chains, that are related to parachains functionality.
- time_
units - Human readable time units defined in terms of number of blocks.
Structs§
- Account
Info Storage MapKey Provider - Provides a storage key for account data.
- Block
Length - All Polkadot-like chains have maximal block size set to 5MB.
- Block
Weights - All Polkadot-like chains have the same block weights.
- Extrinsic
Base Weight - Weight of executing a NO-OP extrinsic, for example
System::remark
. Calculated by multiplying the Average with1.0
and adding0
. - Perbill
- A fixed point representation of a number in the range [0, 1].
- Westend
- Westend Chain
Constants§
- AVERAGE_
HEADER_ SIZE - Average header size in
votes_ancestries
field of justification on Polkadot-like chains. - AVERAGE_
ON_ INITIALIZE_ RATIO - All Polkadot-like chains assume that an on-initialize consumes 1 percent of the weight on
average, hence a single extrinsic will not be allowed to consume more than
AvailableBlockRatio - 1 percent
. - BEST_
FINALIZED_ WESTEND_ HEADER_ METHOD - Name of the
<ThisChain>FinalityApi::best_finalized
runtime method. - DAYS
- A day, expressed in Polkadot-like chain blocks.
- EXTRA_
STORAGE_ PROOF_ SIZE - Number of extra bytes (excluding size of storage value itself) of storage proof, built at Polkadot-like chain. This mostly depends on number of entries in the storage trie. Some reserve is reserved to account future chain growth.
- FREE_
HEADERS_ INTERVAL_ FOR_ WESTEND_ METHOD - Name of the
<ThisChain>FinalityApi::free_headers_interval
runtime method. - HOURS
- A hour, expressed in Polkadot-like chain blocks.
- MAXIMUM_
BLOCK_ WEIGHT - All Polkadot-like chains allow 2 seconds of compute with a 6-second average block time.
- MAX_
AUTHORITIES_ COUNT - Maximal number of GRANDPA authorities at Polkadot-like chains.
- MAX_
MANDATORY_ HEADER_ SIZE - Approximate maximal header size on Polkadot-like chains.
- MAX_
MESSAGES_ IN_ DELIVERY_ TRANSACTION - Maximal number of messages in single delivery transaction.
- MAX_
NESTED_ PARACHAIN_ HEAD_ DATA_ SIZE - Maximal size of encoded
bp_parachains::ParaStoredHeaderData
structure among all Westend parachains. - MILLISECS_
PER_ BLOCK - Milliseconds between Polkadot-like chain blocks.
- MINUTES
- A minute, expressed in Polkadot-like chain blocks.
- PARAS_
PALLET_ NAME - Name of the parachains pallet in the Rococo runtime.
- REASONABLE_
HEADERS_ IN_ JUSTIFICATION_ ANCESTRY - Reasonable number of headers in the
votes_ancestries
on Polkadot-like chains. - SLOT_
DURATION - Slot duration in Polkadot-like chain consensus algorithms.
- TX_
EXTRA_ BYTES - Maximal number of bytes, included in the signed Polkadot-like transaction apart from the encoded call itself.
- WESTEND_
SYNCED_ HEADERS_ GRANDPA_ INFO_ METHOD - Name of the
<ThisChain>FinalityApi::accepted_<consensus>_finality_proofs
runtime method. - WITH_
WESTEND_ BRIDGE_ PARACHAINS_ PALLET_ NAME - Name of the With-Westend parachains pallet instance that is deployed at bridged chains.
- WITH_
WESTEND_ GRANDPA_ PALLET_ NAME - Name of the With-Westend GRANDPA pallet instance that is deployed at bridged chains.
Traits§
- Convert
- Infallible conversion trait. Generic over both source and destination types.
- Parameter
- A type that can be used as a parameter in a dispatchable function.
- Suffixed
Common Transaction Extension Ext - Helper trait to define some extra methods on
SuffixedCommonTransactionExtension
. - Westend
Finality Api - API for querying information about the finalized chain headers.
Functions§
- max_
extrinsic_ size - Returns maximal extrinsic size on all Polkadot-like chains.
- max_
extrinsic_ weight - Returns maximal extrinsic weight on all Polkadot-like chains.
Type Aliases§
- Account
Address - Address of account on Polkadot-like chains.
- Account
Id - Id of account on Polkadot-like chains.
- Account
Public - Public key of account on Polkadot-like chains.
- Address
- Account address, used by the Polkadot-like chain.
- Balance
- The balance of an account on Polkadot-like chain.
- Block
- Block type of Polkadot-like chains.
- Block
Number - Block number type used in Polkadot-like chains.
- Common
Transaction Extension - Signed extension that is used by most chains.
- Common
Transaction Extra - Extra signed extension data that is used by most chains.
- Hash
- Hash type used in Polkadot-like chains.
- Hasher
- The type of object that can produce hashes on Polkadot-like chains.
- Hashing
- Hashing type.
- Header
- The header type used by Polkadot-like chains.
- Nonce
- Nonce of a transaction on the Polkadot-like chains.
- Signature
- Signature type used by Polkadot-like chains.
- Signed
Block - Polkadot-like block signed with a Justification.
- Suffixed
Common Transaction Extension - Extra transaction extension data that starts with
CommonTransactionExtra
. - Transaction
Extension - Signed extension that is used by most chains.
- Unchecked
Extrinsic - Unchecked Extrinsic type.