This pallet exposes capabilities for managing unique assets, also known as non-fungible tokens (NFTs).
Assets that share a common metadata structure may be created and distributed by an asset admin. Asset owners may burn assets or transfer their ownership. Configuration parameters are used to limit the total number of a type of asset that may exist as well as the number that any one account may own. Assets are uniquely identified by the hash of the info that defines them, as calculated by the runtime system's hashing algorithm.
This pallet implements the
trait in a way that is optimized for assets that are expected to be traded
mint- Use the provided commodity info to create a new commodity for the specified user. May only be called by the commodity admin.
burn- Destroy a commodity. May only be called by commodity owner.
transfer- Transfer ownership of a commodity to another account. May only be called by current commodity owner.
Unique Assets Interface
Default module instance
Genesis config for the module, allow to build genesis storage.
Events for this module.
Associates a commodity with its ID.
The runtime system's hashing algorithm is used to uniquely identify commodities.