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.

v0 source realm

Package builders is a public directory of people with proven, paid work.

Overview

Package builders is a public directory of people with proven, paid work.

Anyone can list themselves, but only after finishing at least one paid task on Gild. The proof is not copied or claimed: the directory asks the Gild realm directly, at the moment you join and every time the page renders. No oracle, no admin, no off-chain list. This is the point of the Gild record: any realm can trust it with a single function call.

Constants 2

const ErrNoProof, ErrPitch, ErrLink, ErrNotIn

1const (
2	ErrNoProof = "builders: finish a paid task on Gild first"
3	ErrPitch   = "builders: pitch must be 1 to 160 characters"
4	ErrLink    = "builders: link must start with https:// and have no spaces"
5	ErrNotIn   = "builders: you are not in the directory"
6)
source

Functions 6

func BuildersJSON

Action
1func BuildersJSON(offset, limit int) string
source

BuildersJSON lists entries with their live Gild stats.

func IsListed

Action
1func IsListed(addr address) bool
source

IsListed reports whether addr is in the directory.

func Join

crossing Action
1func Join(cur realm, pitch, link string)
source

Join adds the caller to the directory, or updates their pitch and link. It fails unless the caller has finished at least MinTasks paid Gild tasks.

func Leave

crossing Action
1func Leave(cur realm)
source

Leave removes the caller from the directory.

func Render

1func Render(path string) string
source

Render shows the directory on gno.land.

Types 1

type Entry

struct
1type Entry struct {
2	Addr     address
3	Pitch    string
4	Link     string
5	JoinedAt time.Time
6}
source

Entry is one person in the directory. Their work stats are not stored here: they are read from Gild so they are always current.

Dependencies

Source Files 2