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

GetProjectCondition

func GetProjectCondition(projectId string, tokenPath string) (*ProjectCondition, error)

GetProjectCondition retrieves a specific condition of a project. Returns a cloned condition to prevent external modification.

Parameters:

  • projectId: unique identifier of the project containing the condition.
  • tokenPath: token contract path used as the condition key.

Returns:

  • condition: cloned condition for the requested token; nil when the implementation returns no condition without an error.
  • err: non-nil when the project or condition cannot be found.

Params

Command

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

Result