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

governance_propose.gno

ProposeCommunityPoolSpend

func ProposeCommunityPoolSpend(
	cur realm,
	title string,
	description string,
	to address,
	tokenPath string,
	amount int64
) int64

ProposeCommunityPoolSpend 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

Name
Type
Description

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

Name
Type
Description

proposalId

int64

The ID of the proposal.

source

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

Name
Type
Description

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

Name
Type
Description

proposalId

int64

The ID of the proposal.

source

ProposeText

ProposeText creates a new text proposal with the provided data.

Halt check: reverts while the Governance halt scope is active.

Parameters

Name
Type
Description

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

Name
Type
Description

proposalId

int64

The ID of the proposal.

source

Last updated