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

NewProjectConditionsWithError

func NewProjectConditionsWithError(conditionTokens string, conditionAmounts string) ([]*ProjectCondition, error)

NewProjectConditionsWithError parses parallel *PAD*-separated token paths and minimum amounts.

Parameters:

  • conditionTokens: *PAD*-separated token contract paths, in condition order.
  • conditionAmounts: *PAD*-separated decimal int64 minimum amounts paired by index with conditionTokens; entries beyond the token list are not consumed.

Returns:

  • conditions: parsed available conditions in the same order as their token paths; empty when both inputs are empty.
  • err: nil on successful parsing; non-nil when a token lacks a matching amount, an amount is not a valid int64, or a condition is unavailable.

Params

Command

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

Result