referrerpolicy=no-referrer-when-downgrade
collectives_westend_integration_tests

Trait Parachain

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

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.

Implementations on Foreign Types§

Source§

impl<N> Parachain for AssetHubWestend<N>
where N: Network,

Source§

impl<N> Parachain for PenpalA<N>
where N: Network,

Source§

impl<N> Parachain for PenpalB<N>
where N: Network,

Source§

impl<N> Parachain for PeopleWestend<N>
where N: Network,

§

impl<N> Parachain for BridgeHubWestend<N>
where N: Network,

§

impl<N> Parachain for CollectivesWestend<N>
where N: Network,

§

impl<N> Parachain for CoretimeWestend<N>
where N: Network,

Implementors§