Trait pallet_rings::ChainAssetsList

source ·
pub trait ChainAssetsList: Parameter + MaxEncodedLen {
    type Chains: ChainList;

    // Required methods
    fn get_chain(&self) -> Self::Chains;
    fn get_asset_location(&self) -> MultiLocation;
}
Expand description

A chain asset [MultiLocation] abstraction trait.

It provides an interface for easily getting a chain’s asset [MultiLocation] and to go back and forth between the asset and its parent chain.

This should be implemented properly in the runtime.

Required Associated Types§

Required Methods§

source

fn get_chain(&self) -> Self::Chains

Returns the asset’s parent chain.

source

fn get_asset_location(&self) -> MultiLocation

Returns the asset’s [MultiLocation].

Object Safety§

This trait is not object safe.

Implementors§