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§
pub use origin::ensure_parachain;
pub use origin::Origin;
pub use paras::ParaLifecycle;
pub use paras::UpgradeStrategy;
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 theDownwardMessageQueue
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 byinclusion
that employspallet-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§
- Schedules a validation code upgrade to a parachain with the given id.
- Schedule a para to be cleaned up at the start of the next session.
- Schedule a para to be initialized at the start of the next session with the given genesis data.
- Schedule a lease holding parachain to be downgraded to an on-demand parachain.
- Schedule a parathread (on-demand parachain) to be upgraded to a lease holding parachain.
- Sets the current parachain head with the given id.