Operate a Workflow

Setup Requirements

  • Set up Inverter Network SDK: Refer to the Quick Start guide for detailed instructions.

  • Deploy a Workflow: Refer to the Deploy a Workflow guide for detailed instructions.

circle-info

( optional ) You can pass in a ModuleData typed object into the requestedModules constant's fields, this makes it so that you can work with your self managed inverter modules

// EXEMPLE MixedRequestedModules USAGE
import type { ModuleData, MixedRequestedModules } from '@inverter-network/sdk'

const AUT_Roles_v1 = {'<your_module_data>'} as const satisifies ModuleData

const requestedModules = {
    fundingManager: 'FM_DepositVault_v1',
    paymentProcessor: 'PP_Simple_v1',
    authorizer: AUT_Roles_v1,
} as const satisfies MixedRequestedModules

Retrieving a Workflow

Parameters

  1. orchestratorAddress (required): The address of the orchestrator responsible for managing the workflow. This parameter must always be provided.

  2. requestedModules (optional): Suggested to be included for end-to-end TypeScript coverage. This parameter provides additional context or configuration for the workflow's orientation.

  3. useTags (optional): This parameter is to optionally disable auto format parse for inputs and outputs (default true).

Reading Data

You can read data from any of the modules as shown below. In this example, we are retrieving the totalSupply of the fundingToken:

Writing Data

You can write data to any of the modules as shown below. In this example, we are making a deposit to the funding manager:

Last updated