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.

v1 state

Back to all declarations

questSeq

v0.ID

Value

<zero>

escrowTotal

int64

// ugnot currently locked in live quests

Value

0

paidTotal

int64

// ugnot paid out to workers, all time

Value

0

profile

type

profile aggregates an address's activity as poster and as worker.

Value

v1.profile

Post

func(title string, spec string, leaseBlocks int64, reviewBlocks int64, deadline int64) uint64

Post escrows the attached ugnot as a quest's reward. The send and the direct-user-call check are a pair: OriginSend describes coins that landed at this realm only when the caller is a pure EOA, so anything else (maketx run scripts, intermediary realms) is rejected first.

Open
OID
049f74…85ac:15
Post details

Inspect func

Claim

func(id uint64)

Claim lets the caller take an open quest under a fresh lease.

Open
OID
049f74…85ac:17
Claim details

Inspect func

Submit

func(id uint64, proofURL string, note string)

Submit turns in the caller's proof of work while the lease is live.

Open
OID
049f74…85ac:18
Submit details

Inspect func

Accept

func(id uint64)

Accept pays the escrowed reward to the worker; poster only.

Open
OID
049f74…85ac:19
Accept details

Inspect func

Reject

func(id uint64, reason string)

Reject returns a submitted quest to the board inside the review window; poster only.

Open
OID
049f74…85ac:20
Reject details

Inspect func

ClaimPayout

func(id uint64)

ClaimPayout pays the worker when the review window closed with no answer from the poster; worker only.

Open
OID
049f74…85ac:21
ClaimPayout details

Inspect func

Refund

func(id uint64)

Refund returns the escrow to the poster once the deadline passed.

Open
OID
049f74…85ac:22
Refund details

Inspect func

Cancel

func(id uint64)

Cancel withdraws an open quest and returns its escrow to the poster.

Open
OID
049f74…85ac:23
Cancel details

Inspect func

settleQuest

func(q *v0.Quest)

settleQuest moves a quest out of the active index and releases its escrowed amount. Every terminal transition goes through here so the index and the totals cannot drift apart.

Open
OID
049f74…85ac:24
settleQuest details

Inspect func

payQuest

func(q *v0.Quest)

payQuest settles a Paid quest: state and totals move before coins do.

Open
OID
049f74…85ac:25
payQuest details

Inspect func

pay

func(to .uverse.address, amount int64)

pay sends ugnot out of the realm. The banker is made inside the call and never stored: a stored banker would be a permanent spending grant. cur is always the caller's live realm value, which is what authorizes the send.

Open
OID
049f74…85ac:26
pay details

Inspect func

recordPayout

func(q *v0.Quest)
Open
OID
049f74…85ac:27
recordPayout details

Inspect func

mustQuest

func(id uint64) *v0.Quest
Open
OID
049f74…85ac:28
mustQuest details

Inspect func

getProfile

func(addr .uverse.address) *v1.profile
Open
OID
049f74…85ac:29
getProfile details

Inspect func

findProfile

func(addr .uverse.address) *v1.profile

findProfile reads a profile without creating one, for Render.

Open
OID
049f74…85ac:30
findProfile details

Inspect func

questKey

func(id uint64) string

questKey zero-pads the id to a fixed 20 digits so AVL keys iterate in numeric order ("2" sorts before "10"). ufmt's width flag is a no-op for ints, so the padding is built by hand.

Open
OID
049f74…85ac:31
questKey details

Inspect func

realmPath

untyped string

Value

"gno.land/r/nym-ololade001/guildhall/v1"

realmURL

untyped string

Value

"/r/nym-ololade001/guildhall/v1"

rpcURL

untyped string

Value

"https://rpc.onyx.testnets.gno.land:443"

chainID

untyped string

Value

"onyx-1"

Render

func(path string) string

Render serves the board through gnoweb; there is no other UI.

Open
OID
049f74…85ac:38
Render details

Inspect func

boardHandler

func(res *v0.ResponseWriter, req *v0.Request)
Open
OID
049f74…85ac:39
boardHandler details

Inspect func

questHandler

func(res *v0.ResponseWriter, req *v0.Request)
Open
OID
049f74…85ac:40
questHandler details

Inspect func

profileHandler

func(res *v0.ResponseWriter, req *v0.Request)
Open
OID
049f74…85ac:41
profileHandler details

Inspect func

writeIDList

func(b *strings.Builder, label string, ids []uint64)
Open
OID
049f74…85ac:42
writeIDList details

Inspect func

aboutHandler

func(res *v0.ResponseWriter, req *v0.Request)
Open
OID
049f74…85ac:43
aboutHandler details

Inspect func

notFoundHandler

func(res *v0.ResponseWriter, req *v0.Request)
Open
OID
049f74…85ac:44
notFoundHandler details

Inspect func

questCommands

func(q *v0.Quest, st v0.Status, h int64) []string

questCommands lists the gnokey calls that make sense right now.

Open
OID
049f74…85ac:45
questCommands details

Inspect func

sortByRewardDesc

func(qs []*v0.Quest)

sortByRewardDesc orders quests by reward, highest first, then by id.

Open
OID
049f74…85ac:48
sortByRewardDesc details

Inspect func

formatGNOT

func(amt int64) string

formatGNOT renders ugnot as GNOT with up to six decimals, trimmed.

Open
OID
049f74…85ac:49
formatGNOT details

Inspect func
quests : *v0.Tree Inspect
active : *v0.Tree Inspect
profiles : *v0.Tree Inspect
questSeq : v0.ID =<zero>
escrowTotal : int64 =0
paidTotal : int64 =0
profile : type =v1.profile
Post : func(title string, spec string, leaseBlocks int64, reviewBlocks int64, deadline int64) uint64 Inspect
Claim : func(id uint64) Inspect
Submit : func(id uint64, proofURL string, note string) Inspect
Accept : func(id uint64) Inspect
Reject : func(id uint64, reason string) Inspect
ClaimPayout : func(id uint64) Inspect
Refund : func(id uint64) Inspect
Cancel : func(id uint64) Inspect
settleQuest : func(q *v0.Quest) Inspect
payQuest : func(q *v0.Quest) Inspect
pay : func(to .uverse.address, amount int64) Inspect
recordPayout : func(q *v0.Quest) Inspect
mustQuest : func(id uint64) *v0.Quest Inspect
getProfile : func(addr .uverse.address) *v1.profile Inspect
findProfile : func(addr .uverse.address) *v1.profile Inspect
questKey : func(id uint64) string Inspect
realmPath : untyped string ="gno.land/r/nym-ololade001/guildhall/v1"
realmURL : untyped string ="/r/nym-ololade001/guildhall/v1"
rpcURL : untyped string ="https://rpc.onyx.testnets.gno.land:443"
chainID : untyped string ="onyx-1"
router : *v0.Router Inspect
init.28 : func() Inspect
Render : func(path string) string Inspect
boardHandler : func(res *v0.ResponseWriter, req *v0.Request) Inspect
questHandler : func(res *v0.ResponseWriter, req *v0.Request) Inspect
profileHandler : func(res *v0.ResponseWriter, req *v0.Request) Inspect
writeIDList : func(b *strings.Builder, label string, ids []uint64) Inspect
aboutHandler : func(res *v0.ResponseWriter, req *v0.Request) Inspect
notFoundHandler : func(res *v0.ResponseWriter, req *v0.Request) Inspect
questCommands : func(q *v0.Quest, st v0.Status, h int64) []string Inspect
sortByRewardDesc : func(qs []*v0.Quest) Inspect
formatGNOT : func(amt int64) string Inspect