proposal_action_status.gno
Types
ProposalActionStatus
ProposalActionStatus tracks the execution and cancellation status of a proposal. This structure manages the action-related state including who performed actions and when.
Methods
Canceled
Getter methods Canceled reports whether this proposal has been marked canceled.
Return Values
bool
bool
true when cancellation has been recorded
CanceledAt
CanceledAt returns the timestamp recorded when the proposal was canceled.
Return Values
int64
int64
cancellation timestamp, or zero when none has been recorded
CanceledBy
CanceledBy returns the address recorded as having canceled the proposal. The value is meaningful when Canceled() is true; before then it is the zero address unless a caller has explicitly stored another value.
Return Values
address
address
address recorded for the cancellation actor
CanceledHeight
CanceledHeight returns the block height recorded when the proposal was canceled.
Return Values
int64
int64
cancellation block height, or zero when none has been recorded
Clone
Clone creates a deep copy of the ProposalActionStatus, or nil when the receiver is nil.
Return Values
*ProposalActionStatus
*ProposalActionStatus
independent copy of the status, or nil for a nil receiver
Executable
Executable reports whether this proposal type supports execution.
Return Values
bool
bool
true when the proposal's action can be executed
Executed
Executed reports whether this proposal has been marked executed.
Return Values
bool
bool
true when execution has been recorded
ExecutedAt
ExecutedAt returns the timestamp recorded when the proposal was executed.
Return Values
int64
int64
execution timestamp, or zero when none has been recorded
ExecutedBy
ExecutedBy returns the address recorded as having executed the proposal. The value is meaningful when IsExecuted() is true; before then it is the zero address unless a caller has explicitly stored another value.
Return Values
address
address
address recorded for the execution actor
ExecutedHeight
ExecutedHeight returns the block height recorded when the proposal was executed.
Return Values
int64
int64
execution block height, or zero when none has been recorded
IsExecutable
IsExecutable reports whether this proposal type can be executed.
Return Values
bool
bool
true when execution is supported for the proposal type
IsExecuted
IsExecuted reports whether execution has been recorded for the proposal.
Return Values
bool
bool
true when the proposal has been marked executed
SetCanceled
Setter methods SetCanceled records whether the proposal is canceled.
Parameters
canceled
bool
cancellation state to store
SetCanceledAt
SetCanceledAt records the timestamp associated with proposal cancellation.
Parameters
canceledAt
int64
cancellation timestamp to store
SetCanceledBy
SetCanceledBy records the address that canceled the proposal.
Parameters
canceledBy
address
address of the actor that canceled the proposal
SetCanceledHeight
SetCanceledHeight records the block height associated with proposal cancellation.
Parameters
canceledHeight
int64
cancellation block height to store
SetExecutable
SetExecutable records whether this proposal type supports execution.
Parameters
executable
bool
execution capability to store for the proposal type
SetExecuted
SetExecuted records whether the proposal is executed.
Parameters
executed
bool
execution state to store
SetExecutedAt
SetExecutedAt records the timestamp associated with proposal execution.
Parameters
executedAt
int64
execution timestamp to store
SetExecutedBy
SetExecutedBy records the address that executed the proposal.
Parameters
executedBy
address
address of the actor that executed the proposal
SetExecutedHeight
SetExecutedHeight records the block height associated with proposal execution.
Parameters
executedHeight
int64
execution block height to store
Constructors
func NewProposalActionStatus(executable bool) *ProposalActionStatus(source)
Last updated