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

MintVested

func MintVested(cur realm, to address, amount uint64, durationBlocks int64)

MintVested opens a new linear vesting grant for `to`: `amount` tokens unlock block-by-block over the next `durationBlocks` blocks, starting now. A beneficiary may only hold one active grant at a time. Crossing function.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/moul/x/daily/vestoken/v0" -func "MintVested" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/x/daily/vestoken/v0" -func "MintVested" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx