For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

source

Methods

ActiveTime

ActiveTime returns the Unix timestamp when proposal voting starts.

Return Values

Name
Type
Description

int64

int64

voting start timestamp

source

Clone

Clone creates a deep copy of the ProposalScheduleStatus.

Return Values

Name
Type
Description

*ProposalScheduleStatus

*ProposalScheduleStatus

copied schedule, or nil when the receiver is nil

source

CreateTime

Getter methods CreateTime returns the Unix timestamp when the proposal was created.

Return Values

Name
Type
Description

int64

int64

proposal creation timestamp

source

ExecutableTime

ExecutableTime returns the Unix timestamp when the execution window starts.

Return Values

Name
Type
Description

int64

int64

execution start timestamp

source

ExpiredTime

ExpiredTime returns the Unix timestamp when the execution window closes.

Return Values

Name
Type
Description

int64

int64

execution expiration timestamp

source

SetActiveTime

SetActiveTime updates the timestamp when proposal voting starts.

Parameters

Name
Type
Description

activeTime

int64

Unix timestamp when voting starts

source

SetCreateTime

Setter methods SetCreateTime updates the proposal creation timestamp.

Parameters

Name
Type
Description

createTime

int64

Unix timestamp when the proposal was created

source

SetExecutableTime

SetExecutableTime updates the timestamp when proposal execution can start.

Parameters

Name
Type
Description

executableTime

int64

Unix timestamp when the execution window starts

source

SetExpiredTime

SetExpiredTime updates the timestamp when proposal execution expires.

Parameters

Name
Type
Description

expiredTime

int64

Unix timestamp when the execution window closes

source

SetVotingEndTime

SetVotingEndTime updates the timestamp when proposal voting ends.

Parameters

Name
Type
Description

votingEndTime

int64

Unix timestamp when voting ends

source

VotingEndTime

VotingEndTime returns the Unix timestamp when proposal voting ends.

Return Values

Name
Type
Description

int64

int64

voting end timestamp

source

Constructors

  • func NewProposalScheduleStatus(createTime int64, activeTime int64, votingEndTime int64, executableTime int64, expiredTime int64) *ProposalScheduleStatus (source)

Last updated