proposal.gno
ProposeText
func ProposeText(
cur realm,
title string,
description string
) int64ProposeText creates a new text proposal with the provided data.
Parameters
cur
realm
Pass cross as argument.
title
string
The title of the proposal.
description
string
The description of the proposal.
Return Values
proposalId
int64
The ID of the proposal.
ProposeCommunityPoolSpend
ProposeCommunityPoolSpend creates a CommunityPoolSpend proposal with the provided data.
Parameters
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
proposalId
int64
The ID of the proposal.
ProposeParameterChange
ProposeParameterChange creates a ParameterChange proposal with the provided data.
Parameters
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
proposalId
int64
The ID of the proposal.
Last updated