Uniswap without TORN censoring
Go to file
Noah Zinsmeister c3d8bc7ed5
Localstorage and routing improvements (#704)
* remove tokens context in favor of localstorage

refactor localstorage

improve adding custom token flow

* drop exchange language

* ensure url tokens are added to localstorage

clean up routing

remove unnecessary output approval checks

* fix bad import

* Remove unused imported checks

* remove unused imports

Co-authored-by: Ian Lapham <ianlapham@gmail.com>
2020-05-04 17:56:10 -04:00
.github add coingecko option 2020-02-12 10:46:08 -05:00
public Localstorage and routing improvements (#704) 2020-05-04 17:56:10 -04:00
src Localstorage and routing improvements (#704) 2020-05-04 17:56:10 -04:00
.env.local.example improve network env stuff (#621) 2020-01-29 18:48:33 -05:00
.gitignore Add Custom url parameters (#423) 2019-09-17 18:47:32 -04:00
.prettierrc set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
.travis.yml merge beta to production (#317) 2019-05-30 16:42:25 -04:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
netlify.toml improve network env stuff (#621) 2020-01-29 18:48:33 -05:00
package.json Localstorage and routing improvements (#704) 2020-05-04 17:56:10 -04:00
README.md Update README.md 2019-12-12 14:02:59 -05:00
tsconfig.json stable version with updated balances, add liquidity using SDK, pair menu search 2020-02-26 12:00:59 -05:00
webpack.config stable version with updated balances, add liquidity using SDK, pair menu search 2020-02-26 12:00:59 -05:00
yarn.lock add basic structure for advanced mode (#703) 2020-04-30 21:14:29 -04:00

Uniswap Frontend

Netlify Status Build Status Styled With Prettier

This an an open source interface for Uniswap - a protocol for decentralized exchange of Ethereum tokens.

Run Uniswap Locally

  1. Download and unzip the build.zip file from the latest release in the Releases tab.

  2. Serve the build/ folder locally, and access the application via a browser.

For more information on running a local server see https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server. This simple approach has one downside: refreshing the page will give a 404 because of how React handles client-side routing. To fix this issue, consider running serve -s courtesy of the serve package.

Develop Uniswap Locally

Install Dependencies

yarn

Configure Environment

Rename .env.local.example to .env.local and fill in the appropriate variables.

Run

yarn start

To run on a testnet, make a copy of .env.local.example named .env.local, change REACT_APP_NETWORK_ID to "{yourNetworkId}", and change REACT_APP_NETWORK_URL to e.g. "https://{yourNetwork}.infura.io/v3/{yourKey}".

If deploying with Github Pages, be aware that there's some tricky client-side routing behavior with create-react-app.

Contributions

Please open all pull requests against the beta branch. CI checks will run against all PRs. To ensure that your changes will pass, run yarn check:all before pushing. If this command fails, you can try to automatically fix problems with yarn fix:all, or do it manually.