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

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.

source

Methods

Canceled

Getter methods Canceled reports whether this proposal has been marked canceled.

Return Values

Name
Type
Description

bool

bool

true when cancellation has been recorded

source

CanceledAt

CanceledAt returns the timestamp recorded when the proposal was canceled.

Return Values

Name
Type
Description

int64

int64

cancellation timestamp, or zero when none has been recorded

source

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

Name
Type
Description

address

address

address recorded for the cancellation actor

source

CanceledHeight

CanceledHeight returns the block height recorded when the proposal was canceled.

Return Values

Name
Type
Description

int64

int64

cancellation block height, or zero when none has been recorded

source

Clone

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

Return Values

Name
Type
Description

*ProposalActionStatus

*ProposalActionStatus

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

source

Executable

Executable reports whether this proposal type supports execution.

Return Values

Name
Type
Description

bool

bool

true when the proposal's action can be executed

source

Executed

Executed reports whether this proposal has been marked executed.

Return Values

Name
Type
Description

bool

bool

true when execution has been recorded

source

ExecutedAt

ExecutedAt returns the timestamp recorded when the proposal was executed.

Return Values

Name
Type
Description

int64

int64

execution timestamp, or zero when none has been recorded

source

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

Name
Type
Description

address

address

address recorded for the execution actor

source

ExecutedHeight

ExecutedHeight returns the block height recorded when the proposal was executed.

Return Values

Name
Type
Description

int64

int64

execution block height, or zero when none has been recorded

source

IsExecutable

IsExecutable reports whether this proposal type can be executed.

Return Values

Name
Type
Description

bool

bool

true when execution is supported for the proposal type

source

IsExecuted

IsExecuted reports whether execution has been recorded for the proposal.

Return Values

Name
Type
Description

bool

bool

true when the proposal has been marked executed

source

SetCanceled

Setter methods SetCanceled records whether the proposal is canceled.

Parameters

Name
Type
Description

canceled

bool

cancellation state to store

source

SetCanceledAt

SetCanceledAt records the timestamp associated with proposal cancellation.

Parameters

Name
Type
Description

canceledAt

int64

cancellation timestamp to store

source

SetCanceledBy

SetCanceledBy records the address that canceled the proposal.

Parameters

Name
Type
Description

canceledBy

address

address of the actor that canceled the proposal

source

SetCanceledHeight

SetCanceledHeight records the block height associated with proposal cancellation.

Parameters

Name
Type
Description

canceledHeight

int64

cancellation block height to store

source

SetExecutable

SetExecutable records whether this proposal type supports execution.

Parameters

Name
Type
Description

executable

bool

execution capability to store for the proposal type

source

SetExecuted

SetExecuted records whether the proposal is executed.

Parameters

Name
Type
Description

executed

bool

execution state to store

source

SetExecutedAt

SetExecutedAt records the timestamp associated with proposal execution.

Parameters

Name
Type
Description

executedAt

int64

execution timestamp to store

source

SetExecutedBy

SetExecutedBy records the address that executed the proposal.

Parameters

Name
Type
Description

executedBy

address

address of the actor that executed the proposal

source

SetExecutedHeight

SetExecutedHeight records the block height associated with proposal execution.

Parameters

Name
Type
Description

executedHeight

int64

execution block height to store

source

Constructors

  • func NewProposalActionStatus(executable bool) *ProposalActionStatus (source)

Last updated