Crates.io | pallet-uniques |
lib.rs | pallet-uniques |
version | 38.0.0 |
source | src |
created_at | 2022-11-21 10:40:46.717002 |
updated_at | 2024-09-26 08:46:14.865986 |
description | FRAME NFT asset management pallet |
homepage | https://paritytech.github.io/polkadot-sdk/ |
repository | https://github.com/paritytech/polkadot-sdk.git |
max_upload_size | |
id | 720030 |
size | 185,135 |
A simple, secure module for dealing with non-fungible assets.
The Uniques module provides functionality for non-fungible tokens' management, including:
To use it in your runtime, you need to implement
uniques::Config
.
The supported dispatchable functions are documented in the
uniques::Call
enum.
The Uniques pallet in Substrate is designed to make the following possible:
create
: Create a new collection by placing a deposit.transfer
: Transfer an item to a new owner.redeposit
: Update the deposit amount of an item, potentially freeing funds.approve_transfer
: Name a delegate who may authorise a transfer.cancel_approval
: Revert the effects of a previous approve_transfer
.destroy
: Destroy a collection.mint
: Mint a new item within a collection.burn
: Burn an item within a collection.freeze
: Prevent an individual item from being transferred.thaw
: Revert the effects of a previous freeze
.freeze_collection
: Prevent all items within a collection from being transferred.thaw_collection
: Revert the effects of a previous freeze_collection
.transfer_ownership
: Alter the owner of a collection, moving all associated deposits.set_team
: Alter the permissioned accounts of a collection.set_attribute
: Set an attribute of an item or collection.clear_attribute
: Remove an attribute of an item or collection.set_metadata
: Set general metadata of an item.clear_metadata
: Remove general metadata of an item.set_collection_metadata
: Set general metadata of a collection.clear_collection_metadata
: Remove general metadata of a collection.force_create
: Create a new collection.force_asset_status
: Alter the underlying characteristics of a collection.Please refer to the Call
enum
and its associated variants for documentation on each function.
License: Apache-2.0
Polkadot SDK stable2409