BatchCall Helper Class

Description

A helper class to create BatchCall objects which can be executed.

Constructors

  • Parameters

    • options: IBatchCallOptions

    Returns BatchCall

Properties

exec: ((signer, gasLimitMultiplier?) => Promise<ContractTransaction>)

Executes a batch call given the operations on this class.

Type declaration

    • (signer, gasLimitMultiplier?): Promise<ContractTransaction>
    • Executes a batch call given the operations on this class.

      Parameters

      • signer: Signer

        the signer of the transaction

      • Optional gasLimitMultiplier: number

        A multiplier to provide gasLimit buffer on top of the estimated gas limit (1.2x is the default)

      Returns Promise<ContractTransaction>

      ContractTransaction object

Param: signer

the signer of the transaction

Param: gasLimitMultiplier

A multiplier to provide gasLimit buffer on top of the estimated gas limit (1.2x is the default)

Returns

ContractTransaction object

execForward: ((signer) => Promise<ContractTransaction>)

Executes a forward batch call given the operations on this class.

Type declaration

    • (signer): Promise<ContractTransaction>
    • Executes a forward batch call given the operations on this class.

      Parameters

      • signer: Signer

        the signer of the transaction

      Returns Promise<ContractTransaction>

      ContractTransaction object

Param: signer

the signer of the transaction

Returns

ContractTransaction object

getCallDataFunctionArgs: ((abi, callData) => Result)

Type declaration

    • (abi, callData): Result
    • Parameters

      • abi: string | readonly (string | Fragment | JsonFragment)[]
      • callData: string

      Returns Result

getOperationStruct: ((operation, index) => Promise<OperationStruct>)

Given an Operation object, gets the OperationStruct object.

Type declaration

    • (operation, index): Promise<OperationStruct>
    • Given an Operation object, gets the OperationStruct object.

      Parameters

      • operation: Operation

        an Operation object

      • index: number

        the index of the Operation in the batchCall

      Returns Promise<OperationStruct>

      OperationStruct object for batchCall

Param: operation

an Operation object

Param: index

the index of the Operation in the batchCall

Returns

OperationStruct object for batchCall

host: Host
options: IBatchCallOptions

Accessors

  • get getOperationStructArrayPromises(): Promise<OperationStruct>[]
  • Gets an array of OperationStruct objects to be passed to batchCall.

    Returns Promise<OperationStruct>[]

    array of operation struct promises

Methods

  • Returns Promise<Operation>

Generated using TypeDoc