pub trait Parachain: Chain {
    type XcmpMessageHandler: XcmpMessageHandler;
    type LocationToAccountId: ConvertLocation<<Self::Runtime as Config>::AccountId>;
    type ParachainInfo: Get<Id>;
    type ParachainSystem;
    type MessageProcessor: ProcessMessage + ServiceQueues;

    // Required methods
    fn init();
    fn new_block();
    fn finalize_block();
    fn set_last_head();

    // Provided methods
    fn para_id() -> Id { ... }
    fn parent_location() -> Location { ... }
    fn sibling_location_of(para_id: Id) -> Location { ... }
    fn sovereign_account_id_of(
        location: Location
    ) -> <Self::Runtime as Config>::AccountId { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

source

fn para_id() -> Id

source

fn parent_location() -> Location

source

fn sibling_location_of(para_id: Id) -> Location

source

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

Object Safety§

This trait is not object safe.

Implementors§