Expand description
Runtime modules for teyrchains 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_teyrchain;pub use origin::Origin;pub use paras::ParaLifecycle;pub use paras::UpgradeStrategy;
Modules§
- assigner_
coretime - The teyrchain coretime assignment module.
- configuration
- Configuration manager for the Pezkuwi runtime teyrchains logic.
- coretime
- Extrinsics implementing the relay chain side of the Coretime interface.
- disputes
- Runtime component for handling disputes of teyrchain candidates.
- dmp
- 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 theDownwardMessageQueuepasses a threshold. This threshold is set as: - hrmp
- inclusion
- The inclusion pezpallet is responsible for inclusion and availability of scheduled teyrchains.
- initializer
- This module is responsible for maintaining a consistent initialization order for all other teyrchains modules. It’s also responsible for finalization and session change notifications.
- metrics
- Runtime declaration of the teyrchain metrics.
- on_
demand - The teyrchain on demand assignment module.
- origin
- Declaration of the teyrchain specific origin and a pezpallet that hosts it.
- paras
- The paras pezpallet acts as the main registry of paras.
- paras_
inherent - Provides glue code over the scheduler and inclusion modules, and accepting one inherent per block that can include new para candidates and bitfields.
- reward_
points - An implementation of the
RewardValidatorstrait used byinclusionthat employspezpallet-stakingto compute the rewards. - runtime_
api_ impl - Runtime API implementations for Teyrchains.
- scheduler
- The scheduler module for teyrchains and parathreads.
- session_
info - The session info pezpallet provides information about validator sets from prior sessions needed for approvals and disputes.
- shared
- A pezpallet for any shared state that other pallets may want access to.
Structs§
- GetMin
FeeFactor - Helper struct used for accessing
FeeTracker::MIN_FEE_FACTOR
Traits§
- FeeTracker
- Trait for tracking message delivery fees on a transport protocol.
Functions§
- schedule_
code_ upgrade - Schedules a validation code upgrade to a teyrchain with the given id.
- schedule_
para_ cleanup - Schedule a para to be cleaned up at the start of the next session.
- schedule_
para_ initialize - Schedule a para to be initialized at the start of the next session with the given genesis data.
- schedule_
parathread_ upgrade - Schedule a parathread (on-demand teyrchain) to be upgraded to a lease holding teyrchain.
- schedule_
teyrchain_ downgrade - Schedule a lease holding teyrchain to be downgraded to an on-demand teyrchain.
- set_
current_ head - Sets the current teyrchain head with the given id.