Code Monkey home page Code Monkey logo

uniswap-dapp-integration-monorepo's Introduction

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

uniswap-dapp-integration-monorepo's People

Contributors

joshstevens19 avatar petermunachi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.