@defisaver/positions-sdk 2.1.26 → 2.1.27

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 (98) hide show
  1. package/cjs/aaveV2/index.js +1 -1
  2. package/cjs/config/contracts.d.ts +173 -0
  3. package/cjs/config/contracts.js +23 -1
  4. package/cjs/contracts.d.ts +1650 -0
  5. package/cjs/contracts.js +22 -1
  6. package/cjs/fluid/index.js +16 -4
  7. package/cjs/index.d.ts +2 -1
  8. package/cjs/index.js +3 -1
  9. package/cjs/markets/aave/index.js +5 -5
  10. package/cjs/markets/compound/index.js +8 -8
  11. package/cjs/savings/index.d.ts +7 -0
  12. package/cjs/savings/index.js +75 -0
  13. package/cjs/savings/makerDSR/index.d.ts +7 -0
  14. package/cjs/savings/makerDSR/index.js +94 -0
  15. package/cjs/savings/makerDSR/options.d.ts +2 -0
  16. package/cjs/savings/makerDSR/options.js +11 -0
  17. package/cjs/savings/morphoVaults/index.d.ts +7 -0
  18. package/cjs/savings/morphoVaults/index.js +118 -0
  19. package/cjs/savings/morphoVaults/options.d.ts +16 -0
  20. package/cjs/savings/morphoVaults/options.js +112 -0
  21. package/cjs/savings/yearnVaults/index.d.ts +9 -0
  22. package/cjs/savings/yearnVaults/index.js +113 -0
  23. package/cjs/savings/yearnVaults/options.d.ts +6 -0
  24. package/cjs/savings/yearnVaults/options.js +29 -0
  25. package/cjs/types/aave.d.ts +5 -0
  26. package/cjs/types/aave.js +7 -1
  27. package/cjs/types/compound.d.ts +4 -0
  28. package/cjs/types/compound.js +6 -1
  29. package/cjs/types/index.d.ts +1 -0
  30. package/cjs/types/index.js +1 -0
  31. package/cjs/types/savings/index.d.ts +15 -0
  32. package/cjs/types/savings/index.js +19 -0
  33. package/cjs/types/savings/makerDsr.d.ts +11 -0
  34. package/cjs/types/savings/makerDsr.js +7 -0
  35. package/cjs/types/savings/morphoVaults.d.ts +23 -0
  36. package/cjs/types/savings/morphoVaults.js +19 -0
  37. package/cjs/types/savings/yearnVaults.d.ts +12 -0
  38. package/cjs/types/savings/yearnVaults.js +9 -0
  39. package/esm/aaveV2/index.js +1 -1
  40. package/esm/config/contracts.d.ts +173 -0
  41. package/esm/config/contracts.js +22 -0
  42. package/esm/contracts.d.ts +1650 -0
  43. package/esm/contracts.js +18 -0
  44. package/esm/fluid/index.js +16 -4
  45. package/esm/index.d.ts +2 -1
  46. package/esm/index.js +2 -1
  47. package/esm/markets/aave/index.js +6 -6
  48. package/esm/markets/compound/index.js +9 -9
  49. package/esm/savings/index.d.ts +7 -0
  50. package/esm/savings/index.js +36 -0
  51. package/esm/savings/makerDSR/index.d.ts +7 -0
  52. package/esm/savings/makerDSR/index.js +53 -0
  53. package/esm/savings/makerDSR/options.d.ts +2 -0
  54. package/esm/savings/makerDSR/options.js +8 -0
  55. package/esm/savings/morphoVaults/index.d.ts +7 -0
  56. package/esm/savings/morphoVaults/index.js +77 -0
  57. package/esm/savings/morphoVaults/options.d.ts +16 -0
  58. package/esm/savings/morphoVaults/options.js +108 -0
  59. package/esm/savings/yearnVaults/index.d.ts +9 -0
  60. package/esm/savings/yearnVaults/index.js +70 -0
  61. package/esm/savings/yearnVaults/options.d.ts +6 -0
  62. package/esm/savings/yearnVaults/options.js +25 -0
  63. package/esm/types/aave.d.ts +5 -0
  64. package/esm/types/aave.js +6 -0
  65. package/esm/types/compound.d.ts +4 -0
  66. package/esm/types/compound.js +5 -0
  67. package/esm/types/index.d.ts +1 -0
  68. package/esm/types/index.js +1 -0
  69. package/esm/types/savings/index.d.ts +15 -0
  70. package/esm/types/savings/index.js +3 -0
  71. package/esm/types/savings/makerDsr.d.ts +11 -0
  72. package/esm/types/savings/makerDsr.js +4 -0
  73. package/esm/types/savings/morphoVaults.d.ts +23 -0
  74. package/esm/types/savings/morphoVaults.js +16 -0
  75. package/esm/types/savings/yearnVaults.d.ts +12 -0
  76. package/esm/types/savings/yearnVaults.js +6 -0
  77. package/package.json +3 -2
  78. package/src/aaveV2/index.ts +1 -1
  79. package/src/config/contracts.ts +23 -1
  80. package/src/contracts.ts +23 -1
  81. package/src/fluid/index.ts +17 -4
  82. package/src/index.ts +2 -0
  83. package/src/markets/aave/index.ts +11 -9
  84. package/src/markets/compound/index.ts +14 -9
  85. package/src/savings/index.ts +46 -0
  86. package/src/savings/makerDsr/index.ts +54 -0
  87. package/src/savings/makerDsr/options.ts +9 -0
  88. package/src/savings/morphoVaults/index.ts +81 -0
  89. package/src/savings/morphoVaults/options.ts +123 -0
  90. package/src/savings/yearnVaults/index.ts +74 -0
  91. package/src/savings/yearnVaults/options.ts +30 -0
  92. package/src/types/aave.ts +7 -0
  93. package/src/types/compound.ts +9 -1
  94. package/src/types/index.ts +2 -1
  95. package/src/types/savings/index.ts +18 -0
  96. package/src/types/savings/makerDsr.ts +13 -0
  97. package/src/types/savings/morphoVaults.ts +25 -0
  98. package/src/types/savings/yearnVaults.ts +14 -0
@@ -248,6 +248,1315 @@ export declare const createViemContractFromConfigFunc: <TKey extends ConfigKey>(
248
248
  address: `0x${string}`;
249
249
  abi: (typeof configRaw)[TKey]["abi"];
250
250
  } extends infer T ? { [K in keyof T]: T[K]; } : never;
251
+ export declare const getMorphoVaultContractViem: (client: Client, address: HexString) => {
252
+ read: {
253
+ totalSupply: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
254
+ readonly inputs: readonly [];
255
+ readonly name: "acceptTimelock";
256
+ readonly outputs: readonly [];
257
+ readonly stateMutability: "nonpayable";
258
+ readonly type: "function";
259
+ }, {
260
+ readonly inputs: readonly [{
261
+ readonly internalType: "address";
262
+ readonly name: "account";
263
+ readonly type: "address";
264
+ }];
265
+ readonly name: "balanceOf";
266
+ readonly outputs: readonly [{
267
+ readonly internalType: "uint256";
268
+ readonly name: "";
269
+ readonly type: "uint256";
270
+ }];
271
+ readonly stateMutability: "view";
272
+ readonly type: "function";
273
+ }, {
274
+ readonly inputs: readonly [{
275
+ readonly internalType: "uint256";
276
+ readonly name: "shares";
277
+ readonly type: "uint256";
278
+ }];
279
+ readonly name: "convertToAssets";
280
+ readonly outputs: readonly [{
281
+ readonly internalType: "uint256";
282
+ readonly name: "";
283
+ readonly type: "uint256";
284
+ }];
285
+ readonly stateMutability: "view";
286
+ readonly type: "function";
287
+ }, {
288
+ readonly inputs: readonly [];
289
+ readonly name: "decimals";
290
+ readonly outputs: readonly [{
291
+ readonly internalType: "uint8";
292
+ readonly name: "";
293
+ readonly type: "uint8";
294
+ }];
295
+ readonly stateMutability: "view";
296
+ readonly type: "function";
297
+ }, {
298
+ readonly inputs: readonly [];
299
+ readonly name: "DECIMALS_OFFSET";
300
+ readonly outputs: readonly [{
301
+ readonly internalType: "uint8";
302
+ readonly name: "";
303
+ readonly type: "uint8";
304
+ }];
305
+ readonly stateMutability: "view";
306
+ readonly type: "function";
307
+ }, {
308
+ readonly inputs: readonly [{
309
+ readonly internalType: "uint256";
310
+ readonly name: "shares";
311
+ readonly type: "uint256";
312
+ }];
313
+ readonly name: "previewRedeem";
314
+ readonly outputs: readonly [{
315
+ readonly internalType: "uint256";
316
+ readonly name: "";
317
+ readonly type: "uint256";
318
+ }];
319
+ readonly stateMutability: "view";
320
+ readonly type: "function";
321
+ }, {
322
+ readonly inputs: readonly [];
323
+ readonly name: "totalAssets";
324
+ readonly outputs: readonly [{
325
+ readonly internalType: "uint256";
326
+ readonly name: "";
327
+ readonly type: "uint256";
328
+ }];
329
+ readonly stateMutability: "view";
330
+ readonly type: "function";
331
+ }, {
332
+ readonly inputs: readonly [];
333
+ readonly name: "totalSupply";
334
+ readonly outputs: readonly [{
335
+ readonly internalType: "uint256";
336
+ readonly name: "";
337
+ readonly type: "uint256";
338
+ }];
339
+ readonly stateMutability: "view";
340
+ readonly type: "function";
341
+ }], "totalSupply", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
342
+ decimals: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
343
+ readonly inputs: readonly [];
344
+ readonly name: "acceptTimelock";
345
+ readonly outputs: readonly [];
346
+ readonly stateMutability: "nonpayable";
347
+ readonly type: "function";
348
+ }, {
349
+ readonly inputs: readonly [{
350
+ readonly internalType: "address";
351
+ readonly name: "account";
352
+ readonly type: "address";
353
+ }];
354
+ readonly name: "balanceOf";
355
+ readonly outputs: readonly [{
356
+ readonly internalType: "uint256";
357
+ readonly name: "";
358
+ readonly type: "uint256";
359
+ }];
360
+ readonly stateMutability: "view";
361
+ readonly type: "function";
362
+ }, {
363
+ readonly inputs: readonly [{
364
+ readonly internalType: "uint256";
365
+ readonly name: "shares";
366
+ readonly type: "uint256";
367
+ }];
368
+ readonly name: "convertToAssets";
369
+ readonly outputs: readonly [{
370
+ readonly internalType: "uint256";
371
+ readonly name: "";
372
+ readonly type: "uint256";
373
+ }];
374
+ readonly stateMutability: "view";
375
+ readonly type: "function";
376
+ }, {
377
+ readonly inputs: readonly [];
378
+ readonly name: "decimals";
379
+ readonly outputs: readonly [{
380
+ readonly internalType: "uint8";
381
+ readonly name: "";
382
+ readonly type: "uint8";
383
+ }];
384
+ readonly stateMutability: "view";
385
+ readonly type: "function";
386
+ }, {
387
+ readonly inputs: readonly [];
388
+ readonly name: "DECIMALS_OFFSET";
389
+ readonly outputs: readonly [{
390
+ readonly internalType: "uint8";
391
+ readonly name: "";
392
+ readonly type: "uint8";
393
+ }];
394
+ readonly stateMutability: "view";
395
+ readonly type: "function";
396
+ }, {
397
+ readonly inputs: readonly [{
398
+ readonly internalType: "uint256";
399
+ readonly name: "shares";
400
+ readonly type: "uint256";
401
+ }];
402
+ readonly name: "previewRedeem";
403
+ readonly outputs: readonly [{
404
+ readonly internalType: "uint256";
405
+ readonly name: "";
406
+ readonly type: "uint256";
407
+ }];
408
+ readonly stateMutability: "view";
409
+ readonly type: "function";
410
+ }, {
411
+ readonly inputs: readonly [];
412
+ readonly name: "totalAssets";
413
+ readonly outputs: readonly [{
414
+ readonly internalType: "uint256";
415
+ readonly name: "";
416
+ readonly type: "uint256";
417
+ }];
418
+ readonly stateMutability: "view";
419
+ readonly type: "function";
420
+ }, {
421
+ readonly inputs: readonly [];
422
+ readonly name: "totalSupply";
423
+ readonly outputs: readonly [{
424
+ readonly internalType: "uint256";
425
+ readonly name: "";
426
+ readonly type: "uint256";
427
+ }];
428
+ readonly stateMutability: "view";
429
+ readonly type: "function";
430
+ }], "decimals", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<number>;
431
+ balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
432
+ readonly inputs: readonly [];
433
+ readonly name: "acceptTimelock";
434
+ readonly outputs: readonly [];
435
+ readonly stateMutability: "nonpayable";
436
+ readonly type: "function";
437
+ }, {
438
+ readonly inputs: readonly [{
439
+ readonly internalType: "address";
440
+ readonly name: "account";
441
+ readonly type: "address";
442
+ }];
443
+ readonly name: "balanceOf";
444
+ readonly outputs: readonly [{
445
+ readonly internalType: "uint256";
446
+ readonly name: "";
447
+ readonly type: "uint256";
448
+ }];
449
+ readonly stateMutability: "view";
450
+ readonly type: "function";
451
+ }, {
452
+ readonly inputs: readonly [{
453
+ readonly internalType: "uint256";
454
+ readonly name: "shares";
455
+ readonly type: "uint256";
456
+ }];
457
+ readonly name: "convertToAssets";
458
+ readonly outputs: readonly [{
459
+ readonly internalType: "uint256";
460
+ readonly name: "";
461
+ readonly type: "uint256";
462
+ }];
463
+ readonly stateMutability: "view";
464
+ readonly type: "function";
465
+ }, {
466
+ readonly inputs: readonly [];
467
+ readonly name: "decimals";
468
+ readonly outputs: readonly [{
469
+ readonly internalType: "uint8";
470
+ readonly name: "";
471
+ readonly type: "uint8";
472
+ }];
473
+ readonly stateMutability: "view";
474
+ readonly type: "function";
475
+ }, {
476
+ readonly inputs: readonly [];
477
+ readonly name: "DECIMALS_OFFSET";
478
+ readonly outputs: readonly [{
479
+ readonly internalType: "uint8";
480
+ readonly name: "";
481
+ readonly type: "uint8";
482
+ }];
483
+ readonly stateMutability: "view";
484
+ readonly type: "function";
485
+ }, {
486
+ readonly inputs: readonly [{
487
+ readonly internalType: "uint256";
488
+ readonly name: "shares";
489
+ readonly type: "uint256";
490
+ }];
491
+ readonly name: "previewRedeem";
492
+ readonly outputs: readonly [{
493
+ readonly internalType: "uint256";
494
+ readonly name: "";
495
+ readonly type: "uint256";
496
+ }];
497
+ readonly stateMutability: "view";
498
+ readonly type: "function";
499
+ }, {
500
+ readonly inputs: readonly [];
501
+ readonly name: "totalAssets";
502
+ readonly outputs: readonly [{
503
+ readonly internalType: "uint256";
504
+ readonly name: "";
505
+ readonly type: "uint256";
506
+ }];
507
+ readonly stateMutability: "view";
508
+ readonly type: "function";
509
+ }, {
510
+ readonly inputs: readonly [];
511
+ readonly name: "totalSupply";
512
+ readonly outputs: readonly [{
513
+ readonly internalType: "uint256";
514
+ readonly name: "";
515
+ readonly type: "uint256";
516
+ }];
517
+ readonly stateMutability: "view";
518
+ readonly type: "function";
519
+ }], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
520
+ totalAssets: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
521
+ readonly inputs: readonly [];
522
+ readonly name: "acceptTimelock";
523
+ readonly outputs: readonly [];
524
+ readonly stateMutability: "nonpayable";
525
+ readonly type: "function";
526
+ }, {
527
+ readonly inputs: readonly [{
528
+ readonly internalType: "address";
529
+ readonly name: "account";
530
+ readonly type: "address";
531
+ }];
532
+ readonly name: "balanceOf";
533
+ readonly outputs: readonly [{
534
+ readonly internalType: "uint256";
535
+ readonly name: "";
536
+ readonly type: "uint256";
537
+ }];
538
+ readonly stateMutability: "view";
539
+ readonly type: "function";
540
+ }, {
541
+ readonly inputs: readonly [{
542
+ readonly internalType: "uint256";
543
+ readonly name: "shares";
544
+ readonly type: "uint256";
545
+ }];
546
+ readonly name: "convertToAssets";
547
+ readonly outputs: readonly [{
548
+ readonly internalType: "uint256";
549
+ readonly name: "";
550
+ readonly type: "uint256";
551
+ }];
552
+ readonly stateMutability: "view";
553
+ readonly type: "function";
554
+ }, {
555
+ readonly inputs: readonly [];
556
+ readonly name: "decimals";
557
+ readonly outputs: readonly [{
558
+ readonly internalType: "uint8";
559
+ readonly name: "";
560
+ readonly type: "uint8";
561
+ }];
562
+ readonly stateMutability: "view";
563
+ readonly type: "function";
564
+ }, {
565
+ readonly inputs: readonly [];
566
+ readonly name: "DECIMALS_OFFSET";
567
+ readonly outputs: readonly [{
568
+ readonly internalType: "uint8";
569
+ readonly name: "";
570
+ readonly type: "uint8";
571
+ }];
572
+ readonly stateMutability: "view";
573
+ readonly type: "function";
574
+ }, {
575
+ readonly inputs: readonly [{
576
+ readonly internalType: "uint256";
577
+ readonly name: "shares";
578
+ readonly type: "uint256";
579
+ }];
580
+ readonly name: "previewRedeem";
581
+ readonly outputs: readonly [{
582
+ readonly internalType: "uint256";
583
+ readonly name: "";
584
+ readonly type: "uint256";
585
+ }];
586
+ readonly stateMutability: "view";
587
+ readonly type: "function";
588
+ }, {
589
+ readonly inputs: readonly [];
590
+ readonly name: "totalAssets";
591
+ readonly outputs: readonly [{
592
+ readonly internalType: "uint256";
593
+ readonly name: "";
594
+ readonly type: "uint256";
595
+ }];
596
+ readonly stateMutability: "view";
597
+ readonly type: "function";
598
+ }, {
599
+ readonly inputs: readonly [];
600
+ readonly name: "totalSupply";
601
+ readonly outputs: readonly [{
602
+ readonly internalType: "uint256";
603
+ readonly name: "";
604
+ readonly type: "uint256";
605
+ }];
606
+ readonly stateMutability: "view";
607
+ readonly type: "function";
608
+ }], "totalAssets", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
609
+ convertToAssets: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
610
+ readonly inputs: readonly [];
611
+ readonly name: "acceptTimelock";
612
+ readonly outputs: readonly [];
613
+ readonly stateMutability: "nonpayable";
614
+ readonly type: "function";
615
+ }, {
616
+ readonly inputs: readonly [{
617
+ readonly internalType: "address";
618
+ readonly name: "account";
619
+ readonly type: "address";
620
+ }];
621
+ readonly name: "balanceOf";
622
+ readonly outputs: readonly [{
623
+ readonly internalType: "uint256";
624
+ readonly name: "";
625
+ readonly type: "uint256";
626
+ }];
627
+ readonly stateMutability: "view";
628
+ readonly type: "function";
629
+ }, {
630
+ readonly inputs: readonly [{
631
+ readonly internalType: "uint256";
632
+ readonly name: "shares";
633
+ readonly type: "uint256";
634
+ }];
635
+ readonly name: "convertToAssets";
636
+ readonly outputs: readonly [{
637
+ readonly internalType: "uint256";
638
+ readonly name: "";
639
+ readonly type: "uint256";
640
+ }];
641
+ readonly stateMutability: "view";
642
+ readonly type: "function";
643
+ }, {
644
+ readonly inputs: readonly [];
645
+ readonly name: "decimals";
646
+ readonly outputs: readonly [{
647
+ readonly internalType: "uint8";
648
+ readonly name: "";
649
+ readonly type: "uint8";
650
+ }];
651
+ readonly stateMutability: "view";
652
+ readonly type: "function";
653
+ }, {
654
+ readonly inputs: readonly [];
655
+ readonly name: "DECIMALS_OFFSET";
656
+ readonly outputs: readonly [{
657
+ readonly internalType: "uint8";
658
+ readonly name: "";
659
+ readonly type: "uint8";
660
+ }];
661
+ readonly stateMutability: "view";
662
+ readonly type: "function";
663
+ }, {
664
+ readonly inputs: readonly [{
665
+ readonly internalType: "uint256";
666
+ readonly name: "shares";
667
+ readonly type: "uint256";
668
+ }];
669
+ readonly name: "previewRedeem";
670
+ readonly outputs: readonly [{
671
+ readonly internalType: "uint256";
672
+ readonly name: "";
673
+ readonly type: "uint256";
674
+ }];
675
+ readonly stateMutability: "view";
676
+ readonly type: "function";
677
+ }, {
678
+ readonly inputs: readonly [];
679
+ readonly name: "totalAssets";
680
+ readonly outputs: readonly [{
681
+ readonly internalType: "uint256";
682
+ readonly name: "";
683
+ readonly type: "uint256";
684
+ }];
685
+ readonly stateMutability: "view";
686
+ readonly type: "function";
687
+ }, {
688
+ readonly inputs: readonly [];
689
+ readonly name: "totalSupply";
690
+ readonly outputs: readonly [{
691
+ readonly internalType: "uint256";
692
+ readonly name: "";
693
+ readonly type: "uint256";
694
+ }];
695
+ readonly stateMutability: "view";
696
+ readonly type: "function";
697
+ }], "convertToAssets", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
698
+ previewRedeem: (args: readonly [bigint], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
699
+ readonly inputs: readonly [];
700
+ readonly name: "acceptTimelock";
701
+ readonly outputs: readonly [];
702
+ readonly stateMutability: "nonpayable";
703
+ readonly type: "function";
704
+ }, {
705
+ readonly inputs: readonly [{
706
+ readonly internalType: "address";
707
+ readonly name: "account";
708
+ readonly type: "address";
709
+ }];
710
+ readonly name: "balanceOf";
711
+ readonly outputs: readonly [{
712
+ readonly internalType: "uint256";
713
+ readonly name: "";
714
+ readonly type: "uint256";
715
+ }];
716
+ readonly stateMutability: "view";
717
+ readonly type: "function";
718
+ }, {
719
+ readonly inputs: readonly [{
720
+ readonly internalType: "uint256";
721
+ readonly name: "shares";
722
+ readonly type: "uint256";
723
+ }];
724
+ readonly name: "convertToAssets";
725
+ readonly outputs: readonly [{
726
+ readonly internalType: "uint256";
727
+ readonly name: "";
728
+ readonly type: "uint256";
729
+ }];
730
+ readonly stateMutability: "view";
731
+ readonly type: "function";
732
+ }, {
733
+ readonly inputs: readonly [];
734
+ readonly name: "decimals";
735
+ readonly outputs: readonly [{
736
+ readonly internalType: "uint8";
737
+ readonly name: "";
738
+ readonly type: "uint8";
739
+ }];
740
+ readonly stateMutability: "view";
741
+ readonly type: "function";
742
+ }, {
743
+ readonly inputs: readonly [];
744
+ readonly name: "DECIMALS_OFFSET";
745
+ readonly outputs: readonly [{
746
+ readonly internalType: "uint8";
747
+ readonly name: "";
748
+ readonly type: "uint8";
749
+ }];
750
+ readonly stateMutability: "view";
751
+ readonly type: "function";
752
+ }, {
753
+ readonly inputs: readonly [{
754
+ readonly internalType: "uint256";
755
+ readonly name: "shares";
756
+ readonly type: "uint256";
757
+ }];
758
+ readonly name: "previewRedeem";
759
+ readonly outputs: readonly [{
760
+ readonly internalType: "uint256";
761
+ readonly name: "";
762
+ readonly type: "uint256";
763
+ }];
764
+ readonly stateMutability: "view";
765
+ readonly type: "function";
766
+ }, {
767
+ readonly inputs: readonly [];
768
+ readonly name: "totalAssets";
769
+ readonly outputs: readonly [{
770
+ readonly internalType: "uint256";
771
+ readonly name: "";
772
+ readonly type: "uint256";
773
+ }];
774
+ readonly stateMutability: "view";
775
+ readonly type: "function";
776
+ }, {
777
+ readonly inputs: readonly [];
778
+ readonly name: "totalSupply";
779
+ readonly outputs: readonly [{
780
+ readonly internalType: "uint256";
781
+ readonly name: "";
782
+ readonly type: "uint256";
783
+ }];
784
+ readonly stateMutability: "view";
785
+ readonly type: "function";
786
+ }], "previewRedeem", readonly [bigint]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
787
+ DECIMALS_OFFSET: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
788
+ readonly inputs: readonly [];
789
+ readonly name: "acceptTimelock";
790
+ readonly outputs: readonly [];
791
+ readonly stateMutability: "nonpayable";
792
+ readonly type: "function";
793
+ }, {
794
+ readonly inputs: readonly [{
795
+ readonly internalType: "address";
796
+ readonly name: "account";
797
+ readonly type: "address";
798
+ }];
799
+ readonly name: "balanceOf";
800
+ readonly outputs: readonly [{
801
+ readonly internalType: "uint256";
802
+ readonly name: "";
803
+ readonly type: "uint256";
804
+ }];
805
+ readonly stateMutability: "view";
806
+ readonly type: "function";
807
+ }, {
808
+ readonly inputs: readonly [{
809
+ readonly internalType: "uint256";
810
+ readonly name: "shares";
811
+ readonly type: "uint256";
812
+ }];
813
+ readonly name: "convertToAssets";
814
+ readonly outputs: readonly [{
815
+ readonly internalType: "uint256";
816
+ readonly name: "";
817
+ readonly type: "uint256";
818
+ }];
819
+ readonly stateMutability: "view";
820
+ readonly type: "function";
821
+ }, {
822
+ readonly inputs: readonly [];
823
+ readonly name: "decimals";
824
+ readonly outputs: readonly [{
825
+ readonly internalType: "uint8";
826
+ readonly name: "";
827
+ readonly type: "uint8";
828
+ }];
829
+ readonly stateMutability: "view";
830
+ readonly type: "function";
831
+ }, {
832
+ readonly inputs: readonly [];
833
+ readonly name: "DECIMALS_OFFSET";
834
+ readonly outputs: readonly [{
835
+ readonly internalType: "uint8";
836
+ readonly name: "";
837
+ readonly type: "uint8";
838
+ }];
839
+ readonly stateMutability: "view";
840
+ readonly type: "function";
841
+ }, {
842
+ readonly inputs: readonly [{
843
+ readonly internalType: "uint256";
844
+ readonly name: "shares";
845
+ readonly type: "uint256";
846
+ }];
847
+ readonly name: "previewRedeem";
848
+ readonly outputs: readonly [{
849
+ readonly internalType: "uint256";
850
+ readonly name: "";
851
+ readonly type: "uint256";
852
+ }];
853
+ readonly stateMutability: "view";
854
+ readonly type: "function";
855
+ }, {
856
+ readonly inputs: readonly [];
857
+ readonly name: "totalAssets";
858
+ readonly outputs: readonly [{
859
+ readonly internalType: "uint256";
860
+ readonly name: "";
861
+ readonly type: "uint256";
862
+ }];
863
+ readonly stateMutability: "view";
864
+ readonly type: "function";
865
+ }, {
866
+ readonly inputs: readonly [];
867
+ readonly name: "totalSupply";
868
+ readonly outputs: readonly [{
869
+ readonly internalType: "uint256";
870
+ readonly name: "";
871
+ readonly type: "uint256";
872
+ }];
873
+ readonly stateMutability: "view";
874
+ readonly type: "function";
875
+ }], "DECIMALS_OFFSET", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<number>;
876
+ };
877
+ estimateGas: {
878
+ acceptTimelock: (options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
879
+ readonly inputs: readonly [];
880
+ readonly name: "acceptTimelock";
881
+ readonly outputs: readonly [];
882
+ readonly stateMutability: "nonpayable";
883
+ readonly type: "function";
884
+ }, {
885
+ readonly inputs: readonly [{
886
+ readonly internalType: "address";
887
+ readonly name: "account";
888
+ readonly type: "address";
889
+ }];
890
+ readonly name: "balanceOf";
891
+ readonly outputs: readonly [{
892
+ readonly internalType: "uint256";
893
+ readonly name: "";
894
+ readonly type: "uint256";
895
+ }];
896
+ readonly stateMutability: "view";
897
+ readonly type: "function";
898
+ }, {
899
+ readonly inputs: readonly [{
900
+ readonly internalType: "uint256";
901
+ readonly name: "shares";
902
+ readonly type: "uint256";
903
+ }];
904
+ readonly name: "convertToAssets";
905
+ readonly outputs: readonly [{
906
+ readonly internalType: "uint256";
907
+ readonly name: "";
908
+ readonly type: "uint256";
909
+ }];
910
+ readonly stateMutability: "view";
911
+ readonly type: "function";
912
+ }, {
913
+ readonly inputs: readonly [];
914
+ readonly name: "decimals";
915
+ readonly outputs: readonly [{
916
+ readonly internalType: "uint8";
917
+ readonly name: "";
918
+ readonly type: "uint8";
919
+ }];
920
+ readonly stateMutability: "view";
921
+ readonly type: "function";
922
+ }, {
923
+ readonly inputs: readonly [];
924
+ readonly name: "DECIMALS_OFFSET";
925
+ readonly outputs: readonly [{
926
+ readonly internalType: "uint8";
927
+ readonly name: "";
928
+ readonly type: "uint8";
929
+ }];
930
+ readonly stateMutability: "view";
931
+ readonly type: "function";
932
+ }, {
933
+ readonly inputs: readonly [{
934
+ readonly internalType: "uint256";
935
+ readonly name: "shares";
936
+ readonly type: "uint256";
937
+ }];
938
+ readonly name: "previewRedeem";
939
+ readonly outputs: readonly [{
940
+ readonly internalType: "uint256";
941
+ readonly name: "";
942
+ readonly type: "uint256";
943
+ }];
944
+ readonly stateMutability: "view";
945
+ readonly type: "function";
946
+ }, {
947
+ readonly inputs: readonly [];
948
+ readonly name: "totalAssets";
949
+ readonly outputs: readonly [{
950
+ readonly internalType: "uint256";
951
+ readonly name: "";
952
+ readonly type: "uint256";
953
+ }];
954
+ readonly stateMutability: "view";
955
+ readonly type: "function";
956
+ }, {
957
+ readonly inputs: readonly [];
958
+ readonly name: "totalSupply";
959
+ readonly outputs: readonly [{
960
+ readonly internalType: "uint256";
961
+ readonly name: "";
962
+ readonly type: "uint256";
963
+ }];
964
+ readonly stateMutability: "view";
965
+ readonly type: "function";
966
+ }], "acceptTimelock", readonly [], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
967
+ } & {
968
+ acceptTimelock: (options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<readonly [{
969
+ readonly inputs: readonly [];
970
+ readonly name: "acceptTimelock";
971
+ readonly outputs: readonly [];
972
+ readonly stateMutability: "nonpayable";
973
+ readonly type: "function";
974
+ }, {
975
+ readonly inputs: readonly [{
976
+ readonly internalType: "address";
977
+ readonly name: "account";
978
+ readonly type: "address";
979
+ }];
980
+ readonly name: "balanceOf";
981
+ readonly outputs: readonly [{
982
+ readonly internalType: "uint256";
983
+ readonly name: "";
984
+ readonly type: "uint256";
985
+ }];
986
+ readonly stateMutability: "view";
987
+ readonly type: "function";
988
+ }, {
989
+ readonly inputs: readonly [{
990
+ readonly internalType: "uint256";
991
+ readonly name: "shares";
992
+ readonly type: "uint256";
993
+ }];
994
+ readonly name: "convertToAssets";
995
+ readonly outputs: readonly [{
996
+ readonly internalType: "uint256";
997
+ readonly name: "";
998
+ readonly type: "uint256";
999
+ }];
1000
+ readonly stateMutability: "view";
1001
+ readonly type: "function";
1002
+ }, {
1003
+ readonly inputs: readonly [];
1004
+ readonly name: "decimals";
1005
+ readonly outputs: readonly [{
1006
+ readonly internalType: "uint8";
1007
+ readonly name: "";
1008
+ readonly type: "uint8";
1009
+ }];
1010
+ readonly stateMutability: "view";
1011
+ readonly type: "function";
1012
+ }, {
1013
+ readonly inputs: readonly [];
1014
+ readonly name: "DECIMALS_OFFSET";
1015
+ readonly outputs: readonly [{
1016
+ readonly internalType: "uint8";
1017
+ readonly name: "";
1018
+ readonly type: "uint8";
1019
+ }];
1020
+ readonly stateMutability: "view";
1021
+ readonly type: "function";
1022
+ }, {
1023
+ readonly inputs: readonly [{
1024
+ readonly internalType: "uint256";
1025
+ readonly name: "shares";
1026
+ readonly type: "uint256";
1027
+ }];
1028
+ readonly name: "previewRedeem";
1029
+ readonly outputs: readonly [{
1030
+ readonly internalType: "uint256";
1031
+ readonly name: "";
1032
+ readonly type: "uint256";
1033
+ }];
1034
+ readonly stateMutability: "view";
1035
+ readonly type: "function";
1036
+ }, {
1037
+ readonly inputs: readonly [];
1038
+ readonly name: "totalAssets";
1039
+ readonly outputs: readonly [{
1040
+ readonly internalType: "uint256";
1041
+ readonly name: "";
1042
+ readonly type: "uint256";
1043
+ }];
1044
+ readonly stateMutability: "view";
1045
+ readonly type: "function";
1046
+ }, {
1047
+ readonly inputs: readonly [];
1048
+ readonly name: "totalSupply";
1049
+ readonly outputs: readonly [{
1050
+ readonly internalType: "uint256";
1051
+ readonly name: "";
1052
+ readonly type: "uint256";
1053
+ }];
1054
+ readonly stateMutability: "view";
1055
+ readonly type: "function";
1056
+ }], "acceptTimelock", readonly [], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>) => Promise<import("viem").EstimateContractGasReturnType>;
1057
+ };
1058
+ simulate: {
1059
+ acceptTimelock: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(options?: Omit<import("viem").SimulateContractParameters<readonly [{
1060
+ readonly inputs: readonly [];
1061
+ readonly name: "acceptTimelock";
1062
+ readonly outputs: readonly [];
1063
+ readonly stateMutability: "nonpayable";
1064
+ readonly type: "function";
1065
+ }, {
1066
+ readonly inputs: readonly [{
1067
+ readonly internalType: "address";
1068
+ readonly name: "account";
1069
+ readonly type: "address";
1070
+ }];
1071
+ readonly name: "balanceOf";
1072
+ readonly outputs: readonly [{
1073
+ readonly internalType: "uint256";
1074
+ readonly name: "";
1075
+ readonly type: "uint256";
1076
+ }];
1077
+ readonly stateMutability: "view";
1078
+ readonly type: "function";
1079
+ }, {
1080
+ readonly inputs: readonly [{
1081
+ readonly internalType: "uint256";
1082
+ readonly name: "shares";
1083
+ readonly type: "uint256";
1084
+ }];
1085
+ readonly name: "convertToAssets";
1086
+ readonly outputs: readonly [{
1087
+ readonly internalType: "uint256";
1088
+ readonly name: "";
1089
+ readonly type: "uint256";
1090
+ }];
1091
+ readonly stateMutability: "view";
1092
+ readonly type: "function";
1093
+ }, {
1094
+ readonly inputs: readonly [];
1095
+ readonly name: "decimals";
1096
+ readonly outputs: readonly [{
1097
+ readonly internalType: "uint8";
1098
+ readonly name: "";
1099
+ readonly type: "uint8";
1100
+ }];
1101
+ readonly stateMutability: "view";
1102
+ readonly type: "function";
1103
+ }, {
1104
+ readonly inputs: readonly [];
1105
+ readonly name: "DECIMALS_OFFSET";
1106
+ readonly outputs: readonly [{
1107
+ readonly internalType: "uint8";
1108
+ readonly name: "";
1109
+ readonly type: "uint8";
1110
+ }];
1111
+ readonly stateMutability: "view";
1112
+ readonly type: "function";
1113
+ }, {
1114
+ readonly inputs: readonly [{
1115
+ readonly internalType: "uint256";
1116
+ readonly name: "shares";
1117
+ readonly type: "uint256";
1118
+ }];
1119
+ readonly name: "previewRedeem";
1120
+ readonly outputs: readonly [{
1121
+ readonly internalType: "uint256";
1122
+ readonly name: "";
1123
+ readonly type: "uint256";
1124
+ }];
1125
+ readonly stateMutability: "view";
1126
+ readonly type: "function";
1127
+ }, {
1128
+ readonly inputs: readonly [];
1129
+ readonly name: "totalAssets";
1130
+ readonly outputs: readonly [{
1131
+ readonly internalType: "uint256";
1132
+ readonly name: "";
1133
+ readonly type: "uint256";
1134
+ }];
1135
+ readonly stateMutability: "view";
1136
+ readonly type: "function";
1137
+ }, {
1138
+ readonly inputs: readonly [];
1139
+ readonly name: "totalSupply";
1140
+ readonly outputs: readonly [{
1141
+ readonly internalType: "uint256";
1142
+ readonly name: "";
1143
+ readonly type: "uint256";
1144
+ }];
1145
+ readonly stateMutability: "view";
1146
+ readonly type: "function";
1147
+ }], "acceptTimelock", readonly [], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined) => Promise<import("viem").SimulateContractReturnType<readonly [{
1148
+ readonly inputs: readonly [];
1149
+ readonly name: "acceptTimelock";
1150
+ readonly outputs: readonly [];
1151
+ readonly stateMutability: "nonpayable";
1152
+ readonly type: "function";
1153
+ }, {
1154
+ readonly inputs: readonly [{
1155
+ readonly internalType: "address";
1156
+ readonly name: "account";
1157
+ readonly type: "address";
1158
+ }];
1159
+ readonly name: "balanceOf";
1160
+ readonly outputs: readonly [{
1161
+ readonly internalType: "uint256";
1162
+ readonly name: "";
1163
+ readonly type: "uint256";
1164
+ }];
1165
+ readonly stateMutability: "view";
1166
+ readonly type: "function";
1167
+ }, {
1168
+ readonly inputs: readonly [{
1169
+ readonly internalType: "uint256";
1170
+ readonly name: "shares";
1171
+ readonly type: "uint256";
1172
+ }];
1173
+ readonly name: "convertToAssets";
1174
+ readonly outputs: readonly [{
1175
+ readonly internalType: "uint256";
1176
+ readonly name: "";
1177
+ readonly type: "uint256";
1178
+ }];
1179
+ readonly stateMutability: "view";
1180
+ readonly type: "function";
1181
+ }, {
1182
+ readonly inputs: readonly [];
1183
+ readonly name: "decimals";
1184
+ readonly outputs: readonly [{
1185
+ readonly internalType: "uint8";
1186
+ readonly name: "";
1187
+ readonly type: "uint8";
1188
+ }];
1189
+ readonly stateMutability: "view";
1190
+ readonly type: "function";
1191
+ }, {
1192
+ readonly inputs: readonly [];
1193
+ readonly name: "DECIMALS_OFFSET";
1194
+ readonly outputs: readonly [{
1195
+ readonly internalType: "uint8";
1196
+ readonly name: "";
1197
+ readonly type: "uint8";
1198
+ }];
1199
+ readonly stateMutability: "view";
1200
+ readonly type: "function";
1201
+ }, {
1202
+ readonly inputs: readonly [{
1203
+ readonly internalType: "uint256";
1204
+ readonly name: "shares";
1205
+ readonly type: "uint256";
1206
+ }];
1207
+ readonly name: "previewRedeem";
1208
+ readonly outputs: readonly [{
1209
+ readonly internalType: "uint256";
1210
+ readonly name: "";
1211
+ readonly type: "uint256";
1212
+ }];
1213
+ readonly stateMutability: "view";
1214
+ readonly type: "function";
1215
+ }, {
1216
+ readonly inputs: readonly [];
1217
+ readonly name: "totalAssets";
1218
+ readonly outputs: readonly [{
1219
+ readonly internalType: "uint256";
1220
+ readonly name: "";
1221
+ readonly type: "uint256";
1222
+ }];
1223
+ readonly stateMutability: "view";
1224
+ readonly type: "function";
1225
+ }, {
1226
+ readonly inputs: readonly [];
1227
+ readonly name: "totalSupply";
1228
+ readonly outputs: readonly [{
1229
+ readonly internalType: "uint256";
1230
+ readonly name: "";
1231
+ readonly type: "uint256";
1232
+ }];
1233
+ readonly stateMutability: "view";
1234
+ readonly type: "function";
1235
+ }], "acceptTimelock", readonly [], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride, accountOverride>>;
1236
+ };
1237
+ write: {
1238
+ acceptTimelock: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<readonly [{
1239
+ readonly inputs: readonly [];
1240
+ readonly name: "acceptTimelock";
1241
+ readonly outputs: readonly [];
1242
+ readonly stateMutability: "nonpayable";
1243
+ readonly type: "function";
1244
+ }, {
1245
+ readonly inputs: readonly [{
1246
+ readonly internalType: "address";
1247
+ readonly name: "account";
1248
+ readonly type: "address";
1249
+ }];
1250
+ readonly name: "balanceOf";
1251
+ readonly outputs: readonly [{
1252
+ readonly internalType: "uint256";
1253
+ readonly name: "";
1254
+ readonly type: "uint256";
1255
+ }];
1256
+ readonly stateMutability: "view";
1257
+ readonly type: "function";
1258
+ }, {
1259
+ readonly inputs: readonly [{
1260
+ readonly internalType: "uint256";
1261
+ readonly name: "shares";
1262
+ readonly type: "uint256";
1263
+ }];
1264
+ readonly name: "convertToAssets";
1265
+ readonly outputs: readonly [{
1266
+ readonly internalType: "uint256";
1267
+ readonly name: "";
1268
+ readonly type: "uint256";
1269
+ }];
1270
+ readonly stateMutability: "view";
1271
+ readonly type: "function";
1272
+ }, {
1273
+ readonly inputs: readonly [];
1274
+ readonly name: "decimals";
1275
+ readonly outputs: readonly [{
1276
+ readonly internalType: "uint8";
1277
+ readonly name: "";
1278
+ readonly type: "uint8";
1279
+ }];
1280
+ readonly stateMutability: "view";
1281
+ readonly type: "function";
1282
+ }, {
1283
+ readonly inputs: readonly [];
1284
+ readonly name: "DECIMALS_OFFSET";
1285
+ readonly outputs: readonly [{
1286
+ readonly internalType: "uint8";
1287
+ readonly name: "";
1288
+ readonly type: "uint8";
1289
+ }];
1290
+ readonly stateMutability: "view";
1291
+ readonly type: "function";
1292
+ }, {
1293
+ readonly inputs: readonly [{
1294
+ readonly internalType: "uint256";
1295
+ readonly name: "shares";
1296
+ readonly type: "uint256";
1297
+ }];
1298
+ readonly name: "previewRedeem";
1299
+ readonly outputs: readonly [{
1300
+ readonly internalType: "uint256";
1301
+ readonly name: "";
1302
+ readonly type: "uint256";
1303
+ }];
1304
+ readonly stateMutability: "view";
1305
+ readonly type: "function";
1306
+ }, {
1307
+ readonly inputs: readonly [];
1308
+ readonly name: "totalAssets";
1309
+ readonly outputs: readonly [{
1310
+ readonly internalType: "uint256";
1311
+ readonly name: "";
1312
+ readonly type: "uint256";
1313
+ }];
1314
+ readonly stateMutability: "view";
1315
+ readonly type: "function";
1316
+ }, {
1317
+ readonly inputs: readonly [];
1318
+ readonly name: "totalSupply";
1319
+ readonly outputs: readonly [{
1320
+ readonly internalType: "uint256";
1321
+ readonly name: "";
1322
+ readonly type: "uint256";
1323
+ }];
1324
+ readonly stateMutability: "view";
1325
+ readonly type: "function";
1326
+ }], "acceptTimelock", readonly [], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: T[K]; } : never>(options: options) => Promise<import("viem").WriteContractReturnType>;
1327
+ };
1328
+ address: `0x${string}`;
1329
+ abi: readonly [{
1330
+ readonly inputs: readonly [];
1331
+ readonly name: "acceptTimelock";
1332
+ readonly outputs: readonly [];
1333
+ readonly stateMutability: "nonpayable";
1334
+ readonly type: "function";
1335
+ }, {
1336
+ readonly inputs: readonly [{
1337
+ readonly internalType: "address";
1338
+ readonly name: "account";
1339
+ readonly type: "address";
1340
+ }];
1341
+ readonly name: "balanceOf";
1342
+ readonly outputs: readonly [{
1343
+ readonly internalType: "uint256";
1344
+ readonly name: "";
1345
+ readonly type: "uint256";
1346
+ }];
1347
+ readonly stateMutability: "view";
1348
+ readonly type: "function";
1349
+ }, {
1350
+ readonly inputs: readonly [{
1351
+ readonly internalType: "uint256";
1352
+ readonly name: "shares";
1353
+ readonly type: "uint256";
1354
+ }];
1355
+ readonly name: "convertToAssets";
1356
+ readonly outputs: readonly [{
1357
+ readonly internalType: "uint256";
1358
+ readonly name: "";
1359
+ readonly type: "uint256";
1360
+ }];
1361
+ readonly stateMutability: "view";
1362
+ readonly type: "function";
1363
+ }, {
1364
+ readonly inputs: readonly [];
1365
+ readonly name: "decimals";
1366
+ readonly outputs: readonly [{
1367
+ readonly internalType: "uint8";
1368
+ readonly name: "";
1369
+ readonly type: "uint8";
1370
+ }];
1371
+ readonly stateMutability: "view";
1372
+ readonly type: "function";
1373
+ }, {
1374
+ readonly inputs: readonly [];
1375
+ readonly name: "DECIMALS_OFFSET";
1376
+ readonly outputs: readonly [{
1377
+ readonly internalType: "uint8";
1378
+ readonly name: "";
1379
+ readonly type: "uint8";
1380
+ }];
1381
+ readonly stateMutability: "view";
1382
+ readonly type: "function";
1383
+ }, {
1384
+ readonly inputs: readonly [{
1385
+ readonly internalType: "uint256";
1386
+ readonly name: "shares";
1387
+ readonly type: "uint256";
1388
+ }];
1389
+ readonly name: "previewRedeem";
1390
+ readonly outputs: readonly [{
1391
+ readonly internalType: "uint256";
1392
+ readonly name: "";
1393
+ readonly type: "uint256";
1394
+ }];
1395
+ readonly stateMutability: "view";
1396
+ readonly type: "function";
1397
+ }, {
1398
+ readonly inputs: readonly [];
1399
+ readonly name: "totalAssets";
1400
+ readonly outputs: readonly [{
1401
+ readonly internalType: "uint256";
1402
+ readonly name: "";
1403
+ readonly type: "uint256";
1404
+ }];
1405
+ readonly stateMutability: "view";
1406
+ readonly type: "function";
1407
+ }, {
1408
+ readonly inputs: readonly [];
1409
+ readonly name: "totalSupply";
1410
+ readonly outputs: readonly [{
1411
+ readonly internalType: "uint256";
1412
+ readonly name: "";
1413
+ readonly type: "uint256";
1414
+ }];
1415
+ readonly stateMutability: "view";
1416
+ readonly type: "function";
1417
+ }];
1418
+ };
1419
+ export declare const getYearnVaultContractViem: (client: Client, address: HexString) => {
1420
+ read: {
1421
+ totalSupply: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
1422
+ readonly stateMutability: "view";
1423
+ readonly type: "function";
1424
+ readonly name: "balanceOf";
1425
+ readonly inputs: readonly [{
1426
+ readonly name: "arg0";
1427
+ readonly type: "address";
1428
+ }];
1429
+ readonly outputs: readonly [{
1430
+ readonly name: "";
1431
+ readonly type: "uint256";
1432
+ }];
1433
+ readonly gas: 3923;
1434
+ }, {
1435
+ readonly stateMutability: "view";
1436
+ readonly type: "function";
1437
+ readonly name: "totalAssets";
1438
+ readonly inputs: readonly [];
1439
+ readonly outputs: readonly [{
1440
+ readonly name: "";
1441
+ readonly type: "uint256";
1442
+ }];
1443
+ readonly gas: 8698;
1444
+ }, {
1445
+ readonly stateMutability: "view";
1446
+ readonly type: "function";
1447
+ readonly name: "totalSupply";
1448
+ readonly inputs: readonly [];
1449
+ readonly outputs: readonly [{
1450
+ readonly name: "";
1451
+ readonly type: "uint256";
1452
+ }];
1453
+ readonly gas: 3768;
1454
+ }], "totalSupply", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
1455
+ balanceOf: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
1456
+ readonly stateMutability: "view";
1457
+ readonly type: "function";
1458
+ readonly name: "balanceOf";
1459
+ readonly inputs: readonly [{
1460
+ readonly name: "arg0";
1461
+ readonly type: "address";
1462
+ }];
1463
+ readonly outputs: readonly [{
1464
+ readonly name: "";
1465
+ readonly type: "uint256";
1466
+ }];
1467
+ readonly gas: 3923;
1468
+ }, {
1469
+ readonly stateMutability: "view";
1470
+ readonly type: "function";
1471
+ readonly name: "totalAssets";
1472
+ readonly inputs: readonly [];
1473
+ readonly outputs: readonly [{
1474
+ readonly name: "";
1475
+ readonly type: "uint256";
1476
+ }];
1477
+ readonly gas: 8698;
1478
+ }, {
1479
+ readonly stateMutability: "view";
1480
+ readonly type: "function";
1481
+ readonly name: "totalSupply";
1482
+ readonly inputs: readonly [];
1483
+ readonly outputs: readonly [{
1484
+ readonly name: "";
1485
+ readonly type: "uint256";
1486
+ }];
1487
+ readonly gas: 3768;
1488
+ }], "balanceOf", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
1489
+ totalAssets: (options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
1490
+ readonly stateMutability: "view";
1491
+ readonly type: "function";
1492
+ readonly name: "balanceOf";
1493
+ readonly inputs: readonly [{
1494
+ readonly name: "arg0";
1495
+ readonly type: "address";
1496
+ }];
1497
+ readonly outputs: readonly [{
1498
+ readonly name: "";
1499
+ readonly type: "uint256";
1500
+ }];
1501
+ readonly gas: 3923;
1502
+ }, {
1503
+ readonly stateMutability: "view";
1504
+ readonly type: "function";
1505
+ readonly name: "totalAssets";
1506
+ readonly inputs: readonly [];
1507
+ readonly outputs: readonly [{
1508
+ readonly name: "";
1509
+ readonly type: "uint256";
1510
+ }];
1511
+ readonly gas: 8698;
1512
+ }, {
1513
+ readonly stateMutability: "view";
1514
+ readonly type: "function";
1515
+ readonly name: "totalSupply";
1516
+ readonly inputs: readonly [];
1517
+ readonly outputs: readonly [{
1518
+ readonly name: "";
1519
+ readonly type: "uint256";
1520
+ }];
1521
+ readonly gas: 3768;
1522
+ }], "totalAssets", readonly []>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
1523
+ };
1524
+ address: `0x${string}`;
1525
+ abi: readonly [{
1526
+ readonly stateMutability: "view";
1527
+ readonly type: "function";
1528
+ readonly name: "balanceOf";
1529
+ readonly inputs: readonly [{
1530
+ readonly name: "arg0";
1531
+ readonly type: "address";
1532
+ }];
1533
+ readonly outputs: readonly [{
1534
+ readonly name: "";
1535
+ readonly type: "uint256";
1536
+ }];
1537
+ readonly gas: 3923;
1538
+ }, {
1539
+ readonly stateMutability: "view";
1540
+ readonly type: "function";
1541
+ readonly name: "totalAssets";
1542
+ readonly inputs: readonly [];
1543
+ readonly outputs: readonly [{
1544
+ readonly name: "";
1545
+ readonly type: "uint256";
1546
+ }];
1547
+ readonly gas: 8698;
1548
+ }, {
1549
+ readonly stateMutability: "view";
1550
+ readonly type: "function";
1551
+ readonly name: "totalSupply";
1552
+ readonly inputs: readonly [];
1553
+ readonly outputs: readonly [{
1554
+ readonly name: "";
1555
+ readonly type: "uint256";
1556
+ }];
1557
+ readonly gas: 3768;
1558
+ }];
1559
+ };
251
1560
  export declare const MorphoBlueViewContractViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
252
1561
  read: {
253
1562
  getApyAfterValuesEstimation: (args: readonly [{
@@ -495285,3 +496594,344 @@ export declare const StkAAVEViem: (client: Client, network: NetworkNumber, block
495285
496594
  readonly type: "function";
495286
496595
  }];
495287
496596
  };
496597
+ export declare const YearnViewContractViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
496598
+ read: {
496599
+ getPoolLiquidity: (args: readonly [`0x${string}`], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<readonly [{
496600
+ readonly inputs: readonly [{
496601
+ readonly internalType: "address";
496602
+ readonly name: "_vault";
496603
+ readonly type: "address";
496604
+ }];
496605
+ readonly name: "getPoolLiquidity";
496606
+ readonly outputs: readonly [{
496607
+ readonly internalType: "uint256";
496608
+ readonly name: "";
496609
+ readonly type: "uint256";
496610
+ }];
496611
+ readonly stateMutability: "view";
496612
+ readonly type: "function";
496613
+ }], "getPoolLiquidity", readonly [`0x${string}`]>, "address" | "args" | "abi" | "functionName">> | undefined) => Promise<bigint>;
496614
+ };
496615
+ address: `0x${string}`;
496616
+ abi: readonly [{
496617
+ readonly inputs: readonly [{
496618
+ readonly internalType: "address";
496619
+ readonly name: "_vault";
496620
+ readonly type: "address";
496621
+ }];
496622
+ readonly name: "getPoolLiquidity";
496623
+ readonly outputs: readonly [{
496624
+ readonly internalType: "uint256";
496625
+ readonly name: "";
496626
+ readonly type: "uint256";
496627
+ }];
496628
+ readonly stateMutability: "view";
496629
+ readonly type: "function";
496630
+ }];
496631
+ };
496632
+ export declare const MakerDsrContractViem: (client: Client, network: NetworkNumber, block?: Blockish) => {
496633
+ read: {
496634
+ [x: string]: (...parameters: [options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
496635
+ constant: boolean;
496636
+ inputs: {
496637
+ internalType: string;
496638
+ name: string;
496639
+ type: string;
496640
+ }[];
496641
+ name: string;
496642
+ outputs: {
496643
+ internalType: string;
496644
+ name: string;
496645
+ type: string;
496646
+ }[];
496647
+ payable: boolean;
496648
+ stateMutability: string;
496649
+ type: string;
496650
+ }[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: import("viem").Prettify<import("viem").UnionOmit<import("viem").ReadContractParameters<{
496651
+ constant: boolean;
496652
+ inputs: {
496653
+ internalType: string;
496654
+ name: string;
496655
+ type: string;
496656
+ }[];
496657
+ name: string;
496658
+ outputs: {
496659
+ internalType: string;
496660
+ name: string;
496661
+ type: string;
496662
+ }[];
496663
+ payable: boolean;
496664
+ stateMutability: string;
496665
+ type: string;
496666
+ }[], string, readonly unknown[]>, "address" | "args" | "abi" | "functionName">> | undefined]) => Promise<import("viem").ReadContractReturnType>;
496667
+ };
496668
+ estimateGas: {
496669
+ [x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
496670
+ constant: boolean;
496671
+ inputs: {
496672
+ internalType: string;
496673
+ name: string;
496674
+ type: string;
496675
+ }[];
496676
+ name: string;
496677
+ outputs: {
496678
+ internalType: string;
496679
+ name: string;
496680
+ type: string;
496681
+ }[];
496682
+ payable: boolean;
496683
+ stateMutability: string;
496684
+ type: string;
496685
+ }[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
496686
+ constant: boolean;
496687
+ inputs: {
496688
+ internalType: string;
496689
+ name: string;
496690
+ type: string;
496691
+ }[];
496692
+ name: string;
496693
+ outputs: {
496694
+ internalType: string;
496695
+ name: string;
496696
+ type: string;
496697
+ }[];
496698
+ payable: boolean;
496699
+ stateMutability: string;
496700
+ type: string;
496701
+ }[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
496702
+ } & {
496703
+ [x: string]: (...parameters: [options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
496704
+ constant: boolean;
496705
+ inputs: {
496706
+ internalType: string;
496707
+ name: string;
496708
+ type: string;
496709
+ }[];
496710
+ name: string;
496711
+ outputs: {
496712
+ internalType: string;
496713
+ name: string;
496714
+ type: string;
496715
+ }[];
496716
+ payable: boolean;
496717
+ stateMutability: string;
496718
+ type: string;
496719
+ }[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>] | [args: readonly unknown[], options: import("viem").Prettify<import("viem").UnionOmit<import("viem").EstimateContractGasParameters<{
496720
+ constant: boolean;
496721
+ inputs: {
496722
+ internalType: string;
496723
+ name: string;
496724
+ type: string;
496725
+ }[];
496726
+ name: string;
496727
+ outputs: {
496728
+ internalType: string;
496729
+ name: string;
496730
+ type: string;
496731
+ }[];
496732
+ payable: boolean;
496733
+ stateMutability: string;
496734
+ type: string;
496735
+ }[], string, readonly unknown[], import("viem").Chain | undefined>, "address" | "args" | "abi" | "functionName">>]) => Promise<import("viem").EstimateContractGasReturnType>;
496736
+ };
496737
+ simulate: {
496738
+ [x: string]: <chainOverride extends import("viem").Chain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(...parameters: [options?: Omit<import("viem").SimulateContractParameters<{
496739
+ constant: boolean;
496740
+ inputs: {
496741
+ internalType: string;
496742
+ name: string;
496743
+ type: string;
496744
+ }[];
496745
+ name: string;
496746
+ outputs: {
496747
+ internalType: string;
496748
+ name: string;
496749
+ type: string;
496750
+ }[];
496751
+ payable: boolean;
496752
+ stateMutability: string;
496753
+ type: string;
496754
+ }[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<import("viem").SimulateContractParameters<{
496755
+ constant: boolean;
496756
+ inputs: {
496757
+ internalType: string;
496758
+ name: string;
496759
+ type: string;
496760
+ }[];
496761
+ name: string;
496762
+ outputs: {
496763
+ internalType: string;
496764
+ name: string;
496765
+ type: string;
496766
+ }[];
496767
+ payable: boolean;
496768
+ stateMutability: string;
496769
+ type: string;
496770
+ }[], string, readonly unknown[], import("viem").Chain | undefined, chainOverride, accountOverride>, "address" | "args" | "abi" | "functionName"> | undefined]) => Promise<import("viem").SimulateContractReturnType>;
496771
+ };
496772
+ createEventFilter: {
496773
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
496774
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
496775
+ toBlock?: bigint | import("viem").BlockTag | undefined;
496776
+ } & {
496777
+ strict?: strict | undefined;
496778
+ }) | undefined] | [args: readonly unknown[] | {
496779
+ [x: string]: unknown;
496780
+ address?: undefined;
496781
+ abi?: undefined;
496782
+ eventName?: undefined;
496783
+ fromBlock?: undefined;
496784
+ strict?: undefined;
496785
+ toBlock?: undefined;
496786
+ args?: undefined;
496787
+ }, options?: ({
496788
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
496789
+ toBlock?: bigint | import("viem").BlockTag | undefined;
496790
+ } & {
496791
+ strict?: strict | undefined;
496792
+ }) | undefined]) => Promise<import("viem").CreateContractEventFilterReturnType>;
496793
+ };
496794
+ getEvents: {
496795
+ [x: string]: (...parameters: [options?: {
496796
+ strict?: boolean | undefined;
496797
+ blockHash?: `0x${string}` | undefined;
496798
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
496799
+ toBlock?: bigint | import("viem").BlockTag | undefined;
496800
+ } | undefined] | [args?: readonly unknown[] | {
496801
+ [x: string]: unknown;
496802
+ address?: undefined;
496803
+ abi?: undefined;
496804
+ args?: undefined;
496805
+ eventName?: undefined;
496806
+ fromBlock?: undefined;
496807
+ onError?: undefined;
496808
+ onLogs?: undefined;
496809
+ strict?: undefined;
496810
+ poll?: undefined;
496811
+ batch?: undefined;
496812
+ pollingInterval?: undefined;
496813
+ } | undefined, options?: {
496814
+ strict?: boolean | undefined;
496815
+ blockHash?: `0x${string}` | undefined;
496816
+ fromBlock?: bigint | import("viem").BlockTag | undefined;
496817
+ toBlock?: bigint | import("viem").BlockTag | undefined;
496818
+ } | undefined]) => Promise<import("viem").GetContractEventsReturnType<{
496819
+ constant: boolean;
496820
+ inputs: {
496821
+ internalType: string;
496822
+ name: string;
496823
+ type: string;
496824
+ }[];
496825
+ name: string;
496826
+ outputs: {
496827
+ internalType: string;
496828
+ name: string;
496829
+ type: string;
496830
+ }[];
496831
+ payable: boolean;
496832
+ stateMutability: string;
496833
+ type: string;
496834
+ }[], string>>;
496835
+ };
496836
+ watchEvent: {
496837
+ [x: string]: (...parameters: [options?: {
496838
+ batch?: boolean | undefined | undefined;
496839
+ pollingInterval?: number | undefined | undefined;
496840
+ strict?: boolean | undefined;
496841
+ onError?: ((error: Error) => void) | undefined | undefined;
496842
+ fromBlock?: bigint | undefined;
496843
+ onLogs: import("viem").WatchContractEventOnLogsFn<{
496844
+ constant: boolean;
496845
+ inputs: {
496846
+ internalType: string;
496847
+ name: string;
496848
+ type: string;
496849
+ }[];
496850
+ name: string;
496851
+ outputs: {
496852
+ internalType: string;
496853
+ name: string;
496854
+ type: string;
496855
+ }[];
496856
+ payable: boolean;
496857
+ stateMutability: string;
496858
+ type: string;
496859
+ }[], string, undefined>;
496860
+ poll?: true | undefined | undefined;
496861
+ } | undefined] | [args: readonly unknown[] | {
496862
+ [x: string]: unknown;
496863
+ address?: undefined;
496864
+ abi?: undefined;
496865
+ args?: undefined;
496866
+ eventName?: undefined;
496867
+ fromBlock?: undefined;
496868
+ onError?: undefined;
496869
+ onLogs?: undefined;
496870
+ strict?: undefined;
496871
+ poll?: undefined;
496872
+ batch?: undefined;
496873
+ pollingInterval?: undefined;
496874
+ }, options?: {
496875
+ batch?: boolean | undefined | undefined;
496876
+ pollingInterval?: number | undefined | undefined;
496877
+ strict?: boolean | undefined;
496878
+ onError?: ((error: Error) => void) | undefined | undefined;
496879
+ fromBlock?: bigint | undefined;
496880
+ onLogs: import("viem").WatchContractEventOnLogsFn<{
496881
+ constant: boolean;
496882
+ inputs: {
496883
+ internalType: string;
496884
+ name: string;
496885
+ type: string;
496886
+ }[];
496887
+ name: string;
496888
+ outputs: {
496889
+ internalType: string;
496890
+ name: string;
496891
+ type: string;
496892
+ }[];
496893
+ payable: boolean;
496894
+ stateMutability: string;
496895
+ type: string;
496896
+ }[], string, undefined>;
496897
+ poll?: true | undefined | undefined;
496898
+ } | undefined]) => import("viem").WatchContractEventReturnType;
496899
+ };
496900
+ write: {
496901
+ [x: string]: <chainOverride extends import("viem").Chain | undefined, options extends import("viem").UnionOmit<import("viem").WriteContractParameters<{
496902
+ constant: boolean;
496903
+ inputs: {
496904
+ internalType: string;
496905
+ name: string;
496906
+ type: string;
496907
+ }[];
496908
+ name: string;
496909
+ outputs: {
496910
+ internalType: string;
496911
+ name: string;
496912
+ type: string;
496913
+ }[];
496914
+ payable: boolean;
496915
+ stateMutability: string;
496916
+ type: string;
496917
+ }[], string, readonly unknown[], import("viem").Chain | undefined, import("viem").Account | undefined, chainOverride>, "address" | "args" | "abi" | "functionName"> extends infer T ? { [K in keyof T]: T[K]; } : never, Rest extends unknown[] = [options: options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<import("viem").WriteContractReturnType>;
496918
+ };
496919
+ address: `0x${string}`;
496920
+ abi: {
496921
+ constant: boolean;
496922
+ inputs: {
496923
+ internalType: string;
496924
+ name: string;
496925
+ type: string;
496926
+ }[];
496927
+ name: string;
496928
+ outputs: {
496929
+ internalType: string;
496930
+ name: string;
496931
+ type: string;
496932
+ }[];
496933
+ payable: boolean;
496934
+ stateMutability: string;
496935
+ type: string;
496936
+ }[];
496937
+ };