Search Apps Documentation Source Content File Folder Download Copy Actions Download

params package

Overview

Package params provides functions for creating parameter executors that interface with the Params Keeper. This package enables setting various parameter types (such as strings, integers, booleans, and byte slices) through the GovDAO proposal mechanism. Each function returns an executor that, when called, sets the specified parameter in the Params Keeper. The executors are designed to be used within governance proposals to modify parameters dynamically. The integration with the GovDAO allows for parameter changes to be proposed and executed in a controlled manner, ensuring that modifications are subject to governance processes. Example usage: // This executor can be used in a governance proposal to set the parameter. pr := params.NewSysParamStringPropExecutor("bank", "p", "restricted_denoms")

Functions

NewSetFeeCollectorRequest

func NewSetFeeCollectorRequest(addr address) dao.ProposalRequest
Execute

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSetFeeCollectorRequest()"

Result

NewSysParamBoolPropRequest

func NewSysParamBoolPropRequest(module, submodule, name string, value bool) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamBoolPropRequest(,,,)"

Result

NewSysParamBytesPropRequest

func NewSysParamBytesPropRequest(module, submodule, name string, value []byte) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamBytesPropRequest(,,,)"

Result

NewSysParamInt64PropRequest

func NewSysParamInt64PropRequest(module, submodule, name string, value int64) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamInt64PropRequest(,,,)"

Result

NewSysParamStringPropRequest

func NewSysParamStringPropRequest(module, submodule, name, value string) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamStringPropRequest(,,,)"

Result

NewSysParamStringsPropRequest

func NewSysParamStringsPropRequest(module, submodule, name string, value []string) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamStringsPropRequest(,,,)"

Result

NewSysParamStringsPropRequestAddWithTitle

func NewSysParamStringsPropRequestAddWithTitle(module, submodule, name, title string, value []string) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamStringsPropRequestAddWithTitle(,,,,)"

Result

NewSysParamStringsPropRequestRemoveWithTitle

func NewSysParamStringsPropRequestRemoveWithTitle(module, submodule, name, title string, value []string) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamStringsPropRequestRemoveWithTitle(,,,,)"

Result

NewSysParamStringsPropRequestWithTitle

func NewSysParamStringsPropRequestWithTitle(module, submodule, name, title string, value []string) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamStringsPropRequestWithTitle(,,,,)"

Result

NewSysParamUint64PropRequest

func NewSysParamUint64PropRequest(module, submodule, name string, value uint64) dao.ProposalRequest
Execute

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.NewSysParamUint64PropRequest(,,,)"

Result

ProposeAddUnrestrictedAcctsRequest

func ProposeAddUnrestrictedAcctsRequest(addrs ...address) dao.ProposalRequest
Execute

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.ProposeAddUnrestrictedAcctsRequest()"

Result

ProposeLockTransferRequest

func ProposeLockTransferRequest() dao.ProposalRequest
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.ProposeLockTransferRequest()"

Result

ProposeRemoveUnrestrictedAcctsRequest

func ProposeRemoveUnrestrictedAcctsRequest(addrs ...address) dao.ProposalRequest
Execute

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.ProposeRemoveUnrestrictedAcctsRequest()"

Result

ProposeUnlockTransferRequest

func ProposeUnlockTransferRequest() dao.ProposalRequest
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/params.ProposeUnlockTransferRequest()"

Result