2018-05-29 14:51:42 +00:00
|
|
|
import { RawNodeConfig } from 'types/node';
|
|
|
|
import { StaticNetworkIds } from 'types/network';
|
|
|
|
|
|
|
|
export const makeNodeName = (network: string, name: string) => {
|
|
|
|
return `${network.toLowerCase()}_${name}`;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = {
|
|
|
|
ETH: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETH', 'mycrypto'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'MyCrypto',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://api.mycryptoapi.com/eth'
|
2018-05-29 14:51:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETH', 'ethscan'),
|
|
|
|
type: 'etherscan',
|
|
|
|
service: 'Etherscan',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://api.etherscan.io/api'
|
2018-05-29 14:51:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETH', 'infura'),
|
|
|
|
type: 'infura',
|
|
|
|
service: 'Infura',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://mainnet.infura.io/mycrypto'
|
2018-05-29 14:51:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETH', 'blockscale'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'Blockscale',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://api.dev.blockscale.net/dev/parity'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
Ropsten: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('Ropsten', 'infura'),
|
|
|
|
type: 'infura',
|
|
|
|
service: 'Infura',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://ropsten.infura.io/mycrypto'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
Kovan: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('Kovan', 'ethscan'),
|
|
|
|
type: 'etherscan',
|
|
|
|
service: 'Etherscan',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://kovan.etherscan.io/api'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
Rinkeby: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('Rinkeby', 'infura'),
|
|
|
|
type: 'infura',
|
|
|
|
service: 'Infura',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://rinkeby.infura.io/mycrypto'
|
2018-05-29 14:51:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('Rinkeby', 'ethscan'),
|
|
|
|
type: 'etherscan',
|
|
|
|
service: 'Etherscan',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://rinkeby.etherscan.io/api'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
ETC: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETC', 'epool'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'Epool.io',
|
2018-05-31 03:56:08 +00:00
|
|
|
url: 'https://cry.epool.io'
|
2018-05-29 14:51:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETC', 'commonwealth'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'Ethereum Commonwealth',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://etc-geth.0xinfra.com/'
|
2018-05-31 15:45:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETC', 'chainkorea'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'Chainkorea',
|
|
|
|
url: 'https://node.classicexplorer.org/'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
UBQ: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('UBQ', 'ubiqscan'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'ubiqscan.io',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://pyrus2.ubiqscan.io'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
EXP: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('EXP', 'tech'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'expanse.tech',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://node.expanse.tech/'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
2018-06-15 23:28:42 +00:00
|
|
|
|
2018-05-29 14:51:42 +00:00
|
|
|
POA: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('POA', 'core'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'poa.network',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://core.poa.network'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
TOMO: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('TOMO', 'tomocoin'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'tomocoin.io',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://core.tomocoin.io'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
ELLA: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('ELLA', 'ellaism'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'ellaism.org',
|
2018-05-30 23:57:12 +00:00
|
|
|
url: 'https://jsonrpc.ellaism.org'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
MUSIC: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('MUSIC', 'music'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'musicoin.tw',
|
|
|
|
url: 'https://mewapi.musicoin.tw'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
ETSC: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('ETSC', 'etsc'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'ethereumsocial.kr',
|
|
|
|
url: 'https://node.ethereumsocial.kr'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
EGEM: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('EGEM', 'egem'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'egem.io',
|
|
|
|
url: 'https://jsonrpc.egem.io/custom'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
CLO: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('CLO', 'clo'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: '0xinfra.com',
|
|
|
|
url: 'https://clo-geth.0xinfra.com/'
|
2018-05-29 14:51:42 +00:00
|
|
|
}
|
2018-06-13 20:39:50 +00:00
|
|
|
],
|
|
|
|
|
2018-06-15 23:28:42 +00:00
|
|
|
RSK_TESTNET: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('RSK_TESTNET', 'rsk_testnet'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'mycrypto.testnet.rsk.co',
|
|
|
|
url: 'https://mycrypto.testnet.rsk.co/'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
2018-06-13 20:39:50 +00:00
|
|
|
GO: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('GO', 'go'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'gochain.io',
|
|
|
|
url: 'https://rpc.gochain.io/'
|
|
|
|
}
|
2018-06-20 00:41:03 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
EOSC: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('EOSC', 'eosc'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'eos-classic.io',
|
|
|
|
url: 'https://node.eos-classic.io/'
|
|
|
|
}
|
2018-06-25 17:59:39 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
ESN: [
|
|
|
|
{
|
|
|
|
name: makeNodeName('ESN', 'esn'),
|
|
|
|
type: 'rpc',
|
|
|
|
service: 'ethersocial.org',
|
|
|
|
url: 'https://api.esn.gonspool.com'
|
|
|
|
}
|
2018-05-29 14:51:42 +00:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NODE_CONFIGS;
|