@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.
- 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/getHistoricalTokenPrices.d.ts +1 -1
- package/dist/functions/getHistoricalTokenPrices.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 +2 -487
- 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 +362 -461
- package/dist/index.mjs +245 -361
- 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 +19 -8
- 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":"getHistoricalTokenPrices.d.ts","sourceRoot":"","sources":["../../functions/getHistoricalTokenPrices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,SAAS,
|
|
1
|
+
{"version":3,"file":"getHistoricalTokenPrices.d.ts","sourceRoot":"","sources":["../../functions/getHistoricalTokenPrices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,SAAS,EAAa,MAAM,oBAAoB,CAAC;AAIvE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,KAAK,CAAC;AAEjD,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAOF,eAAO,MAAM,4BAA4B,GACvC,aAAa,MAAM,KAClB,OAAO,CAAC,oBAAoB,EAAE,CAWhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,qBAAqB,EAAE,CAqFxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE;SAEL,GAAG,IAAI,gBAAgB,GAAG;aACxB,GAAG,IAAI,gBAAgB,GAAG,MAAM;SAClC;KACF,CAAC;CACH,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"}
|
|
@@ -1,494 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
readonly symbol: "ETH";
|
|
3
|
-
readonly coinGeckoId: "ethereum";
|
|
4
|
-
readonly address: import("abitype").Address;
|
|
5
|
-
readonly chainId: number;
|
|
6
|
-
readonly decimals: number;
|
|
7
|
-
readonly logoURI: string;
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly audits?: string;
|
|
10
|
-
readonly extensions?: {
|
|
11
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
12
|
-
bridgeInfo?: {
|
|
13
|
-
[chainId: number]: {
|
|
14
|
-
tokenAddress: import("abitype").Address;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
rebasing?: boolean;
|
|
18
|
-
parentAsset?: string;
|
|
19
|
-
};
|
|
20
|
-
}, {
|
|
21
|
-
readonly symbol: "PXETH";
|
|
22
|
-
readonly coinGeckoId: "dinero-staked-eth";
|
|
23
|
-
readonly address: import("abitype").Address;
|
|
24
|
-
readonly chainId: number;
|
|
25
|
-
readonly decimals: number;
|
|
26
|
-
readonly logoURI: string;
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly audits?: string;
|
|
29
|
-
readonly extensions?: {
|
|
30
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
31
|
-
bridgeInfo?: {
|
|
32
|
-
[chainId: number]: {
|
|
33
|
-
tokenAddress: import("abitype").Address;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
rebasing?: boolean;
|
|
37
|
-
parentAsset?: string;
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
readonly symbol: "USDC";
|
|
41
|
-
readonly coinGeckoId: "usd-coin";
|
|
42
|
-
readonly address: import("abitype").Address;
|
|
43
|
-
readonly chainId: number;
|
|
44
|
-
readonly decimals: number;
|
|
45
|
-
readonly logoURI: string;
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly audits?: string;
|
|
48
|
-
readonly extensions?: {
|
|
49
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
50
|
-
bridgeInfo?: {
|
|
51
|
-
[chainId: number]: {
|
|
52
|
-
tokenAddress: import("abitype").Address;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
rebasing?: boolean;
|
|
56
|
-
parentAsset?: string;
|
|
57
|
-
};
|
|
58
|
-
}, {
|
|
59
|
-
readonly symbol: "DOLA";
|
|
60
|
-
readonly coinGeckoId: "dola-usd";
|
|
61
|
-
readonly address: import("abitype").Address;
|
|
62
|
-
readonly chainId: number;
|
|
63
|
-
readonly decimals: number;
|
|
64
|
-
readonly logoURI: string;
|
|
65
|
-
readonly name: string;
|
|
66
|
-
readonly audits?: string;
|
|
67
|
-
readonly extensions?: {
|
|
68
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
69
|
-
bridgeInfo?: {
|
|
70
|
-
[chainId: number]: {
|
|
71
|
-
tokenAddress: import("abitype").Address;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
rebasing?: boolean;
|
|
75
|
-
parentAsset?: string;
|
|
76
|
-
};
|
|
77
|
-
}, {
|
|
78
|
-
readonly symbol: "S";
|
|
79
|
-
readonly address: import("abitype").Address;
|
|
80
|
-
readonly chainId: number;
|
|
81
|
-
readonly decimals: number;
|
|
82
|
-
readonly logoURI: string;
|
|
83
|
-
readonly name: string;
|
|
84
|
-
readonly audits?: string;
|
|
85
|
-
readonly extensions?: {
|
|
86
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
87
|
-
bridgeInfo?: {
|
|
88
|
-
[chainId: number]: {
|
|
89
|
-
tokenAddress: import("abitype").Address;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
rebasing?: boolean;
|
|
93
|
-
parentAsset?: string;
|
|
94
|
-
};
|
|
95
|
-
}, {
|
|
96
|
-
readonly symbol: "EURC";
|
|
97
|
-
readonly coinGeckoId: "euro-coin";
|
|
98
|
-
readonly address: import("abitype").Address;
|
|
99
|
-
readonly chainId: number;
|
|
100
|
-
readonly decimals: number;
|
|
101
|
-
readonly logoURI: string;
|
|
102
|
-
readonly name: string;
|
|
103
|
-
readonly audits?: string;
|
|
104
|
-
readonly extensions?: {
|
|
105
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
106
|
-
bridgeInfo?: {
|
|
107
|
-
[chainId: number]: {
|
|
108
|
-
tokenAddress: import("abitype").Address;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
rebasing?: boolean;
|
|
112
|
-
parentAsset?: string;
|
|
113
|
-
};
|
|
114
|
-
}, {
|
|
115
|
-
readonly symbol: "USDT";
|
|
116
|
-
readonly coinGeckoId: "tether";
|
|
117
|
-
readonly address: import("abitype").Address;
|
|
118
|
-
readonly chainId: number;
|
|
119
|
-
readonly decimals: number;
|
|
120
|
-
readonly logoURI: string;
|
|
121
|
-
readonly name: string;
|
|
122
|
-
readonly audits?: string;
|
|
123
|
-
readonly extensions?: {
|
|
124
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
125
|
-
bridgeInfo?: {
|
|
126
|
-
[chainId: number]: {
|
|
127
|
-
tokenAddress: import("abitype").Address;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
rebasing?: boolean;
|
|
131
|
-
parentAsset?: string;
|
|
132
|
-
};
|
|
133
|
-
}, {
|
|
134
|
-
readonly symbol: "USDT0";
|
|
135
|
-
readonly coinGeckoId: "tether";
|
|
136
|
-
readonly address: import("abitype").Address;
|
|
137
|
-
readonly chainId: number;
|
|
138
|
-
readonly decimals: number;
|
|
139
|
-
readonly logoURI: string;
|
|
140
|
-
readonly name: string;
|
|
141
|
-
readonly audits?: string;
|
|
142
|
-
readonly extensions?: {
|
|
143
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
144
|
-
bridgeInfo?: {
|
|
145
|
-
[chainId: number]: {
|
|
146
|
-
tokenAddress: import("abitype").Address;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
rebasing?: boolean;
|
|
150
|
-
parentAsset?: string;
|
|
151
|
-
};
|
|
152
|
-
}];
|
|
153
|
-
export declare const PRICED_TOKENS: readonly [{
|
|
154
|
-
readonly symbol: "ETH";
|
|
155
|
-
readonly coinGeckoId: "ethereum";
|
|
156
|
-
readonly address: import("abitype").Address;
|
|
157
|
-
readonly chainId: number;
|
|
158
|
-
readonly decimals: number;
|
|
159
|
-
readonly logoURI: string;
|
|
160
|
-
readonly name: string;
|
|
161
|
-
readonly audits?: string;
|
|
162
|
-
readonly extensions?: {
|
|
163
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
164
|
-
bridgeInfo?: {
|
|
165
|
-
[chainId: number]: {
|
|
166
|
-
tokenAddress: import("abitype").Address;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
rebasing?: boolean;
|
|
170
|
-
parentAsset?: string;
|
|
171
|
-
};
|
|
172
|
-
}, {
|
|
173
|
-
readonly symbol: "PXETH";
|
|
174
|
-
readonly coinGeckoId: "dinero-staked-eth";
|
|
175
|
-
readonly address: import("abitype").Address;
|
|
176
|
-
readonly chainId: number;
|
|
177
|
-
readonly decimals: number;
|
|
178
|
-
readonly logoURI: string;
|
|
179
|
-
readonly name: string;
|
|
180
|
-
readonly audits?: string;
|
|
181
|
-
readonly extensions?: {
|
|
182
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
183
|
-
bridgeInfo?: {
|
|
184
|
-
[chainId: number]: {
|
|
185
|
-
tokenAddress: import("abitype").Address;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
rebasing?: boolean;
|
|
189
|
-
parentAsset?: string;
|
|
190
|
-
};
|
|
191
|
-
}, {
|
|
192
|
-
readonly symbol: "USDC";
|
|
193
|
-
readonly coinGeckoId: "usd-coin";
|
|
194
|
-
readonly address: import("abitype").Address;
|
|
195
|
-
readonly chainId: number;
|
|
196
|
-
readonly decimals: number;
|
|
197
|
-
readonly logoURI: string;
|
|
198
|
-
readonly name: string;
|
|
199
|
-
readonly audits?: string;
|
|
200
|
-
readonly extensions?: {
|
|
201
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
202
|
-
bridgeInfo?: {
|
|
203
|
-
[chainId: number]: {
|
|
204
|
-
tokenAddress: import("abitype").Address;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
rebasing?: boolean;
|
|
208
|
-
parentAsset?: string;
|
|
209
|
-
};
|
|
210
|
-
}, {
|
|
211
|
-
readonly symbol: "DOLA";
|
|
212
|
-
readonly coinGeckoId: "dola-usd";
|
|
213
|
-
readonly address: import("abitype").Address;
|
|
214
|
-
readonly chainId: number;
|
|
215
|
-
readonly decimals: number;
|
|
216
|
-
readonly logoURI: string;
|
|
217
|
-
readonly name: string;
|
|
218
|
-
readonly audits?: string;
|
|
219
|
-
readonly extensions?: {
|
|
220
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
221
|
-
bridgeInfo?: {
|
|
222
|
-
[chainId: number]: {
|
|
223
|
-
tokenAddress: import("abitype").Address;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
rebasing?: boolean;
|
|
227
|
-
parentAsset?: string;
|
|
228
|
-
};
|
|
229
|
-
}, {
|
|
230
|
-
readonly symbol: "S";
|
|
231
|
-
readonly address: import("abitype").Address;
|
|
232
|
-
readonly chainId: number;
|
|
233
|
-
readonly decimals: number;
|
|
234
|
-
readonly logoURI: string;
|
|
235
|
-
readonly name: string;
|
|
236
|
-
readonly audits?: string;
|
|
237
|
-
readonly extensions?: {
|
|
238
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
239
|
-
bridgeInfo?: {
|
|
240
|
-
[chainId: number]: {
|
|
241
|
-
tokenAddress: import("abitype").Address;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
rebasing?: boolean;
|
|
245
|
-
parentAsset?: string;
|
|
246
|
-
};
|
|
247
|
-
}, {
|
|
248
|
-
readonly symbol: "EURC";
|
|
249
|
-
readonly coinGeckoId: "euro-coin";
|
|
250
|
-
readonly address: import("abitype").Address;
|
|
251
|
-
readonly chainId: number;
|
|
252
|
-
readonly decimals: number;
|
|
253
|
-
readonly logoURI: string;
|
|
254
|
-
readonly name: string;
|
|
255
|
-
readonly audits?: string;
|
|
256
|
-
readonly extensions?: {
|
|
257
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
258
|
-
bridgeInfo?: {
|
|
259
|
-
[chainId: number]: {
|
|
260
|
-
tokenAddress: import("abitype").Address;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
rebasing?: boolean;
|
|
264
|
-
parentAsset?: string;
|
|
265
|
-
};
|
|
266
|
-
}, {
|
|
267
|
-
readonly symbol: "USDT";
|
|
268
|
-
readonly coinGeckoId: "tether";
|
|
269
|
-
readonly address: import("abitype").Address;
|
|
270
|
-
readonly chainId: number;
|
|
271
|
-
readonly decimals: number;
|
|
272
|
-
readonly logoURI: string;
|
|
273
|
-
readonly name: string;
|
|
274
|
-
readonly audits?: string;
|
|
275
|
-
readonly extensions?: {
|
|
276
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
277
|
-
bridgeInfo?: {
|
|
278
|
-
[chainId: number]: {
|
|
279
|
-
tokenAddress: import("abitype").Address;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
rebasing?: boolean;
|
|
283
|
-
parentAsset?: string;
|
|
284
|
-
};
|
|
285
|
-
}, {
|
|
286
|
-
readonly symbol: "USDT0";
|
|
287
|
-
readonly coinGeckoId: "tether";
|
|
288
|
-
readonly address: import("abitype").Address;
|
|
289
|
-
readonly chainId: number;
|
|
290
|
-
readonly decimals: number;
|
|
291
|
-
readonly logoURI: string;
|
|
292
|
-
readonly name: string;
|
|
293
|
-
readonly audits?: string;
|
|
294
|
-
readonly extensions?: {
|
|
295
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
296
|
-
bridgeInfo?: {
|
|
297
|
-
[chainId: number]: {
|
|
298
|
-
tokenAddress: import("abitype").Address;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
rebasing?: boolean;
|
|
302
|
-
parentAsset?: string;
|
|
303
|
-
};
|
|
304
|
-
}, {
|
|
305
|
-
readonly symbol: "TOKE";
|
|
306
|
-
readonly address: import("abitype").Address;
|
|
307
|
-
readonly chainId: number;
|
|
308
|
-
readonly decimals: number;
|
|
309
|
-
readonly logoURI: string;
|
|
310
|
-
readonly name: string;
|
|
311
|
-
readonly audits?: string;
|
|
312
|
-
readonly extensions?: {
|
|
313
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
314
|
-
bridgeInfo?: {
|
|
315
|
-
[chainId: number]: {
|
|
316
|
-
tokenAddress: import("abitype").Address;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
rebasing?: boolean;
|
|
320
|
-
parentAsset?: string;
|
|
321
|
-
};
|
|
322
|
-
}, {
|
|
323
|
-
readonly symbol: "AUTO";
|
|
324
|
-
readonly address: import("abitype").Address;
|
|
325
|
-
readonly chainId: number;
|
|
326
|
-
readonly decimals: number;
|
|
327
|
-
readonly logoURI: string;
|
|
328
|
-
readonly name: string;
|
|
329
|
-
readonly audits?: string;
|
|
330
|
-
readonly extensions?: {
|
|
331
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
332
|
-
bridgeInfo?: {
|
|
333
|
-
[chainId: number]: {
|
|
334
|
-
tokenAddress: import("abitype").Address;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
rebasing?: boolean;
|
|
338
|
-
parentAsset?: string;
|
|
339
|
-
};
|
|
340
|
-
}, {
|
|
341
|
-
readonly symbol: "SILO";
|
|
342
|
-
readonly address: import("abitype").Address;
|
|
343
|
-
readonly chainId: number;
|
|
344
|
-
readonly decimals: number;
|
|
345
|
-
readonly logoURI: string;
|
|
346
|
-
readonly name: string;
|
|
347
|
-
readonly audits?: string;
|
|
348
|
-
readonly extensions?: {
|
|
349
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
350
|
-
bridgeInfo?: {
|
|
351
|
-
[chainId: number]: {
|
|
352
|
-
tokenAddress: import("abitype").Address;
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
rebasing?: boolean;
|
|
356
|
-
parentAsset?: string;
|
|
357
|
-
};
|
|
358
|
-
}, {
|
|
359
|
-
readonly address: `0x${string}`;
|
|
360
|
-
readonly symbol: "XPL";
|
|
361
|
-
readonly chainId: number;
|
|
362
|
-
readonly decimals: number;
|
|
363
|
-
readonly logoURI: string;
|
|
364
|
-
readonly name: string;
|
|
365
|
-
readonly audits?: string;
|
|
366
|
-
readonly extensions?: {
|
|
367
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
368
|
-
bridgeInfo?: {
|
|
369
|
-
[chainId: number]: {
|
|
370
|
-
tokenAddress: import("abitype").Address;
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
rebasing?: boolean;
|
|
374
|
-
parentAsset?: string;
|
|
375
|
-
};
|
|
376
|
-
}, {
|
|
377
|
-
readonly address: `0x${string}`;
|
|
378
|
-
readonly symbol: "MON";
|
|
379
|
-
readonly chainId: number;
|
|
380
|
-
readonly decimals: number;
|
|
381
|
-
readonly logoURI: string;
|
|
382
|
-
readonly name: string;
|
|
383
|
-
readonly audits?: string;
|
|
384
|
-
readonly extensions?: {
|
|
385
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
386
|
-
bridgeInfo?: {
|
|
387
|
-
[chainId: number]: {
|
|
388
|
-
tokenAddress: import("abitype").Address;
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
rebasing?: boolean;
|
|
392
|
-
parentAsset?: string;
|
|
393
|
-
};
|
|
394
|
-
}, {
|
|
395
|
-
readonly symbol: "USDT0";
|
|
396
|
-
readonly address: import("abitype").Address;
|
|
397
|
-
readonly chainId: number;
|
|
398
|
-
readonly decimals: number;
|
|
399
|
-
readonly logoURI: string;
|
|
400
|
-
readonly name: string;
|
|
401
|
-
readonly audits?: string;
|
|
402
|
-
readonly extensions?: {
|
|
403
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
404
|
-
bridgeInfo?: {
|
|
405
|
-
[chainId: number]: {
|
|
406
|
-
tokenAddress: import("abitype").Address;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
rebasing?: boolean;
|
|
410
|
-
parentAsset?: string;
|
|
411
|
-
};
|
|
412
|
-
}];
|
|
413
|
-
export type BaseAsset = (typeof BASE_ASSETS)[number]["symbol"];
|
|
414
|
-
declare const WRAPPED_TOKENS: readonly [{
|
|
415
|
-
readonly symbol: "WETH";
|
|
416
|
-
readonly address: import("abitype").Address;
|
|
417
|
-
readonly chainId: number;
|
|
418
|
-
readonly decimals: number;
|
|
419
|
-
readonly logoURI: string;
|
|
420
|
-
readonly name: string;
|
|
421
|
-
readonly audits?: string;
|
|
422
|
-
readonly extensions?: {
|
|
423
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
424
|
-
bridgeInfo?: {
|
|
425
|
-
[chainId: number]: {
|
|
426
|
-
tokenAddress: import("abitype").Address;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
rebasing?: boolean;
|
|
430
|
-
parentAsset?: string;
|
|
431
|
-
};
|
|
432
|
-
}, {
|
|
433
|
-
readonly symbol: "WS";
|
|
434
|
-
readonly address: import("abitype").Address;
|
|
435
|
-
readonly chainId: number;
|
|
436
|
-
readonly decimals: number;
|
|
437
|
-
readonly logoURI: string;
|
|
438
|
-
readonly name: string;
|
|
439
|
-
readonly audits?: string;
|
|
440
|
-
readonly extensions?: {
|
|
441
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
442
|
-
bridgeInfo?: {
|
|
443
|
-
[chainId: number]: {
|
|
444
|
-
tokenAddress: import("abitype").Address;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
rebasing?: boolean;
|
|
448
|
-
parentAsset?: string;
|
|
449
|
-
};
|
|
450
|
-
}, {
|
|
451
|
-
readonly symbol: "WXPL";
|
|
452
|
-
readonly address: import("abitype").Address;
|
|
453
|
-
readonly chainId: number;
|
|
454
|
-
readonly decimals: number;
|
|
455
|
-
readonly logoURI: string;
|
|
456
|
-
readonly name: string;
|
|
457
|
-
readonly audits?: string;
|
|
458
|
-
readonly extensions?: {
|
|
459
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
460
|
-
bridgeInfo?: {
|
|
461
|
-
[chainId: number]: {
|
|
462
|
-
tokenAddress: import("abitype").Address;
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
rebasing?: boolean;
|
|
466
|
-
parentAsset?: string;
|
|
467
|
-
};
|
|
468
|
-
}, {
|
|
469
|
-
readonly symbol: "WMON";
|
|
470
|
-
readonly address: import("abitype").Address;
|
|
471
|
-
readonly chainId: number;
|
|
472
|
-
readonly decimals: number;
|
|
473
|
-
readonly logoURI: string;
|
|
474
|
-
readonly name: string;
|
|
475
|
-
readonly audits?: string;
|
|
476
|
-
readonly extensions?: {
|
|
477
|
-
bridgeMainnetAdapter?: import("abitype").Address;
|
|
478
|
-
bridgeInfo?: {
|
|
479
|
-
[chainId: number]: {
|
|
480
|
-
tokenAddress: import("abitype").Address;
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
rebasing?: boolean;
|
|
484
|
-
parentAsset?: string;
|
|
485
|
-
};
|
|
486
|
-
}];
|
|
1
|
+
import { BASE_ASSETS, PRICED_TOKENS, WRAPPED_TOKENS } from "@tokemak/tokenlist";
|
|
487
2
|
type TokenSymbol = (typeof PRICED_TOKENS)[number]["symbol"] | (typeof BASE_ASSETS)[number]["symbol"] | (typeof WRAPPED_TOKENS)[number]["symbol"];
|
|
488
3
|
export type TokenPrices = {
|
|
489
4
|
[K in TokenSymbol]: number;
|
|
490
5
|
};
|
|
491
|
-
export declare const getTokenPrices: (
|
|
6
|
+
export declare const getTokenPrices: () => Promise<{
|
|
492
7
|
prices: TokenPrices | undefined;
|
|
493
8
|
timestamp: number | undefined;
|
|
494
9
|
isStale: boolean;
|