layerx-labs/dappkit

apply decodeLog logic on transaction receipt

bepro-bot opened this issue · 0 comments

Abstract

As a @taikai/dappkit user, I would like to have the transaction-receipt decoded with the existing contract abi.

Goal

change the needed functions on @taikai/dappkit to return a decoded log when a transaction receipt is received.

Deliverable

  • Change the transactionHandler() function at transaction-handler.ts to receive an ABI
  • Change the sendUnsignedTx to pass the current this.contract.abi to the transactionHandler() call
  • Change transactionHandler() function to account for logs and decode them with the provided abi