maxPathLength
untyped bigintLimits keep review payloads small: storage on Gno.land costs a refundable deposit, and a review board must stay cheap to write.
Value
(256 <untyped> bigint)
maxVerdictLength
untyped bigintLimits keep review payloads small: storage on Gno.land costs a refundable deposit, and a review board must stay cheap to write.
Value
(1000 <untyped> bigint)
maxChecksLength
untyped bigintLimits keep review payloads small: storage on Gno.land costs a refundable deposit, and a review board must stay cheap to write.
Value
(2000 <untyped> bigint)
ReviewPostedEvent
untyped stringValue
"ReviewPosted"
ReviewerRegisteredEvent
untyped stringValue
"ReviewerRegistered"
ReviewerRemovedEvent
untyped stringValue
"ReviewerRemoved"
ErrEmptyPath
*errors.errorString- OID
- 0ce804…e3fe:4
ErrEmptyPath details
ErrPathTooLong
*errors.errorString- OID
- 0ce804…e3fe:7
ErrPathTooLong details
ErrBadPath
*errors.errorString- OID
- 0ce804…e3fe:10
ErrBadPath details
ErrScoreOutOfRange
*errors.errorString- OID
- 0ce804…e3fe:13
ErrScoreOutOfRange details
ErrEmptyVerdict
*errors.errorString- OID
- 0ce804…e3fe:16
ErrEmptyVerdict details
ErrVerdictTooLong
*errors.errorString- OID
- 0ce804…e3fe:19
ErrVerdictTooLong details
ErrChecksTooLong
*errors.errorString- OID
- 0ce804…e3fe:22
ErrChecksTooLong details
ErrNotOwner
*errors.errorString- OID
- 0ce804…e3fe:25
ErrNotOwner details
ErrReviewNotFound
*errors.errorString- OID
- 0ce804…e3fe:28
ErrReviewNotFound details
Review
typeReview is one scored verdict for one realm path at one version.
Value
gnosage.Review
Ownable
*v0.Ownable- OID
- 0ce804…e3fe:63
Ownable details
reviews
*v0.Tree- OID
- 0ce804…e3fe:55
reviews details
versions
*v0.Tree- OID
- 0ce804…e3fe:57
versions details
latestAgent
*v0.Tree- OID
- 0ce804…e3fe:59
latestAgent details
reviewers
*v0.Tree- OID
- 0ce804…e3fe:61
reviewers details
reviewCount
uint64Value
3
init.22
func()- OID
- 0ce804…e3fe:36
init.22 details
reviewKey
func(pkgPath string, version uint64) stringreviewKey builds the storage key for one version of one path. The zero-padded version keeps lexicographic order equal to version order, so range scans over a path return reviews oldest-first.
- OID
- 0ce804…e3fe:38
reviewKey details
assertOwner
func()assertOwner panics unless the caller is the realm owner.
- OID
- 0ce804…e3fe:39
assertOwner details
RegisterReviewer
func(reviewer .uverse.address)RegisterReviewer marks an address as a trusted agent reviewer. Only the owner can register reviewers. Reviews from registered reviewers are the board's headline verdicts.
- OID
- 0ce804…e3fe:40
RegisterReviewer details
UnregisterReviewer
func(reviewer .uverse.address)UnregisterReviewer removes a registered agent reviewer. Only the owner.
- OID
- 0ce804…e3fe:41
UnregisterReviewer details
IsReviewer
func(reviewer .uverse.address) boolIsReviewer reports whether an address is a registered agent reviewer.
- OID
- 0ce804…e3fe:42
IsReviewer details
PostReview
func(pkgPath string, score int, docs int, tests int, safety int, quality int, verdict string, checks string) (uint64, .uverse.error)PostReview records a scored verdict for a realm path. Any caller may post; the review is marked as an agent review only when the caller is a registered agent reviewer. Returns the new version for the path.
- OID
- 0ce804…e3fe:43
PostReview details
validateReview
func(pkgPath string, score int, docs int, tests int, safety int, quality int, verdict string, checks string) .uverse.errorvalidateReview checks every field of a review before it is stored.
- OID
- 0ce804…e3fe:44
validateReview details
GetReview
func(pkgPath string, version uint64) *gnosage.ReviewGetReview returns one review by path and version, or nil.
- OID
- 0ce804…e3fe:45
GetReview details
LatestAgentReview
func(pkgPath string) *gnosage.ReviewLatestAgentReview returns the newest agent review for a path, or nil when no agent has reviewed it yet.
- OID
- 0ce804…e3fe:46
LatestAgentReview details
VersionCount
func(pkgPath string) intVersionCount returns how many reviews a path has received.
- OID
- 0ce804…e3fe:47
VersionCount details
ReviewCount
func() uint64ReviewCount returns the total number of reviews on the board.
- OID
- 0ce804…e3fe:48
ReviewCount details
ReviewedPaths
func() []stringReviewedPaths returns every path that has at least one review, in lexicographic order.
- OID
- 0ce804…e3fe:49
ReviewedPaths details
Render
func(path string) stringRender serves the review board through gnoweb. - Render("") lists every reviewed realm with its latest agent score. - Render("\<pkgPath>") shows the review history of one realm, e.g. Render("gno.land/r/\<addr>/foo"). Caller-controlled text (verdicts) is flattened before rendering so a review can never break the board's markdown layout or smuggle links.
- OID
- 0ce804…e3fe:50
Render details
renderIndex
func() stringrenderIndex lists reviewed realms with their latest agent verdict.
- OID
- 0ce804…e3fe:52
renderIndex details
renderDetail
func(pkgPath string) stringrenderDetail shows every review of one realm, newest first.
- OID
- 0ce804…e3fe:53
renderDetail details
flatten
func(s string) stringflatten removes markdown-breaking characters from caller text.
- OID
- 0ce804…e3fe:54