proposal_schedule_status.gno
Types
ProposalScheduleStatus
ProposalScheduleStatus represents the pre-calculated time schedule for a proposal. This structure defines all the important timestamps in a proposal's lifecycle, from creation through voting to execution and expiration.
Methods
ActiveTime
ActiveTime returns the Unix timestamp when proposal voting starts.
Return Values
int64
int64
voting start timestamp
Clone
Clone creates a deep copy of the ProposalScheduleStatus.
Return Values
*ProposalScheduleStatus
*ProposalScheduleStatus
copied schedule, or nil when the receiver is nil
CreateTime
Getter methods CreateTime returns the Unix timestamp when the proposal was created.
Return Values
int64
int64
proposal creation timestamp
ExecutableTime
ExecutableTime returns the Unix timestamp when the execution window starts.
Return Values
int64
int64
execution start timestamp
ExpiredTime
ExpiredTime returns the Unix timestamp when the execution window closes.
Return Values
int64
int64
execution expiration timestamp
SetActiveTime
SetActiveTime updates the timestamp when proposal voting starts.
Parameters
activeTime
int64
Unix timestamp when voting starts
SetCreateTime
Setter methods SetCreateTime updates the proposal creation timestamp.
Parameters
createTime
int64
Unix timestamp when the proposal was created
SetExecutableTime
SetExecutableTime updates the timestamp when proposal execution can start.
Parameters
executableTime
int64
Unix timestamp when the execution window starts
SetExpiredTime
SetExpiredTime updates the timestamp when proposal execution expires.
Parameters
expiredTime
int64
Unix timestamp when the execution window closes
SetVotingEndTime
SetVotingEndTime updates the timestamp when proposal voting ends.
Parameters
votingEndTime
int64
Unix timestamp when voting ends
VotingEndTime
VotingEndTime returns the Unix timestamp when proposal voting ends.
Return Values
int64
int64
voting end timestamp
Constructors
func NewProposalScheduleStatus(createTime int64, activeTime int64, votingEndTime int64, executableTime int64, expiredTime int64) *ProposalScheduleStatus(source)
Last updated