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

vestoken/v0 package

Overview

Package vestoken is a fungible token where new supply is never handed out instantly — it ports the idea behind Solidity's VestingWallet / linear token-streaming contracts (e.g. Sablier) into a single gno.land realm.

MintVested opens a linear vesting grant instead of crediting a balance directly. The beneficiary calls Claim over time to pull whatever has unlocked so far into their liquid, transferable balance. State is package-level and persistent; state-mutating functions are crossing functions (`cur realm`) per the gno 0.9 interrealm convention.

Function

BalanceOf

func BalanceOf(holder address) uint64

BalanceOf returns the liquid (claimed, transferable) balance of holder.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/vestoken/v0.BalanceOf()"

Result