Skip to content

Fix/banxa and bridges#772

Merged
sk-enya merged 20 commits intodevelopfrom
fix/banxa-and-bridges
May 7, 2023
Merged

Fix/banxa and bridges#772
sk-enya merged 20 commits intodevelopfrom
fix/banxa-and-bridges

Conversation

@sk-enya
Copy link
Copy Markdown
Contributor

@sk-enya sk-enya commented May 3, 2023

📋 Add associated issues, tickets, docs URL here.

Closes: https://github.com/bobanetwork/boba/issues/770

Overview

Disable the bridges for Tesetnet

Changes

Describe your changes and implementation choices. More details make PRs easier to review.

  • Add check for current network type on AvailableBridges component
  • Migrated AvailableBridge component to typescript with styles-component in place for styling.
  • Prepare util function to fetch bridges based on the token instead of fetching from network service (clean up)
  • Create types for available bridges.
  • Added checks on for isBanxaEnable, Testnet, Mainnet, Available Bridge
  • Disable Banxa for Testnet as it's taking time to set up sandbox, which is good but not mandatory.
  • Add unit test cases for Available bridges component.
  • Left / Right Scrollbar issue fixed.

Testing

Describe how to test your new feature/bug fix and if possible, a step-by-step guide on how to demo this.

  • On connecting to the gateway mainnet you will see the Banxa Link on the bridges page.
  • If connected to any other network except Ethereum on Mainnet or Testnet Banxa won't be enabled.

@sk-enya sk-enya requested review from InoMurko and alvaro-ricotta May 3, 2023 08:48
@sk-enya sk-enya requested a review from boyuan-chen May 4, 2023 07:04
@InoMurko
Copy link
Copy Markdown
Contributor

InoMurko commented May 4, 2023

Why am I not seeing any tests? :-D

@sk-enya
Copy link
Copy Markdown
Contributor Author

sk-enya commented May 5, 2023

Why am I not seeing any tests? :-D

Hi, @InoMurko I have just updated the PR by migrating the component to ts and added unit test cases.

@sk-enya sk-enya requested a review from alvaro-ricotta May 5, 2023 01:00
Comment thread packages/boba/gateway/src/components/availableBridges/tests/index.test.tsx Outdated
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.

EXCELLENT

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Patch and project coverage have no change.

Comparison is base (718141f) 52.25% compared to head (fb82648) 52.25%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #772   +/-   ##
========================================
  Coverage    52.25%   52.25%           
========================================
  Files          170      170           
  Lines         7687     7687           
  Branches      1576     1576           
========================================
  Hits          4017     4017           
  Misses        3670     3670           
Flag Coverage Δ
coverage 52.25% <ø> (ø)

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

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

@sk-enya sk-enya merged commit dcf9b7e into develop May 7, 2023
@sk-enya sk-enya deleted the fix/banxa-and-bridges branch May 7, 2023 07:28
InoMurko added a commit that referenced this pull request May 8, 2023
* adding boba network

* fixing boba bridge url

* fixing bridge integration

* replace code by selectors

* remove hardcoded symbol

* enable banxa only for mainnet

* Available bridge inable only for mainnet

* adding support for testnet

* update conditional for other bridges

* implemented the available bridges with typescript

* unit test cases for available bridges

* typo in Available bridges

---------

Co-authored-by: alvaro-ricotta <alvaro.e.ricotta@gmail.com>
Co-authored-by: alvaro-ricotta <81116391+alvaro-ricotta@users.noreply.github.com>
Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit dcf9b7e)
InoMurko added a commit that referenced this pull request May 8, 2023
* Inomurko/bump bundler  (#698)

* bump bundler, limit dependency bumps

* uncomment bundler related stuff

* build bundler in docker

* build fixes

* fix tests

* fix bundler building

* uncomment _disableInitializers

* fix running DTL

* v1.0.0

* fixing starting bundler and tests, default config

* local unsafe, linting fix in intg tests

* custom errors fixes

* new api for simple account contract

* use simple account factory proxy

* use simple account factory proxy in SimpleAccountAPI

* use simple account factory proxy in SimpleAccountAPI

* use wrappers to get around custom errors

* update entrypoint wrapper (#745)

* sponsoring fee fixed

* stricter validation for staking

* remove debug namespace, fix return for unaavailable rpc methods

* addressing Souradeeps comments

---------

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
(cherry picked from commit 6368c72)

* fix: qsp30 (#773)

fix: BOB1-30
(cherry picked from commit 7feda88)

* run op fix (#771)

(cherry picked from commit 176cd3c)

* close-server (#768)

(cherry picked from commit 72021af)

* [AA]: fix inconsistent userOpHash (#757)

* add token callback handler on SimpleAccount

* fix: userOpHash packing

* prevent recursive calls into handleOps

* move nonce validation from individual Account to EntryPoint

* add bundler changes for nonce change to EP

(cherry picked from commit cc4e205)

* ValidationManager account for signature expiration (#775)

* resolve #753

* Update packages/boba/bundler/src/modules/ValidationManager.ts

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

* fix bool

* validAfter/Until integrationt tests, validAfter

* cleanup

* regex

* integration_tests

* integration & unit tests

---------

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

* npm release workflow for bundler-sdk (#749)

(cherry picked from commit 718141f)

* Fix/banxa and bridges (#772)

* adding boba network

* fixing boba bridge url

* fixing bridge integration

* replace code by selectors

* remove hardcoded symbol

* enable banxa only for mainnet

* Available bridge inable only for mainnet

* adding support for testnet

* update conditional for other bridges

* implemented the available bridges with typescript

* unit test cases for available bridges

* typo in Available bridges

---------

Co-authored-by: alvaro-ricotta <alvaro.e.ricotta@gmail.com>
Co-authored-by: alvaro-ricotta <81116391+alvaro-ricotta@users.noreply.github.com>
Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit dcf9b7e)

* add validation of entryPoint and wrapper (#779)

* add validaiton of entryPoint and wrapper

(cherry picked from commit 41f3150)

---------

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
Co-authored-by: Riedl Kevin, Bsc <kevin.riedl@wavect.io>
Co-authored-by: Sahil K <86316370+sk-enya@users.noreply.github.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.

Gateway : banxa should be available only for mainnet

5 participants