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;
Modules
- Configuration manager for the Polkadot runtime parachains logic.
- Runtime component for handling disputes of parachain candidates.
- The inclusion pallet is responsible for inclusion and availability of scheduled parachains and parathreads.
- 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.
- 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.
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 parachain to be downgraded to a parathread.
- Schedule a parathread to be upgraded to a parachain.
- Sets the current parachain head with the given id.