joshstevens19 / simple-uniswap-sdk

Uniswap SDK which handles the routes automatically for you, changes in trade quotes reactive subscriptions, exposure to formatted easy to understand information, bringing back the best trade quotes automatically, generating transactions for you and much more.
MIT License
188 stars 95 forks source link

Added customNetwork to TokensFactoryPublic constructor, Added option to skip the quote observer, Removed Ropsten Chain #55

Open niZmosis opened 1 year ago

niZmosis commented 1 year ago

Added customNetwork to TokensFactoryPublic: Fix for issue #41 Added a playground method for testing getAllowanceAndBalanceOfForContracts on a custom network

Added option to skip the quote observer: Option to prevent the library from adding the block listener, as when it's finished it removes all listeners of 'block', which may affect front end dApps. When true, It's up to the dev to listen for new blocks and update the quote using the new requote function on the UniswapPairFactory obj.

Bound the block listener which observes the quote, to its class instance. This will prevent all block listeners from being removed when a quote is destroyed. There may be a way to make the binding async, but I'm not sure.

Removed Ropsten Chain: Ropsten Chain has been deprecated Removed Rinkeby Chain: Rinkeby Chain has been deprecated Removed Kovan Chain: Kovan Chain has been deprecated Added Sepolia Chain: WIP by Uniswap team to deploy the contracts on this chain still.

niZmosis commented 1 year ago

@joshstevens19 Hey, could you review this PR when you get a chance?