Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.31 Kb · 24 lines
 1package erratabank
 2
 3const (
 4	errCurrentRealm          = "invalid realm context"
 5	errDirectCall            = "payment requires a direct user call"
 6	errPaymentDenom          = "only ugnot is accepted"
 7	errPayment               = "payment must be positive"
 8	errRejectCoins           = "this function does not accept coins"
 9	errBookMissing           = "book not found"
10	errErratumMiss           = "erratum not found"
11	errOwnerOnly             = "book owner only"
12	errPendingOnly           = "erratum must be pending"
13	errClosed                = "book is closed to submissions"
14	errEarlierPending        = "resolve the earlier pending report at this location first"
15	errDuplicate             = "original must be an earlier pending or accepted erratum in the same book"
16	errWithdraw              = "withdrawal must be positive and within unreserved owner funds"
17	errClosedAccept          = "closed books cannot accept reports"
18	errClosedSponsor         = "closed books cannot receive sponsor deposits"
19	errSponsorRefundsPending = "refund remaining sponsor funds before reopening"
20	errRefundUnavailable     = "sponsor refunds require a closed book with no unpaid rewards"
21	errNoSponsorFunds        = "no sponsor funds to refund"
22	errOverflow              = "amount exceeds accounting limit"
23	errIDLimit               = "identifier limit reached"
24)