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.

gov package

Overview

Package gov is the WIZ GovDAO treasury, token version 4.

Seal on gno.land/r/nym-wizards001/drop sends two sleeves here: the incentive sleeve (7% of supply) and community development (3% plus the pro-rata remainder). A vote spends one sleeve. It cannot spend the other. Liquidity was sent to the address named in Seal, and this realm cannot move it.

Voting weight is the signer's WIZ balance. One vote per address. The window is 7 days, the same duration as drop.VoteWindow. A spend passes when yes beats no and yes reaches drop.Quorum, 10% of the sealed airdrop. There is no withdraw and no listing vote.

Functions

Bind

func Bind(cur realm)
Ask AI Claude ChatGPT

Bind records this realm as the drop token's GovDAO. The transaction signer must be the token admin. One call, before Seal.

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/nym-wizards001/gov" -func "Bind" -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/nym-wizards001/gov" -func "Bind" -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
  

CommunityLeft

func CommunityLeft() int64
Ask AI Claude ChatGPT

CommunityLeft is the community sleeve still available to a vote.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.CommunityLeft()"

Result

Execute

func Execute(cur realm, id int)
Ask AI Claude ChatGPT

Execute closes a finished proposal. A passed spend pays one sleeve. A failed vote moves nothing. Anyone may call it.

Param

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/nym-wizards001/gov" -func "Execute" -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/nym-wizards001/gov" -func "Execute" -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
  

IncentiveLeft

func IncentiveLeft() int64
Ask AI Claude ChatGPT

IncentiveLeft is the incentive sleeve still available to a vote.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.IncentiveLeft()"

Result

ProposalCount

func ProposalCount() int
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalCount()"

Result

ProposalEnd

func ProposalEnd(id int) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalEnd()"

Result

ProposalExecuted

func ProposalExecuted(id int) bool
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalExecuted()"

Result

ProposalKind

func ProposalKind(id int) int
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalKind()"

Result

ProposalMemo

func ProposalMemo(id int) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalMemo()"

Result

ProposalNo

func ProposalNo(id int) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalNo()"

Result

ProposalPassed

func ProposalPassed(id int) bool
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalPassed()"

Result

ProposalTokenAmt

func ProposalTokenAmt(id int) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalTokenAmt()"

Result

ProposalYes

func ProposalYes(id int) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.ProposalYes()"

Result

Propose

func Propose(cur realm, kind int, to address, tokenAmt int64, memo string) int
Ask AI Claude ChatGPT

Propose opens a vote. Claims on the token must already have started. The caller must hold WIZ. kind is KindSpend, KindSignal, or KindIncentive.

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/nym-wizards001/gov" -func "Propose" -args $'' -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/nym-wizards001/gov" -func "Propose" -args $'' -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
  

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render prints one proposal at "proposal/<id>". Other paths print the treasury.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.Render()"

Result

Treasury

func Treasury() int64
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.Treasury()"

Result

Vote

func Vote(cur realm, id int, yes bool)
Ask AI Claude ChatGPT

Vote records the caller's current WIZ balance as yes or no. One vote per address. That balance stays locked until this proposal ends.

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/nym-wizards001/gov" -func "Vote" -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/nym-wizards001/gov" -func "Vote" -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
  

Voted

func Voted(id int, voter address) (cast bool, yes bool)
Ask AI Claude ChatGPT

Voted reports whether voter has a ballot on id. A missing ballot is (false, false).

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-wizards001/gov.Voted(,)"

Result