Open alicercedigital opened 3 months ago
I have created a fork of this package and made changes to the following files: (https://github.com/alicercedigital/simple-uniswap-sdk)
uniswap-pair.ts Added the chainId to the createFactory() check
chain-id.ts Added the base chainId to the ChainNames and ChainId enum
tokens.factory.public.ts Added providerContext.customNetwork to the TokensFactoryPublic constructor
eth.ts and wth.ts Added the WETH address of the base network
ethers-provider.ts Added the RPC base mainet of Infura
Now we are receiving the error:
unsupported network (argument="network", value={"chainId":8453,"name":"unknown"}, code=INVALID_ARGUMENT, version=providers/5.7.2)
This error is being thrown when we initialize new UniswapPair() Does anyone know which contract is throwing this error?
same problem here
How can we use the base network with this package?
I have defined customNetwork and cloneUniswapContractDetails, but when I try to use them, I get the message:
Can not find chain name for 8453. This lib only supports mainnet(1), ropsten(4), kovan(42), rinkeby(4) and görli(5)
This is my config:
Has anyone used this package with Base network? If so, could you kindly provide the configuration you used? That would greatly help us; we have been struggling with the Uniswap SDK for almost a month now. We just want to use code to trade, and this package is our last hope. =/