webb-tools / webb-dapp

Monorepo for the Webb ecosystem.
https://app.tangle.tools
Apache License 2.0
29 stars 15 forks source link

[CHECKLIST] Add Bridge to Tangle dApp #2270

Open drewstone opened 2 months ago

drewstone commented 2 months ago

Overview

We'll be integrating bridges soon for Tangle to other chains. We should have a UI in the Tangle dApp that allows people to bridge in our dApp.

Resources

Tasks

Before Tangle added to Sygma SDK

When Tangle is not implemented in the Sygma SDK, we can utilize the SDK with their provided testnet to set up the logic for the bridge. When Tangle is officially added to the SDK, then we just need to add its config to the current logic

After Tangle being added to Sygma SDK

vutuanlinh2k2 commented 1 month ago

After doing some research on Sygma SDK and the code of Subridge, here is what I found:

Here is how Subbridge handles all tx at the moment, there are 4 types:

Here are the problems we are having right now:

  1. Sygma SDK does not support us on any tx at the moment. Here is the list of what they are supporting.
  2. For EVM-related tx, Sygma SDK only supports ERC20 and ERC721 at the moment, while TNT is the native token of Tangle EVM
  3. The api for Tangle currently does not support bridging tx to any other chain
  4. Presumably there are also no Substrate chains that have api functions to transfer assets to Tangle

Here are the things we can do:

  1. Make a request with Sygma SDK to see what tx they can help us with. Are we requesting them right now? @drewstone
  2. For tx from, we might need to create smart contracts for cases that Sygma SDK cannot help us
  3. Create bridge tx on Tangle to bridge assets to other chains
  4. Request other chains to add TNT to their bridge function

Other notes:

These can be viewed here