Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

faucet/v0 package

Overview

Package faucet is a toy points faucet realm for the gno.land sapphire testnet.

Any caller may Claim() 100 points, but only once per cooldown window of 100 blocks. Cooldown is enforced deterministically via runtime.ChainHeight() — no real clocks, no RNG. Per-caller balance and last-claim height live in an avl.Tree so Render iterates in deterministic (address-sorted) order.

Function

BalanceOf

func BalanceOf(addr string) int64

BalanceOf returns the current point balance of addr (0 if never claimed).

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/faucet/v0.BalanceOf()"

Result