An open source fork of Uniswap to Swap in Gnosis Protocol v2 -- a protocol for decentralized exchange of Ethereum tokens.
-
๐ฎOfficial Website๐ฎ: https://cowswap.exchange/
- ENS Website (alternative): https://cowswap.eth.link, or https://cowswap.eth/ if you have MetaMask or an ENS compatible browser.
- The website can also be run locally, or from IPFS. Every release will have an IPFS hash associated, available in the Releases section.
-
Twitter: @gnosisPM
-
Reddit: /r/gnosisPM
-
Discord: https://chat.cowswap.exchange
Please see the:
yarn
yarn start
yarn test
Normally:
yarn build
yarn integration-test
If we want to use the Cypress UI:
yarn build
yarn serve
yarn cypress
If we want to use the Cypress UI, and live reloading on the web app:
yarn start:default
yarn cypress
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}"
. This will be your default network id - Define your own list of supported networks:
REACT_APP_SUPPORTED_CHAIN_IDS="1,4,100"
REACT_APP_NETWORK_URL_1=https://mainnet.infura.io/v3/{YOUR_INFURA_KEY}
REACT_APP_NETWORK_URL_4=https://rinkeby.infura.io/v3/{YOUR_INFURA_KEY}
REACT_APP_NETWORK_URL_100=https://rpc.xdaichain.com
- Change
REACT_APP_ID
Ask for your id at chat.gnosis.io - Change
REACT_APP_API_STAGING_URL_{XDAI|RINKEBY|MAINNET}
to e.g."http://localhost:8080/api"
when running the services locally.
For production:
- Get your own
App Id
in <chat.cowswap.exchange>, and set it inREACT_APP_ID
.