Uniswap without TORN censoring
Go to file
2020-03-04 13:48:43 -05:00
.github add coingecko option 2020-02-12 10:46:08 -05:00
public stable version with updated balances, add liquidity using SDK, pair menu search 2020-02-26 12:00:59 -05:00
src stable state for swaps, add, and remove eth (no remove token token yet) 2020-03-04 13:48:43 -05: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 stable state for swaps, add, and remove eth (no remove token token yet) 2020-03-04 13:48:43 -05: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 stable state for swaps, add, and remove eth (no remove token token yet) 2020-03-04 13:48:43 -05: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.