diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-01-24 08:56:16 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-01-24 09:42:35 +0800 |
commit | 3998b47d848d4b74d6db45d375420fe2cfcf1926 (patch) | |
tree | bf465c54ef4ff72e3e8853fc6c2c895eac347734 /packages/testnet-faucets/src/ts/rpc_urls.ts | |
parent | d965fdb11dfba5631c1f98ad3e309876c199999a (diff) | |
download | dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar.gz dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar.bz2 dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar.lz dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar.xz dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.tar.zst dexon-0x-contracts-3998b47d848d4b74d6db45d375420fe2cfcf1926.zip |
Implement testnet faucets for any testnet available via infura
Diffstat (limited to 'packages/testnet-faucets/src/ts/rpc_urls.ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/rpc_urls.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/testnet-faucets/src/ts/rpc_urls.ts b/packages/testnet-faucets/src/ts/rpc_urls.ts new file mode 100644 index 000000000..25a3b938f --- /dev/null +++ b/packages/testnet-faucets/src/ts/rpc_urls.ts @@ -0,0 +1,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; |