Documentation
¶
Overview ¶
A simple NFT contract example based on WASM wrapper
Index ¶
- Constants
- func Burn(tokenId core.ObjectID) bool
- func GetNFTInfo() (string, string, uint64)
- func GetOwner() core.Address
- func InitializeNFT(name string, symbol string) core.ObjectID
- func Mint(to core.Address, tokenURI string) core.ObjectID
- func OwnerOf(tokenId core.ObjectID) core.Address
- func TokenURI(tokenId core.ObjectID) string
- func Transfer(from core.Address, to core.Address, tokenId core.ObjectID) bool
Constants ¶
View Source
const ( // Fields in default Object NFTNameKey = "name" // NFT name NFTSymbolKey = "symbol" // NFT symbol NFTTotalSupplyKey = "total_supply" // Total supply NFTTokenURIKey = "token_uri" // Token URI NFTTokenIDKey = "token_id" // Token ID NFTTokenOwnerKey = "owner" // Token owner )
Constants - Field names in objects
Variables ¶
This section is empty.
Functions ¶
func InitializeNFT ¶
Initialize NFT contract
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.