referrerpolicy=no-referrer-when-downgrade
pub trait Para: Chain {
    type XcmpMessageHandler: XcmpMessageHandler;
    type LocationToAccountId: ConvertLocation<<Self::Runtime as Config>::AccountId>;
    type ParachainInfo: Get<Id>;
    type ParachainSystem;
    type MessageProcessor: ProcessMessage + ServiceQueues;
    type DigestProvider: Convert<<<<Self::Runtime as Config>::Block as HeaderProvider>::HeaderT as Header>::Number, Digest>;
    type AdditionalInherentCode: AdditionalInherentCode;

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

Source

type XcmpMessageHandler: XcmpMessageHandler

Source

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

Source

type ParachainInfo: Get<Id>

Source

type ParachainSystem

Source

type MessageProcessor: ProcessMessage + ServiceQueues

Source

type DigestProvider: Convert<<<<Self::Runtime as Config>::Block as HeaderProvider>::HeaderT as Header>::Number, Digest>

Source

type AdditionalInherentCode: AdditionalInherentCode

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

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§