-
Notifications
You must be signed in to change notification settings - Fork 3
/
configs.ts
37 lines (34 loc) · 971 Bytes
/
configs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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', 'localhost'),
type: 'rpc',
service: 'Localhost',
url: 'http://localhost:22000'
},
{
name: makeNodeName('ETH', 'transactionexc1'),
type: 'rpc',
service: 'Europe',
url: 'https://tx-executor-us-east.eximchain.com '
},
{
name: makeNodeName('ETH', 'transactionexc2'),
type: 'rpc',
service: 'Korea',
url: 'https://tx-executor-us-west.eximchain.com'
},
{
name: makeNodeName('ETH', 'transactionexc3'),
type: 'rpc',
service: 'Singapore',
url: 'https://tx-executor-singapore.eximchain.com'
}
]
};
export default NODE_CONFIGS;