@tokemak/config 0.1.1 → 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.
- package/dist/index.d.mts +95 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +48 -17
- package/dist/index.mjs +41 -4
- package/package.json +2 -2
package/dist/index.d.mts
ADDED
|
@@ -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];
|
|
@@ -72,6 +72,8 @@ declare const coreArbitrumConfig: CoreNetworkConfig;
|
|
|
72
72
|
|
|
73
73
|
declare const coreLineaConfig: CoreNetworkConfig;
|
|
74
74
|
|
|
75
|
+
declare const coreMonadConfig: CoreNetworkConfig;
|
|
76
|
+
|
|
75
77
|
declare const SUBGRAPH_BASE_URL = "https://subgraph.tokemaklabs.com/api/graphql";
|
|
76
78
|
declare const getSubgraphUrl: (chainId: number) => string;
|
|
77
79
|
|
|
@@ -82,10 +84,12 @@ declare const isSupportedChainId: (chainId: number) => chainId is SupportedChain
|
|
|
82
84
|
|
|
83
85
|
declare const getMainnetConfig: (chainId?: SupportedChainIds) => MainnetNetworkConfig;
|
|
84
86
|
|
|
87
|
+
declare const getAutopoolRpcUrl: (chainId: number) => string;
|
|
88
|
+
|
|
85
89
|
declare const AUTOPOOLS_WHITELIST_PROD: string[];
|
|
86
90
|
declare const STOKE_VOTE_WHITELIST: string[];
|
|
87
91
|
declare const DEPOSIT_ADDRESS_WHITELIST: {
|
|
88
92
|
infinifiUSD: string[];
|
|
89
93
|
};
|
|
90
94
|
|
|
91
|
-
export { AUTOPOOLS_WHITELIST_PROD, CoreNetworkConfig, DEPOSIT_ADDRESS_WHITELIST, 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
|
@@ -32,9 +32,11 @@ __export(index_exports, {
|
|
|
32
32
|
coreBaseConfig: () => coreBaseConfig,
|
|
33
33
|
coreLineaConfig: () => coreLineaConfig,
|
|
34
34
|
coreMainnetConfig: () => coreMainnetConfig,
|
|
35
|
+
coreMonadConfig: () => coreMonadConfig,
|
|
35
36
|
coreNetworkConfigs: () => coreNetworkConfigs,
|
|
36
37
|
corePlasmaConfig: () => corePlasmaConfig,
|
|
37
38
|
coreSonicConfig: () => coreSonicConfig,
|
|
39
|
+
getAutopoolRpcUrl: () => getAutopoolRpcUrl,
|
|
38
40
|
getCoreConfig: () => getCoreConfig,
|
|
39
41
|
getMainnetConfig: () => getMainnetConfig,
|
|
40
42
|
getSubgraphUrl: () => getSubgraphUrl,
|
|
@@ -50,6 +52,7 @@ __export(chains_exports, {
|
|
|
50
52
|
coreBaseConfig: () => coreBaseConfig,
|
|
51
53
|
coreLineaConfig: () => coreLineaConfig,
|
|
52
54
|
coreMainnetConfig: () => coreMainnetConfig,
|
|
55
|
+
coreMonadConfig: () => coreMonadConfig,
|
|
53
56
|
corePlasmaConfig: () => corePlasmaConfig,
|
|
54
57
|
coreSonicConfig: () => coreSonicConfig,
|
|
55
58
|
mainnetConfig: () => mainnetConfig
|
|
@@ -204,6 +207,25 @@ var coreLineaConfig = {
|
|
|
204
207
|
rootPriceOracle: "0x03DC051eb7fe444CEBCC2e870eba4464D8175618"
|
|
205
208
|
};
|
|
206
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
|
+
|
|
207
229
|
// helpers/getCoreConfig.ts
|
|
208
230
|
var isCoreNetworkConfig = (config) => {
|
|
209
231
|
return config && !("autoEthGuardedRewards" in config);
|
|
@@ -222,25 +244,27 @@ var getCoreConfig = (chainId = coreMainnetConfig.id) => {
|
|
|
222
244
|
};
|
|
223
245
|
|
|
224
246
|
// whitelist/chains.ts
|
|
225
|
-
var
|
|
247
|
+
var import_chains8 = require("viem/chains");
|
|
226
248
|
var SupportedNetworks = Object.fromEntries(
|
|
227
249
|
coreNetworkConfigs.map((config) => [config.name, config.id])
|
|
228
250
|
);
|
|
229
251
|
var SUPPORTED_DEV_NETWORKS_IDS = [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
|
236
259
|
];
|
|
237
260
|
var SUPPORTED_PROD_NETWORKS_IDS = [
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
|
244
268
|
];
|
|
245
269
|
var SUPPORTED_NETWORKS_IDS = [
|
|
246
270
|
...SUPPORTED_DEV_NETWORKS_IDS,
|
|
@@ -253,14 +277,17 @@ var isSupportedChainId = (chainId) => {
|
|
|
253
277
|
};
|
|
254
278
|
|
|
255
279
|
// helpers/getMainnetConfig.ts
|
|
256
|
-
var
|
|
257
|
-
var getMainnetConfig = (chainId =
|
|
258
|
-
if (chainId ===
|
|
280
|
+
var import_chains10 = require("viem/chains");
|
|
281
|
+
var getMainnetConfig = (chainId = import_chains10.mainnet.id) => {
|
|
282
|
+
if (chainId === import_chains10.mainnet.id) {
|
|
259
283
|
return mainnetConfig;
|
|
260
284
|
}
|
|
261
285
|
return mainnetConfig;
|
|
262
286
|
};
|
|
263
287
|
|
|
288
|
+
// helpers/getAutopoolRpcUrl.ts
|
|
289
|
+
var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
|
|
290
|
+
|
|
264
291
|
// whitelist/autopools.ts
|
|
265
292
|
var AUTOPOOLS_WHITELIST_PROD = [
|
|
266
293
|
"0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
|
|
@@ -290,9 +317,11 @@ var AUTOPOOLS_WHITELIST_PROD = [
|
|
|
290
317
|
// infinifiUSD
|
|
291
318
|
"0xd1A6524Fccd465ECa7AF2340B3D7fd2e3bbD792a",
|
|
292
319
|
// lineaUSD
|
|
293
|
-
"0x1ABD0403591bE494771115d74ED9E120530f356E"
|
|
320
|
+
"0x1ABD0403591bE494771115d74ED9E120530f356E",
|
|
294
321
|
// anchrgUSD
|
|
295
322
|
// "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
|
|
323
|
+
"0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
|
|
324
|
+
// monUSD
|
|
296
325
|
];
|
|
297
326
|
var STOKE_VOTE_WHITELIST = [
|
|
298
327
|
"0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
|
|
@@ -319,9 +348,11 @@ var DEPOSIT_ADDRESS_WHITELIST = {
|
|
|
319
348
|
coreBaseConfig,
|
|
320
349
|
coreLineaConfig,
|
|
321
350
|
coreMainnetConfig,
|
|
351
|
+
coreMonadConfig,
|
|
322
352
|
coreNetworkConfigs,
|
|
323
353
|
corePlasmaConfig,
|
|
324
354
|
coreSonicConfig,
|
|
355
|
+
getAutopoolRpcUrl,
|
|
325
356
|
getCoreConfig,
|
|
326
357
|
getMainnetConfig,
|
|
327
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
|
|
@@ -165,6 +166,25 @@ var coreLineaConfig = {
|
|
|
165
166
|
rootPriceOracle: "0x03DC051eb7fe444CEBCC2e870eba4464D8175618"
|
|
166
167
|
};
|
|
167
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
|
+
|
|
168
188
|
// helpers/getCoreConfig.ts
|
|
169
189
|
var isCoreNetworkConfig = (config) => {
|
|
170
190
|
return config && !("autoEthGuardedRewards" in config);
|
|
@@ -183,7 +203,15 @@ var getCoreConfig = (chainId = coreMainnetConfig.id) => {
|
|
|
183
203
|
};
|
|
184
204
|
|
|
185
205
|
// whitelist/chains.ts
|
|
186
|
-
import {
|
|
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";
|
|
187
215
|
var SupportedNetworks = Object.fromEntries(
|
|
188
216
|
coreNetworkConfigs.map((config) => [config.name, config.id])
|
|
189
217
|
);
|
|
@@ -193,7 +221,8 @@ var SUPPORTED_DEV_NETWORKS_IDS = [
|
|
|
193
221
|
sonic2.id,
|
|
194
222
|
arbitrum2.id,
|
|
195
223
|
plasma2.id,
|
|
196
|
-
linea2.id
|
|
224
|
+
linea2.id,
|
|
225
|
+
monad2.id
|
|
197
226
|
];
|
|
198
227
|
var SUPPORTED_PROD_NETWORKS_IDS = [
|
|
199
228
|
mainnet2.id,
|
|
@@ -201,7 +230,8 @@ var SUPPORTED_PROD_NETWORKS_IDS = [
|
|
|
201
230
|
sonic2.id,
|
|
202
231
|
arbitrum2.id,
|
|
203
232
|
plasma2.id,
|
|
204
|
-
linea2.id
|
|
233
|
+
linea2.id,
|
|
234
|
+
monad2.id
|
|
205
235
|
];
|
|
206
236
|
var SUPPORTED_NETWORKS_IDS = [
|
|
207
237
|
...SUPPORTED_DEV_NETWORKS_IDS,
|
|
@@ -222,6 +252,9 @@ var getMainnetConfig = (chainId = mainnet3.id) => {
|
|
|
222
252
|
return mainnetConfig;
|
|
223
253
|
};
|
|
224
254
|
|
|
255
|
+
// helpers/getAutopoolRpcUrl.ts
|
|
256
|
+
var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
|
|
257
|
+
|
|
225
258
|
// whitelist/autopools.ts
|
|
226
259
|
var AUTOPOOLS_WHITELIST_PROD = [
|
|
227
260
|
"0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
|
|
@@ -251,9 +284,11 @@ var AUTOPOOLS_WHITELIST_PROD = [
|
|
|
251
284
|
// infinifiUSD
|
|
252
285
|
"0xd1A6524Fccd465ECa7AF2340B3D7fd2e3bbD792a",
|
|
253
286
|
// lineaUSD
|
|
254
|
-
"0x1ABD0403591bE494771115d74ED9E120530f356E"
|
|
287
|
+
"0x1ABD0403591bE494771115d74ED9E120530f356E",
|
|
255
288
|
// anchrgUSD
|
|
256
289
|
// "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
|
|
290
|
+
"0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
|
|
291
|
+
// monUSD
|
|
257
292
|
];
|
|
258
293
|
var STOKE_VOTE_WHITELIST = [
|
|
259
294
|
"0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
|
|
@@ -279,9 +314,11 @@ export {
|
|
|
279
314
|
coreBaseConfig,
|
|
280
315
|
coreLineaConfig,
|
|
281
316
|
coreMainnetConfig,
|
|
317
|
+
coreMonadConfig,
|
|
282
318
|
coreNetworkConfigs,
|
|
283
319
|
corePlasmaConfig,
|
|
284
320
|
coreSonicConfig,
|
|
321
|
+
getAutopoolRpcUrl,
|
|
285
322
|
getCoreConfig,
|
|
286
323
|
getMainnetConfig,
|
|
287
324
|
getSubgraphUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokemak/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"viem": "2.
|
|
28
|
+
"viem": "2.46.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@tokemak/eslint-config": "0.0.0"
|