Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Is there out-of-the-box possibility to work with another Ethereum network? #81

Open
apetrovskiy opened this issue Sep 23, 2021 · 1 comment

Comments

@apetrovskiy
Copy link

apetrovskiy commented Sep 23, 2021

Hello,
I'm trying to use this SDK against a product (a fork of Uniswap V2) working with a custom network.
I extended this enum:
const ChainIdPlus = { ...ChainId, NETWORKONE: 101, NETWORKTWO: 102 };
Despite these changes, code is failing in further calls, and so on.

So, the question is there any extensibility out of the box like plugins to be able to work with other networks (a private blockchain, for example) or I have to fork this project and change it appropriately?

@Florian-S-A-W
Copy link

Florian-S-A-W commented Apr 26, 2023

Hi @apetrovskiy and anyone else trying to use this sdk for forks,

For exact copies of Uniswap V2, this SDK works, but you may have to change the factory address and init code hash in the constants file of the SDK. Usually, the creators of the forks create forks of the sdk that already have these changes, otherwise you can fork this repository and just make the amendments yourself.

So to answer your question, no, this functionality is not provided out of the box, but it should be very easy to make the necessary changes yourself.

Be cautious when using "forks" of Uniswap as the creators often change some details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants