maxImageLen
untyped bigintValue
(200 <untyped> bigint)
maxTidLen
untyped bigintValue
(64 <untyped> bigint)
saleCap
untyped bigintValue
(100 <untyped> bigint)
pageMax
untyped bigintValue
(50 <untyped> bigint)
token
*v0.Token- OID
- 0b6124…5997:153
token details
ledger
*v0.PrivateLedger- OID
- 0b6124…5997:155
ledger details
metaView
*v0.Metadata- OID
- 0b6124…5997:170
metaView details
metaLed
*v0.Ledger- OID
- 0b6124…5997:176
metaLed details
enumView
*v0.Enumerable- OID
- 0b6124…5997:178
enumView details
tokenSeq
v0.IDValue
<zero>
creator
.uverse.addressValue
<gnolang.StringValue>
ready
boolValue
true
admins
v0.Tree- OID
- 0b6124…5997:12
admins details
listings
v0.Tree- OID
- 0b6124…5997:14
listings details
sales
[100]shop.sale- OID
- 0b6124…5997:16
sales details
saleN
intValue
0
listing
typeValue
shop.listing
sale
typeValue
shop.sale
Init
func(name string, symbol string)Init creates the collection once. The caller is the creator and can mint.
- OID
- 0b6124…5997:118
Init details
Grant
func(who .uverse.address)Grant lets who mint. Only the creator can call it.
- OID
- 0b6124…5997:120
Grant details
Revoke
func(who .uverse.address)Revoke removes a minter. Only the creator can call it.
- OID
- 0b6124…5997:121
Revoke details
canMint
func(caller .uverse.address) bool- OID
- 0b6124…5997:122
canMint details
Mint
func(tid string, name string, image string)Mint issues one token to the caller. image is an https URL.
- OID
- 0b6124…5997:123
Mint details
Transfer
func(to .uverse.address, tid string)Transfer moves a token the caller owns.
- OID
- 0b6124…5997:124
Transfer details
requireReady
func()- OID
- 0b6124…5997:125
requireReady details
requireUser
func() .uverse.address- OID
- 0b6124…5997:126
requireUser details
parseTid
func(tid string) v0.TokenID- OID
- 0b6124…5997:127
parseTid details
httpsURL
func(s string) bool- OID
- 0b6124…5997:128
httpsURL details
ascii
func(s string) bool- OID
- 0b6124…5997:129
ascii details
ownerOf
func(tid v0.TokenID) .uverse.address- OID
- 0b6124…5997:130
ownerOf details
metaNameImage
func(tid v0.TokenID) (string, string)- OID
- 0b6124…5997:131
metaNameImage details
page
func(offset int, limit int) (int, int)- OID
- 0b6124…5997:132
page details
quote
func(s string) string- OID
- 0b6124…5997:133
quote details
i64
func(n int64) string- OID
- 0b6124…5997:134
i64 details
List
func(tid string, price int64)List puts tid on sale for price ugnot. The token stays with the owner. A dead listing (the recorded seller no longer owns it) is replaced.
- OID
- 0b6124…5997:135
List details
Cancel
func(tid string)Cancel removes the caller's listing, or a listing whose seller no longer owns the token.
- OID
- 0b6124…5997:137
Cancel details
Buy
func(tid string)Buy pays the listing price in ugnot and takes the token. The attached send must be exactly the price, one ugnot coin.
- OID
- 0b6124…5997:138
Buy details
mustListing
func(id v0.TokenID) shop.listing- OID
- 0b6124…5997:139
mustListing details
pushSale
func(s shop.sale)- OID
- 0b6124…5997:140
pushSale details
InfoJSON
func() stringInfoJSON is the collection header. ready is false until Init.
- OID
- 0b6124…5997:141
InfoJSON details
adminsJSON
func() string- OID
- 0b6124…5997:143
adminsJSON details
ListingsJSON
func(offset int, limit int) stringListingsJSON returns one page of listings, oldest key first.
- OID
- 0b6124…5997:144
ListingsJSON details
ListingJSON
func(tid string) stringListingJSON returns one listing or "null".
- OID
- 0b6124…5997:145
ListingJSON details
TokenJSON
func(tid string) stringTokenJSON returns one token, listed or not.
- OID
- 0b6124…5997:146
TokenJSON details
TokensJSON
func(owner .uverse.address, offset int, limit int) stringTokensJSON lists tokens owned by owner.
- OID
- 0b6124…5997:147
TokensJSON details
SalesJSON
func(offset int, limit int) stringSalesJSON returns the newest sales first.
- OID
- 0b6124…5997:148
SalesJSON details
lotJSON
func(tid string, lot shop.listing) string- OID
- 0b6124…5997:149
lotJSON details
boolJSON
func(v bool) string- OID
- 0b6124…5997:150
boolJSON details
join
func(parts []string) string- OID
- 0b6124…5997:151
join details
Render
func(path string) string- OID
- 0b6124…5997:152