HasValidSignature
func HasValidSignature(addr address) bool
Link
Execute
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.
Command
gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land " -data "gno.land/r/sys/cla.HasValidSignature( )"
ProposeNewCLA
func ProposeNewCLA(newHash, newURL string) dao.ProposalRequest
Link
Execute
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.
Command
gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land " -data "gno.land/r/sys/cla.ProposeNewCLA( , )"
Render
func Render(path string) string
Link
Execute
Command
gnokey query vm/qeval -remote "http://rpc.betanet.testnets.gno.land " -data "gno.land/r/sys/cla.Render( )"
Sign
func Sign(cur realm, hash string)
Link
Execute
Sign records a CLA signature for the caller. The hash must match the current required hash.
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" ADDRESS gnokey 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