errSpoofedRealm
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: spoofed realm"
errNotAdmin
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: caller is not an admin"
errNotUserCall
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: call it directly from a wallet (maketx call or Adena)"
errUnknownPlane
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: no such plane"
errNotOwner
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: caller does not own this plane"
errNotSeller
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: caller is not the seller of this plane"
errListed
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: this plane is listed"
errNotListed
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: this plane is not listed"
errOwnListing
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: a seller cannot buy their own listing"
errPaused
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: new listings are paused"
errBadPrice
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: price must be between 1000000 and 1000000000000 ugnot"
errNotApproved
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: approve the market on the planes realm first (Approve or SetApprovalForAll)"
errBadRecipient
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: invalid recipient address"
errNotStray
untyped stringThe refusals of this realm, as strings: a string constant costs its length in storage where an errors.New value costs about a kilobyte (see the planes realm's errors.gno). A panic with a string aborts the call with it.
Value
"gnofly market: this plane is not held by the market outside a listing"
payDenom
untyped stringValue
"ugnot"
minPrice
int64Value
1000000
maxPrice
int64Value
1000000000000
supply
untyped bigint// plane ids run from 1 to 777
Value
(777 <untyped> bigint)
listing
typelisting is one plane for sale. The plane itself is held by this realm (escrow) until it is bought or the listing is cancelled.
Value
gnofly.listing
listings
v0.BPTree- OID
- 009420…34f0:4
listings details
paused
boolValue
false
self
.uverse.addressValue
<gnolang.StringValue>
init.22
func()- OID
- 009420…34f0:7
init.22 details
List
func(id int, priceUgnot int64)List puts plane id up for sale at priceUgnot. The caller must own it and have approved this realm on the planes realm (Approve for this plane, or SetApprovalForAll): the plane moves here, in escrow, until it is bought or the listing is cancelled.
- OID
- 009420…34f0:9
List details
UpdatePrice
func(id int, priceUgnot int64)UpdatePrice changes the price of a plane the caller listed.
- OID
- 009420…34f0:10
UpdatePrice details
Cancel
func(id int)Cancel takes a listing down and gives the plane back to its seller. It works while the market is paused.
- OID
- 009420…34f0:11
Cancel details
Buy
func(id int)Buy buys a listed plane: send exactly its price in ugnot. The royalty of the planes realm (RoyaltyInfo: 5% to the gnofly treasury) is paid out of the price, the seller receives the rest, and the plane goes to the buyer. It works while the market is paused.
- OID
- 009420…34f0:12
Buy details
Transfer
func(to .uverse.address, id int)Transfer gives a plane the caller owns, not listed, to another address, through this realm: the call Bazaar's site makes. It needs the same approval as List. A plane can always be moved on the planes realm itself.
- OID
- 009420…34f0:13
Transfer details
SetPaused
func(p bool)SetPaused stops (or resumes) new listings and price changes. Admin of the game realm only. Cancel and Buy keep working, so a move to a newer market never strands a plane: sellers cancel here and list there.
- OID
- 009420…34f0:14
SetPaused details
ReturnStray
func(id int, to .uverse.address)ReturnStray gives back a plane this realm holds outside any listing: one someone sent here by mistake. Admin of the game realm only; to is who it came from, as the chain's transfer events show.
- OID
- 009420…34f0:15
ReturnStray details
Paused
func() boolPaused reports whether new listings are stopped.
- OID
- 009420…34f0:16
Paused details
checkPrice
func(p int64)checkPrice panics unless p is a price this market takes.
- OID
- 009420…34f0:17
checkPrice details
mustListing
func(id int) *gnofly.listingmustListing returns the listing of plane id, or panics.
- OID
- 009420…34f0:18
mustListing details
getListing
func(id int) *gnofly.listinggetListing returns the listing of plane id, or nil.
- OID
- 009420…34f0:19
getListing details
ownerOf
func(id int) .uverse.address- OID
- 009420…34f0:20
ownerOf details
key
func(id int) stringkey is the listings key of plane id: three digits, "042".
- OID
- 009420…34f0:21
key details
tid
func(id int) v0.TokenID- OID
- 009420…34f0:22
tid details
slug
untyped stringslug is the last element of this realm's path.
Value
"gnofly"
maxOpen
untyped bigintmaxOpen is the most listings ListOpen returns, as Bazaar's own realms do.
Value
(50 <untyped> bigint)
Name
func() stringName and Symbol are the planes collection's: the market sells nothing else.
- OID
- 009420…34f0:23
Name details
Symbol
func() string- OID
- 009420…34f0:25
Symbol details
Minted
func() intMinted returns how many planes were minted.
- OID
- 009420…34f0:26
Minted details
OwnerOf
func(tid string) (.uverse.address, .uverse.error)- OID
- 009420…34f0:27
OwnerOf details
TokenURI
func(tid string) stringTokenURI returns the image of a plane, an https URL.
- OID
- 009420…34f0:28
TokenURI details
TokensOf
func(owner string) stringTokensOf returns the ids of the planes owner holds, comma-separated, in id order: "3,42,700". A listed plane is not among them: it is held here.
- OID
- 009420…34f0:29
TokensOf details
ListOpen
func() stringListOpen returns the listings, one line each, in id order, at most 50.
- OID
- 009420…34f0:30
ListOpen details
ItemLine
func(id int) stringItemLine returns the line of plane id, listed or not. It panics for an id that is not a minted plane: Bazaar's site skips the ids it cannot read.
- OID
- 009420…34f0:31
ItemLine details
line
func(id int, l *gnofly.listing) stringline builds the line of plane id; l is its listing, nil when it has none.
- OID
- 009420…34f0:32
line details
plane
typeValue
gnofly.plane
planeInfo
func(id int) gnofly.planeplaneInfo reads plane id from the planes realm's PlaneJSON.
- OID
- 009420…34f0:33
planeInfo details
clean
func(s string) stringclean keeps a field from breaking a line: no "|" and no line break. The planes realm's names and URLs have none; this is a guard, not a filter.
- OID
- 009420…34f0:34
clean details
Render
func(string) stringRender shows the listings on gnoweb.
- OID
- 009420…34f0:35
Render details
gnot
func(ugnot int64) stringgnot writes ugnot as GNOT: 1000000 is "1 GNOT", 1500000 "1.5 GNOT".
- OID
- 009420…34f0:36
gnot details
Address
func() .uverse.address- OID
- 009420…34f0:37
Address details
authority
typeauthority is the one question this realm asks about roles.
Value
gnofly.authority
gameRoles
typegameRoles answers with the roles of the game realm.
Value
gnofly.gameRoles
roles
gnofly.gameRolesroles is the authority of this realm. It is a variable only so that the tests can answer for the game realm, which has no admin under \`gno test\`.
- OID
- 009420…34f0:39
roles details
callerOf
func(int, rlm .uverse.realm) .uverse.address- OID
- 009420…34f0:40
callerOf details
userOf
func(int, rlm .uverse.realm) .uverse.address- OID
- 009420…34f0:42
userOf details
assertAdmin
func(int, rlm .uverse.realm) .uverse.address- OID
- 009420…34f0:43