Trait pallet_rings::traits::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§
sourcefn get_asset_location(&self) -> MultiLocation
fn get_asset_location(&self) -> MultiLocation
Returns the asset’s [MultiLocation
].
Object Safety§
This trait is not object safe.