Trait xcm_emulator::Parachain
source · pub trait Parachain: Chain {
type XcmpMessageHandler: XcmpMessageHandler;
type LocationToAccountId: ConvertLocation<AccountIdOf<Self::Runtime>>;
type ParachainInfo: Get<ParaId>;
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() -> ParaId { ... }
fn parent_location() -> Location { ... }
fn sibling_location_of(para_id: ParaId) -> Location { ... }
fn sovereign_account_id_of(location: Location) -> AccountIdOf<Self::Runtime> { ... }
}
Required Associated Types§
type XcmpMessageHandler: XcmpMessageHandler
type LocationToAccountId: ConvertLocation<AccountIdOf<Self::Runtime>>
type ParachainInfo: Get<ParaId>
type ParachainSystem
type MessageProcessor: ProcessMessage + ServiceQueues
Required Methods§
Provided Methods§
fn para_id() -> ParaId
fn parent_location() -> Location
fn sibling_location_of(para_id: ParaId) -> Location
fn sovereign_account_id_of(location: Location) -> AccountIdOf<Self::Runtime>
Object Safety§
This trait is not object safe.