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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

errors.gno

1.38 Kb · 27 lines
 1package skins
 2
 3// The refusals of this realm, as string constants: a string costs its length
 4// in storage where an errors.New value costs about 1.15 KB (see the planes
 5// realm). A panic with a string aborts the call with the same message.
 6const (
 7	errSpoofedRealm = "gnofly: spoofed realm"
 8	errNotAdmin     = "gnofly: caller is not an admin"
 9	errBadCatalog   = "gnofly: corrupt catalog line"
10
11	errInvalidID     = "gnofly: id must be 1 to 32 characters of [a-z0-9-]"
12	errReservedID    = "gnofly: classic is the free look of every pilot, not a skin to sell"
13	errInvalidName   = "gnofly: name must be 1 to 40 characters of [A-Za-z0-9 '.!-]"
14	errInvalidModel  = "gnofly: model must be 1 to 16 characters of [a-z0-9-]"
15	errInvalidPilot  = "gnofly: pilot must be none or gnome"
16	errInvalidColor  = "gnofly: colors must be #rrggbb in lowercase"
17	errInvalidPrice  = "gnofly: price must be between 1 and 1000000000000 ugnot"
18	errInvalidSupply = "gnofly: max supply must be 0 (unlimited) or more"
19
20	errUnknownSkin  = "gnofly: unknown skin"
21	errSkinUnlisted = "gnofly: this skin is not for sale"
22	errSoldOut      = "gnofly: every copy of this skin is sold"
23	errAlreadyOwned = "gnofly: this address already owns this skin"
24	errNotUserCall  = "gnofly: Buy must be called directly by a user (maketx call)"
25	errNotMinted    = "gnofly: no such skin token"
26	errNotSkinOwner = "gnofly: caller does not own this skin token"
27)