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

governance/v1 package

Function

NewParameterHandlerOptions

func NewParameterHandlerOptions( pkgPath, function string, paramCount int, handlerFunc func(_ int, rlm realm, _ []string) error, paramValidators ...paramValidator, ) ParameterHandler

NewParameterHandlerOptions creates a new parameter handler with the specified configuration.

Parameters:

  • pkgPath: package path of the target contract
  • function: function name to be called
  • paramCount: expected number of parameters
  • handlerFunc: function that executes the parameter change
  • paramValidators: optional validators for each parameter (must match paramCount if provided)

Returns:

  • ParameterHandler: configured parameter handler interface

Params

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/gov/governance/v1.NewParameterHandlerOptions(,,,,)"

Result