RealmPath
untyped stringRealmPath is this realm's on-chain address, used in help text.
Value
"gno.land/r/g17dvvky49vjqj6a4cjhwcvzctteqjm9stee000h/gnometavern"
MaxWallNotes
untyped bigintMaxWallNotes caps how many wall notes are kept (oldest are dropped).
Value
(30 <untyped> bigint)
WallNote
typeWallNote is one message pinned to the tavern wall.
Value
gnometavern.WallNote
gnomes
map[.uverse.address]*tavernlogic.Gnome- OID
- 0acab4…580e:4
gnomes details
joinOrder
[].uverse.address- OID
- 0acab4…580e:44
joinOrder details
wall
[]gnometavern.WallNote- OID
- 0acab4…580e:50
wall details
totalServes
intValue
18
callerOf
func() .uverse.address- OID
- 0acab4…580e:8
callerOf details
currentDay
func() int64currentDay returns the current tavern day, derived from chain height.
- OID
- 0acab4…580e:10
currentDay details
mustGnome
func(addr .uverse.address) *tavernlogic.Gnome- OID
- 0acab4…580e:11
mustGnome details
validName
func(name string) bool- OID
- 0acab4…580e:12
validName details
Register
func(name string) stringRegister creates a gnome for the caller's address. One gnome per address, and names are unique across the tavern.
- OID
- 0acab4…580e:13
Register details
Serve
func(itemID int) stringServe serves one menu item to a tavern guest. The item is chosen by its menu ID (see the menu page). Pays coins and XP per the menu.
- OID
- 0acab4…580e:14
Serve details
ClaimQuest
func(slot int) stringClaimQuest claims the reward for today's quest in board slot 0, 1 or 2, once its requirement has been met by serving.
- OID
- 0acab4…580e:15
ClaimQuest details
Feast
func() stringFeast spends 50 coins on a Gnome Feast, gaining 15 XP. Once per day.
- OID
- 0acab4…580e:16
Feast details
PostNote
func(text string) stringPostNote pins a one-line note (max 140 chars) to the tavern wall.
- OID
- 0acab4…580e:17
PostNote details
GnomeCount
func() intGnomeCount returns how many gnomes are registered.
- OID
- 0acab4…580e:18
GnomeCount details
TotalServes
func() intTotalServes returns how many items have been served, all time.
- OID
- 0acab4…580e:19
TotalServes details
CurrentDay
func() int64CurrentDay returns the current tavern day number.
- OID
- 0acab4…580e:20
CurrentDay details
Profile
func(addr .uverse.address) stringProfile returns a one-line summary of the gnome at addr.
- OID
- 0acab4…580e:21
Profile details
Render
func(path string) stringRender draws the tavern for gnoweb. Pages: "" the tavern board (stats, today's quests, top 10, wall) "menu" the full menu with level requirements "quests" today's quest board in detail "leaderboard" every gnome, ranked "wall" the full message wall "gnome/<addr>" one gnome's card
- OID
- 0acab4…580e:22
Render details
entry
typeValue
gnometavern.entry
ranked
func() []gnometavern.entryranked returns all gnomes sorted by XP (then lifetime serves), best first. Insertion sort: the tavern is small and this stays dependency-free and deterministic (join order breaks full ties).
- OID
- 0acab4…580e:24
ranked details
ranksBefore
func(a gnometavern.entry, b gnometavern.entry) bool- OID
- 0acab4…580e:25
ranksBefore details
leaderboardTable
func(limit int) string- OID
- 0acab4…580e:26
leaderboardTable details
renderHome
func() string- OID
- 0acab4…580e:27
renderHome details
renderMenu
func() string- OID
- 0acab4…580e:28
renderMenu details
questList
func(day int64) string- OID
- 0acab4…580e:29
questList details
renderQuests
func() string- OID
- 0acab4…580e:30
renderQuests details
renderLeaderboard
func() string- OID
- 0acab4…580e:31
renderLeaderboard details
wallList
func(limit int) string- OID
- 0acab4…580e:32
wallList details
renderWall
func() string- OID
- 0acab4…580e:33
renderWall details
renderGnome
func(addrStr string) string- OID
- 0acab4…580e:34