const Pending, Listed, Retired
Challenge statuses.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package hall is the scoreboard of Cellar, a capture-the-flag wargame played on gno.land.
Package hall is the scoreboard of Cellar, a capture-the-flag wargame played on gno.land.
Challenge realms enlist themselves here from their init. Players break a challenge in its own realm, then Claim it here: the hall asks the challenge whether the player captured it, records the solve, awards a badge and updates the standings. Points follow the dynamic curve in package flag, so a challenge is worth less as more players solve it.
Everything a player sees is in Render, so gnoweb is a complete client.
1var (
2 ErrNotCurator = errors.New("hall: only the curator may do this")
3 ErrBadAddress = errors.New("hall: invalid address")
4 ErrNotRealm = errors.New("hall: a challenge must enlist itself from its own realm")
5 ErrNilChallenge = errors.New("hall: nil challenge")
6 ErrAlreadyEnlisted = errors.New("hall: this realm already enlisted a challenge")
7 ErrSlugTaken = errors.New("hall: slug already taken")
8 ErrUnknownChallenge = errors.New("hall: no such challenge")
9 ErrNotListed = errors.New("hall: challenge is not open for claims")
10 ErrNotPending = errors.New("hall: challenge is not awaiting review")
11 ErrAlreadyClaimed = errors.New("hall: you already claimed this challenge")
12 ErrNotCaptured = errors.New("hall: the cellar has no record of your capture; break the challenge first")
13 ErrNotUser = errors.New("hall: handles belong to people; call SetHandle directly from your wallet")
14 ErrBadHandle = errors.New("hall: a handle is 3-20 chars of [a-z0-9_], starting with a letter")
15 ErrHandleTaken = errors.New("hall: handle already taken")
16 ErrBadSeasonName = errors.New("hall: a season name is 1-40 printable characters")
17)Errors returned (as panics) by the hall's public functions.
Approve opens a pending community challenge for claims.
BadgeURI returns the artwork URI of badge tid, or "" if it was never minted.
Claim records that the caller broke the challenge slug and returns the points it is now worth. The challenge realm is asked whether the player captured it; the hall never takes the player's word for it.
Call it from your wallet, or from your solution realm right after the exploit: a realm at gno.land/r/<your-address>/... is credited to you.
DisplayName returns the hall handle of addr, else its gno.land username, else a shortened address.
Enlist registers the challenge ch for the realm that calls it. Call it from your challenge realm's init:
1func init(cur realm) { hall.Enlist(cross(cur), challenge{}) }
Official challenges are listed at once; community ones wait for review.
OpenSeason closes the current season, decorates its podium with season badges, and opens the next one under name.
Render serves the hall's pages to gnoweb, and JSON under api/ for the Cellar web client.
Retire closes a challenge for new claims. Existing solves keep scoring.
SetHandle sets the caller's display name in the hall. Handles are unique; setting a new one releases the old one.
TransferCuration hands the curator role to another address.
Solve is one claimed capture.
Standing is a row of a leaderboard.
Status is where a challenge stands in the hall.