forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv-config.js
56 lines (56 loc) · 2.24 KB
/
env-config.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export default {
'http://localhost': {
API_SERVER: 'http://localhost:3001',
ETH_NETWORK: 'localhost',
WS_API_ADDR: 'ws://localhost:3031',
HTTP_RPC_API_ADDR: 'http://localhost:3030'
},
'https://stage.zksync.dev': {
API_SERVER: 'https://stage-api.zksync.dev',
ETH_NETWORK: 'rinkeby',
WS_API_ADDR: 'wss://stage-api.zksync.dev/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://stage-api.zksync.dev/jsrpc'
},
'https://rinkeby.zkscan.io': {
API_SERVER: 'https://rinkeby-api.zksync.io',
ETH_NETWORK: 'rinkeby',
WS_API_ADDR: 'wss://rinkeby-api.zksync.io/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://rinkeby-api.zksync.io/jsrpc'
},
'https://ropsten.zkscan.io': {
API_SERVER: 'https://ropsten-api.zksync.io',
ETH_NETWORK: 'ropsten',
WS_API_ADDR: 'wss://ropsten-api.zksync.io/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://ropsten-api.zksync.io/jsrpc'
},
'https://rinkeby-beta.zkscan.io': {
API_SERVER: 'https://rinkeby-beta-api.zksync.io',
ETH_NETWORK: 'rinkeby',
WS_API_ADDR: 'wss://rinkeby-beta-api.zksync.io/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://rinkeby-beta-api.zksync.io/jsrpc'
},
'https://ropsten-beta.zkscan.io': {
API_SERVER: 'https://ropsten-beta-api.zksync.io',
ETH_NETWORK: 'ropsten',
WS_API_ADDR: 'wss://ropsten-beta-api.zksync.io/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://ropsten-beta-api.zksync.io/jsrpc'
},
'https://zkscan.io': {
API_SERVER: 'https://api.zksync.io',
ETH_NETWORK: 'mainnet',
WS_API_ADDR: 'wss://api.zksync.io/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://api.zksync.io/jsrpc'
},
'https://dev.zksync.dev': {
API_SERVER: 'https://dev-api.zksync.dev',
ETH_NETWORK: 'rinkeby',
WS_API_ADDR: 'wss://dev-api.zksync.dev/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://dev-api.zksync.dev/jsrpc'
},
'https://breaking.zksync.dev': {
API_SERVER: 'https://breaking-api.zksync.dev',
ETH_NETWORK: 'rinkeby',
WS_API_ADDR: 'wss://breaking-api.zksync.dev/jsrpc-ws',
HTTP_RPC_API_ADDR: 'https://breaking-api.zksync.dev/jsrpc'
}
}[`${location.protocol}//${location.hostname}`];