referrerpolicy=no-referrer-when-downgrade
xcm_emulator

Trait 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§

Required Methods§

Provided Methods§

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.

Implementors§

impl<N: Network> RelayChain for Rococo<N>

impl<N: Network> RelayChain for Westend<N>