referrerpolicy=no-referrer-when-downgrade

QueueOnDemandOrders

Trait QueueOnDemandOrders 

Source
pub trait QueueOnDemandOrders<RelayBlockNumber> {
    // Required methods
    fn queue_batch(batch: Vec<(TaskId, RelayBlockNumber)>);
    fn ensure_successful_delivery();
}
Expand description

Instructs the Relay chain to enqueue a batch of on-demand orders.

On the Coretime chain this is implemented by sending an XCM Transact to the Relay chain’s coretime pallet.

Required Methods§

Source

fn queue_batch(batch: Vec<(TaskId, RelayBlockNumber)>)

Enqueue batch on the Relay chain.

Each entry is the parachain the order was placed for and the Relay-chain block number it was ordered at.

Source

fn ensure_successful_delivery()

Make sure that the batches queued afterwards reach the Relay chain.

Used to set up the benchmarks, so that they measure a successful delivery.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<RelayBlockNumber> QueueOnDemandOrders<RelayBlockNumber> for ()

Source§

fn queue_batch(_batch: Vec<(TaskId, RelayBlockNumber)>)

Source§

fn ensure_successful_delivery()

Implementors§