Trait xcm_emulator::RelayChain
source · pub trait RelayChain: Chain {
type SovereignAccountOf: ConvertLocation<AccountIdOf<Self::Runtime>>;
type MessageProcessor: ProcessMessage<Origin = ParaId> + ServiceQueues;
// Required method
fn init();
// Provided methods
fn child_location_of(id: ParaId) -> Location { ... }
fn sovereign_account_id_of(location: Location) -> AccountIdOf<Self::Runtime> { ... }
fn sovereign_account_id_of_child_para(
id: ParaId,
) -> AccountIdOf<Self::Runtime> { ... }
}
Required Associated Types§
type SovereignAccountOf: ConvertLocation<AccountIdOf<Self::Runtime>>
type MessageProcessor: ProcessMessage<Origin = ParaId> + ServiceQueues
Required Methods§
Provided Methods§
fn child_location_of(id: ParaId) -> Location
fn sovereign_account_id_of(location: Location) -> AccountIdOf<Self::Runtime>
fn sovereign_account_id_of_child_para(id: ParaId) -> AccountIdOf<Self::Runtime>
Object Safety§
This trait is not object safe.