governance_propose.gno
ProposeCommunityPoolSpend
func ProposeCommunityPoolSpend(
cur realm,
title string,
description string,
to address,
tokenPath string,
amount int64
) int64ProposeCommunityPoolSpend creates a CommunityPoolSpend proposal with the provided data. The transfer is attempted when an approved proposal executes.
The community-pool balance is checked at execution, not proposal creation.
Halt check: reverts while the Governance halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
title
string
The title of the proposal.
description
string
The description of the proposal.
to
address
A valid address to receive the spent token.
tokenPath
string
A registered token path.
amount
int64
A strictly positive amount in the token's smallest unit.
Return Values
proposalId
int64
The ID of the proposal.
ProposeParameterChange
ProposeParameterChange creates a ParameterChange proposal with the provided data.
Halt check: reverts while the Governance halt scope is active, except for halt-recovery proposals that only target the halt realm.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
title
string
The title of the proposal.
description
string
The description of the proposal.
numToExecute
int64
The number of changes to execute.
executions
string
The list of changes to execute.
Return Values
proposalId
int64
The ID of the proposal.
ProposeText
ProposeText creates a new text proposal with the provided data.
Halt check: reverts while the Governance halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
title
string
The title of the proposal.
description
string
The description of the proposal.
Return Values
proposalId
int64
The ID of the proposal.
Last updated