Uniswap without TORN censoring
Go to file
2020-05-08 11:24:47 -04:00
.github add coingecko option 2020-02-12 10:46:08 -05:00
public Design tweaks (#717) 2020-05-06 15:34:06 -04:00
src Type safety for styled components (#733) 2020-05-08 11:24:47 -04:00
.env.local.example remove unused functions, typescript (#725) 2020-05-07 14:36:26 -04: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 remove unused functions, typescript (#725) 2020-05-07 14:36:26 -04:00
package.json Type safety for styled components (#733) 2020-05-08 11:24:47 -04:00
README.md remove unused functions, typescript (#725) 2020-05-07 14:36:26 -04: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 Type safety for styled components (#733) 2020-05-08 11:24:47 -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.