Simulate a Workflow

Setup Requirements

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

As we support multicall functionality there is a case for simulating a workflow deployment which enables us to retreive certain addresses before they exist.

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

Simulating the Workflow Deployment

Parameters

  • requestedModules (required): This parameter defines the modules which will be simulated.

  • args (required): This parameter is used to tell the simulations what the modules arguments are.

  • tagConfig (optional): This parameter is to tell the arg's parser how to parse the arguments.

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

Last updated