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

errors.gno

1.22 Kb · 22 lines
 1package gnofly
 2
 3// The refusals of this realm, as strings: a string constant costs its length
 4// in storage where an errors.New value costs about a kilobyte (see the planes
 5// realm's errors.gno). A panic with a string aborts the call with it.
 6const (
 7	errSpoofedRealm = "gnofly market: spoofed realm"
 8	errNotAdmin     = "gnofly market: caller is not an admin"
 9	errNotUserCall  = "gnofly market: call it directly from a wallet (maketx call or Adena)"
10
11	errUnknownPlane = "gnofly market: no such plane"
12	errNotOwner     = "gnofly market: caller does not own this plane"
13	errNotSeller    = "gnofly market: caller is not the seller of this plane"
14	errListed       = "gnofly market: this plane is listed"
15	errNotListed    = "gnofly market: this plane is not listed"
16	errOwnListing   = "gnofly market: a seller cannot buy their own listing"
17	errPaused       = "gnofly market: new listings are paused"
18	errBadPrice     = "gnofly market: price must be between 1000000 and 1000000000000 ugnot"
19	errNotApproved  = "gnofly market: approve the market on the planes realm first (Approve or SetApprovalForAll)"
20	errBadRecipient = "gnofly market: invalid recipient address"
21	errNotStray     = "gnofly market: this plane is not held by the market outside a listing"
22)