Trait pallet_rings::ChainList

source ·
pub trait ChainList: Parameter + MaxEncodedLen {
    type Balance: Into<u128>;
    type ChainAssets: ChainAssetsList;

    // Required methods
    fn get_location(&self) -> MultiLocation;
    fn get_main_asset(&self) -> Self::ChainAssets;
}
Expand description

A chain [MultiLocation] abstraction trait.

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

This should be implemented properly in the runtime.

Required Associated Types§

Required Methods§

source

fn get_location(&self) -> MultiLocation

Returns the chain’s [MultiLocation].

source

fn get_main_asset(&self) -> Self::ChainAssets

Returns the chain’s main asset as ChainAssetsList.

Object Safety§

This trait is not object safe.

Implementors§