proposal.gno

ProposeText

func ProposeText(
	cur realm,
	title string,
	description string
) int64

ProposeText creates a new text proposal with the provided data.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

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.

ProposeCommunityPoolSpend

ProposeCommunityPoolSpend creates a CommunityPoolSpend proposal with the provided data.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

title

string

The title of the proposal.

description

string

The description of the proposal.

to

address

The address to receive the spent token.

tokenPath

string

The path of the token to be sent.

amount

int64

The amount of the token to be sent.

Return Values

Name
Type
Description

proposalId

int64

The ID of the proposal.

ProposeParameterChange

ProposeParameterChange creates a ParameterChange proposal with the provided data.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

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.

Last updated