Set up Inverter Network SDK: Refer to the Quick Start Guide for detailed instructions.
( 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 USAGEimporttype{ModuleData,MixedRequestedModules}from'@inverter-network/sdk'constAUT_Roles_v1={'<your_module_data>'}asconstsatisifiesModuleDataconstrequestedModules={fundingManager:'FM_DepositVault_v1',paymentProcessor:'PP_Simple_v1',authorizer:AUT_Roles_v1,}asconstsatisfiesMixedRequestedModules
Simulating the Workflow
All we have to do is decide on the requestedModules and we can display or use the output of the simulation. This simulation lets us retrieve the preliminary addresses of a workflow before it is deployed.
Parameters
requestedModules (required):
This parameter defines the modules which will be deployed.
args(required):
This parameter is the arguments for simulated workflow deployment.
useTags(optional):
This parameter is to optionally disable auto format parse for inputs and outputs (default true).