An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.
To access the Uniswap Interface, use an IPFS gateway link from the latest release, or visit app.uniswap.org.
Please see the @uniswap/default-token-list repository.
yarn
yarn start
- Install gh-pages:
yarn add gh-pages
- Generate Frontend Code:
yarn build
- Modify Configuration File: Update the homepage field in package.json to point to your GitHub Pages address:
"homepage": "https://adwindone.github.io/interface"
- Add Deploy Script: Add a deploy script in package.json to deploy the generated static files to GitHub Pages:
"scripts": {
"deploy": "gh-pages -d build"
}
- Publish the Project to GitHub:
git add .
git commit -m "Publishing to GitHub Pages with Markdown and English language"
git push
- Deploy the Frontend Interface:
yarn deploy
After completing these steps, your page should be in Markdown style and the language should be changed to English. You can visit the link https://adwindone.github.io/interface to view the latest version of your page.
To have the interface default to a different network when a wallet is not connected:
- Make a copy of
.env
named.env.local
- Change
REACT_APP_NETWORK_ID
to"{YOUR_NETWORK_ID}"
- Change
REACT_APP_NETWORK_URL
to e.g."https://{YOUR_NETWORK_ID}.infura.io/v3/{YOUR_INFURA_KEY}"
Note that the interface only works on testnets where both Uniswap V2 and multicall are deployed. The interface will not work on other networks.
Please open all pull requests against the main
branch.
CI checks will run against all PRs.
The Uniswap Interface supports swapping against, and migrating or removing liquidity from Uniswap V1. However, if you would like to use Uniswap V1, the Uniswap V1 interface for mainnet and testnets is accessible via IPFS gateways linked from the v1.0.0 release.