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

proposal_status.gno

Types

ProposalStatus

ProposalStatus manages the complete status of a proposal including scheduling, voting, and actions. This is the central status tracking structure that coordinates different aspects of proposal state.

source

Methods

ActionStatus

ActionStatus returns the proposal's execution and cancellation state.

Return Values

Name
Type
Description

*ProposalActionStatus

*ProposalActionStatus

action state associated with the proposal

source

Clone

Clone creates a deep copy of the ProposalStatus, or nil when the receiver is nil.

Return Values

Name
Type
Description

*ProposalStatus

*ProposalStatus

independent copy of the status, or nil for a nil receiver

source

NoWeight

NoWeight returns the total weight of "no" votes.

Return Values

Name
Type
Description

int64

int64

total "no" vote weight

source

Schedule

Getter methods Schedule returns the proposal's time-based scheduling state.

Return Values

Name
Type
Description

*ProposalScheduleStatus

*ProposalScheduleStatus

schedule containing proposal lifecycle timestamps

source

VoteStatus

VoteStatus returns the proposal's vote tallies and voting requirements.

Return Values

Name
Type
Description

*ProposalVoteStatus

*ProposalVoteStatus

vote state associated with the proposal

source

YesWeight

YesWeight returns the total weight of "yes" votes.

Return Values

Name
Type
Description

int64

int64

total "yes" vote weight

source

Constructors

  • func NewProposalStatusBy(schedule *ProposalScheduleStatus, actionStatus *ProposalActionStatus, voteStatus *ProposalVoteStatus) *ProposalStatus (source)

ProposalStatusType

ProposalStatusType represents the current status of a proposal in its lifecycle. These statuses determine what actions are available for a proposal.

source

Methods

String

String returns the string representation of ProposalStatusType for display purposes.

Return Values

Name
Type
Description

string

string

lowercase status name, or "unknown" for an unrecognized value

source

Last updated