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

/v1 package

Function

NewProposalStatus

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

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

Returns:

  • *ProposalStatus: new proposal status instance

Params

Command

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

Result