Trait orml_traits::nft::InspectExtended

source ·
pub trait InspectExtended<AccountId>: Inspect<AccountId> {
    type Balance: AtLeast32BitUnsigned + FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default;

    // Required methods
    fn balance(who: &AccountId) -> Self::Balance;
    fn next_token_id(class: Self::CollectionId) -> Self::ItemId;
}
Expand description

Trait to complement the Inspect trait

Required Associated Types§

Required Methods§

source

fn balance(who: &AccountId) -> Self::Balance

The number of NFTs assigned to who.

source

fn next_token_id(class: Self::CollectionId) -> Self::ItemId

Get the next token ID to be minted for a Class

Object Safety§

This trait is not object safe.

Implementors§