For the complete documentation index, see llms.txt. This page is also available as Markdown.
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.
( 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 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).