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

proposal_type.gno

Types

ProposalType

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

source

Methods

IsExecutable

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

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

Constructors

  • func GetProposalTypeByProposalId(proposalId int64) (ProposalType, error) (source)

Last updated