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

# proposal\_type.gno

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

## Types

### ProposalType

```go
type ProposalType string
```

ProposalType defines the different types of proposals supported by the governance system. Each type has different execution behavior and validation requirements.

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

#### Methods

**IsExecutable**

```go
func (p ProposalType) IsExecutable() bool
```

IsExecutable determines whether this proposal type can be executed. Text proposals are informational only and cannot be executed.

#### Return Values

| Name   | Type | Description                                                                                       |
| ------ | ---- | ------------------------------------------------------------------------------------------------- |
| `bool` | bool | true for executable CommunityPoolSpend or ParameterChange types; false for Text and unknown types |

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

**String**

```go
func (p ProposalType) String() string
```

String returns the human-readable string representation of the proposal type.

#### Return Values

| Name     | Type   | Description                                                                              |
| -------- | ------ | ---------------------------------------------------------------------------------------- |
| `string` | string | "Text", "CommunityPoolSpend", or "ParameterChange" for a known type; "Unknown" otherwise |

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

#### Constructors

* `func GetProposalTypeByProposalId(proposalId int64) (ProposalType, error)` ([source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/gov/governance/getters.gno#L106))
