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

NewProposalScheduleStatus

func NewProposalScheduleStatus( votingStartDelay, votingPeriod, executionDelay, executionWindow, createdAt int64, ) *governance.ProposalScheduleStatus

NewProposalScheduleStatus creates a new schedule status with calculated timestamps. This constructor takes the governance timing parameters and calculates all important timestamps for the proposal's lifecycle.

Parameters:

  • votingStartDelay: delay before voting starts (seconds)
  • votingPeriod: duration of voting period (seconds)
  • executionDelay: delay before execution can start (seconds)
  • executionWindow: window during which execution is allowed (seconds)
  • createdAt: timestamp when proposal was created

Returns:

  • *ProposalScheduleStatus: new schedule status with calculated times

Params

Command

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

Result