@tokemak/queries 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +69 -68
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ 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';
5
6
  import { Config } from '@wagmi/core';
6
7
  import { SupportedChainIds } from '@tokemak/config';
7
8
  import { Config as Config$1 } from 'wagmi';
@@ -137,17 +138,17 @@ declare const getAutopoolCategory: (baseAsset: string) => AutopoolCategory;
137
138
  declare const BASE_ASSETS: readonly [{
138
139
  readonly symbol: "ETH";
139
140
  readonly coinGeckoId: "ethereum";
140
- readonly address: viem.Address;
141
+ readonly address: abitype.Address;
141
142
  readonly chainId: number;
142
143
  readonly decimals: number;
143
144
  readonly logoURI: string;
144
145
  readonly name: string;
145
146
  readonly audits?: string;
146
147
  readonly extensions?: {
147
- bridgeMainnetAdapter?: viem.Address;
148
+ bridgeMainnetAdapter?: abitype.Address;
148
149
  bridgeInfo?: {
149
150
  [chainId: number]: {
150
- tokenAddress: viem.Address;
151
+ tokenAddress: abitype.Address;
151
152
  };
152
153
  };
153
154
  rebasing?: boolean;
@@ -156,17 +157,17 @@ declare const BASE_ASSETS: readonly [{
156
157
  }, {
157
158
  readonly symbol: "PXETH";
158
159
  readonly coinGeckoId: "dinero-staked-eth";
159
- readonly address: viem.Address;
160
+ readonly address: abitype.Address;
160
161
  readonly chainId: number;
161
162
  readonly decimals: number;
162
163
  readonly logoURI: string;
163
164
  readonly name: string;
164
165
  readonly audits?: string;
165
166
  readonly extensions?: {
166
- bridgeMainnetAdapter?: viem.Address;
167
+ bridgeMainnetAdapter?: abitype.Address;
167
168
  bridgeInfo?: {
168
169
  [chainId: number]: {
169
- tokenAddress: viem.Address;
170
+ tokenAddress: abitype.Address;
170
171
  };
171
172
  };
172
173
  rebasing?: boolean;
@@ -175,17 +176,17 @@ declare const BASE_ASSETS: readonly [{
175
176
  }, {
176
177
  readonly symbol: "USDC";
177
178
  readonly coinGeckoId: "usd-coin";
178
- readonly address: viem.Address;
179
+ readonly address: abitype.Address;
179
180
  readonly chainId: number;
180
181
  readonly decimals: number;
181
182
  readonly logoURI: string;
182
183
  readonly name: string;
183
184
  readonly audits?: string;
184
185
  readonly extensions?: {
185
- bridgeMainnetAdapter?: viem.Address;
186
+ bridgeMainnetAdapter?: abitype.Address;
186
187
  bridgeInfo?: {
187
188
  [chainId: number]: {
188
- tokenAddress: viem.Address;
189
+ tokenAddress: abitype.Address;
189
190
  };
190
191
  };
191
192
  rebasing?: boolean;
@@ -194,17 +195,17 @@ declare const BASE_ASSETS: readonly [{
194
195
  }, {
195
196
  readonly symbol: "DOLA";
196
197
  readonly coinGeckoId: "dola-usd";
197
- readonly address: viem.Address;
198
+ readonly address: abitype.Address;
198
199
  readonly chainId: number;
199
200
  readonly decimals: number;
200
201
  readonly logoURI: string;
201
202
  readonly name: string;
202
203
  readonly audits?: string;
203
204
  readonly extensions?: {
204
- bridgeMainnetAdapter?: viem.Address;
205
+ bridgeMainnetAdapter?: abitype.Address;
205
206
  bridgeInfo?: {
206
207
  [chainId: number]: {
207
- tokenAddress: viem.Address;
208
+ tokenAddress: abitype.Address;
208
209
  };
209
210
  };
210
211
  rebasing?: boolean;
@@ -212,17 +213,17 @@ declare const BASE_ASSETS: readonly [{
212
213
  };
213
214
  }, {
214
215
  readonly symbol: "S";
215
- readonly address: viem.Address;
216
+ readonly address: abitype.Address;
216
217
  readonly chainId: number;
217
218
  readonly decimals: number;
218
219
  readonly logoURI: string;
219
220
  readonly name: string;
220
221
  readonly audits?: string;
221
222
  readonly extensions?: {
222
- bridgeMainnetAdapter?: viem.Address;
223
+ bridgeMainnetAdapter?: abitype.Address;
223
224
  bridgeInfo?: {
224
225
  [chainId: number]: {
225
- tokenAddress: viem.Address;
226
+ tokenAddress: abitype.Address;
226
227
  };
227
228
  };
228
229
  rebasing?: boolean;
@@ -231,17 +232,17 @@ declare const BASE_ASSETS: readonly [{
231
232
  }, {
232
233
  readonly symbol: "EURC";
233
234
  readonly coinGeckoId: "euro-coin";
234
- readonly address: viem.Address;
235
+ readonly address: abitype.Address;
235
236
  readonly chainId: number;
236
237
  readonly decimals: number;
237
238
  readonly logoURI: string;
238
239
  readonly name: string;
239
240
  readonly audits?: string;
240
241
  readonly extensions?: {
241
- bridgeMainnetAdapter?: viem.Address;
242
+ bridgeMainnetAdapter?: abitype.Address;
242
243
  bridgeInfo?: {
243
244
  [chainId: number]: {
244
- tokenAddress: viem.Address;
245
+ tokenAddress: abitype.Address;
245
246
  };
246
247
  };
247
248
  rebasing?: boolean;
@@ -250,17 +251,17 @@ declare const BASE_ASSETS: readonly [{
250
251
  }, {
251
252
  readonly symbol: "USDT";
252
253
  readonly coinGeckoId: "tether";
253
- readonly address: viem.Address;
254
+ readonly address: abitype.Address;
254
255
  readonly chainId: number;
255
256
  readonly decimals: number;
256
257
  readonly logoURI: string;
257
258
  readonly name: string;
258
259
  readonly audits?: string;
259
260
  readonly extensions?: {
260
- bridgeMainnetAdapter?: viem.Address;
261
+ bridgeMainnetAdapter?: abitype.Address;
261
262
  bridgeInfo?: {
262
263
  [chainId: number]: {
263
- tokenAddress: viem.Address;
264
+ tokenAddress: abitype.Address;
264
265
  };
265
266
  };
266
267
  rebasing?: boolean;
@@ -269,17 +270,17 @@ declare const BASE_ASSETS: readonly [{
269
270
  }, {
270
271
  readonly symbol: "USDT0";
271
272
  readonly coinGeckoId: "tether";
272
- readonly address: viem.Address;
273
+ readonly address: abitype.Address;
273
274
  readonly chainId: number;
274
275
  readonly decimals: number;
275
276
  readonly logoURI: string;
276
277
  readonly name: string;
277
278
  readonly audits?: string;
278
279
  readonly extensions?: {
279
- bridgeMainnetAdapter?: viem.Address;
280
+ bridgeMainnetAdapter?: abitype.Address;
280
281
  bridgeInfo?: {
281
282
  [chainId: number]: {
282
- tokenAddress: viem.Address;
283
+ tokenAddress: abitype.Address;
283
284
  };
284
285
  };
285
286
  rebasing?: boolean;
@@ -289,17 +290,17 @@ declare const BASE_ASSETS: readonly [{
289
290
  declare const PRICED_TOKENS: readonly [{
290
291
  readonly symbol: "ETH";
291
292
  readonly coinGeckoId: "ethereum";
292
- readonly address: viem.Address;
293
+ readonly address: abitype.Address;
293
294
  readonly chainId: number;
294
295
  readonly decimals: number;
295
296
  readonly logoURI: string;
296
297
  readonly name: string;
297
298
  readonly audits?: string;
298
299
  readonly extensions?: {
299
- bridgeMainnetAdapter?: viem.Address;
300
+ bridgeMainnetAdapter?: abitype.Address;
300
301
  bridgeInfo?: {
301
302
  [chainId: number]: {
302
- tokenAddress: viem.Address;
303
+ tokenAddress: abitype.Address;
303
304
  };
304
305
  };
305
306
  rebasing?: boolean;
@@ -308,17 +309,17 @@ declare const PRICED_TOKENS: readonly [{
308
309
  }, {
309
310
  readonly symbol: "PXETH";
310
311
  readonly coinGeckoId: "dinero-staked-eth";
311
- readonly address: viem.Address;
312
+ readonly address: abitype.Address;
312
313
  readonly chainId: number;
313
314
  readonly decimals: number;
314
315
  readonly logoURI: string;
315
316
  readonly name: string;
316
317
  readonly audits?: string;
317
318
  readonly extensions?: {
318
- bridgeMainnetAdapter?: viem.Address;
319
+ bridgeMainnetAdapter?: abitype.Address;
319
320
  bridgeInfo?: {
320
321
  [chainId: number]: {
321
- tokenAddress: viem.Address;
322
+ tokenAddress: abitype.Address;
322
323
  };
323
324
  };
324
325
  rebasing?: boolean;
@@ -327,17 +328,17 @@ declare const PRICED_TOKENS: readonly [{
327
328
  }, {
328
329
  readonly symbol: "USDC";
329
330
  readonly coinGeckoId: "usd-coin";
330
- readonly address: viem.Address;
331
+ readonly address: abitype.Address;
331
332
  readonly chainId: number;
332
333
  readonly decimals: number;
333
334
  readonly logoURI: string;
334
335
  readonly name: string;
335
336
  readonly audits?: string;
336
337
  readonly extensions?: {
337
- bridgeMainnetAdapter?: viem.Address;
338
+ bridgeMainnetAdapter?: abitype.Address;
338
339
  bridgeInfo?: {
339
340
  [chainId: number]: {
340
- tokenAddress: viem.Address;
341
+ tokenAddress: abitype.Address;
341
342
  };
342
343
  };
343
344
  rebasing?: boolean;
@@ -346,17 +347,17 @@ declare const PRICED_TOKENS: readonly [{
346
347
  }, {
347
348
  readonly symbol: "DOLA";
348
349
  readonly coinGeckoId: "dola-usd";
349
- readonly address: viem.Address;
350
+ readonly address: abitype.Address;
350
351
  readonly chainId: number;
351
352
  readonly decimals: number;
352
353
  readonly logoURI: string;
353
354
  readonly name: string;
354
355
  readonly audits?: string;
355
356
  readonly extensions?: {
356
- bridgeMainnetAdapter?: viem.Address;
357
+ bridgeMainnetAdapter?: abitype.Address;
357
358
  bridgeInfo?: {
358
359
  [chainId: number]: {
359
- tokenAddress: viem.Address;
360
+ tokenAddress: abitype.Address;
360
361
  };
361
362
  };
362
363
  rebasing?: boolean;
@@ -364,17 +365,17 @@ declare const PRICED_TOKENS: readonly [{
364
365
  };
365
366
  }, {
366
367
  readonly symbol: "S";
367
- readonly address: viem.Address;
368
+ readonly address: abitype.Address;
368
369
  readonly chainId: number;
369
370
  readonly decimals: number;
370
371
  readonly logoURI: string;
371
372
  readonly name: string;
372
373
  readonly audits?: string;
373
374
  readonly extensions?: {
374
- bridgeMainnetAdapter?: viem.Address;
375
+ bridgeMainnetAdapter?: abitype.Address;
375
376
  bridgeInfo?: {
376
377
  [chainId: number]: {
377
- tokenAddress: viem.Address;
378
+ tokenAddress: abitype.Address;
378
379
  };
379
380
  };
380
381
  rebasing?: boolean;
@@ -383,17 +384,17 @@ declare const PRICED_TOKENS: readonly [{
383
384
  }, {
384
385
  readonly symbol: "EURC";
385
386
  readonly coinGeckoId: "euro-coin";
386
- readonly address: viem.Address;
387
+ readonly address: abitype.Address;
387
388
  readonly chainId: number;
388
389
  readonly decimals: number;
389
390
  readonly logoURI: string;
390
391
  readonly name: string;
391
392
  readonly audits?: string;
392
393
  readonly extensions?: {
393
- bridgeMainnetAdapter?: viem.Address;
394
+ bridgeMainnetAdapter?: abitype.Address;
394
395
  bridgeInfo?: {
395
396
  [chainId: number]: {
396
- tokenAddress: viem.Address;
397
+ tokenAddress: abitype.Address;
397
398
  };
398
399
  };
399
400
  rebasing?: boolean;
@@ -402,17 +403,17 @@ declare const PRICED_TOKENS: readonly [{
402
403
  }, {
403
404
  readonly symbol: "USDT";
404
405
  readonly coinGeckoId: "tether";
405
- readonly address: viem.Address;
406
+ readonly address: abitype.Address;
406
407
  readonly chainId: number;
407
408
  readonly decimals: number;
408
409
  readonly logoURI: string;
409
410
  readonly name: string;
410
411
  readonly audits?: string;
411
412
  readonly extensions?: {
412
- bridgeMainnetAdapter?: viem.Address;
413
+ bridgeMainnetAdapter?: abitype.Address;
413
414
  bridgeInfo?: {
414
415
  [chainId: number]: {
415
- tokenAddress: viem.Address;
416
+ tokenAddress: abitype.Address;
416
417
  };
417
418
  };
418
419
  rebasing?: boolean;
@@ -421,17 +422,17 @@ declare const PRICED_TOKENS: readonly [{
421
422
  }, {
422
423
  readonly symbol: "USDT0";
423
424
  readonly coinGeckoId: "tether";
424
- readonly address: viem.Address;
425
+ readonly address: abitype.Address;
425
426
  readonly chainId: number;
426
427
  readonly decimals: number;
427
428
  readonly logoURI: string;
428
429
  readonly name: string;
429
430
  readonly audits?: string;
430
431
  readonly extensions?: {
431
- bridgeMainnetAdapter?: viem.Address;
432
+ bridgeMainnetAdapter?: abitype.Address;
432
433
  bridgeInfo?: {
433
434
  [chainId: number]: {
434
- tokenAddress: viem.Address;
435
+ tokenAddress: abitype.Address;
435
436
  };
436
437
  };
437
438
  rebasing?: boolean;
@@ -439,17 +440,17 @@ declare const PRICED_TOKENS: readonly [{
439
440
  };
440
441
  }, {
441
442
  readonly symbol: "TOKE";
442
- readonly address: viem.Address;
443
+ readonly address: abitype.Address;
443
444
  readonly chainId: number;
444
445
  readonly decimals: number;
445
446
  readonly logoURI: string;
446
447
  readonly name: string;
447
448
  readonly audits?: string;
448
449
  readonly extensions?: {
449
- bridgeMainnetAdapter?: viem.Address;
450
+ bridgeMainnetAdapter?: abitype.Address;
450
451
  bridgeInfo?: {
451
452
  [chainId: number]: {
452
- tokenAddress: viem.Address;
453
+ tokenAddress: abitype.Address;
453
454
  };
454
455
  };
455
456
  rebasing?: boolean;
@@ -457,17 +458,17 @@ declare const PRICED_TOKENS: readonly [{
457
458
  };
458
459
  }, {
459
460
  readonly symbol: "SILO";
460
- readonly address: viem.Address;
461
+ readonly address: abitype.Address;
461
462
  readonly chainId: number;
462
463
  readonly decimals: number;
463
464
  readonly logoURI: string;
464
465
  readonly name: string;
465
466
  readonly audits?: string;
466
467
  readonly extensions?: {
467
- bridgeMainnetAdapter?: viem.Address;
468
+ bridgeMainnetAdapter?: abitype.Address;
468
469
  bridgeInfo?: {
469
470
  [chainId: number]: {
470
- tokenAddress: viem.Address;
471
+ tokenAddress: abitype.Address;
471
472
  };
472
473
  };
473
474
  rebasing?: boolean;
@@ -482,10 +483,10 @@ declare const PRICED_TOKENS: readonly [{
482
483
  readonly name: string;
483
484
  readonly audits?: string;
484
485
  readonly extensions?: {
485
- bridgeMainnetAdapter?: viem.Address;
486
+ bridgeMainnetAdapter?: abitype.Address;
486
487
  bridgeInfo?: {
487
488
  [chainId: number]: {
488
- tokenAddress: viem.Address;
489
+ tokenAddress: abitype.Address;
489
490
  };
490
491
  };
491
492
  rebasing?: boolean;
@@ -493,17 +494,17 @@ declare const PRICED_TOKENS: readonly [{
493
494
  };
494
495
  }, {
495
496
  readonly symbol: "USDT0";
496
- readonly address: viem.Address;
497
+ readonly address: abitype.Address;
497
498
  readonly chainId: number;
498
499
  readonly decimals: number;
499
500
  readonly logoURI: string;
500
501
  readonly name: string;
501
502
  readonly audits?: string;
502
503
  readonly extensions?: {
503
- bridgeMainnetAdapter?: viem.Address;
504
+ bridgeMainnetAdapter?: abitype.Address;
504
505
  bridgeInfo?: {
505
506
  [chainId: number]: {
506
- tokenAddress: viem.Address;
507
+ tokenAddress: abitype.Address;
507
508
  };
508
509
  };
509
510
  rebasing?: boolean;
@@ -513,17 +514,17 @@ declare const PRICED_TOKENS: readonly [{
513
514
  type BaseAsset = (typeof BASE_ASSETS)[number]["symbol"];
514
515
  declare const WRAPPED_TOKENS: readonly [{
515
516
  readonly symbol: "WETH";
516
- readonly address: viem.Address;
517
+ readonly address: abitype.Address;
517
518
  readonly chainId: number;
518
519
  readonly decimals: number;
519
520
  readonly logoURI: string;
520
521
  readonly name: string;
521
522
  readonly audits?: string;
522
523
  readonly extensions?: {
523
- bridgeMainnetAdapter?: viem.Address;
524
+ bridgeMainnetAdapter?: abitype.Address;
524
525
  bridgeInfo?: {
525
526
  [chainId: number]: {
526
- tokenAddress: viem.Address;
527
+ tokenAddress: abitype.Address;
527
528
  };
528
529
  };
529
530
  rebasing?: boolean;
@@ -531,17 +532,17 @@ declare const WRAPPED_TOKENS: readonly [{
531
532
  };
532
533
  }, {
533
534
  readonly symbol: "WS";
534
- readonly address: viem.Address;
535
+ readonly address: abitype.Address;
535
536
  readonly chainId: number;
536
537
  readonly decimals: number;
537
538
  readonly logoURI: string;
538
539
  readonly name: string;
539
540
  readonly audits?: string;
540
541
  readonly extensions?: {
541
- bridgeMainnetAdapter?: viem.Address;
542
+ bridgeMainnetAdapter?: abitype.Address;
542
543
  bridgeInfo?: {
543
544
  [chainId: number]: {
544
- tokenAddress: viem.Address;
545
+ tokenAddress: abitype.Address;
545
546
  };
546
547
  };
547
548
  rebasing?: boolean;
@@ -549,17 +550,17 @@ declare const WRAPPED_TOKENS: readonly [{
549
550
  };
550
551
  }, {
551
552
  readonly symbol: "WXPL";
552
- readonly address: viem.Address;
553
+ readonly address: abitype.Address;
553
554
  readonly chainId: number;
554
555
  readonly decimals: number;
555
556
  readonly logoURI: string;
556
557
  readonly name: string;
557
558
  readonly audits?: string;
558
559
  readonly extensions?: {
559
- bridgeMainnetAdapter?: viem.Address;
560
+ bridgeMainnetAdapter?: abitype.Address;
560
561
  bridgeInfo?: {
561
562
  [chainId: number]: {
562
- tokenAddress: viem.Address;
563
+ tokenAddress: abitype.Address;
563
564
  };
564
565
  };
565
566
  rebasing?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokemak/queries",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,12 +22,12 @@
22
22
  "type": "module",
23
23
  "dependencies": {
24
24
  "@tokemak/abis": "0.0.3",
25
- "@tokemak/autopilot-swap-route-calc": "0.0.6",
26
25
  "@tokemak/config": "0.0.3",
27
26
  "@tokemak/constants": "0.0.3",
28
27
  "@tokemak/graph-cli": "0.0.4",
29
28
  "@tokemak/tokenlist": "0.0.3",
30
- "@tokemak/utils": "0.0.3"
29
+ "@tokemak/utils": "0.0.3",
30
+ "@tokemak/autopilot-swap-route-calc": "0.0.7"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@wagmi/core": "2.x",