Function transpileAndRun

  • The core function for transpiling and running a by-law script snippet

    Parameters

    • code: string

      The code to be run

    • wallet: Wallet

      The wallet to be used to sign the transaction (provider must be set)

    • targetDARCAddress: string

      The address of the DARC contract to be used

    • darcVersion: DARC_VERSION = DARC.DARC_VERSION.Latest

      The version of the DARC contract to be used

    • Optional delegateToAddress: string

      The address of the delegate to be used, if any. Leave blank if not needed.

    Returns Promise<void>

Generated using TypeDoc