pub trait RelayChain: Chain {
    type SovereignAccountOf: ConvertLocation<<Self::Runtime as Config>::AccountId>;
    type MessageProcessor: ProcessMessage<Origin = Id> + ServiceQueues;

    // Required method
    fn init();

    // Provided methods
    fn child_location_of(id: Id) -> MultiLocation { ... }
    fn sovereign_account_id_of(
        location: MultiLocation
    ) -> <Self::Runtime as Config>::AccountId { ... }
    fn sovereign_account_id_of_child_para(
        id: Id
    ) -> <Self::Runtime as Config>::AccountId { ... }
}

Required Associated Types§

source

type SovereignAccountOf: ConvertLocation<<Self::Runtime as Config>::AccountId>

source

type MessageProcessor: ProcessMessage<Origin = Id> + ServiceQueues

Required Methods§

Provided Methods§

source

fn child_location_of(id: Id) -> MultiLocation

source

fn sovereign_account_id_of( location: MultiLocation ) -> <Self::Runtime as Config>::AccountId

source

fn sovereign_account_id_of_child_para( id: Id ) -> <Self::Runtime as Config>::AccountId

Object Safety§

This trait is not object safe.

Implementors§