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

# proposal\_vote\_status.gno

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

## Types

### ProposalVoteStatus

```go
type ProposalVoteStatus struct
```

ProposalVoteStatus tracks the voting tallies and requirements for a proposal. This structure manages vote counting, quorum calculation, and voting outcome determination.

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

#### Methods

**Clone**

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

Clone returns an independent copy of the vote status, or nil when the receiver is nil.

#### Return Values

| Name                  | Type                 | Description                                                      |
| --------------------- | -------------------- | ---------------------------------------------------------------- |
| `*ProposalVoteStatus` | \*ProposalVoteStatus | copied vote tallies and requirements, or nil for a nil receiver. |

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

**MaxVotingWeight**

```go
func (p *ProposalVoteStatus) MaxVotingWeight() int64
```

Getter methods MaxVotingWeight returns the maximum voting weight captured for the proposal.

#### Return Values

| Name    | Type  | Description                                                       |
| ------- | ----- | ----------------------------------------------------------------- |
| `int64` | int64 | maximum voting weight used when evaluating the proposal's quorum. |

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

**NoWeight**

```go
func (p *ProposalVoteStatus) 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_vote_status.gno#L37)

**QuorumAmount**

```go
func (p *ProposalVoteStatus) QuorumAmount() int64
```

QuorumAmount returns the voting weight required for the proposal to satisfy quorum.

#### Return Values

| Name    | Type  | Description                                          |
| ------- | ----- | ---------------------------------------------------- |
| `int64` | int64 | minimum total vote weight required by this proposal. |

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

**SetMaxVotingWeight**

```go
func (p *ProposalVoteStatus) SetMaxVotingWeight(
	maxVotingWeight int64
)
```

SetMaxVotingWeight records the proposal's maximum voting-weight snapshot.

#### Parameters

| Name              | Type  | Description                                                    |
| ----------------- | ----- | -------------------------------------------------------------- |
| `maxVotingWeight` | int64 | maximum voting weight available when the proposal was created. |

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

**SetNoWeight**

```go
func (p *ProposalVoteStatus) SetNoWeight(
	no int64
)
```

SetNoWeight replaces the proposal's accumulated no-vote weight.

#### Parameters

| Name | Type  | Description                                |
| ---- | ----- | ------------------------------------------ |
| `no` | int64 | total weight to record for negative votes. |

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

**SetQuorumAmount**

```go
func (p *ProposalVoteStatus) SetQuorumAmount(
	quorumAmount int64
)
```

SetQuorumAmount records the proposal's quorum requirement.

#### Parameters

| Name           | Type  | Description                                           |
| -------------- | ----- | ----------------------------------------------------- |
| `quorumAmount` | int64 | minimum total vote weight required for this proposal. |

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

**SetYesWeight**

```go
func (p *ProposalVoteStatus) SetYesWeight(
	yes int64
)
```

Setter methods SetYesWeight replaces the proposal's accumulated yes-vote weight.

#### Parameters

| Name  | Type  | Description                                   |
| ----- | ----- | --------------------------------------------- |
| `yes` | int64 | total weight to record for affirmative votes. |

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

**YesWeight**

```go
func (p *ProposalVoteStatus) 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_vote_status.gno#L29)

#### Constructors

* `func NewProposalVoteStatus(maxVotingWeight int64, quorumAmount int64) *ProposalVoteStatus` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/proposal_vote_status.gno#L83))
