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.

questmaster package

Overview

Package questmaster is a GNOT bounty board. A poster locks GNOT on a quest, a builder takes it and submits a link to the work, and the poster approves (paying the builder) or rejects (reopening the quest). If the poster stays silent past the review window (about 7 days), the builder can claim the payout. A poster can cancel an open quest for a refund, or close a claimed or submitted one: the builder keeps their turn, and if it ends without approval the reward goes back to the poster.

The rules live in the pure package p/escrow. This realm stores quests, holds the coins and moves them only as an escrow move tells it to.

Callers (v1): every state-changing function accepts only a direct user call (`gnokey maketx call`, i.e. cur.Previous().IsUserCall()). Calls from other realms and from `maketx run` scripts are refused. This is what makes the unsafe.OriginSend() checks sound: for a direct user call, the coins sent with the call are guaranteed to have landed in this realm. Realm or DAO callers may be supported in a later version.

There is no admin, owner, pause, upgrade or sweep function. Nobody can move escrowed coins except through the quest moves below.

Coins sent straight to the realm address with a bank send (not through PostQuest) are not tracked by any quest and cannot be moved by anyone, so they are lost. On chain the guarantee is therefore: realm balance >= the locked total, with equality when nobody sends coins outside PostQuest. The pages and GetTotals use only the tracked numbers, never the balance.

Nothing here hands out a pointer to stored state: read functions return plain values (QuestView, Totals, []uint64, strings).

Function

OpenQuestIDs

func OpenQuestIDs(offset, limit int) []uint64
Ask AI Claude ChatGPT

OpenQuestIDs lists ids of Open quests, newest first. offset skips that many; at most MaxPageSize ids are returned whatever limit is.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/questmaster.OpenQuestIDs(,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/questmaster, for example a function call with arguments.