@tokemak/config 0.3.0 → 0.4.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 CHANGED
@@ -84,7 +84,8 @@ declare const isSupportedChainId: (chainId: number) => chainId is SupportedChain
84
84
 
85
85
  declare const getMainnetConfig: (chainId?: SupportedChainIds) => MainnetNetworkConfig;
86
86
 
87
- declare const getAutopoolRpcUrl: (chainId: number) => string;
87
+ type AutopoolRpcSlug = "ui" | "ui-cron-jobs";
88
+ declare const getAutopoolRpcUrl: (chainId: number, slug?: AutopoolRpcSlug) => string;
88
89
 
89
90
  declare const AUTOPOOLS_WHITELIST_PROD: string[];
90
91
  declare const STOKE_VOTE_WHITELIST: string[];
@@ -92,4 +93,4 @@ declare const DEPOSIT_ADDRESS_WHITELIST: {
92
93
  infinifiUSD: string[];
93
94
  };
94
95
 
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 };
96
+ export { AUTOPOOLS_WHITELIST_PROD, type AutopoolRpcSlug, 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
@@ -84,7 +84,8 @@ declare const isSupportedChainId: (chainId: number) => chainId is SupportedChain
84
84
 
85
85
  declare const getMainnetConfig: (chainId?: SupportedChainIds) => MainnetNetworkConfig;
86
86
 
87
- declare const getAutopoolRpcUrl: (chainId: number) => string;
87
+ type AutopoolRpcSlug = "ui" | "ui-cron-jobs";
88
+ declare const getAutopoolRpcUrl: (chainId: number, slug?: AutopoolRpcSlug) => string;
88
89
 
89
90
  declare const AUTOPOOLS_WHITELIST_PROD: string[];
90
91
  declare const STOKE_VOTE_WHITELIST: string[];
@@ -92,4 +93,4 @@ declare const DEPOSIT_ADDRESS_WHITELIST: {
92
93
  infinifiUSD: string[];
93
94
  };
94
95
 
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 };
96
+ export { AUTOPOOLS_WHITELIST_PROD, type AutopoolRpcSlug, 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
@@ -286,7 +286,7 @@ var getMainnetConfig = (chainId = import_chains10.mainnet.id) => {
286
286
  };
287
287
 
288
288
  // helpers/getAutopoolRpcUrl.ts
289
- var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
289
+ var getAutopoolRpcUrl = (chainId, slug = "ui") => `https://rpc.autopool-services.com/${chainId}/${slug}`;
290
290
 
291
291
  // whitelist/autopools.ts
292
292
  var AUTOPOOLS_WHITELIST_PROD = [
@@ -320,8 +320,10 @@ var AUTOPOOLS_WHITELIST_PROD = [
320
320
  "0x1ABD0403591bE494771115d74ED9E120530f356E",
321
321
  // anchrgUSD
322
322
  // "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
323
- "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
323
+ "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB",
324
324
  // monUSD
325
+ "0xc8Fdf193f4837BD2c181658488953afC9c044e1F"
326
+ // ottoUSD
325
327
  ];
326
328
  var STOKE_VOTE_WHITELIST = [
327
329
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
package/dist/index.mjs CHANGED
@@ -253,7 +253,7 @@ var getMainnetConfig = (chainId = mainnet3.id) => {
253
253
  };
254
254
 
255
255
  // helpers/getAutopoolRpcUrl.ts
256
- var getAutopoolRpcUrl = (chainId) => `https://rpc.autopool-services.com/${chainId}/ui`;
256
+ var getAutopoolRpcUrl = (chainId, slug = "ui") => `https://rpc.autopool-services.com/${chainId}/${slug}`;
257
257
 
258
258
  // whitelist/autopools.ts
259
259
  var AUTOPOOLS_WHITELIST_PROD = [
@@ -287,8 +287,10 @@ var AUTOPOOLS_WHITELIST_PROD = [
287
287
  "0x1ABD0403591bE494771115d74ED9E120530f356E",
288
288
  // anchrgUSD
289
289
  // "0xEc4F2F260CfaA25c4524c4cAC8eB4222f25Ff73e", // autoS
290
- "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB"
290
+ "0x288604ba0e9f08C22815eB36c2f4A49A44ee16bB",
291
291
  // monUSD
292
+ "0xc8Fdf193f4837BD2c181658488953afC9c044e1F"
293
+ // ottoUSD
292
294
  ];
293
295
  var STOKE_VOTE_WHITELIST = [
294
296
  "0x0A2b94F6871c1D7A32Fe58E1ab5e6deA2f114E56",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokemak/config",
3
- "version": "0.3.0",
3
+ "version": "0.4.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.46.3"
28
+ "viem": "2.48.11"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@tokemak/eslint-config": "0.0.0"