pub trait InspectMetadata<AccountId>: Inspect<AccountId> {
    // Required methods
    fn name(asset: &Self::AssetId) -> Vec<u8> ;
    fn symbol(asset: &Self::AssetId) -> Vec<u8> ;
    fn decimals(asset: &Self::AssetId) -> u8;
}
Expand description

Trait for reading metadata from a fungible asset.

Required Methods§

source

fn name(asset: &Self::AssetId) -> Vec<u8>

Return the name of an asset.

source

fn symbol(asset: &Self::AssetId) -> Vec<u8>

Return the symbol of an asset.

source

fn decimals(asset: &Self::AssetId) -> u8

Return the decimals of an asset.

Implementors§