Inverter

The Inverter class is the most efficient entry point to the sdk, it provides the main API's with the required param's pre-filled.

Parameters:

(publicClient: PublicClient, walletClient?: WalletClient)

Returns: Inverter instance

{
  publicClient: readonly PublicClient
  walletClient: readonly WalletClient

  getWorkflow: (
    orchestratorAddress: `0x${string}`,
    workflowOrientation?: WorkflowOrientation
  ) => Promise<Workflow>

  getDeployOptions: () => {
    fundingManager: string[]
    authorizer: string[]
    paymentProcessor: string[]
    optionalModules: string[]
  }

  getDeploy: (requestedModules: RequestedModules): () => {
    inputs: FormattedAbiParameter[]
    run 
    simulate
  }
}

Example:

import { Inverter } from '@inverter-network/sdk'

const sdk = new Inverter(publicClient, walletClient)

const { 
    publicClient,
    walletClient,
    getWorkflow, 
    getDeployOptions,
    getDeploy 
} = sdk

Last updated