pub trait Mutate<AccountId>: Inspect<AccountId> {
    fn mint_into(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId,
        _who: &AccountId
    ) -> DispatchResult { ... } fn burn(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId,
        _maybe_check_owner: Option<&AccountId>
    ) -> DispatchResult { ... } fn set_attribute(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId,
        _key: &[u8],
        _value: &[u8]
    ) -> DispatchResult { ... } fn set_typed_attribute<K: Encode, V: Encode>(
        collection: &Self::CollectionId,
        item: &Self::ItemId,
        key: &K,
        value: &V
    ) -> DispatchResult { ... } fn set_collection_attribute(
        _collection: &Self::CollectionId,
        _key: &[u8],
        _value: &[u8]
    ) -> DispatchResult { ... } fn set_typed_collection_attribute<K: Encode, V: Encode>(
        collection: &Self::CollectionId,
        key: &K,
        value: &V
    ) -> DispatchResult { ... } }
Expand description

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

Provided Methods§

Mint some item of collection to be owned by who.

By default, this is not a supported operation.

Burn some item of collection.

By default, this is not a supported operation.

Set attribute value of item of collection’s key.

By default, this is not a supported operation.

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

By default this just attempts to use set_attribute.

Set attribute value of collection’s key.

By default, this is not a supported operation.

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

By default this just attempts to use set_attribute.

Implementors§