Search Apps Documentation Source Content File Folder Download Copy Actions Download

cla package

Functions

HasValidSignature

func HasValidSignature(addr address) bool

HasValidSignature checks if an address has signed the current required CLA. Returns true if CLA enforcement is disabled (requiredHash == ""), or if the address has signed.

Param

Command

gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land" -data "gno.land/r/sys/cla.HasValidSignature()"

Result

ProposeNewCLA

func ProposeNewCLA(newHash, newURL string) dao.ProposalRequest

ProposeNewCLA creates a govdao proposal to update the CLA document hash and URL. When executed, it resets all existing signatures. Propose an empty hash to disable CLA enforcement.

Params

Command

gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land" -data "gno.land/r/sys/cla.ProposeNewCLA(,)"

Result

Render

func Render(path string) string

Param

Command

gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land" -data "gno.land/r/sys/cla.Render()"

Result

Sign

func Sign(cur realm, hash string)

Sign records a CLA signature for the caller. The hash must match the current required hash.

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/sys/cla" -func "Sign" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast -chainid "gnoland1" -remote "http://rpc.betanet.testnets.gno.land" ADDRESSgnokey query -remote "http://rpc.betanet.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/sys/cla" -func "Sign" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "http://rpc.betanet.testnets.gno.land" call.tx