@tokemak/queries 0.0.9 → 0.0.11
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.cjs +2339 -993
- package/dist/index.d.ts +26 -1994
- package/dist/index.js +2116 -840
- package/dist/index.rn-bd847515.d.ts +1979 -0
- package/dist/index.rn.cjs +2076 -0
- package/dist/index.rn.d.ts +7 -0
- package/dist/index.rn.js +2063 -0
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { T as TokenPrices, C as Currencies, a as CurveLP, I as IUserReward, b as IAutopool, c as IAutopools, m as minAmountWithdrawnFunctionConfig, S as SwapQuoteResponse, d as minAmountDepositedFunctionConfig, e as SendParam } from './index.rn-bd847515.js';
|
|
2
|
+
export { X as AutopoolCategory, B as BASE_ASSETS, D as BaseAsset, N as ETH_BASE_ASSETS, W as EUR_BASE_ASSETS, E as EnhancedUserHistoryEntry, q as ExtraReward, J as FillData, k as IAutopoolsHistory, z as IUserActivity, w as IUserAutopool, v as IUserAutopools, O as Order, P as PRICED_TOKENS, Q as QuoteAndPriceBaseConfig, H as QuoteAndPriceBaseResult, K as QuoteResult, R as USD_BASE_ASSETS, G as UserActivity, U as UserDayDataEntry, V as VaultAddedMapping, Y as getAutopoolCategory, i as getAutopools, j as getAutopoolsHistory, r as getChainAutopools, l as getChainUserActivity, A as getCurrentCycleId, g as getEthPrice, n as getRewardsPayloadV1, t as getSystemConfig, f as getTokePrice, h as getTokenPrice, F as getTokenPrices, y as getUserActivity, u as getUserAutopools, p as getUserAutopoolsHistory, x as getUserTokenBalances, o as getUserV1, M as minAmountDepositedBaseConfig, L as minAmountWithdrawnBaseConfig, s as systemRegistryFunctionNames } from './index.rn-bd847515.js';
|
|
2
3
|
import { Address } from 'viem';
|
|
3
|
-
import * as _tokemak_tokenlist from '@tokemak/tokenlist';
|
|
4
|
-
import { INetwork, IToken, IProtocol } from '@tokemak/tokenlist';
|
|
5
|
-
import * as abitype from 'abitype';
|
|
6
|
-
import { Config } from '@wagmi/core';
|
|
7
4
|
import { SupportedChainIds } from '@tokemak/config';
|
|
5
|
+
import { Config } from '@wagmi/core';
|
|
8
6
|
import { Config as Config$1 } from 'wagmi';
|
|
7
|
+
import * as _tokemak_tokenlist from '@tokemak/tokenlist';
|
|
8
|
+
import { INetwork, IToken } from '@tokemak/tokenlist';
|
|
9
9
|
import { systemRegistryAbi } from '@tokemak/abis';
|
|
10
10
|
import { ExtractAbiFunctionNames } from '@tokemak/utils';
|
|
11
|
-
|
|
12
|
-
declare const getEthPrice: () => Promise<number | undefined>;
|
|
13
|
-
|
|
14
|
-
declare const getTokePrice: () => Promise<number | undefined>;
|
|
15
|
-
|
|
16
|
-
type PriceSource = "alchemy" | "coingecko" | "defillama";
|
|
17
|
-
interface GetTokenPriceConfig$1 {
|
|
18
|
-
chainId?: number;
|
|
19
|
-
tokenAddress: Address;
|
|
20
|
-
includedSources?: PriceSource[];
|
|
21
|
-
excludedSources?: PriceSource[];
|
|
22
|
-
}
|
|
23
|
-
declare const getTokenPrice: ({ chainId, tokenAddress, includedSources, excludedSources, }: GetTokenPriceConfig$1) => Promise<number | undefined>;
|
|
11
|
+
import 'abitype';
|
|
24
12
|
|
|
25
13
|
type DestinationVault = {
|
|
26
14
|
exchangeName: string;
|
|
@@ -124,786 +112,6 @@ interface GetChainsOptions {
|
|
|
124
112
|
*/
|
|
125
113
|
declare function getSTokeChainsForEnv({ includeTestnet, }: GetChainsOptions): INetwork[];
|
|
126
114
|
|
|
127
|
-
declare const ETH_BASE_ASSETS: string[];
|
|
128
|
-
declare const USD_BASE_ASSETS: string[];
|
|
129
|
-
declare const EUR_BASE_ASSETS: string[];
|
|
130
|
-
declare enum AutopoolCategory {
|
|
131
|
-
ETH = "eth",
|
|
132
|
-
CRYPTO = "crypto",
|
|
133
|
-
STABLES = "stables",
|
|
134
|
-
USD = "usd"
|
|
135
|
-
}
|
|
136
|
-
declare const getAutopoolCategory: (baseAsset: string) => AutopoolCategory;
|
|
137
|
-
|
|
138
|
-
declare const BASE_ASSETS: readonly [{
|
|
139
|
-
readonly symbol: "ETH";
|
|
140
|
-
readonly coinGeckoId: "ethereum";
|
|
141
|
-
readonly address: abitype.Address;
|
|
142
|
-
readonly chainId: number;
|
|
143
|
-
readonly decimals: number;
|
|
144
|
-
readonly logoURI: string;
|
|
145
|
-
readonly name: string;
|
|
146
|
-
readonly audits?: string;
|
|
147
|
-
readonly extensions?: {
|
|
148
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
149
|
-
bridgeInfo?: {
|
|
150
|
-
[chainId: number]: {
|
|
151
|
-
tokenAddress: abitype.Address;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
rebasing?: boolean;
|
|
155
|
-
parentAsset?: string;
|
|
156
|
-
};
|
|
157
|
-
}, {
|
|
158
|
-
readonly symbol: "PXETH";
|
|
159
|
-
readonly coinGeckoId: "dinero-staked-eth";
|
|
160
|
-
readonly address: abitype.Address;
|
|
161
|
-
readonly chainId: number;
|
|
162
|
-
readonly decimals: number;
|
|
163
|
-
readonly logoURI: string;
|
|
164
|
-
readonly name: string;
|
|
165
|
-
readonly audits?: string;
|
|
166
|
-
readonly extensions?: {
|
|
167
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
168
|
-
bridgeInfo?: {
|
|
169
|
-
[chainId: number]: {
|
|
170
|
-
tokenAddress: abitype.Address;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
rebasing?: boolean;
|
|
174
|
-
parentAsset?: string;
|
|
175
|
-
};
|
|
176
|
-
}, {
|
|
177
|
-
readonly symbol: "USDC";
|
|
178
|
-
readonly coinGeckoId: "usd-coin";
|
|
179
|
-
readonly address: abitype.Address;
|
|
180
|
-
readonly chainId: number;
|
|
181
|
-
readonly decimals: number;
|
|
182
|
-
readonly logoURI: string;
|
|
183
|
-
readonly name: string;
|
|
184
|
-
readonly audits?: string;
|
|
185
|
-
readonly extensions?: {
|
|
186
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
187
|
-
bridgeInfo?: {
|
|
188
|
-
[chainId: number]: {
|
|
189
|
-
tokenAddress: abitype.Address;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
rebasing?: boolean;
|
|
193
|
-
parentAsset?: string;
|
|
194
|
-
};
|
|
195
|
-
}, {
|
|
196
|
-
readonly symbol: "DOLA";
|
|
197
|
-
readonly coinGeckoId: "dola-usd";
|
|
198
|
-
readonly address: abitype.Address;
|
|
199
|
-
readonly chainId: number;
|
|
200
|
-
readonly decimals: number;
|
|
201
|
-
readonly logoURI: string;
|
|
202
|
-
readonly name: string;
|
|
203
|
-
readonly audits?: string;
|
|
204
|
-
readonly extensions?: {
|
|
205
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
206
|
-
bridgeInfo?: {
|
|
207
|
-
[chainId: number]: {
|
|
208
|
-
tokenAddress: abitype.Address;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
rebasing?: boolean;
|
|
212
|
-
parentAsset?: string;
|
|
213
|
-
};
|
|
214
|
-
}, {
|
|
215
|
-
readonly symbol: "S";
|
|
216
|
-
readonly address: abitype.Address;
|
|
217
|
-
readonly chainId: number;
|
|
218
|
-
readonly decimals: number;
|
|
219
|
-
readonly logoURI: string;
|
|
220
|
-
readonly name: string;
|
|
221
|
-
readonly audits?: string;
|
|
222
|
-
readonly extensions?: {
|
|
223
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
224
|
-
bridgeInfo?: {
|
|
225
|
-
[chainId: number]: {
|
|
226
|
-
tokenAddress: abitype.Address;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
rebasing?: boolean;
|
|
230
|
-
parentAsset?: string;
|
|
231
|
-
};
|
|
232
|
-
}, {
|
|
233
|
-
readonly symbol: "EURC";
|
|
234
|
-
readonly coinGeckoId: "euro-coin";
|
|
235
|
-
readonly address: abitype.Address;
|
|
236
|
-
readonly chainId: number;
|
|
237
|
-
readonly decimals: number;
|
|
238
|
-
readonly logoURI: string;
|
|
239
|
-
readonly name: string;
|
|
240
|
-
readonly audits?: string;
|
|
241
|
-
readonly extensions?: {
|
|
242
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
243
|
-
bridgeInfo?: {
|
|
244
|
-
[chainId: number]: {
|
|
245
|
-
tokenAddress: abitype.Address;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
rebasing?: boolean;
|
|
249
|
-
parentAsset?: string;
|
|
250
|
-
};
|
|
251
|
-
}, {
|
|
252
|
-
readonly symbol: "USDT";
|
|
253
|
-
readonly coinGeckoId: "tether";
|
|
254
|
-
readonly address: abitype.Address;
|
|
255
|
-
readonly chainId: number;
|
|
256
|
-
readonly decimals: number;
|
|
257
|
-
readonly logoURI: string;
|
|
258
|
-
readonly name: string;
|
|
259
|
-
readonly audits?: string;
|
|
260
|
-
readonly extensions?: {
|
|
261
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
262
|
-
bridgeInfo?: {
|
|
263
|
-
[chainId: number]: {
|
|
264
|
-
tokenAddress: abitype.Address;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
rebasing?: boolean;
|
|
268
|
-
parentAsset?: string;
|
|
269
|
-
};
|
|
270
|
-
}, {
|
|
271
|
-
readonly symbol: "USDT0";
|
|
272
|
-
readonly coinGeckoId: "tether";
|
|
273
|
-
readonly address: abitype.Address;
|
|
274
|
-
readonly chainId: number;
|
|
275
|
-
readonly decimals: number;
|
|
276
|
-
readonly logoURI: string;
|
|
277
|
-
readonly name: string;
|
|
278
|
-
readonly audits?: string;
|
|
279
|
-
readonly extensions?: {
|
|
280
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
281
|
-
bridgeInfo?: {
|
|
282
|
-
[chainId: number]: {
|
|
283
|
-
tokenAddress: abitype.Address;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
rebasing?: boolean;
|
|
287
|
-
parentAsset?: string;
|
|
288
|
-
};
|
|
289
|
-
}];
|
|
290
|
-
declare const PRICED_TOKENS: readonly [{
|
|
291
|
-
readonly symbol: "ETH";
|
|
292
|
-
readonly coinGeckoId: "ethereum";
|
|
293
|
-
readonly address: abitype.Address;
|
|
294
|
-
readonly chainId: number;
|
|
295
|
-
readonly decimals: number;
|
|
296
|
-
readonly logoURI: string;
|
|
297
|
-
readonly name: string;
|
|
298
|
-
readonly audits?: string;
|
|
299
|
-
readonly extensions?: {
|
|
300
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
301
|
-
bridgeInfo?: {
|
|
302
|
-
[chainId: number]: {
|
|
303
|
-
tokenAddress: abitype.Address;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
rebasing?: boolean;
|
|
307
|
-
parentAsset?: string;
|
|
308
|
-
};
|
|
309
|
-
}, {
|
|
310
|
-
readonly symbol: "PXETH";
|
|
311
|
-
readonly coinGeckoId: "dinero-staked-eth";
|
|
312
|
-
readonly address: abitype.Address;
|
|
313
|
-
readonly chainId: number;
|
|
314
|
-
readonly decimals: number;
|
|
315
|
-
readonly logoURI: string;
|
|
316
|
-
readonly name: string;
|
|
317
|
-
readonly audits?: string;
|
|
318
|
-
readonly extensions?: {
|
|
319
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
320
|
-
bridgeInfo?: {
|
|
321
|
-
[chainId: number]: {
|
|
322
|
-
tokenAddress: abitype.Address;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
rebasing?: boolean;
|
|
326
|
-
parentAsset?: string;
|
|
327
|
-
};
|
|
328
|
-
}, {
|
|
329
|
-
readonly symbol: "USDC";
|
|
330
|
-
readonly coinGeckoId: "usd-coin";
|
|
331
|
-
readonly address: abitype.Address;
|
|
332
|
-
readonly chainId: number;
|
|
333
|
-
readonly decimals: number;
|
|
334
|
-
readonly logoURI: string;
|
|
335
|
-
readonly name: string;
|
|
336
|
-
readonly audits?: string;
|
|
337
|
-
readonly extensions?: {
|
|
338
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
339
|
-
bridgeInfo?: {
|
|
340
|
-
[chainId: number]: {
|
|
341
|
-
tokenAddress: abitype.Address;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
rebasing?: boolean;
|
|
345
|
-
parentAsset?: string;
|
|
346
|
-
};
|
|
347
|
-
}, {
|
|
348
|
-
readonly symbol: "DOLA";
|
|
349
|
-
readonly coinGeckoId: "dola-usd";
|
|
350
|
-
readonly address: abitype.Address;
|
|
351
|
-
readonly chainId: number;
|
|
352
|
-
readonly decimals: number;
|
|
353
|
-
readonly logoURI: string;
|
|
354
|
-
readonly name: string;
|
|
355
|
-
readonly audits?: string;
|
|
356
|
-
readonly extensions?: {
|
|
357
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
358
|
-
bridgeInfo?: {
|
|
359
|
-
[chainId: number]: {
|
|
360
|
-
tokenAddress: abitype.Address;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
rebasing?: boolean;
|
|
364
|
-
parentAsset?: string;
|
|
365
|
-
};
|
|
366
|
-
}, {
|
|
367
|
-
readonly symbol: "S";
|
|
368
|
-
readonly address: abitype.Address;
|
|
369
|
-
readonly chainId: number;
|
|
370
|
-
readonly decimals: number;
|
|
371
|
-
readonly logoURI: string;
|
|
372
|
-
readonly name: string;
|
|
373
|
-
readonly audits?: string;
|
|
374
|
-
readonly extensions?: {
|
|
375
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
376
|
-
bridgeInfo?: {
|
|
377
|
-
[chainId: number]: {
|
|
378
|
-
tokenAddress: abitype.Address;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
rebasing?: boolean;
|
|
382
|
-
parentAsset?: string;
|
|
383
|
-
};
|
|
384
|
-
}, {
|
|
385
|
-
readonly symbol: "EURC";
|
|
386
|
-
readonly coinGeckoId: "euro-coin";
|
|
387
|
-
readonly address: abitype.Address;
|
|
388
|
-
readonly chainId: number;
|
|
389
|
-
readonly decimals: number;
|
|
390
|
-
readonly logoURI: string;
|
|
391
|
-
readonly name: string;
|
|
392
|
-
readonly audits?: string;
|
|
393
|
-
readonly extensions?: {
|
|
394
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
395
|
-
bridgeInfo?: {
|
|
396
|
-
[chainId: number]: {
|
|
397
|
-
tokenAddress: abitype.Address;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
rebasing?: boolean;
|
|
401
|
-
parentAsset?: string;
|
|
402
|
-
};
|
|
403
|
-
}, {
|
|
404
|
-
readonly symbol: "USDT";
|
|
405
|
-
readonly coinGeckoId: "tether";
|
|
406
|
-
readonly address: abitype.Address;
|
|
407
|
-
readonly chainId: number;
|
|
408
|
-
readonly decimals: number;
|
|
409
|
-
readonly logoURI: string;
|
|
410
|
-
readonly name: string;
|
|
411
|
-
readonly audits?: string;
|
|
412
|
-
readonly extensions?: {
|
|
413
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
414
|
-
bridgeInfo?: {
|
|
415
|
-
[chainId: number]: {
|
|
416
|
-
tokenAddress: abitype.Address;
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
rebasing?: boolean;
|
|
420
|
-
parentAsset?: string;
|
|
421
|
-
};
|
|
422
|
-
}, {
|
|
423
|
-
readonly symbol: "USDT0";
|
|
424
|
-
readonly coinGeckoId: "tether";
|
|
425
|
-
readonly address: abitype.Address;
|
|
426
|
-
readonly chainId: number;
|
|
427
|
-
readonly decimals: number;
|
|
428
|
-
readonly logoURI: string;
|
|
429
|
-
readonly name: string;
|
|
430
|
-
readonly audits?: string;
|
|
431
|
-
readonly extensions?: {
|
|
432
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
433
|
-
bridgeInfo?: {
|
|
434
|
-
[chainId: number]: {
|
|
435
|
-
tokenAddress: abitype.Address;
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
rebasing?: boolean;
|
|
439
|
-
parentAsset?: string;
|
|
440
|
-
};
|
|
441
|
-
}, {
|
|
442
|
-
readonly symbol: "TOKE";
|
|
443
|
-
readonly address: abitype.Address;
|
|
444
|
-
readonly chainId: number;
|
|
445
|
-
readonly decimals: number;
|
|
446
|
-
readonly logoURI: string;
|
|
447
|
-
readonly name: string;
|
|
448
|
-
readonly audits?: string;
|
|
449
|
-
readonly extensions?: {
|
|
450
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
451
|
-
bridgeInfo?: {
|
|
452
|
-
[chainId: number]: {
|
|
453
|
-
tokenAddress: abitype.Address;
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
rebasing?: boolean;
|
|
457
|
-
parentAsset?: string;
|
|
458
|
-
};
|
|
459
|
-
}, {
|
|
460
|
-
readonly symbol: "SILO";
|
|
461
|
-
readonly address: abitype.Address;
|
|
462
|
-
readonly chainId: number;
|
|
463
|
-
readonly decimals: number;
|
|
464
|
-
readonly logoURI: string;
|
|
465
|
-
readonly name: string;
|
|
466
|
-
readonly audits?: string;
|
|
467
|
-
readonly extensions?: {
|
|
468
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
469
|
-
bridgeInfo?: {
|
|
470
|
-
[chainId: number]: {
|
|
471
|
-
tokenAddress: abitype.Address;
|
|
472
|
-
};
|
|
473
|
-
};
|
|
474
|
-
rebasing?: boolean;
|
|
475
|
-
parentAsset?: string;
|
|
476
|
-
};
|
|
477
|
-
}, {
|
|
478
|
-
readonly address: `0x${string}`;
|
|
479
|
-
readonly symbol: "XPL";
|
|
480
|
-
readonly chainId: number;
|
|
481
|
-
readonly decimals: number;
|
|
482
|
-
readonly logoURI: string;
|
|
483
|
-
readonly name: string;
|
|
484
|
-
readonly audits?: string;
|
|
485
|
-
readonly extensions?: {
|
|
486
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
487
|
-
bridgeInfo?: {
|
|
488
|
-
[chainId: number]: {
|
|
489
|
-
tokenAddress: abitype.Address;
|
|
490
|
-
};
|
|
491
|
-
};
|
|
492
|
-
rebasing?: boolean;
|
|
493
|
-
parentAsset?: string;
|
|
494
|
-
};
|
|
495
|
-
}, {
|
|
496
|
-
readonly symbol: "USDT0";
|
|
497
|
-
readonly address: abitype.Address;
|
|
498
|
-
readonly chainId: number;
|
|
499
|
-
readonly decimals: number;
|
|
500
|
-
readonly logoURI: string;
|
|
501
|
-
readonly name: string;
|
|
502
|
-
readonly audits?: string;
|
|
503
|
-
readonly extensions?: {
|
|
504
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
505
|
-
bridgeInfo?: {
|
|
506
|
-
[chainId: number]: {
|
|
507
|
-
tokenAddress: abitype.Address;
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
rebasing?: boolean;
|
|
511
|
-
parentAsset?: string;
|
|
512
|
-
};
|
|
513
|
-
}];
|
|
514
|
-
type BaseAsset = (typeof BASE_ASSETS)[number]["symbol"];
|
|
515
|
-
declare const WRAPPED_TOKENS: readonly [{
|
|
516
|
-
readonly symbol: "WETH";
|
|
517
|
-
readonly address: abitype.Address;
|
|
518
|
-
readonly chainId: number;
|
|
519
|
-
readonly decimals: number;
|
|
520
|
-
readonly logoURI: string;
|
|
521
|
-
readonly name: string;
|
|
522
|
-
readonly audits?: string;
|
|
523
|
-
readonly extensions?: {
|
|
524
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
525
|
-
bridgeInfo?: {
|
|
526
|
-
[chainId: number]: {
|
|
527
|
-
tokenAddress: abitype.Address;
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
rebasing?: boolean;
|
|
531
|
-
parentAsset?: string;
|
|
532
|
-
};
|
|
533
|
-
}, {
|
|
534
|
-
readonly symbol: "WS";
|
|
535
|
-
readonly address: abitype.Address;
|
|
536
|
-
readonly chainId: number;
|
|
537
|
-
readonly decimals: number;
|
|
538
|
-
readonly logoURI: string;
|
|
539
|
-
readonly name: string;
|
|
540
|
-
readonly audits?: string;
|
|
541
|
-
readonly extensions?: {
|
|
542
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
543
|
-
bridgeInfo?: {
|
|
544
|
-
[chainId: number]: {
|
|
545
|
-
tokenAddress: abitype.Address;
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
rebasing?: boolean;
|
|
549
|
-
parentAsset?: string;
|
|
550
|
-
};
|
|
551
|
-
}, {
|
|
552
|
-
readonly symbol: "WXPL";
|
|
553
|
-
readonly address: abitype.Address;
|
|
554
|
-
readonly chainId: number;
|
|
555
|
-
readonly decimals: number;
|
|
556
|
-
readonly logoURI: string;
|
|
557
|
-
readonly name: string;
|
|
558
|
-
readonly audits?: string;
|
|
559
|
-
readonly extensions?: {
|
|
560
|
-
bridgeMainnetAdapter?: abitype.Address;
|
|
561
|
-
bridgeInfo?: {
|
|
562
|
-
[chainId: number]: {
|
|
563
|
-
tokenAddress: abitype.Address;
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
rebasing?: boolean;
|
|
567
|
-
parentAsset?: string;
|
|
568
|
-
};
|
|
569
|
-
}];
|
|
570
|
-
type TokenSymbol = (typeof PRICED_TOKENS)[number]["symbol"] | (typeof BASE_ASSETS)[number]["symbol"] | (typeof WRAPPED_TOKENS)[number]["symbol"];
|
|
571
|
-
type TokenPrices = {
|
|
572
|
-
[K in TokenSymbol]: number;
|
|
573
|
-
};
|
|
574
|
-
declare const getTokenPrices: (isCronJob?: boolean) => Promise<{
|
|
575
|
-
prices: TokenPrices | undefined;
|
|
576
|
-
timestamp: number | undefined;
|
|
577
|
-
isStale: boolean;
|
|
578
|
-
}>;
|
|
579
|
-
|
|
580
|
-
type Currencies = TokenPrices & {
|
|
581
|
-
baseAsset: number;
|
|
582
|
-
USD: number;
|
|
583
|
-
};
|
|
584
|
-
type ExtraReward = IToken & {
|
|
585
|
-
apr: number;
|
|
586
|
-
};
|
|
587
|
-
declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
588
|
-
chainId: SupportedChainIds;
|
|
589
|
-
prices: TokenPrices;
|
|
590
|
-
}) => Promise<{
|
|
591
|
-
symbol: string;
|
|
592
|
-
logoURI?: string | undefined;
|
|
593
|
-
description?: string;
|
|
594
|
-
type?: "Core" | "Ecosystem" | "Institutional" | undefined;
|
|
595
|
-
tvl: number;
|
|
596
|
-
totalAssets: {
|
|
597
|
-
denom: number;
|
|
598
|
-
ETH: number;
|
|
599
|
-
WETH: number;
|
|
600
|
-
USDC: number;
|
|
601
|
-
DOLA: number;
|
|
602
|
-
USDT0: number;
|
|
603
|
-
EURC: number;
|
|
604
|
-
PXETH: number;
|
|
605
|
-
S: number;
|
|
606
|
-
USDT: number;
|
|
607
|
-
TOKE: number;
|
|
608
|
-
SILO: number;
|
|
609
|
-
XPL: number;
|
|
610
|
-
WS: number;
|
|
611
|
-
WXPL: number;
|
|
612
|
-
baseAsset: number;
|
|
613
|
-
USD: number;
|
|
614
|
-
};
|
|
615
|
-
destinations: {
|
|
616
|
-
debtValueHeldByVaultUsd: number;
|
|
617
|
-
debtValueHeldByVaultEth: number;
|
|
618
|
-
compositeReturn: number;
|
|
619
|
-
debtValueHeldByVaultAllocation: number;
|
|
620
|
-
underlyingTokens: {
|
|
621
|
-
valueUsd: number;
|
|
622
|
-
value: number;
|
|
623
|
-
address: viem.Address;
|
|
624
|
-
chainId: number;
|
|
625
|
-
decimals: number;
|
|
626
|
-
logoURI: string;
|
|
627
|
-
name: string;
|
|
628
|
-
symbol: string;
|
|
629
|
-
audits?: string;
|
|
630
|
-
extensions?: {
|
|
631
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
632
|
-
bridgeInfo?: {
|
|
633
|
-
[chainId: number]: {
|
|
634
|
-
tokenAddress: viem.Address;
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
rebasing?: boolean;
|
|
638
|
-
parentAsset?: string;
|
|
639
|
-
};
|
|
640
|
-
}[];
|
|
641
|
-
poolName: string;
|
|
642
|
-
exchange: IProtocol | undefined;
|
|
643
|
-
vaultAddress: `0x${string}`;
|
|
644
|
-
exchangeName: string;
|
|
645
|
-
totalSupply: bigint;
|
|
646
|
-
lastSnapshotTimestamp: bigint;
|
|
647
|
-
feeApr: bigint;
|
|
648
|
-
lastDebtReportTime: bigint;
|
|
649
|
-
minDebtValue: bigint;
|
|
650
|
-
maxDebtValue: bigint;
|
|
651
|
-
debtValueHeldByVault: bigint;
|
|
652
|
-
queuedForRemoval: boolean;
|
|
653
|
-
statsIncomplete: boolean;
|
|
654
|
-
isShutdown: boolean;
|
|
655
|
-
shutdownStatus: number;
|
|
656
|
-
autoPoolOwnsShares: bigint;
|
|
657
|
-
actualLPTotalSupply: bigint;
|
|
658
|
-
dexPool: `0x${string}`;
|
|
659
|
-
lpTokenAddress: `0x${string}`;
|
|
660
|
-
lpTokenSymbol: string;
|
|
661
|
-
lpTokenName: string;
|
|
662
|
-
statsSafeLPTotalSupply: bigint;
|
|
663
|
-
statsIncentiveCredits: number;
|
|
664
|
-
rewardsTokens: readonly {
|
|
665
|
-
tokenAddress: `0x${string}`;
|
|
666
|
-
}[];
|
|
667
|
-
underlyingTokenSymbols: readonly {
|
|
668
|
-
symbol: string;
|
|
669
|
-
}[];
|
|
670
|
-
lstStatsData: readonly {
|
|
671
|
-
lastSnapshotTimestamp: bigint;
|
|
672
|
-
baseApr: bigint;
|
|
673
|
-
discount: bigint;
|
|
674
|
-
discountHistory: readonly [number, number, number, number, number, number, number, number, number, number];
|
|
675
|
-
discountTimestampByPercent: number;
|
|
676
|
-
}[];
|
|
677
|
-
underlyingTokenValueHeld: readonly {
|
|
678
|
-
valueHeldInEth: bigint;
|
|
679
|
-
}[];
|
|
680
|
-
reservesInEth: readonly bigint[];
|
|
681
|
-
statsPeriodFinishForRewards: readonly number[];
|
|
682
|
-
statsAnnualizedRewardAmounts: readonly bigint[];
|
|
683
|
-
}[];
|
|
684
|
-
exchanges: {
|
|
685
|
-
valueUsd: number;
|
|
686
|
-
value: number;
|
|
687
|
-
allocation: number;
|
|
688
|
-
logoURI: string;
|
|
689
|
-
name: string;
|
|
690
|
-
audits?: string;
|
|
691
|
-
type: "DEX" | "Lending Market" | "Protocol" | "Portfolio Tracker";
|
|
692
|
-
}[];
|
|
693
|
-
timestamp: number;
|
|
694
|
-
isNew: boolean;
|
|
695
|
-
extraRewarders: {
|
|
696
|
-
__typename?: "Rewarder";
|
|
697
|
-
id: any;
|
|
698
|
-
currentApy?: any | null;
|
|
699
|
-
rewardToken?: {
|
|
700
|
-
__typename?: "RefToken";
|
|
701
|
-
symbol?: string | null;
|
|
702
|
-
id: any;
|
|
703
|
-
} | null;
|
|
704
|
-
}[] | null | undefined;
|
|
705
|
-
createdAt: Date;
|
|
706
|
-
baseAsset: {
|
|
707
|
-
price: number;
|
|
708
|
-
address: viem.Address;
|
|
709
|
-
chainId: number;
|
|
710
|
-
decimals: number;
|
|
711
|
-
logoURI: string;
|
|
712
|
-
name: string;
|
|
713
|
-
symbol: string;
|
|
714
|
-
audits?: string;
|
|
715
|
-
extensions?: {
|
|
716
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
717
|
-
bridgeInfo?: {
|
|
718
|
-
[chainId: number]: {
|
|
719
|
-
tokenAddress: viem.Address;
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
rebasing?: boolean;
|
|
723
|
-
parentAsset?: string;
|
|
724
|
-
};
|
|
725
|
-
};
|
|
726
|
-
denomination: {
|
|
727
|
-
price: number;
|
|
728
|
-
address: viem.Address;
|
|
729
|
-
chainId: number;
|
|
730
|
-
decimals: number;
|
|
731
|
-
logoURI: string;
|
|
732
|
-
name: string;
|
|
733
|
-
symbol: string;
|
|
734
|
-
audits?: string;
|
|
735
|
-
extensions?: {
|
|
736
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
737
|
-
bridgeInfo?: {
|
|
738
|
-
[chainId: number]: {
|
|
739
|
-
tokenAddress: viem.Address;
|
|
740
|
-
};
|
|
741
|
-
};
|
|
742
|
-
rebasing?: boolean;
|
|
743
|
-
parentAsset?: string;
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
useDenomination: boolean;
|
|
747
|
-
UIBaseAsset: IToken;
|
|
748
|
-
UITokens: {
|
|
749
|
-
valueUsd: number;
|
|
750
|
-
value: number;
|
|
751
|
-
allocation: number;
|
|
752
|
-
address: viem.Address;
|
|
753
|
-
chainId: number;
|
|
754
|
-
decimals: number;
|
|
755
|
-
logoURI: string;
|
|
756
|
-
name: string;
|
|
757
|
-
symbol: string;
|
|
758
|
-
audits?: string;
|
|
759
|
-
extensions?: {
|
|
760
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
761
|
-
bridgeInfo?: {
|
|
762
|
-
[chainId: number]: {
|
|
763
|
-
tokenAddress: viem.Address;
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
rebasing?: boolean;
|
|
767
|
-
parentAsset?: string;
|
|
768
|
-
};
|
|
769
|
-
}[];
|
|
770
|
-
UIExchanges: {
|
|
771
|
-
valueUsd: number;
|
|
772
|
-
value: number;
|
|
773
|
-
allocation: number;
|
|
774
|
-
logoURI: string;
|
|
775
|
-
name: string;
|
|
776
|
-
audits?: string;
|
|
777
|
-
type: "DEX" | "Lending Market" | "Protocol" | "Portfolio Tracker";
|
|
778
|
-
}[];
|
|
779
|
-
tokens: {
|
|
780
|
-
valueUsd: number;
|
|
781
|
-
value: number;
|
|
782
|
-
allocation: number;
|
|
783
|
-
address: viem.Address;
|
|
784
|
-
chainId: number;
|
|
785
|
-
decimals: number;
|
|
786
|
-
logoURI: string;
|
|
787
|
-
name: string;
|
|
788
|
-
symbol: string;
|
|
789
|
-
audits?: string;
|
|
790
|
-
extensions?: {
|
|
791
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
792
|
-
bridgeInfo?: {
|
|
793
|
-
[chainId: number]: {
|
|
794
|
-
tokenAddress: viem.Address;
|
|
795
|
-
};
|
|
796
|
-
};
|
|
797
|
-
rebasing?: boolean;
|
|
798
|
-
parentAsset?: string;
|
|
799
|
-
};
|
|
800
|
-
}[];
|
|
801
|
-
chain: _tokemak_tokenlist.INetwork | undefined;
|
|
802
|
-
apr: {
|
|
803
|
-
base: any;
|
|
804
|
-
boosted: number;
|
|
805
|
-
extraAprs: ExtraReward[];
|
|
806
|
-
combined: any;
|
|
807
|
-
hasBoostedApr: boolean;
|
|
808
|
-
hasExtraAprs: boolean;
|
|
809
|
-
};
|
|
810
|
-
dailyEarnings: {
|
|
811
|
-
combined: {
|
|
812
|
-
denom: number;
|
|
813
|
-
ETH: number;
|
|
814
|
-
WETH: number;
|
|
815
|
-
USDC: number;
|
|
816
|
-
DOLA: number;
|
|
817
|
-
USDT0: number;
|
|
818
|
-
EURC: number;
|
|
819
|
-
PXETH: number;
|
|
820
|
-
S: number;
|
|
821
|
-
USDT: number;
|
|
822
|
-
TOKE: number;
|
|
823
|
-
SILO: number;
|
|
824
|
-
XPL: number;
|
|
825
|
-
WS: number;
|
|
826
|
-
WXPL: number;
|
|
827
|
-
baseAsset: number;
|
|
828
|
-
USD: number;
|
|
829
|
-
};
|
|
830
|
-
base: {
|
|
831
|
-
denom: number;
|
|
832
|
-
ETH: number;
|
|
833
|
-
WETH: number;
|
|
834
|
-
USDC: number;
|
|
835
|
-
DOLA: number;
|
|
836
|
-
USDT0: number;
|
|
837
|
-
EURC: number;
|
|
838
|
-
PXETH: number;
|
|
839
|
-
S: number;
|
|
840
|
-
USDT: number;
|
|
841
|
-
TOKE: number;
|
|
842
|
-
SILO: number;
|
|
843
|
-
XPL: number;
|
|
844
|
-
WS: number;
|
|
845
|
-
WXPL: number;
|
|
846
|
-
baseAsset: number;
|
|
847
|
-
USD: number;
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
|
-
navPerShare: {
|
|
851
|
-
denom: number;
|
|
852
|
-
ETH: number;
|
|
853
|
-
WETH: number;
|
|
854
|
-
USDC: number;
|
|
855
|
-
DOLA: number;
|
|
856
|
-
USDT0: number;
|
|
857
|
-
EURC: number;
|
|
858
|
-
PXETH: number;
|
|
859
|
-
S: number;
|
|
860
|
-
USDT: number;
|
|
861
|
-
TOKE: number;
|
|
862
|
-
SILO: number;
|
|
863
|
-
XPL: number;
|
|
864
|
-
WS: number;
|
|
865
|
-
WXPL: number;
|
|
866
|
-
baseAsset: number;
|
|
867
|
-
USD: number;
|
|
868
|
-
};
|
|
869
|
-
idle: {
|
|
870
|
-
allocation: number;
|
|
871
|
-
token: IToken;
|
|
872
|
-
denom: number;
|
|
873
|
-
ETH: number;
|
|
874
|
-
WETH: number;
|
|
875
|
-
USDC: number;
|
|
876
|
-
DOLA: number;
|
|
877
|
-
USDT0: number;
|
|
878
|
-
EURC: number;
|
|
879
|
-
PXETH: number;
|
|
880
|
-
S: number;
|
|
881
|
-
USDT: number;
|
|
882
|
-
TOKE: number;
|
|
883
|
-
SILO: number;
|
|
884
|
-
XPL: number;
|
|
885
|
-
WS: number;
|
|
886
|
-
WXPL: number;
|
|
887
|
-
baseAsset: number;
|
|
888
|
-
USD: number;
|
|
889
|
-
};
|
|
890
|
-
category: AutopoolCategory;
|
|
891
|
-
poolAddress: `0x${string}`;
|
|
892
|
-
name: string;
|
|
893
|
-
vaultType: `0x${string}`;
|
|
894
|
-
streamingFeeBps: bigint;
|
|
895
|
-
periodicFeeBps: bigint;
|
|
896
|
-
feeHighMarkEnabled: boolean;
|
|
897
|
-
feeSettingsIncomplete: boolean;
|
|
898
|
-
isShutdown: boolean;
|
|
899
|
-
shutdownStatus: number;
|
|
900
|
-
rewarder: `0x${string}`;
|
|
901
|
-
strategy: `0x${string}`;
|
|
902
|
-
totalSupply: bigint;
|
|
903
|
-
totalIdle: bigint;
|
|
904
|
-
totalDebt: bigint;
|
|
905
|
-
}[]>;
|
|
906
|
-
|
|
907
115
|
declare const convertBaseAssetToTokenPrices: (baseAssetValue: number, baseAssetPrice: number, prices: TokenPrices) => Currencies;
|
|
908
116
|
|
|
909
117
|
declare const convertBaseAssetToTokenPricesAndDenom: (baseAsset: number, baseAssetPrice: number, denomPrice: number, prices: TokenPrices) => {
|
|
@@ -956,347 +164,25 @@ declare function findClosestTimestampEntry<T extends {
|
|
|
956
164
|
* @returns The closest entry or null if no entry is within the tolerance
|
|
957
165
|
*/
|
|
958
166
|
declare function findClosestDateEntry<T extends {
|
|
959
|
-
date: Date;
|
|
960
|
-
}>(data: T[], targetDate: Date, maxDifferenceInMs?: number): T | null;
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Generic pagination helper for GraphQL queries
|
|
964
|
-
*
|
|
965
|
-
* @template T - The type of the query function
|
|
966
|
-
* @template R - The return type of the query function
|
|
967
|
-
* @template K - The key of the array property to paginate
|
|
968
|
-
* @param queryFn - The GraphQL query function to paginate
|
|
969
|
-
* @param arrayKey - The key of the array property to collect from the query result
|
|
970
|
-
* @param options - Pagination options
|
|
971
|
-
* @returns Promise with all paginated results combined
|
|
972
|
-
*/
|
|
973
|
-
declare function paginateQuery<T extends (variables?: any) => Promise<any>, R extends Awaited<ReturnType<T>>, K extends keyof R>(queryFn: T, arrayKey: K, options?: {
|
|
974
|
-
first?: number;
|
|
975
|
-
maxPages?: number;
|
|
976
|
-
onPage?: (page: R[K], pageNumber: number) => void;
|
|
977
|
-
}): Promise<R[K]>;
|
|
978
|
-
|
|
979
|
-
declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }: {
|
|
980
|
-
prices: TokenPrices;
|
|
981
|
-
includeTestnet?: boolean;
|
|
982
|
-
}) => Promise<{
|
|
983
|
-
symbol: string;
|
|
984
|
-
logoURI?: string | undefined;
|
|
985
|
-
description?: string;
|
|
986
|
-
type?: "Core" | "Ecosystem" | "Institutional" | undefined;
|
|
987
|
-
tvl: number;
|
|
988
|
-
totalAssets: {
|
|
989
|
-
denom: number;
|
|
990
|
-
ETH: number;
|
|
991
|
-
WETH: number;
|
|
992
|
-
USDC: number;
|
|
993
|
-
DOLA: number;
|
|
994
|
-
USDT0: number;
|
|
995
|
-
EURC: number;
|
|
996
|
-
PXETH: number;
|
|
997
|
-
S: number;
|
|
998
|
-
USDT: number;
|
|
999
|
-
TOKE: number;
|
|
1000
|
-
SILO: number;
|
|
1001
|
-
XPL: number;
|
|
1002
|
-
WS: number;
|
|
1003
|
-
WXPL: number;
|
|
1004
|
-
baseAsset: number;
|
|
1005
|
-
USD: number;
|
|
1006
|
-
};
|
|
1007
|
-
destinations: {
|
|
1008
|
-
debtValueHeldByVaultUsd: number;
|
|
1009
|
-
debtValueHeldByVaultEth: number;
|
|
1010
|
-
compositeReturn: number;
|
|
1011
|
-
debtValueHeldByVaultAllocation: number;
|
|
1012
|
-
underlyingTokens: {
|
|
1013
|
-
valueUsd: number;
|
|
1014
|
-
value: number;
|
|
1015
|
-
address: viem.Address;
|
|
1016
|
-
chainId: number;
|
|
1017
|
-
decimals: number;
|
|
1018
|
-
logoURI: string;
|
|
1019
|
-
name: string;
|
|
1020
|
-
symbol: string;
|
|
1021
|
-
audits?: string;
|
|
1022
|
-
extensions?: {
|
|
1023
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
1024
|
-
bridgeInfo?: {
|
|
1025
|
-
[chainId: number]: {
|
|
1026
|
-
tokenAddress: viem.Address;
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
rebasing?: boolean;
|
|
1030
|
-
parentAsset?: string;
|
|
1031
|
-
};
|
|
1032
|
-
}[];
|
|
1033
|
-
poolName: string;
|
|
1034
|
-
exchange: _tokemak_tokenlist.IProtocol | undefined;
|
|
1035
|
-
vaultAddress: `0x${string}`;
|
|
1036
|
-
exchangeName: string;
|
|
1037
|
-
totalSupply: bigint;
|
|
1038
|
-
lastSnapshotTimestamp: bigint;
|
|
1039
|
-
feeApr: bigint;
|
|
1040
|
-
lastDebtReportTime: bigint;
|
|
1041
|
-
minDebtValue: bigint;
|
|
1042
|
-
maxDebtValue: bigint;
|
|
1043
|
-
debtValueHeldByVault: bigint;
|
|
1044
|
-
queuedForRemoval: boolean;
|
|
1045
|
-
statsIncomplete: boolean;
|
|
1046
|
-
isShutdown: boolean;
|
|
1047
|
-
shutdownStatus: number;
|
|
1048
|
-
autoPoolOwnsShares: bigint;
|
|
1049
|
-
actualLPTotalSupply: bigint;
|
|
1050
|
-
dexPool: `0x${string}`;
|
|
1051
|
-
lpTokenAddress: `0x${string}`;
|
|
1052
|
-
lpTokenSymbol: string;
|
|
1053
|
-
lpTokenName: string;
|
|
1054
|
-
statsSafeLPTotalSupply: bigint;
|
|
1055
|
-
statsIncentiveCredits: number;
|
|
1056
|
-
rewardsTokens: readonly {
|
|
1057
|
-
tokenAddress: `0x${string}`;
|
|
1058
|
-
}[];
|
|
1059
|
-
underlyingTokenSymbols: readonly {
|
|
1060
|
-
symbol: string;
|
|
1061
|
-
}[];
|
|
1062
|
-
lstStatsData: readonly {
|
|
1063
|
-
lastSnapshotTimestamp: bigint;
|
|
1064
|
-
baseApr: bigint;
|
|
1065
|
-
discount: bigint;
|
|
1066
|
-
discountHistory: readonly [number, number, number, number, number, number, number, number, number, number];
|
|
1067
|
-
discountTimestampByPercent: number;
|
|
1068
|
-
}[];
|
|
1069
|
-
underlyingTokenValueHeld: readonly {
|
|
1070
|
-
valueHeldInEth: bigint;
|
|
1071
|
-
}[];
|
|
1072
|
-
reservesInEth: readonly bigint[];
|
|
1073
|
-
statsPeriodFinishForRewards: readonly number[];
|
|
1074
|
-
statsAnnualizedRewardAmounts: readonly bigint[];
|
|
1075
|
-
}[];
|
|
1076
|
-
exchanges: {
|
|
1077
|
-
valueUsd: number;
|
|
1078
|
-
value: number;
|
|
1079
|
-
allocation: number;
|
|
1080
|
-
logoURI: string;
|
|
1081
|
-
name: string;
|
|
1082
|
-
audits?: string;
|
|
1083
|
-
type: "DEX" | "Lending Market" | "Protocol" | "Portfolio Tracker";
|
|
1084
|
-
}[];
|
|
1085
|
-
timestamp: number;
|
|
1086
|
-
isNew: boolean;
|
|
1087
|
-
extraRewarders: {
|
|
1088
|
-
__typename?: "Rewarder";
|
|
1089
|
-
id: any;
|
|
1090
|
-
currentApy?: any | null;
|
|
1091
|
-
rewardToken?: {
|
|
1092
|
-
__typename?: "RefToken";
|
|
1093
|
-
symbol?: string | null;
|
|
1094
|
-
id: any;
|
|
1095
|
-
} | null;
|
|
1096
|
-
}[] | null | undefined;
|
|
1097
|
-
createdAt: Date;
|
|
1098
|
-
baseAsset: {
|
|
1099
|
-
price: number;
|
|
1100
|
-
address: viem.Address;
|
|
1101
|
-
chainId: number;
|
|
1102
|
-
decimals: number;
|
|
1103
|
-
logoURI: string;
|
|
1104
|
-
name: string;
|
|
1105
|
-
symbol: string;
|
|
1106
|
-
audits?: string;
|
|
1107
|
-
extensions?: {
|
|
1108
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
1109
|
-
bridgeInfo?: {
|
|
1110
|
-
[chainId: number]: {
|
|
1111
|
-
tokenAddress: viem.Address;
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
rebasing?: boolean;
|
|
1115
|
-
parentAsset?: string;
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
denomination: {
|
|
1119
|
-
price: number;
|
|
1120
|
-
address: viem.Address;
|
|
1121
|
-
chainId: number;
|
|
1122
|
-
decimals: number;
|
|
1123
|
-
logoURI: string;
|
|
1124
|
-
name: string;
|
|
1125
|
-
symbol: string;
|
|
1126
|
-
audits?: string;
|
|
1127
|
-
extensions?: {
|
|
1128
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
1129
|
-
bridgeInfo?: {
|
|
1130
|
-
[chainId: number]: {
|
|
1131
|
-
tokenAddress: viem.Address;
|
|
1132
|
-
};
|
|
1133
|
-
};
|
|
1134
|
-
rebasing?: boolean;
|
|
1135
|
-
parentAsset?: string;
|
|
1136
|
-
};
|
|
1137
|
-
};
|
|
1138
|
-
useDenomination: boolean;
|
|
1139
|
-
UIBaseAsset: _tokemak_tokenlist.IToken;
|
|
1140
|
-
UITokens: {
|
|
1141
|
-
valueUsd: number;
|
|
1142
|
-
value: number;
|
|
1143
|
-
allocation: number;
|
|
1144
|
-
address: viem.Address;
|
|
1145
|
-
chainId: number;
|
|
1146
|
-
decimals: number;
|
|
1147
|
-
logoURI: string;
|
|
1148
|
-
name: string;
|
|
1149
|
-
symbol: string;
|
|
1150
|
-
audits?: string;
|
|
1151
|
-
extensions?: {
|
|
1152
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
1153
|
-
bridgeInfo?: {
|
|
1154
|
-
[chainId: number]: {
|
|
1155
|
-
tokenAddress: viem.Address;
|
|
1156
|
-
};
|
|
1157
|
-
};
|
|
1158
|
-
rebasing?: boolean;
|
|
1159
|
-
parentAsset?: string;
|
|
1160
|
-
};
|
|
1161
|
-
}[];
|
|
1162
|
-
UIExchanges: {
|
|
1163
|
-
valueUsd: number;
|
|
1164
|
-
value: number;
|
|
1165
|
-
allocation: number;
|
|
1166
|
-
logoURI: string;
|
|
1167
|
-
name: string;
|
|
1168
|
-
audits?: string;
|
|
1169
|
-
type: "DEX" | "Lending Market" | "Protocol" | "Portfolio Tracker";
|
|
1170
|
-
}[];
|
|
1171
|
-
tokens: {
|
|
1172
|
-
valueUsd: number;
|
|
1173
|
-
value: number;
|
|
1174
|
-
allocation: number;
|
|
1175
|
-
address: viem.Address;
|
|
1176
|
-
chainId: number;
|
|
1177
|
-
decimals: number;
|
|
1178
|
-
logoURI: string;
|
|
1179
|
-
name: string;
|
|
1180
|
-
symbol: string;
|
|
1181
|
-
audits?: string;
|
|
1182
|
-
extensions?: {
|
|
1183
|
-
bridgeMainnetAdapter?: viem.Address;
|
|
1184
|
-
bridgeInfo?: {
|
|
1185
|
-
[chainId: number]: {
|
|
1186
|
-
tokenAddress: viem.Address;
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
rebasing?: boolean;
|
|
1190
|
-
parentAsset?: string;
|
|
1191
|
-
};
|
|
1192
|
-
}[];
|
|
1193
|
-
chain: _tokemak_tokenlist.INetwork | undefined;
|
|
1194
|
-
apr: {
|
|
1195
|
-
base: any;
|
|
1196
|
-
boosted: number;
|
|
1197
|
-
extraAprs: ExtraReward[];
|
|
1198
|
-
combined: any;
|
|
1199
|
-
hasBoostedApr: boolean;
|
|
1200
|
-
hasExtraAprs: boolean;
|
|
1201
|
-
};
|
|
1202
|
-
dailyEarnings: {
|
|
1203
|
-
combined: {
|
|
1204
|
-
denom: number;
|
|
1205
|
-
ETH: number;
|
|
1206
|
-
WETH: number;
|
|
1207
|
-
USDC: number;
|
|
1208
|
-
DOLA: number;
|
|
1209
|
-
USDT0: number;
|
|
1210
|
-
EURC: number;
|
|
1211
|
-
PXETH: number;
|
|
1212
|
-
S: number;
|
|
1213
|
-
USDT: number;
|
|
1214
|
-
TOKE: number;
|
|
1215
|
-
SILO: number;
|
|
1216
|
-
XPL: number;
|
|
1217
|
-
WS: number;
|
|
1218
|
-
WXPL: number;
|
|
1219
|
-
baseAsset: number;
|
|
1220
|
-
USD: number;
|
|
1221
|
-
};
|
|
1222
|
-
base: {
|
|
1223
|
-
denom: number;
|
|
1224
|
-
ETH: number;
|
|
1225
|
-
WETH: number;
|
|
1226
|
-
USDC: number;
|
|
1227
|
-
DOLA: number;
|
|
1228
|
-
USDT0: number;
|
|
1229
|
-
EURC: number;
|
|
1230
|
-
PXETH: number;
|
|
1231
|
-
S: number;
|
|
1232
|
-
USDT: number;
|
|
1233
|
-
TOKE: number;
|
|
1234
|
-
SILO: number;
|
|
1235
|
-
XPL: number;
|
|
1236
|
-
WS: number;
|
|
1237
|
-
WXPL: number;
|
|
1238
|
-
baseAsset: number;
|
|
1239
|
-
USD: number;
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
navPerShare: {
|
|
1243
|
-
denom: number;
|
|
1244
|
-
ETH: number;
|
|
1245
|
-
WETH: number;
|
|
1246
|
-
USDC: number;
|
|
1247
|
-
DOLA: number;
|
|
1248
|
-
USDT0: number;
|
|
1249
|
-
EURC: number;
|
|
1250
|
-
PXETH: number;
|
|
1251
|
-
S: number;
|
|
1252
|
-
USDT: number;
|
|
1253
|
-
TOKE: number;
|
|
1254
|
-
SILO: number;
|
|
1255
|
-
XPL: number;
|
|
1256
|
-
WS: number;
|
|
1257
|
-
WXPL: number;
|
|
1258
|
-
baseAsset: number;
|
|
1259
|
-
USD: number;
|
|
1260
|
-
};
|
|
1261
|
-
idle: {
|
|
1262
|
-
allocation: number;
|
|
1263
|
-
token: _tokemak_tokenlist.IToken;
|
|
1264
|
-
denom: number;
|
|
1265
|
-
ETH: number;
|
|
1266
|
-
WETH: number;
|
|
1267
|
-
USDC: number;
|
|
1268
|
-
DOLA: number;
|
|
1269
|
-
USDT0: number;
|
|
1270
|
-
EURC: number;
|
|
1271
|
-
PXETH: number;
|
|
1272
|
-
S: number;
|
|
1273
|
-
USDT: number;
|
|
1274
|
-
TOKE: number;
|
|
1275
|
-
SILO: number;
|
|
1276
|
-
XPL: number;
|
|
1277
|
-
WS: number;
|
|
1278
|
-
WXPL: number;
|
|
1279
|
-
baseAsset: number;
|
|
1280
|
-
USD: number;
|
|
1281
|
-
};
|
|
1282
|
-
category: AutopoolCategory;
|
|
1283
|
-
poolAddress: `0x${string}`;
|
|
1284
|
-
name: string;
|
|
1285
|
-
vaultType: `0x${string}`;
|
|
1286
|
-
streamingFeeBps: bigint;
|
|
1287
|
-
periodicFeeBps: bigint;
|
|
1288
|
-
feeHighMarkEnabled: boolean;
|
|
1289
|
-
feeSettingsIncomplete: boolean;
|
|
1290
|
-
isShutdown: boolean;
|
|
1291
|
-
shutdownStatus: number;
|
|
1292
|
-
rewarder: `0x${string}`;
|
|
1293
|
-
strategy: `0x${string}`;
|
|
1294
|
-
totalSupply: bigint;
|
|
1295
|
-
totalIdle: bigint;
|
|
1296
|
-
totalDebt: bigint;
|
|
1297
|
-
}[] | undefined>;
|
|
1298
|
-
type IAutopools = Awaited<ReturnType<typeof getAutopools>>;
|
|
1299
|
-
type IAutopool = NonNullable<IAutopools>[number];
|
|
167
|
+
date: Date;
|
|
168
|
+
}>(data: T[], targetDate: Date, maxDifferenceInMs?: number): T | null;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Generic pagination helper for GraphQL queries
|
|
172
|
+
*
|
|
173
|
+
* @template T - The type of the query function
|
|
174
|
+
* @template R - The return type of the query function
|
|
175
|
+
* @template K - The key of the array property to paginate
|
|
176
|
+
* @param queryFn - The GraphQL query function to paginate
|
|
177
|
+
* @param arrayKey - The key of the array property to collect from the query result
|
|
178
|
+
* @param options - Pagination options
|
|
179
|
+
* @returns Promise with all paginated results combined
|
|
180
|
+
*/
|
|
181
|
+
declare function paginateQuery<T extends (variables?: any) => Promise<any>, R extends Awaited<ReturnType<T>>, K extends keyof R>(queryFn: T, arrayKey: K, options?: {
|
|
182
|
+
first?: number;
|
|
183
|
+
maxPages?: number;
|
|
184
|
+
onPage?: (page: R[K], pageNumber: number) => void;
|
|
185
|
+
}): Promise<R[K]>;
|
|
1300
186
|
|
|
1301
187
|
declare const getAutopoolRebalances: (id: Address, chainId?: SupportedChainIds, options?: {
|
|
1302
188
|
first?: number;
|
|
@@ -1356,320 +242,6 @@ declare const getAutopoolsRebalances: (chainId?: SupportedChainIds) => Promise<{
|
|
|
1356
242
|
} | null;
|
|
1357
243
|
}[]>;
|
|
1358
244
|
|
|
1359
|
-
declare const getAutopoolsHistory: (autopools: IAutopools, days: number, includeTestnet?: boolean) => Promise<{
|
|
1360
|
-
[key: string]: (Omit<{
|
|
1361
|
-
__typename?: "AutopoolDayData";
|
|
1362
|
-
totalSupply: any;
|
|
1363
|
-
nav: any;
|
|
1364
|
-
date: string;
|
|
1365
|
-
timestamp: any;
|
|
1366
|
-
id: string;
|
|
1367
|
-
} & {
|
|
1368
|
-
vault: {
|
|
1369
|
-
id: string;
|
|
1370
|
-
};
|
|
1371
|
-
}, "date"> & {
|
|
1372
|
-
date: Date;
|
|
1373
|
-
baseAsset: IToken;
|
|
1374
|
-
})[];
|
|
1375
|
-
} | undefined>;
|
|
1376
|
-
type IAutopoolsHistory = Awaited<ReturnType<typeof getAutopoolsHistory>>;
|
|
1377
|
-
|
|
1378
|
-
type VaultAddedMapping = {
|
|
1379
|
-
[key: string]: Pick<VaultAddedMapping, "vault" | "blockTimestamp">;
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
interface CurveLP {
|
|
1383
|
-
apr: number;
|
|
1384
|
-
baseApy: number;
|
|
1385
|
-
crvApy: number;
|
|
1386
|
-
crvBoost: number;
|
|
1387
|
-
curveTvl: number;
|
|
1388
|
-
cvxApy: number;
|
|
1389
|
-
timestamp: string;
|
|
1390
|
-
totalSupply: bigint;
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
interface UserActivity {
|
|
1394
|
-
data: string;
|
|
1395
|
-
[key: string]: any;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
interface QuoteAndPriceBaseConfig {
|
|
1399
|
-
sellToken: Address;
|
|
1400
|
-
buyToken: Address;
|
|
1401
|
-
sellAmount?: bigint;
|
|
1402
|
-
buyAmount?: bigint;
|
|
1403
|
-
slippagePercentage?: number;
|
|
1404
|
-
gasPrice?: number;
|
|
1405
|
-
enableSlippageProtection?: boolean;
|
|
1406
|
-
priceImpactProtectionPercentage?: number;
|
|
1407
|
-
shouldSellEntireBalance?: boolean;
|
|
1408
|
-
}
|
|
1409
|
-
interface QuoteAndPriceBaseResult {
|
|
1410
|
-
allowanceTarget: string;
|
|
1411
|
-
auxiliaryChainData: Record<string, unknown>;
|
|
1412
|
-
buyAmount: bigint;
|
|
1413
|
-
buyTokenAddress: Address;
|
|
1414
|
-
buyTokenToEthRate: string;
|
|
1415
|
-
chainId: number;
|
|
1416
|
-
estimatedGas: string;
|
|
1417
|
-
estimatedPriceImpact: string;
|
|
1418
|
-
expectedSlippage: string | null;
|
|
1419
|
-
fees: {
|
|
1420
|
-
zeroExFee: string | null;
|
|
1421
|
-
};
|
|
1422
|
-
gas: string;
|
|
1423
|
-
gasPrice: string;
|
|
1424
|
-
grossBuyAmount: string;
|
|
1425
|
-
grossPrice: string;
|
|
1426
|
-
grossSellAmount: string;
|
|
1427
|
-
minimumProtocolFee: string;
|
|
1428
|
-
price: string;
|
|
1429
|
-
protocolFee: string;
|
|
1430
|
-
sellAmount: bigint;
|
|
1431
|
-
sellTokenAddress: Address;
|
|
1432
|
-
sellTokenToEthRate: string;
|
|
1433
|
-
sources: {
|
|
1434
|
-
name: string;
|
|
1435
|
-
proportion: string;
|
|
1436
|
-
}[];
|
|
1437
|
-
value: string;
|
|
1438
|
-
}
|
|
1439
|
-
interface FillData {
|
|
1440
|
-
router: string;
|
|
1441
|
-
gasUsed: number;
|
|
1442
|
-
path: string;
|
|
1443
|
-
routerVersion: number;
|
|
1444
|
-
}
|
|
1445
|
-
interface Order {
|
|
1446
|
-
fill: {
|
|
1447
|
-
input: string;
|
|
1448
|
-
output: string;
|
|
1449
|
-
adjustedOutput: string;
|
|
1450
|
-
gas: number;
|
|
1451
|
-
fillData: FillData;
|
|
1452
|
-
};
|
|
1453
|
-
adjustedOutput: string;
|
|
1454
|
-
gas: number;
|
|
1455
|
-
input: string;
|
|
1456
|
-
output: string;
|
|
1457
|
-
makerAmount: string;
|
|
1458
|
-
makerToken: string;
|
|
1459
|
-
source: string;
|
|
1460
|
-
takerAmount: string;
|
|
1461
|
-
takerToken: string;
|
|
1462
|
-
type: number;
|
|
1463
|
-
}
|
|
1464
|
-
interface QuoteResult extends QuoteAndPriceBaseResult {
|
|
1465
|
-
data: `0x${string}`;
|
|
1466
|
-
decodedUniqueId: string;
|
|
1467
|
-
guaranteedPrice: string;
|
|
1468
|
-
orders: Order[];
|
|
1469
|
-
to: Address;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
type SendParam = {
|
|
1473
|
-
dstEid: number;
|
|
1474
|
-
to: `0x${string}`;
|
|
1475
|
-
amountLD: bigint;
|
|
1476
|
-
minAmountLD: bigint;
|
|
1477
|
-
extraOptions: any;
|
|
1478
|
-
composeMsg: `0x${string}`;
|
|
1479
|
-
oftCmd: `0x${string}`;
|
|
1480
|
-
};
|
|
1481
|
-
|
|
1482
|
-
interface TransactionRequest {
|
|
1483
|
-
from: Address;
|
|
1484
|
-
to: Address;
|
|
1485
|
-
data: `0x${string}`;
|
|
1486
|
-
value: `0x${string}` | string;
|
|
1487
|
-
gasPrice: string;
|
|
1488
|
-
gas?: string;
|
|
1489
|
-
}
|
|
1490
|
-
interface Token {
|
|
1491
|
-
address: Address;
|
|
1492
|
-
chainId: number;
|
|
1493
|
-
symbol: string;
|
|
1494
|
-
decimals: number;
|
|
1495
|
-
name: string;
|
|
1496
|
-
coinKey: string;
|
|
1497
|
-
logoURI: string;
|
|
1498
|
-
priceUSD: string;
|
|
1499
|
-
}
|
|
1500
|
-
interface GasCost {
|
|
1501
|
-
type: string;
|
|
1502
|
-
price: string;
|
|
1503
|
-
estimate: string;
|
|
1504
|
-
limit: string;
|
|
1505
|
-
amount: string;
|
|
1506
|
-
amountUSD: string;
|
|
1507
|
-
token: Token;
|
|
1508
|
-
}
|
|
1509
|
-
interface StepEstimate {
|
|
1510
|
-
tool: string;
|
|
1511
|
-
fromAmount: string;
|
|
1512
|
-
toAmount: string;
|
|
1513
|
-
toAmountMin: string;
|
|
1514
|
-
approvalAddress: Address;
|
|
1515
|
-
executionDuration: number;
|
|
1516
|
-
feeCosts: any[];
|
|
1517
|
-
gasCosts: GasCost[];
|
|
1518
|
-
}
|
|
1519
|
-
interface Step {
|
|
1520
|
-
id: string;
|
|
1521
|
-
type: string;
|
|
1522
|
-
action: {
|
|
1523
|
-
fromChainId: number;
|
|
1524
|
-
fromAmount: string;
|
|
1525
|
-
fromToken: Token;
|
|
1526
|
-
toChainId: number;
|
|
1527
|
-
toToken: Token;
|
|
1528
|
-
slippage: number;
|
|
1529
|
-
fromAddress: Address;
|
|
1530
|
-
toAddress: Address;
|
|
1531
|
-
};
|
|
1532
|
-
estimate: StepEstimate;
|
|
1533
|
-
tool: string;
|
|
1534
|
-
toolDetails: {
|
|
1535
|
-
key: string;
|
|
1536
|
-
name: string;
|
|
1537
|
-
logoURI: string;
|
|
1538
|
-
};
|
|
1539
|
-
}
|
|
1540
|
-
interface Fill {
|
|
1541
|
-
from: Address;
|
|
1542
|
-
to: Address;
|
|
1543
|
-
source: string;
|
|
1544
|
-
proportionBps: string;
|
|
1545
|
-
}
|
|
1546
|
-
interface Route {
|
|
1547
|
-
fills: Fill[];
|
|
1548
|
-
tokens: {
|
|
1549
|
-
address: Address;
|
|
1550
|
-
symbol: string;
|
|
1551
|
-
}[];
|
|
1552
|
-
}
|
|
1553
|
-
interface TokenMetadata {
|
|
1554
|
-
buyToken: {
|
|
1555
|
-
buyTaxBps: string;
|
|
1556
|
-
sellTaxBps: string;
|
|
1557
|
-
};
|
|
1558
|
-
sellToken: {
|
|
1559
|
-
buyTaxBps: string;
|
|
1560
|
-
sellTaxBps: string;
|
|
1561
|
-
};
|
|
1562
|
-
}
|
|
1563
|
-
interface Issues {
|
|
1564
|
-
allowance?: {
|
|
1565
|
-
actual: string;
|
|
1566
|
-
spender: Address;
|
|
1567
|
-
};
|
|
1568
|
-
balance?: {
|
|
1569
|
-
token: Address;
|
|
1570
|
-
actual: string;
|
|
1571
|
-
expected: string;
|
|
1572
|
-
};
|
|
1573
|
-
simulationIncomplete: boolean;
|
|
1574
|
-
invalidSourcesPassed: string[];
|
|
1575
|
-
}
|
|
1576
|
-
interface ZeroExQuoteDetails {
|
|
1577
|
-
blockNumber: string;
|
|
1578
|
-
buyAmount: string;
|
|
1579
|
-
buyToken: Address;
|
|
1580
|
-
fees?: {
|
|
1581
|
-
integratorFee: null | string;
|
|
1582
|
-
zeroExFee: null | string;
|
|
1583
|
-
gasFee: null | string;
|
|
1584
|
-
};
|
|
1585
|
-
issues: Issues;
|
|
1586
|
-
liquidityAvailable: boolean;
|
|
1587
|
-
minBuyAmount: string;
|
|
1588
|
-
route: Route;
|
|
1589
|
-
sellAmount: string;
|
|
1590
|
-
sellToken: Address;
|
|
1591
|
-
tokenMetadata: TokenMetadata;
|
|
1592
|
-
totalNetworkFee: string;
|
|
1593
|
-
transaction: TransactionRequest;
|
|
1594
|
-
zid: `0x${string}`;
|
|
1595
|
-
}
|
|
1596
|
-
interface LifiQuoteDetails {
|
|
1597
|
-
type: string;
|
|
1598
|
-
id: string;
|
|
1599
|
-
tool: string;
|
|
1600
|
-
toolDetails: {
|
|
1601
|
-
key: string;
|
|
1602
|
-
name: string;
|
|
1603
|
-
logoURI: string;
|
|
1604
|
-
};
|
|
1605
|
-
action: {
|
|
1606
|
-
fromToken: Token;
|
|
1607
|
-
fromAmount: string;
|
|
1608
|
-
toToken: Token;
|
|
1609
|
-
fromChainId: number;
|
|
1610
|
-
toChainId: number;
|
|
1611
|
-
slippage: number;
|
|
1612
|
-
fromAddress: Address;
|
|
1613
|
-
toAddress: Address;
|
|
1614
|
-
};
|
|
1615
|
-
estimate: {
|
|
1616
|
-
tool: string;
|
|
1617
|
-
approvalAddress: Address;
|
|
1618
|
-
toAmountMin: string;
|
|
1619
|
-
toAmount: string;
|
|
1620
|
-
fromAmount: string;
|
|
1621
|
-
feeCosts: any[];
|
|
1622
|
-
gasCosts: GasCost[];
|
|
1623
|
-
executionDuration: number;
|
|
1624
|
-
fromAmountUSD: string;
|
|
1625
|
-
toAmountUSD: string;
|
|
1626
|
-
};
|
|
1627
|
-
includedSteps: Step[];
|
|
1628
|
-
integrator: string;
|
|
1629
|
-
transactionRequest: TransactionRequest & {
|
|
1630
|
-
chainId: number;
|
|
1631
|
-
gasLimit: string;
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
interface SwapQuoteResponse {
|
|
1635
|
-
aggregatorName: string;
|
|
1636
|
-
asyncSwapper: Address;
|
|
1637
|
-
buyAmount: string;
|
|
1638
|
-
minBuyAmount: string;
|
|
1639
|
-
tx: TransactionRequest;
|
|
1640
|
-
fullQuoteDetails: ZeroExQuoteDetails | LifiQuoteDetails;
|
|
1641
|
-
expiration: number;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
interface minAmountWithdrawnBaseConfig {
|
|
1645
|
-
address: Address | undefined;
|
|
1646
|
-
slippage: number | undefined;
|
|
1647
|
-
chainId: number | undefined;
|
|
1648
|
-
decimals: number | undefined;
|
|
1649
|
-
amount: bigint;
|
|
1650
|
-
isSwap: boolean | undefined;
|
|
1651
|
-
buyToken: Address | undefined;
|
|
1652
|
-
sellToken: Address | undefined;
|
|
1653
|
-
disabled?: boolean;
|
|
1654
|
-
autopool: Address | undefined;
|
|
1655
|
-
}
|
|
1656
|
-
interface minAmountDepositedBaseConfig {
|
|
1657
|
-
address: Address | undefined;
|
|
1658
|
-
chainId: number | undefined;
|
|
1659
|
-
decimals: number | undefined;
|
|
1660
|
-
amount: bigint;
|
|
1661
|
-
slippage: number | undefined;
|
|
1662
|
-
isSwap: boolean | undefined;
|
|
1663
|
-
disabled?: boolean;
|
|
1664
|
-
}
|
|
1665
|
-
interface minAmountWithdrawnFunctionConfig extends minAmountWithdrawnBaseConfig {
|
|
1666
|
-
config: Config$1;
|
|
1667
|
-
user: Address | undefined;
|
|
1668
|
-
}
|
|
1669
|
-
interface minAmountDepositedFunctionConfig extends minAmountDepositedBaseConfig {
|
|
1670
|
-
config: Config$1;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
245
|
declare const getCurveLP: () => Promise<CurveLP | undefined>;
|
|
1674
246
|
|
|
1675
247
|
declare const getSushiLP: (wagmiConfig: Config, { ethPrice }: {
|
|
@@ -1685,47 +257,6 @@ declare const getSushiLP: (wagmiConfig: Config, { ethPrice }: {
|
|
|
1685
257
|
} | undefined>;
|
|
1686
258
|
type ISushiLP = Awaited<ReturnType<typeof getSushiLP>>;
|
|
1687
259
|
|
|
1688
|
-
type UserActivityTotalsType = {
|
|
1689
|
-
[key: string]: {
|
|
1690
|
-
totalDeposits: bigint;
|
|
1691
|
-
totalStakes: bigint;
|
|
1692
|
-
totalWithdrawals: bigint;
|
|
1693
|
-
totalUnstakes: bigint;
|
|
1694
|
-
chainId: SupportedChainIds;
|
|
1695
|
-
};
|
|
1696
|
-
};
|
|
1697
|
-
declare const getChainUserActivity: (address?: Address, chainId?: SupportedChainIds) => Promise<{
|
|
1698
|
-
events: {
|
|
1699
|
-
timestamp: number;
|
|
1700
|
-
shareChange: string;
|
|
1701
|
-
assetChange: string;
|
|
1702
|
-
vaultAddress: string;
|
|
1703
|
-
}[];
|
|
1704
|
-
totals: UserActivityTotalsType;
|
|
1705
|
-
} | undefined>;
|
|
1706
|
-
|
|
1707
|
-
type IUserReward = {
|
|
1708
|
-
payload: {
|
|
1709
|
-
wallet: Address;
|
|
1710
|
-
cycle: bigint;
|
|
1711
|
-
amount: bigint;
|
|
1712
|
-
chainId: bigint;
|
|
1713
|
-
};
|
|
1714
|
-
signature: {
|
|
1715
|
-
v: number;
|
|
1716
|
-
r: `0x${string}`;
|
|
1717
|
-
s: `0x${string}`;
|
|
1718
|
-
msg: string;
|
|
1719
|
-
};
|
|
1720
|
-
summary?: {
|
|
1721
|
-
[key: string]: any;
|
|
1722
|
-
};
|
|
1723
|
-
breakdown?: {
|
|
1724
|
-
[key: string]: any;
|
|
1725
|
-
};
|
|
1726
|
-
};
|
|
1727
|
-
declare const getRewardsPayloadV1: (cycleHash: string, account: Address, rewardsV1Url: string) => Promise<IUserReward | null>;
|
|
1728
|
-
|
|
1729
260
|
declare const getUserAutoEthRewards: (wagmiConfig: Config, rewardsV1Url: string, rewardsHash: Address, address: Address, ethPrice: number, chainId: number) => Promise<{
|
|
1730
261
|
currentUserRewardsUsd: string;
|
|
1731
262
|
currentUserAPR?: number | undefined;
|
|
@@ -1750,72 +281,6 @@ declare const getUserRewardsV1: (wagmiConfig: Config, { address, rewardsCycleInd
|
|
|
1750
281
|
claimable?: undefined;
|
|
1751
282
|
} | undefined>;
|
|
1752
283
|
|
|
1753
|
-
declare const getUserV1: (wagmiConfig: Config, { currentCycleIndex, address, chainId, }: {
|
|
1754
|
-
currentCycleIndex: bigint;
|
|
1755
|
-
address: Address;
|
|
1756
|
-
chainId: number;
|
|
1757
|
-
}) => Promise<{
|
|
1758
|
-
stakedToke: bigint;
|
|
1759
|
-
claimableToke: bigint | undefined;
|
|
1760
|
-
claimableEth: bigint | undefined;
|
|
1761
|
-
claimableAutoEth: bigint;
|
|
1762
|
-
tokeRewardsPayload: IUserReward | null | undefined;
|
|
1763
|
-
ethRewardsPayload: IUserReward | null | undefined;
|
|
1764
|
-
missedTokeRewardsPayload: IUserReward | null;
|
|
1765
|
-
autoEthGuardedRewardsPayload: IUserReward | null;
|
|
1766
|
-
claimableMissedToke: bigint;
|
|
1767
|
-
} | undefined>;
|
|
1768
|
-
|
|
1769
|
-
declare const getUserActivity: ({ address, includeTestnet, }: {
|
|
1770
|
-
address: Address;
|
|
1771
|
-
includeTestnet?: boolean;
|
|
1772
|
-
}) => Promise<{
|
|
1773
|
-
events: NonNullable<Awaited<ReturnType<typeof getChainUserActivity>>>["events"];
|
|
1774
|
-
totals: {
|
|
1775
|
-
[x: string]: {
|
|
1776
|
-
totalDeposits: bigint;
|
|
1777
|
-
totalWithdrawals: bigint;
|
|
1778
|
-
chainId: SupportedChainIds;
|
|
1779
|
-
};
|
|
1780
|
-
};
|
|
1781
|
-
}>;
|
|
1782
|
-
type IUserActivity = Awaited<ReturnType<typeof getUserActivity>>;
|
|
1783
|
-
|
|
1784
|
-
interface UserDayDataEntry {
|
|
1785
|
-
id: string;
|
|
1786
|
-
date: Date;
|
|
1787
|
-
vaultAddress: Address;
|
|
1788
|
-
baseAsset: IToken;
|
|
1789
|
-
timestamp: string;
|
|
1790
|
-
shares: string;
|
|
1791
|
-
rewardsClaimed: string;
|
|
1792
|
-
nav: {
|
|
1793
|
-
ETH: number;
|
|
1794
|
-
USD: number;
|
|
1795
|
-
PXETH: number;
|
|
1796
|
-
USDC: number;
|
|
1797
|
-
EURC: number;
|
|
1798
|
-
USDT: number;
|
|
1799
|
-
};
|
|
1800
|
-
}
|
|
1801
|
-
interface EnhancedUserHistoryEntry {
|
|
1802
|
-
date: Date;
|
|
1803
|
-
timestamp: string;
|
|
1804
|
-
autopools: UserDayDataEntry[];
|
|
1805
|
-
nav: {
|
|
1806
|
-
ETH: number;
|
|
1807
|
-
USD: number;
|
|
1808
|
-
PXETH: number;
|
|
1809
|
-
USDC: number;
|
|
1810
|
-
EURC: number;
|
|
1811
|
-
USDT: number;
|
|
1812
|
-
};
|
|
1813
|
-
formattedDate: string;
|
|
1814
|
-
events: any[];
|
|
1815
|
-
differential: number;
|
|
1816
|
-
}
|
|
1817
|
-
declare const getUserAutopoolsHistory: (address: Address, autopoolsHistory: IAutopoolsHistory, events: Awaited<ReturnType<typeof getUserActivity>>["events"] | undefined, includeTestnet?: boolean) => Promise<EnhancedUserHistoryEntry[]>;
|
|
1818
|
-
|
|
1819
284
|
declare const getUserSushiLP: (wagmiConfig: Config, { sushiLP, currentCycleIndex, address, cycleRolloverBlockNumber, chainId, }: {
|
|
1820
285
|
sushiLP: ISushiLP;
|
|
1821
286
|
currentCycleIndex: bigint;
|
|
@@ -1924,427 +389,6 @@ declare const getAutopoolDayData: (address: Address, chainId?: SupportedChainIds
|
|
|
1924
389
|
};
|
|
1925
390
|
}[]>;
|
|
1926
391
|
|
|
1927
|
-
declare const systemRegistryFunctionNames: string[];
|
|
1928
|
-
declare const getSystemConfig: (wagmiConfig: Config, { systemRegistry }: {
|
|
1929
|
-
systemRegistry: Address;
|
|
1930
|
-
}) => Promise<{
|
|
1931
|
-
asyncSwapperRegistry: void | `0x${string}` | undefined;
|
|
1932
|
-
autopoolRouter: void | `0x${string}` | undefined;
|
|
1933
|
-
autopoolRegistry: void | `0x${string}` | undefined;
|
|
1934
|
-
swapRouter: void | `0x${string}` | undefined;
|
|
1935
|
-
} | undefined>;
|
|
1936
|
-
|
|
1937
|
-
declare const getUserAutopools: ({ address, includeTestnet, autopools, userActivity, prices, config, }: {
|
|
1938
|
-
address: Address;
|
|
1939
|
-
includeTestnet?: boolean;
|
|
1940
|
-
autopools: IAutopools;
|
|
1941
|
-
userActivity: IUserActivity;
|
|
1942
|
-
prices: TokenPrices;
|
|
1943
|
-
config: Config$1;
|
|
1944
|
-
}) => Promise<{
|
|
1945
|
-
nav: TokenPrices & {
|
|
1946
|
-
USD: number;
|
|
1947
|
-
};
|
|
1948
|
-
idle: {
|
|
1949
|
-
allocation: number;
|
|
1950
|
-
ETH: number;
|
|
1951
|
-
WETH: number;
|
|
1952
|
-
USDC: number;
|
|
1953
|
-
DOLA: number;
|
|
1954
|
-
USDT0: number;
|
|
1955
|
-
EURC: number;
|
|
1956
|
-
PXETH: number;
|
|
1957
|
-
S: number;
|
|
1958
|
-
USDT: number;
|
|
1959
|
-
TOKE: number;
|
|
1960
|
-
SILO: number;
|
|
1961
|
-
XPL: number;
|
|
1962
|
-
WS: number;
|
|
1963
|
-
WXPL: number;
|
|
1964
|
-
USD: number;
|
|
1965
|
-
token: IToken;
|
|
1966
|
-
baseAsset: number;
|
|
1967
|
-
}[];
|
|
1968
|
-
supplied: TokenPrices & {
|
|
1969
|
-
USD: number;
|
|
1970
|
-
};
|
|
1971
|
-
returns: TokenPrices & {
|
|
1972
|
-
USD: number;
|
|
1973
|
-
};
|
|
1974
|
-
categories: {
|
|
1975
|
-
usd: {
|
|
1976
|
-
nav: TokenPrices & {
|
|
1977
|
-
USD: number;
|
|
1978
|
-
};
|
|
1979
|
-
supplied: TokenPrices & {
|
|
1980
|
-
USD: number;
|
|
1981
|
-
};
|
|
1982
|
-
returns: TokenPrices & {
|
|
1983
|
-
USD: number;
|
|
1984
|
-
};
|
|
1985
|
-
idle: {
|
|
1986
|
-
allocation: number;
|
|
1987
|
-
ETH: number;
|
|
1988
|
-
WETH: number;
|
|
1989
|
-
USDC: number;
|
|
1990
|
-
DOLA: number;
|
|
1991
|
-
USDT0: number;
|
|
1992
|
-
EURC: number;
|
|
1993
|
-
PXETH: number;
|
|
1994
|
-
S: number;
|
|
1995
|
-
USDT: number;
|
|
1996
|
-
TOKE: number;
|
|
1997
|
-
SILO: number;
|
|
1998
|
-
XPL: number;
|
|
1999
|
-
WS: number;
|
|
2000
|
-
WXPL: number;
|
|
2001
|
-
USD: number;
|
|
2002
|
-
};
|
|
2003
|
-
avgDailyReturns: TokenPrices & {
|
|
2004
|
-
USD: number;
|
|
2005
|
-
};
|
|
2006
|
-
apr: number;
|
|
2007
|
-
totalDeposits: number;
|
|
2008
|
-
totalWithdrawals: number;
|
|
2009
|
-
};
|
|
2010
|
-
eth: {
|
|
2011
|
-
nav: TokenPrices & {
|
|
2012
|
-
USD: number;
|
|
2013
|
-
};
|
|
2014
|
-
supplied: TokenPrices & {
|
|
2015
|
-
USD: number;
|
|
2016
|
-
};
|
|
2017
|
-
returns: TokenPrices & {
|
|
2018
|
-
USD: number;
|
|
2019
|
-
};
|
|
2020
|
-
idle: {
|
|
2021
|
-
allocation: number;
|
|
2022
|
-
ETH: number;
|
|
2023
|
-
WETH: number;
|
|
2024
|
-
USDC: number;
|
|
2025
|
-
DOLA: number;
|
|
2026
|
-
USDT0: number;
|
|
2027
|
-
EURC: number;
|
|
2028
|
-
PXETH: number;
|
|
2029
|
-
S: number;
|
|
2030
|
-
USDT: number;
|
|
2031
|
-
TOKE: number;
|
|
2032
|
-
SILO: number;
|
|
2033
|
-
XPL: number;
|
|
2034
|
-
WS: number;
|
|
2035
|
-
WXPL: number;
|
|
2036
|
-
USD: number;
|
|
2037
|
-
};
|
|
2038
|
-
avgDailyReturns: TokenPrices & {
|
|
2039
|
-
USD: number;
|
|
2040
|
-
};
|
|
2041
|
-
apr: number;
|
|
2042
|
-
totalDeposits: number;
|
|
2043
|
-
totalWithdrawals: number;
|
|
2044
|
-
};
|
|
2045
|
-
crypto: {
|
|
2046
|
-
nav: TokenPrices & {
|
|
2047
|
-
USD: number;
|
|
2048
|
-
};
|
|
2049
|
-
supplied: TokenPrices & {
|
|
2050
|
-
USD: number;
|
|
2051
|
-
};
|
|
2052
|
-
returns: TokenPrices & {
|
|
2053
|
-
USD: number;
|
|
2054
|
-
};
|
|
2055
|
-
idle: {
|
|
2056
|
-
allocation: number;
|
|
2057
|
-
ETH: number;
|
|
2058
|
-
WETH: number;
|
|
2059
|
-
USDC: number;
|
|
2060
|
-
DOLA: number;
|
|
2061
|
-
USDT0: number;
|
|
2062
|
-
EURC: number;
|
|
2063
|
-
PXETH: number;
|
|
2064
|
-
S: number;
|
|
2065
|
-
USDT: number;
|
|
2066
|
-
TOKE: number;
|
|
2067
|
-
SILO: number;
|
|
2068
|
-
XPL: number;
|
|
2069
|
-
WS: number;
|
|
2070
|
-
WXPL: number;
|
|
2071
|
-
USD: number;
|
|
2072
|
-
};
|
|
2073
|
-
avgDailyReturns: TokenPrices & {
|
|
2074
|
-
USD: number;
|
|
2075
|
-
};
|
|
2076
|
-
apr: number;
|
|
2077
|
-
totalDeposits: number;
|
|
2078
|
-
totalWithdrawals: number;
|
|
2079
|
-
};
|
|
2080
|
-
stables: {
|
|
2081
|
-
nav: TokenPrices & {
|
|
2082
|
-
USD: number;
|
|
2083
|
-
};
|
|
2084
|
-
supplied: TokenPrices & {
|
|
2085
|
-
USD: number;
|
|
2086
|
-
};
|
|
2087
|
-
returns: TokenPrices & {
|
|
2088
|
-
USD: number;
|
|
2089
|
-
};
|
|
2090
|
-
idle: {
|
|
2091
|
-
allocation: number;
|
|
2092
|
-
ETH: number;
|
|
2093
|
-
WETH: number;
|
|
2094
|
-
USDC: number;
|
|
2095
|
-
DOLA: number;
|
|
2096
|
-
USDT0: number;
|
|
2097
|
-
EURC: number;
|
|
2098
|
-
PXETH: number;
|
|
2099
|
-
S: number;
|
|
2100
|
-
USDT: number;
|
|
2101
|
-
TOKE: number;
|
|
2102
|
-
SILO: number;
|
|
2103
|
-
XPL: number;
|
|
2104
|
-
WS: number;
|
|
2105
|
-
WXPL: number;
|
|
2106
|
-
USD: number;
|
|
2107
|
-
};
|
|
2108
|
-
avgDailyReturns: TokenPrices & {
|
|
2109
|
-
USD: number;
|
|
2110
|
-
};
|
|
2111
|
-
apr: number;
|
|
2112
|
-
totalDeposits: number;
|
|
2113
|
-
totalWithdrawals: number;
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
exchanges: {
|
|
2117
|
-
allocation: number;
|
|
2118
|
-
valueUsd: number;
|
|
2119
|
-
value: number;
|
|
2120
|
-
logoURI: string;
|
|
2121
|
-
name: string;
|
|
2122
|
-
audits?: string;
|
|
2123
|
-
type: "DEX" | "Lending Market" | "Protocol" | "Portfolio Tracker";
|
|
2124
|
-
}[];
|
|
2125
|
-
tokens: {
|
|
2126
|
-
allocation: number;
|
|
2127
|
-
valueUsd: number;
|
|
2128
|
-
value: number;
|
|
2129
|
-
address: Address;
|
|
2130
|
-
chainId: number;
|
|
2131
|
-
decimals: number;
|
|
2132
|
-
logoURI: string;
|
|
2133
|
-
name: string;
|
|
2134
|
-
symbol: string;
|
|
2135
|
-
audits?: string;
|
|
2136
|
-
extensions?: {
|
|
2137
|
-
bridgeMainnetAdapter?: Address;
|
|
2138
|
-
bridgeInfo?: {
|
|
2139
|
-
[chainId: number]: {
|
|
2140
|
-
tokenAddress: Address;
|
|
2141
|
-
};
|
|
2142
|
-
};
|
|
2143
|
-
rebasing?: boolean;
|
|
2144
|
-
parentAsset?: string;
|
|
2145
|
-
};
|
|
2146
|
-
}[];
|
|
2147
|
-
pools: {
|
|
2148
|
-
debtValueHeldByVaultAllocation: number;
|
|
2149
|
-
debtValueHeldByVaultUsd: number;
|
|
2150
|
-
debtValueHeldByVaultEth: number;
|
|
2151
|
-
compositeReturn: number;
|
|
2152
|
-
underlyingTokens: {
|
|
2153
|
-
valueUsd: number;
|
|
2154
|
-
value: number;
|
|
2155
|
-
address: Address;
|
|
2156
|
-
chainId: number;
|
|
2157
|
-
decimals: number;
|
|
2158
|
-
logoURI: string;
|
|
2159
|
-
name: string;
|
|
2160
|
-
symbol: string;
|
|
2161
|
-
audits?: string;
|
|
2162
|
-
extensions?: {
|
|
2163
|
-
bridgeMainnetAdapter?: Address;
|
|
2164
|
-
bridgeInfo?: {
|
|
2165
|
-
[chainId: number]: {
|
|
2166
|
-
tokenAddress: Address;
|
|
2167
|
-
};
|
|
2168
|
-
};
|
|
2169
|
-
rebasing?: boolean;
|
|
2170
|
-
parentAsset?: string;
|
|
2171
|
-
};
|
|
2172
|
-
}[];
|
|
2173
|
-
poolName: string;
|
|
2174
|
-
exchange: _tokemak_tokenlist.IProtocol | undefined;
|
|
2175
|
-
vaultAddress: `0x${string}`;
|
|
2176
|
-
exchangeName: string;
|
|
2177
|
-
totalSupply: bigint;
|
|
2178
|
-
lastSnapshotTimestamp: bigint;
|
|
2179
|
-
feeApr: bigint;
|
|
2180
|
-
lastDebtReportTime: bigint;
|
|
2181
|
-
minDebtValue: bigint;
|
|
2182
|
-
maxDebtValue: bigint;
|
|
2183
|
-
debtValueHeldByVault: bigint;
|
|
2184
|
-
queuedForRemoval: boolean;
|
|
2185
|
-
statsIncomplete: boolean;
|
|
2186
|
-
isShutdown: boolean;
|
|
2187
|
-
shutdownStatus: number;
|
|
2188
|
-
autoPoolOwnsShares: bigint;
|
|
2189
|
-
actualLPTotalSupply: bigint;
|
|
2190
|
-
dexPool: `0x${string}`;
|
|
2191
|
-
lpTokenAddress: `0x${string}`;
|
|
2192
|
-
lpTokenSymbol: string;
|
|
2193
|
-
lpTokenName: string;
|
|
2194
|
-
statsSafeLPTotalSupply: bigint;
|
|
2195
|
-
statsIncentiveCredits: number;
|
|
2196
|
-
rewardsTokens: readonly {
|
|
2197
|
-
tokenAddress: `0x${string}`;
|
|
2198
|
-
}[];
|
|
2199
|
-
underlyingTokenSymbols: readonly {
|
|
2200
|
-
symbol: string;
|
|
2201
|
-
}[];
|
|
2202
|
-
lstStatsData: readonly {
|
|
2203
|
-
lastSnapshotTimestamp: bigint;
|
|
2204
|
-
baseApr: bigint;
|
|
2205
|
-
discount: bigint;
|
|
2206
|
-
discountHistory: readonly [number, number, number, number, number, number, number, number, number, number];
|
|
2207
|
-
discountTimestampByPercent: number;
|
|
2208
|
-
}[];
|
|
2209
|
-
underlyingTokenValueHeld: readonly {
|
|
2210
|
-
valueHeldInEth: bigint;
|
|
2211
|
-
}[];
|
|
2212
|
-
reservesInEth: readonly bigint[];
|
|
2213
|
-
statsPeriodFinishForRewards: readonly number[];
|
|
2214
|
-
statsAnnualizedRewardAmounts: readonly bigint[];
|
|
2215
|
-
}[];
|
|
2216
|
-
autopools: ({
|
|
2217
|
-
name: string;
|
|
2218
|
-
symbol: string;
|
|
2219
|
-
poolAddress: `0x${string}`;
|
|
2220
|
-
shares: number;
|
|
2221
|
-
nav: {
|
|
2222
|
-
denom: number;
|
|
2223
|
-
ETH: number;
|
|
2224
|
-
WETH: number;
|
|
2225
|
-
USDC: number;
|
|
2226
|
-
DOLA: number;
|
|
2227
|
-
USDT0: number;
|
|
2228
|
-
EURC: number;
|
|
2229
|
-
PXETH: number;
|
|
2230
|
-
S: number;
|
|
2231
|
-
USDT: number;
|
|
2232
|
-
TOKE: number;
|
|
2233
|
-
SILO: number;
|
|
2234
|
-
XPL: number;
|
|
2235
|
-
WS: number;
|
|
2236
|
-
WXPL: number;
|
|
2237
|
-
baseAsset: number;
|
|
2238
|
-
USD: number;
|
|
2239
|
-
};
|
|
2240
|
-
returns: {
|
|
2241
|
-
denom: number;
|
|
2242
|
-
ETH: number;
|
|
2243
|
-
WETH: number;
|
|
2244
|
-
USDC: number;
|
|
2245
|
-
DOLA: number;
|
|
2246
|
-
USDT0: number;
|
|
2247
|
-
EURC: number;
|
|
2248
|
-
PXETH: number;
|
|
2249
|
-
S: number;
|
|
2250
|
-
USDT: number;
|
|
2251
|
-
TOKE: number;
|
|
2252
|
-
SILO: number;
|
|
2253
|
-
XPL: number;
|
|
2254
|
-
WS: number;
|
|
2255
|
-
WXPL: number;
|
|
2256
|
-
baseAsset: number;
|
|
2257
|
-
USD: number;
|
|
2258
|
-
};
|
|
2259
|
-
supplied: {
|
|
2260
|
-
denom: number;
|
|
2261
|
-
ETH: number;
|
|
2262
|
-
WETH: number;
|
|
2263
|
-
USDC: number;
|
|
2264
|
-
DOLA: number;
|
|
2265
|
-
USDT0: number;
|
|
2266
|
-
EURC: number;
|
|
2267
|
-
PXETH: number;
|
|
2268
|
-
S: number;
|
|
2269
|
-
USDT: number;
|
|
2270
|
-
TOKE: number;
|
|
2271
|
-
SILO: number;
|
|
2272
|
-
XPL: number;
|
|
2273
|
-
WS: number;
|
|
2274
|
-
WXPL: number;
|
|
2275
|
-
baseAsset: number;
|
|
2276
|
-
USD: number;
|
|
2277
|
-
};
|
|
2278
|
-
idle: {
|
|
2279
|
-
denom: number;
|
|
2280
|
-
ETH: number;
|
|
2281
|
-
WETH: number;
|
|
2282
|
-
USDC: number;
|
|
2283
|
-
DOLA: number;
|
|
2284
|
-
USDT0: number;
|
|
2285
|
-
EURC: number;
|
|
2286
|
-
PXETH: number;
|
|
2287
|
-
S: number;
|
|
2288
|
-
USDT: number;
|
|
2289
|
-
TOKE: number;
|
|
2290
|
-
SILO: number;
|
|
2291
|
-
XPL: number;
|
|
2292
|
-
WS: number;
|
|
2293
|
-
WXPL: number;
|
|
2294
|
-
baseAsset: number;
|
|
2295
|
-
USD: number;
|
|
2296
|
-
};
|
|
2297
|
-
totalDeposits: number;
|
|
2298
|
-
totalWithdrawals: number;
|
|
2299
|
-
staked: {
|
|
2300
|
-
balance: bigint;
|
|
2301
|
-
shares: number;
|
|
2302
|
-
nav: Currencies;
|
|
2303
|
-
};
|
|
2304
|
-
unstaked: {
|
|
2305
|
-
balance: bigint;
|
|
2306
|
-
shares: number;
|
|
2307
|
-
nav: Currencies;
|
|
2308
|
-
};
|
|
2309
|
-
useDenomination: boolean;
|
|
2310
|
-
baseApr: any;
|
|
2311
|
-
blendedApr: number;
|
|
2312
|
-
rewardsClaimed: any;
|
|
2313
|
-
lastDeposit: string | undefined;
|
|
2314
|
-
baseAsset: IToken;
|
|
2315
|
-
denomination: {
|
|
2316
|
-
price: number;
|
|
2317
|
-
address: Address;
|
|
2318
|
-
chainId: number;
|
|
2319
|
-
decimals: number;
|
|
2320
|
-
logoURI: string;
|
|
2321
|
-
name: string;
|
|
2322
|
-
symbol: string;
|
|
2323
|
-
audits?: string;
|
|
2324
|
-
extensions?: {
|
|
2325
|
-
bridgeMainnetAdapter?: Address;
|
|
2326
|
-
bridgeInfo?: {
|
|
2327
|
-
[chainId: number]: {
|
|
2328
|
-
tokenAddress: Address;
|
|
2329
|
-
};
|
|
2330
|
-
};
|
|
2331
|
-
rebasing?: boolean;
|
|
2332
|
-
parentAsset?: string;
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
category: AutopoolCategory;
|
|
2336
|
-
} | undefined)[];
|
|
2337
|
-
avgDailyReturnsUsd: number;
|
|
2338
|
-
useDenomination: boolean;
|
|
2339
|
-
denominatedToken: IToken;
|
|
2340
|
-
weightedApr: number;
|
|
2341
|
-
lowestApr: number;
|
|
2342
|
-
highestApr: number;
|
|
2343
|
-
hasMultipleBaseAssets: boolean;
|
|
2344
|
-
} | undefined>;
|
|
2345
|
-
type IUserAutopools = NonNullable<Awaited<ReturnType<typeof getUserAutopools>>>;
|
|
2346
|
-
type IUserAutopool = IUserAutopools["autopools"][number];
|
|
2347
|
-
|
|
2348
392
|
declare const getChainUserAutopools: ({ address, chainId, }: {
|
|
2349
393
|
address: Address;
|
|
2350
394
|
chainId?: SupportedChainIds;
|
|
@@ -2427,13 +471,6 @@ declare const getUserAutopool: (wagmiConfig: Config, { address, autopool, }: {
|
|
|
2427
471
|
denomination?: undefined;
|
|
2428
472
|
} | undefined>;
|
|
2429
473
|
|
|
2430
|
-
type TokenBalances = Record<string, bigint | null>;
|
|
2431
|
-
declare const getUserTokenBalances: ({ address, apiKey, chainId, }: {
|
|
2432
|
-
address: Address;
|
|
2433
|
-
apiKey: string;
|
|
2434
|
-
chainId: number;
|
|
2435
|
-
}) => Promise<TokenBalances>;
|
|
2436
|
-
|
|
2437
474
|
declare const getTokenList: () => Promise<IToken[]>;
|
|
2438
475
|
|
|
2439
476
|
declare const getTopAutopoolHolders: (autopoolAddress: Address, chainId?: SupportedChainIds) => Promise<{
|
|
@@ -2867,11 +904,6 @@ declare const getChainUserSTokeRewards: (wagmiConfig: Config$1, { address, chain
|
|
|
2867
904
|
totalRewardsReceivedUsd: number;
|
|
2868
905
|
}>;
|
|
2869
906
|
|
|
2870
|
-
declare const getCurrentCycleId: (wagmiConfig: Config$1, { stoke, chainId, }: {
|
|
2871
|
-
stoke: Address;
|
|
2872
|
-
chainId: number;
|
|
2873
|
-
}) => Promise<bigint>;
|
|
2874
|
-
|
|
2875
907
|
declare const getAutopilotRouter: (wagmiConfig: Config, { chainId }: {
|
|
2876
908
|
chainId: number;
|
|
2877
909
|
}) => Promise<void | `0x${string}`>;
|
|
@@ -3093,4 +1125,4 @@ declare const updateRebalanceStats: (wagmiConfig: Config$1, { currentRebalances,
|
|
|
3093
1125
|
rebalances: IRebalance[];
|
|
3094
1126
|
}>;
|
|
3095
1127
|
|
|
3096
|
-
export { AggregatedDayData,
|
|
1128
|
+
export { AggregatedDayData, BATCH_SIZE, BaseDataEntry, ChainSTokeRewardsType, ChainSTokeType, ChainSTokeVotes, Currencies, CurveLP, GetLayerzeroStatusConfig, IAutopool, IAutopools, IRebalance, IStoke, IStokeRewards, ISushiLP, ITopAutopoolHolder, ITopAutopoolHolders, IUserAutopoolsRewards, IUserExtraRewards, IUserReward, LayerzeroStatus, MessageStatus, PoolRewardsBalanceDayData, RawRebalance, STokeVotes, SendParam, SwapQuoteParams, SwapQuoteResponse, TokenPrices, UserAutopoolsVotes, UserSTokeVotes, aggregateSTokeRewardsDayData, arraysToObject, calculateRebalanceStats, convertBaseAssetToTokenPrices, convertBaseAssetToTokenPricesAndDenom, fetchChainDataMap, fetchChainRebalances, fillMissingDates, findClosestDateEntry, findClosestEntry, findClosestTimestampEntry, formatDateRange, getAddressFromSystemRegistry, getAllowance, getAmountDeposited, getAmountWithdrawn, getAutopilotRouter, getAutopoolDayData, getAutopoolInfo, getAutopoolRebalances, getAutopoolsRebalances, getBridgeFee, getChainCycleRolloverBlockNumber, getChainSToke, getChainSTokeRewards, getChainSubgraphStatus, getChainUserAutopools, getChainUserSToke, getChainUserSTokeRewards, getChainUserSTokeVotes, getChainsForEnv, getCurveLP, getCycleV1, getDefillamaPrice, getDynamicSwap, getEthPriceAtBlock, getExchangeNames, getGenStratAprs, getLayerzeroStatus, getMutlipleAutopoolRebalances, getPoolStats, getPoolsAndDestinations, getPoolsAndDestinationsReturnType, getProtocolStats, getRebalanceStats, getRebalanceValueUsd, getSToke, getSTokeChainsForEnv, getSTokeRewards, getSTokeVotes, getSubgraphStatus, getSushiLP, getSwapQuote, getTimestampDaysFromStart, getTokenList, getTopAutopoolHolders, getUserAutoEthRewards, getUserAutopool, getUserAutopoolsRewards, getUserCurveLP, getUserRewardsV1, getUserSToke, getUserSTokeVotes, getUserSushiLP, mergeArrays, mergeArraysWithKey, mergeStringArrays, minAmountDepositedFunctionConfig, minAmountWithdrawnFunctionConfig, modifyAutopoolName, nestedArrayToObject, paginateQuery, processRebalance, processRebalancesInBatches, rewardsData, updateRebalanceStats, waitForMessageReceived };
|