Contract ExampleNFT
Implemented Interfaces:
NonFungibleToken
Interfaces
resource interface ExampleNFTCollectionPublic
Defines the methods that are particular to this NFT contract collection
Structs & Resources
resource NFT
The core resource that represents a Non Fungible Token. New instances will be created using the NFTMinter resource and stored in the Collection resource
resource Collection
The resource that will be holding the NFTs inside any account. In order to be able to manage NFTs any account will need to create an empty collection first
resource NFTMinter
Resource that an admin or something similar would own to be able to mint new NFTs
Functions
fun createEmptyCollection()
Allows anyone to create a new empty collection
Returns: The new Collection resource
Events
event ContractInitialized
The event that is emitted when the contract is created
event Withdraw
The event that is emitted when an NFT is withdrawn from a Collection
event Deposit
The event that is emitted when an NFT is deposited to a Collection