Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions 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
Ask AI Claude ChatGPT

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: callback receiving the discriminator, propagated realm, and serialized parameters to execute the 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.gno.land" -data "gno.land/r/gnoswap/gov/governance/v1.NewParameterHandlerOptions(,,,,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/gnoswap/gov/governance/v1, for example a function call with arguments.