osmosis-frontend
osmosis-frontend copied to clipboard
Bridge Integration
Integrates Axelar transfers directly into frontend, with the option to connect MetaMask and/or EVM WalletConnect.
Key components
- Observable MetaMask and observable WalletConnect objects for interfacing with respective wallet.
/integrations/folder containing an/axelar/folder with a modal view, queries, config, and types needed by Axelar.BridgeTransfermodal that dynamically imports all Axelar transfer dependencies. Saves ~317kb from initial loaded bundle.- Integration is enabled for an IBC asset by adding a
AxelarBridgeConfigto theoriginBridgeInfomember of an entry in ibc-assets.ts'sIBCAssetInfoslist - IBC transfers now use the new and improved UI + animation. Maintains support for copying addresses on mobile, and editing the withdraw address.
- For mobile, I'm simply going to scale the view down
TODO:
- [x] Add lottie/bridge animation from Nikita and Syed
- [ ] Mobile design
- [x] Add hardcoded Axelar bridge fee to
AxelarBridgeConfig - [x] Ensure user has correct network selected in wallet
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| osmosis-frontend | ✅ Ready (Inspect) | Visit Preview | Sep 14, 2022 at 8:07AM (UTC) |
| osmosis-frontier | ✅ Ready (Inspect) | Visit Preview | Sep 14, 2022 at 8:07AM (UTC) |
I think we need to implement logic to check what the user’s active network on Metamask is set to. If it isn't Ethereum, we should request the user to change it to Ethereum (https://docs.metamask.io/guide/ethereum-provider.html#basic-usage)
Yeah, I also realized that needed to be added to the outstanding to do list.
Note: the large number of line changes are largely from the lottie animation JSON files; 38k and 18k lines.