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.
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
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
Constructors
func GetProposalTypeByProposalId(proposalId int64) (ProposalType, error)(source)
Last updated