1package gnft23import (4 ufmt "gno.land/p/nt/ufmt/v0"5)67const (8 errCannotSetURI = "[GNOSWAP-GNFT-001] cannot set URI"9 errInvalidAddress = "[GNOSWAP-GNFT-002] invalid address"1011 // Transfer errors12 errNotOwnerOrApproved = "[GNOSWAP-GNFT-003] caller is not token owner or approved"13 errTokenNotExists = "[GNOSWAP-GNFT-004] token does not exist"14 errTransferToSelf = "[GNOSWAP-GNFT-005] cannot transfer to self"1516 errInvalidTokenParams = "[GNOSWAP-GNFT-006] invalid token parameters"17 errInvalidTokenParamsRange = "[GNOSWAP-GNFT-007] token parameters out of range"18 errInvalidColorFormat = "[GNOSWAP-GNFT-008] invalid color format"19 errStakedTokenLocked = "[GNOSWAP-GNFT-009] staked token is locked"20 errSpoofedRealm = "[GNOSWAP-GNFT-010] rlm does not match the current crossing frame"21)2223// makeErrorWithDetails creates an error with additional context.24func makeErrorWithDetails(message string, details string) error {25 return ufmt.Errorf("%s || %s", message, details)26}27Approve(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, approved string, tid string) interface {Error func() string}
BalanceOf(owner string) (int64, interface {Error func() string})
Burn(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, tid string)
Exists(tid string) bool
GetApproved(tid string) (string, interface {Error func() string})
IsApprovedForAll(owner string, operator string) bool
Mint(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, to string, tid string) string
MustOwnerOf(tid string) string
Name() string
OwnerOf(tid string) (string, interface {Error func() string})
Render(path string) string
SetApprovalForAll(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, operator string, approved bool) interface {Error func() string}
SetTokenURI(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, tid string, tURI string) (bool, interface {Error func() string})
Symbol() string
TokenURI(tid string) (string, interface {Error func() string})
TotalSupply() int64
TransferFrom(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, from string, to string, tid string) interface {Error func() string}
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.