aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src/ts/rpc_urls.ts
blob: c57e85eac6b105fdd78b683c43c313d8f34e7d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { configs } from './configs';

const productionRpcUrls = {
    2: `https://ropsten.infura.io/${configs.INFURA_API_KEY}`,
    3: `https://rinkeby.infura.io/${configs.INFURA_API_KEY}`,
    42: `https://kovan.infura.io/${configs.INFURA_API_KEY}`,
};

const developmentRpcUrls = {
    50: 'http://127.0.0.1:8545',
};

export const rpcUrls = configs.ENVIRONMENT === 'development' ? developmentRpcUrls : productionRpcUrls;