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.

v0 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)

Book

type

Value

v0.Book

Erratum

type

Value

v0.Erratum

bookRecord

type

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

Value

v0.bookRecord

finderRecord

type

Value

v0.finderRecord

nextErratumID

int

Value

1

realmURL

string

Value

"/r/g132vz03ycpaagtef4jmxjakstkppgyc5wn3r807/erratabank/v0:"

bookByID

func(id int) *v0.bookRecord
Open
OID
0eaf64…e59a:17
bookByID details

Inspect func

reportByID

func(id int) *v0.Erratum
Open
OID
0eaf64…e59a:18
reportByID details

Inspect func

requireBook

func(id int) *v0.bookRecord
Open
OID
0eaf64…e59a:19
requireBook details

Inspect func

requireOwner

func(record *v0.bookRecord, caller .uverse.address)
Open
OID
0eaf64…e59a:20
requireOwner details

Inspect func

requireReview

func(id int, caller .uverse.address) (*v0.bookRecord, *v0.Erratum)
Open
OID
0eaf64…e59a:21
requireReview details

Inspect func

callerAddress

func() .uverse.address
Open
OID
0eaf64…e59a:22
callerAddress details

Inspect func

inboundUgnot

func() int64

A direct MsgCall credits this realm with the transaction's send before execution.

Open
OID
0eaf64…e59a:23
inboundUgnot details

Inspect func

addAmount

func(total int64, amount int64) int64
Open
OID
0eaf64…e59a:25
addAmount details

Inspect func

sendUgnot

func(to .uverse.address, amount int64)
Open
OID
0eaf64…e59a:26
sendUgnot details

Inspect func

requiredText

func(field string, text string, max int) string
Open
OID
0eaf64…e59a:27
requiredText details

Inspect func

reviewNote

func(note string) string
Open
OID
0eaf64…e59a:28
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
0eaf64…e59a:29
CreateBook details

Inspect func

FundBook

func(bookID int)

FundBook credits a book with ugnot supplied by any direct caller.

Open
OID
0eaf64…e59a:30
FundBook details

Inspect func

Submit

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

Submit records a report. Increasing IDs break ties within a block.

Open
OID
0eaf64…e59a:31
Submit details

Inspect func

review

func(record *v0.bookRecord, report *v0.Erratum, status string, note string)
Open
OID
0eaf64…e59a:32
review details

Inspect func

Accept

func(erratumID int, note string)

Accept credits the finder and pays the full reward when escrow covers it.

Open
OID
0eaf64…e59a:33
Accept details

Inspect func

Reject

func(erratumID int, note string)

Reject closes a pending submission without finder credit.

Open
OID
0eaf64…e59a:34
Reject details

Inspect func

MarkDuplicate

func(erratumID int, originalID int)

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

Open
OID
0eaf64…e59a:35
MarkDuplicate details

Inspect func

SetBookOpen

func(bookID int, open bool)

SetBookOpen controls new submissions. Existing submissions remain reviewable.

Open
OID
0eaf64…e59a:36
SetBookOpen details

Inspect func

Withdraw

func(bookID int, amount int64)

Withdraw returns unused escrow to the book owner.

Open
OID
0eaf64…e59a:37
Withdraw details

Inspect func

GetBook

func(id int) (v0.Book, bool)
Open
OID
0eaf64…e59a:38
GetBook details

Inspect func

ListBooks

func(offset int, limit int) []v0.Book
Open
OID
0eaf64…e59a:39
ListBooks details

Inspect func

GetErratum

func(id int) (v0.Erratum, bool)
Open
OID
0eaf64…e59a:40
GetErratum details

Inspect func

listReports

func(tree *v0.Tree, offset int, limit int) []v0.Erratum
Open
OID
0eaf64…e59a:41
listReports details

Inspect func

ListErrata

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

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

Open
OID
0eaf64…e59a:42
ListErrata details

Inspect func

acceptedEntries

func(reports []v0.Erratum) []v0.Entry
Open
OID
0eaf64…e59a:43
acceptedEntries details

Inspect func

AcceptedEntries

func(bookID int) []v0.Entry
Open
OID
0eaf64…e59a:44
AcceptedEntries details

Inspect func

AcceptedEntriesPage

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

AcceptedEntriesPage supports integrations that render a bounded page.

Open
OID
0eaf64…e59a:45
AcceptedEntriesPage details

Inspect func

FinderStats

func(addr .uverse.address) (accepted int, paid int64)
Open
OID
0eaf64…e59a:46
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"

errSelfSubmit

untyped string

Value

"book owners cannot submit to their own book"

errDuplicate

untyped string

Value

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

errWithdraw

untyped string

Value

"withdrawal must be positive and within available escrow"

errOverflow

untyped string

Value

"amount exceeds accounting limit"

pageSize

untyped bigint

Value

(20 <untyped> bigint)

Render

func(path string) string

Render is the public Markdown entry point for gnoweb.

Open
OID
0eaf64…e59a:53
Render details

Inspect func

finderURL

func(addr .uverse.address) string
Open
OID
0eaf64…e59a:54
finderURL details

Inspect func

erratumURL

func(id int) string
Open
OID
0eaf64…e59a:56
erratumURL details

Inspect func

pageOffset

func(req *v0.Request, total int) (int, bool)
Open
OID
0eaf64…e59a:58
pageOffset details

Inspect func

pagination

func(w *v0.ResponseWriter, route string, offset int, total int)
Open
OID
0eaf64…e59a:59
pagination details

Inspect func

notFound

func(w *v0.ResponseWriter, item string)
Open
OID
0eaf64…e59a:60
notFound details

Inspect func

renderHome

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:61
renderHome details

Inspect func

routeBook

func(w *v0.ResponseWriter, req *v0.Request) *v0.bookRecord
Open
OID
0eaf64…e59a:62
routeBook details

Inspect func

renderBook

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:63
renderBook details

Inspect func

renderPending

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:64
renderPending details

Inspect func

renderAll

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:65
renderAll details

Inspect func

renderReportList

func(w *v0.ResponseWriter, req *v0.Request, status string, heading string, suffix string)
Open
OID
0eaf64…e59a:66
renderReportList details

Inspect func

renderErratum

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:67
renderErratum details

Inspect func

renderFinder

func(w *v0.ResponseWriter, req *v0.Request)
Open
OID
0eaf64…e59a:68
renderFinder details

Inspect func

makeFinderRows

func(w *v0.ResponseWriter, reports []v0.Erratum)
Open
OID
0eaf64…e59a:69
makeFinderRows 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)
Book : type =v0.Book
Erratum : type =v0.Erratum
bookRecord : type =v0.bookRecord
finderRecord : type =v0.finderRecord
books : *v0.Tree Inspect
errataByID : *v0.Tree Inspect
finders : *v0.Tree Inspect
nextErratumID : int =1
realmURL : string ="/r/g132vz03ycpaagtef4jmxjakstkppgyc5wn3r807/erratabank/v0:"
init.15 : func() Inspect
idKey : func(id int) string Inspect
bookByID : func(id int) *v0.bookRecord Inspect
reportByID : func(id int) *v0.Erratum Inspect
requireBook : func(id int) *v0.bookRecord Inspect
requireOwner : func(record *v0.bookRecord, caller .uverse.address) Inspect
requireReview : func(id int, caller .uverse.address) (*v0.bookRecord, *v0.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
FundBook : func(bookID int) Inspect
Submit : func(bookID int, location string, text string) int Inspect
review : func(record *v0.bookRecord, report *v0.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
Withdraw : func(bookID int, amount int64) Inspect
GetBook : func(id int) (v0.Book, bool) Inspect
ListBooks : func(offset int, limit int) []v0.Book Inspect
GetErratum : func(id int) (v0.Erratum, bool) Inspect
listReports : func(tree *v0.Tree, offset int, limit int) []v0.Erratum Inspect
ListErrata : func(bookID int, status string, offset int, limit int) []v0.Erratum Inspect
acceptedEntries : func(reports []v0.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) (accepted int, paid int64) 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"
errSelfSubmit : untyped string ="book owners cannot submit to their own book"
errDuplicate : untyped string ="original must be an earlier accepted erratum in the same book"
errWithdraw : untyped string ="withdrawal must be positive and within available escrow"
errOverflow : untyped string ="amount exceeds accounting limit"
pageSize : untyped bigint =(20 <untyped> bigint)
router : *v0.Router Inspect
init.63 : 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) *v0.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
makeFinderRows : func(w *v0.ResponseWriter, reports []v0.Erratum) Inspect