Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

igrc721.gno

0.71 Kb · 31 lines
 1package grc721v2
 2
 3type IGRC721Reader interface {
 4	Name() string
 5	Symbol() string
 6	TokenCount() int64
 7	BalanceOf(owner address) (int64, error)
 8	OwnerOf(tid TokenID) (address, error)
 9	GetApproved(tid TokenID) (address, error)
10	IsApprovedForAll(owner, operator address) bool
11}
12
13type (
14	TokenID  string
15	TokenURI string
16)
17
18func (t TokenID) String() string  { return string(t) }
19func (t TokenURI) String() string { return string(t) }
20
21const (
22	MintEvent           = "Mint"
23	BurnEvent           = "Burn"
24	TransferEvent       = "Transfer"
25	ApprovalEvent       = "Approval"
26	ApprovalForAllEvent = "ApprovalForAll"
27	TokenURIUpdateEvent = "TokenUriUpdate"
28	MetadataUpdateEvent = "MetadataUpdate"
29)
30
31type NFTGetter func() IGRC721Reader