Trait orml_traits::asset_registry::Inspect

source ·
pub trait Inspect {
    type AssetId;
    type Balance: Clone + Debug + Eq + PartialEq;
    type CustomMetadata: Parameter + Member + TypeInfo;
    type StringLimit: Get<u32>;

    // Required methods
    fn asset_id(location: &Location) -> Option<Self::AssetId>;
    fn metadata(
        asset_id: &Self::AssetId
    ) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>;
    fn metadata_by_location(
        location: &Location
    ) -> Option<AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>;
    fn location(
        asset_id: &Self::AssetId
    ) -> Result<Option<Location>, DispatchError>;
}

Required Associated Types§

source

type AssetId

AssetId type

source

type Balance: Clone + Debug + Eq + PartialEq

Balance type

source

type CustomMetadata: Parameter + Member + TypeInfo

Custom metadata type

source

type StringLimit: Get<u32>

Name and symbol string limit

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§