1.0.5 ā€¢ Published 2 years ago

uniswap-react-v2 v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

uniswap-dapp-integration-monorepo

This repo holds the angular, react, vue uniswap integration packages. It also has the shared package they all use. This is powered by uniswap-simple-sdk. This is funded by unigrants.

What this repo solves

Integrating uniswap within your dApp should be a simple thing but with all the complex stuff that goes into making it work, managing transaction status, calling the correct methods on the swap, maintaining the users balances, syncing the fiat prices, producing the token icons, handling all the UI making it work on every browser, i could keep going. On top of this you don't really want to pop a window for the user to swap using the uniswap widget, you want to keep the user experience consistent with your dApp. The idea of this library is to give you a really easy but fully flexible way you can integrate with uniswap with only a few lines of code. This has an angular package, vue package and react package so you can easily get running and create your own uniswap experience. You can customise mostly everything from what tokens you support to what colour you want it to be themed as!

Features šŸš€

šŸš€ Integrate it into your existing dApp with a few lines of code šŸš€ Supports uniswap v2 and v3 prices together and returns the best price šŸš€ Queries all the best routes and finds the best price for you šŸš€ Reactive logic so when the price moves or your trade expiries it generates you a new one but alerts the user (queries new trades on every new block) šŸš€ Reactive fiat price so users can see the amount the trade is in fiat, this updates as the price changes as well šŸš€ Reactive balance syncing so the user can see their correct balance all the time (syncs on every new block) šŸš€ Supports all major browsers šŸš€ Is fully responsive šŸš€ Fully customisable, style it as you want, support whatever tokens you want and much more šŸš€ Uses the awesome simple-uniswap-sdk for all the uniswap on chain logic šŸš€ Fully typescript supported with full generated typings šŸš€ and much more!!

Live demo

You can view a live demo here. You will need MetaMask installed. It only uses a few tokens just to show the demo working.

Angular

Full docs for the angular integration please go here

React

Full docs for the react integration please go here

VUE

Full docs for the vue integration please go here

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago