Uniswap without TORN censoring
Go to file
2020-05-20 23:11:49 -05:00
.github Add integration test, change ipfs deploy into daily release workflow 2020-05-20 22:31:05 -05:00
cypress More tests for add/remove liquidity and fix the automatic loading of tokens in those pages 2020-05-20 23:11:49 -05:00
public Fix i18n loading, manifest.json loading 2020-05-20 18:39:16 -05:00
src More tests for add/remove liquidity and fix the automatic loading of tokens in those pages 2020-05-20 23:11:49 -05:00
.env - Remove the environment variables from the netlify.toml in favor of create-react-app env configuration 2020-05-20 12:12:06 -05:00
.env.production - Remove the environment variables from the netlify.toml in favor of create-react-app env configuration 2020-05-20 12:12:06 -05:00
.eslintrc.json Done with linter errors! 2020-05-08 18:32:36 -04:00
.gitignore Introduce redux for one of the state stores (#742) 2020-05-11 18:23:01 -04:00
.prettierrc set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
cypress.json Connect integration tests (#757) 2020-05-13 08:29:54 -04:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
netlify.toml - Remove the environment variables from the netlify.toml in favor of create-react-app env configuration 2020-05-20 12:12:06 -05:00
package.json Add integration test, change ipfs deploy into daily release workflow 2020-05-20 22:31:05 -05:00
README.md Balances rewrite (#761) 2020-05-13 16:36:45 -04:00
tsconfig.json Turn linting errors off so CI passes 2020-05-08 15:57:51 -04:00
tsconfig.strict.json Strict typescript (#792) 2020-05-18 18:23:58 -05:00
yarn.lock Refactor ExchangePage into Swap and Send pages (#774) 2020-05-16 16:55:22 -05:00

Uniswap Frontend

Netlify Status Tests Styled With Prettier

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 (optional)

Copy .env to .env.local and change the appropriate variables.

Run

yarn start

To have the frontend default to a different network, make a copy of .env 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}".

Note that the front end only works properly on testnets where both Uniswap V2 and eth-scan are deployed. The frontend is not expected to work with local testnets.

Deployment

As a single page application, all routes that do not match an asset must be redirect to /index.html. See create-react-app documentation..

Contributions

Please open all pull requests against the v2 branch. CI checks will run against all PRs.