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

MakeDeposit

func MakeDeposit( depositID string, projectID string, tier int64, depositor address, depositAmount int64, createdHeight int64, createdTime int64, endTime int64, ) Deposit

MakeDeposit returns a new Deposit value with the given values.

Parameters:

  • depositID: unique identifier to assign to the new deposit.
  • projectID: launchpad project identifier associated with the deposit.
  • tier: tier duration in days; launchpad tiers use 30, 90, or 180.
  • depositor: account address making the deposit.
  • depositAmount: amount of GNS deposited for the project.
  • createdHeight: block height at which the deposit was created.
  • createdTime: creation timestamp in Unix seconds.
  • endTime: tier end timestamp in Unix seconds.

Returns:

  • deposit: new Deposit populated with the supplied fields and zero withdrawal markers.

Params

Command

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

Result