-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnext.config.js
executable file
·143 lines (130 loc) · 5.84 KB
/
next.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const withPWA = require('next-pwa')({
dest: 'public'
});
const {PHASE_EXPORT} = require('next/constants');
module.exports = (phase) => withPWA({
assetPrefix: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT ? './' : '/',
images: {
unoptimized: process.env.IPFS_BUILD === 'true' || phase === PHASE_EXPORT, //Exporting image does not support optimization
domains: [
'rawcdn.githack.com',
'raw.githubusercontent.com'
]
},
env: {
CG_IDS: ['ethereum', 'keep3rv1'],
/* 📰 - Keep3r *********************************************************
** Config over the RPC
**********************************************************************/
WEB_SOCKET_URL: {
1: process.env.WS_URL_MAINNET,
137: process.env.WS_URL_POLYGON,
250: process.env.WS_URL_FANTOM,
42161: process.env.WS_URL_ARBITRUM
},
JSON_RPC_URL: {
1: 'https://1rpc.io/eth' || process.env.RPC_URL_MAINNET,
137: process.env.RPC_URL_POLYGON,
250: process.env.RPC_URL_FANTOM,
42161: process.env.RPC_URL_ARBITRUM,
11155111: process.env.RPC_URL_SEPOLIA,
11155420: process.env.RPC_URL_OPTIMISM_SEPOLIA
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY,
/* 📰 - Keep3r *********************************************************
** Keep3r specific stuffs
**********************************************************************/
BACKEND_URI: 'https://api.keep3r.network', //Only used for stats
CHAINS: {
1: {
THE_KEEP3R_GOVERNANCE: '0x0D5Dc686d0a2ABBfDaFDFb4D0533E886517d4E83',
KEEP3R_V1_ADDR: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',
KEEP3R_V2_ADDR: '0xeb02addcfd8b773a5ffa6b9d1fe99c566f8c44cc',
KP3R_TOKEN_ADDR: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',
WETH_TOKEN_ADDR: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
KLP_KP3R_WETH_ADDR: '0x3f6740b5898c5D3650ec6eAce9a649Ac791e44D7',
UNI_KP3R_WETH_ADDR: '0x11B7a6bc0259ed6Cf9DB8F499988F9eCc7167bf5',
//Contextual
CVX_TOKEN_ADDR: '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
LIDO_TOKEN_ADDR: '0x5a98fcbea516cf06857215779fd812ca3bef1b32',
//Debt
IB_AMM_ADDR: '0x0a0B06322825cb979678C722BA9932E0e4B5fd90',
IB_AMM_2_ADDR: '0x8338Aa899fB3168598D871Edc1FE2B4F0Ca6BBEF',
CY_AUD_TOKEN_ADDR: '0x86BBD9ac8B9B44C95FFc6BAAe58E25033B7548AA',
CY_CHF_TOKEN_ADDR: '0x1b3E95E8ECF7A7caB6c4De1b344F94865aBD12d5',
CY_GBP_TOKEN_ADDR: '0xecaB2C76f1A8359A06fAB5fA0CEea51280A97eCF',
CY_JPY_TOKEN_ADDR: '0x215F34af6557A6598DbdA9aa11cc556F5AE264B1',
CY_EUR_TOKEN_ADDR: '0x00e5c0774A5F065c285068170b20393925C84BF3',
CY_KRW_TOKEN_ADDR: '0x3c9f5385c288cE438Ed55620938A4B967c080101',
CY_ZAR_TOKEN_ADDR: '0x672473908587b10e65DAB177Dbaeadcbb30BF40B',
//Offchain
EXPLORER: 'etherscan.io',
BACKEND_URI: 'https://api.keep3r.network'
},
10: {
THE_KEEP3R_GOVERNANCE: '0x7d6daDb31dBeBc68c8A0b2cCfE5C1f26F24bD41d',
KEEP3R_V1_ADDR: '0xca87472DBfB041c2e5a2672d319eA6184Ad9755e',
KEEP3R_V2_ADDR: '0x745a50320B6eB8FF281f1664Fc6713991661B129',
KP3R_TOKEN_ADDR: '0xca87472DBfB041c2e5a2672d319eA6184Ad9755e',
KLP_KP3R_WETH_ADDR: '0xf232D1Afbed9Df3880143d4FAD095f3698c4d1c6',
UNI_KP3R_WETH_ADDR: '0x4Ab2c969C64302e5d931e5cEf4755392DC005604',
//Offchain
EXPLORER: 'optimistic.etherscan.io',
BACKEND_URI: 'https://api.keep3r.network'
},
137: {
THE_KEEP3R_GOVERNANCE: '0x9A040a31bc38919D50FD740973dBB6F8fdee1426',
KEEP3R_V1_ADDR: '0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08',
KEEP3R_V2_ADDR: '0x745a50320b6eb8ff281f1664fc6713991661b129',
KP3R_TOKEN_ADDR: '0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08',
WETH_TOKEN_ADDR: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
KLP_KP3R_WETH_ADDR: '0x7cf93c434260519537184631a347ee8ad0bc68cb',
UNI_KP3R_WETH_ADDR: '0x6a060bf6579318c15138160ee1f1d225fcc9d409',
//Offchain
EXPLORER: 'polygonscan.com',
BACKEND_URI: 'https://api.keep3r.network'
},
11155111: {
THE_KEEP3R_GOVERNANCE: '0x8d20800204Fb1A2Aafcab66E89CD0b10bfa93553',
KEEP3R_V1_ADDR: '0x80B4327021946fF962d570c808B6aaC47224AeF1',
KEEP3R_V2_ADDR: '0xf171B63F97018ADff9Bb15F065c6B6CDA378d320',
KP3R_TOKEN_ADDR: '0x80B4327021946fF962d570c808B6aaC47224AeF1',
WETH_TOKEN_ADDR: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14',
KLP_KP3R_WETH_ADDR: '0xf10fF1eec2DE6549df9D371B12e504E1c3810E82',
UNI_KP3R_WETH_ADDR: '0xb39Dea2246Ac99575eebc86A2590BADF046eda91',
//Offchain
EXPLORER: 'sepolia.etherscan.io',
BACKEND_URI: 'https://api.keep3r.network'
},
11155420: {
THE_KEEP3R_GOVERNANCE: '0x8d20800204Fb1A2Aafcab66E89CD0b10bfa93553',
KEEP3R_V1_ADDR: '0x12DA5E324EFCBDe7BB4797e1dB2B3477FC4C048f',
KEEP3R_V2_ADDR: '0xC3377b30feD174e65778e7E1DaFBb7686082B428',
KP3R_TOKEN_ADDR: '0x12DA5E324EFCBDe7BB4797e1dB2B3477FC4C048f',
KLP_KP3R_WETH_ADDR: '0x15059B1659Ca78FE48b7fbc96425b8F4fA359a36',
UNI_KP3R_WETH_ADDR: '0x8BFdD4689dC4669bd818c0551a510301f091103C',
WETH_TOKEN_ADDR: '0x4200000000000000000000000000000000000006',
//Offchain
EXPLORER: 'sepolia-optimism.etherscan.io',
BACKEND_URI: 'https://api.keep3r.network'
},
1337: {
THE_KEEP3R_GOVERNANCE: '0x0D5Dc686d0a2ABBfDaFDFb4D0533E886517d4E83',
KEEP3R_V1_ADDR: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',
KEEP3R_V2_ADDR: '0xeb02addcfd8b773a5ffa6b9d1fe99c566f8c44cc',
KP3R_TOKEN_ADDR: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',
WETH_TOKEN_ADDR: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
KLP_KP3R_WETH_ADDR: '0x3f6740b5898c5D3650ec6eAce9a649Ac791e44D7',
UNI_KP3R_WETH_ADDR: '0x11B7a6bc0259ed6Cf9DB8F499988F9eCc7167bf5',
//Contextual
CVX_TOKEN_ADDR: '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
LIDO_TOKEN_ADDR: '0x5a98fcbea516cf06857215779fd812ca3bef1b32',
//Offchain
EXPLORER: 'etherscan.io',
BACKEND_URI: 'https://api.keep3r.network'
}
}
}
});