quests
*v0.Tree- OID
- 049f74…85ac:4
quests details
active
*v0.Tree- OID
- 049f74…85ac:7
active details
profiles
*v0.Tree- OID
- 049f74…85ac:10
profiles details
questSeq
v0.IDValue
<zero>
escrowTotal
int64// ugnot currently locked in live quests
Value
0
paidTotal
int64// ugnot paid out to workers, all time
Value
0
profile
typeprofile 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) uint64Post 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.
- OID
- 049f74…85ac:15
Post details
Claim
func(id uint64)Claim lets the caller take an open quest under a fresh lease.
- OID
- 049f74…85ac:17
Claim details
Submit
func(id uint64, proofURL string, note string)Submit turns in the caller's proof of work while the lease is live.
- OID
- 049f74…85ac:18
Submit details
Accept
func(id uint64)Accept pays the escrowed reward to the worker; poster only.
- OID
- 049f74…85ac:19
Accept details
Reject
func(id uint64, reason string)Reject returns a submitted quest to the board inside the review window; poster only.
- OID
- 049f74…85ac:20
Reject details
ClaimPayout
func(id uint64)ClaimPayout pays the worker when the review window closed with no answer from the poster; worker only.
- OID
- 049f74…85ac:21
ClaimPayout details
Refund
func(id uint64)Refund returns the escrow to the poster once the deadline passed.
- OID
- 049f74…85ac:22
Refund details
Cancel
func(id uint64)Cancel withdraws an open quest and returns its escrow to the poster.
- OID
- 049f74…85ac:23
Cancel details
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.
- OID
- 049f74…85ac:24
settleQuest details
payQuest
func(q *v0.Quest)payQuest settles a Paid quest: state and totals move before coins do.
- OID
- 049f74…85ac:25
payQuest details
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.
- OID
- 049f74…85ac:26
pay details
recordPayout
func(q *v0.Quest)- OID
- 049f74…85ac:27
recordPayout details
mustQuest
func(id uint64) *v0.Quest- OID
- 049f74…85ac:28
mustQuest details
getProfile
func(addr .uverse.address) *v1.profile- OID
- 049f74…85ac:29
getProfile details
findProfile
func(addr .uverse.address) *v1.profilefindProfile reads a profile without creating one, for Render.
- OID
- 049f74…85ac:30
findProfile details
questKey
func(id uint64) stringquestKey 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.
- OID
- 049f74…85ac:31
questKey details
realmPath
untyped stringValue
"gno.land/r/nym-ololade001/guildhall/v1"
realmURL
untyped stringValue
"/r/nym-ololade001/guildhall/v1"
rpcURL
untyped stringValue
"https://rpc.onyx.testnets.gno.land:443"
chainID
untyped stringValue
"onyx-1"
router
*v0.Router- OID
- 049f74…85ac:33
router details
init.28
func()- OID
- 049f74…85ac:36
init.28 details
Render
func(path string) stringRender serves the board through gnoweb; there is no other UI.
- OID
- 049f74…85ac:38
Render details
boardHandler
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 049f74…85ac:39
boardHandler details
questHandler
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 049f74…85ac:40
questHandler details
profileHandler
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 049f74…85ac:41
profileHandler details
writeIDList
func(b *strings.Builder, label string, ids []uint64)- OID
- 049f74…85ac:42
writeIDList details
aboutHandler
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 049f74…85ac:43
aboutHandler details
notFoundHandler
func(res *v0.ResponseWriter, req *v0.Request)- OID
- 049f74…85ac:44
notFoundHandler details
questCommands
func(q *v0.Quest, st v0.Status, h int64) []stringquestCommands lists the gnokey calls that make sense right now.
- OID
- 049f74…85ac:45
questCommands details
questLink
func(id uint64, text string) stringquestLink renders an absolute link to a quest page.
- OID
- 049f74…85ac:46
questLink details
userLink
func(a .uverse.address) stringuserLink renders an absolute link to a profile page.
- OID
- 049f74…85ac:47
userLink details
sortByRewardDesc
func(qs []*v0.Quest)sortByRewardDesc orders quests by reward, highest first, then by id.
- OID
- 049f74…85ac:48
sortByRewardDesc details
formatGNOT
func(amt int64) stringformatGNOT renders ugnot as GNOT with up to six decimals, trimmed.
- OID
- 049f74…85ac:49