@tokemak/config 0.0.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,95 @@
1
+ import { Address } from 'viem';
2
+
3
+ declare const SupportedNetworks: Record<string, number>;
4
+ declare const SUPPORTED_DEV_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
5
+ declare const SUPPORTED_PROD_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
6
+ declare const SUPPORTED_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
7
+
8
+ type SupportedNetworkNames = keyof typeof SupportedNetworks;
9
+ type SupportedChainIds = (typeof SupportedNetworks)[number];
10
+ type SupportedNetwork = {
11
+ name: SupportedNetworkNames;
12
+ chainId: SupportedChainIds;
13
+ };
14
+ type SupportedNetworkNamesLowercased = Lowercase<SupportedNetworkNames>;
15
+
16
+ interface CoreNetworkConfig {
17
+ name: SupportedNetwork["name"];
18
+ shortName: string;
19
+ id: SupportedNetwork["chainId"];
20
+ systemRegistry: Address;
21
+ weth: Address;
22
+ toke: Address;
23
+ auto: Address;
24
+ lens: Address;
25
+ stoke: Address;
26
+ stokeVote: Address;
27
+ stokeExtend: Address;
28
+ testnet?: boolean;
29
+ explorerUrl: string;
30
+ subgraphEndpoint: string;
31
+ rootPriceOracle: Address;
32
+ merklDistributor?: Address;
33
+ }
34
+ interface MainnetNetworkConfig extends CoreNetworkConfig {
35
+ autoEthGuardedRewards: Address;
36
+ accTokeV1: Address;
37
+ sAuto: Address;
38
+ tokeToAutoMigration: Address;
39
+ missedTokeRewards: Address;
40
+ accTokeV1Rewards: Address;
41
+ accTokeV1RewardsHash: Address;
42
+ autoETHRewardsHash: Address;
43
+ stokeRewards: Address;
44
+ stokeRewardsHash: Address;
45
+ sAutoRewards: Address;
46
+ sAutoRewardsHash: Address;
47
+ managerV1: Address;
48
+ stakingV1: Address;
49
+ rewardsV1: Address;
50
+ rewardsV1Hash: Address;
51
+ rewardsV1Url: string;
52
+ sushiPool: Address;
53
+ sushiPoolReactor: Address;
54
+ lpRewardsV1Url: string;
55
+ tSushiLP: Address;
56
+ curveRewardsUrl: string;
57
+ curvePool: Address;
58
+ convexRewarder: Address;
59
+ }
60
+ type NetworkConfig = MainnetNetworkConfig | CoreNetworkConfig;
61
+
62
+ declare const coreMainnetConfig: CoreNetworkConfig;
63
+ declare const mainnetConfig: MainnetNetworkConfig;
64
+
65
+ declare const coreBaseConfig: CoreNetworkConfig;
66
+
67
+ declare const coreSonicConfig: CoreNetworkConfig;
68
+
69
+ declare const corePlasmaConfig: CoreNetworkConfig;
70
+
71
+ declare const coreArbitrumConfig: CoreNetworkConfig;
72
+
73
+ declare const coreLineaConfig: CoreNetworkConfig;
74
+
75
+ declare const coreMonadConfig: CoreNetworkConfig;
76
+
77
+ declare const SUBGRAPH_BASE_URL = "https://subgraph.tokemaklabs.com/api/graphql";
78
+ declare const getSubgraphUrl: (chainId: number) => string;
79
+
80
+ declare const coreNetworkConfigs: CoreNetworkConfig[];
81
+ declare const getCoreConfig: (chainId?: SupportedChainIds) => CoreNetworkConfig;
82
+
83
+ declare const isSupportedChainId: (chainId: number) => chainId is SupportedChainIds;
84
+
85
+ declare const getMainnetConfig: (chainId?: SupportedChainIds) => MainnetNetworkConfig;
86
+
87
+ declare const getAutopoolRpcUrl: (chainId: number) => string;
88
+
89
+ declare const AUTOPOOLS_WHITELIST_PROD: string[];
90
+ declare const STOKE_VOTE_WHITELIST: string[];
91
+ declare const DEPOSIT_ADDRESS_WHITELIST: {
92
+ infinifiUSD: string[];
93
+ };
94
+
95
+ export { AUTOPOOLS_WHITELIST_PROD, type CoreNetworkConfig, DEPOSIT_ADDRESS_WHITELIST, type MainnetNetworkConfig, type NetworkConfig, STOKE_VOTE_WHITELIST, SUBGRAPH_BASE_URL, SUPPORTED_DEV_NETWORKS_IDS, SUPPORTED_NETWORKS_IDS, SUPPORTED_PROD_NETWORKS_IDS, type SupportedChainIds, type SupportedNetwork, type SupportedNetworkNames, type SupportedNetworkNamesLowercased, SupportedNetworks, coreArbitrumConfig, coreBaseConfig, coreLineaConfig, coreMainnetConfig, coreMonadConfig, coreNetworkConfigs, corePlasmaConfig, coreSonicConfig, getAutopoolRpcUrl, getCoreConfig, getMainnetConfig, getSubgraphUrl, isSupportedChainId, mainnetConfig };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Address } from 'viem';
2
2
 
3
3
  declare const SupportedNetworks: Record<string, number>;
4
- declare const SUPPORTED_DEV_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144)[];
5
- declare const SUPPORTED_PROD_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144)[];
6
- declare const SUPPORTED_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144)[];
4
+ declare const SUPPORTED_DEV_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
5
+ declare const SUPPORTED_PROD_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
6
+ declare const SUPPORTED_NETWORKS_IDS: (1 | 8453 | 146 | 42161 | 9745 | 59144 | 143)[];
7
7
 
8
8
  type SupportedNetworkNames = keyof typeof SupportedNetworks;
9
9
  type SupportedChainIds = (typeof SupportedNetworks)[number];
@@ -20,6 +20,7 @@ interface CoreNetworkConfig {
20
20
  systemRegistry: Address;
21
21
  weth: Address;
22
22
  toke: Address;
23
+ auto: Address;
23
24
  lens: Address;
24
25
  stoke: Address;
25
26
  stokeVote: Address;
@@ -28,16 +29,21 @@ interface CoreNetworkConfig {
28
29
  explorerUrl: string;
29
30
  subgraphEndpoint: string;
30
31
  rootPriceOracle: Address;
32
+ merklDistributor?: Address;
31
33
  }
32
34
  interface MainnetNetworkConfig extends CoreNetworkConfig {
33
35
  autoEthGuardedRewards: Address;
34
36
  accTokeV1: Address;
37
+ sAuto: Address;
38
+ tokeToAutoMigration: Address;
35
39
  missedTokeRewards: Address;
36
40
  accTokeV1Rewards: Address;
37
41
  accTokeV1RewardsHash: Address;
38
42
  autoETHRewardsHash: Address;
39
43
  stokeRewards: Address;
40
44
  stokeRewardsHash: Address;
45
+ sAutoRewards: Address;
46
+ sAutoRewardsHash: Address;
41
47
  managerV1: Address;
42
48
  stakingV1: Address;
43
49
  rewardsV1: Address;
@@ -66,6 +72,8 @@ declare const coreArbitrumConfig: CoreNetworkConfig;
66
72
 
67
73
  declare const coreLineaConfig: CoreNetworkConfig;
68
74
 
75
+ declare const coreMonadConfig: CoreNetworkConfig;
76
+
69
77
  declare const SUBGRAPH_BASE_URL = "https://subgraph.tokemaklabs.com/api/graphql";
70
78
  declare const getSubgraphUrl: (chainId: number) => string;
71
79
 
@@ -76,7 +84,12 @@ declare const isSupportedChainId: (chainId: number) => chainId is SupportedChain
76
84
 
77
85
  declare const getMainnetConfig: (chainId?: SupportedChainIds) => MainnetNetworkConfig;
78
86
 
87
+ declare const getAutopoolRpcUrl: (chainId: number) => string;
88
+
79
89
  declare const AUTOPOOLS_WHITELIST_PROD: string[];
80
90
  declare const STOKE_VOTE_WHITELIST: string[];
91
+ declare const DEPOSIT_ADDRESS_WHITELIST: {
92
+ infinifiUSD: string[];
93
+ };
81
94
 
82
- export { AUTOPOOLS_WHITELIST_PROD, CoreNetworkConfig, MainnetNetworkConfig, NetworkConfig, STOKE_VOTE_WHITELIST, SUBGRAPH_BASE_URL, SUPPORTED_DEV_NETWORKS_IDS, SUPPORTED_NETWORKS_IDS, SUPPORTED_PROD_NETWORKS_IDS, SupportedChainIds, SupportedNetwork, SupportedNetworkNames, SupportedNetworkNamesLowercased, SupportedNetworks, coreArbitrumConfig, coreBaseConfig, coreLineaConfig, coreMainnetConfig, coreNetworkConfigs, corePlasmaConfig, coreSonicConfig, getCoreConfig, getMainnetConfig, getSubgraphUrl, isSupportedChainId, mainnetConfig };
95
+ export { AUTOPOOLS_WHITELIST_PROD, type CoreNetworkConfig, DEPOSIT_ADDRESS_WHITELIST, type MainnetNetworkConfig, type NetworkConfig, STOKE_VOTE_WHITELIST, SUBGRAPH_BASE_URL, SUPPORTED_DEV_NETWORKS_IDS, SUPPORTED_NETWORKS_IDS, SUPPORTED_PROD_NETWORKS_IDS, type SupportedChainIds, type SupportedNetwork, type SupportedNetworkNames, type SupportedNetworkNamesLowercased, SupportedNetworks, coreArbitrumConfig, coreBaseConfig, coreLineaConfig, coreMainnetConfig, coreMonadConfig, coreNetworkConfigs, corePlasmaConfig, coreSonicConfig, getAutopoolRpcUrl, getCoreConfig, getMainnetConfig, getSubgraphUrl, isSupportedChainId, mainnetConfig };
package/dist/index.js CHANGED
@@ -18,9 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // index.ts
21
- var config_exports = {};
22
- __export(config_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  AUTOPOOLS_WHITELIST_PROD: () => AUTOPOOLS_WHITELIST_PROD,
24
+ DEPOSIT_ADDRESS_WHITELIST: () => DEPOSIT_ADDRESS_WHITELIST,
24
25
  STOKE_VOTE_WHITELIST: () => STOKE_VOTE_WHITELIST,
25
26
  SUBGRAPH_BASE_URL: () => SUBGRAPH_BASE_URL,
26
27
  SUPPORTED_DEV_NETWORKS_IDS: () => SUPPORTED_DEV_NETWORKS_IDS,
@@ -31,16 +32,18 @@ __export(config_exports, {
31
32
  coreBaseConfig: () => coreBaseConfig,
32
33
  coreLineaConfig: () => coreLineaConfig,
33
34
  coreMainnetConfig: () => coreMainnetConfig,
35
+ coreMonadConfig: () => coreMonadConfig,
34
36
  coreNetworkConfigs: () => coreNetworkConfigs,
35
37
  corePlasmaConfig: () => corePlasmaConfig,
36
38
  coreSonicConfig: () => coreSonicConfig,
39
+ getAutopoolRpcUrl: () => getAutopoolRpcUrl,
37
40
  getCoreConfig: () => getCoreConfig,
38
41
  getMainnetConfig: () => getMainnetConfig,
39
42
  getSubgraphUrl: () => getSubgraphUrl,
40
43
  isSupportedChainId: () => isSupportedChainId,
41
44
  mainnetConfig: () => mainnetConfig
42
45
  });
43
- module.exports = __toCommonJS(config_exports);
46
+ module.exports = __toCommonJS(index_exports);
44
47
 
45
48
  // chains/index.ts
46
49
  var chains_exports = {};
@@ -49,6 +52,7 @@ __export(chains_exports, {
49
52
  coreBaseConfig: () => coreBaseConfig,
50
53
  coreLineaConfig: () => coreLineaConfig,
51
54
  coreMainnetConfig: () => coreMainnetConfig,
55
+ coreMonadConfig: () => coreMonadConfig,
52
56
  corePlasmaConfig: () => corePlasmaConfig,
53
57
  coreSonicConfig: () => coreSonicConfig,
54
58
  mainnetConfig: () => mainnetConfig
@@ -69,25 +73,32 @@ var coreMainnetConfig = {
69
73
  systemRegistry: "0x2218F90A98b0C070676f249EF44834686dAa4285",
70
74
  weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
71
75
  toke: "0x2e9d63788249371f1DFC918a52f8d799F4a38C94",
76
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
72
77
  lens: "0x75455ae8c9B2Ff7Ae9F21ae06730d614c31D2300",
73
78
  stoke: "0xA374A62DdBd21e3d5716cB04821CB710897c0972",
74
79
  stokeExtend: "0x6e1F006c98B7389001eB427b1f593936B5c50673",
75
80
  stokeVote: "0xFE3f64e47E2474bc2b337F348B9AA0ef6e1ccD01",
76
81
  explorerUrl: `${import_chains.mainnet.blockExplorers.default.url}/`,
77
82
  subgraphEndpoint: getSubgraphUrl(import_chains.mainnet.id),
78
- rootPriceOracle: "0x61F8BE7FD721e80C0249829eaE6f0DAf21bc2CaC"
83
+ rootPriceOracle: "0x61F8BE7FD721e80C0249829eaE6f0DAf21bc2CaC",
84
+ merklDistributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
79
85
  };
80
86
  var mainnetConfig = {
81
87
  ...coreMainnetConfig,
82
88
  autoEthGuardedRewards: "0xf81D69f11e5103ce199fF745295a1E3D7a4CEF69",
89
+ sAuto: "0x13ff49c4bf8dbBb6Fa8B2DEC9911438E6e588213",
83
90
  accTokeV1: "0xA374A62DdBd21e3d5716cB04821CB710897c0972",
91
+ tokeToAutoMigration: "0xFc9e2a42A8fcB01c9A6fd62133c71da80fa78057",
84
92
  missedTokeRewards: "0xffd22cee98c24c12b20987d4106148d88269ede3",
85
93
  accTokeV1Rewards: "0x086B9734D33783Bbe4fBc8249DF4C686aAe27054",
86
94
  accTokeV1RewardsHash: "0x3cCE05568008916d739479958f7a1AF5f67661DD",
87
95
  autoETHRewardsHash: "0x9ba21890C1017A7f65989016110c6ECd757B2162",
88
96
  stokeRewards: "0xD69e57336377460707d579CB24f9Ba0aEDf88003",
89
97
  stokeRewardsHash: "0x70f0f41B354cE2f1378952C50C635633E0373c24",
98
+ sAutoRewards: "0x30Ddef8CeDEE40DF8CaB52813Fc929dA2bcc070c",
99
+ sAutoRewardsHash: "0xF24e2B87aD351855Becdb9C90a8AFd6693675e5D",
90
100
  managerV1: "0xA86e412109f77c45a3BC1c5870b880492Fb86A14",
101
+ // sAutoManager: "0xd06a077d8bD8909B8a6C6a9747E02491c1E90D83",
91
102
  stakingV1: "0x96F98Ed74639689C3A11daf38ef86E59F43417D3",
92
103
  rewardsV1: "0x79dD22579112d8a5F7347c5ED7E609e60da713C5",
93
104
  rewardsV1Hash: "0x5ec3EC6A8aC774c7d53665ebc5DDf89145d02fB6",
@@ -110,6 +121,7 @@ var coreBaseConfig = {
110
121
  systemRegistry: "0x18Dc926095A7A007C01Ef836683Fdef4c4371b4e",
111
122
  weth: "0x4200000000000000000000000000000000000006",
112
123
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
124
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
113
125
  lens: "0x1C00599444dd916eAD61487bc0C8112446DB89F0",
114
126
  stoke: "0x2770784de40b9588FE16e4C514820f6bf8901EBf",
115
127
  stokeVote: "0x388cFF4079E382FD7C11d699eB183882868d0FB9",
@@ -128,6 +140,7 @@ var coreSonicConfig = {
128
140
  systemRegistry: "0x1a912EB51D3cF8364eBAEE5A982cA37f25aD8848",
129
141
  weth: "0x50c42deacd8fc9773493ed674b675be577f2634b",
130
142
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
143
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
131
144
  lens: "0xCB7E450c32D21Eb0168466c8022Ae32EF785a163",
132
145
  stoke: "0x0",
133
146
  stokeVote: "0x0",
@@ -146,6 +159,7 @@ var corePlasmaConfig = {
146
159
  systemRegistry: "0x9065C0E33Bc8FB31A21874f399985e39bC187D48",
147
160
  weth: "0x9895D81bB462A195b4922ED7De0e3ACD007c32CB",
148
161
  toke: "0x223C0d94dbc8c0E5df1f6B2C75F06c0229c91950",
162
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
149
163
  lens: "0x8dBaD46D468d57fdd1FCbA0452C8cD4d7FaE72E8",
150
164
  stoke: "0x0",
151
165
  stokeVote: "0x0",
@@ -164,6 +178,7 @@ var coreArbitrumConfig = {
164
178
  systemRegistry: "0xBFd8E6C9bF2CD5466f5651746f8E946A6C7b4220",
165
179
  weth: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
166
180
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
181
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
167
182
  lens: "0x590A31453390A1bB266672156A87eFB1302FC754",
168
183
  stoke: "0x0",
169
184
  stokeVote: "0x0",
@@ -182,6 +197,7 @@ var coreLineaConfig = {
182
197
  systemRegistry: "0x25f26Ec2e764c63F8D191dFE7f88c6646ca9F980",
183
198
  weth: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
184
199
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
200
+ auto: "0x62E57804469947506720e33D0C9f6E4029326099",
185
201
  lens: "0x92537a95b45AB695ab3EbabFc1A3c3E27AF7973c",
186
202
  stoke: "0x0",
187
203
  stokeVote: "0x0",
@@ -191,6 +207,25 @@ var coreLineaConfig = {
191
207
  rootPriceOracle: "0x03DC051eb7fe444CEBCC2e870eba4464D8175618"
192
208
  };
193
209
 
210
+ // chains/monad.ts
211
+ var import_chains7 = require("viem/chains");
212
+ var coreMonadConfig = {
213
+ name: import_chains7.monad.name,
214
+ id: import_chains7.monad.id,
215
+ shortName: "monad",
216
+ systemRegistry: "0x92872Ba7775aA1d7bcF48Ef4486468aBF4367057",
217
+ weth: "0xee8c0e9f1bffb4eb878d8f15f368a02a35481242",
218
+ toke: "0x223C0d94dbc8c0E5df1f6B2C75F06c0229c91950",
219
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
220
+ lens: "0xfC8c327a64B272193826dAA37505B0e7760f8Db5",
221
+ stoke: "0x0",
222
+ stokeVote: "0x0",
223
+ stokeExtend: "0x0",
224
+ explorerUrl: `${import_chains7.monad.blockExplorers.default.url}/`,
225
+ subgraphEndpoint: getSubgraphUrl(import_chains7.monad.id),
226
+ rootPriceOracle: "0x4A1d4C438ecf5F4bb9D916F7D2Cc958e7c190fBF"
227
+ };
228
+
194
229
  // helpers/getCoreConfig.ts
195
230
  var isCoreNetworkConfig = (config) => {
196
231
  return config && !("autoEthGuardedRewards" in config);
@@ -209,25 +244,27 @@ var getCoreConfig = (chainId = coreMainnetConfig.id) => {
209
244
  };
210
245
 
211
246
  // whitelist/chains.ts
212
- var import_chains7 = require("viem/chains");
247
+ var import_chains8 = require("viem/chains");
213
248
  var SupportedNetworks = Object.fromEntries(
214
249
  coreNetworkConfigs.map((config) => [config.name, config.id])
215
250
  );
216
251
  var SUPPORTED_DEV_NETWORKS_IDS = [
217
- import_chains7.mainnet.id,
218
- import_chains7.base.id,
219
- import_chains7.sonic.id,
220
- import_chains7.arbitrum.id,
221
- import_chains7.plasma.id,
222
- import_chains7.linea.id
252
+ import_chains8.mainnet.id,
253
+ import_chains8.base.id,
254
+ import_chains8.sonic.id,
255
+ import_chains8.arbitrum.id,
256
+ import_chains8.plasma.id,
257
+ import_chains8.linea.id,
258
+ import_chains8.monad.id
223
259
  ];
224
260
  var SUPPORTED_PROD_NETWORKS_IDS = [
225
- import_chains7.mainnet.id,
226
- import_chains7.base.id,
227
- import_chains7.sonic.id,
228
- import_chains7.arbitrum.id,
229
- import_chains7.plasma.id,
230
- import_chains7.linea.id
261
+ import_chains8.mainnet.id,
262
+ import_chains8.base.id,
263
+ import_chains8.sonic.id,
264
+ import_chains8.arbitrum.id,
265
+ import_chains8.plasma.id,
266
+ import_chains8.linea.id,
267
+ import_chains8.monad.id
231
268
  ];
232
269
  var SUPPORTED_NETWORKS_IDS = [
233
270
  ...SUPPORTED_DEV_NETWORKS_IDS,
@@ -240,14 +277,17 @@ var isSupportedChainId = (chainId) => {
240
277
  };
241
278
 
242
279
  // helpers/getMainnetConfig.ts
243
- var import_chains9 = require("viem/chains");
244
- var getMainnetConfig = (chainId = import_chains9.mainnet.id) => {
245
- if (chainId === import_chains9.mainnet.id) {
280
+ var import_chains10 = require("viem/chains");
281
+ var getMainnetConfig = (chainId = import_chains10.mainnet.id) => {
282
+ if (chainId === import_chains10.mainnet.id) {
246
283
  return mainnetConfig;
247
284
  }
248
285
  return mainnetConfig;
249
286
  };
250
287
 
288
+ // helpers/getAutopoolRpcUrl.ts
289
+ var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
290
+
251
291
  // whitelist/autopools.ts
252
292
  var AUTOPOOLS_WHITELIST_PROD = [
253
293
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
@@ -273,11 +313,15 @@ var AUTOPOOLS_WHITELIST_PROD = [
273
313
  // siloUSD
274
314
  "0x4Ec8f8b0F144ce1fa280B84F01Df9e353e83EC80",
275
315
  // plasmaUSD
316
+ "0xC7d7F434C015F2A7E77dF9763ADE300F2171a05a",
317
+ // infinifiUSD
276
318
  "0xd1A6524Fccd465ECa7AF2340B3D7fd2e3bbD792a",
277
319
  // lineaUSD
278
- "0x1ABD0403591bE494771115d74ED9E120530f356E"
320
+ "0x1ABD0403591bE494771115d74ED9E120530f356E",
279
321
  // anchrgUSD
280
322
  // "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
323
+ "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
324
+ // monUSD
281
325
  ];
282
326
  var STOKE_VOTE_WHITELIST = [
283
327
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
@@ -287,9 +331,13 @@ var STOKE_VOTE_WHITELIST = [
287
331
  // "0xa7569A44f348d3D70d8ad5889e50F78E33d80D35", // autoUSD
288
332
  // "0xAADf01DD90aE0A6Bb9Eb908294658037096E0404", // baseETH
289
333
  ];
334
+ var DEPOSIT_ADDRESS_WHITELIST = {
335
+ infinifiUSD: ["0x09618943342c016A85aC0F98Fd005479b3cec571"]
336
+ };
290
337
  // Annotate the CommonJS export names for ESM import in node:
291
338
  0 && (module.exports = {
292
339
  AUTOPOOLS_WHITELIST_PROD,
340
+ DEPOSIT_ADDRESS_WHITELIST,
293
341
  STOKE_VOTE_WHITELIST,
294
342
  SUBGRAPH_BASE_URL,
295
343
  SUPPORTED_DEV_NETWORKS_IDS,
@@ -300,9 +348,11 @@ var STOKE_VOTE_WHITELIST = [
300
348
  coreBaseConfig,
301
349
  coreLineaConfig,
302
350
  coreMainnetConfig,
351
+ coreMonadConfig,
303
352
  coreNetworkConfigs,
304
353
  corePlasmaConfig,
305
354
  coreSonicConfig,
355
+ getAutopoolRpcUrl,
306
356
  getCoreConfig,
307
357
  getMainnetConfig,
308
358
  getSubgraphUrl,
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ __export(chains_exports, {
11
11
  coreBaseConfig: () => coreBaseConfig,
12
12
  coreLineaConfig: () => coreLineaConfig,
13
13
  coreMainnetConfig: () => coreMainnetConfig,
14
+ coreMonadConfig: () => coreMonadConfig,
14
15
  corePlasmaConfig: () => corePlasmaConfig,
15
16
  coreSonicConfig: () => coreSonicConfig,
16
17
  mainnetConfig: () => mainnetConfig
@@ -31,25 +32,32 @@ var coreMainnetConfig = {
31
32
  systemRegistry: "0x2218F90A98b0C070676f249EF44834686dAa4285",
32
33
  weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
33
34
  toke: "0x2e9d63788249371f1DFC918a52f8d799F4a38C94",
35
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
34
36
  lens: "0x75455ae8c9B2Ff7Ae9F21ae06730d614c31D2300",
35
37
  stoke: "0xA374A62DdBd21e3d5716cB04821CB710897c0972",
36
38
  stokeExtend: "0x6e1F006c98B7389001eB427b1f593936B5c50673",
37
39
  stokeVote: "0xFE3f64e47E2474bc2b337F348B9AA0ef6e1ccD01",
38
40
  explorerUrl: `${mainnet.blockExplorers.default.url}/`,
39
41
  subgraphEndpoint: getSubgraphUrl(mainnet.id),
40
- rootPriceOracle: "0x61F8BE7FD721e80C0249829eaE6f0DAf21bc2CaC"
42
+ rootPriceOracle: "0x61F8BE7FD721e80C0249829eaE6f0DAf21bc2CaC",
43
+ merklDistributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
41
44
  };
42
45
  var mainnetConfig = {
43
46
  ...coreMainnetConfig,
44
47
  autoEthGuardedRewards: "0xf81D69f11e5103ce199fF745295a1E3D7a4CEF69",
48
+ sAuto: "0x13ff49c4bf8dbBb6Fa8B2DEC9911438E6e588213",
45
49
  accTokeV1: "0xA374A62DdBd21e3d5716cB04821CB710897c0972",
50
+ tokeToAutoMigration: "0xFc9e2a42A8fcB01c9A6fd62133c71da80fa78057",
46
51
  missedTokeRewards: "0xffd22cee98c24c12b20987d4106148d88269ede3",
47
52
  accTokeV1Rewards: "0x086B9734D33783Bbe4fBc8249DF4C686aAe27054",
48
53
  accTokeV1RewardsHash: "0x3cCE05568008916d739479958f7a1AF5f67661DD",
49
54
  autoETHRewardsHash: "0x9ba21890C1017A7f65989016110c6ECd757B2162",
50
55
  stokeRewards: "0xD69e57336377460707d579CB24f9Ba0aEDf88003",
51
56
  stokeRewardsHash: "0x70f0f41B354cE2f1378952C50C635633E0373c24",
57
+ sAutoRewards: "0x30Ddef8CeDEE40DF8CaB52813Fc929dA2bcc070c",
58
+ sAutoRewardsHash: "0xF24e2B87aD351855Becdb9C90a8AFd6693675e5D",
52
59
  managerV1: "0xA86e412109f77c45a3BC1c5870b880492Fb86A14",
60
+ // sAutoManager: "0xd06a077d8bD8909B8a6C6a9747E02491c1E90D83",
53
61
  stakingV1: "0x96F98Ed74639689C3A11daf38ef86E59F43417D3",
54
62
  rewardsV1: "0x79dD22579112d8a5F7347c5ED7E609e60da713C5",
55
63
  rewardsV1Hash: "0x5ec3EC6A8aC774c7d53665ebc5DDf89145d02fB6",
@@ -72,6 +80,7 @@ var coreBaseConfig = {
72
80
  systemRegistry: "0x18Dc926095A7A007C01Ef836683Fdef4c4371b4e",
73
81
  weth: "0x4200000000000000000000000000000000000006",
74
82
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
83
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
75
84
  lens: "0x1C00599444dd916eAD61487bc0C8112446DB89F0",
76
85
  stoke: "0x2770784de40b9588FE16e4C514820f6bf8901EBf",
77
86
  stokeVote: "0x388cFF4079E382FD7C11d699eB183882868d0FB9",
@@ -90,6 +99,7 @@ var coreSonicConfig = {
90
99
  systemRegistry: "0x1a912EB51D3cF8364eBAEE5A982cA37f25aD8848",
91
100
  weth: "0x50c42deacd8fc9773493ed674b675be577f2634b",
92
101
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
102
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
93
103
  lens: "0xCB7E450c32D21Eb0168466c8022Ae32EF785a163",
94
104
  stoke: "0x0",
95
105
  stokeVote: "0x0",
@@ -108,6 +118,7 @@ var corePlasmaConfig = {
108
118
  systemRegistry: "0x9065C0E33Bc8FB31A21874f399985e39bC187D48",
109
119
  weth: "0x9895D81bB462A195b4922ED7De0e3ACD007c32CB",
110
120
  toke: "0x223C0d94dbc8c0E5df1f6B2C75F06c0229c91950",
121
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
111
122
  lens: "0x8dBaD46D468d57fdd1FCbA0452C8cD4d7FaE72E8",
112
123
  stoke: "0x0",
113
124
  stokeVote: "0x0",
@@ -126,6 +137,7 @@ var coreArbitrumConfig = {
126
137
  systemRegistry: "0xBFd8E6C9bF2CD5466f5651746f8E946A6C7b4220",
127
138
  weth: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
128
139
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
140
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
129
141
  lens: "0x590A31453390A1bB266672156A87eFB1302FC754",
130
142
  stoke: "0x0",
131
143
  stokeVote: "0x0",
@@ -144,6 +156,7 @@ var coreLineaConfig = {
144
156
  systemRegistry: "0x25f26Ec2e764c63F8D191dFE7f88c6646ca9F980",
145
157
  weth: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
146
158
  toke: "0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950",
159
+ auto: "0x62E57804469947506720e33D0C9f6E4029326099",
147
160
  lens: "0x92537a95b45AB695ab3EbabFc1A3c3E27AF7973c",
148
161
  stoke: "0x0",
149
162
  stokeVote: "0x0",
@@ -153,6 +166,25 @@ var coreLineaConfig = {
153
166
  rootPriceOracle: "0x03DC051eb7fe444CEBCC2e870eba4464D8175618"
154
167
  };
155
168
 
169
+ // chains/monad.ts
170
+ import { monad } from "viem/chains";
171
+ var coreMonadConfig = {
172
+ name: monad.name,
173
+ id: monad.id,
174
+ shortName: "monad",
175
+ systemRegistry: "0x92872Ba7775aA1d7bcF48Ef4486468aBF4367057",
176
+ weth: "0xee8c0e9f1bffb4eb878d8f15f368a02a35481242",
177
+ toke: "0x223C0d94dbc8c0E5df1f6B2C75F06c0229c91950",
178
+ auto: "0x60cff692F42D67D4e367185E70D20164903E8725",
179
+ lens: "0xfC8c327a64B272193826dAA37505B0e7760f8Db5",
180
+ stoke: "0x0",
181
+ stokeVote: "0x0",
182
+ stokeExtend: "0x0",
183
+ explorerUrl: `${monad.blockExplorers.default.url}/`,
184
+ subgraphEndpoint: getSubgraphUrl(monad.id),
185
+ rootPriceOracle: "0x4A1d4C438ecf5F4bb9D916F7D2Cc958e7c190fBF"
186
+ };
187
+
156
188
  // helpers/getCoreConfig.ts
157
189
  var isCoreNetworkConfig = (config) => {
158
190
  return config && !("autoEthGuardedRewards" in config);
@@ -171,7 +203,15 @@ var getCoreConfig = (chainId = coreMainnetConfig.id) => {
171
203
  };
172
204
 
173
205
  // whitelist/chains.ts
174
- import { base as base2, mainnet as mainnet2, sonic as sonic2, arbitrum as arbitrum2, plasma as plasma2, linea as linea2 } from "viem/chains";
206
+ import {
207
+ arbitrum as arbitrum2,
208
+ base as base2,
209
+ linea as linea2,
210
+ mainnet as mainnet2,
211
+ monad as monad2,
212
+ plasma as plasma2,
213
+ sonic as sonic2
214
+ } from "viem/chains";
175
215
  var SupportedNetworks = Object.fromEntries(
176
216
  coreNetworkConfigs.map((config) => [config.name, config.id])
177
217
  );
@@ -181,7 +221,8 @@ var SUPPORTED_DEV_NETWORKS_IDS = [
181
221
  sonic2.id,
182
222
  arbitrum2.id,
183
223
  plasma2.id,
184
- linea2.id
224
+ linea2.id,
225
+ monad2.id
185
226
  ];
186
227
  var SUPPORTED_PROD_NETWORKS_IDS = [
187
228
  mainnet2.id,
@@ -189,7 +230,8 @@ var SUPPORTED_PROD_NETWORKS_IDS = [
189
230
  sonic2.id,
190
231
  arbitrum2.id,
191
232
  plasma2.id,
192
- linea2.id
233
+ linea2.id,
234
+ monad2.id
193
235
  ];
194
236
  var SUPPORTED_NETWORKS_IDS = [
195
237
  ...SUPPORTED_DEV_NETWORKS_IDS,
@@ -210,6 +252,9 @@ var getMainnetConfig = (chainId = mainnet3.id) => {
210
252
  return mainnetConfig;
211
253
  };
212
254
 
255
+ // helpers/getAutopoolRpcUrl.ts
256
+ var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
257
+
213
258
  // whitelist/autopools.ts
214
259
  var AUTOPOOLS_WHITELIST_PROD = [
215
260
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
@@ -235,11 +280,15 @@ var AUTOPOOLS_WHITELIST_PROD = [
235
280
  // siloUSD
236
281
  "0x4Ec8f8b0F144ce1fa280B84F01Df9e353e83EC80",
237
282
  // plasmaUSD
283
+ "0xC7d7F434C015F2A7E77dF9763ADE300F2171a05a",
284
+ // infinifiUSD
238
285
  "0xd1A6524Fccd465ECa7AF2340B3D7fd2e3bbD792a",
239
286
  // lineaUSD
240
- "0x1ABD0403591bE494771115d74ED9E120530f356E"
287
+ "0x1ABD0403591bE494771115d74ED9E120530f356E",
241
288
  // anchrgUSD
242
289
  // "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
290
+ "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
291
+ // monUSD
243
292
  ];
244
293
  var STOKE_VOTE_WHITELIST = [
245
294
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
@@ -249,8 +298,12 @@ var STOKE_VOTE_WHITELIST = [
249
298
  // "0xa7569A44f348d3D70d8ad5889e50F78E33d80D35", // autoUSD
250
299
  // "0xAADf01DD90aE0A6Bb9Eb908294658037096E0404", // baseETH
251
300
  ];
301
+ var DEPOSIT_ADDRESS_WHITELIST = {
302
+ infinifiUSD: ["0x09618943342c016A85aC0F98Fd005479b3cec571"]
303
+ };
252
304
  export {
253
305
  AUTOPOOLS_WHITELIST_PROD,
306
+ DEPOSIT_ADDRESS_WHITELIST,
254
307
  STOKE_VOTE_WHITELIST,
255
308
  SUBGRAPH_BASE_URL,
256
309
  SUPPORTED_DEV_NETWORKS_IDS,
@@ -261,9 +314,11 @@ export {
261
314
  coreBaseConfig,
262
315
  coreLineaConfig,
263
316
  coreMainnetConfig,
317
+ coreMonadConfig,
264
318
  coreNetworkConfigs,
265
319
  corePlasmaConfig,
266
320
  coreSonicConfig,
321
+ getAutopoolRpcUrl,
267
322
  getCoreConfig,
268
323
  getMainnetConfig,
269
324
  getSubgraphUrl,
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@tokemak/config",
3
- "version": "0.0.5",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
+ "module": "./dist/index.mjs",
5
6
  "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.mjs"
12
+ },
13
+ "require": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ }
18
+ },
6
19
  "sideEffects": false,
7
20
  "license": "MIT",
8
21
  "files": [
@@ -12,14 +25,14 @@
12
25
  "access": "public"
13
26
  },
14
27
  "dependencies": {
15
- "viem": "2.x"
28
+ "viem": "2.46.3"
16
29
  },
17
30
  "devDependencies": {
18
31
  "@tokemak/eslint-config": "0.0.0"
19
32
  },
20
33
  "scripts": {
21
34
  "build": "tsup",
22
- "lint": "eslint \"src/**/*.ts*\"",
35
+ "lint": "eslint \"**/*.ts\" --ignore-pattern dist",
23
36
  "clean": "rimraf .turbo node_modules dist"
24
37
  }
25
38
  }