|
1 | 1 | # CipherSwap |
2 | 2 |
|
| 3 | +A decentralized exchange built on [TEN Protocol](https://ten.xyz) - the encrypted Ethereum L2. |
| 4 | + |
3 | 5 | ## Development |
4 | 6 |
|
5 | 7 | ### Install Dependencies |
|
8 | 10 | yarn |
9 | 11 | ``` |
10 | 12 |
|
| 13 | +### Configure Environment |
| 14 | + |
| 15 | +1. Copy `.env` to `.env.local` |
| 16 | +2. Get a TEN Gateway token from [https://testnet.ten.xyz](https://testnet.ten.xyz) |
| 17 | +3. Update `.env.local`: |
| 18 | + |
| 19 | +```bash |
| 20 | +REACT_APP_CHAIN_ID="8443" |
| 21 | +REACT_APP_NETWORK_URL="https://testnet.ten.xyz/v1/?token=YOUR_TEN_GATEWAY_TOKEN" |
| 22 | +``` |
| 23 | + |
11 | 24 | ### Run |
12 | 25 |
|
13 | 26 | ```bash |
14 | 27 | yarn start |
15 | 28 | ``` |
16 | 29 |
|
17 | | -### Configuring the environment (optional) |
| 30 | +## Deployed Contracts (TEN Testnet) |
18 | 31 |
|
19 | | -To have the interface default to a different network when a wallet is not connected: |
| 32 | +| Contract | Address | |
| 33 | +|----------|---------| |
| 34 | +| Factory | `0x38b8773E1B048fbBb4f4620b2861db8703aBE7b9` | |
| 35 | +| Router | `0x9cF6C659F173916f4928420E72DE53E667DbDf73` | |
| 36 | +| Multicall | `0x29A8E964a4e220e3438e39dDDd01B4A3305A7c54` | |
| 37 | +| ALPHA Token | `0x910c2a26649063a37fc507EC827fF7f6784133a1` | |
| 38 | +| BETA Token | `0xD3C60e71391b8F481222546c80F046a73AA4611f` | |
20 | 39 |
|
21 | | -1. Make a copy of `.env` named `.env.local` |
22 | | -2. Change `REACT_APP_NETWORK_ID` to `"{YOUR_NETWORK_ID}"` |
23 | | -3. Change `REACT_APP_NETWORK_URL` to e.g. `"https://{YOUR_NETWORK_ID}.infura.io/v3/{YOUR_INFURA_KEY}"` |
| 40 | +## Network Details |
24 | 41 |
|
25 | | -Note that the interface only works on testnets where both |
26 | | -[Uniswap V2](https://uniswap.org/docs/v2/smart-contracts/factory/) and |
27 | | -[multicall](https://github.com/makerdao/multicall) are deployed. |
28 | | -The interface will not work on other networks. |
| 42 | +- **Network**: TEN Testnet |
| 43 | +- **Chain ID**: 8443 |
| 44 | +- **RPC**: `https://testnet.ten.xyz/v1/?token=YOUR_TOKEN` |
| 45 | +- **Block Explorer**: [https://testnet.tenscan.io](https://testnet.tenscan.io) |
0 commit comments