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

launchpad package

Function

NewProject

func NewProject( name string, tokenPath string, depositAmount int64, recipient address, createdHeight int64, createdAt int64, ) *Project

NewProject creates a project with empty conditions, tiers, and tier-ratio maps.

Parameters:

  • name: human-readable project name.
  • tokenPath: token path whose tokens are distributed as project rewards.
  • depositAmount: total reward-token amount allocated to the project.
  • recipient: address authorized to receive project rewards.
  • createdHeight: block height at which the project is created.
  • createdAt: Unix timestamp at which the project is created.

Returns:

  • project: initialized project with an ID derived from tokenPath and createdHeight.

Params

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/launchpad.NewProject(,,,,,)"

Result