Uniswap without TORN censoring
Go to file
2020-05-26 20:06:18 -04:00
.github Adds warning about ERC-777 tokens and the like. (#686) 2020-04-20 10:18:07 -04:00
public Update title 2020-05-18 10:27:52 -04:00
src add OPQ to broken tokens list 2020-05-18 17:26:00 -04:00
.env move environment variables to the .env files 2020-05-26 20:06:18 -04:00
.env.production move environment variables to the .env files 2020-05-26 20:06:18 -04:00
.gitignore move environment variables to the .env files 2020-05-26 20:06:18 -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 move environment variables to the .env files 2020-05-26 20:06:18 -04:00
package.json Integrate Torus (#554) 2020-04-08 13:56:35 -04:00
README.md Update local env setup documentation (#706) 2020-05-04 20:32:07 -04:00
tsconfig.json Balances (#650) 2020-03-03 11:07:13 -05:00
yarn.lock Integrate Torus (#554) 2020-04-08 13:56:35 -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_CHAIN_ID to "{yourChainId}", 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.