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

/v1 package

Function

NewGovernanceV1

func NewGovernanceV1( governanceStore governance.IGovernanceStore, stakerAccessor governance.GovStakerAccessor, ) governance.IGovernance
Ask AI Claude ChatGPT

NewGovernanceV1 creates a governance v1 implementation backed by the supplied state store and staker voting-weight accessor.

Parameters:

  • governanceStore: persistence adapter for configuration, proposals, counters, and voting information
  • stakerAccessor: accessor that supplies delegation snapshots and total xGNS supply for governance decisions

Returns:

  • governance.IGovernance: governance manager and getter implementation using the supplied dependencies

Params

Command

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

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.