Skip to content

Gateway : Bridge to Alt L1s#297

Merged
boyuan-chen merged 17 commits intodevelopfrom
feat/multi-chain-bridge-in-gateway
Sep 30, 2022
Merged

Gateway : Bridge to Alt L1s#297
boyuan-chen merged 17 commits intodevelopfrom
feat/multi-chain-bridge-in-gateway

Conversation

@sk-enya
Copy link
Copy Markdown
Contributor

@sk-enya sk-enya commented Aug 11, 2022

📋 closes: bobanetwork/boba#296

Overview

Please check the issues attached above for more details.

Changes

Markup changes for

  1. wallet page
  2. multichain input
  3. history page.

Testing

TBD.

UI
Screenshot 2022-08-24 at 8 38 07 PM
Screenshot 2022-08-24 at 8 38 11 PM

@sk-enya sk-enya self-assigned this Aug 11, 2022
@sk-enya sk-enya marked this pull request as draft August 11, 2022 08:34
@boyuan-chen
Copy link
Copy Markdown
Contributor

Could you please add a dropdown for the target L1 chain?

@sk-enya
Copy link
Copy Markdown
Contributor Author

sk-enya commented Aug 16, 2022

Could you please add a dropdown for the target L1 chain?

Sure, Can you please help me what will be the options in dropdown?

@boyuan-chen
Copy link
Copy Markdown
Contributor

Could you please add a dropdown for the target L1 chain?

Sure, Can you please help me what will be the options in dropdown?

BNB, Avalanche, Fantom, Moonbeam

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 18, 2022

Codecov Report

Base: 47.79% // Head: 47.79% // No change to project coverage 👍

Coverage data is based on head (7192c50) compared to base (c1c144b).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #297   +/-   ##
========================================
  Coverage    47.79%   47.79%           
========================================
  Files           97       97           
  Lines         3825     3825           
  Branches       763      763           
========================================
  Hits          1828     1828           
  Misses        1997     1997           
Flag Coverage Δ
boba-contracts 20.58% <ø> (ø)
contracts 79.30% <ø> (ø)
core-utils 86.80% <ø> (ø)
data-transport-layer 31.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sk-enya sk-enya force-pushed the feat/multi-chain-bridge-in-gateway branch from 2e069e3 to 390d59b Compare August 21, 2022 20:44
@sk-enya sk-enya marked this pull request as ready for review August 24, 2022 15:07
@sk-enya
Copy link
Copy Markdown
Contributor Author

sk-enya commented Aug 24, 2022

@boyuan-chen currently BNB, Fantom, Avalanche Is implemented.
Can you please help me with more details on how to get support for moonbase added?

@boyuan-chen
Copy link
Copy Markdown
Contributor

@boyuan-chen currently BNB, Fantom, Avalanche Is implemented.
Can you please help me with more details on how to get support for moonbase added?

Layer zero didn't deploy their protocol on moonbase.

@sk-enya
Copy link
Copy Markdown
Contributor Author

sk-enya commented Aug 25, 2022

@boyuan-chen now only history page is pending with needed api details for alt l1 txs

@boyuan-chen
Copy link
Copy Markdown
Contributor

@boyuan-chen now only history page is pending with needed api details for alt l1 txs

Yup! @trangtran-enya The frontend is ready.

@sk-enya sk-enya force-pushed the feat/multi-chain-bridge-in-gateway branch from 7dc65bd to 2769feb Compare September 2, 2022 04:25
@sk-enya sk-enya force-pushed the feat/multi-chain-bridge-in-gateway branch from 2769feb to 9ff0745 Compare September 7, 2022 05:52
@sk-enya sk-enya force-pushed the feat/multi-chain-bridge-in-gateway branch from 251e6f1 to d098a4b Compare September 20, 2022 09:43
@sk-enya sk-enya force-pushed the feat/multi-chain-bridge-in-gateway branch from 22e8489 to e3d4747 Compare September 23, 2022 15:29
Copy link
Copy Markdown
Contributor

@InoMurko InoMurko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

address: this.account,
fromRange: 0,
toRange: 12418344,
toRange: 1000,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be cached if we wouldn't be using POST for everything :-)

sk-enya and others added 6 commits September 27, 2022 12:09
 1. added tab in history for bridge between l1 & update history page.
 2. added action button to token list l1 layer bridge to alt l1
 3. inputStepMultiChain popup for bridging to alt l1s.
sk-enya and others added 8 commits September 27, 2022 12:09
 - added loader when initiate briding
 - disabling bridge button in case of false conditions
 - commented unused contract initiation from depositErc20 to alt L1.
 - using the address added into the chainRinkeby.
 - Added actions, reducer, state to get the estimated
 - Showing estimated fees on UI for briding boba to alt l1.
 cleanup
* Support bridge between Eth and Moonbeam

* Remove console.log

* Fix contract address
1. fix for the failing import for rinkebny
2. updated get transaction to load the data for bridge between l1's
3. representation tx details on history page.
4. warning fix for coinImage breakstatement.
5. removed consoles.
1. added boba to amount
2. showing destination chain & EventType on UI
@InoMurko InoMurko force-pushed the feat/multi-chain-bridge-in-gateway branch from 7192c50 to f258371 Compare September 27, 2022 10:09
@sk-enya
Copy link
Copy Markdown
Contributor Author

sk-enya commented Sep 28, 2022

@boyuan-chen can you please review this PR once everything seems good to me here now.

Copy link
Copy Markdown
Contributor

@boyuan-chen boyuan-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@boyuan-chen boyuan-chen merged commit 4640621 into develop Sep 30, 2022
@boyuan-chen boyuan-chen deleted the feat/multi-chain-bridge-in-gateway branch September 30, 2022 03:53
InoMurko pushed a commit that referenced this pull request Oct 24, 2022
* change:
 1. added tab in history for bridge between l1 & update history page.
 2. added action button to token list l1 layer bridge to alt l1
 3. inputStepMultiChain popup for bridging to alt l1s.

* updated the button style and remove tooltip.

* added networkservice func for multi chain deposit

* 1.Added abi, Deposit function.

* added bridge trnsfer from l1 to alt l1

* Add multichain bridge addresses (#310)

* change:
 - added loader when initiate briding
 - disabling bridge button in case of false conditions
 - commented unused contract initiation from depositErc20 to alt L1.
 - using the address added into the chainRinkeby.

* change:
 - Added actions, reducer, state to get the estimated
 - Showing estimated fees on UI for briding boba to alt l1.

* change:
 cleanup

* Clean the gateway for supporting multi-chains (#314)

* Support bridge between Eth and Moonbeam in gateway (#315)

* Support bridge between Eth and Moonbeam

* Remove console.log

* Fix contract address

* change:
1. fix for the failing import for rinkebny
2. updated get transaction to load the data for bridge between l1's
3. representation tx details on history page.
4. warning fix for coinImage breakstatement.
5. removed consoles.

* fix for warning

* change:
1. added boba to amount
2. showing destination chain & EventType on UI

* fix for the amout to be show on UI for txs.

* Update L0 contract addresses

Co-authored-by: Boyuan-Chen <46272347+Boyuan-Chen@users.noreply.github.com>
Co-authored-by: cby3149 <cby3149@gmail.com>
(cherry picked from commit 4640621)
InoMurko added a commit that referenced this pull request Oct 24, 2022
* Fix Layer Zero monitor (#359)

* Fix database typo

* Fix the env

* Fix Layer Zero monitor

* Reduce logs

* Fix typo

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit c1c144b)

* 1. fix blank page on unknown routes (#379)

2. move routes path to const and ref in menuitem, route)
3. fix caniuse-lite terminal warnigng.

(cherry picked from commit f53ae8c)

* Add links to Boba multi-chains in the gateway (#384)

* Links to Boba multi-chains

* updated costant

* Add Boba Eth and Boba Fantom

Co-authored-by: Sahil Kashetwar <sahil@enya.ai>
(cherry picked from commit de21c96)

* Fix ABI and length of result for Layer Zero monitor (#376)

* Fix ABI and length

* Add layer zero contracts

* Fix bridge tag

* Update MySQL query

(cherry picked from commit 8b14503)

* rm bedrock - use v3-repos instead (#389)

(cherry picked from commit 0eac030)

* Gateway : Bridge to Alt L1s (#297)

* change:
 1. added tab in history for bridge between l1 & update history page.
 2. added action button to token list l1 layer bridge to alt l1
 3. inputStepMultiChain popup for bridging to alt l1s.

* updated the button style and remove tooltip.

* added networkservice func for multi chain deposit

* 1.Added abi, Deposit function.

* added bridge trnsfer from l1 to alt l1

* Add multichain bridge addresses (#310)

* change:
 - added loader when initiate briding
 - disabling bridge button in case of false conditions
 - commented unused contract initiation from depositErc20 to alt L1.
 - using the address added into the chainRinkeby.

* change:
 - Added actions, reducer, state to get the estimated
 - Showing estimated fees on UI for briding boba to alt l1.

* change:
 cleanup

* Clean the gateway for supporting multi-chains (#314)

* Support bridge between Eth and Moonbeam in gateway (#315)

* Support bridge between Eth and Moonbeam

* Remove console.log

* Fix contract address

* change:
1. fix for the failing import for rinkebny
2. updated get transaction to load the data for bridge between l1's
3. representation tx details on history page.
4. warning fix for coinImage breakstatement.
5. removed consoles.

* fix for warning

* change:
1. added boba to amount
2. showing destination chain & EventType on UI

* fix for the amout to be show on UI for txs.

* Update L0 contract addresses

Co-authored-by: Boyuan-Chen <46272347+Boyuan-Chen@users.noreply.github.com>
Co-authored-by: cby3149 <cby3149@gmail.com>
(cherry picked from commit 4640621)

* Fix Layer Zero fee and deploy API endpoint (#401)

* Fix Layer Zero fee and deploy API endpoint

* Disable button if warning is true

(cherry picked from commit 78b450c)

* Have verifier node sync in parallel with dtl to save time. (#394)

(cherry picked from commit 0ffde99)

* Edit beamer ecosystem entry (#411)

* Update project.list.js

We want to update the link to lead directly to the Beamer app now that we're live on Mainnet.

* Add files via upload

Replacement of Beamer Logo

(cherry picked from commit aa22ec3)

* Gateway : Vote & Dao Page. (#292)

Dao Page:
Create proposal with the option to select the Lock Boba (vBoba)
Show proposal list
Voting on proposal (abstain / against/ for)

Vote Page:
Showing available balance of vBoba.
Listing pools and available (vBoba) tokens
Way to vote on pools w.r.to. selected (vBoba) tokens.
updated contracts along with redux state/ actions / selectors

(cherry picked from commit dfb71a0)

* changes: (#410)

- updated the gas poll interval to 30000
 - moved fetchGasPrice calls to gasSwitcher component
 - removed unused gasReducer, gasSelector
 - updated readme

(cherry picked from commit 2dbe326)

* Enable whitelist for message relayer (#416)

(cherry picked from commit a06c58a)

* A global way to get token info in gateway (#408)

* A global way to get token info in gateway

* Rename file name and move tokenInfo outside

* Use a single file to store token info

(cherry picked from commit 48ce0f6)

* fix: revert nft for failing mint (#419)

* revert nft for failing mint

* update tests

* update README

* add timeout

* Apply suggestions from code review

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>

* fix: flaky test

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit 5f1d0f2)

* Add Sushiswap link (#430)

(cherry picked from commit 784c364)

* Add L2StandardTokenFactory address (#427)

(cherry picked from commit 33f6a50)

Co-authored-by: Boyuan-Chen <46272347+Boyuan-Chen@users.noreply.github.com>
Co-authored-by: Sahil K <86316370+sk-enya@users.noreply.github.com>
Co-authored-by: Riedl Kevin, Bsc <kevin.riedl@wavect.io>
Co-authored-by: DBecane <85872820+DBecane@users.noreply.github.com>
Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supports multi-chain bridges in gateway

4 participants