referrerpolicy=no-referrer-when-downgrade

Module on_demand

Module on_demand 

Source
Expand description

The parachain on demand assignment module.

Implements a mechanism for taking in orders for on-demand parachain (previously parathreads) assignments. This module is not handled by the initializer but is instead instantiated in the construct_runtime macro.

The module uses a single queue for all on-demand orders. Orders are generally processed in the order they are received, but with an important constraint: only one order per ParaId can be assigned in each scheduling round. If multiple orders for the same ParaId exist in the queue, only the first will be assigned, and subsequent orders for that ParaId will remain queued until the next round.

Re-exports§

pub use pallet::*;

Modules§

migration
A module that is responsible for migration of storage.
pallet
The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

OrderQueue
All queued on-demand orders.
TestWeightInfo
A weight info that is only suitable for testing.

Enums§

SpotTrafficCalculationErr
Errors that can happen during spot traffic calculation.

Traits§

WeightInfo

Type Aliases§

BalanceOf
Shorthand for the Balance type the runtime is using.