func Boost
crossing ActionBoost adds the ugnot sent with the call to an open challenge's reward.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package gauntlet is a bounty board where the chain grades the answers.
Package gauntlet is a bounty board where the chain grades the answers.
Post a coding challenge with a GNOT reward. Solvers commit a hash, deploy a realm with a Solve function, and reveal it. This realm runs the tests itself and pays the earliest commit that passes. No reviewer, no disputes.
Boost adds the ugnot sent with the call to an open challenge's reward.
ChallengeJSON returns one challenge in full, or "null".
Commit reserves your place in line with sha256(solutionPath + ":" + salt). Send the challenge's bond with the call. Use HashFor to compute the hash.
HashFor computes the commit hash for a solution realm path and a salt. Keep the salt secret until you reveal.
JudgesJSON lists registered judges.
LeaderboardJSON returns the top solvers by earnings.
ListJSON returns up to limit challenges, newest first, skipping offset.
1func Post(cur realm, title, spec, 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`.
1func PostJudged(cur realm, title, spec, judgePath, 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.
ProfileJSON returns an address's stats, or "null".
1func RegisterJudge(cur realm, name, about string, inputs func(seed uint64) []string, check func(in, out string) bool)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.
Reveal is called by your solution realm, never by a wallet directly:
1func Submit(cur realm, id uint64, salt string) {
2 gauntlet.Reveal(cross(cur), id, salt, Solve)
3}
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.
Settle expires late commits and pays out when the result is final. Anyone can call it.
StatsJSON returns board totals.
JudgeInfo is a registered judge: reusable, immutable test logic.
PaidRecord is one winner payout, for the activity feed.
Profile tracks what an address has done on the board.