Expand description
The core non-fungible token standard. This can be though of as the base standard, with the others being extension standards.
Modules§
Structs§
- NonFungible
Token - Implementation of the non-fungible token standard. Allows to include NEP-171 compatible token to any contract. There are next traits that any contract may implement: - NonFungibleTokenCore – interface with nft_transfer methods. NonFungibleToken provides methods for it. - NonFungibleTokenApproval – interface with nft_approve methods. NonFungibleToken provides methods for it. - NonFungibleTokenEnumeration – interface for getting lists of tokens. NonFungibleToken provides methods for it. - NonFungibleTokenMetadata – return metadata for the token in NEP-177, up to contract to implement.
Enums§
Traits§
- NonFungible
Token Core - Used for all non-fungible tokens. The specification for the core non-fungible token standard lays out the reasoning for each method. It’s important to check out NonFungibleTokenReceiver and NonFungibleTokenResolver to understand how the cross-contract call work.
- NonFungible
Token Receiver - Used when an NFT is transferred using
nft_transfer_call
. This trait is implemented on the receiving contract, not on the NFT contract. - NonFungible
Token Resolver - Used when an NFT is transferred using
nft_transfer_call
. This is the method that’s called afternft_on_transfer
. This trait is implemented on the NFT contract.