saleFeeRecipient
untyped string// gnotchi-opponent, v4's choice
Value
"g1ylpe9juk8cafgf9rt09wzuz85ug2lyfk5metyv"
saleFeeRateBps
int64// 5% of the declared price
Value
500
saleFeeFloorUgnot
int64// 1 GNOT flat minimum per sale
Value
1000000
collectionName
untyped stringValue
"Gnotchi gnomes"
collectionSymbol
untyped stringValue
"GNOME"
adminAddress
untyped stringValue
"g1nq99m3h9ed7vqve6ajpr3qwy2ls252m8jnundm"
numEyes
int64Value
10
numNoses
int64Value
8
hourSeconds
int64Value
3600
daySeconds
int64Value
86400
numPlots
untyped bigint// acorns.plots
Value
(3 <untyped> bigint)
plantCost
int64// acorns.plantCost
Value
1
feedCost
int64// acorns.feedCost
Value
1
acornsStart
int64Value
10
meterMax
int64Value
10
patCheer
int64Value
3
hungryAtOrBelow
int64Value
2
growHours
int64Value
24
patCooldownHours
int64Value
12
tinkerCost
int64Value
5
levelBase
int64Value
50
levelStep
int64Value
25
sulkyPenaltyPct
int64Value
10
harvestPerPlot
int64Value
3
feedBelly
int64Value
4
bellyDropEveryHours
int64Value
3
cheerDropEveryHours
int64Value
6
dailyCareCap
int64Value
60
acornReserve
int64Value
2
happyBonusPct
int64Value
10
happyWindowHours
int64Value
2
sulkyAfterHours
int64Value
72
maxLevel
int64Value
20
typeAtLevel
int64Value
5
xpPat
int64Value
5
xpFeed
int64Value
5
xpHarvestPerPlot
int64Value
10
xpTinkerTask
int64Value
15
maxActionsPerCall
untyped bigintValue
(32 <untyped> bigint)
maxBackfillHours
int64Value
48
caredWindowDays
uintValue
64
maxGnomesPageSize
untyped bigintValue
(100 <untyped> bigint)
maxListingsPageSize
untyped bigintValue
(100 <untyped> bigint)
ugnotDenom
untyped stringValue
"ugnot"
maxPriceUgnot
int64Value
1000000000000000
maxFeeRateBps
int64Value
10000
maxListingDays
int64Value
30
moodHungry
untyped stringValue
"hungry"
moodSulky
untyped stringValue
"sulky"
moodHappy
untyped stringValue
"happy"
moodContent
untyped stringValue
"content"
actionPat
untyped stringValue
"pat"
actionFeed
untyped stringValue
"feed"
actionPlant
untyped stringValue
"plant"
actionHarvest
untyped stringValue
"harvest"
actionTinker
untyped stringValue
"tinker"
typeGardener
untyped stringValue
"gardener"
typeExplorer
untyped stringValue
"explorer"
typeTinkerer
untyped stringValue
"tinkerer"
batchCap
int64Value
24
numNamedEditions
untyped bigintValue
(3 <untyped> bigint)
lockCaredDays
int64Value
30
maxNameLen
untyped bigintValue
(24 <untyped> bigint)
pinOffsetSeconds
int64Value
60
pinOffsetRounds
int64pinOffsetRounds is a const expression over an imported const (beacon.PeriodSeconds), which Gno permits across package boundaries exactly as it would within one; TestPinOffsetIsTwentyRounds pins the arithmetic rather than trusting the comment above.
Value
20
hatOptions
[4]stringhatOptions / coatOptions: v4's validHats/validCoats catalogue, as an ORDERED array rather than a set, because Settle needs to draw a POSITION, not merely validate one. Order is frozen the moment this realm deploys, exactly as v4's own numEyes/numNoses ordering is frozen -- a part may be redrawn; it may never be reordered, removed or renumbered (v4's own comment on this).
- OID
- 00ecdb…27e8:4
hatOptions details
coatOptions
[4]string- OID
- 00ecdb…27e8:6
coatOptions details
eyesWeights
[10]int64eyesWeights: ECONOMY.md section 3, verbatim -- "eyes across 4 colours at 15%, 3 at 9%, 2 at 5%, 1 at 3%" -- 4+3+2+1 = 10 entries = numEyes, and 4\*15+3\*9+2\*5+1\*3 = 100. TestWeightTablesSumToOneHundred pins the sum rather than trusting the arithmetic in this comment; drawWeighted's own fallback additionally makes a drift here fail safe, not silently.
- OID
- 00ecdb…27e8:8
eyesWeights details
noseWeights
[8]int64noseWeights: ECONOMY.md section 3 says only "nose similar across 8 shapes" and gives no exact percentages -- BATCH-ONE.md section 4a names this directly as real work nobody has done yet. This is a SHAPE-FAITHFUL INTERPRETATION, not a transcription: four tiers of two shapes each, 20/20/15/15/10/10/5/5, the same big-gap-then-smaller-gaps shape eyesWeights has, scaled to 8 entries and summing to 100. Flagged here, not quietly presented as sourced, so the owner or a future author can replace it with real numbers the moment ECONOMY.md section 3 gets them.
- OID
- 00ecdb…27e8:10
noseWeights details
namedEditionOrder
[3]stringnamedEditionOrder: BATCH-ONE.md section 7's three names, in the fixed order Settle's namedPick indexes into. The order carries no meaning -- it is not a ranking -- it only has to be fixed, which it is, forever, the moment this realm deploys.
- OID
- 00ecdb…27e8:12
namedEditionOrder details
namedEditionDisplayNames
[3]stringnamedEditionDisplayNames: BATCH-ONE.md section 7's three names AS THEY ARE WRITTEN -- "Hob, Thistle, Wick", the form this file's own documentation uses throughout -- paired by index with namedEditionOrder above. WHY A SECOND ARRAY RATHER THAN JUST CAPITALISING namedEditionOrder, which is the change a reviewer will reach for first: namedEditionOrder's values are not labels, they are KEYS. settleCore writes characterOwner.Set(character, ...) and tests characterOwner.Has(candidate) with those exact strings, and the public CharacterOwner(name) reader does a raw tree Get with no case folding at all -- so CharacterOwner("hob") resolving is a chain fact that an off-chain caller already depends on, and init() registers the genesis gnome under the matching lowercase key "genesis". Capitalising namedEditionOrder would move those keys to "Hob" while leaving "genesis" lowercase, break CharacterOwner("hob") for every existing caller, and it is unfixable after deploy. The keys stay canonical. This array exists ONLY to supply the gnome's \`name\`, which is a DISPLAY STRING and has always been a different thing from its canonical key -- see canonicalNameKey's own comment on why the stored form and the uniqueness key are deliberately two strings. nameOwner is still keyed by canonicalNameKey(name), which folds "Hob" to "hob", so reservedNameKeys and the uniqueness index are untouched by this: no new mechanism, just the display side of a separation that was already here. TestNamedEditionDisplayNamesPairWithTheirCanonicalKeys pins the pairing in both directions, so an edit to either array that breaks it fails a test rather than shipping a one-of-one whose display name canonicalises to somebody else's key.
- OID
- 00ecdb…27e8:14
namedEditionDisplayNames details
namedEditionDisplayName
func(character string) stringnamedEditionDisplayName maps a named edition's canonical character key to its display name. Used by settleCore's mint and mirrored by the test fabricator, so there is exactly one copy of the mapping. Returns the input unchanged for anything that is not one of the three editions -- which is unreachable from settleCore (it only ever passes a namedEditionOrder entry) and is a pass-through rather than a panic because this is a label lookup, not a security boundary.
- OID
- 00ecdb…27e8:15
namedEditionDisplayName details
genesisGnomeName
untyped stringgenesisGnomeName: DECISIONS.md 2026-10-15 settles the MECHANISM (minted to this realm's own address, non-transferable, never listable, separate from the batch) but never settles a NAME anywhere in this project's documents. Placeholder, named as one; change it freely before deploying. CHANGED FROM v5 IN ONE RESPECT, deliberately: v5's comment ended "it is read by nothing else in this file", which was true there and is NOT true here. v6 fix 1 writes this string into the genesis gnome's own \`name\` field at init() and registers its canonical key in nameOwner, so changing it also changes which name is taken. It must still canonicalise to one of reservedNameKeys below, or an ordinary gnome could be named "Genesis" and pose as it -- TestGenesisNameIsReserved pins exactly that, so an edit here that breaks the pairing fails a test rather than shipping.
Value
"Genesis"
reservedNameKeys
[4]stringreservedNameKeys: the canonical name keys NO ORDINARY GNOME MAY EVER TAKE -- the three named one-of-ones (BATCH-ONE.md section 7's roster, re-read rather than assumed: Hob, Thistle, Wick) plus the genesis gnome. Checked by SetName; see assertNameAssignable. WHY THIS EXISTS SEPARATELY FROM THE nameOwner UNIQUENESS INDEX, which is the subtle part and the reason a reviewer should not "simplify" one of the two away: the uniqueness index only protects a name that is ALREADY TAKEN BY A LIVING TOKEN. Hob's cap-one edition may not have been minted yet -- its namedPick is a pure function of a drand round nobody has rolled -- and for the whole window before it mints, nameOwner has no "hob" key at all. Without this list, the FIRST ordinary claimant could name their gnome "Hob", take the key, and the real Hob would then mint into a collection where its own name already belongs to an impostor. Reservation covers the pre-mint window; uniqueness covers the post-mint one. Both are needed, and together they are the "two locks on a door" discipline this file already uses for the genesis gnome. Every entry is already in canonical form (lowercase, single-spaced, trimmed), and TestReservedNameKeysAreCanonical pins that -- a non-canonical entry here would be a key canonicalNameKey could never produce, i.e. a reservation that silently protects nothing.
- OID
- 00ecdb…27e8:18
reservedNameKeys details
plot
typeplot: unchanged from v4. plantedAt == 0 is the empty state; readyAt is stored, not computed, so a future change to growHours (there is none possible in this file, but the shape is kept for the day a v6 adds tuning back) could never reach backwards into an already-planted plot.
Value
v6.plot
gnome
typegnome is the whole persisted pet. EVERY FIELD HERE HAS AN EXPORTED READER -- v4's own rule, carried over verbatim: a realm cannot grow a second chance at this after deploy. NOT HERE, DELIBERATELY: a hat/coat the OWNER chose (nothing is chosen at mint any more; hat/coat are ROLLED exactly as eyes/nose are, and are exactly as permanent as eyes/nose always were in v4 -- there has never been a function anywhere in this family of realms that changes a gnome's hat or coat after mint). v5's own comment also listed "a name" here; v6 fix 1 is precisely the correction of that, and \`name\` is below. character is "" for every ordinary gnome and one of namedEditionOrder's three strings for a named one-of-one. eyes/nose/hat/coat are the sentinel -1/-1/""/"" for a named edition: its look is NOT a point in the ordinary 1,280-look space, it is BATCH-ONE.md section 6's own new art (Hob's crown and gold coat, Thistle's helmet and axe, Wick's lantern), which this contract does not need to know the pixels of -- only that Character(tokenID) names it, so the app can render the right thing. A named edition's parts are therefore never counted in eyesCounts/noseCounts/hatCounts/coatCounts: it is already as rare as a thing can be, at cap one, counted instead through characterOwner.
Value
v6.gnome
listing
typelisting: unchanged in shape from v4, now simply one of possibly SEVERAL a single owner may have standing at once (mint one, hold many) -- listings is still keyed by tokenID, which was always the right key for this and needed no change.
Value
v6.listing
feeConfig
typefeeConfig: unchanged from v4.
Value
v6.feeConfig
pendingClaim
typependingClaim is the record Claim writes and Settle consumes: the permanent, irrevocable fact that this address spent its one roll, and the future drand round it is waiting on.
Value
v6.pendingClaim
token
*v0.Token- OID
- 00ecdb…27e8:183
token details
ledger
*v0.PrivateLedger- OID
- 00ecdb…27e8:185
ledger details
nextID
v0.IDValue
<zero>
gnomes
*v0.Tree// tokenID -> \*gnome
- OID
- 00ecdb…27e8:23
gnomes details
ownerTokens
*v0.Tree- OID
- 00ecdb…27e8:26
ownerTokens details
activeToken
*v0.Tree- OID
- 00ecdb…27e8:29
activeToken details
lastWakeDay
*v0.Tree- OID
- 00ecdb…27e8:32
lastWakeDay details
lastCaredDayForOwner
*v0.Tree- OID
- 00ecdb…27e8:35
lastCaredDayForOwner details
balances
*v0.Tree// owner address -> int64 acorns, per PLAYER, exactly as v4
- OID
- 00ecdb…27e8:38
balances details
listings
*v0.Tree// tokenID -> \*listing
- OID
- 00ecdb…27e8:41
listings details
allowlist
*v0.Tree- OID
- 00ecdb…27e8:44
allowlist details
hasRolled
*v0.Tree- OID
- 00ecdb…27e8:47
hasRolled details
pendingClaims
*v0.Tree- OID
- 00ecdb…27e8:50
pendingClaims details
eyesCounts
*v0.Tree- OID
- 00ecdb…27e8:53
eyesCounts details
noseCounts
*v0.Tree- OID
- 00ecdb…27e8:56
noseCounts details
hatCounts
*v0.Tree- OID
- 00ecdb…27e8:59
hatCounts details
coatCounts
*v0.Tree- OID
- 00ecdb…27e8:62
coatCounts details
nameOwner
*v0.Tree- OID
- 00ecdb…27e8:65
nameOwner details
characterOwner
*v0.Tree- OID
- 00ecdb…27e8:68
characterOwner details
mintedCount
int64// reservations made by Claim, gates batchCap; never decremented
Value
0
settledCount
int64// completions made by Settle; informational only, see BatchStatus
Value
0
genesisTokenID
string// set exactly once, in init()
Value
"0000001"
rulesFrozen
bool// always true: there are no rules to freeze or unfreeze in v5. See AdminState.
Value
true
fee
v6.feeConfig- OID
- 00ecdb…27e8:182
fee details
transferGate
stringValue
""
init.104
func()- OID
- 00ecdb…27e8:77
init.104 details
assertFeeConfig
func(cfg v6.feeConfig, realmAddr .uverse.address)assertFeeConfig: unchanged from v4's own gate.
- OID
- 00ecdb…27e8:78
assertFeeConfig details
saleGateExtension
typesaleGateExtension: v4's shape, plus the genesis refusal. Panics on every transfer except the one Buy is performing right now, and ALWAYS panics for genesisTokenID regardless of transferGate -- there is no path, including a future bug in Buy, by which the genesis gnome should ever be transferable, so this checks it first and unconditionally.
Value
v6.saleGateExtension
AdminAllow
func(addr .uverse.address)AdminAllow adds addr to the allowlist, so it may call Claim. Adding an address a second time is a harmless no-op. Adding an address that has already rolled changes nothing -- hasRolled is checked independently and is permanent regardless of allowlist state.
- OID
- 00ecdb…27e8:79
AdminAllow details
AdminDisallow
func(addr .uverse.address)AdminDisallow removes addr from the allowlist. It does NOT, and cannot, undo a roll already spent: hasRolled is a separate, permanent record, and this function never touches it. Removing an address that was never allowed, or that has already claimed, is a harmless no-op.
- OID
- 00ecdb…27e8:80
AdminDisallow details
Claim
func()Claim spends the caller's one-and-only roll on this realm and pins a drand round that does not exist yet. It mints NOTHING -- Settle does that, once the pinned round is actually published -- because the whole point of this split is that the result must not be computable, by anyone, including this transaction's own caller, at the moment the roll becomes irrevocable (MINT.md section 10.2: gno.land has no on-chain entropy at all, so anything decidable inside one transaction is decidable by the caller before broadcasting it). WALLET-ONLY, the same reasoning as v4's Adopt: a gnome minted to a realm's address could never be recovered, so a batching, sponsor or multicall realm must never be able to spend a roll on anyone's behalf. The \`gnokey maketx run\` shape is refused by the identical gate, for the identical reason (IsUserCall is false for both).
- OID
- 00ecdb…27e8:81
Claim details
pendingClaimFor
func(claimant .uverse.address) *v6.pendingClaimpendingClaimFor looks up claimant's pending roll, shared by both Settle and SettleWithSignature so the "no pending claim" message and lookup logic exist exactly once.
- OID
- 00ecdb…27e8:82
pendingClaimFor details
Settle
func(claimant .uverse.address)Settle computes and permanently mints the result of claimant's pending roll, once the round Claim pinned has actually been published to the beacon by SOMEBODY -- another claimant's own SettleWithSignature, a relay, anyone. It does not publish anything itself; call SettleWithSignature instead if the round is not published yet and the caller has its signature to offer. ANYONE may call this -- the claimant themself, the project's own relayer, a stranger -- because by the time it can succeed at all, nothing is left to decide: the drand signature for the pinned round either exists publicly or it does not, and the parts this mints are a pure function of (that signature, the claimant's own address), fixed the instant the round is published, not the instant Settle happens to be called. Simulating this call before calling it for real previews a fact, not a choice -- exactly the property MINT.md section 10.5 names as the whole fix: "reading the result afterward is a free query, same as any other realm read." Refuses coins for the same reason every other non-paying function here does: there is no banker to return them, and this is a free, permissionless computation, never a payment.
- OID
- 00ecdb…27e8:83
Settle details
SettleWithSignature
func(claimant .uverse.address, sigHex string)SettleWithSignature is Settle, plus: if claimant's pinned round has not been published yet, this function publishes it ITSELF first, in this same transaction, using sigHex -- the round's drand signature, which the caller's own app fetches read-only from drand's public API ([https://api.drand.sh/](https://api.drand.sh/)\<chain>/public/\<round> or any mirror) and passes straight through unmodified. This is the function a player's app should call once it has fetched a signature; Settle (above) remains for a caller with no signature to offer, or that already knows (or does not care) that somebody else has published the round. SAFE EITHER WAY THE ROUND TURNS OUT TO BE, which is the one property this function exists to guarantee and the live chain fact its shape is built around (see the package doc): beacon/v2's own Publish PANICS, not no-ops, when the round is already published, so this function checks beacon.Published first and only calls Publish if that check says no. If the round was published by someone else (another claimant's own SettleWithSignature, a relay, anyone) between the moment the caller fetched sigHex and the moment this transaction lands, sigHex is simply never used -- this function still succeeds, exactly as Settle would have. A bad sigHex, by contrast, is a real failure: beacon.Publish rejects it with its own "beacon: invalid signature" panic, which aborts this whole call (and the claim stays pending, to be retried with a correct signature or left for Settle once someone else relays it). Refuses coins for the same reason Settle does and every non-paying function here does: there is no banker to return them, and this is a free, permissionless computation -- the only payment anywhere in this call is the ordinary GNOT gas the caller's own transaction spends, to the network, never to this project (MINT.md section 14).
- OID
- 00ecdb…27e8:84
SettleWithSignature details
settleCore
func(claimant .uverse.address, pc *v6.pendingClaim)settleCore is Settle's and SettleWithSignature's shared tail: the draw, the mint, and every write that follows, once the caller above has already confirmed the pinned round is published. Takes no \`cur realm\` because it makes no cross-realm call of its own -- beacon.Randomness and beacon.Published below are plain reads, not crossing functions, exactly as they always were before this change.
- OID
- 00ecdb…27e8:85
settleCore details
fnv64a
func(s string) uint64fnv64a is a plain, non-cryptographic 64-bit FNV-1a hash. IT IS NOT THE SOURCE OF UNPREDICTABILITY HERE -- drand's signature for a not-yet-existent round is, exactly as MINT.md section 10.5 designs. This exists only to DECORRELATE independent draws (two different claimants sharing a pinned round, or one claimant's own eyes-draw from their own nose-draw) from a single public drand value, the same category of use math/rand's PCG(0,0) would be fine for once combined with a secure external seed -- see MINT.md section 10.5's own list of unsafe constructions for why math/rand ALONE is not used, and note this is never alone: every call site below mixes in beacon.Randomness(pc.round), which is the only thing doing real work.
- OID
- 00ecdb…27e8:86
fnv64a details
seedFor
func(randomnessHex string, claimant .uverse.address, purpose string) uint64seedFor derives one independent-looking 64-bit value from the published drand randomness, the claimant's own address, and a purpose string -- so a single drand round can safely drive several unrelated draws (which named edition, which eyes, which nose, which hat/coat) for several different simultaneous claimants without any of them correlating with each other.
- OID
- 00ecdb…27e8:87
seedFor details
drawWeighted
func(weights []int64, totalWeight int64, seed uint64) intdrawWeighted picks an index into weights (which TestWeightTablesSumToOneHundred pins as summing to totalWeight) using seed as the source of randomness -- a plain cumulative-sum bucket walk, MINT.md section 10.5's own recommendation for what Settle should do ("a simple, bounded index... easy to audit"), applied to a weight table instead of a published array, which is the same shape of arithmetic.
- OID
- 00ecdb…27e8:88
drawWeighted details
Wake
func(tokenID string)Wake makes tokenID the caller's awake gnome. Free, and limited to once per UTC day -- the same day-boundary discipline SaveDay's own dailyCareDay already uses, chosen over a GNOT fee for the reason MINT.md section 2a gives: "a cost that cannot be bought, only lived".
- OID
- 00ecdb…27e8:89
Wake details
saveAction
typeValue
v6.saveAction
SaveDay
func(actionsRaw string)- OID
- 00ecdb…27e8:90
SaveDay details
ChooseType
func(kind string)- OID
- 00ecdb…27e8:91
ChooseType details
SetName
func(tokenID string, name string)SetName names tokenID, which the caller must currently own, or RENAMES it. Free, unlimited, and refused for the three named one-of-ones and the genesis gnome. RENAMING IS ALLOWED, NOT ONE-SHOT, and this is a deliberate decision with a named trade-off rather than an oversight. On an immutable realm a one-shot name means a typo is forever, and "my gnome is called Fenncik" is a worse permanent outcome than "somebody changed their mind". Aavegotchi, the closest prior art this project has looked at, allows renaming. What it costs: a name is not a stable identifier over time, so nothing anywhere -- in this realm, in the adventure realm, or in the app -- may ever key anything on a name. tokenID is the identifier; the name is a label. (The nameOwner index is keyed BY name only to answer "is this taken", never to identify a gnome; every function here looks tokens up by tokenID.) Refuses coins for the same reason every other non-paying function here does: there is no banker to return them, and naming your own gnome is free (MINT.md section 14 -- batch one is free end to end, and this is not a new place to charge).
- OID
- 00ecdb…27e8:92
SetName details
assertNameAssignable
func(name string, tokenID string)assertNameAssignable is SetName's refusal gate: it panics with nameAssignabilityProblem's message, or returns normally if name may be assigned to tokenID. The rules themselves are in nameAssignabilityProblem, not here, so the free NameAvailability query and this enforcing path can never disagree about what is allowed -- there is exactly one copy.
- OID
- 00ecdb…27e8:93
assertNameAssignable details
nameAssignabilityProblem
func(name string, tokenID string) stringnameAssignabilityProblem is THE one copy of the naming rules. It returns "" if name may be assigned to tokenID, or the exact player-meaningful message explaining which rule refused it. IT RETURNS ITS REFUSAL RATHER THAN PANICKING IT so that NameAvailability can offer the same answer as a free read without any recover() -- see NameAvailability's own note on why recover is avoided on this toolchain. ORDER IS DELIBERATE AND MATCHES app/js/config.js's nameError, which mirrors v4's realm order: length, then charset, then visible content, then (new in v6) reservation, then uniqueness. A name that fails several rules reports the first, so the app's own message and the realm's refusal always name the SAME rule for the same input rather than disagreeing about which problem is the problem.
- OID
- 00ecdb…27e8:94
nameAssignabilityProblem details
List
func(tokenID string, priceUgnot int64, buyer .uverse.address, days int64)List offers tokenID, which the caller must own, for sale. The lock: a named one-of-one (character != "") cannot be listed until it has lockCaredDays cared days; an ordinary gnome has no such restriction, trading from the moment it is minted (MINT.md section 12/13).
- OID
- 00ecdb…27e8:95
List details
Cancel
func(tokenID string)Cancel withdraws the caller's own listing on tokenID. Only the seller who created it may.
- OID
- 00ecdb…27e8:96
Cancel details
Buy
func(tokenID string)Buy purchases the listed gnome tokenID. v4's validate-then-commit shape, unchanged, MINUS the one-gnome-per-address refusal: MINT.md section 2a removes the hold cap from Buy specifically, and only from Buy -- Claim's hasRolled gate is the cap that still matters, and this function never touches it.
- OID
- 00ecdb…27e8:97
Buy details
Listing
func(tokenID string) (seller .uverse.address, priceUgnot int64, buyer .uverse.address, listedAtUnix int64, expiresAtUnix int64, feeUgnot int64, totalUgnot int64, found bool)- OID
- 00ecdb…27e8:98
Listing details
TotalListings
func() int64- OID
- 00ecdb…27e8:99
TotalListings details
ListingsPage
func(offset int, limit int) []string- OID
- 00ecdb…27e8:100
ListingsPage details
QuoteFee
func(priceUgnot int64) (feeUgnot int64, totalUgnot int64)- OID
- 00ecdb…27e8:101
QuoteFee details
FeeRules
func() string- OID
- 00ecdb…27e8:102
FeeRules details
Provenance
func(tokenID string) (adoptedAtUnix int64, acquiredAtUnix int64, saleCount int64, found bool)- OID
- 00ecdb…27e8:103
Provenance details
Name
func(tokenID string) (name string, found bool)Name returns tokenID's name, or found=false if there is no such token. A name of "" is a REAL, EXPECTED ANSWER, not an error: it means this gnome has not been named yet, which is the state every ordinary gnome mints in. found reports whether the TOKEN exists, never whether it has a name -- check the string for that.
- OID
- 00ecdb…27e8:104
Name details
NameOwner
func(name string) (tokenID string, found bool)NameOwner resolves a name to the tokenID currently carrying it, matching the same way SetName refuses duplicates: on the canonical form, so any capitalisation or spacing of a taken name finds it. This is the uniqueness index read back, and the honest answer to "who is Fennick".
- OID
- 00ecdb…27e8:105
NameOwner details
NameAvailability
func(name string, tokenID string) (ok bool, reason string)NameAvailability answers "would SetName accept this name, and if not why" WITHOUT a transaction -- a free query against the same assertNameAssignable the write path uses, so the realm itself is the authority the app checks against instead of a second copy of the rules that can drift from it. reason is "" when ok is true, and the realm's own refusal message otherwise. The tokenID argument matters for exactly one case: a name is available TO THE TOKEN THAT ALREADY HOLDS IT (re-capitalising your own gnome's name). Pass "" to ask the general question "is this name free for somebody new", which is what an app naming a fresh gnome wants. THIS IS A CONVENIENCE, NOT THE AUTHORITY, and the distinction is load-bearing: a true answer here can be made false by somebody else's transaction landing first. SetName re-checks everything itself, always -- this function cannot be used to skip a check, only to avoid wasting a player's gas on a refusal that was already knowable. NOTE ON SHAPE, because the obvious implementation is a trap on this toolchain: this does NOT call SetName's validator and recover() from its panic. \`recover()\` does not reliably catch a panic across a realm boundary in Gno (MEMORY.md records this costing this project real time), and a reader should not have to reason about whether a same-realm call is the exception. So the rules live in nameAssignabilityProblem, which RETURNS its refusal instead of panicking it, and both this reader and assertNameAssignable call that one copy. No recover anywhere.
- OID
- 00ecdb…27e8:106
NameAvailability details
SettledRound
func(tokenID string) (round int64, found bool)SettledRound returns the drand round whose published signature produced tokenID's parts -- v6 FIX 2, and the one query that makes this project's "provably unrigged" claim (ECONOMY.md section 1) checkable by a holder rather than merely asserted at them. Fetch [https://api.drand.sh/](https://api.drand.sh/)\<chain>/public/\<round>, hash its signature, and re-derive the parts with this file's own seedFor/drawWeighted against your own address: a round signed by drand before anybody knew who would pin it cannot have been chosen to produce a particular gnome. round == 0 means this token was never produced by a roll, which is true of exactly one token ever: the genesis gnome. found reports whether the token exists.
- OID
- 00ecdb…27e8:107
SettledRound details
MaxNameLen
func() int64MaxNameLen is maxNameLen read back, so the app can show the limit it will be held to instead of hardcoding a second copy of the number (app/js/config.js's NAME\_MAX\_LEN is the other copy, and the two are kept equal by hand and by TestMaxNameLenMatchesTheAppsRule).
- OID
- 00ecdb…27e8:108
MaxNameLen details
GnomeByToken
func(tokenID string) (hat string, coat string, eyes int64, nose int64, character string, level int64, gnomeType string, adoptedAtUnix int64, found bool)GnomeByToken: the basic facts for one token -- hat, coat, eyes, nose, character (empty for an ordinary gnome), level, calling and the moment it was minted. SIGNATURE UNCHANGED FROM v5 -- the name is Name(tokenID) and the round is SettledRound(tokenID); see the note above.
- OID
- 00ecdb…27e8:109
GnomeByToken details
ActiveGnome
func(addr .uverse.address) (tokenID string, found bool)ActiveGnome returns the tokenID that is awake for addr right now, or found=false if nothing is (never claimed or bought a gnome, or sold the only one and has not Woken another since).
- OID
- 00ecdb…27e8:110
ActiveGnome details
OwnerTokens
func(addr .uverse.address) []stringOwnerTokens returns every tokenID addr currently holds, in no particular order. Unbounded and unpaginated deliberately: batchCap is 24 and the genesis gnome is permanently unreachable to any wallet, so no address can ever hold more than batchCap tokens, which is a small, fixed upper bound this call is always safely within.
- OID
- 00ecdb…27e8:111
OwnerTokens details
TokensPage
func(offset int, limit int) []stringTokensPage: the global token enumerator, hollowmere/v1's own pattern (TotalClaimants/ ClaimantsPage) applied here, because v4's own missing-enumerator lesson (DECISIONS.md:780-791, arena/v1 shipping with no challenge inbox and no way to ever add one) is unavailable to fix after deploy and twenty lines now is cheaper than "unavailable forever" later.
- OID
- 00ecdb…27e8:112
TokensPage details
GardenState
func(tokenID string) (plantedAtCsv string, readyAtCsv string, readyCount int64, found bool)- OID
- 00ecdb…27e8:113
GardenState details
CareState
func(tokenID string) (belly int64, cheer int64, acorns int64, totalXp int64, lastPatAtUnix int64, lastHappyEventAtUnix int64, lastActionAtUnix int64, found bool)- OID
- 00ecdb…27e8:114
CareState details
MeterState
func(tokenID string) (belly int64, bellyAtUnix int64, cheer int64, cheerAtUnix int64, found bool)- OID
- 00ecdb…27e8:115
MeterState details
Progress
func(tokenID string) (xpGarden int64, xpTinker int64, harvestCount int64, lastTinkerAtUnix int64, caredDayCount int64, dailyCareXpSpent int64, dailyCareDay int64, found bool)- OID
- 00ecdb…27e8:116
Progress details
CaredDays
func(tokenID string) (daysCsv string, found bool)- OID
- 00ecdb…27e8:117
CaredDays details
Mood
func(tokenID string) (mood string, found bool)- OID
- 00ecdb…27e8:118
Mood details
IsLocked
func(tokenID string) (locked bool, found bool)IsLocked reports whether tokenID is currently refused by List's lockCaredDays check -- true only for a named one-of-one with fewer than lockCaredDays cared days; false for every ordinary gnome, always, and false for a named one-of-one once it has enough cared days.
- OID
- 00ecdb…27e8:119
IsLocked details
CollectionInfo
func() (name string, symbol string)- OID
- 00ecdb…27e8:120
CollectionInfo details
TotalSupply
func() int64- OID
- 00ecdb…27e8:121
TotalSupply details
BalanceOf
func(addr .uverse.address) int64- OID
- 00ecdb…27e8:122
BalanceOf details
OwnerOfToken
func(tokenID string) (owner .uverse.address, found bool)- OID
- 00ecdb…27e8:123
OwnerOfToken details
TotalGnomes
func() int64- OID
- 00ecdb…27e8:124
TotalGnomes details
Acorns
func(addr .uverse.address) (acorns int64, found bool)- OID
- 00ecdb…27e8:125
Acorns details
EyesCount
func(id int64) int64- OID
- 00ecdb…27e8:126
EyesCount details
NoseCount
func(id int64) int64- OID
- 00ecdb…27e8:127
NoseCount details
HatCount
func(hat string) int64- OID
- 00ecdb…27e8:128
HatCount details
CoatCount
func(coat string) int64- OID
- 00ecdb…27e8:129
CoatCount details
CharacterOwner
func(name string) (tokenID string, found bool)CharacterOwner resolves one of the three named one-of-ones, or the genesis gnome under its own name "genesis", to its tokenID, once minted. (Second-audit-pass nitpick: an earlier version of this comment said only "one of the three named one-of-ones", which stopped being true the moment init() registered "genesis" here too -- see init()'s own comment for why that registration is safe and never touches the three editions' cap.)
- OID
- 00ecdb…27e8:130
CharacterOwner details
IsAllowlisted
func(addr .uverse.address) bool- OID
- 00ecdb…27e8:131
IsAllowlisted details
HasRolled
func(addr .uverse.address) bool- OID
- 00ecdb…27e8:132
HasRolled details
PendingClaim
func(addr .uverse.address) (round int64, claimedAtUnix int64, found bool)- OID
- 00ecdb…27e8:133
PendingClaim details
BatchStatus
func() (mintedSoFar int64, settledSoFar int64, batchCapOut int64, namedMinted int64, namedCapOut int64)BatchStatus: mintedCount is reservations made by Claim (gates batchCap); settledCount is completions made by Settle (always \<= mintedCount, the gap being pending, unsettled claims); namedMinted is how many of the three named one-of-ones have actually been minted so far -- read live off characterOwner rather than a separate counter, so there is only ever one source of truth for "has this edition been taken".
- OID
- 00ecdb…27e8:134
BatchStatus details
GenesisTokenID
func() string- OID
- 00ecdb…27e8:135
GenesisTokenID details
AdminState
func() (admin .uverse.address, frozen bool)- OID
- 00ecdb…27e8:136
AdminState details
LastWakeDay
func(addr .uverse.address) (day int64, found bool)- OID
- 00ecdb…27e8:137
LastWakeDay details
Render
func(path string) stringRender DELIBERATELY ECHOES NO PLAYER-SUPPLIED STRING, and v6 keeps it that way even though it now has gnome names it could print. THIS IS THE DEFENCE AGAINST ABUSIVE NAMES ON A PUBLIC PAGE, and it is structural rather than a filter: gnoweb renders this output as markdown, so a page that listed names would be a markdown sink fed by arbitrary player input, and the project would then own a moderation problem on an immutable realm with no moderation surface. v5's own adversarial review (ATTACK-REVIEW.md, "Render sanitisation") recorded "no injection surface" as a property of this function; adding a name here would have been the one change in this file that falsified an audited claim. Belt and braces, because "nothing echoes names today" is only one edit away from being false: the name charset allowlist (letters, digits, space, hyphen, apostrophe -- see validNameRune) excludes every markdown metacharacter there is. No '\[', ']', '(', ')', '\<', '>', '\*', '\_', backtick, pipe or newline can appear in a name, so even a future Render that DID print one could not be made to inject link syntax, a raw HTML tag or a table break. An abusive name is therefore limited to being rude in words, visible only to someone who queries that specific token, never on a page this project publishes.
- OID
- 00ecdb…27e8:138
Render details
gnomeByTokenID
func(tokenID string) (*v6.gnome, bool)- OID
- 00ecdb…27e8:139
gnomeByTokenID details
activeGnomeForAddr
func(addr .uverse.address) (tid string, g *v6.gnome, found bool)activeGnomeForAddr resolves addr's AWAKE gnome, if any. This is the one and only lookup SaveDay and ChooseType use -- there is deliberately no "the gnome for this address" any more.
- OID
- 00ecdb…27e8:140
activeGnomeForAddr details
ownerOfToken
func(tokenID string) (owner .uverse.address, found bool)- OID
- 00ecdb…27e8:141
ownerOfToken details
addOwnerToken
func(addr .uverse.address, tokenID string)addOwnerToken / removeOwnerToken: the hold-many index. ownerTokens stores a \*\[]string per owner so repeated appends mutate one allocation rather than replacing the tree entry every time; removal does a linear scan, which is fine at this realm's permanent, tiny upper bound (batchCap = 24 tokens that will ever exist, minus the one permanently unreachable genesis gnome, so no owner's slice is ever longer than 24 entries for the whole life of this realm).
- OID
- 00ecdb…27e8:142
addOwnerToken details
removeOwnerToken
func(addr .uverse.address, tokenID string)- OID
- 00ecdb…27e8:143
removeOwnerToken details
balanceOf
func(addr .uverse.address) int64- OID
- 00ecdb…27e8:144
balanceOf details
setBalance
func(addr .uverse.address, v int64)- OID
- 00ecdb…27e8:145
setBalance details
grantStartingPurseIfNew
func(addr .uverse.address)- OID
- 00ecdb…27e8:146
grantStartingPurseIfNew details
feeFor
func(priceUgnot int64) int64- OID
- 00ecdb…27e8:147
feeFor details
exactUgnot
func(send chain.Coins, want int64) bool- OID
- 00ecdb…27e8:148
exactUgnot details
coinsString
func(c chain.Coins) string- OID
- 00ecdb…27e8:149
coinsString details
listingFor
func(tokenID string) (*v6.listing, bool)- OID
- 00ecdb…27e8:150
listingFor details
validNameLength
func(name string) bool- OID
- 00ecdb…27e8:151
validNameLength details
validNameCharset
func(name string) bool- OID
- 00ecdb…27e8:152
validNameCharset details
hasVisibleNameContent
func(name string) bool- OID
- 00ecdb…27e8:153
hasVisibleNameContent details
invisibleLetterRunes
map[int32]boolinvisibleLetterRunes: the four code points that are Unicode LETTERS and render as nothing. See the section comment above for why a letter allowlist alone cannot catch these. Written as \\uXXXX escapes (v2's audit fix F3) so they survive an editor or formatter that strips default-ignorable characters -- a denylist that can be silently emptied protects nothing. v3 through v5 carried this comment while the entries themselves were literal invisible glyphs, so the comment was false about its own code for three versions and the protection it describes was not actually in place. Restored here, with the escapes BACK IN THE SOURCE this time. The escapes alone are only half of F3. TestEveryInvisibleLetterIsRefused table-drives this map, which means it tests whatever the map happens to contain -- swap one entry for an ordinary letter and that test still passes while the realm ships banning the letter and accepting the invisible one. TestInvisibleLetterRunesIsExactlyFourPinnedCodepoints is the other half: it pins all four code points BY ESCAPE, independently of this map's contents, so that substitution fails loudly.
- OID
- 00ecdb…27e8:155
invisibleLetterRunes details
validNameRune
func(r int32) bool- OID
- 00ecdb…27e8:156
validNameRune details
smartPunctuationRunes
map[int32]boolsmartPunctuationRunes: the four code points iOS substitutes by default for a straight apostrophe or hyphen. NONE of them is accepted by validNameRune -- this map exists only so the refusal can SAY SO instead of reporting a generic charset failure to a player who typed an ordinary apostrophe on an ordinary phone. See nameAssignabilityProblem's own comment on why this realm refuses rather than folds them.
- OID
- 00ecdb…27e8:158
smartPunctuationRunes details
hasSmartPunctuation
func(name string) bool- OID
- 00ecdb…27e8:159
hasSmartPunctuation details
canonicalNameKey
func(name string) stringcanonicalNameKey folds a name to the key nameOwner and reservedNameKeys compare on: lowercase ASCII, runs of spaces collapsed to one, leading and trailing spaces removed. THE STORED NAME AND THE KEY ARE DELIBERATELY TWO DIFFERENT STRINGS. The gnome keeps the name its owner typed, exactly as typed, because that is what a person chose and the app should show it back to them unaltered. The KEY exists only to answer "is this the same name as that one" for uniqueness and reservation, and for THAT question "Hob", "hob", "HOB" and "Hob" with two spaces in it are all plainly the same name. Keying on the raw string instead would make uniqueness worthless and would let anyone walk around the one-of-one reservation by changing one letter's case. WHAT IT DELIBERATELY DOES NOT DO, stated plainly rather than left for a reader to discover: it does not close cross-script HOMOGLYPHS. Cyrillic "А", Greek "Ο" and fullwidth "A" are all Unicode letters, all accepted, and all visually confusable with their Latin counterparts, so "Нob" with a Cyrillic Н is a different key from "Hob" and will be allowed. This is the SAME accepted residual app/js/config.js's NAME\_CHARSET\_RE documents in its own comment, carried forward knowingly: closing it properly needs a confusables table (thousands of mappings, versioned by Unicode, compiled into an immutable realm) and the honest cost/benefit at a 24-gnome collection does not justify it. The defence that IS in place for the case that actually matters -- the three cap-one editions -- is that their names are reserved and unrenameable, so a homoglyph impostor can exist but can never hold the real key, and CharacterOwner (not a name lookup) is what resolves the genuine Hob. ASCII-only lowercasing, following lowerASCII's own v4 reasoning: strings.ToLower would apply locale-independent Unicode case folding whose behaviour is a toolchain-version detail on an immutable realm, and the keys that MUST match exactly (reservedNameKeys) are all ASCII.
- OID
- 00ecdb…27e8:160
canonicalNameKey details
nameOwnerOf
func(key string) (tokenID string, found bool)- OID
- 00ecdb…27e8:161
nameOwnerOf details
lowerASCII
func(s string) stringlowerASCII: v4's own helper, unchanged -- ASCII-only on purpose (see v4's own comment on why not strings.ToLower).
- OID
- 00ecdb…27e8:162
lowerASCII details
anyPlotPlanted
func(g *v6.gnome) bool- OID
- 00ecdb…27e8:163
anyPlotPlanted details
eyesCount
func(id int64) int64- OID
- 00ecdb…27e8:164
eyesCount details
noseCount
func(id int64) int64- OID
- 00ecdb…27e8:165
noseCount details
hatCount
func(hat string) int64- OID
- 00ecdb…27e8:166
hatCount details
coatCount
func(coat string) int64- OID
- 00ecdb…27e8:167
coatCount details
parseActions
func(raw string) []v6.saveAction- OID
- 00ecdb…27e8:168
parseActions details
quoteAction
func(part string) string- OID
- 00ecdb…27e8:169
quoteAction details
parseUnixField
func(s string, part string) int64- OID
- 00ecdb…27e8:170
parseUnixField details
parsePlotField
func(s string, part string) int- OID
- 00ecdb…27e8:171
parsePlotField details
dayNumber
func(unixSeconds int64) int64- OID
- 00ecdb…27e8:172
dayNumber details
recordCaredDay
func(g *v6.gnome, day int64) banked boolrecordCaredDay reports, via banked, whether it actually incremented g.caredDayCount -- false on the no-op branch (day == g.lastCaredDay already, e.g. a second SaveDay call the same UTC day, or a token bought mid-day that the SELLER had already banked that exact day for before the sale). SaveDay's own caller-scoped gate (lastCaredDayForOwner) depends on this: it must only spend the owner's one-bank-per-day allowance on a call that actually banked something, never on a no-op -- a gno-auditor re-audit found that an unconditional advance let a buyer's SaveDay on a token the seller had already banked that day silently consume the buyer's own allowance for the rest of that day, denying an otherwise fully legitimate cared day on a DIFFERENT, genuinely active token later the same day. See the call site in SaveDay.
- OID
- 00ecdb…27e8:173
recordCaredDay details
caredDaysCsv
func(g *v6.gnome) string- OID
- 00ecdb…27e8:174
caredDaysCsv details
meterNow
func(value int64, setAt int64, now int64, dropEveryHours int64) int64- OID
- 00ecdb…27e8:175
meterNow details
clampMeter
func(v int64) int64- OID
- 00ecdb…27e8:176
clampMeter details
canPat
func(lastPatAt int64, now int64, cooldownHours int64) bool- OID
- 00ecdb…27e8:177
canPat details
moodNow
func(belly int64, lastPatAt int64, lastHappyEventAt int64, adoptedAt int64, now int64, hungryThreshold int64) string- OID
- 00ecdb…27e8:178
moodNow details
xpToNext
func(level int64) int64- OID
- 00ecdb…27e8:179
xpToNext details
totalXpForLevel
func(level int64) int64- OID
- 00ecdb…27e8:180
totalXpForLevel details
levelFromXp
func(totalXp int64) int64- OID
- 00ecdb…27e8:181