referrerpolicy=no-referrer-when-downgrade

Crate polkadot_runtime_parachains

source ·
Expand description

Runtime modules for parachains code.

It is crucial to include all the modules from this crate in the runtime, in particular the Initializer module, as it is responsible for initializing the state of the other modules.

Re-exports§

Modules§

  • The parachain coretime assignment module.
  • Configuration manager for the Polkadot runtime parachains logic.
  • Extrinsics implementing the relay chain side of the Coretime interface.
  • Runtime component for handling disputes of parachain candidates.
  • To prevent Out of Memory errors on the DownwardMessageQueue, an exponential fee factor (DeliveryFeeFactor) is set. The fee factor increments exponentially after the number of messages in the DownwardMessageQueue passes a threshold. This threshold is set as:
  • The inclusion pallet is responsible for inclusion and availability of scheduled parachains.
  • This module is responsible for maintaining a consistent initialization order for all other parachains modules. It’s also responsible for finalization and session change notifications.
  • Runtime declaration of the parachain metrics.
  • The parachain on demand assignment module.
  • Declaration of the parachain specific origin and a pallet that hosts it.
  • The paras pallet acts as the main registry of paras.
  • Provides glue code over the scheduler and inclusion modules, and accepting one inherent per block that can include new para candidates and bitfields.
  • An implementation of the RewardValidators trait used by inclusion that employs pallet-staking to compute the rewards.
  • Runtime API implementations for Parachains.
  • The scheduler module for parachains and parathreads.
  • The session info pallet provides information about validator sets from prior sessions needed for approvals and disputes.
  • A pallet for any shared state that other pallets may want access to.

Traits§

  • Ensure more initialization for ParaId when benchmarking. (e.g. open HRMP channels, …)
  • Trait for tracking message delivery fees on a transport protocol.

Functions§