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

NewGovernanceV1

func NewGovernanceV1( governanceStore governance.IGovernanceStore, stakerAccessor governance.GovStakerAccessor, ) governance.IGovernance

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 "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gov/governance/v1.NewGovernanceV1(,)"

Result