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.

mequest state

Back to all declarations

renderAPI

func(path string) string
Open
OID
053cce…d0c6:3
renderAPI details

Inspect func

questJSON

func(q *mequest.Quest, full bool) string
Open
OID
053cce…d0c6:6
questJSON details

Inspect func

passportJSON

func(a .uverse.address) string
Open
OID
053cce…d0c6:7
passportJSON details

Inspect func

who

func(a .uverse.address) string

who returns {"addr":..., "name":...}; name is the wallet's unique gno.land username from r/sys/users, or "" if it has none.

Open
OID
053cce…d0c6:10
who details

Inspect func

js

func(s string) string

js quotes a string as a JSON string.

Open
OID
053cce…d0c6:12
js details

Inspect func

KindCheckin

untyped string

// check-in streak of at least Arg days (1 = first check-in)

Value

"checkin"

KindEarly

untyped string

// among the first Arg wallets to join MeQuest

Value

"early"

KindInvites

untyped string

// at least Arg invited friends earned a card

Value

"invites"

KindProjects

untyped string

// cards from at least Arg different projects

Value

"projects"

KindCards

untyped string

// own at least Arg cards

Value

"cards"

KindPosted

untyped string

// funded at least Arg quests as a project

Value

"posted"

KindMyRealm

untyped string

// your own realm (gno.land/r/\<your addr>/...) calls ProveRealm

Value

"myrealm"

KindGrant

untyped string

// given by the quest funder (e.g. season top 3)

Value

"grant"

joinRank

map[.uverse.address]int
Open
OID
053cce…d0c6:14
joinRank details

Inspect map

joined

int

Value

0

streak

map[.uverse.address]int
Open
OID
053cce…d0c6:17
streak details

Inspect map

lastDay

map[.uverse.address]int64
Open
OID
053cce…d0c6:19
lastDay details

Inspect map

inviter

map[.uverse.address].uverse.address
Open
OID
053cce…d0c6:21
inviter details

Inspect map

invitesDone

map[.uverse.address]int
Open
OID
053cce…d0c6:23
invitesDone details

Inspect map

posted

map[.uverse.address]int
Open
OID
053cce…d0c6:25
posted details

Inspect map

validKind

func(kind string, arg string) string
Open
OID
053cce…d0c6:26
validKind details

Inspect func

verifyReason

func(q *mequest.Quest, user .uverse.address) string

verifyReason runs the quest's own check. "" means the wallet passes.

Open
OID
053cce…d0c6:28
verifyReason details

Inspect func

gateReason

func(q *mequest.Quest, user .uverse.address) string

gateReason checks board rules shared by every payout.

Open
OID
053cce…d0c6:29
gateReason details

Inspect func

CanClaim

func(wallet .uverse.address, id int) string

CanClaim is a free read-only dry run of Claim: "ok" or the reason it would fail.

Open
OID
053cce…d0c6:30
CanClaim details

Inspect func

CheckIn

func() int

CheckIn records today's check-in and grows your streak.

Open
OID
053cce…d0c6:31
CheckIn details

Inspect func

StreakOf

func(wallet .uverse.address) int

StreakOf returns the live streak (0 if a day was missed).

Open
OID
053cce…d0c6:32
StreakOf details

Inspect func

SetInviter

func(friend .uverse.address)

SetInviter links you to the friend who invited you. Once, before your first card.

Open
OID
053cce…d0c6:33
SetInviter details

Inspect func

ProveRealm

func(id int)

ProveRealm must be called by a realm deployed under the caller's own address: gno.land/r/\<your g1 address>/anything. That path proves you built it.

Open
OID
053cce…d0c6:34
ProveRealm details

Inspect func

Grant

func(id int, wallet .uverse.address)

Grant gives a grant-kind card. Quest funder only (e.g. Season Champion).

Open
OID
053cce…d0c6:35
Grant details

Inspect func

ProjectsDone

func(wallet .uverse.address) int
Open
OID
053cce…d0c6:36
ProjectsDone details

Inspect func

JoinRank

func(wallet .uverse.address) int
Open
OID
053cce…d0c6:37
JoinRank details

Inspect func

InvitesDone

func(wallet .uverse.address) int
Open
OID
053cce…d0c6:38
InvitesDone details

Inspect func

InviterOf

func(wallet .uverse.address) .uverse.address
Open
OID
053cce…d0c6:39
InviterOf details

Inspect func

checkLabel

func(q *mequest.Quest) string

checkLabel is the short proof line shown on a receipt.

Open
OID
053cce…d0c6:41
checkLabel details

Inspect func

Common

untyped bigint

Value

(1 <untyped> bigint)

Rare

untyped bigint

Value

(2 <untyped> bigint)

Epic

untyped bigint

Value

(3 <untyped> bigint)

Legendary

untyped bigint

Value

(4 <untyped> bigint)

KindManual

untyped string

// project reviews a proof

Value

"manual"

KindPush

untyped string

// partner realm calls Complete

Value

"push"

KindHold

untyped string

// wallet holds at least Arg ugnot

Value

"hold"

KindName

untyped string

// wallet has a registered gno.land username

Value

"name"

KindCard

untyped string

// wallet owns the card from quest Arg (quest chain)

Value

"card"

PayFixed

untyped string

// style A: Reward per winner, paid on claim

Value

"fixed"

PaySplit

untyped string

// style B: pool split equally after expiry

Value

"split"

DailyCap

untyped bigint

Value

(10 <untyped> bigint)

Season

untyped string

Value

"S1"

daySecs

untyped bigint

Value

(86400 <untyped> bigint)

admin

.uverse.address

Value

<gnolang.StringValue>

supplyCap

map[int]int

// 0 = unlimited

Open
OID
053cce…d0c6:45
supplyCap details

Inspect map

Card

type

Value

mequest.Card

Quest

type

Value

mequest.Quest

quests

[]*mequest.Quest

Value

<zero>

cards

map[.uverse.address][]mequest.Card
Open
OID
053cce…d0c6:54
cards details

Inspect map

points

map[.uverse.address]int64
Open
OID
053cce…d0c6:56
points details

Inspect map

projects

map[.uverse.address]bool
Open
OID
053cce…d0c6:60
projects details

Inspect map

players

[].uverse.address

Value

<zero>

log

[]mequest.event

Value

<zero>

paidOut

int64

Value

0

minted

int

Value

0

receipt

type

receipt is a public case file for every payout or rejection.

Value

mequest.receipt

receipts

[]mequest.receipt

Value

<zero>

addReceipt

func(q *mequest.Quest, who .uverse.address, ok bool, check string, paid int64)
Open
OID
053cce…d0c6:66
addReceipt details

Inspect func

event

type

Value

mequest.event

CreateQuest

func(title string, desc string, art string, rarity int, kind string, arg string, pay string, max int, days int) int

CreateQuest locks the sent ugnot as the quest pool. Send coins with the tx.

Open
OID
053cce…d0c6:68
CreateQuest details

Inspect func

Review

func(id int, wallet .uverse.address, ok bool)

Review approves or rejects a manual proof. Funder or admin only.

Open
OID
053cce…d0c6:69
Review details

Inspect func

Refund

func(id int)

Refund returns the unclaimed pool of an expired fixed quest to its funder.

Open
OID
053cce…d0c6:70
Refund details

Inspect func

Settle

func(id int)

Settle pays a split quest after expiry. Anyone can call it.

Open
OID
053cce…d0c6:71
Settle details

Inspect func

Claim

func(id int)

Claim runs the quest's own check on the caller and pays if it passes.

Open
OID
053cce…d0c6:72
Claim details

Inspect func

Submit

func(id int, proof string)

Submit sends a proof (link or text) for a manual quest.

Open
OID
053cce…d0c6:73
Submit details

Inspect func

Complete

func(id int, wallet .uverse.address)

Complete is called by the partner realm named in a push quest.

Open
OID
053cce…d0c6:74
Complete details

Inspect func

ApproveProject

func(p .uverse.address, on bool)
Open
OID
053cce…d0c6:75
ApproveProject details

Inspect func

Revoke

func(wallet .uverse.address, id int)

Revoke removes a card from a cheater wallet.

Open
OID
053cce…d0c6:76
Revoke details

Inspect func

HasCard

func(wallet .uverse.address, id int) bool
Open
OID
053cce…d0c6:77
HasCard details

Inspect func

BestRarity

func(wallet .uverse.address) int
Open
OID
053cce…d0c6:78
BestRarity details

Inspect func

HasRarity

func(wallet .uverse.address, min int) bool
Open
OID
053cce…d0c6:79
HasRarity details

Inspect func

PointsOf

func(wallet .uverse.address) int64
Open
OID
053cce…d0c6:80
PointsOf details

Inspect func

CardCount

func(wallet .uverse.address) int
Open
OID
053cce…d0c6:81
CardCount details

Inspect func

award

func(q *mequest.Quest, user .uverse.address)
Open
OID
053cce…d0c6:82
award details

Inspect func

open

func(q *mequest.Quest, user .uverse.address)
Open
OID
053cce…d0c6:83
open details

Inspect func

send

func(to .uverse.address, amt int64)
Open
OID
053cce…d0c6:84
send details

Inspect func

requireWallet

func()

requireWallet blocks calls routed through other realms (anti-farming bots, and makes sure sent coins really came from the caller).

Open
OID
053cce…d0c6:85
requireWallet details

Inspect func

mustQuest

func(id int) *mequest.Quest
Open
OID
053cce…d0c6:87
mustQuest details

Inspect func

short

func(a .uverse.address) string
Open
OID
053cce…d0c6:91
short details

Inspect func

renderQuest

func(q *mequest.Quest) string
Open
OID
053cce…d0c6:94
renderQuest details

Inspect func

renderPassport

func(w .uverse.address) string
Open
OID
053cce…d0c6:95
renderPassport details

Inspect func
renderAPI : func(path string) string Inspect
apiStats : func() string Inspect
questJSON : func(q *mequest.Quest, full bool) string Inspect
passportJSON : func(a .uverse.address) string Inspect
topJSON : func() string Inspect
ranked : func() [].uverse.address Inspect
who : func(a .uverse.address) string Inspect
i64 : func(n int64) string Inspect
js : func(s string) string Inspect
KindCheckin : untyped string ="checkin"
KindEarly : untyped string ="early"
KindInvites : untyped string ="invites"
KindProjects : untyped string ="projects"
KindCards : untyped string ="cards"
KindPosted : untyped string ="posted"
KindMyRealm : untyped string ="myrealm"
KindGrant : untyped string ="grant"
joinRank : map[.uverse.address]int Inspect
joined : int =0
streak : map[.uverse.address]int Inspect
lastDay : map[.uverse.address]int64 Inspect
inviter : map[.uverse.address].uverse.address Inspect
invitesDone : map[.uverse.address]int Inspect
posted : map[.uverse.address]int Inspect
validKind : func(kind string, arg string) string Inspect
verifyReason : func(q *mequest.Quest, user .uverse.address) string Inspect
gateReason : func(q *mequest.Quest, user .uverse.address) string Inspect
CanClaim : func(wallet .uverse.address, id int) string Inspect
CheckIn : func() int Inspect
StreakOf : func(wallet .uverse.address) int Inspect
SetInviter : func(friend .uverse.address) Inspect
ProveRealm : func(id int) Inspect
Grant : func(id int, wallet .uverse.address) Inspect
ProjectsDone : func(wallet .uverse.address) int Inspect
JoinRank : func(wallet .uverse.address) int Inspect
InvitesDone : func(wallet .uverse.address) int Inspect
InviterOf : func(wallet .uverse.address) .uverse.address Inspect
touch : func(a .uverse.address) Inspect
checkLabel : func(q *mequest.Quest) string Inspect
mustInt64 : func(s string) int64 Inspect
Common : untyped bigint =(1 <untyped> bigint)
Rare : untyped bigint =(2 <untyped> bigint)
Epic : untyped bigint =(3 <untyped> bigint)
Legendary : untyped bigint =(4 <untyped> bigint)
KindManual : untyped string ="manual"
KindPush : untyped string ="push"
KindHold : untyped string ="hold"
KindName : untyped string ="name"
KindCard : untyped string ="card"
PayFixed : untyped string ="fixed"
PaySplit : untyped string ="split"
DailyCap : untyped bigint =(10 <untyped> bigint)
Season : untyped string ="S1"
daySecs : untyped bigint =(86400 <untyped> bigint)
admin : .uverse.address =<gnolang.StringValue>
supplyCap : map[int]int Inspect
cardPts : map[int]int64 Inspect
rarityName : map[int]string Inspect
rankName : map[int]string Inspect
Card : type =mequest.Card
Quest : type =mequest.Quest
quests : []*mequest.Quest =<zero>
cards : map[.uverse.address][]mequest.Card Inspect
points : map[.uverse.address]int64 Inspect
daily : map[string]int Inspect
projects : map[.uverse.address]bool Inspect
players : [].uverse.address =<zero>
log : []mequest.event =<zero>
paidOut : int64 =0
minted : int =0
receipt : type =mequest.receipt
receipts : []mequest.receipt =<zero>
addReceipt : func(q *mequest.Quest, who .uverse.address, ok bool, check string, paid int64) Inspect
event : type =mequest.event
CreateQuest : func(title string, desc string, art string, rarity int, kind string, arg string, pay string, max int, days int) int Inspect
Review : func(id int, wallet .uverse.address, ok bool) Inspect
Refund : func(id int) Inspect
Settle : func(id int) Inspect
Claim : func(id int) Inspect
Submit : func(id int, proof string) Inspect
Complete : func(id int, wallet .uverse.address) Inspect
ApproveProject : func(p .uverse.address, on bool) Inspect
Revoke : func(wallet .uverse.address, id int) Inspect
HasCard : func(wallet .uverse.address, id int) bool Inspect
BestRarity : func(wallet .uverse.address) int Inspect
HasRarity : func(wallet .uverse.address, min int) bool Inspect
PointsOf : func(wallet .uverse.address) int64 Inspect
CardCount : func(wallet .uverse.address) int Inspect
award : func(q *mequest.Quest, user .uverse.address) Inspect
open : func(q *mequest.Quest, user .uverse.address) Inspect
send : func(to .uverse.address, amt int64) Inspect
requireWallet : func() Inspect
onlyAdmin : func() Inspect
mustQuest : func(id int) *mequest.Quest Inspect
note : func(s string) Inspect
itoa : func(n int) string Inspect
gnot : func(ugnot int64) string Inspect
short : func(a .uverse.address) string Inspect
Render : func(path string) string Inspect
renderBoard : func() string Inspect
renderQuest : func(q *mequest.Quest) string Inspect
renderPassport : func(w .uverse.address) string Inspect
renderTop : func() string Inspect