> 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_status.gno.md).

# proposal\_status.gno

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

## Types

### ProposalStatus

```go
type ProposalStatus struct
```

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

#### Methods

**ActionStatus**

```go
func (s *ProposalStatus) ActionStatus() *ProposalActionStatus
```

ActionStatus returns the proposal's execution and cancellation state.

#### Return Values

| Name                    | Type                   | Description                               |
| ----------------------- | ---------------------- | ----------------------------------------- |
| `*ProposalActionStatus` | \*ProposalActionStatus | action state associated with the proposal |

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

**Clone**

```go
func (s *ProposalStatus) Clone() *ProposalStatus
```

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

**NoWeight**

```go
func (s *ProposalStatus) NoWeight() int64
```

NoWeight returns the total weight of "no" votes.

#### Return Values

| Name    | Type  | Description            |
| ------- | ----- | ---------------------- |
| `int64` | int64 | total "no" vote weight |

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

**Schedule**

```go
func (s *ProposalStatus) Schedule() *ProposalScheduleStatus
```

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

#### Return Values

| Name                      | Type                     | Description                                       |
| ------------------------- | ------------------------ | ------------------------------------------------- |
| `*ProposalScheduleStatus` | \*ProposalScheduleStatus | schedule containing proposal lifecycle timestamps |

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

**VoteStatus**

```go
func (s *ProposalStatus) VoteStatus() *ProposalVoteStatus
```

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

#### Return Values

| Name                  | Type                 | Description                             |
| --------------------- | -------------------- | --------------------------------------- |
| `*ProposalVoteStatus` | \*ProposalVoteStatus | vote state associated with the proposal |

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

**YesWeight**

```go
func (s *ProposalStatus) YesWeight() int64
```

YesWeight returns the total weight of "yes" votes.

#### Return Values

| Name    | Type  | Description             |
| ------- | ----- | ----------------------- |
| `int64` | int64 | total "yes" vote weight |

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

#### Constructors

* `func NewProposalStatusBy(schedule *ProposalScheduleStatus, actionStatus *ProposalActionStatus, voteStatus *ProposalVoteStatus) *ProposalStatus` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_status.gno#L63))

### ProposalStatusType

```go
type ProposalStatusType int
```

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

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

#### Methods

**String**

```go
func (s ProposalStatusType) String() 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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_status.gno#L23)
