referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::Locker

pub trait Locker<CollectionId, ItemId> {
    // Required method
    fn is_locked(collection: CollectionId, item: ItemId) -> bool;
}
Expand description

Trait to handle NFT locking mechanism to ensure interactions with the asset can be implemented downstream to extend logic of Uniques/Nfts current functionality.

Required Methods§

fn is_locked(collection: CollectionId, item: ItemId) -> bool

Check if the asset should be locked and prevent interactions with the asset from executing.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<CollectionId, ItemId> Locker<CollectionId, ItemId> for ()

§

fn is_locked(_collection: CollectionId, _item: ItemId) -> bool

Implementors§