> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/gov/governance/proposal_action_status.gno.md).

# proposal\_action\_status.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno>" %}

## Types

### ProposalActionStatus

```go
type ProposalActionStatus struct
```

ProposalActionStatus tracks the execution and cancellation status of a proposal. This structure manages the action-related state including who performed actions and when.

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L5)

#### Methods

**Canceled**

```go
func (p *ProposalActionStatus) Canceled() bool
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L24)

**CanceledAt**

```go
func (p *ProposalActionStatus) CanceledAt() int64
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L30)

**CanceledBy**

```go
func (p *ProposalActionStatus) CanceledBy() address
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L141)

**CanceledHeight**

```go
func (p *ProposalActionStatus) CanceledHeight() int64
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L36)

**Clone**

```go
func (p *ProposalActionStatus) Clone() *ProposalActionStatus
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L192)

**Executable**

```go
func (p *ProposalActionStatus) Executable() bool
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L60)

**Executed**

```go
func (p *ProposalActionStatus) Executed() bool
```

Executed reports whether this proposal has been marked executed.

#### Return Values

| Name   | Type | Description                           |
| ------ | ---- | ------------------------------------- |
| `bool` | bool | true when execution has been recorded |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L42)

**ExecutedAt**

```go
func (p *ProposalActionStatus) ExecutedAt() int64
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L48)

**ExecutedBy**

```go
func (p *ProposalActionStatus) ExecutedBy() address
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L159)

**ExecutedHeight**

```go
func (p *ProposalActionStatus) ExecutedHeight() int64
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L54)

**IsExecutable**

```go
func (p *ProposalActionStatus) IsExecutable() bool
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L167)

**IsExecuted**

```go
func (p *ProposalActionStatus) IsExecuted() bool
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L149)

**SetCanceled**

```go
func (p *ProposalActionStatus) SetCanceled(
	canceled bool
)
```

Setter methods SetCanceled records whether the proposal is canceled.

#### Parameters

| Name       | Type | Description                 |
| ---------- | ---- | --------------------------- |
| `canceled` | bool | cancellation state to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L67)

**SetCanceledAt**

```go
func (p *ProposalActionStatus) SetCanceledAt(
	canceledAt int64
)
```

SetCanceledAt records the timestamp associated with proposal cancellation.

#### Parameters

| Name         | Type  | Description                     |
| ------------ | ----- | ------------------------------- |
| `canceledAt` | int64 | cancellation timestamp to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L75)

**SetCanceledBy**

```go
func (p *ProposalActionStatus) SetCanceledBy(
	canceledBy address
)
```

SetCanceledBy records the address that canceled the proposal.

#### Parameters

| Name         | Type    | Description                                     |
| ------------ | ------- | ----------------------------------------------- |
| `canceledBy` | address | address of the actor that canceled the proposal |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L91)

**SetCanceledHeight**

```go
func (p *ProposalActionStatus) SetCanceledHeight(
	canceledHeight int64
)
```

SetCanceledHeight records the block height associated with proposal cancellation.

#### Parameters

| Name             | Type  | Description                        |
| ---------------- | ----- | ---------------------------------- |
| `canceledHeight` | int64 | cancellation block height to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L83)

**SetExecutable**

```go
func (p *ProposalActionStatus) SetExecutable(
	executable bool
)
```

SetExecutable records whether this proposal type supports execution.

#### Parameters

| Name         | Type | Description                                         |
| ------------ | ---- | --------------------------------------------------- |
| `executable` | bool | execution capability to store for the proposal type |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L131)

**SetExecuted**

```go
func (p *ProposalActionStatus) SetExecuted(
	executed bool
)
```

SetExecuted records whether the proposal is executed.

#### Parameters

| Name       | Type | Description              |
| ---------- | ---- | ------------------------ |
| `executed` | bool | execution state to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L99)

**SetExecutedAt**

```go
func (p *ProposalActionStatus) SetExecutedAt(
	executedAt int64
)
```

SetExecutedAt records the timestamp associated with proposal execution.

#### Parameters

| Name         | Type  | Description                  |
| ------------ | ----- | ---------------------------- |
| `executedAt` | int64 | execution timestamp to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L107)

**SetExecutedBy**

```go
func (p *ProposalActionStatus) SetExecutedBy(
	executedBy address
)
```

SetExecutedBy records the address that executed the proposal.

#### Parameters

| Name         | Type    | Description                                     |
| ------------ | ------- | ----------------------------------------------- |
| `executedBy` | address | address of the actor that executed the proposal |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L123)

**SetExecutedHeight**

```go
func (p *ProposalActionStatus) SetExecutedHeight(
	executedHeight int64
)
```

SetExecutedHeight records the block height associated with proposal execution.

#### Parameters

| Name             | Type  | Description                     |
| ---------------- | ----- | ------------------------------- |
| `executedHeight` | int64 | execution block height to store |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L115)

#### Constructors

* `func NewProposalActionStatus(executable bool) *ProposalActionStatus` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_action_status.gno#L179))
