Crate bp_polkadot_core

source ·
Expand description

Primitives of the Polkadot-like chains.

Re-exports§

Modules§

  • Primitives of polkadot-like chains, that are related to parachains functionality.
  • Human readable time units defined in terms of number of blocks.

Structs§

  • Provides a storage key for account data.
  • All Polkadot-like chains have maximal block size set to 5MB.
  • All Polkadot-like chains have the same block weights.
  • Time to execute a NO-OP extrinsic, for example System::remark. Calculated by multiplying the Average with 1.0 and adding 0.
  • A fixed point representation of a number in the range [0, 1].

Constants§

  • Average header size in votes_ancestries field of justification on Polkadot-like chains.
  • 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.
  • 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.
  • All Polkadot-like chains allow 2 seconds of compute with a 6-second average block time.
  • Maximal number of GRANDPA authorities at Polkadot-like chains.
  • Approximate maximal header size on Polkadot-like chains.
  • Maximal number of messages in single delivery transaction.
  • Reasonable number of headers in the votes_ancestries on Polkadot-like chains.
  • Maximal number of bytes, included in the signed Polkadot-like transaction apart from the encoded call itself.

Traits§

  • Infallible conversion trait. Generic over both source and destination types.
  • A type that can be used as a parameter in a dispatchable function.
  • Helper trait to define some extra methods on SuffixedCommonSignedExtension.

Functions§

Type Aliases§

  • Address of account on Polkadot-like chains.
  • Id of account on Polkadot-like chains.
  • Public key of account on Polkadot-like chains.
  • Account address, used by the Polkadot-like chain.
  • The balance of an account on Polkadot-like chain.
  • Block type of Polkadot-like chains.
  • Block number type used in Polkadot-like chains.
  • Signed extension that is used by most chains.
  • Extra signed extension data that is used by most chains.
  • Hash type used in Polkadot-like chains.
  • The type of object that can produce hashes on Polkadot-like chains.
  • Hashing type.
  • The header type used by Polkadot-like chains.
  • Nonce of a transaction on the Polkadot-like chains.
  • Signature type used by Polkadot-like chains.
  • Polkadot-like block signed with a Justification.
  • Extra signed extension data that starts with CommonSignedExtra.
  • Unchecked Extrinsic type.