tokenName
untyped stringValue
"Golden Ticket"
tokenSymbol
untyped stringValue
"GOLD"
ticket
v0.TokenIDValue
<gnolang.StringValue>
image
untyped stringValue
"https://xjfvwq1pdzcznycc.public.blob.vercel-storage.com/planes/777.png"
errNoTicket
untyped stringValue
"goldenticket: there is one ticket, id 1"
errNotOwner
untyped stringValue
"goldenticket: caller does not hold the ticket"
errBadOwner
untyped stringValue
"goldenticket: invalid recipient address"
Token
*v0.Token- OID
- 0143ff…8740:16
Token details
ledger
*v0.PrivateLedger- OID
- 0143ff…8740:18
ledger details
init.9
func()- OID
- 0143ff…8740:5
init.9 details
bootstrap
func(holder .uverse.address, rlm .uverse.realm)bootstrap creates the collection and mints the ticket to holder; with no valid holder, under \`gno test\`, it mints nothing.
- OID
- 0143ff…8740:7
bootstrap details
Name
func() stringName and Symbol, as GRC721 tokens have them. Adena reads both from the NewToken event.
- OID
- 0143ff…8740:8
Name details
Symbol
func() string- OID
- 0143ff…8740:9
Symbol details
OwnerOf
func(tid v0.TokenID) (.uverse.address, .uverse.error)- OID
- 0143ff…8740:10
OwnerOf details
BalanceOf
func(addr .uverse.address) (int64, .uverse.error)BalanceOf returns 1 for the holder of the ticket, 0 for everyone else.
- OID
- 0143ff…8740:11
BalanceOf details
TokenURI
func(tid v0.TokenID) (string, .uverse.error)TokenURI returns the image of the ticket: what Adena shows.
- OID
- 0143ff…8740:12
TokenURI details
TokenMetadata
func(tid v0.TokenID) (string, .uverse.error)TokenMetadata returns the metadata of the ticket as JSON, with the keys Adena reads.
- OID
- 0143ff…8740:13
TokenMetadata details
Transfer
func(to .uverse.address)Transfer gives the ticket to someone else. Only its holder can, by a direct call (maketx call or Adena), not through another realm.
- OID
- 0143ff…8740:14
Transfer details
Render
func(string) stringRender shows the ticket and who holds it.
- OID
- 0143ff…8740:15
Render details
tokenName
:
untyped string
="Golden Ticket"
tokenSymbol
:
untyped string
="GOLD"
ticket
:
v0.TokenID
=<gnolang.StringValue>
image
:
untyped string
="https://xjfvwq1pdzcznycc.public.blob.vercel-storage.com/planes/777.png"
errNoTicket
:
untyped string
="goldenticket: there is one ticket, id 1"
errNotOwner
:
untyped string
="goldenticket: caller does not hold the ticket"
errBadOwner
:
untyped string
="goldenticket: invalid recipient address"