diff --git a/.env.example b/.env.example index 31102bd9..0514eb4a 100644 --- a/.env.example +++ b/.env.example @@ -10,8 +10,9 @@ REACT_APP_SUBGRAPH_URL={subgraph url for network} # Backup node url REACT_APP_RPC_URL_1="https://mainnet.infura.io/v3/{apiKey}" +REACT_APP_RPC_URL_3="https://ropsten.infura.io/v3/{apiKey}" REACT_APP_RPC_URL_42="https://kovan.infura.io/v3/{apiKey}" REACT_APP_RPC_URL_LOCAL="http://localhost:8545" -# Supported Network ID (e.g. mainnet = 1, rinkeby = 4, kovan = 42) +# Supported Network ID (e.g. mainnet = 1, ropsten = 3, rinkeby = 4, kovan = 42) REACT_APP_SUPPORTED_NETWORK_ID="42" diff --git a/README.md b/README.md index bf008566..c9667333 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ ``` # Backup node url REACT_APP_RPC_URL_1="https://mainnet.infura.io/v3/{apiKey}" + REACT_APP_RPC_URL_3="https://ropsten.infura.io/v3/{apiKey}" REACT_APP_RPC_URL_42="https://kovan.infura.io/v3/{apiKey}" REACT_APP_RPC_URL_LOCAL="http://localhost:8545" ``` diff --git a/src/deployed.json b/src/deployed.json index f79b7829..e7419251 100644 --- a/src/deployed.json +++ b/src/deployed.json @@ -1,4 +1,27 @@ { + "ropsten": { + "chainId": 3, + "bFactory": "0xeb12Ce3D5C1B34baa3e3dF03D61fCBf4A3E45104", + "proxy": "0x4345a1065079d2D2B97BA069fd28A9E5b8D29456", + "weth": "0xc778417E063141139Fce010982780140Aa0cD5Ab", + "multicall": "0x835E81CB4a45b6338B43A7a66ba1C78900A76Ef3", + "tokens": [ + { + "symbol": "ETH", + "address": "ether", + "decimals": 18, + "iconAddress": "ether", + "precision": 4 + }, + { + "symbol": "DAI", + "address": "0xDc497593C97cf51aC80F1338bD20A7572B824646", + "decimals": 18, + "iconAddress": "0x6b175474e89094c44da98b954eedeac495271d0f", + "precision": 2 + } + ] + }, "kovan": { "chainId": 42, "bFactory": "0x8f7F78080219d4066A8036ccD30D588B416a40DB", diff --git a/src/provider/connectors.ts b/src/provider/connectors.ts index 78a204c1..568241c8 100644 --- a/src/provider/connectors.ts +++ b/src/provider/connectors.ts @@ -35,6 +35,7 @@ export const getSupportedChainName = () => { export const chainNameById = { '1': 'mainnet', + '3': 'ropsten', '42': 'kovan', }; @@ -44,11 +45,13 @@ export const isChainIdSupported = (chainId: number): boolean => { const RPC_URLS: { [chainId: number]: string } = { 1: process.env.REACT_APP_RPC_URL_1 as string, + 3: process.env.REACT_APP_RPC_URL_3 as string, 42: process.env.REACT_APP_RPC_URL_42 as string, }; export const SUBGRAPH_URLS: { [chainId: number]: string } = { 1: process.env.REACT_APP_SUBGRAPH_URL_1 as string, + 3: process.env.REACT_APP_SUBGRAPH_URL_3 as string, 42: process.env.REACT_APP_SUBGRAPH_URL_42 as string, };