Skip to content Search Apps Documentation Source Content 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.

game12 state

Back to all declarations

admin

.uverse.address

Value

<gnolang.StringValue>

minterAddr

.uverse.address

// authorized minter realm (minter5) — set via SetMinter

Value

<gnolang.StringValue>

pendingMints

v0.Tree

// addr+":"+coinId → amount string

Open
OID
0b3bd1…4e08:6
pendingMints details

Inspect ref

balances

v0.Tree

// addr+":"+coinId → amount string

Open
OID
0b3bd1…4e08:8
balances details

Inspect ref

veinSupply

v0.Tree

// coinId → "remaining:max"

Open
OID
0b3bd1…4e08:10
veinSupply details

Inspect ref

casinoRounds

v0.Tree

// roundId → JSON string

Open
OID
0b3bd1…4e08:12
casinoRounds details

Inspect ref

pvpLobbies

v0.Tree

// lobbyId → JSON string

Open
OID
0b3bd1…4e08:14
pvpLobbies details

Inspect ref

pvpWagers

v0.Tree

// lobbyId → "coinId:amount:creator:challenger" (challenger="" until joined)

Open
OID
0b3bd1…4e08:16
pvpWagers details

Inspect ref

ownedTools

v0.Tree

// addr → comma-separated tool IDs

Open
OID
0b3bd1…4e08:18
ownedTools details

Inspect ref

toolLife

v0.Tree

// addr+":"+toolId → remaining life string

Open
OID
0b3bd1…4e08:20
toolLife details

Inspect ref

lifetimeMined

v0.Tree

// addr+":"+coinId → total mined string

Open
OID
0b3bd1…4e08:22
lifetimeMined details

Inspect ref

achievements

v0.Tree

// addr+":"+achId → "1"

Open
OID
0b3bd1…4e08:24
achievements details

Inspect ref

dailyCheckins

v0.Tree

// addr → unix seconds string

Open
OID
0b3bd1…4e08:26
dailyCheckins details

Inspect ref

skillRanks

v0.Tree

// addr+":"+skillId → rank string

Open
OID
0b3bd1…4e08:28
skillRanks details

Inspect ref

miners

v0.Tree

// addr → total mined all-time string

Open
OID
0b3bd1…4e08:30
miners details

Inspect ref

lastClaim

v0.Tree

// addr → unix timestamp of last ClaimMine/ClaimAndMint (velocity limit)

Open
OID
0b3bd1…4e08:32
lastClaim details

Inspect ref

blacklist

v0.Tree

// addr → "reason:timestamp"

Open
OID
0b3bd1…4e08:34
blacklist details

Inspect ref

banExpiries

v0.Tree

// addr → unix expiry (0 = permanent)

Open
OID
0b3bd1…4e08:36
banExpiries details

Inspect ref

guilds

v0.Tree

// guildId → JSON{name, leader, memberCount, createdAt}

Open
OID
0b3bd1…4e08:38
guilds details

Inspect ref

guildMembers

v0.Tree

// guildId+":"+addr → "1"

Open
OID
0b3bd1…4e08:40
guildMembers details

Inspect ref

playerGuild

v0.Tree

// addr → guildId

Open
OID
0b3bd1…4e08:42
playerGuild details

Inspect ref

gnomePasses

v0.Tree

// addr → unix expiry timestamp string (0 = never set, >0 = active until)

Open
OID
0b3bd1…4e08:44
gnomePasses details

Inspect ref

paused

bool

Value

false

toolCosts

map[string][][2]string

toolCosts maps toolId → slice of \[coinId, amount] pairs. Copied from catalog.ts TOOLS array. Amounts are for qty=1. Phase 5: expanded tool costs — each tool requires more ingredient types at higher tiers. Matches catalog.ts TOOLS array exactly.

Open
OID
0b3bd1…4e08:47
toolCosts details

Inspect map

skillBaseCosts

map[string][][2]string

skillBaseCosts maps skillId → base cost at rank 0. Actual cost at rank N = base × 2^N (doubles per rank).

Open
OID
0b3bd1…4e08:253
skillBaseCosts details

Inspect map

skillMaxRanks

map[string]uint64

skillMaxRanks maps skillId → maximum rank allowed. Most skills cap at 3 or 4 — see catalog.ts SKILLS\[\*].max.

Open
OID
0b3bd1…4e08:734
skillMaxRanks details

Inspect map

toolMaxLife

map[string]uint64

toolMaxLife maps toolId → maximum durability (from catalog.ts tool.life). Tools with life=0 are indestructible (hands, twig).

Open
OID
0b3bd1…4e08:736
toolMaxLife details

Inspect map

SetMinter

func(newMinter string)

SetMinter registers the authorized minter realm address so it can call ClearPendingMints. Called once after minter5 is deployed.

Open
OID
0b3bd1…4e08:740
SetMinter details

Inspect func

UpdateConfig

func(newAdmin string)
Open
OID
0b3bd1…4e08:741
UpdateConfig details

Inspect func

requireNotPaused

func()
Open
OID
0b3bd1…4e08:743
requireNotPaused details

Inspect func

BanAddress

func(targetAddr string, reason string, durationSecs int64)

BanAddress bans a player address. durationSecs=0 means permanent.

Open
OID
0b3bd1…4e08:744
BanAddress details

Inspect func

UnbanAddress

func(targetAddr string)

UnbanAddress removes a ban.

Open
OID
0b3bd1…4e08:745
UnbanAddress details

Inspect func

BlacklistStatus

func(addr string) string

BlacklistStatus returns the ban status of an address as a JSON string.

Open
OID
0b3bd1…4e08:746
BlacklistStatus details

Inspect func

isBlacklisted

func(addr string) bool

isBlacklisted checks if an address is currently banned (unexpired).

Open
OID
0b3bd1…4e08:747
isBlacklisted details

Inspect func

maxGuildMembers

untyped bigint

Value

(10 <untyped> bigint)

maxGuildNameLen

untyped bigint

Value

(24 <untyped> bigint)

CreateGuild

func(name string) string
Open
OID
0b3bd1…4e08:748
CreateGuild details

Inspect func

JoinGuild

func(guildId string)
Open
OID
0b3bd1…4e08:749
JoinGuild details

Inspect func

PlayerGuild

func(addr string) string
Open
OID
0b3bd1…4e08:751
PlayerGuild details

Inspect func

GuildInfo

func(guildId string) string
Open
OID
0b3bd1…4e08:752
GuildInfo details

Inspect func

TopGuilds

func(limit int) string
Open
OID
0b3bd1…4e08:753
TopGuilds details

Inspect func

gnomePassCostPer30Days

uint64

gnomePassCostPer30Days is the cost per 30-day pass in ugnot (5 GNOT).

Value

5000000

ActivateGnomePass

func(durationDays int64)

ActivateGnomePass purchases a Gnome Pass for the caller. GNOT payment must be attached to the call (send field of MsgCall). The caller sends GNOT along with the transaction; this function verifies the amount. The GNOT stays in the realm and can be withdrawn by admin via WithdrawFunds(). Admin-only calls skip the payment check for testing.

Open
OID
0b3bd1…4e08:754
ActivateGnomePass details

Inspect func

GnomePassExpiry

func(addr string) int64

GnomePassExpiry returns the unix timestamp when the pass expires (0 = no pass).

Open
OID
0b3bd1…4e08:755
GnomePassExpiry details

Inspect func

HasActivePass

func(addr string) bool

HasActivePass returns true if the address has an active (non-expired) pass.

Open
OID
0b3bd1…4e08:756
HasActivePass details

Inspect func

GnomePassCount

func() int

GnomePassCount returns the total number of addresses with an active pass (admin-only).

Open
OID
0b3bd1…4e08:757
GnomePassCount details

Inspect func

WithdrawFunds

func()

WithdrawFunds is disabled on Onyx testnet (chain/banker not available). On mainnet, re-enable with banker.NewBanker(banker.BankerTypeRealmSend, cur).

Open
OID
0b3bd1…4e08:758
WithdrawFunds details

Inspect func

ClaimMine

func(coinsJson string)

ClaimMine records mined coins into pending mints for the caller. coinsJson format: \[\["coinId","amount"],...]

Open
OID
0b3bd1…4e08:759
ClaimMine details

Inspect func

ClearPendingMints

func(playerAddr string, coinsJson string)

ClearPendingMints is called by the treasury server after successful GRC20 minting. Removes pending balance and credits the player's spendable balances tree.

Open
OID
0b3bd1…4e08:760
ClearPendingMints details

Inspect func

ClaimAndMint

func(coinsJson string)

ClaimAndMint records mined coins AND immediately credits them to balances. The caller pays their own gas (~0.03 GNOT). No treasury involvement. Replaces the two-step ClaimMine → mintPending flow for new players. Phase 6: treasury burn-rate fix — at 100 players using ClaimAndMint, the treasury pays ~0 GNOT/day (down from ~12 GNOT/day with the old two-step flow).

Open
OID
0b3bd1…4e08:761
ClaimAndMint details

Inspect func

CommitCasinoSeed

func(roundId string, seedHash string)
Open
OID
0b3bd1…4e08:762
CommitCasinoSeed details

Inspect func

PlaceCasinoBet

func(roundId string, game string, coinId string, betAmount string, choice string, clientSeed string)
Open
OID
0b3bd1…4e08:763
PlaceCasinoBet details

Inspect func

RevealCasinoSeed

func(roundId string, serverSeed string)
Open
OID
0b3bd1…4e08:764
RevealCasinoSeed details

Inspect func

RefundCasinoBet

func(roundId string)
Open
OID
0b3bd1…4e08:765
RefundCasinoBet details

Inspect func

CreatePvpLobby

func(game string, coinId string, betAmount string) string

CreatePvpLobby creates a new PvP lobby and escrows the creator's wager from balances. Phase 6: wager > 0 deducts from balances and records the escrow in pvpWagers.

Open
OID
0b3bd1…4e08:766
CreatePvpLobby details

Inspect func

JoinPvpLobby

func(lobbyId string)

JoinPvpLobby joins an existing PvP lobby and escrows the challenger's matching wager. Phase 6: deducts challenger's matching wager from balances and updates pvpWagers.

Open
OID
0b3bd1…4e08:767
JoinPvpLobby details

Inspect func

CommitPvpMove

func(lobbyId string, moveHash string)
Open
OID
0b3bd1…4e08:768
CommitPvpMove details

Inspect func

RevealPvpMove

func(lobbyId string, choice string, salt string)

RevealPvpMove requires both players to have committed before either can reveal. Phase 6: when both players have revealed, determines the RPS winner and pays out 2× wager minus 2% rake to the winner. Draw = full refund to both players. pvpWagers.Remove is called after payout to prevent double-payouts.

Open
OID
0b3bd1…4e08:769
RevealPvpMove details

Inspect func

ClaimPvpTimeout

func(lobbyId string)

ClaimPvpTimeout allows a lobby participant to claim a timeout win. Only the creator or challenger may call this. Phase 6: refunds the escrowed wager to all parties who contributed.

Open
OID
0b3bd1…4e08:770
ClaimPvpTimeout details

Inspect func

Transfer

func(coinId string, toAddr string, amountStr string)

Transfer sends coinId coins from the caller to toAddr directly on-chain. Both addresses must have interacted with the game realm at least once.

Open
OID
0b3bd1…4e08:772
Transfer details

Inspect func

RepairTool

func(toolId string)
Open
OID
0b3bd1…4e08:774
RepairTool details

Inspect func

TrainSkill

func(skillId string)
Open
OID
0b3bd1…4e08:775
TrainSkill details

Inspect func

ClaimAchievement

func(achievementId string)
Open
OID
0b3bd1…4e08:776
ClaimAchievement details

Inspect func

CreateTask

func(taskId string, desc string)

CreateTask registers a new task on-chain.

Open
OID
0b3bd1…4e08:778
CreateTask details

Inspect func

CompleteTask

func(taskId string)
Open
OID
0b3bd1…4e08:779
CompleteTask details

Inspect func

RegisterVein

func(coinId string, maxSupply string)
Open
OID
0b3bd1…4e08:780
RegisterVein details

Inspect func

PendingMints

func(playerAddr string) string
Open
OID
0b3bd1…4e08:781
PendingMints details

Inspect func

AllBalances

func(playerAddr string) string
Open
OID
0b3bd1…4e08:782
AllBalances details

Inspect func

VeinSupply

func(coinId string) string
Open
OID
0b3bd1…4e08:783
VeinSupply details

Inspect func

CasinoRound

func(roundId string) string
Open
OID
0b3bd1…4e08:784
CasinoRound details

Inspect func

CasinoHistory

func(string) string
Open
OID
0b3bd1…4e08:785
CasinoHistory details

Inspect func

PvpLobby

func(lobbyId string) string
Open
OID
0b3bd1…4e08:786
PvpLobby details

Inspect func

JackpotPool

func(coinId string) string
Open
OID
0b3bd1…4e08:788
JackpotPool details

Inspect func

PlayerProfile

func(playerAddr string) string
Open
OID
0b3bd1…4e08:789
PlayerProfile details

Inspect func

OwnedTools

func(playerAddr string) string
Open
OID
0b3bd1…4e08:790
OwnedTools details

Inspect func

LifetimeMined

func(playerAddr string) string
Open
OID
0b3bd1…4e08:791
LifetimeMined details

Inspect func

AllMiners

func(limit int, offset int) string
Open
OID
0b3bd1…4e08:792
AllMiners details

Inspect func

GetMedals

func(playerAddr string) string
Open
OID
0b3bd1…4e08:793
GetMedals details

Inspect func

DailyCheckinStatus

func(playerAddr string) string
Open
OID
0b3bd1…4e08:794
DailyCheckinStatus details

Inspect func

SkillRanks

func(playerAddr string) string
Open
OID
0b3bd1…4e08:796
SkillRanks details

Inspect func

ToolLife

func(playerAddr string) string
Open
OID
0b3bd1…4e08:797
ToolLife details

Inspect func

deductBalances

func(caller string, costs [][2]string)

deductBalances atomically checks all balances then deducts them. Panics if any balance is insufficient — no partial deductions. costs is a slice of \[coinId, amount] pairs.

Open
OID
0b3bd1…4e08:799
deductBalances details

Inspect func

splitJsonArray

func(s string) []string
Open
OID
0b3bd1…4e08:800
splitJsonArray details

Inspect func
admin : .uverse.address =<gnolang.StringValue>
minterAddr : .uverse.address =<gnolang.StringValue>
pendingMints : v0.Tree Inspect
balances : v0.Tree Inspect
veinSupply : v0.Tree Inspect
casinoRounds : v0.Tree Inspect
pvpLobbies : v0.Tree Inspect
pvpWagers : v0.Tree Inspect
ownedTools : v0.Tree Inspect
toolLife : v0.Tree Inspect
lifetimeMined : v0.Tree Inspect
achievements : v0.Tree Inspect
dailyCheckins : v0.Tree Inspect
skillRanks : v0.Tree Inspect
miners : v0.Tree Inspect
lastClaim : v0.Tree Inspect
blacklist : v0.Tree Inspect
banExpiries : v0.Tree Inspect
guilds : v0.Tree Inspect
guildMembers : v0.Tree Inspect
playerGuild : v0.Tree Inspect
gnomePasses : v0.Tree Inspect
paused : bool =false
toolCosts : map[string][][2]string Inspect
skillBaseCosts : map[string][][2]string Inspect
skillMaxRanks : map[string]uint64 Inspect
toolMaxLife : map[string]uint64 Inspect
init.27 : func() Inspect
isAdmin : func() bool Inspect
SetMinter : func(newMinter string) Inspect
UpdateConfig : func(newAdmin string) Inspect
SetPaused : func(p bool) Inspect
requireNotPaused : func() Inspect
BanAddress : func(targetAddr string, reason string, durationSecs int64) Inspect
UnbanAddress : func(targetAddr string) Inspect
BlacklistStatus : func(addr string) string Inspect
isBlacklisted : func(addr string) bool Inspect
maxGuildMembers : untyped bigint =(10 <untyped> bigint)
maxGuildNameLen : untyped bigint =(24 <untyped> bigint)
CreateGuild : func(name string) string Inspect
JoinGuild : func(guildId string) Inspect
LeaveGuild : func() Inspect
PlayerGuild : func(addr string) string Inspect
GuildInfo : func(guildId string) string Inspect
TopGuilds : func(limit int) string Inspect
gnomePassCostPer30Days : uint64 =5000000
ActivateGnomePass : func(durationDays int64) Inspect
GnomePassExpiry : func(addr string) int64 Inspect
HasActivePass : func(addr string) bool Inspect
GnomePassCount : func() int Inspect
WithdrawFunds : func() Inspect
ClaimMine : func(coinsJson string) Inspect
ClearPendingMints : func(playerAddr string, coinsJson string) Inspect
ClaimAndMint : func(coinsJson string) Inspect
CommitCasinoSeed : func(roundId string, seedHash string) Inspect
PlaceCasinoBet : func(roundId string, game string, coinId string, betAmount string, choice string, clientSeed string) Inspect
RevealCasinoSeed : func(roundId string, serverSeed string) Inspect
RefundCasinoBet : func(roundId string) Inspect
CreatePvpLobby : func(game string, coinId string, betAmount string) string Inspect
JoinPvpLobby : func(lobbyId string) Inspect
CommitPvpMove : func(lobbyId string, moveHash string) Inspect
RevealPvpMove : func(lobbyId string, choice string, salt string) Inspect
ClaimPvpTimeout : func(lobbyId string) Inspect
ExpireLobbies : func() Inspect
Transfer : func(coinId string, toAddr string, amountStr string) Inspect
BuyTool : func(toolId string) Inspect
RepairTool : func(toolId string) Inspect
TrainSkill : func(skillId string) Inspect
ClaimAchievement : func(achievementId string) Inspect
DailyCheckin : func() Inspect
CreateTask : func(taskId string, desc string) Inspect
CompleteTask : func(taskId string) Inspect
RegisterVein : func(coinId string, maxSupply string) Inspect
PendingMints : func(playerAddr string) string Inspect
AllBalances : func(playerAddr string) string Inspect
VeinSupply : func(coinId string) string Inspect
CasinoRound : func(roundId string) string Inspect
CasinoHistory : func(string) string Inspect
PvpLobby : func(lobbyId string) string Inspect
OpenLobbies : func() string Inspect
JackpotPool : func(coinId string) string Inspect
PlayerProfile : func(playerAddr string) string Inspect
OwnedTools : func(playerAddr string) string Inspect
LifetimeMined : func(playerAddr string) string Inspect
AllMiners : func(limit int, offset int) string Inspect
GetMedals : func(playerAddr string) string Inspect
DailyCheckinStatus : func(playerAddr string) string Inspect
ListTasks : func(string) string Inspect
SkillRanks : func(playerAddr string) string Inspect
ToolLife : func(playerAddr string) string Inspect
Render : func(string) string Inspect
deductBalances : func(caller string, costs [][2]string) Inspect
splitJsonArray : func(s string) []string Inspect