pub trait Relay: 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) -> Location { ... }
fn sovereign_account_id_of(
location: Location,
) -> <Self::Runtime as Config>::AccountId { ... }
fn sovereign_account_id_of_child_para(
id: Id,
) -> <Self::Runtime as Config>::AccountId { ... }
}
Required Associated Types§
type SovereignAccountOf: ConvertLocation<<Self::Runtime as Config>::AccountId>
type MessageProcessor: ProcessMessage<Origin = Id> + ServiceQueues
Required Methods§
Provided Methods§
fn child_location_of(id: Id) -> Location
fn sovereign_account_id_of( location: Location, ) -> <Self::Runtime as Config>::AccountId
fn sovereign_account_id_of_child_para( id: Id, ) -> <Self::Runtime as Config>::AccountId
Object Safety§
This trait is not object safe.