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.
Methods
ActionStatus
ActionStatus returns the proposal's execution and cancellation state.
Return Values
*ProposalActionStatus
*ProposalActionStatus
action state associated with the proposal
Clone
Clone creates a deep copy of the ProposalStatus, or nil when the receiver is nil.
Return Values
*ProposalStatus
*ProposalStatus
independent copy of the status, or nil for a nil receiver
NoWeight
NoWeight returns the total weight of "no" votes.
Return Values
int64
int64
total "no" vote weight
Schedule
Getter methods Schedule returns the proposal's time-based scheduling state.
Return Values
*ProposalScheduleStatus
*ProposalScheduleStatus
schedule containing proposal lifecycle timestamps
VoteStatus
VoteStatus returns the proposal's vote tallies and voting requirements.
Return Values
*ProposalVoteStatus
*ProposalVoteStatus
vote state associated with the proposal
YesWeight
YesWeight returns the total weight of "yes" votes.
Return Values
int64
int64
total "yes" vote weight
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.
Methods
String
String returns the string representation of ProposalStatusType for display purposes.
Return Values
string
string
lowercase status name, or "unknown" for an unrecognized value
Last updated