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.

v1 state

Back to all declarations

Pending

untyped string

Value

"Pending"

Accepted

untyped string

Value

"Accepted"

Rejected

untyped string

Value

"Rejected"

Duplicate

untyped string

Value

"Duplicate"

maxAmount

untyped bigint

Value

(9223372036854775807 <untyped> bigint)

idKeyWidth

untyped bigint

Value

(19 <untyped> bigint)

maxListLimit

untyped bigint

Value

(50 <untyped> bigint)

Book

type

Value

v1.Book

Erratum

type

Value

v1.Erratum

bookRecord

type

Each book indexes all reports and each status by submission ID.

Value

v1.bookRecord

finderRecord

type

Value

v1.finderRecord

FinderSummary

type

Value

v1.FinderSummary

nextBookID

int

Value

1

nextReportID

int

Value

3

realmURL

string

Value

"/r/g132vz03ycpaagtef4jmxjakstkppgyc5wn3r807/erratabank/v1:"

advanceID

func(counter *int) int
Open
OID
03e544…0024:18
advanceID details

Inspect func

bookByID

func(id int) *v1.bookRecord
Open
OID
03e544…0024:19
bookByID details

Inspect func

reportByID

func(id int) *v1.Erratum
Open
OID
03e544…0024:20
reportByID details

Inspect func

requireBook

func(id int) *v1.bookRecord
Open
OID
03e544…0024:21
requireBook details

Inspect func

requireOwner

func(record *v1.bookRecord, caller .uverse.address)
Open
OID
03e544…0024:22
requireOwner details

Inspect func

requireReview

func(id int, caller .uverse.address) (*v1.bookRecord, *v1.Erratum)
Open
OID
03e544…0024:23
requireReview details

Inspect func

callerAddress

func() .uverse.address
Open
OID
03e544…0024:24
callerAddress details

Inspect func

inboundUgnot

func() int64

Gno v1.8.0 exposes the inbound coin envelope through unsafe.OriginSend. The Gno Security Guide requires IsUserCall before reading it. [https://docs.gno.land/resources/gno-security-guide/#55-isuser-for-payment-guards](https://docs.gno.land/resources/gno-security-guide/#55-isuser-for-payment-guards)

Open
OID
03e544…0024:25
inboundUgnot details

Inspect func

addAmount

func(total int64, amount int64) int64
Open
OID
03e544…0024:27
addAmount details

Inspect func

sendUgnot

func(to .uverse.address, amount int64)
Open
OID
03e544…0024:28
sendUgnot details

Inspect func

requiredText

func(field string, text string, max int) string
Open
OID
03e544…0024:29
requiredText details

Inspect func

reviewNote

func(note string) string
Open
OID
03e544…0024:30
reviewNote details

Inspect func

CreateBook

func(title string, edition string, link string, rewardPerErratum int64) int

CreateBook registers an open book and optionally credits inbound reward escrow.

Open
OID
03e544…0024:31
CreateBook details

Inspect func

Submit

func(bookID int, location string, text string) int

Submit records a report. Reports are public and permanent on-chain.

Open
OID
03e544…0024:32
Submit details

Inspect func

review

func(record *v1.bookRecord, report *v1.Erratum, status string, note string)
Open
OID
03e544…0024:33
review details

Inspect func

Accept

func(erratumID int, note string)

Accept credits the finder and queues the reward for settlement from the book funds.

Open
OID
03e544…0024:34
Accept details

Inspect func

Reject

func(erratumID int, note string)

Reject closes a pending submission without finder credit.

Open
OID
03e544…0024:35
Reject details

Inspect func

MarkDuplicate

func(erratumID int, originalID int)

MarkDuplicate links a pending report to an earlier pending or accepted report in the same book.

Open
OID
03e544…0024:36
MarkDuplicate details

Inspect func

SetBookOpen

func(bookID int, open bool)

SetBookOpen controls submissions and acceptance. Closing opens sponsor refunds after debts settle.

Open
OID
03e544…0024:37
SetBookOpen details

Inspect func

GetBook

func(id int) (v1.Book, bool)
Open
OID
03e544…0024:38
GetBook details

Inspect func

pageLimit

func(size int, offset int, limit int) int
Open
OID
03e544…0024:39
pageLimit details

Inspect func

ListBooks

func(offset int, limit int) []v1.Book
Open
OID
03e544…0024:40
ListBooks details

Inspect func

GetErratum

func(id int) (v1.Erratum, bool)
Open
OID
03e544…0024:41
GetErratum details

Inspect func

listReports

func(tree *v0.Tree, offset int, limit int) []v1.Erratum
Open
OID
03e544…0024:42
listReports details

Inspect func

ListErrata

func(bookID int, status string, offset int, limit int) []v1.Erratum

ListErrata returns reports in submission order. An empty status selects all reports.

Open
OID
03e544…0024:43
ListErrata details

Inspect func

acceptedEntries

func(reports []v1.Erratum) []v0.Entry
Open
OID
03e544…0024:44
acceptedEntries details

Inspect func

AcceptedEntries

func(bookID int) []v0.Entry

AcceptedEntries returns the first 50 accepted reports in submission order.

Open
OID
03e544…0024:45
AcceptedEntries details

Inspect func

AcceptedEntriesPage

func(bookID int, offset int, limit int) []v0.Entry

AcceptedEntriesPage is the integration API for rendering accepted reports. Limits are capped at 50 entries per page.

Open
OID
03e544…0024:46
AcceptedEntriesPage details

Inspect func

FinderStats

func(addr .uverse.address) v1.FinderSummary
Open
OID
03e544…0024:47
FinderStats details

Inspect func

errCurrentRealm

untyped string

Value

"invalid realm context"

errDirectCall

untyped string

Value

"payment requires a direct user call"

errPaymentDenom

untyped string

Value

"only ugnot is accepted"

errPayment

untyped string

Value

"payment must be positive"

errRejectCoins

untyped string

Value

"this function does not accept coins"

errBookMissing

untyped string

Value

"book not found"

errErratumMiss

untyped string

Value

"erratum not found"

errOwnerOnly

untyped string

Value

"book owner only"

errPendingOnly

untyped string

Value

"erratum must be pending"

errClosed

untyped string

Value

"book is closed to submissions"

errEarlierPending

untyped string

Value

"resolve the earlier pending report at this location first"

errDuplicate

untyped string

Value

"original must be an earlier pending or accepted erratum in the same book"

errWithdraw

untyped string

Value

"withdrawal must be positive and within unreserved owner funds"

errClosedAccept

untyped string

Value

"closed books cannot accept reports"

errClosedSponsor

untyped string

Value

"closed books cannot receive sponsor deposits"

errSponsorRefundsPending

untyped string

Value

"refund remaining sponsor funds before reopening"

errRefundUnavailable

untyped string

Value

"sponsor refunds require a closed book with no unpaid rewards"

errNoSponsorFunds

untyped string

Value

"no sponsor funds to refund"

errOverflow

untyped string

Value

"amount exceeds accounting limit"

errIDLimit

untyped string

Value

"identifier limit reached"

settlementSteps

untyped bigint

Bound the work of a single call even when many small sponsor balances fund a reward.

Value

(8 <untyped> bigint)

FundBook

func(bookID int)

FundBook records an owner deposit or a locked sponsor deposit and services the oldest fully funded reward first. The owner can fund existing debts after closing.

Open
OID
03e544…0024:48
FundBook details

Inspect func

settleRewards

func(record *v1.bookRecord)
Open
OID
03e544…0024:50
settleRewards details

Inspect func

SettleOwed

func(bookID int)

SettleOwed continues payouts when a previous call reached its work limit.

Open
OID
03e544…0024:51
SettleOwed details

Inspect func

Withdraw

func(bookID int, amount int64)

Withdraw returns only the owner's deposits in excess of outstanding rewards.

Open
OID
03e544…0024:52
Withdraw details

Inspect func

SponsorBalance

func(bookID int, sponsor .uverse.address) int64

SponsorBalance returns the sponsor's remaining deposit for a book.

Open
OID
03e544…0024:53
SponsorBalance details

Inspect func

RefundSponsor

func(bookID int)

RefundSponsor returns the caller's remaining sponsor deposit on a closed book after all accepted rewards have settled.

Open
OID
03e544…0024:54
RefundSponsor details

Inspect func

pageSize

untyped bigint

Value

(20 <untyped> bigint)

reportNotice

untyped string

Value

"Reports are public and permanent on-chain."

Render

func(path string) string

Render is the public Markdown entry point for gnoweb.

Open
OID
03e544…0024:61
Render details

Inspect func

finderURL

func(addr .uverse.address) string
Open
OID
03e544…0024:62
finderURL details

Inspect func

erratumURL

func(id int) string
Open
OID
03e544…0024:64
erratumURL details

Inspect func

pageOffset

func(req *v0.Request, total int) (int, bool)
Open
OID
03e544…0024:66
pageOffset details

Inspect func

pagination

func(w *v0.ResponseWriter, route string, offset int, total int)
Open
OID
03e544…0024:67
pagination details

Inspect func

notFound

func(w *v0.ResponseWriter, item string)
Open
OID
03e544…0024:68
notFound details

Inspect func

renderHome

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:69
renderHome details

Inspect func

routeBook

func(w *v0.ResponseWriter, req *v0.Request) *v1.bookRecord
Open
OID
03e544…0024:70
routeBook details

Inspect func

renderBook

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:71
renderBook details

Inspect func

renderPending

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:72
renderPending details

Inspect func

renderAll

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:73
renderAll details

Inspect func

renderReportList

func(w *v0.ResponseWriter, req *v0.Request, status string, heading string, suffix string)
Open
OID
03e544…0024:74
renderReportList details

Inspect func

renderErratum

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:75
renderErratum details

Inspect func

renderFinder

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:76
renderFinder details

Inspect func

renderUnpaidFinder

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
03e544…0024:77
renderUnpaidFinder details

Inspect func

renderFinderCredits

func(w *v0.ResponseWriter, req *v0.Request, unpaid bool)
Open
OID
03e544…0024:78
renderFinderCredits details

Inspect func
Pending : untyped string ="Pending"
Accepted : untyped string ="Accepted"
Rejected : untyped string ="Rejected"
Duplicate : untyped string ="Duplicate"
maxAmount : untyped bigint =(9223372036854775807 <untyped> bigint)
idKeyWidth : untyped bigint =(19 <untyped> bigint)
maxListLimit : untyped bigint =(50 <untyped> bigint)
Book : type =v1.Book
Erratum : type =v1.Erratum
bookRecord : type =v1.bookRecord
finderRecord : type =v1.finderRecord
FinderSummary : type =v1.FinderSummary
books : *v0.Tree Inspect
errataByID : *v0.Tree Inspect
finders : *v0.Tree Inspect
nextBookID : int =1
nextReportID : int =3
realmURL : string ="/r/g132vz03ycpaagtef4jmxjakstkppgyc5wn3r807/erratabank/v1:"
init.18 : func() Inspect
idKey : func(id int) string Inspect
advanceID : func(counter *int) int Inspect
bookByID : func(id int) *v1.bookRecord Inspect
reportByID : func(id int) *v1.Erratum Inspect
requireBook : func(id int) *v1.bookRecord Inspect
requireOwner : func(record *v1.bookRecord, caller .uverse.address) Inspect
requireReview : func(id int, caller .uverse.address) (*v1.bookRecord, *v1.Erratum) Inspect
callerAddress : func() .uverse.address Inspect
inboundUgnot : func() int64 Inspect
rejectCoins : func() Inspect
addAmount : func(total int64, amount int64) int64 Inspect
sendUgnot : func(to .uverse.address, amount int64) Inspect
requiredText : func(field string, text string, max int) string Inspect
reviewNote : func(note string) string Inspect
CreateBook : func(title string, edition string, link string, rewardPerErratum int64) int Inspect
Submit : func(bookID int, location string, text string) int Inspect
review : func(record *v1.bookRecord, report *v1.Erratum, status string, note string) Inspect
Accept : func(erratumID int, note string) Inspect
Reject : func(erratumID int, note string) Inspect
MarkDuplicate : func(erratumID int, originalID int) Inspect
SetBookOpen : func(bookID int, open bool) Inspect
GetBook : func(id int) (v1.Book, bool) Inspect
pageLimit : func(size int, offset int, limit int) int Inspect
ListBooks : func(offset int, limit int) []v1.Book Inspect
GetErratum : func(id int) (v1.Erratum, bool) Inspect
listReports : func(tree *v0.Tree, offset int, limit int) []v1.Erratum Inspect
ListErrata : func(bookID int, status string, offset int, limit int) []v1.Erratum Inspect
acceptedEntries : func(reports []v1.Erratum) []v0.Entry Inspect
AcceptedEntries : func(bookID int) []v0.Entry Inspect
AcceptedEntriesPage : func(bookID int, offset int, limit int) []v0.Entry Inspect
FinderStats : func(addr .uverse.address) v1.FinderSummary Inspect
errCurrentRealm : untyped string ="invalid realm context"
errDirectCall : untyped string ="payment requires a direct user call"
errPaymentDenom : untyped string ="only ugnot is accepted"
errPayment : untyped string ="payment must be positive"
errRejectCoins : untyped string ="this function does not accept coins"
errBookMissing : untyped string ="book not found"
errErratumMiss : untyped string ="erratum not found"
errOwnerOnly : untyped string ="book owner only"
errPendingOnly : untyped string ="erratum must be pending"
errClosed : untyped string ="book is closed to submissions"
errEarlierPending : untyped string ="resolve the earlier pending report at this location first"
errDuplicate : untyped string ="original must be an earlier pending or accepted erratum in the same book"
errWithdraw : untyped string ="withdrawal must be positive and within unreserved owner funds"
errClosedAccept : untyped string ="closed books cannot accept reports"
errClosedSponsor : untyped string ="closed books cannot receive sponsor deposits"
errSponsorRefundsPending : untyped string ="refund remaining sponsor funds before reopening"
errRefundUnavailable : untyped string ="sponsor refunds require a closed book with no unpaid rewards"
errNoSponsorFunds : untyped string ="no sponsor funds to refund"
errOverflow : untyped string ="amount exceeds accounting limit"
errIDLimit : untyped string ="identifier limit reached"
settlementSteps : untyped bigint =(8 <untyped> bigint)
FundBook : func(bookID int) Inspect
settleRewards : func(record *v1.bookRecord) Inspect
SettleOwed : func(bookID int) Inspect
Withdraw : func(bookID int, amount int64) Inspect
SponsorBalance : func(bookID int, sponsor .uverse.address) int64 Inspect
RefundSponsor : func(bookID int) Inspect
pageSize : untyped bigint =(20 <untyped> bigint)
reportNotice : untyped string ="Reports are public and permanent on-chain."
router : *v0.Router Inspect
init.80 : func() Inspect
Render : func(path string) string Inspect
finderURL : func(addr .uverse.address) string Inspect
bookRoute : func(id int) string Inspect
erratumURL : func(id int) string Inspect
bookURL : func(id int) string Inspect
pageOffset : func(req *v0.Request, total int) (int, bool) Inspect
pagination : func(w *v0.ResponseWriter, route string, offset int, total int) Inspect
notFound : func(w *v0.ResponseWriter, item string) Inspect
renderHome : func(w *v0.ResponseWriter, req *v0.Request) Inspect
routeBook : func(w *v0.ResponseWriter, req *v0.Request) *v1.bookRecord Inspect
renderBook : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderPending : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderAll : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderReportList : func(w *v0.ResponseWriter, req *v0.Request, status string, heading string, suffix string) Inspect
renderErratum : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderFinder : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderUnpaidFinder : func(w *v0.ResponseWriter, req *v0.Request) Inspect
renderFinderCredits : func(w *v0.ResponseWriter, req *v0.Request, unpaid bool) Inspect