pub trait CoreAccountDerivation<T: Config> {
    // Required methods
    fn derive_core_account(core_id: T::CoreId) -> T::AccountId;
    fn core_location(core_id: T::CoreId) -> Junctions;
}
Expand description

Trait providing the XCM location and the derived account of a core.

Required Methods§

source

fn derive_core_account(core_id: T::CoreId) -> T::AccountId

Derives the core’s AccountId.

source

fn core_location(core_id: T::CoreId) -> Junctions

Specifies a core’s location.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Config> CoreAccountDerivation<T> for Pallet<T>
where T::AccountId: From<[u8; 32]>,