Skip to content

feat: add Gnosis Chain#95

Draft
filoozom wants to merge 2 commits intoDarkFlorist:mainfrom
filoozom:feat/add-gnosis
Draft

feat: add Gnosis Chain#95
filoozom wants to merge 2 commits intoDarkFlorist:mainfrom
filoozom:feat/add-gnosis

Conversation

@filoozom
Copy link

@filoozom filoozom commented Feb 3, 2024

Uniswap never answered any of our PRs (and closed the main one), so it's not necessarily trivial to add Gnosis Chain to Horswap either.

This PR is still a draft and follows work done on PRs on Uniswap. For reference:

It has a few caveats, as it would require to fork two more packages:

  • @uniswap/sdk-core: I circumvented this one currently with a hack that is "not that bad" but also not great
  • @uniswap/universal-router-sdk: Probably going to do something similar but haven't looked into that yet

I guess longer term the best solution would be to maintain forks for both of these, but that obviously comes with additional maintenance burden. Alternatively we could somewhat hack extensions together like I already did for @uniswap/sdk-core. Of course we can make those cleaner if that's the chosen solution.

Todo:

  • Find solution for @uniswap/universal-router-sdk
    • Went with a patch-package patch: patches/@uniswap+universal-router-sdk+1.5.6.patch. Not the most maintainable or best long-term solution, but a hack similar to @uniswap/sdk-core isn't really possible without rewriting half the package or forking it.
  • Fix color constants
  • Enable SHOULD_SHOW_ALERT and add colors as well (presumably?)

@0xCardiE
Copy link

0xCardiE commented Aug 30, 2024

I see Gnosis chain is finally getting official UI on Uni
https://gov.uniswap.org/t/onboarding-package-for-gnosis-chain/24166

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.

3 participants