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
palletmodule in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs§
- Order
Queue - All queued on-demand orders.
- Test
Weight Info - A weight info that is only suitable for testing.
Enums§
- Spot
Traffic Calculation Err - Errors that can happen during spot traffic calculation.
Traits§
Type Aliases§
- Balance
Of - Shorthand for the Balance type the runtime is using.