Trait xcm_emulator::Network
source · pub trait Network {
type Relay: RelayChain;
type Bridge: Bridge;
Show 17 methods
// Required methods
fn name() -> &'static str;
fn init();
fn reset();
fn para_ids() -> Vec<u32>;
fn relay_block_number() -> u32;
fn set_relay_block_number(number: u32);
fn process_messages();
fn has_unprocessed_messages() -> bool;
fn process_downward_messages();
fn process_horizontal_messages();
fn process_upward_messages();
fn process_bridged_messages();
fn hrmp_channel_parachain_inherent_data(
para_id: u32,
relay_parent_number: u32,
parent_head_data: HeadData,
) -> ParachainInherentData;
// Provided methods
fn send_horizontal_messages<I: Iterator<Item = (ParaId, RelayBlockNumber, Vec<u8>)>>(
to_para_id: u32,
iter: I,
) { ... }
fn send_upward_message(from_para_id: u32, msg: Vec<u8>) { ... }
fn send_downward_messages(
to_para_id: u32,
iter: impl Iterator<Item = (RelayBlockNumber, Vec<u8>)>,
) { ... }
fn send_bridged_messages(msg: BridgeMessage) { ... }
}
Required Associated Types§
Required Methods§
fn name() -> &'static str
fn init()
fn reset()
fn para_ids() -> Vec<u32>
fn relay_block_number() -> u32
fn set_relay_block_number(number: u32)
fn process_messages()
fn has_unprocessed_messages() -> bool
fn process_downward_messages()
fn process_horizontal_messages()
fn process_upward_messages()
fn process_bridged_messages()
fn hrmp_channel_parachain_inherent_data( para_id: u32, relay_parent_number: u32, parent_head_data: HeadData, ) -> ParachainInherentData
Provided Methods§
fn send_horizontal_messages<I: Iterator<Item = (ParaId, RelayBlockNumber, Vec<u8>)>>( to_para_id: u32, iter: I, )
fn send_upward_message(from_para_id: u32, msg: Vec<u8>)
fn send_downward_messages( to_para_id: u32, iter: impl Iterator<Item = (RelayBlockNumber, Vec<u8>)>, )
fn send_bridged_messages(msg: BridgeMessage)
Object Safety§
This trait is not object safe.