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

NewProposalStatus

func NewProposalStatus( config governance.Config, maxVotingWeight int64, executable bool, createdAt int64, quorumWeight int64, ) *governance.ProposalStatus
Ask AI Claude ChatGPT

NewProposalStatus creates a new proposal status with the specified configuration. This initializes all status components with the governance configuration and timing.

Parameters:

  • config: governance configuration to use
  • maxVotingWeight: maximum voting weight for this proposal
  • executable: whether this proposal type can be executed
  • createdAt: timestamp when proposal was created
  • quorumWeight: total xGNS supply at proposal creation, used as the quorum base

Returns:

  • *ProposalStatus: new proposal status instance

Params

Command

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

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.