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.

How to solve a bounty

Board · Leaderboard · Judges · How to solve

Gauntlet uses commit, deploy, reveal so nobody can copy your answer.

  1. Commit. Choose your solution's realm path and a secret salt. Compute HashFor(path, salt) and call Commit(id, hash) with the bond. Your place in line is now fixed.
  2. Deploy. Publish your realm with Solve and Submit (template below). Anyone can now read it, but anyone who copies it commits after you.
  3. Reveal. Call your realm's Submit(id, salt) before your reveal window ends. This realm reads your package path from the runtime, checks the hash, runs the tests and records the result. Your bond comes back either way.

The earliest commit that passes wins the whole pot. If you skip the reveal, your bond is added to the reward.

 1package solve1
 2
 3import "gno.land/r/g188c5k6v0tmfyevfzj962jkajjqt4ddtml8zw0x/gauntlet"
 4
 5func Solve(in string) string {
 6	// your code
 7	return in
 8}
 9
10func Submit(cur realm, id uint64, salt string) {
11	gauntlet.Reveal(cross(cur), id, salt, Solve)
12}

Rules the code enforces

  • Solutions must live in a deployed /r/ realm, so the winning code stays public on-chain.
  • One pending commit per address per bounty. Failed? Commit again with a new realm.
  • Your Solve cannot touch this realm's funds or state: Gno runs it under your realm's authority, and it never receives this realm's cur.
  • The poster cannot cancel or change the tests. The reward is locked until someone wins or the deadline passes.