proposal.gno

ProposeText

func ProposeText(
	title string,
	description string,
) uint64 

Creates a new text proposal with the provided data.

Parameters

NameTypeDescription

title

string

The title of the proposal.

description

string

The description of the proposal.

Return Values

NameTypeDescription

proposalId

uint64

The ID of the proposal.

ProposeCommunityPoolSpend

func ProposeCommunityPoolSpend(
	title string,
	description string,
	to std.Address,
	tokenPath string,
	amount uint64,
) uint64

Creates a CommunityPoolSpend proposal with the provided data.

Parameters

NameTypeDescription

title

string

The title of the proposal.

description

string

The description of the proposal.

to

std.Address

The address to receive the spent token.

tokenPath

string

The path of the token to be sent.

amount

uint64

The amount of the token to be sent.

Return Values

NameTypeDescription

proposalId

uint64

The ID of the proposal.

ProposeParameterChange

func ProposeParameterChange(
	title string,
	description string,
	numToExecute uint64,
	executions string,
) uint64

Creates a ParameterChange proposal with the provided data.

Parameters

NameTypeDescription

title

string

The title of the proposal.

description

string

The description of the proposal.

numToExecute

uint64

The number of changes to execute.

executions

string

The list of changes to execute.

Return Values

NameTypeDescription

proposalId

uint64

The ID of the proposal.

Last updated