-
Notifications
You must be signed in to change notification settings - Fork 168
/
env.js
93 lines (91 loc) · 3.66 KB
/
env.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { isL2DataDev } from './src/util'
import { CHAIN_ID } from './src/config'
export default {
// l2BaseUrl: isProd() ? 'https://l2api.orbiter.finance' : 'http://datastation.joeyzhou.xyz',
l2BaseUrl: isL2DataDev()
? 'http://datastation.joeyzhou.xyz'
: 'https://l2api.orbiter.finance',
metaMaskNetworkId: {
[CHAIN_ID.starknet]: 1,
[CHAIN_ID.dydx]: 1,
[CHAIN_ID.loopring]: 1,
[CHAIN_ID.zkspace]: 1,
[CHAIN_ID.imx]: 1,
[CHAIN_ID.zksync]: 1,
[CHAIN_ID.solana]: 1,
[CHAIN_ID.starknet_test]: 5,
[CHAIN_ID.starknet_sepolia]: 5,
[CHAIN_ID.dydx_test]: 5,
[CHAIN_ID.loopring_test]: 5,
[CHAIN_ID.zkspace_test]: 5,
[CHAIN_ID.imx_test]: 5,
[CHAIN_ID.zksync_test]: 5,
[CHAIN_ID.solana_test]: 5,
},
txExploreUrl: {
[CHAIN_ID.zksync]: 'https://zkscan.io/explorer/transactions/',
[CHAIN_ID.zksync_test]: 'https://goerli.zkscan.io/explorer/transactions/',
[CHAIN_ID.dydx]: 'https://trade.dydx.exchange/',
[CHAIN_ID.dydx_test]: 'https://trade.stage.dydx.exchange/',
[CHAIN_ID.imx_test]: 'https://api.sandbox.x.immutable.com/v1/transfers/',
[CHAIN_ID.loopring]: 'https://explorer.loopring.io/tx/',
[CHAIN_ID.loopring_test]:
'https://loopring.io/#/l2assets/history/Transactions/',
[CHAIN_ID.zkspace]: 'https://zkspace.info/transaction/',
[CHAIN_ID.zkspace_test]: 'https://v3-rinkeby.zkswap.info/transaction/',
[CHAIN_ID.solana]: 'https://solscan.io/tx/',
[CHAIN_ID.solana_test]: 'https://solscan.io/tx/',
[CHAIN_ID.tron_nile_test]: 'https://nile.tronscan.org/#/transaction/',
[CHAIN_ID.tron]: 'https://tronscan.org/#/transaction/',
[CHAIN_ID.sui_test]: 'https://testnet.suivision.xyz/txblock/',
[CHAIN_ID.sui]: 'https://suivision.xyz/txblock/',
},
accountExploreUrl: {
[CHAIN_ID.zksync]: 'https://zkscan.io/explorer/accounts/',
[CHAIN_ID.zksync_test]: 'https://goerli.zkscan.io/explorer/accounts/',
[CHAIN_ID.starknet]: 'https://voyager.online/contract/',
[CHAIN_ID.starknet_test]: 'https://goerli.voyager.online/contract/',
[CHAIN_ID.starknet_sepolia]: 'https://sepolia.voyager.online/contract/',
[CHAIN_ID.imx]: 'https://market.immutable.com/inventory/',
[CHAIN_ID.imx_test]: 'https://api.sandbox.x.immutable.com/v1/transfers/',
[CHAIN_ID.loopring]: 'https://loopring.io/#/l2assets/history/Transactions/',
[CHAIN_ID.loopring_test]:
'https://loopring.io/#/l2assets/history/Transactions/',
[CHAIN_ID.dydx]: 'https://trade.dydx.exchange/',
[CHAIN_ID.dydx_test]: 'https://trade.stage.dydx.exchange/',
[CHAIN_ID.zkspace]: 'https://zkspace.info/account/',
[CHAIN_ID.zkspace_test]: 'https://v3-rinkeby.zkswap.info/account/',
[CHAIN_ID.solana]: 'https://solscan.io/account/',
[CHAIN_ID.solana_test]: 'https://solscan.io/account/',
[CHAIN_ID.tron_nile_test]: 'https://nile.tronscan.org/#/address/',
[CHAIN_ID.tron]: 'https://tronscan.org/#/address/',
[CHAIN_ID.sui_test]: 'https://testnet.suivision.xyz/account/',
[CHAIN_ID.sui]: 'https://suivision.xyz/account/',
},
gasPriceMap: {
[CHAIN_ID.mainnet]: 100,
[CHAIN_ID.ar]: 1.9,
[CHAIN_ID.zksync]: 100,
[CHAIN_ID.starknet]: 100,
[CHAIN_ID.po]: 60,
[CHAIN_ID.op]: 0.001,
[CHAIN_ID.imx]: 1.7,
[CHAIN_ID.loopring]: 100,
},
gasLimitMap: {
[CHAIN_ID.mainnet]: 35000,
[CHAIN_ID.ar]: 810000,
[CHAIN_ID.zksync]: 100,
[CHAIN_ID.starknet]: 35000,
[CHAIN_ID.po]: 1500,
[CHAIN_ID.op]: 21000,
[CHAIN_ID.imx]: 51000,
[CHAIN_ID.loopring]: 75000,
[CHAIN_ID.dydx]: 100000,
[CHAIN_ID.zkspace]: 646496,
[CHAIN_ID.zksync2]: 10560,
[CHAIN_ID.bsc]: 150000,
[CHAIN_ID.nova]: 150000,
[CHAIN_ID.pozkevm]: 300000,
},
}