@tokemak/queries 0.5.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.
- package/dist/functions/getAutopoolDayData.d.ts.map +1 -1
- package/dist/functions/getAutopoolHistory.d.ts.map +1 -1
- package/dist/functions/getAutopools.d.ts +3 -3
- package/dist/functions/getAutopools.d.ts.map +1 -1
- package/dist/functions/getAutopoolsRebalances.d.ts.map +1 -1
- package/dist/functions/getChainAutopools.d.ts +3 -3
- package/dist/functions/getChainAutopools.d.ts.map +1 -1
- package/dist/functions/getEthPriceAtBlock.d.ts +2 -2
- package/dist/functions/getEthPriceAtBlock.d.ts.map +1 -1
- package/dist/functions/getMultipleAutopoolRebalances.d.ts.map +1 -1
- package/dist/functions/getPoolsAndDestinations.d.ts +2 -2
- package/dist/functions/getPoolsAndDestinations.d.ts.map +1 -1
- package/dist/functions/getRebalanceStats.d.ts +7 -6
- package/dist/functions/getRebalanceStats.d.ts.map +1 -1
- package/dist/functions/getTokenPrices.d.ts +1 -1
- package/dist/functions/getTokenPrices.d.ts.map +1 -1
- package/dist/functions/getUserAutopoolBalanceChanges.d.ts.map +1 -1
- package/dist/functions/getUserAutopools.d.ts +1 -1
- package/dist/functions/getUserAutopools.d.ts.map +1 -1
- package/dist/functions/getUserSAuto.d.ts +1 -1
- package/dist/functions/getUserSAuto.d.ts.map +1 -1
- package/dist/functions/updateRebalanceStats.d.ts +2 -2
- package/dist/functions/updateRebalanceStats.d.ts.map +1 -1
- package/dist/index.js +290 -358
- package/dist/index.mjs +180 -251
- package/dist/safe.d.ts +9 -0
- package/dist/safe.d.ts.map +1 -0
- package/dist/safe.js +860 -0
- package/dist/safe.mjs +848 -0
- package/package.json +27 -16
- package/dist/functions/getBackupApr.d.ts +0 -2
- package/dist/functions/getBackupApr.d.ts.map +0 -1
- package/dist/functions/getBackupTokenPrices.d.ts +0 -6
- package/dist/functions/getBackupTokenPrices.d.ts.map +0 -1
- package/dist/functions/getPoolsAndDestinationsBackup.d.ts +0 -67
- package/dist/functions/getPoolsAndDestinationsBackup.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolDayData.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolDayData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,UAAS,iBAAqB,EAC9B,iBAAgB,MAAiC;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolDayData.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolDayData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,UAAS,iBAAqB,EAC9B,iBAAgB,MAAiC;;;;;;;;;;;;;;;;;kBAgEi/8iD,CAAC;;;;IADpi9iD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolHistory.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,eAAO,MAAM,kBAAkB,GAAU,UAAU,SAAS;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolHistory.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,eAAO,MAAM,kBAAkB,GAAU,UAAU,SAAS;;;;;;;;;;;;;;;;;kBAGm0gjD,CAAC;;;;IAD/3gjD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from "wagmi";
|
|
1
|
+
import { Config } from "@wagmi/core";
|
|
2
2
|
import { TokenPrices } from "./getTokenPrices";
|
|
3
|
-
export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestnet
|
|
3
|
+
export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestnet }: {
|
|
4
4
|
prices: TokenPrices;
|
|
5
5
|
includeTestnet?: boolean;
|
|
6
6
|
}) => Promise<{
|
|
@@ -222,7 +222,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
222
222
|
}[];
|
|
223
223
|
chain: import("@tokemak/tokenlist").INetwork | undefined;
|
|
224
224
|
apr: {
|
|
225
|
-
base: number;
|
|
225
|
+
base: number | null;
|
|
226
226
|
extraAprs: import("./getChainAutopools").ExtraReward[];
|
|
227
227
|
combined: number;
|
|
228
228
|
hasExtraAprs: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopools.d.ts","sourceRoot":"","sources":["../../functions/getAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getAutopools.d.ts","sourceRoot":"","sources":["../../functions/getAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmB,MAAM,aAAa,CAAC;AAMtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,4BAGG;IACD,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCADY,CAAC;0BAGZ,CAAC;;;;;wBAKI,CAAC;2BACA,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0B4kjjD,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;gCAnChnjjD,CAAC;sBAGZ,CAAC;;;;;oBAKI,CAAC;uBACA,CAAD;;;;;;;;;;;;;gCATM,CAAC;sBAGZ,CAAC;;;;;oBAKI,CAAC;uBACA,CAAD;;;;;;;;;;;;;;;;;gCATM,CAAC;sBAGZ,CAAC;;;;;oBAKI,CAAC;uBACA,CAAD;;;;;;;;;;;;;;;;;;;;;;;;gCATM,CAAC;sBAGZ,CAAC;;;;;oBAKI,CAAC;uBACA,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAsBR,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAClE,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolsRebalances.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolsRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,sBAAsB,GACjC,UAAS,iBAAqB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolsRebalances.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolsRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,sBAAsB,GACjC,UAAS,iBAAqB;;;;;;;;;kBAOm8pjD,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;;kBAA4G,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;IADxwsjD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PublicClient } from "viem";
|
|
2
2
|
import { SupportedChainIds } from "@tokemak/config";
|
|
3
3
|
import { IProtocol, IToken } from "@tokemak/tokenlist";
|
|
4
4
|
import { TokenPrices } from "./getTokenPrices";
|
|
@@ -9,7 +9,7 @@ export type Currencies = TokenPrices & {
|
|
|
9
9
|
export type ExtraReward = IToken & {
|
|
10
10
|
apr: number;
|
|
11
11
|
};
|
|
12
|
-
export declare const getChainAutopools: (
|
|
12
|
+
export declare const getChainAutopools: (client: PublicClient, { chainId, prices }: {
|
|
13
13
|
chainId: SupportedChainIds;
|
|
14
14
|
prices: TokenPrices;
|
|
15
15
|
}) => Promise<{
|
|
@@ -231,7 +231,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices
|
|
|
231
231
|
}[];
|
|
232
232
|
chain: import("@tokemak/tokenlist").INetwork | undefined;
|
|
233
233
|
apr: {
|
|
234
|
-
base: number;
|
|
234
|
+
base: number | null;
|
|
235
235
|
extraAprs: ExtraReward[];
|
|
236
236
|
combined: number;
|
|
237
237
|
hasExtraAprs: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainAutopools.d.ts","sourceRoot":"","sources":["../../functions/getChainAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getChainAutopools.d.ts","sourceRoot":"","sources":["../../functions/getChainAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAqBpD,OAAO,EAIL,SAAS,EACT,MAAM,EAMP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAW/C,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,YAAY,EACpB,qBAGG;IACD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAdU,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;;;oCA7BqB,CAAC;0BACxB,CAAC;;;;;wBAIJ,CAAC;2BAEF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgiBwvhiD,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;gCAviBxwhiD,CAAC;sBACxB,CAAC;;;;;oBAIJ,CAAC;uBAEF,CAAC;;;;;;;;;;;;;gCAP0B,CAAC;sBACxB,CAAC;;;;;oBAIJ,CAAC;uBAEF,CAAC;;;;;;;;;;;;;;;;;gCAP0B,CAAC;sBACxB,CAAC;;;;;oBAIJ,CAAC;uBAEF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;gCAP0B,CAAC;sBACxB,CAAC;;;;;oBAIJ,CAAC;uBAEF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAqBK,MAAM;iBACZ,MAAM;;;;;;;;;;;;;;;;;;;;;uBADA,MAAM;iBACZ,MAAM;;;;;;;;;;;;;;;;;;;;;;mBADA,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;mBADA,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;IAygBZ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SupportedChainIds } from "@tokemak/config";
|
|
2
|
-
import {
|
|
3
|
-
export declare const getEthPriceAtBlock: (
|
|
2
|
+
import type { PublicClient } from "viem";
|
|
3
|
+
export declare const getEthPriceAtBlock: (client: PublicClient, blockNumber: bigint, chainId: SupportedChainIds) => Promise<bigint>;
|
|
4
4
|
//# sourceMappingURL=getEthPriceAtBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEthPriceAtBlock.d.ts","sourceRoot":"","sources":["../../functions/getEthPriceAtBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getEthPriceAtBlock.d.ts","sourceRoot":"","sources":["../../functions/getEthPriceAtBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,YAAY,EACpB,aAAa,MAAM,EACnB,SAAS,iBAAiB,oBAoB3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipleAutopoolRebalances.d.ts","sourceRoot":"","sources":["../../functions/getMultipleAutopoolRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EAAE,EACd,UAAS,iBAAqB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getMultipleAutopoolRebalances.d.ts","sourceRoot":"","sources":["../../functions/getMultipleAutopoolRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EAAE,EACd,UAAS,iBAAqB;;;;;;;;;kBASgmujD,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;;kBAA4G,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;IADr6wjD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SupportedChainIds } from "@tokemak/config";
|
|
2
|
-
import {
|
|
3
|
-
export declare const getPoolsAndDestinations: (
|
|
2
|
+
import type { PublicClient } from "viem";
|
|
3
|
+
export declare const getPoolsAndDestinations: (client: PublicClient, { chainId }: {
|
|
4
4
|
chainId: SupportedChainIds;
|
|
5
5
|
}) => Promise<({
|
|
6
6
|
poolAddress: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPoolsAndDestinations.d.ts","sourceRoot":"","sources":["../../functions/getPoolsAndDestinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getPoolsAndDestinations.d.ts","sourceRoot":"","sources":["../../functions/getPoolsAndDestinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC,eAAO,MAAM,uBAAuB,GAClC,QAAQ,YAAY,EACpB,aAAa;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuB5C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,OAAO,CACrD,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Address } from "viem";
|
|
1
|
+
import { SupportedChainIds } from "@tokemak/config";
|
|
2
|
+
import { Address, type PublicClient } from "viem";
|
|
3
|
+
export type ChainClientGetter = (chainId: SupportedChainIds) => PublicClient;
|
|
3
4
|
export declare const BATCH_SIZE = 500;
|
|
4
5
|
export type IRebalance = {
|
|
5
6
|
timestamp: number;
|
|
@@ -22,15 +23,15 @@ export type RawRebalance = {
|
|
|
22
23
|
autopool: string;
|
|
23
24
|
};
|
|
24
25
|
export declare const fetchChainRebalances: (chainId: number) => Promise<RawRebalance[]>;
|
|
25
|
-
export declare const getRebalanceValueUsd: (rebalance: RawRebalance, chainId: number,
|
|
26
|
-
export declare const processRebalance: (rebalance: RawRebalance, chainId: number,
|
|
27
|
-
export declare const processRebalancesInBatches: (rebalances: RawRebalance[], chainId: number,
|
|
26
|
+
export declare const getRebalanceValueUsd: (rebalance: RawRebalance, chainId: number, client: PublicClient) => Promise<number | null>;
|
|
27
|
+
export declare const processRebalance: (rebalance: RawRebalance, chainId: number, client: PublicClient) => Promise<IRebalance>;
|
|
28
|
+
export declare const processRebalancesInBatches: (rebalances: RawRebalance[], chainId: number, client: PublicClient) => Promise<IRebalance[]>;
|
|
28
29
|
export declare const calculateRebalanceStats: (rebalances: IRebalance[]) => {
|
|
29
30
|
totalRebalances: number;
|
|
30
31
|
totalRebalanceVolume: number;
|
|
31
32
|
rebalances: IRebalance[];
|
|
32
33
|
};
|
|
33
|
-
export declare const getRebalanceStats: (
|
|
34
|
+
export declare const getRebalanceStats: (getClient: ChainClientGetter, { includeTestnet }: {
|
|
34
35
|
includeTestnet?: boolean;
|
|
35
36
|
}) => Promise<{
|
|
36
37
|
totalRebalances: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRebalanceStats.d.ts","sourceRoot":"","sources":["../../functions/getRebalanceStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRebalanceStats.d.ts","sourceRoot":"","sources":["../../functions/getRebalanceStats.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAKlD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,iBAAiB,KAAK,YAAY,CAAC;AAG7E,eAAO,MAAM,UAAU,MAAM,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACR,EAAE,EAAE,OAAO,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,KACd,OAAO,CAAC,YAAY,EAAE,CAaxB,CAAC;AAuBF,eAAO,MAAM,oBAAoB,GAC/B,WAAW,YAAY,EACvB,SAAS,MAAM,EACf,QAAQ,YAAY,KACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAoBvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,WAAW,YAAY,EACvB,SAAS,MAAM,EACf,QAAQ,YAAY,KACnB,OAAO,CAAC,UAAU,CAgCpB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,YAAY,YAAY,EAAE,EAC1B,SAAS,MAAM,EACf,QAAQ,YAAY,KACnB,OAAO,CAAC,UAAU,EAAE,CAwBtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU,EAAE;;;;CAY/D,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,WAAW,iBAAiB,EAC5B,oBAEG;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;EAeF,CAAC"}
|
|
@@ -3,7 +3,7 @@ type TokenSymbol = (typeof PRICED_TOKENS)[number]["symbol"] | (typeof BASE_ASSET
|
|
|
3
3
|
export type TokenPrices = {
|
|
4
4
|
[K in TokenSymbol]: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const getTokenPrices: (
|
|
6
|
+
export declare const getTokenPrices: () => Promise<{
|
|
7
7
|
prices: TokenPrices | undefined;
|
|
8
8
|
timestamp: number | undefined;
|
|
9
9
|
isStale: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTokenPrices.d.ts","sourceRoot":"","sources":["../../functions/getTokenPrices.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"getTokenPrices.d.ts","sourceRoot":"","sources":["../../functions/getTokenPrices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGhF,KAAK,WAAW,GACZ,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GACxC,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GACtC,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,WAAW,GAAG,MAAM;CAC3B,CAAC;AAWF,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC;IAC9C,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAmDA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserAutopoolBalanceChanges.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopoolBalanceChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,6BAA6B,GAAU,6BAGjD;IACD,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;;;;;
|
|
1
|
+
{"version":3,"file":"getUserAutopoolBalanceChanges.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopoolBalanceChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,6BAA6B,GAAU,6BAGjD;IACD,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;;;;;kBA0B452jD,CAAC;;;;;IAD752jD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { TokenPrices } from "./getTokenPrices";
|
|
|
4
4
|
import { Config } from "wagmi";
|
|
5
5
|
import { IAutopools } from "./getAutopools";
|
|
6
6
|
import { IUserActivity } from "./getUserActivity";
|
|
7
|
-
export declare const getUserAutopools: ({ address, includeTestnet, autopools, userActivity, prices, config
|
|
7
|
+
export declare const getUserAutopools: ({ address, includeTestnet, autopools, userActivity, prices, config }: {
|
|
8
8
|
address: Address;
|
|
9
9
|
includeTestnet?: boolean;
|
|
10
10
|
autopools: IAutopools;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserAutopools.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAa/B,OAAO,EAAa,MAAM,EAAiB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAgClD,eAAO,MAAM,gBAAgB,GAAU,
|
|
1
|
+
{"version":3,"file":"getUserAutopools.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAa/B,OAAO,EAAa,MAAM,EAAiB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAgClD,eAAO,MAAM,gBAAgB,GAAU,sEAOpC;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE,aAAa,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;;aAuRkC,MAAM;;;;;;;;;;;;;;;;;;;;;aA+BxB,MAAM;eACJ,MAAM;mBACF,MAAM;;;aAiCM,MAAM;;;aAbN,MAAM;;;;;qBA1WZ,MAAM;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;qBAAN,MAAM;;;qBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAnBjB,CAAC;sBAA6B,CAAC;;;;;oBAGvB,CAAC;uBAEtB,CAAC;;;;;;;;;;;;;;;;;;;oCALY,CAAC;0BAA6B,CAAC;;;;;wBAGvB,CAAC;2BAEtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCALY,CAAC;0BAA6B,CAAC;;;;;wBAGvB,CAAC;2BAEtB,CAAC;;;;;;;;;;;;cAyfL,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CACtC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAC7C,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
2
|
import { Config } from "wagmi";
|
|
3
|
-
export declare const getUserSAuto: (wagmiConfig: Config, { address, autoPrice
|
|
3
|
+
export declare const getUserSAuto: (wagmiConfig: Config, { address, autoPrice }: {
|
|
4
4
|
address: Address;
|
|
5
5
|
autoPrice: number;
|
|
6
6
|
}) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserSAuto.d.ts","sourceRoot":"","sources":["../../functions/getUserSAuto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getUserSAuto.d.ts","sourceRoot":"","sources":["../../functions/getUserSAuto.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAe,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,wBAGG;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;;;;;;;;;;;;;;;;;;;;;;;;;;SA+KF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from "wagmi";
|
|
1
|
+
import { Config } from "@wagmi/core";
|
|
2
2
|
import { IRebalance } from "./getRebalanceStats";
|
|
3
|
-
export declare const updateRebalanceStats: (wagmiConfig: Config, { currentRebalances, includeTestnet
|
|
3
|
+
export declare const updateRebalanceStats: (wagmiConfig: Config, { currentRebalances, includeTestnet }: {
|
|
4
4
|
currentRebalances: IRebalance[];
|
|
5
5
|
includeTestnet?: boolean;
|
|
6
6
|
}) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateRebalanceStats.d.ts","sourceRoot":"","sources":["../../functions/updateRebalanceStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateRebalanceStats.d.ts","sourceRoot":"","sources":["../../functions/updateRebalanceStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmB,MAAM,aAAa,CAAC;AAGtD,OAAO,EACL,UAAU,EAIX,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,uCAGG;IACD,iBAAiB,EAAE,UAAU,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;EAqCF,CAAC"}
|