Trait orml_traits::asset_registry::Inspect
source · pub trait Inspect {
type AssetId;
type Balance;
type CustomMetadata: Parameter + Member + TypeInfo;
fn asset_id(location: &MultiLocation) -> Option<Self::AssetId>;
fn metadata(
asset_id: &Self::AssetId
) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata>>;
fn metadata_by_location(
location: &MultiLocation
) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata>>;
fn location(
asset_id: &Self::AssetId
) -> Result<Option<MultiLocation>, DispatchError>;
}
Required Associated Types§
sourcetype CustomMetadata: Parameter + Member + TypeInfo
type CustomMetadata: Parameter + Member + TypeInfo
Custom metadata type