@tokemak/queries 0.4.0 → 0.6.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.
Files changed (38) hide show
  1. package/dist/functions/getAutopoolDayData.d.ts.map +1 -1
  2. package/dist/functions/getAutopoolHistory.d.ts.map +1 -1
  3. package/dist/functions/getAutopools.d.ts +3 -3
  4. package/dist/functions/getAutopools.d.ts.map +1 -1
  5. package/dist/functions/getAutopoolsRebalances.d.ts.map +1 -1
  6. package/dist/functions/getChainAutopools.d.ts +3 -3
  7. package/dist/functions/getChainAutopools.d.ts.map +1 -1
  8. package/dist/functions/getEthPriceAtBlock.d.ts +2 -2
  9. package/dist/functions/getEthPriceAtBlock.d.ts.map +1 -1
  10. package/dist/functions/getHistoricalTokenPrices.d.ts +1 -1
  11. package/dist/functions/getHistoricalTokenPrices.d.ts.map +1 -1
  12. package/dist/functions/getMultipleAutopoolRebalances.d.ts.map +1 -1
  13. package/dist/functions/getPoolsAndDestinations.d.ts +2 -2
  14. package/dist/functions/getPoolsAndDestinations.d.ts.map +1 -1
  15. package/dist/functions/getRebalanceStats.d.ts +7 -6
  16. package/dist/functions/getRebalanceStats.d.ts.map +1 -1
  17. package/dist/functions/getTokenPrices.d.ts +2 -487
  18. package/dist/functions/getTokenPrices.d.ts.map +1 -1
  19. package/dist/functions/getUserAutopoolBalanceChanges.d.ts.map +1 -1
  20. package/dist/functions/getUserAutopools.d.ts +1 -1
  21. package/dist/functions/getUserAutopools.d.ts.map +1 -1
  22. package/dist/functions/getUserSAuto.d.ts +1 -1
  23. package/dist/functions/getUserSAuto.d.ts.map +1 -1
  24. package/dist/functions/updateRebalanceStats.d.ts +2 -2
  25. package/dist/functions/updateRebalanceStats.d.ts.map +1 -1
  26. package/dist/index.js +362 -461
  27. package/dist/index.mjs +245 -361
  28. package/dist/safe.d.ts +9 -0
  29. package/dist/safe.d.ts.map +1 -0
  30. package/dist/safe.js +860 -0
  31. package/dist/safe.mjs +848 -0
  32. package/package.json +19 -8
  33. package/dist/functions/getBackupApr.d.ts +0 -2
  34. package/dist/functions/getBackupApr.d.ts.map +0 -1
  35. package/dist/functions/getBackupTokenPrices.d.ts +0 -6
  36. package/dist/functions/getBackupTokenPrices.d.ts.map +0 -1
  37. package/dist/functions/getPoolsAndDestinationsBackup.d.ts +0 -67
  38. package/dist/functions/getPoolsAndDestinationsBackup.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokemak/queries",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -14,6 +14,16 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "default": "./dist/index.js"
16
16
  }
17
+ },
18
+ "./safe": {
19
+ "import": {
20
+ "types": "./dist/safe.d.ts",
21
+ "default": "./dist/safe.mjs"
22
+ },
23
+ "require": {
24
+ "types": "./dist/safe.d.ts",
25
+ "default": "./dist/safe.js"
26
+ }
17
27
  }
18
28
  },
19
29
  "sideEffects": false,
@@ -25,18 +35,19 @@
25
35
  "access": "public"
26
36
  },
27
37
  "devDependencies": {
28
- "vitest": "2.1.9"
38
+ "esbuild": "0.27.7",
39
+ "vitest": "4.1.5"
29
40
  },
30
41
  "dependencies": {
31
42
  "@layerzerolabs/lz-v2-utilities": "3.0.4",
32
43
  "@merkl/api": "1.17.4",
33
44
  "graphql-request": "6.1.0",
34
- "@tokemak/constants": "0.2.0",
35
- "@tokemak/config": "0.3.0",
36
- "@tokemak/graph-cli": "0.3.0",
37
- "@tokemak/abis": "0.2.0",
38
- "@tokemak/tokenlist": "0.2.0",
39
- "@tokemak/utils": "0.2.0"
45
+ "@tokemak/utils": "0.2.1",
46
+ "@tokemak/constants": "0.3.0",
47
+ "@tokemak/graph-cli": "0.4.0",
48
+ "@tokemak/config": "0.4.0",
49
+ "@tokemak/tokenlist": "0.4.0",
50
+ "@tokemak/abis": "0.2.0"
40
51
  },
41
52
  "peerDependencies": {
42
53
  "@wagmi/core": ">=2.9.0",
@@ -1,2 +0,0 @@
1
- export declare const getBackupApr: (chainId: number, poolAddress: string) => Promise<number | null>;
2
- //# sourceMappingURL=getBackupApr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBackupApr.d.ts","sourceRoot":"","sources":["../../functions/getBackupApr.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAU,SAAS,MAAM,EAAE,aAAa,MAAM,2BAmBtE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { TokenPrices } from "./getTokenPrices";
2
- export declare const getBackupTokenPrices: () => Promise<{
3
- prices: TokenPrices;
4
- timestamp: number;
5
- } | undefined>;
6
- //# sourceMappingURL=getBackupTokenPrices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBackupTokenPrices.d.ts","sourceRoot":"","sources":["../../functions/getBackupTokenPrices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,oBAAoB;YAII,WAAW;eAAa,MAAM;cAQlE,CAAC"}
@@ -1,67 +0,0 @@
1
- import { SupportedChainIds } from "@tokemak/config";
2
- export declare const getPoolsAndDestinationsBackup: (chainId: SupportedChainIds) => Promise<({
3
- poolAddress: `0x${string}`;
4
- name: string;
5
- symbol: string;
6
- vaultType: `0x${string}`;
7
- baseAsset: `0x${string}`;
8
- streamingFeeBps: bigint;
9
- periodicFeeBps: bigint;
10
- feeHighMarkEnabled: boolean;
11
- feeSettingsIncomplete: boolean;
12
- isShutdown: boolean;
13
- shutdownStatus: number;
14
- rewarder: `0x${string}`;
15
- strategy: `0x${string}`;
16
- totalSupply: bigint;
17
- totalAssets: bigint;
18
- totalIdle: bigint;
19
- totalDebt: bigint;
20
- navPerShare: bigint;
21
- } & Record<string, {
22
- vaultAddress: `0x${string}`;
23
- exchangeName: string;
24
- totalSupply: bigint;
25
- lastSnapshotTimestamp: bigint;
26
- feeApr: bigint;
27
- lastDebtReportTime: bigint;
28
- minDebtValue: bigint;
29
- maxDebtValue: bigint;
30
- debtValueHeldByVault: bigint;
31
- queuedForRemoval: boolean;
32
- statsIncomplete: boolean;
33
- isShutdown: boolean;
34
- shutdownStatus: number;
35
- autoPoolOwnsShares: bigint;
36
- actualLPTotalSupply: bigint;
37
- dexPool: `0x${string}`;
38
- lpTokenAddress: `0x${string}`;
39
- lpTokenSymbol: string;
40
- lpTokenName: string;
41
- statsSafeLPTotalSupply: bigint;
42
- statsIncentiveCredits: number;
43
- compositeReturn: bigint;
44
- rewardsTokens: readonly {
45
- tokenAddress: `0x${string}`;
46
- }[];
47
- underlyingTokens: readonly {
48
- tokenAddress: `0x${string}`;
49
- }[];
50
- underlyingTokenSymbols: readonly {
51
- symbol: string;
52
- }[];
53
- lstStatsData: readonly {
54
- lastSnapshotTimestamp: bigint;
55
- baseApr: bigint;
56
- discount: bigint;
57
- discountHistory: readonly [number, number, number, number, number, number, number, number, number, number];
58
- discountTimestampByPercent: number;
59
- }[];
60
- underlyingTokenValueHeld: readonly {
61
- valueHeldInEth: bigint;
62
- }[];
63
- reservesInEth: readonly bigint[];
64
- statsPeriodFinishForRewards: readonly number[];
65
- statsAnnualizedRewardAmounts: readonly bigint[];
66
- }[]>)[] | undefined>;
67
- //# sourceMappingURL=getPoolsAndDestinationsBackup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPoolsAndDestinationsBackup.d.ts","sourceRoot":"","sources":["../../functions/getPoolsAndDestinationsBackup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,6BAA6B,GACxC,SAAS,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAW3B,CAAC"}