Crate pallet_nft[−][src]
NFT Module
Create a batch of NonFungible or Fungible Tokens.
Terminology
- Mint: Mint one or a batch of NFTs or some FTs (SemiFts)
- transfer: Transfer one or a batch of tokens from one account to another account
- Burn: Destroy one or a batch of tokens from an account. This is an irreversible operation.
- Fungible Token: Fungible or semi-fungible token
- Non-fungible asset: Unique or have some copies of the token.
Interface
Dispatchable Functions
mint_fungible
- Mint some FTsmint_non_fungible
- Mint one or a batch of NFTstransfer_fungible
- Transfer some FTs to another accounttransfer_non_fungible
- Transfer one or a batch of NFTs to another accountburn_fungible
- Destroy some FTs by ownerburn_non_fungible
- Destroy one or a batch of NFTs NFTs by owner
Re-exports
pub use $crate::traits::GetPalletVersion as _; |
Structs
AddressBalances | Account balance in collection. (collection_id, address) => balance; |
BurnedTokens | The set of Collection burned count. collection_id => burned amount |
LastTokenId | The set of collection last token id. collection_id => nft_id |
Module | |
TokenInfo | Details of a NFT |
Tokens | The set of minted NFTs. (collection_id, start_idx) => nft_info |
Enums
Call | Dispatchable calls. |
Error | Errors inform users that something went wrong. |
RawEvent | Events for this module. |
Traits
Config | |
NFTInterface |
Type Definitions
Event |