@tokemak/queries 0.0.3 → 0.0.4
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 +701 -408
- package/dist/index.d.ts +440 -98
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { Address } from 'viem';
|
|
3
3
|
import * as _tokemak_tokenlist from '@tokemak/tokenlist';
|
|
4
4
|
import { INetwork, IToken, IProtocol } from '@tokemak/tokenlist';
|
|
5
|
-
import * as abitype from 'abitype';
|
|
6
5
|
import { Config } from '@wagmi/core';
|
|
7
6
|
import { SupportedChainIds } from '@tokemak/config';
|
|
8
7
|
import { Config as Config$1 } from 'wagmi';
|
|
@@ -126,26 +125,29 @@ declare function getSTokeChainsForEnv({ includeTestnet, }: GetChainsOptions): IN
|
|
|
126
125
|
|
|
127
126
|
declare const ETH_BASE_ASSETS: string[];
|
|
128
127
|
declare const USD_BASE_ASSETS: string[];
|
|
128
|
+
declare const EUR_BASE_ASSETS: string[];
|
|
129
129
|
declare enum AutopoolCategory {
|
|
130
130
|
ETH = "eth",
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
CRYPTO = "crypto",
|
|
132
|
+
STABLES = "stables",
|
|
133
|
+
USD = "usd"
|
|
133
134
|
}
|
|
134
135
|
declare const getAutopoolCategory: (baseAsset: string) => AutopoolCategory;
|
|
135
136
|
|
|
136
137
|
declare const BASE_ASSETS: readonly [{
|
|
137
138
|
readonly symbol: "ETH";
|
|
138
|
-
readonly
|
|
139
|
+
readonly coinGeckoId: "ethereum";
|
|
140
|
+
readonly address: viem.Address;
|
|
139
141
|
readonly chainId: number;
|
|
140
142
|
readonly decimals: number;
|
|
141
143
|
readonly logoURI: string;
|
|
142
144
|
readonly name: string;
|
|
143
145
|
readonly audits?: string;
|
|
144
146
|
readonly extensions?: {
|
|
145
|
-
bridgeMainnetAdapter?:
|
|
147
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
146
148
|
bridgeInfo?: {
|
|
147
149
|
[chainId: number]: {
|
|
148
|
-
tokenAddress:
|
|
150
|
+
tokenAddress: viem.Address;
|
|
149
151
|
};
|
|
150
152
|
};
|
|
151
153
|
rebasing?: boolean;
|
|
@@ -153,17 +155,18 @@ declare const BASE_ASSETS: readonly [{
|
|
|
153
155
|
};
|
|
154
156
|
}, {
|
|
155
157
|
readonly symbol: "PXETH";
|
|
156
|
-
readonly
|
|
158
|
+
readonly coinGeckoId: "dinero-staked-eth";
|
|
159
|
+
readonly address: viem.Address;
|
|
157
160
|
readonly chainId: number;
|
|
158
161
|
readonly decimals: number;
|
|
159
162
|
readonly logoURI: string;
|
|
160
163
|
readonly name: string;
|
|
161
164
|
readonly audits?: string;
|
|
162
165
|
readonly extensions?: {
|
|
163
|
-
bridgeMainnetAdapter?:
|
|
166
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
164
167
|
bridgeInfo?: {
|
|
165
168
|
[chainId: number]: {
|
|
166
|
-
tokenAddress:
|
|
169
|
+
tokenAddress: viem.Address;
|
|
167
170
|
};
|
|
168
171
|
};
|
|
169
172
|
rebasing?: boolean;
|
|
@@ -171,17 +174,18 @@ declare const BASE_ASSETS: readonly [{
|
|
|
171
174
|
};
|
|
172
175
|
}, {
|
|
173
176
|
readonly symbol: "USDC";
|
|
174
|
-
readonly
|
|
177
|
+
readonly coinGeckoId: "usd-coin";
|
|
178
|
+
readonly address: viem.Address;
|
|
175
179
|
readonly chainId: number;
|
|
176
180
|
readonly decimals: number;
|
|
177
181
|
readonly logoURI: string;
|
|
178
182
|
readonly name: string;
|
|
179
183
|
readonly audits?: string;
|
|
180
184
|
readonly extensions?: {
|
|
181
|
-
bridgeMainnetAdapter?:
|
|
185
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
182
186
|
bridgeInfo?: {
|
|
183
187
|
[chainId: number]: {
|
|
184
|
-
tokenAddress:
|
|
188
|
+
tokenAddress: viem.Address;
|
|
185
189
|
};
|
|
186
190
|
};
|
|
187
191
|
rebasing?: boolean;
|
|
@@ -189,17 +193,18 @@ declare const BASE_ASSETS: readonly [{
|
|
|
189
193
|
};
|
|
190
194
|
}, {
|
|
191
195
|
readonly symbol: "DOLA";
|
|
192
|
-
readonly
|
|
196
|
+
readonly coinGeckoId: "dola-usd";
|
|
197
|
+
readonly address: viem.Address;
|
|
193
198
|
readonly chainId: number;
|
|
194
199
|
readonly decimals: number;
|
|
195
200
|
readonly logoURI: string;
|
|
196
201
|
readonly name: string;
|
|
197
202
|
readonly audits?: string;
|
|
198
203
|
readonly extensions?: {
|
|
199
|
-
bridgeMainnetAdapter?:
|
|
204
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
200
205
|
bridgeInfo?: {
|
|
201
206
|
[chainId: number]: {
|
|
202
|
-
tokenAddress:
|
|
207
|
+
tokenAddress: viem.Address;
|
|
203
208
|
};
|
|
204
209
|
};
|
|
205
210
|
rebasing?: boolean;
|
|
@@ -207,17 +212,74 @@ declare const BASE_ASSETS: readonly [{
|
|
|
207
212
|
};
|
|
208
213
|
}, {
|
|
209
214
|
readonly symbol: "S";
|
|
210
|
-
readonly address:
|
|
215
|
+
readonly address: viem.Address;
|
|
211
216
|
readonly chainId: number;
|
|
212
217
|
readonly decimals: number;
|
|
213
218
|
readonly logoURI: string;
|
|
214
219
|
readonly name: string;
|
|
215
220
|
readonly audits?: string;
|
|
216
221
|
readonly extensions?: {
|
|
217
|
-
bridgeMainnetAdapter?:
|
|
222
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
218
223
|
bridgeInfo?: {
|
|
219
224
|
[chainId: number]: {
|
|
220
|
-
tokenAddress:
|
|
225
|
+
tokenAddress: viem.Address;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
rebasing?: boolean;
|
|
229
|
+
parentAsset?: string;
|
|
230
|
+
};
|
|
231
|
+
}, {
|
|
232
|
+
readonly symbol: "EURC";
|
|
233
|
+
readonly coinGeckoId: "euro-coin";
|
|
234
|
+
readonly address: viem.Address;
|
|
235
|
+
readonly chainId: number;
|
|
236
|
+
readonly decimals: number;
|
|
237
|
+
readonly logoURI: string;
|
|
238
|
+
readonly name: string;
|
|
239
|
+
readonly audits?: string;
|
|
240
|
+
readonly extensions?: {
|
|
241
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
242
|
+
bridgeInfo?: {
|
|
243
|
+
[chainId: number]: {
|
|
244
|
+
tokenAddress: viem.Address;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
rebasing?: boolean;
|
|
248
|
+
parentAsset?: string;
|
|
249
|
+
};
|
|
250
|
+
}, {
|
|
251
|
+
readonly symbol: "USDT";
|
|
252
|
+
readonly coinGeckoId: "tether";
|
|
253
|
+
readonly address: viem.Address;
|
|
254
|
+
readonly chainId: number;
|
|
255
|
+
readonly decimals: number;
|
|
256
|
+
readonly logoURI: string;
|
|
257
|
+
readonly name: string;
|
|
258
|
+
readonly audits?: string;
|
|
259
|
+
readonly extensions?: {
|
|
260
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
261
|
+
bridgeInfo?: {
|
|
262
|
+
[chainId: number]: {
|
|
263
|
+
tokenAddress: viem.Address;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
rebasing?: boolean;
|
|
267
|
+
parentAsset?: string;
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
readonly symbol: "USDT0";
|
|
271
|
+
readonly coinGeckoId: "tether";
|
|
272
|
+
readonly address: viem.Address;
|
|
273
|
+
readonly chainId: number;
|
|
274
|
+
readonly decimals: number;
|
|
275
|
+
readonly logoURI: string;
|
|
276
|
+
readonly name: string;
|
|
277
|
+
readonly audits?: string;
|
|
278
|
+
readonly extensions?: {
|
|
279
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
280
|
+
bridgeInfo?: {
|
|
281
|
+
[chainId: number]: {
|
|
282
|
+
tokenAddress: viem.Address;
|
|
221
283
|
};
|
|
222
284
|
};
|
|
223
285
|
rebasing?: boolean;
|
|
@@ -226,17 +288,18 @@ declare const BASE_ASSETS: readonly [{
|
|
|
226
288
|
}];
|
|
227
289
|
declare const PRICED_TOKENS: readonly [{
|
|
228
290
|
readonly symbol: "ETH";
|
|
229
|
-
readonly
|
|
291
|
+
readonly coinGeckoId: "ethereum";
|
|
292
|
+
readonly address: viem.Address;
|
|
230
293
|
readonly chainId: number;
|
|
231
294
|
readonly decimals: number;
|
|
232
295
|
readonly logoURI: string;
|
|
233
296
|
readonly name: string;
|
|
234
297
|
readonly audits?: string;
|
|
235
298
|
readonly extensions?: {
|
|
236
|
-
bridgeMainnetAdapter?:
|
|
299
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
237
300
|
bridgeInfo?: {
|
|
238
301
|
[chainId: number]: {
|
|
239
|
-
tokenAddress:
|
|
302
|
+
tokenAddress: viem.Address;
|
|
240
303
|
};
|
|
241
304
|
};
|
|
242
305
|
rebasing?: boolean;
|
|
@@ -244,17 +307,18 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
244
307
|
};
|
|
245
308
|
}, {
|
|
246
309
|
readonly symbol: "PXETH";
|
|
247
|
-
readonly
|
|
310
|
+
readonly coinGeckoId: "dinero-staked-eth";
|
|
311
|
+
readonly address: viem.Address;
|
|
248
312
|
readonly chainId: number;
|
|
249
313
|
readonly decimals: number;
|
|
250
314
|
readonly logoURI: string;
|
|
251
315
|
readonly name: string;
|
|
252
316
|
readonly audits?: string;
|
|
253
317
|
readonly extensions?: {
|
|
254
|
-
bridgeMainnetAdapter?:
|
|
318
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
255
319
|
bridgeInfo?: {
|
|
256
320
|
[chainId: number]: {
|
|
257
|
-
tokenAddress:
|
|
321
|
+
tokenAddress: viem.Address;
|
|
258
322
|
};
|
|
259
323
|
};
|
|
260
324
|
rebasing?: boolean;
|
|
@@ -262,17 +326,18 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
262
326
|
};
|
|
263
327
|
}, {
|
|
264
328
|
readonly symbol: "USDC";
|
|
265
|
-
readonly
|
|
329
|
+
readonly coinGeckoId: "usd-coin";
|
|
330
|
+
readonly address: viem.Address;
|
|
266
331
|
readonly chainId: number;
|
|
267
332
|
readonly decimals: number;
|
|
268
333
|
readonly logoURI: string;
|
|
269
334
|
readonly name: string;
|
|
270
335
|
readonly audits?: string;
|
|
271
336
|
readonly extensions?: {
|
|
272
|
-
bridgeMainnetAdapter?:
|
|
337
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
273
338
|
bridgeInfo?: {
|
|
274
339
|
[chainId: number]: {
|
|
275
|
-
tokenAddress:
|
|
340
|
+
tokenAddress: viem.Address;
|
|
276
341
|
};
|
|
277
342
|
};
|
|
278
343
|
rebasing?: boolean;
|
|
@@ -280,17 +345,18 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
280
345
|
};
|
|
281
346
|
}, {
|
|
282
347
|
readonly symbol: "DOLA";
|
|
283
|
-
readonly
|
|
348
|
+
readonly coinGeckoId: "dola-usd";
|
|
349
|
+
readonly address: viem.Address;
|
|
284
350
|
readonly chainId: number;
|
|
285
351
|
readonly decimals: number;
|
|
286
352
|
readonly logoURI: string;
|
|
287
353
|
readonly name: string;
|
|
288
354
|
readonly audits?: string;
|
|
289
355
|
readonly extensions?: {
|
|
290
|
-
bridgeMainnetAdapter?:
|
|
356
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
291
357
|
bridgeInfo?: {
|
|
292
358
|
[chainId: number]: {
|
|
293
|
-
tokenAddress:
|
|
359
|
+
tokenAddress: viem.Address;
|
|
294
360
|
};
|
|
295
361
|
};
|
|
296
362
|
rebasing?: boolean;
|
|
@@ -298,17 +364,74 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
298
364
|
};
|
|
299
365
|
}, {
|
|
300
366
|
readonly symbol: "S";
|
|
301
|
-
readonly address:
|
|
367
|
+
readonly address: viem.Address;
|
|
302
368
|
readonly chainId: number;
|
|
303
369
|
readonly decimals: number;
|
|
304
370
|
readonly logoURI: string;
|
|
305
371
|
readonly name: string;
|
|
306
372
|
readonly audits?: string;
|
|
307
373
|
readonly extensions?: {
|
|
308
|
-
bridgeMainnetAdapter?:
|
|
374
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
309
375
|
bridgeInfo?: {
|
|
310
376
|
[chainId: number]: {
|
|
311
|
-
tokenAddress:
|
|
377
|
+
tokenAddress: viem.Address;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
rebasing?: boolean;
|
|
381
|
+
parentAsset?: string;
|
|
382
|
+
};
|
|
383
|
+
}, {
|
|
384
|
+
readonly symbol: "EURC";
|
|
385
|
+
readonly coinGeckoId: "euro-coin";
|
|
386
|
+
readonly address: viem.Address;
|
|
387
|
+
readonly chainId: number;
|
|
388
|
+
readonly decimals: number;
|
|
389
|
+
readonly logoURI: string;
|
|
390
|
+
readonly name: string;
|
|
391
|
+
readonly audits?: string;
|
|
392
|
+
readonly extensions?: {
|
|
393
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
394
|
+
bridgeInfo?: {
|
|
395
|
+
[chainId: number]: {
|
|
396
|
+
tokenAddress: viem.Address;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
rebasing?: boolean;
|
|
400
|
+
parentAsset?: string;
|
|
401
|
+
};
|
|
402
|
+
}, {
|
|
403
|
+
readonly symbol: "USDT";
|
|
404
|
+
readonly coinGeckoId: "tether";
|
|
405
|
+
readonly address: viem.Address;
|
|
406
|
+
readonly chainId: number;
|
|
407
|
+
readonly decimals: number;
|
|
408
|
+
readonly logoURI: string;
|
|
409
|
+
readonly name: string;
|
|
410
|
+
readonly audits?: string;
|
|
411
|
+
readonly extensions?: {
|
|
412
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
413
|
+
bridgeInfo?: {
|
|
414
|
+
[chainId: number]: {
|
|
415
|
+
tokenAddress: viem.Address;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
rebasing?: boolean;
|
|
419
|
+
parentAsset?: string;
|
|
420
|
+
};
|
|
421
|
+
}, {
|
|
422
|
+
readonly symbol: "USDT0";
|
|
423
|
+
readonly coinGeckoId: "tether";
|
|
424
|
+
readonly address: viem.Address;
|
|
425
|
+
readonly chainId: number;
|
|
426
|
+
readonly decimals: number;
|
|
427
|
+
readonly logoURI: string;
|
|
428
|
+
readonly name: string;
|
|
429
|
+
readonly audits?: string;
|
|
430
|
+
readonly extensions?: {
|
|
431
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
432
|
+
bridgeInfo?: {
|
|
433
|
+
[chainId: number]: {
|
|
434
|
+
tokenAddress: viem.Address;
|
|
312
435
|
};
|
|
313
436
|
};
|
|
314
437
|
rebasing?: boolean;
|
|
@@ -316,17 +439,71 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
316
439
|
};
|
|
317
440
|
}, {
|
|
318
441
|
readonly symbol: "TOKE";
|
|
319
|
-
readonly address:
|
|
442
|
+
readonly address: viem.Address;
|
|
443
|
+
readonly chainId: number;
|
|
444
|
+
readonly decimals: number;
|
|
445
|
+
readonly logoURI: string;
|
|
446
|
+
readonly name: string;
|
|
447
|
+
readonly audits?: string;
|
|
448
|
+
readonly extensions?: {
|
|
449
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
450
|
+
bridgeInfo?: {
|
|
451
|
+
[chainId: number]: {
|
|
452
|
+
tokenAddress: viem.Address;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
rebasing?: boolean;
|
|
456
|
+
parentAsset?: string;
|
|
457
|
+
};
|
|
458
|
+
}, {
|
|
459
|
+
readonly symbol: "SILO";
|
|
460
|
+
readonly address: viem.Address;
|
|
461
|
+
readonly chainId: number;
|
|
462
|
+
readonly decimals: number;
|
|
463
|
+
readonly logoURI: string;
|
|
464
|
+
readonly name: string;
|
|
465
|
+
readonly audits?: string;
|
|
466
|
+
readonly extensions?: {
|
|
467
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
468
|
+
bridgeInfo?: {
|
|
469
|
+
[chainId: number]: {
|
|
470
|
+
tokenAddress: viem.Address;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
rebasing?: boolean;
|
|
474
|
+
parentAsset?: string;
|
|
475
|
+
};
|
|
476
|
+
}, {
|
|
477
|
+
readonly address: `0x${string}`;
|
|
478
|
+
readonly symbol: "XPL";
|
|
479
|
+
readonly chainId: number;
|
|
480
|
+
readonly decimals: number;
|
|
481
|
+
readonly logoURI: string;
|
|
482
|
+
readonly name: string;
|
|
483
|
+
readonly audits?: string;
|
|
484
|
+
readonly extensions?: {
|
|
485
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
486
|
+
bridgeInfo?: {
|
|
487
|
+
[chainId: number]: {
|
|
488
|
+
tokenAddress: viem.Address;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
rebasing?: boolean;
|
|
492
|
+
parentAsset?: string;
|
|
493
|
+
};
|
|
494
|
+
}, {
|
|
495
|
+
readonly symbol: "USDT0";
|
|
496
|
+
readonly address: viem.Address;
|
|
320
497
|
readonly chainId: number;
|
|
321
498
|
readonly decimals: number;
|
|
322
499
|
readonly logoURI: string;
|
|
323
500
|
readonly name: string;
|
|
324
501
|
readonly audits?: string;
|
|
325
502
|
readonly extensions?: {
|
|
326
|
-
bridgeMainnetAdapter?:
|
|
503
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
327
504
|
bridgeInfo?: {
|
|
328
505
|
[chainId: number]: {
|
|
329
|
-
tokenAddress:
|
|
506
|
+
tokenAddress: viem.Address;
|
|
330
507
|
};
|
|
331
508
|
};
|
|
332
509
|
rebasing?: boolean;
|
|
@@ -336,17 +513,17 @@ declare const PRICED_TOKENS: readonly [{
|
|
|
336
513
|
type BaseAsset = (typeof BASE_ASSETS)[number]["symbol"];
|
|
337
514
|
declare const WRAPPED_TOKENS: readonly [{
|
|
338
515
|
readonly symbol: "WETH";
|
|
339
|
-
readonly address:
|
|
516
|
+
readonly address: viem.Address;
|
|
340
517
|
readonly chainId: number;
|
|
341
518
|
readonly decimals: number;
|
|
342
519
|
readonly logoURI: string;
|
|
343
520
|
readonly name: string;
|
|
344
521
|
readonly audits?: string;
|
|
345
522
|
readonly extensions?: {
|
|
346
|
-
bridgeMainnetAdapter?:
|
|
523
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
347
524
|
bridgeInfo?: {
|
|
348
525
|
[chainId: number]: {
|
|
349
|
-
tokenAddress:
|
|
526
|
+
tokenAddress: viem.Address;
|
|
350
527
|
};
|
|
351
528
|
};
|
|
352
529
|
rebasing?: boolean;
|
|
@@ -354,17 +531,35 @@ declare const WRAPPED_TOKENS: readonly [{
|
|
|
354
531
|
};
|
|
355
532
|
}, {
|
|
356
533
|
readonly symbol: "WS";
|
|
357
|
-
readonly address:
|
|
534
|
+
readonly address: viem.Address;
|
|
358
535
|
readonly chainId: number;
|
|
359
536
|
readonly decimals: number;
|
|
360
537
|
readonly logoURI: string;
|
|
361
538
|
readonly name: string;
|
|
362
539
|
readonly audits?: string;
|
|
363
540
|
readonly extensions?: {
|
|
364
|
-
bridgeMainnetAdapter?:
|
|
541
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
365
542
|
bridgeInfo?: {
|
|
366
543
|
[chainId: number]: {
|
|
367
|
-
tokenAddress:
|
|
544
|
+
tokenAddress: viem.Address;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
rebasing?: boolean;
|
|
548
|
+
parentAsset?: string;
|
|
549
|
+
};
|
|
550
|
+
}, {
|
|
551
|
+
readonly symbol: "WXPL";
|
|
552
|
+
readonly address: viem.Address;
|
|
553
|
+
readonly chainId: number;
|
|
554
|
+
readonly decimals: number;
|
|
555
|
+
readonly logoURI: string;
|
|
556
|
+
readonly name: string;
|
|
557
|
+
readonly audits?: string;
|
|
558
|
+
readonly extensions?: {
|
|
559
|
+
bridgeMainnetAdapter?: viem.Address;
|
|
560
|
+
bridgeInfo?: {
|
|
561
|
+
[chainId: number]: {
|
|
562
|
+
tokenAddress: viem.Address;
|
|
368
563
|
};
|
|
369
564
|
};
|
|
370
565
|
rebasing?: boolean;
|
|
@@ -375,7 +570,11 @@ type TokenSymbol = (typeof PRICED_TOKENS)[number]["symbol"] | (typeof BASE_ASSET
|
|
|
375
570
|
type TokenPrices = {
|
|
376
571
|
[K in TokenSymbol]: number;
|
|
377
572
|
};
|
|
378
|
-
declare const getTokenPrices: () => Promise<
|
|
573
|
+
declare const getTokenPrices: (isCronJob?: boolean) => Promise<{
|
|
574
|
+
prices: TokenPrices | undefined;
|
|
575
|
+
timestamp: number | undefined;
|
|
576
|
+
isStale: boolean;
|
|
577
|
+
}>;
|
|
379
578
|
|
|
380
579
|
type Currencies = TokenPrices & {
|
|
381
580
|
baseAsset: number;
|
|
@@ -391,7 +590,7 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
391
590
|
symbol: string;
|
|
392
591
|
logoURI?: string | undefined;
|
|
393
592
|
description?: string;
|
|
394
|
-
type?: "
|
|
593
|
+
type?: "Core" | "Ecosystem" | "Institutional" | undefined;
|
|
395
594
|
tvl: number;
|
|
396
595
|
totalAssets: {
|
|
397
596
|
denom: number;
|
|
@@ -399,10 +598,16 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
399
598
|
WETH: number;
|
|
400
599
|
USDC: number;
|
|
401
600
|
DOLA: number;
|
|
601
|
+
USDT0: number;
|
|
602
|
+
EURC: number;
|
|
402
603
|
PXETH: number;
|
|
403
604
|
S: number;
|
|
605
|
+
USDT: number;
|
|
404
606
|
TOKE: number;
|
|
607
|
+
SILO: number;
|
|
608
|
+
XPL: number;
|
|
405
609
|
WS: number;
|
|
610
|
+
WXPL: number;
|
|
406
611
|
baseAsset: number;
|
|
407
612
|
USD: number;
|
|
408
613
|
};
|
|
@@ -608,10 +813,16 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
608
813
|
WETH: number;
|
|
609
814
|
USDC: number;
|
|
610
815
|
DOLA: number;
|
|
816
|
+
USDT0: number;
|
|
817
|
+
EURC: number;
|
|
611
818
|
PXETH: number;
|
|
612
819
|
S: number;
|
|
820
|
+
USDT: number;
|
|
613
821
|
TOKE: number;
|
|
822
|
+
SILO: number;
|
|
823
|
+
XPL: number;
|
|
614
824
|
WS: number;
|
|
825
|
+
WXPL: number;
|
|
615
826
|
baseAsset: number;
|
|
616
827
|
USD: number;
|
|
617
828
|
};
|
|
@@ -621,10 +832,16 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
621
832
|
WETH: number;
|
|
622
833
|
USDC: number;
|
|
623
834
|
DOLA: number;
|
|
835
|
+
USDT0: number;
|
|
836
|
+
EURC: number;
|
|
624
837
|
PXETH: number;
|
|
625
838
|
S: number;
|
|
839
|
+
USDT: number;
|
|
626
840
|
TOKE: number;
|
|
841
|
+
SILO: number;
|
|
842
|
+
XPL: number;
|
|
627
843
|
WS: number;
|
|
844
|
+
WXPL: number;
|
|
628
845
|
baseAsset: number;
|
|
629
846
|
USD: number;
|
|
630
847
|
};
|
|
@@ -635,10 +852,16 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
635
852
|
WETH: number;
|
|
636
853
|
USDC: number;
|
|
637
854
|
DOLA: number;
|
|
855
|
+
USDT0: number;
|
|
856
|
+
EURC: number;
|
|
638
857
|
PXETH: number;
|
|
639
858
|
S: number;
|
|
859
|
+
USDT: number;
|
|
640
860
|
TOKE: number;
|
|
861
|
+
SILO: number;
|
|
862
|
+
XPL: number;
|
|
641
863
|
WS: number;
|
|
864
|
+
WXPL: number;
|
|
642
865
|
baseAsset: number;
|
|
643
866
|
USD: number;
|
|
644
867
|
};
|
|
@@ -650,10 +873,16 @@ declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices, }: {
|
|
|
650
873
|
WETH: number;
|
|
651
874
|
USDC: number;
|
|
652
875
|
DOLA: number;
|
|
876
|
+
USDT0: number;
|
|
877
|
+
EURC: number;
|
|
653
878
|
PXETH: number;
|
|
654
879
|
S: number;
|
|
880
|
+
USDT: number;
|
|
655
881
|
TOKE: number;
|
|
882
|
+
SILO: number;
|
|
883
|
+
XPL: number;
|
|
656
884
|
WS: number;
|
|
885
|
+
WXPL: number;
|
|
657
886
|
baseAsset: number;
|
|
658
887
|
USD: number;
|
|
659
888
|
};
|
|
@@ -682,10 +911,16 @@ declare const convertBaseAssetToTokenPricesAndDenom: (baseAsset: number, baseAss
|
|
|
682
911
|
WETH: number;
|
|
683
912
|
USDC: number;
|
|
684
913
|
DOLA: number;
|
|
914
|
+
USDT0: number;
|
|
915
|
+
EURC: number;
|
|
685
916
|
PXETH: number;
|
|
686
917
|
S: number;
|
|
918
|
+
USDT: number;
|
|
687
919
|
TOKE: number;
|
|
920
|
+
SILO: number;
|
|
921
|
+
XPL: number;
|
|
688
922
|
WS: number;
|
|
923
|
+
WXPL: number;
|
|
689
924
|
baseAsset: number;
|
|
690
925
|
USD: number;
|
|
691
926
|
};
|
|
@@ -747,7 +982,7 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
747
982
|
symbol: string;
|
|
748
983
|
logoURI?: string | undefined;
|
|
749
984
|
description?: string;
|
|
750
|
-
type?: "
|
|
985
|
+
type?: "Core" | "Ecosystem" | "Institutional" | undefined;
|
|
751
986
|
tvl: number;
|
|
752
987
|
totalAssets: {
|
|
753
988
|
denom: number;
|
|
@@ -755,10 +990,16 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
755
990
|
WETH: number;
|
|
756
991
|
USDC: number;
|
|
757
992
|
DOLA: number;
|
|
993
|
+
USDT0: number;
|
|
994
|
+
EURC: number;
|
|
758
995
|
PXETH: number;
|
|
759
996
|
S: number;
|
|
997
|
+
USDT: number;
|
|
760
998
|
TOKE: number;
|
|
999
|
+
SILO: number;
|
|
1000
|
+
XPL: number;
|
|
761
1001
|
WS: number;
|
|
1002
|
+
WXPL: number;
|
|
762
1003
|
baseAsset: number;
|
|
763
1004
|
USD: number;
|
|
764
1005
|
};
|
|
@@ -964,10 +1205,16 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
964
1205
|
WETH: number;
|
|
965
1206
|
USDC: number;
|
|
966
1207
|
DOLA: number;
|
|
1208
|
+
USDT0: number;
|
|
1209
|
+
EURC: number;
|
|
967
1210
|
PXETH: number;
|
|
968
1211
|
S: number;
|
|
1212
|
+
USDT: number;
|
|
969
1213
|
TOKE: number;
|
|
1214
|
+
SILO: number;
|
|
1215
|
+
XPL: number;
|
|
970
1216
|
WS: number;
|
|
1217
|
+
WXPL: number;
|
|
971
1218
|
baseAsset: number;
|
|
972
1219
|
USD: number;
|
|
973
1220
|
};
|
|
@@ -977,10 +1224,16 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
977
1224
|
WETH: number;
|
|
978
1225
|
USDC: number;
|
|
979
1226
|
DOLA: number;
|
|
1227
|
+
USDT0: number;
|
|
1228
|
+
EURC: number;
|
|
980
1229
|
PXETH: number;
|
|
981
1230
|
S: number;
|
|
1231
|
+
USDT: number;
|
|
982
1232
|
TOKE: number;
|
|
1233
|
+
SILO: number;
|
|
1234
|
+
XPL: number;
|
|
983
1235
|
WS: number;
|
|
1236
|
+
WXPL: number;
|
|
984
1237
|
baseAsset: number;
|
|
985
1238
|
USD: number;
|
|
986
1239
|
};
|
|
@@ -991,10 +1244,16 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
991
1244
|
WETH: number;
|
|
992
1245
|
USDC: number;
|
|
993
1246
|
DOLA: number;
|
|
1247
|
+
USDT0: number;
|
|
1248
|
+
EURC: number;
|
|
994
1249
|
PXETH: number;
|
|
995
1250
|
S: number;
|
|
1251
|
+
USDT: number;
|
|
996
1252
|
TOKE: number;
|
|
1253
|
+
SILO: number;
|
|
1254
|
+
XPL: number;
|
|
997
1255
|
WS: number;
|
|
1256
|
+
WXPL: number;
|
|
998
1257
|
baseAsset: number;
|
|
999
1258
|
USD: number;
|
|
1000
1259
|
};
|
|
@@ -1006,10 +1265,16 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
1006
1265
|
WETH: number;
|
|
1007
1266
|
USDC: number;
|
|
1008
1267
|
DOLA: number;
|
|
1268
|
+
USDT0: number;
|
|
1269
|
+
EURC: number;
|
|
1009
1270
|
PXETH: number;
|
|
1010
1271
|
S: number;
|
|
1272
|
+
USDT: number;
|
|
1011
1273
|
TOKE: number;
|
|
1274
|
+
SILO: number;
|
|
1275
|
+
XPL: number;
|
|
1012
1276
|
WS: number;
|
|
1277
|
+
WXPL: number;
|
|
1013
1278
|
baseAsset: number;
|
|
1014
1279
|
USD: number;
|
|
1015
1280
|
};
|
|
@@ -1032,49 +1297,11 @@ declare const getAutopools: (wagmiConfig: Config$1, { prices, includeTestnet, }:
|
|
|
1032
1297
|
type IAutopools = Awaited<ReturnType<typeof getAutopools>>;
|
|
1033
1298
|
type IAutopool = NonNullable<IAutopools>[number];
|
|
1034
1299
|
|
|
1035
|
-
declare const getAutopoolRebalances: (id: Address, chainId?: SupportedChainIds
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
logIndex: any;
|
|
1041
|
-
transactionHash: any;
|
|
1042
|
-
blockNumber: any;
|
|
1043
|
-
tokenOutAmount: any;
|
|
1044
|
-
tokenOutValueInEth: any;
|
|
1045
|
-
tokenOutValueBaseAsset: any;
|
|
1046
|
-
tokenOutValueDenominatedIn: any;
|
|
1047
|
-
tokenInAmount: any;
|
|
1048
|
-
tokenInValueInEth: any;
|
|
1049
|
-
tokenInValueBaseAsset: any;
|
|
1050
|
-
tokenInValueDenominatedIn: any;
|
|
1051
|
-
destinationOutName: string;
|
|
1052
|
-
destinationOutAddress: any;
|
|
1053
|
-
destinationOutExchangeName: string;
|
|
1054
|
-
destinationInName: string;
|
|
1055
|
-
destinationInAddress: any;
|
|
1056
|
-
destinationInExchangeName: string;
|
|
1057
|
-
tokenOut: {
|
|
1058
|
-
__typename?: "RefToken";
|
|
1059
|
-
id: any;
|
|
1060
|
-
symbol?: string | null;
|
|
1061
|
-
};
|
|
1062
|
-
tokenIn: {
|
|
1063
|
-
__typename?: "RefToken";
|
|
1064
|
-
id: any;
|
|
1065
|
-
symbol?: string | null;
|
|
1066
|
-
};
|
|
1067
|
-
destinationOutUnderlyingTokens: Array<{
|
|
1068
|
-
__typename?: "RefToken";
|
|
1069
|
-
id: any;
|
|
1070
|
-
symbol?: string | null;
|
|
1071
|
-
}>;
|
|
1072
|
-
destinationInUnderlyingTokens: Array<{
|
|
1073
|
-
__typename?: "RefToken";
|
|
1074
|
-
id: any;
|
|
1075
|
-
symbol?: string | null;
|
|
1076
|
-
}>;
|
|
1077
|
-
}[]>;
|
|
1300
|
+
declare const getAutopoolRebalances: (id: Address, chainId?: SupportedChainIds, options?: {
|
|
1301
|
+
first?: number;
|
|
1302
|
+
maxPages?: number;
|
|
1303
|
+
onPage?: (page: any[], n: number) => void;
|
|
1304
|
+
}) => Promise<any[]>;
|
|
1078
1305
|
|
|
1079
1306
|
declare const getAutopoolsRebalances: (chainId?: SupportedChainIds) => Promise<{
|
|
1080
1307
|
__typename?: "Rebalance";
|
|
@@ -1136,10 +1363,9 @@ declare const getAutopoolsHistory: (autopools: IAutopools, days: number, include
|
|
|
1136
1363
|
date: string;
|
|
1137
1364
|
timestamp: any;
|
|
1138
1365
|
id: string;
|
|
1366
|
+
} & {
|
|
1139
1367
|
vault: {
|
|
1140
|
-
|
|
1141
|
-
id: any;
|
|
1142
|
-
registered: boolean;
|
|
1368
|
+
id: string;
|
|
1143
1369
|
};
|
|
1144
1370
|
}, "date"> & {
|
|
1145
1371
|
date: Date;
|
|
@@ -1567,6 +1793,8 @@ interface UserDayDataEntry {
|
|
|
1567
1793
|
USD: number;
|
|
1568
1794
|
PXETH: number;
|
|
1569
1795
|
USDC: number;
|
|
1796
|
+
EURC: number;
|
|
1797
|
+
USDT: number;
|
|
1570
1798
|
};
|
|
1571
1799
|
}
|
|
1572
1800
|
interface EnhancedUserHistoryEntry {
|
|
@@ -1578,6 +1806,8 @@ interface EnhancedUserHistoryEntry {
|
|
|
1578
1806
|
USD: number;
|
|
1579
1807
|
PXETH: number;
|
|
1580
1808
|
USDC: number;
|
|
1809
|
+
EURC: number;
|
|
1810
|
+
USDT: number;
|
|
1581
1811
|
};
|
|
1582
1812
|
formattedDate: string;
|
|
1583
1813
|
events: any[];
|
|
@@ -1691,11 +1921,6 @@ declare const getAutopoolDayData: (address: Address, chainId?: SupportedChainIds
|
|
|
1691
1921
|
id: any;
|
|
1692
1922
|
decimals: any;
|
|
1693
1923
|
};
|
|
1694
|
-
vault: {
|
|
1695
|
-
__typename?: "Autopool";
|
|
1696
|
-
id: any;
|
|
1697
|
-
registered: boolean;
|
|
1698
|
-
};
|
|
1699
1924
|
}[]>;
|
|
1700
1925
|
|
|
1701
1926
|
declare const systemRegistryFunctionNames: string[];
|
|
@@ -1725,10 +1950,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1725
1950
|
WETH: number;
|
|
1726
1951
|
USDC: number;
|
|
1727
1952
|
DOLA: number;
|
|
1953
|
+
USDT0: number;
|
|
1954
|
+
EURC: number;
|
|
1728
1955
|
PXETH: number;
|
|
1729
1956
|
S: number;
|
|
1957
|
+
USDT: number;
|
|
1730
1958
|
TOKE: number;
|
|
1959
|
+
SILO: number;
|
|
1960
|
+
XPL: number;
|
|
1731
1961
|
WS: number;
|
|
1962
|
+
WXPL: number;
|
|
1732
1963
|
USD: number;
|
|
1733
1964
|
token: IToken;
|
|
1734
1965
|
baseAsset: number;
|
|
@@ -1756,10 +1987,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1756
1987
|
WETH: number;
|
|
1757
1988
|
USDC: number;
|
|
1758
1989
|
DOLA: number;
|
|
1990
|
+
USDT0: number;
|
|
1991
|
+
EURC: number;
|
|
1759
1992
|
PXETH: number;
|
|
1760
1993
|
S: number;
|
|
1994
|
+
USDT: number;
|
|
1761
1995
|
TOKE: number;
|
|
1996
|
+
SILO: number;
|
|
1997
|
+
XPL: number;
|
|
1762
1998
|
WS: number;
|
|
1999
|
+
WXPL: number;
|
|
1763
2000
|
USD: number;
|
|
1764
2001
|
};
|
|
1765
2002
|
avgDailyReturns: TokenPrices & {
|
|
@@ -1785,10 +2022,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1785
2022
|
WETH: number;
|
|
1786
2023
|
USDC: number;
|
|
1787
2024
|
DOLA: number;
|
|
2025
|
+
USDT0: number;
|
|
2026
|
+
EURC: number;
|
|
1788
2027
|
PXETH: number;
|
|
1789
2028
|
S: number;
|
|
2029
|
+
USDT: number;
|
|
1790
2030
|
TOKE: number;
|
|
2031
|
+
SILO: number;
|
|
2032
|
+
XPL: number;
|
|
1791
2033
|
WS: number;
|
|
2034
|
+
WXPL: number;
|
|
1792
2035
|
USD: number;
|
|
1793
2036
|
};
|
|
1794
2037
|
avgDailyReturns: TokenPrices & {
|
|
@@ -1814,10 +2057,51 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1814
2057
|
WETH: number;
|
|
1815
2058
|
USDC: number;
|
|
1816
2059
|
DOLA: number;
|
|
2060
|
+
USDT0: number;
|
|
2061
|
+
EURC: number;
|
|
2062
|
+
PXETH: number;
|
|
2063
|
+
S: number;
|
|
2064
|
+
USDT: number;
|
|
2065
|
+
TOKE: number;
|
|
2066
|
+
SILO: number;
|
|
2067
|
+
XPL: number;
|
|
2068
|
+
WS: number;
|
|
2069
|
+
WXPL: number;
|
|
2070
|
+
USD: number;
|
|
2071
|
+
};
|
|
2072
|
+
avgDailyReturns: TokenPrices & {
|
|
2073
|
+
USD: number;
|
|
2074
|
+
};
|
|
2075
|
+
apr: number;
|
|
2076
|
+
totalDeposits: number;
|
|
2077
|
+
totalWithdrawals: number;
|
|
2078
|
+
};
|
|
2079
|
+
stables: {
|
|
2080
|
+
nav: TokenPrices & {
|
|
2081
|
+
USD: number;
|
|
2082
|
+
};
|
|
2083
|
+
supplied: TokenPrices & {
|
|
2084
|
+
USD: number;
|
|
2085
|
+
};
|
|
2086
|
+
returns: TokenPrices & {
|
|
2087
|
+
USD: number;
|
|
2088
|
+
};
|
|
2089
|
+
idle: {
|
|
2090
|
+
allocation: number;
|
|
2091
|
+
ETH: number;
|
|
2092
|
+
WETH: number;
|
|
2093
|
+
USDC: number;
|
|
2094
|
+
DOLA: number;
|
|
2095
|
+
USDT0: number;
|
|
2096
|
+
EURC: number;
|
|
1817
2097
|
PXETH: number;
|
|
1818
2098
|
S: number;
|
|
2099
|
+
USDT: number;
|
|
1819
2100
|
TOKE: number;
|
|
2101
|
+
SILO: number;
|
|
2102
|
+
XPL: number;
|
|
1820
2103
|
WS: number;
|
|
2104
|
+
WXPL: number;
|
|
1821
2105
|
USD: number;
|
|
1822
2106
|
};
|
|
1823
2107
|
avgDailyReturns: TokenPrices & {
|
|
@@ -1939,10 +2223,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1939
2223
|
WETH: number;
|
|
1940
2224
|
USDC: number;
|
|
1941
2225
|
DOLA: number;
|
|
2226
|
+
USDT0: number;
|
|
2227
|
+
EURC: number;
|
|
1942
2228
|
PXETH: number;
|
|
1943
2229
|
S: number;
|
|
2230
|
+
USDT: number;
|
|
1944
2231
|
TOKE: number;
|
|
2232
|
+
SILO: number;
|
|
2233
|
+
XPL: number;
|
|
1945
2234
|
WS: number;
|
|
2235
|
+
WXPL: number;
|
|
1946
2236
|
baseAsset: number;
|
|
1947
2237
|
USD: number;
|
|
1948
2238
|
};
|
|
@@ -1952,10 +2242,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1952
2242
|
WETH: number;
|
|
1953
2243
|
USDC: number;
|
|
1954
2244
|
DOLA: number;
|
|
2245
|
+
USDT0: number;
|
|
2246
|
+
EURC: number;
|
|
1955
2247
|
PXETH: number;
|
|
1956
2248
|
S: number;
|
|
2249
|
+
USDT: number;
|
|
1957
2250
|
TOKE: number;
|
|
2251
|
+
SILO: number;
|
|
2252
|
+
XPL: number;
|
|
1958
2253
|
WS: number;
|
|
2254
|
+
WXPL: number;
|
|
1959
2255
|
baseAsset: number;
|
|
1960
2256
|
USD: number;
|
|
1961
2257
|
};
|
|
@@ -1965,10 +2261,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1965
2261
|
WETH: number;
|
|
1966
2262
|
USDC: number;
|
|
1967
2263
|
DOLA: number;
|
|
2264
|
+
USDT0: number;
|
|
2265
|
+
EURC: number;
|
|
1968
2266
|
PXETH: number;
|
|
1969
2267
|
S: number;
|
|
2268
|
+
USDT: number;
|
|
1970
2269
|
TOKE: number;
|
|
2270
|
+
SILO: number;
|
|
2271
|
+
XPL: number;
|
|
1971
2272
|
WS: number;
|
|
2273
|
+
WXPL: number;
|
|
1972
2274
|
baseAsset: number;
|
|
1973
2275
|
USD: number;
|
|
1974
2276
|
};
|
|
@@ -1978,10 +2280,16 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1978
2280
|
WETH: number;
|
|
1979
2281
|
USDC: number;
|
|
1980
2282
|
DOLA: number;
|
|
2283
|
+
USDT0: number;
|
|
2284
|
+
EURC: number;
|
|
1981
2285
|
PXETH: number;
|
|
1982
2286
|
S: number;
|
|
2287
|
+
USDT: number;
|
|
1983
2288
|
TOKE: number;
|
|
2289
|
+
SILO: number;
|
|
2290
|
+
XPL: number;
|
|
1984
2291
|
WS: number;
|
|
2292
|
+
WXPL: number;
|
|
1985
2293
|
baseAsset: number;
|
|
1986
2294
|
USD: number;
|
|
1987
2295
|
};
|
|
@@ -1998,6 +2306,7 @@ declare const getUserAutopools: ({ address, includeTestnet, autopools, userActiv
|
|
|
1998
2306
|
nav: Currencies;
|
|
1999
2307
|
};
|
|
2000
2308
|
useDenomination: boolean;
|
|
2309
|
+
baseApr: any;
|
|
2001
2310
|
blendedApr: number;
|
|
2002
2311
|
rewardsClaimed: any;
|
|
2003
2312
|
lastDeposit: string | undefined;
|
|
@@ -2158,9 +2467,10 @@ type rewardsData = {
|
|
|
2158
2467
|
};
|
|
2159
2468
|
rewardsUsd: number;
|
|
2160
2469
|
};
|
|
2161
|
-
declare const getUserAutopoolsRewards: (wagmiConfig: Config$1, { address, tokenPrices, includeTestnet, }: {
|
|
2470
|
+
declare const getUserAutopoolsRewards: (wagmiConfig: Config$1, { address, tokenPrices, autopools, includeTestnet, }: {
|
|
2162
2471
|
address: Address;
|
|
2163
2472
|
tokenPrices: TokenPrices;
|
|
2473
|
+
autopools: IAutopools;
|
|
2164
2474
|
includeTestnet?: boolean;
|
|
2165
2475
|
}) => Promise<{
|
|
2166
2476
|
chains: {
|
|
@@ -2179,8 +2489,30 @@ declare const getUserAutopoolsRewards: (wagmiConfig: Config$1, { address, tokenP
|
|
|
2179
2489
|
logoURI?: string;
|
|
2180
2490
|
};
|
|
2181
2491
|
};
|
|
2492
|
+
extraRewards: {
|
|
2493
|
+
address: Address;
|
|
2494
|
+
chainId: number;
|
|
2495
|
+
token: _tokemak_tokenlist.IToken;
|
|
2496
|
+
amount: bigint;
|
|
2497
|
+
formattedAmount: number;
|
|
2498
|
+
USD: number;
|
|
2499
|
+
}[];
|
|
2182
2500
|
};
|
|
2183
2501
|
};
|
|
2502
|
+
tokeRewards: {
|
|
2503
|
+
amount: bigint;
|
|
2504
|
+
USD: number;
|
|
2505
|
+
formattedAmount: number;
|
|
2506
|
+
logoURI?: string;
|
|
2507
|
+
};
|
|
2508
|
+
extraRewards: {
|
|
2509
|
+
address: Address;
|
|
2510
|
+
chainId: number;
|
|
2511
|
+
token: _tokemak_tokenlist.IToken;
|
|
2512
|
+
amount: bigint;
|
|
2513
|
+
formattedAmount: number;
|
|
2514
|
+
USD: number;
|
|
2515
|
+
}[];
|
|
2184
2516
|
rewardsByToken: {
|
|
2185
2517
|
[tokenSymbol: string]: {
|
|
2186
2518
|
amount: bigint;
|
|
@@ -2190,7 +2522,10 @@ declare const getUserAutopoolsRewards: (wagmiConfig: Config$1, { address, tokenP
|
|
|
2190
2522
|
};
|
|
2191
2523
|
};
|
|
2192
2524
|
totalRewardsUSD: number;
|
|
2525
|
+
hasRewards: boolean;
|
|
2193
2526
|
} | undefined>;
|
|
2527
|
+
type IUserAutopoolsRewards = NonNullable<Awaited<ReturnType<typeof getUserAutopoolsRewards>>>;
|
|
2528
|
+
type IUserExtraRewards = IUserAutopoolsRewards["extraRewards"];
|
|
2194
2529
|
|
|
2195
2530
|
declare const getAmountWithdrawn: ({ address, slippage, user, chainId, amount, decimals, buyToken, isSwap, config, sellToken, autopool, }: minAmountWithdrawnFunctionConfig) => Promise<{
|
|
2196
2531
|
minAmount: string;
|
|
@@ -2661,6 +2996,7 @@ declare const getPoolsAndDestinations: (wagmiConfig: Config, { chainId }: {
|
|
|
2661
2996
|
statsPeriodFinishForRewards: readonly number[];
|
|
2662
2997
|
statsAnnualizedRewardAmounts: readonly bigint[];
|
|
2663
2998
|
}[]>)[] | undefined>;
|
|
2999
|
+
type getPoolsAndDestinationsReturnType = Awaited<ReturnType<typeof getPoolsAndDestinations>>;
|
|
2664
3000
|
|
|
2665
3001
|
declare const getChainSubgraphStatus: (chain: INetwork) => Promise<{
|
|
2666
3002
|
chainId: number;
|
|
@@ -2720,10 +3056,16 @@ type IRebalance = {
|
|
|
2720
3056
|
type RawRebalance = {
|
|
2721
3057
|
timestamp: number;
|
|
2722
3058
|
blockNumber: number;
|
|
3059
|
+
tokenOut: {
|
|
3060
|
+
id: Address;
|
|
3061
|
+
symbol: string;
|
|
3062
|
+
decimals: number;
|
|
3063
|
+
};
|
|
2723
3064
|
tokenOutValueInEth: string;
|
|
2724
3065
|
tokenOutValueBaseAsset: string;
|
|
2725
3066
|
};
|
|
2726
3067
|
declare const fetchChainRebalances: (chainId: number) => Promise<RawRebalance[]>;
|
|
3068
|
+
declare const getRebalanceValueUsd: (rebalance: RawRebalance, chainId: number, wagmiConfig: Config$1) => Promise<number | null>;
|
|
2727
3069
|
declare const processRebalance: (rebalance: RawRebalance, chainId: number, wagmiConfig: Config$1) => Promise<IRebalance>;
|
|
2728
3070
|
declare const processRebalancesInBatches: (rebalances: RawRebalance[], chainId: number, wagmiConfig: Config$1) => Promise<IRebalance[]>;
|
|
2729
3071
|
declare const calculateRebalanceStats: (rebalances: IRebalance[]) => {
|
|
@@ -2750,4 +3092,4 @@ declare const updateRebalanceStats: (wagmiConfig: Config$1, { currentRebalances,
|
|
|
2750
3092
|
rebalances: IRebalance[];
|
|
2751
3093
|
}>;
|
|
2752
3094
|
|
|
2753
|
-
export { AggregatedDayData, AutopoolCategory, BASE_ASSETS, BATCH_SIZE, BaseAsset, BaseDataEntry, ChainSTokeRewardsType, ChainSTokeType, ChainSTokeVotes, Currencies, CurveLP, ETH_BASE_ASSETS, EnhancedUserHistoryEntry, ExtraReward, FillData, GetLayerzeroStatusConfig, IAutopool, IAutopools, IAutopoolsHistory, IRebalance, IStoke, IStokeRewards, ISushiLP, ITopAutopoolHolder, ITopAutopoolHolders, IUserActivity, IUserAutopool, IUserAutopools, IUserReward, LayerzeroStatus, MessageStatus, Order, PRICED_TOKENS, PoolRewardsBalanceDayData, QuoteAndPriceBaseConfig, QuoteAndPriceBaseResult, QuoteResult, RawRebalance, STokeVotes, SendParam, SwapQuoteParams, SwapQuoteResponse, TokenPrices, USD_BASE_ASSETS, UserActivity, UserAutopoolsVotes, UserDayDataEntry, UserSTokeVotes, VaultAddedMapping, aggregateSTokeRewardsDayData, arraysToObject, calculateRebalanceStats, convertBaseAssetToTokenPrices, convertBaseAssetToTokenPricesAndDenom, fetchChainDataMap, fetchChainRebalances, fillMissingDates, findClosestDateEntry, findClosestEntry, findClosestTimestampEntry, formatDateRange, getAddressFromSystemRegistry, getAllowance, getAmountDeposited, getAmountWithdrawn, getAutopilotRouter, getAutopoolCategory, getAutopoolDayData, getAutopoolInfo, getAutopoolRebalances, getAutopools, getAutopoolsHistory, getAutopoolsRebalances, getBridgeFee, getChainAutopools, getChainCycleRolloverBlockNumber, getChainSToke, getChainSTokeRewards, getChainSubgraphStatus, getChainUserActivity, getChainUserAutopools, getChainUserSToke, getChainUserSTokeRewards, getChainUserSTokeVotes, getChainsForEnv, getCurrentCycleId, getCurveLP, getCycleV1, getDefillamaPrice, getDynamicSwap, getEthPrice, getEthPriceAtBlock, getExchangeNames, getGenStratAprs, getLayerzeroStatus, getMutlipleAutopoolRebalances, getPoolStats, getPoolsAndDestinations, getProtocolStats, getRebalanceStats, getRewardsPayloadV1, getSToke, getSTokeChainsForEnv, getSTokeRewards, getSTokeVotes, getSubgraphStatus, getSushiLP, getSwapQuote, getSystemConfig, getTimestampDaysFromStart, getTokePrice, getTokenList, getTokenPrice, getTokenPrices, getTopAutopoolHolders, getUserActivity, getUserAutoEthRewards, getUserAutopool, getUserAutopools, getUserAutopoolsHistory, getUserAutopoolsRewards, getUserCurveLP, getUserRewardsV1, getUserSToke, getUserSTokeVotes, getUserSushiLP, getUserTokenBalances, getUserV1, mergeArrays, mergeArraysWithKey, mergeStringArrays, minAmountDepositedBaseConfig, minAmountDepositedFunctionConfig, minAmountWithdrawnBaseConfig, minAmountWithdrawnFunctionConfig, modifyAutopoolName, nestedArrayToObject, paginateQuery, processRebalance, processRebalancesInBatches, rewardsData, systemRegistryFunctionNames, updateRebalanceStats, waitForMessageReceived };
|
|
3095
|
+
export { AggregatedDayData, AutopoolCategory, BASE_ASSETS, BATCH_SIZE, BaseAsset, BaseDataEntry, ChainSTokeRewardsType, ChainSTokeType, ChainSTokeVotes, Currencies, CurveLP, ETH_BASE_ASSETS, EUR_BASE_ASSETS, EnhancedUserHistoryEntry, ExtraReward, FillData, GetLayerzeroStatusConfig, IAutopool, IAutopools, IAutopoolsHistory, IRebalance, IStoke, IStokeRewards, ISushiLP, ITopAutopoolHolder, ITopAutopoolHolders, IUserActivity, IUserAutopool, IUserAutopools, IUserAutopoolsRewards, IUserExtraRewards, IUserReward, LayerzeroStatus, MessageStatus, Order, PRICED_TOKENS, PoolRewardsBalanceDayData, QuoteAndPriceBaseConfig, QuoteAndPriceBaseResult, QuoteResult, RawRebalance, STokeVotes, SendParam, SwapQuoteParams, SwapQuoteResponse, TokenPrices, USD_BASE_ASSETS, UserActivity, UserAutopoolsVotes, UserDayDataEntry, UserSTokeVotes, VaultAddedMapping, aggregateSTokeRewardsDayData, arraysToObject, calculateRebalanceStats, convertBaseAssetToTokenPrices, convertBaseAssetToTokenPricesAndDenom, fetchChainDataMap, fetchChainRebalances, fillMissingDates, findClosestDateEntry, findClosestEntry, findClosestTimestampEntry, formatDateRange, getAddressFromSystemRegistry, getAllowance, getAmountDeposited, getAmountWithdrawn, getAutopilotRouter, getAutopoolCategory, getAutopoolDayData, getAutopoolInfo, getAutopoolRebalances, getAutopools, getAutopoolsHistory, getAutopoolsRebalances, getBridgeFee, getChainAutopools, getChainCycleRolloverBlockNumber, getChainSToke, getChainSTokeRewards, getChainSubgraphStatus, getChainUserActivity, getChainUserAutopools, getChainUserSToke, getChainUserSTokeRewards, getChainUserSTokeVotes, getChainsForEnv, getCurrentCycleId, getCurveLP, getCycleV1, getDefillamaPrice, getDynamicSwap, getEthPrice, getEthPriceAtBlock, getExchangeNames, getGenStratAprs, getLayerzeroStatus, getMutlipleAutopoolRebalances, getPoolStats, getPoolsAndDestinations, getPoolsAndDestinationsReturnType, getProtocolStats, getRebalanceStats, getRebalanceValueUsd, getRewardsPayloadV1, getSToke, getSTokeChainsForEnv, getSTokeRewards, getSTokeVotes, getSubgraphStatus, getSushiLP, getSwapQuote, getSystemConfig, getTimestampDaysFromStart, getTokePrice, getTokenList, getTokenPrice, getTokenPrices, getTopAutopoolHolders, getUserActivity, getUserAutoEthRewards, getUserAutopool, getUserAutopools, getUserAutopoolsHistory, getUserAutopoolsRewards, getUserCurveLP, getUserRewardsV1, getUserSToke, getUserSTokeVotes, getUserSushiLP, getUserTokenBalances, getUserV1, mergeArrays, mergeArraysWithKey, mergeStringArrays, minAmountDepositedBaseConfig, minAmountDepositedFunctionConfig, minAmountWithdrawnBaseConfig, minAmountWithdrawnFunctionConfig, modifyAutopoolName, nestedArrayToObject, paginateQuery, processRebalance, processRebalancesInBatches, rewardsData, systemRegistryFunctionNames, updateRebalanceStats, waitForMessageReceived };
|