referrerpolicy=no-referrer-when-downgrade

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.
  • Weight of executing 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 SuffixedCommonTransactionExtension.

Functions§

Type Aliases§