StatsJSON
func() stringStatsJSON returns board totals.
- OID
- 08c392…3524:3
StatsJSON details
ListJSON
func(offset int, limit int) stringListJSON returns up to limit challenges, newest first, skipping offset.
- OID
- 08c392…3524:5
ListJSON details
summaryJSON
func(c *gauntlet.Challenge) string- OID
- 08c392…3524:6
summaryJSON details
ChallengeJSON
func(id uint64) stringChallengeJSON returns one challenge in full, or "null".
- OID
- 08c392…3524:7
ChallengeJSON details
ProfileJSON
func(addr .uverse.address) stringProfileJSON returns an address's stats, or "null".
- OID
- 08c392…3524:8
ProfileJSON details
profileJSON
func(p *gauntlet.Profile) string- OID
- 08c392…3524:9
profileJSON details
LeaderboardJSON
func() stringLeaderboardJSON returns the top solvers by earnings.
- OID
- 08c392…3524:10
LeaderboardJSON details
JudgesJSON
func() stringJudgesJSON lists registered judges.
- OID
- 08c392…3524:11
JudgesJSON details
denom
untyped stringValue
"ugnot"
board
gauntlet.Board- OID
- 08c392…3524:13
board details
profiles
v0.Tree// address -> \*Profile
- OID
- 08c392…3524:16
profiles details
judges
v0.Tree// judge realm path -> \*JudgeInfo
- OID
- 08c392…3524:18
judges details
pkgPath
stringValue
"gno.land/r/g188c5k6v0tmfyevfzj962jkajjqt4ddtml8zw0x/gauntlet"
totalPaid
int64// ugnot paid to winners
Value
0
paidOut
[]*gauntlet.PaidRecordValue
<zero>
Profile
typeProfile tracks what an address has done on the board.
Value
gauntlet.Profile
JudgeInfo
typeJudgeInfo is a registered judge: reusable, immutable test logic.
Value
gauntlet.JudgeInfo
PaidRecord
typePaidRecord is one winner payout, for the activity feed.
Value
gauntlet.PaidRecord
Post
func(title string, spec string, cases string, hours int, bond int64, windowMinutes int) uint64Post creates a challenge with fixed test cases. Send the reward in ugnot with the call. cases has one test per line: \`input => expected output\`.
- OID
- 08c392…3524:22
Post details
PostJudged
func(title string, spec string, judgePath string, cases string, hours int, bond int64, windowMinutes int) uint64PostJudged creates a challenge graded by a registered judge (see RegisterJudge), plus optional fixed cases. Send the reward with the call.
- OID
- 08c392…3524:24
PostJudged details
post
func(poster .uverse.address, p gauntlet.PostParams) uint64- OID
- 08c392…3524:25
post details
RegisterJudge
func(name string, about string, inputs func(...), check func(...))RegisterJudge is called by a judge realm, usually from its init. The judge is stored under the caller's package path and can never change, so every bounty that uses it is graded by exactly the code anyone can read.
- OID
- 08c392…3524:26
RegisterJudge details
Commit
func(id uint64, hash string)Commit reserves your place in line with sha256(solutionPath + ":" + salt). Send the challenge's bond with the call. Use HashFor to compute the hash.
- OID
- 08c392…3524:27
Commit details
Reveal
func(id uint64, salt string, solve func(...))Reveal is called by your solution realm, never by a wallet directly: func Submit(cur realm, id uint64, salt string) { gauntlet.Reveal(cross(cur), id, salt, Solve) } The realm path of the caller is read from the runtime, so nobody can reveal on behalf of a commit they do not own. The tests run here, on-chain.
- OID
- 08c392…3524:28
Reveal details
Settle
func(id uint64)Settle expires late commits and pays out when the result is final. Anyone can call it.
- OID
- 08c392…3524:29
Settle details
Boost
func(id uint64)Boost adds the ugnot sent with the call to an open challenge's reward.
- OID
- 08c392…3524:30
Boost details
HashFor
func(pkgPath string, salt string) stringHashFor computes the commit hash for a solution realm path and a salt. Keep the salt secret until you reveal.
- OID
- 08c392…3524:31
HashFor details
pay
func(id uint64, payouts []gauntlet.Payout)- OID
- 08c392…3524:32
pay details
mustUser
func() .uverse.address- OID
- 08c392…3524:33
mustUser details
sentUgnot
func() int64sentUgnot returns the ugnot sent with a direct wallet call. Other denoms are rejected so nothing gets stuck.
- OID
- 08c392…3524:34
sentUgnot details
profile
func(a .uverse.address) *gauntlet.Profile- OID
- 08c392…3524:35
profile details
selfPkgPath
func() string- OID
- 08c392…3524:36
selfPkgPath details
Render
func(path string) stringRender serves the board in gnoweb. "" open bounties and recent winners "c/<id>" one challenge: spec, tests, queue, result "u/<address>" a solver's or poster's profile "leaderboard" top earners "judges" registered judges "solve" how to submit a solution
- OID
- 08c392…3524:37
Render details
self
func() string- OID
- 08c392…3524:39
self details
home
func() string- OID
- 08c392…3524:40
home details
tx
func(fn string) *v0.TxBuildertx builds a transaction link to this realm, whatever path it is deployed at.
- OID
- 08c392…3524:41
tx details
nav
func() string- OID
- 08c392…3524:42
nav details
renderHome
func(now time.Time) string- OID
- 08c392…3524:43
renderHome details
gradedBy
func(c *gauntlet.Challenge) string- OID
- 08c392…3524:44
gradedBy details
renderChallenge
func(id uint64, now time.Time) string- OID
- 08c392…3524:45
renderChallenge details
solverTemplate
func(id uint64) string- OID
- 08c392…3524:46
solverTemplate details
renderProfile
func(a .uverse.address) string- OID
- 08c392…3524:47
renderProfile details
renderLeaderboard
func() string- OID
- 08c392…3524:48
renderLeaderboard details
topSolvers
func(n int) []*gauntlet.ProfiletopSolvers returns profiles with at least one win, by earnings.
- OID
- 08c392…3524:49
topSolvers details
better
func(a *gauntlet.Profile, b *gauntlet.Profile) bool- OID
- 08c392…3524:50
better details
renderJudges
func() string- OID
- 08c392…3524:51
renderJudges details
renderSolveGuide
func() string- OID
- 08c392…3524:52
renderSolveGuide details
itoa
func(n uint64) string- OID
- 08c392…3524:53
itoa details
i64toa
func(n int64) string- OID
- 08c392…3524:55
i64toa details
gnot
func(u int64) stringgnot formats ugnot as GNOT with up to 6 decimals.
- OID
- 08c392…3524:56
gnot details
when
func(t time.Time) string- OID
- 08c392…3524:57
when details
left
func(now time.Time, t time.Time) stringleft describes time remaining until t, from now.
- OID
- 08c392…3524:58
left details
short
func(a .uverse.address) string- OID
- 08c392…3524:59
short details
webPath
func(pkgPath string) stringwebPath turns gno.land/r/x into /r/x for gnoweb links.
- OID
- 08c392…3524:60
webPath details
jstr
func(s string) string- OID
- 08c392…3524:61