Trait frame_support::traits::tokens::nonfungible::Mutate[][src]

pub trait Mutate<AccountId>: Inspect<AccountId> {
    fn mint_into(
        _instance: &Self::InstanceId,
        _who: &AccountId
    ) -> DispatchResult { ... }
fn burn_from(_instance: &Self::InstanceId) -> DispatchResult { ... }
fn set_attribute(
        _instance: &Self::InstanceId,
        _key: &[u8],
        _value: &[u8]
    ) -> DispatchResult { ... }
fn set_typed_attribute<K: Encode, V: Encode>(
        instance: &Self::InstanceId,
        key: &K,
        value: &V
    ) -> DispatchResult { ... } }
Expand description

Trait for providing an interface for NFT-like assets which may be minted, burned and/or have attributes set on them.

Provided methods

Mint some asset instance to be owned by who.

By default, this is not a supported operation.

Burn some asset instance.

By default, this is not a supported operation.

Set attribute value of asset instance’s key.

By default, this is not a supported operation.

Attempt to set the strongly-typed attribute value of instance’s key.

By default this just attempts to use set_attribute.

Implementors