General

Variable

type Variable =
  | { type: "output"; id: { nodeId: string; innerIndex: number } }
  | { type: "external"; id: number }
  | { type: "global"; id: GlobalVariable }
  | { type: "computed"; id: IComputed };

Param

interface Param {
  name: string;
  type: string;
  value?: boolean | string | string[] | Param[] | Param[][] | Variable;
  customType?: boolean;
  hashed?: boolean;
}

ParamWithoutVariable

interface ParamWithoutVariable extends Param {
  value?: boolean | string | string[] | Param[] | Param[][];
}

MethodParamsInterface

interface MethodParamsInterface {
  method: string;
  params: Param[];
  to?: string | Variable;
}

CallType

type CallType = keyof typeof CALL_TYPE;

CallOptions

interface CallOptions {
  permissions?: string;
  gasLimit?: string;
  flow?: Flow;
  jumpOnSuccess?: string;
  jumpOnFail?: string;
  falseMeansFail?: boolean;
  callType?: CallType;
}

IPluginCall

interface IPluginCall {
  value?: string | Variable;
  to: string | Variable;
  method: string;
  params: Param[];
  options?: CallOptions;
}

Last updated