Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

governance/v1 package

Function

NewProposalCommunityPoolSpendData

func NewProposalCommunityPoolSpendData( tokenPath string, to address, amount int64, communityPoolPackagePath string, ) *governance.ProposalData

NewProposalCommunityPoolSpendData creates proposal data for a community pool spend proposal. Automatically generates the execution message for the token transfer.

Parameters:

  • tokenPath: path of the token to transfer
  • to: recipient address for the transfer
  • amount: amount of tokens to transfer
  • communityPoolPackagePath: package path of the community pool contract

Returns:

  • *ProposalData: proposal data configured for community pool spending

Params

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/gov/governance/v1.NewProposalCommunityPoolSpendData(,,,)"

Result