Skip to content

Adapt ALM to monitor also Fuse native bridge transaction #2

@leonprou

Description

@leonprou

The ALM monitor is responsible to give status of bridge relay transactions between Fuse and Ethereum network. Giving the transaction that sent funds to the bridge, the ALM monitor retrieves the transaction that send the funds on the other network. Currently the ALM supports the Muti ERC20 bridge, that supports relaying of any ERC20 between networks

The goal is to extend the ALM monitor to support also the transactions of the Fuse bridge, with the same functionality as the Multi ERC20 bridge. If the txhash matches for one of the bridges, it should show to which bridge is belongs.

You can find the ALM live on https://alm.fuse.io/.

Supported examples:

For Fuse -> Ethereum:
Entering the txhash: 0x35174d7b6557d56008074b130d776f58ecc25cf2509005b9163244348d04e6a6 will return the tx 0x89f03875580b57197d306857dddf237d9d4b2b0233ef795e87ff7b016e7e169a

For Ethereum -> Fuse
the txhash 0x3104fc3ef8e4908d147f97c6d25640a42548db5e4715d7c00fe9a8bb00934d61 will retrieve the tx 0xe086e2938d1d94ebe00102c3609c9a4b05b5f289f9c67dcfc5d487ffc876a39e

Need to support:
Ethereum -> Fuse:
https://etherscan.io/tx/0x6f64946cd54a6dc00387aa4cbab4b528ff3c6ae2859ed0bd5cbfded3b278c899

Fuse -> Ethereum:
https://explorer.fuse.io/tx/0xcb3e057f3e47dd0d51fd74252f1e64c9a3d7db99a49e02d30206d71452670a61/internal-transactions

Suggested plan of action

  1. Need to add the native bridge addresses
  2. Need to add the native bridge abis
  3. Look for events on each bridge if they vary https://github.com/fuseio/tokenbridge/blob/master/alm/src/utils/web3.ts#L41-L53
  4. A some tinkering to make it work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions