Pending
untyped stringValue
"Pending"
Accepted
untyped stringValue
"Accepted"
Rejected
untyped stringValue
"Rejected"
Duplicate
untyped stringValue
"Duplicate"
maxAmount
untyped bigintValue
(9223372036854775807 <untyped> bigint)
idKeyWidth
untyped bigintValue
(19 <untyped> bigint)
Book
typeValue
v0.Book
Erratum
typeValue
v0.Erratum
bookRecord
typeEach book indexes all reports and each status by submission ID.
Value
v0.bookRecord
finderRecord
typeValue
v0.finderRecord
books
*v0.Tree- OID
- 0eaf64…e59a:4
books details
errataByID
*v0.Tree- OID
- 0eaf64…e59a:7
errataByID details
finders
*v0.Tree- OID
- 0eaf64…e59a:10
finders details
nextErratumID
intValue
1
realmURL
stringValue
"/r/g132vz03ycpaagtef4jmxjakstkppgyc5wn3r807/erratabank/v0:"
init.15
func()- OID
- 0eaf64…e59a:14
init.15 details
idKey
func(id int) string- OID
- 0eaf64…e59a:16
idKey details
bookByID
func(id int) *v0.bookRecord- OID
- 0eaf64…e59a:17
bookByID details
reportByID
func(id int) *v0.Erratum- OID
- 0eaf64…e59a:18
reportByID details
requireBook
func(id int) *v0.bookRecord- OID
- 0eaf64…e59a:19
requireBook details
requireOwner
func(record *v0.bookRecord, caller .uverse.address)- OID
- 0eaf64…e59a:20
requireOwner details
requireReview
func(id int, caller .uverse.address) (*v0.bookRecord, *v0.Erratum)- OID
- 0eaf64…e59a:21
requireReview details
callerAddress
func() .uverse.address- OID
- 0eaf64…e59a:22
callerAddress details
inboundUgnot
func() int64A direct MsgCall credits this realm with the transaction's send before execution.
- OID
- 0eaf64…e59a:23
inboundUgnot details
rejectCoins
func()- OID
- 0eaf64…e59a:24
rejectCoins details
addAmount
func(total int64, amount int64) int64- OID
- 0eaf64…e59a:25
addAmount details
sendUgnot
func(to .uverse.address, amount int64)- OID
- 0eaf64…e59a:26
sendUgnot details
requiredText
func(field string, text string, max int) string- OID
- 0eaf64…e59a:27
requiredText details
reviewNote
func(note string) string- OID
- 0eaf64…e59a:28
reviewNote details
CreateBook
func(title string, edition string, link string, rewardPerErratum int64) intCreateBook registers an open book and optionally credits inbound reward escrow.
- OID
- 0eaf64…e59a:29
CreateBook details
FundBook
func(bookID int)FundBook credits a book with ugnot supplied by any direct caller.
- OID
- 0eaf64…e59a:30
FundBook details
Submit
func(bookID int, location string, text string) intSubmit records a report. Increasing IDs break ties within a block.
- OID
- 0eaf64…e59a:31
Submit details
review
func(record *v0.bookRecord, report *v0.Erratum, status string, note string)- OID
- 0eaf64…e59a:32
review details
Accept
func(erratumID int, note string)Accept credits the finder and pays the full reward when escrow covers it.
- OID
- 0eaf64…e59a:33
Accept details
Reject
func(erratumID int, note string)Reject closes a pending submission without finder credit.
- OID
- 0eaf64…e59a:34
Reject details
MarkDuplicate
func(erratumID int, originalID int)MarkDuplicate links a pending report to an earlier accepted report in the same book.
- OID
- 0eaf64…e59a:35
MarkDuplicate details
SetBookOpen
func(bookID int, open bool)SetBookOpen controls new submissions. Existing submissions remain reviewable.
- OID
- 0eaf64…e59a:36
SetBookOpen details
Withdraw
func(bookID int, amount int64)Withdraw returns unused escrow to the book owner.
- OID
- 0eaf64…e59a:37
Withdraw details
GetBook
func(id int) (v0.Book, bool)- OID
- 0eaf64…e59a:38
GetBook details
ListBooks
func(offset int, limit int) []v0.Book- OID
- 0eaf64…e59a:39
ListBooks details
GetErratum
func(id int) (v0.Erratum, bool)- OID
- 0eaf64…e59a:40
GetErratum details
listReports
func(tree *v0.Tree, offset int, limit int) []v0.Erratum- OID
- 0eaf64…e59a:41
listReports details
ListErrata
func(bookID int, status string, offset int, limit int) []v0.ErratumListErrata returns reports in submission order. An empty status selects all reports.
- OID
- 0eaf64…e59a:42
ListErrata details
acceptedEntries
func(reports []v0.Erratum) []v0.Entry- OID
- 0eaf64…e59a:43
acceptedEntries details
AcceptedEntries
func(bookID int) []v0.Entry- OID
- 0eaf64…e59a:44
AcceptedEntries details
AcceptedEntriesPage
func(bookID int, offset int, limit int) []v0.EntryAcceptedEntriesPage supports integrations that render a bounded page.
- OID
- 0eaf64…e59a:45
AcceptedEntriesPage details
FinderStats
func(addr .uverse.address) (accepted int, paid int64)- OID
- 0eaf64…e59a:46
FinderStats details
errCurrentRealm
untyped stringValue
"invalid realm context"
errDirectCall
untyped stringValue
"payment requires a direct user call"
errPaymentDenom
untyped stringValue
"only ugnot is accepted"
errPayment
untyped stringValue
"payment must be positive"
errRejectCoins
untyped stringValue
"this function does not accept coins"
errBookMissing
untyped stringValue
"book not found"
errErratumMiss
untyped stringValue
"erratum not found"
errOwnerOnly
untyped stringValue
"book owner only"
errPendingOnly
untyped stringValue
"erratum must be pending"
errClosed
untyped stringValue
"book is closed to submissions"
errSelfSubmit
untyped stringValue
"book owners cannot submit to their own book"
errDuplicate
untyped stringValue
"original must be an earlier accepted erratum in the same book"
errWithdraw
untyped stringValue
"withdrawal must be positive and within available escrow"
errOverflow
untyped stringValue
"amount exceeds accounting limit"
pageSize
untyped bigintValue
(20 <untyped> bigint)
router
*v0.Router- OID
- 0eaf64…e59a:48
router details
init.63
func()- OID
- 0eaf64…e59a:51
init.63 details
Render
func(path string) stringRender is the public Markdown entry point for gnoweb.
- OID
- 0eaf64…e59a:53
Render details
finderURL
func(addr .uverse.address) string- OID
- 0eaf64…e59a:54
finderURL details
bookRoute
func(id int) string- OID
- 0eaf64…e59a:55
bookRoute details
erratumURL
func(id int) string- OID
- 0eaf64…e59a:56
erratumURL details
bookURL
func(id int) string- OID
- 0eaf64…e59a:57
bookURL details
pageOffset
func(req *v0.Request, total int) (int, bool)- OID
- 0eaf64…e59a:58
pageOffset details
pagination
func(w *v0.ResponseWriter, route string, offset int, total int)- OID
- 0eaf64…e59a:59
pagination details
notFound
func(w *v0.ResponseWriter, item string)- OID
- 0eaf64…e59a:60
notFound details
renderHome
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:61
renderHome details
routeBook
func(w *v0.ResponseWriter, req *v0.Request) *v0.bookRecord- OID
- 0eaf64…e59a:62
routeBook details
renderBook
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:63
renderBook details
renderPending
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:64
renderPending details
renderAll
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:65
renderAll details
renderReportList
func(w *v0.ResponseWriter, req *v0.Request, status string, heading string, suffix string)- OID
- 0eaf64…e59a:66
renderReportList details
renderErratum
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:67
renderErratum details
renderFinder
func(w *v0.ResponseWriter, req *v0.Request)- OID
- 0eaf64…e59a:68
renderFinder details
makeFinderRows
func(w *v0.ResponseWriter, reports []v0.Erratum)- OID
- 0eaf64…e59a:69