pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required method
    fn transfer(
        collection: &Self::CollectionId,
        item: &Self::ItemId,
        destination: &AccountId
    ) -> DispatchResult;

    // Provided methods
    fn disable_transfer(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId
    ) -> DispatchResult { ... }
    fn enable_transfer(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId
    ) -> DispatchResult { ... }
}
Expand description

Trait for transferring non-fungible sets of items.

Required Methods§

source

fn transfer( collection: &Self::CollectionId, item: &Self::ItemId, destination: &AccountId ) -> DispatchResult

Transfer item of collection into destination account.

Provided Methods§

source

fn disable_transfer( _collection: &Self::CollectionId, _item: &Self::ItemId ) -> DispatchResult

Disable the item of collection transfer.

By default, this is not a supported operation.

source

fn enable_transfer( _collection: &Self::CollectionId, _item: &Self::ItemId ) -> DispatchResult

Re-enable the item of collection transfer.

By default, this is not a supported operation.

Implementors§