@gitmyabi/cawbrl 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2670 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * CErc20Delegate_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const CErc20Delegate_jsonAbi: readonly [{
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "constructor";
11
+ }, {
12
+ readonly inputs: readonly [];
13
+ readonly name: "AcceptAdminPendingAdminCheck";
14
+ readonly type: "error";
15
+ }, {
16
+ readonly inputs: readonly [{
17
+ readonly internalType: "uint256";
18
+ readonly name: "actualAddAmount";
19
+ readonly type: "uint256";
20
+ }];
21
+ readonly name: "AddReservesFactorFreshCheck";
22
+ readonly type: "error";
23
+ }, {
24
+ readonly inputs: readonly [];
25
+ readonly name: "BorrowCashNotAvailable";
26
+ readonly type: "error";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "uint256";
30
+ readonly name: "errorCode";
31
+ readonly type: "uint256";
32
+ }];
33
+ readonly name: "BorrowComptrollerRejection";
34
+ readonly type: "error";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "BorrowFreshnessCheck";
38
+ readonly type: "error";
39
+ }, {
40
+ readonly inputs: readonly [{
41
+ readonly internalType: "uint256";
42
+ readonly name: "errorCode";
43
+ readonly type: "uint256";
44
+ }];
45
+ readonly name: "LiquidateAccrueBorrowInterestFailed";
46
+ readonly type: "error";
47
+ }, {
48
+ readonly inputs: readonly [{
49
+ readonly internalType: "uint256";
50
+ readonly name: "errorCode";
51
+ readonly type: "uint256";
52
+ }];
53
+ readonly name: "LiquidateAccrueCollateralInterestFailed";
54
+ readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "LiquidateCloseAmountIsUintMax";
58
+ readonly type: "error";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "LiquidateCloseAmountIsZero";
62
+ readonly type: "error";
63
+ }, {
64
+ readonly inputs: readonly [];
65
+ readonly name: "LiquidateCollateralFreshnessCheck";
66
+ readonly type: "error";
67
+ }, {
68
+ readonly inputs: readonly [{
69
+ readonly internalType: "uint256";
70
+ readonly name: "errorCode";
71
+ readonly type: "uint256";
72
+ }];
73
+ readonly name: "LiquidateComptrollerRejection";
74
+ readonly type: "error";
75
+ }, {
76
+ readonly inputs: readonly [];
77
+ readonly name: "LiquidateFreshnessCheck";
78
+ readonly type: "error";
79
+ }, {
80
+ readonly inputs: readonly [];
81
+ readonly name: "LiquidateLiquidatorIsBorrower";
82
+ readonly type: "error";
83
+ }, {
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "uint256";
86
+ readonly name: "errorCode";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "LiquidateRepayBorrowFreshFailed";
90
+ readonly type: "error";
91
+ }, {
92
+ readonly inputs: readonly [{
93
+ readonly internalType: "uint256";
94
+ readonly name: "errorCode";
95
+ readonly type: "uint256";
96
+ }];
97
+ readonly name: "LiquidateSeizeComptrollerRejection";
98
+ readonly type: "error";
99
+ }, {
100
+ readonly inputs: readonly [];
101
+ readonly name: "LiquidateSeizeLiquidatorIsBorrower";
102
+ readonly type: "error";
103
+ }, {
104
+ readonly inputs: readonly [{
105
+ readonly internalType: "uint256";
106
+ readonly name: "errorCode";
107
+ readonly type: "uint256";
108
+ }];
109
+ readonly name: "MintComptrollerRejection";
110
+ readonly type: "error";
111
+ }, {
112
+ readonly inputs: readonly [];
113
+ readonly name: "MintFreshnessCheck";
114
+ readonly type: "error";
115
+ }, {
116
+ readonly inputs: readonly [{
117
+ readonly internalType: "uint256";
118
+ readonly name: "errorCode";
119
+ readonly type: "uint256";
120
+ }];
121
+ readonly name: "RedeemComptrollerRejection";
122
+ readonly type: "error";
123
+ }, {
124
+ readonly inputs: readonly [];
125
+ readonly name: "RedeemFreshnessCheck";
126
+ readonly type: "error";
127
+ }, {
128
+ readonly inputs: readonly [];
129
+ readonly name: "RedeemTransferOutNotPossible";
130
+ readonly type: "error";
131
+ }, {
132
+ readonly inputs: readonly [];
133
+ readonly name: "ReduceReservesAdminCheck";
134
+ readonly type: "error";
135
+ }, {
136
+ readonly inputs: readonly [];
137
+ readonly name: "ReduceReservesCashNotAvailable";
138
+ readonly type: "error";
139
+ }, {
140
+ readonly inputs: readonly [];
141
+ readonly name: "ReduceReservesCashValidation";
142
+ readonly type: "error";
143
+ }, {
144
+ readonly inputs: readonly [];
145
+ readonly name: "ReduceReservesFreshCheck";
146
+ readonly type: "error";
147
+ }, {
148
+ readonly inputs: readonly [{
149
+ readonly internalType: "uint256";
150
+ readonly name: "errorCode";
151
+ readonly type: "uint256";
152
+ }];
153
+ readonly name: "RepayBorrowComptrollerRejection";
154
+ readonly type: "error";
155
+ }, {
156
+ readonly inputs: readonly [];
157
+ readonly name: "RepayBorrowFreshnessCheck";
158
+ readonly type: "error";
159
+ }, {
160
+ readonly inputs: readonly [];
161
+ readonly name: "SetComptrollerOwnerCheck";
162
+ readonly type: "error";
163
+ }, {
164
+ readonly inputs: readonly [];
165
+ readonly name: "SetInterestRateModelFreshCheck";
166
+ readonly type: "error";
167
+ }, {
168
+ readonly inputs: readonly [];
169
+ readonly name: "SetInterestRateModelOwnerCheck";
170
+ readonly type: "error";
171
+ }, {
172
+ readonly inputs: readonly [];
173
+ readonly name: "SetPendingAdminOwnerCheck";
174
+ readonly type: "error";
175
+ }, {
176
+ readonly inputs: readonly [];
177
+ readonly name: "SetReserveFactorAdminCheck";
178
+ readonly type: "error";
179
+ }, {
180
+ readonly inputs: readonly [];
181
+ readonly name: "SetReserveFactorBoundsCheck";
182
+ readonly type: "error";
183
+ }, {
184
+ readonly inputs: readonly [];
185
+ readonly name: "SetReserveFactorFreshCheck";
186
+ readonly type: "error";
187
+ }, {
188
+ readonly inputs: readonly [];
189
+ readonly name: "SetWhitelistAdminOwnerCheck";
190
+ readonly type: "error";
191
+ }, {
192
+ readonly inputs: readonly [{
193
+ readonly internalType: "uint256";
194
+ readonly name: "errorCode";
195
+ readonly type: "uint256";
196
+ }];
197
+ readonly name: "TransferComptrollerRejection";
198
+ readonly type: "error";
199
+ }, {
200
+ readonly inputs: readonly [];
201
+ readonly name: "TransferNotAllowed";
202
+ readonly type: "error";
203
+ }, {
204
+ readonly inputs: readonly [];
205
+ readonly name: "TransferNotEnough";
206
+ readonly type: "error";
207
+ }, {
208
+ readonly inputs: readonly [];
209
+ readonly name: "TransferTooMuch";
210
+ readonly type: "error";
211
+ }, {
212
+ readonly anonymous: false;
213
+ readonly inputs: readonly [{
214
+ readonly indexed: false;
215
+ readonly internalType: "uint256";
216
+ readonly name: "cashPrior";
217
+ readonly type: "uint256";
218
+ }, {
219
+ readonly indexed: false;
220
+ readonly internalType: "uint256";
221
+ readonly name: "interestAccumulated";
222
+ readonly type: "uint256";
223
+ }, {
224
+ readonly indexed: false;
225
+ readonly internalType: "uint256";
226
+ readonly name: "borrowIndex";
227
+ readonly type: "uint256";
228
+ }, {
229
+ readonly indexed: false;
230
+ readonly internalType: "uint256";
231
+ readonly name: "totalBorrows";
232
+ readonly type: "uint256";
233
+ }];
234
+ readonly name: "AccrueInterest";
235
+ readonly type: "event";
236
+ }, {
237
+ readonly anonymous: false;
238
+ readonly inputs: readonly [{
239
+ readonly indexed: true;
240
+ readonly internalType: "address";
241
+ readonly name: "owner";
242
+ readonly type: "address";
243
+ }, {
244
+ readonly indexed: true;
245
+ readonly internalType: "address";
246
+ readonly name: "spender";
247
+ readonly type: "address";
248
+ }, {
249
+ readonly indexed: false;
250
+ readonly internalType: "uint256";
251
+ readonly name: "amount";
252
+ readonly type: "uint256";
253
+ }];
254
+ readonly name: "Approval";
255
+ readonly type: "event";
256
+ }, {
257
+ readonly anonymous: false;
258
+ readonly inputs: readonly [{
259
+ readonly indexed: false;
260
+ readonly internalType: "address";
261
+ readonly name: "borrower";
262
+ readonly type: "address";
263
+ }, {
264
+ readonly indexed: false;
265
+ readonly internalType: "uint256";
266
+ readonly name: "borrowAmount";
267
+ readonly type: "uint256";
268
+ }, {
269
+ readonly indexed: false;
270
+ readonly internalType: "uint256";
271
+ readonly name: "accountBorrows";
272
+ readonly type: "uint256";
273
+ }, {
274
+ readonly indexed: false;
275
+ readonly internalType: "uint256";
276
+ readonly name: "totalBorrows";
277
+ readonly type: "uint256";
278
+ }];
279
+ readonly name: "Borrow";
280
+ readonly type: "event";
281
+ }, {
282
+ readonly anonymous: false;
283
+ readonly inputs: readonly [{
284
+ readonly indexed: false;
285
+ readonly internalType: "address";
286
+ readonly name: "liquidator";
287
+ readonly type: "address";
288
+ }, {
289
+ readonly indexed: false;
290
+ readonly internalType: "address";
291
+ readonly name: "borrower";
292
+ readonly type: "address";
293
+ }, {
294
+ readonly indexed: false;
295
+ readonly internalType: "uint256";
296
+ readonly name: "repayAmount";
297
+ readonly type: "uint256";
298
+ }, {
299
+ readonly indexed: false;
300
+ readonly internalType: "address";
301
+ readonly name: "cTokenCollateral";
302
+ readonly type: "address";
303
+ }, {
304
+ readonly indexed: false;
305
+ readonly internalType: "uint256";
306
+ readonly name: "seizeTokens";
307
+ readonly type: "uint256";
308
+ }];
309
+ readonly name: "LiquidateBorrow";
310
+ readonly type: "event";
311
+ }, {
312
+ readonly anonymous: false;
313
+ readonly inputs: readonly [{
314
+ readonly indexed: false;
315
+ readonly internalType: "address";
316
+ readonly name: "minter";
317
+ readonly type: "address";
318
+ }, {
319
+ readonly indexed: false;
320
+ readonly internalType: "uint256";
321
+ readonly name: "mintAmount";
322
+ readonly type: "uint256";
323
+ }, {
324
+ readonly indexed: false;
325
+ readonly internalType: "uint256";
326
+ readonly name: "mintTokens";
327
+ readonly type: "uint256";
328
+ }];
329
+ readonly name: "Mint";
330
+ readonly type: "event";
331
+ }, {
332
+ readonly anonymous: false;
333
+ readonly inputs: readonly [{
334
+ readonly indexed: false;
335
+ readonly internalType: "address";
336
+ readonly name: "oldAdmin";
337
+ readonly type: "address";
338
+ }, {
339
+ readonly indexed: false;
340
+ readonly internalType: "address";
341
+ readonly name: "newAdmin";
342
+ readonly type: "address";
343
+ }];
344
+ readonly name: "NewAdmin";
345
+ readonly type: "event";
346
+ }, {
347
+ readonly anonymous: false;
348
+ readonly inputs: readonly [{
349
+ readonly indexed: false;
350
+ readonly internalType: "contract ComptrollerInterface";
351
+ readonly name: "oldComptroller";
352
+ readonly type: "address";
353
+ }, {
354
+ readonly indexed: false;
355
+ readonly internalType: "contract ComptrollerInterface";
356
+ readonly name: "newComptroller";
357
+ readonly type: "address";
358
+ }];
359
+ readonly name: "NewComptroller";
360
+ readonly type: "event";
361
+ }, {
362
+ readonly anonymous: false;
363
+ readonly inputs: readonly [{
364
+ readonly indexed: false;
365
+ readonly internalType: "contract InterestRateModel";
366
+ readonly name: "oldInterestRateModel";
367
+ readonly type: "address";
368
+ }, {
369
+ readonly indexed: false;
370
+ readonly internalType: "contract InterestRateModel";
371
+ readonly name: "newInterestRateModel";
372
+ readonly type: "address";
373
+ }];
374
+ readonly name: "NewMarketInterestRateModel";
375
+ readonly type: "event";
376
+ }, {
377
+ readonly anonymous: false;
378
+ readonly inputs: readonly [{
379
+ readonly indexed: false;
380
+ readonly internalType: "address";
381
+ readonly name: "oldPendingAdmin";
382
+ readonly type: "address";
383
+ }, {
384
+ readonly indexed: false;
385
+ readonly internalType: "address";
386
+ readonly name: "newPendingAdmin";
387
+ readonly type: "address";
388
+ }];
389
+ readonly name: "NewPendingAdmin";
390
+ readonly type: "event";
391
+ }, {
392
+ readonly anonymous: false;
393
+ readonly inputs: readonly [{
394
+ readonly indexed: false;
395
+ readonly internalType: "uint256";
396
+ readonly name: "oldReserveFactorMantissa";
397
+ readonly type: "uint256";
398
+ }, {
399
+ readonly indexed: false;
400
+ readonly internalType: "uint256";
401
+ readonly name: "newReserveFactorMantissa";
402
+ readonly type: "uint256";
403
+ }];
404
+ readonly name: "NewReserveFactor";
405
+ readonly type: "event";
406
+ }, {
407
+ readonly anonymous: false;
408
+ readonly inputs: readonly [{
409
+ readonly indexed: false;
410
+ readonly internalType: "contract WhitelistAccess";
411
+ readonly name: "oldWhitelist";
412
+ readonly type: "address";
413
+ }, {
414
+ readonly indexed: false;
415
+ readonly internalType: "contract WhitelistAccess";
416
+ readonly name: "newWhitelist";
417
+ readonly type: "address";
418
+ }];
419
+ readonly name: "NewWhitelist";
420
+ readonly type: "event";
421
+ }, {
422
+ readonly anonymous: false;
423
+ readonly inputs: readonly [{
424
+ readonly indexed: false;
425
+ readonly internalType: "address";
426
+ readonly name: "redeemer";
427
+ readonly type: "address";
428
+ }, {
429
+ readonly indexed: false;
430
+ readonly internalType: "uint256";
431
+ readonly name: "redeemAmount";
432
+ readonly type: "uint256";
433
+ }, {
434
+ readonly indexed: false;
435
+ readonly internalType: "uint256";
436
+ readonly name: "redeemTokens";
437
+ readonly type: "uint256";
438
+ }];
439
+ readonly name: "Redeem";
440
+ readonly type: "event";
441
+ }, {
442
+ readonly anonymous: false;
443
+ readonly inputs: readonly [{
444
+ readonly indexed: false;
445
+ readonly internalType: "address";
446
+ readonly name: "payer";
447
+ readonly type: "address";
448
+ }, {
449
+ readonly indexed: false;
450
+ readonly internalType: "address";
451
+ readonly name: "borrower";
452
+ readonly type: "address";
453
+ }, {
454
+ readonly indexed: false;
455
+ readonly internalType: "uint256";
456
+ readonly name: "repayAmount";
457
+ readonly type: "uint256";
458
+ }, {
459
+ readonly indexed: false;
460
+ readonly internalType: "uint256";
461
+ readonly name: "accountBorrows";
462
+ readonly type: "uint256";
463
+ }, {
464
+ readonly indexed: false;
465
+ readonly internalType: "uint256";
466
+ readonly name: "totalBorrows";
467
+ readonly type: "uint256";
468
+ }];
469
+ readonly name: "RepayBorrow";
470
+ readonly type: "event";
471
+ }, {
472
+ readonly anonymous: false;
473
+ readonly inputs: readonly [{
474
+ readonly indexed: false;
475
+ readonly internalType: "address";
476
+ readonly name: "benefactor";
477
+ readonly type: "address";
478
+ }, {
479
+ readonly indexed: false;
480
+ readonly internalType: "uint256";
481
+ readonly name: "addAmount";
482
+ readonly type: "uint256";
483
+ }, {
484
+ readonly indexed: false;
485
+ readonly internalType: "uint256";
486
+ readonly name: "newTotalReserves";
487
+ readonly type: "uint256";
488
+ }];
489
+ readonly name: "ReservesAdded";
490
+ readonly type: "event";
491
+ }, {
492
+ readonly anonymous: false;
493
+ readonly inputs: readonly [{
494
+ readonly indexed: false;
495
+ readonly internalType: "address";
496
+ readonly name: "admin";
497
+ readonly type: "address";
498
+ }, {
499
+ readonly indexed: false;
500
+ readonly internalType: "uint256";
501
+ readonly name: "reduceAmount";
502
+ readonly type: "uint256";
503
+ }, {
504
+ readonly indexed: false;
505
+ readonly internalType: "uint256";
506
+ readonly name: "newTotalReserves";
507
+ readonly type: "uint256";
508
+ }];
509
+ readonly name: "ReservesReduced";
510
+ readonly type: "event";
511
+ }, {
512
+ readonly anonymous: false;
513
+ readonly inputs: readonly [{
514
+ readonly indexed: true;
515
+ readonly internalType: "address";
516
+ readonly name: "from";
517
+ readonly type: "address";
518
+ }, {
519
+ readonly indexed: true;
520
+ readonly internalType: "address";
521
+ readonly name: "to";
522
+ readonly type: "address";
523
+ }, {
524
+ readonly indexed: false;
525
+ readonly internalType: "uint256";
526
+ readonly name: "amount";
527
+ readonly type: "uint256";
528
+ }];
529
+ readonly name: "Transfer";
530
+ readonly type: "event";
531
+ }, {
532
+ readonly inputs: readonly [];
533
+ readonly name: "NO_ERROR";
534
+ readonly outputs: readonly [{
535
+ readonly internalType: "uint256";
536
+ readonly name: "";
537
+ readonly type: "uint256";
538
+ }];
539
+ readonly stateMutability: "view";
540
+ readonly type: "function";
541
+ }, {
542
+ readonly inputs: readonly [];
543
+ readonly name: "_acceptAdmin";
544
+ readonly outputs: readonly [{
545
+ readonly internalType: "uint256";
546
+ readonly name: "";
547
+ readonly type: "uint256";
548
+ }];
549
+ readonly stateMutability: "nonpayable";
550
+ readonly type: "function";
551
+ }, {
552
+ readonly inputs: readonly [{
553
+ readonly internalType: "uint256";
554
+ readonly name: "addAmount";
555
+ readonly type: "uint256";
556
+ }];
557
+ readonly name: "_addReserves";
558
+ readonly outputs: readonly [{
559
+ readonly internalType: "uint256";
560
+ readonly name: "";
561
+ readonly type: "uint256";
562
+ }];
563
+ readonly stateMutability: "nonpayable";
564
+ readonly type: "function";
565
+ }, {
566
+ readonly inputs: readonly [{
567
+ readonly internalType: "bytes";
568
+ readonly name: "data";
569
+ readonly type: "bytes";
570
+ }];
571
+ readonly name: "_becomeImplementation";
572
+ readonly outputs: readonly [];
573
+ readonly stateMutability: "nonpayable";
574
+ readonly type: "function";
575
+ }, {
576
+ readonly inputs: readonly [{
577
+ readonly internalType: "address";
578
+ readonly name: "compLikeDelegatee";
579
+ readonly type: "address";
580
+ }];
581
+ readonly name: "_delegateCompLikeTo";
582
+ readonly outputs: readonly [];
583
+ readonly stateMutability: "nonpayable";
584
+ readonly type: "function";
585
+ }, {
586
+ readonly inputs: readonly [{
587
+ readonly internalType: "uint256";
588
+ readonly name: "reduceAmount";
589
+ readonly type: "uint256";
590
+ }];
591
+ readonly name: "_reduceReserves";
592
+ readonly outputs: readonly [{
593
+ readonly internalType: "uint256";
594
+ readonly name: "";
595
+ readonly type: "uint256";
596
+ }];
597
+ readonly stateMutability: "nonpayable";
598
+ readonly type: "function";
599
+ }, {
600
+ readonly inputs: readonly [];
601
+ readonly name: "_resignImplementation";
602
+ readonly outputs: readonly [];
603
+ readonly stateMutability: "nonpayable";
604
+ readonly type: "function";
605
+ }, {
606
+ readonly inputs: readonly [{
607
+ readonly internalType: "contract ComptrollerInterface";
608
+ readonly name: "newComptroller";
609
+ readonly type: "address";
610
+ }];
611
+ readonly name: "_setComptroller";
612
+ readonly outputs: readonly [{
613
+ readonly internalType: "uint256";
614
+ readonly name: "";
615
+ readonly type: "uint256";
616
+ }];
617
+ readonly stateMutability: "nonpayable";
618
+ readonly type: "function";
619
+ }, {
620
+ readonly inputs: readonly [{
621
+ readonly internalType: "contract InterestRateModel";
622
+ readonly name: "newInterestRateModel";
623
+ readonly type: "address";
624
+ }];
625
+ readonly name: "_setInterestRateModel";
626
+ readonly outputs: readonly [{
627
+ readonly internalType: "uint256";
628
+ readonly name: "";
629
+ readonly type: "uint256";
630
+ }];
631
+ readonly stateMutability: "nonpayable";
632
+ readonly type: "function";
633
+ }, {
634
+ readonly inputs: readonly [{
635
+ readonly internalType: "address payable";
636
+ readonly name: "newPendingAdmin";
637
+ readonly type: "address";
638
+ }];
639
+ readonly name: "_setPendingAdmin";
640
+ readonly outputs: readonly [{
641
+ readonly internalType: "uint256";
642
+ readonly name: "";
643
+ readonly type: "uint256";
644
+ }];
645
+ readonly stateMutability: "nonpayable";
646
+ readonly type: "function";
647
+ }, {
648
+ readonly inputs: readonly [{
649
+ readonly internalType: "uint256";
650
+ readonly name: "newReserveFactorMantissa";
651
+ readonly type: "uint256";
652
+ }];
653
+ readonly name: "_setReserveFactor";
654
+ readonly outputs: readonly [{
655
+ readonly internalType: "uint256";
656
+ readonly name: "";
657
+ readonly type: "uint256";
658
+ }];
659
+ readonly stateMutability: "nonpayable";
660
+ readonly type: "function";
661
+ }, {
662
+ readonly inputs: readonly [{
663
+ readonly internalType: "contract WhitelistAccess";
664
+ readonly name: "newWhitelist";
665
+ readonly type: "address";
666
+ }];
667
+ readonly name: "_setWhitelist";
668
+ readonly outputs: readonly [{
669
+ readonly internalType: "uint256";
670
+ readonly name: "";
671
+ readonly type: "uint256";
672
+ }];
673
+ readonly stateMutability: "nonpayable";
674
+ readonly type: "function";
675
+ }, {
676
+ readonly inputs: readonly [];
677
+ readonly name: "accrualBlockNumber";
678
+ readonly outputs: readonly [{
679
+ readonly internalType: "uint256";
680
+ readonly name: "";
681
+ readonly type: "uint256";
682
+ }];
683
+ readonly stateMutability: "view";
684
+ readonly type: "function";
685
+ }, {
686
+ readonly inputs: readonly [];
687
+ readonly name: "accrueInterest";
688
+ readonly outputs: readonly [{
689
+ readonly internalType: "uint256";
690
+ readonly name: "";
691
+ readonly type: "uint256";
692
+ }];
693
+ readonly stateMutability: "nonpayable";
694
+ readonly type: "function";
695
+ }, {
696
+ readonly inputs: readonly [];
697
+ readonly name: "admin";
698
+ readonly outputs: readonly [{
699
+ readonly internalType: "address payable";
700
+ readonly name: "";
701
+ readonly type: "address";
702
+ }];
703
+ readonly stateMutability: "view";
704
+ readonly type: "function";
705
+ }, {
706
+ readonly inputs: readonly [{
707
+ readonly internalType: "address";
708
+ readonly name: "owner";
709
+ readonly type: "address";
710
+ }, {
711
+ readonly internalType: "address";
712
+ readonly name: "spender";
713
+ readonly type: "address";
714
+ }];
715
+ readonly name: "allowance";
716
+ readonly outputs: readonly [{
717
+ readonly internalType: "uint256";
718
+ readonly name: "";
719
+ readonly type: "uint256";
720
+ }];
721
+ readonly stateMutability: "view";
722
+ readonly type: "function";
723
+ }, {
724
+ readonly inputs: readonly [{
725
+ readonly internalType: "address";
726
+ readonly name: "spender";
727
+ readonly type: "address";
728
+ }, {
729
+ readonly internalType: "uint256";
730
+ readonly name: "amount";
731
+ readonly type: "uint256";
732
+ }];
733
+ readonly name: "approve";
734
+ readonly outputs: readonly [{
735
+ readonly internalType: "bool";
736
+ readonly name: "";
737
+ readonly type: "bool";
738
+ }];
739
+ readonly stateMutability: "nonpayable";
740
+ readonly type: "function";
741
+ }, {
742
+ readonly inputs: readonly [{
743
+ readonly internalType: "address";
744
+ readonly name: "owner";
745
+ readonly type: "address";
746
+ }];
747
+ readonly name: "balanceOf";
748
+ readonly outputs: readonly [{
749
+ readonly internalType: "uint256";
750
+ readonly name: "";
751
+ readonly type: "uint256";
752
+ }];
753
+ readonly stateMutability: "view";
754
+ readonly type: "function";
755
+ }, {
756
+ readonly inputs: readonly [{
757
+ readonly internalType: "address";
758
+ readonly name: "owner";
759
+ readonly type: "address";
760
+ }];
761
+ readonly name: "balanceOfUnderlying";
762
+ readonly outputs: readonly [{
763
+ readonly internalType: "uint256";
764
+ readonly name: "";
765
+ readonly type: "uint256";
766
+ }];
767
+ readonly stateMutability: "nonpayable";
768
+ readonly type: "function";
769
+ }, {
770
+ readonly inputs: readonly [{
771
+ readonly internalType: "uint256";
772
+ readonly name: "borrowAmount";
773
+ readonly type: "uint256";
774
+ }];
775
+ readonly name: "borrow";
776
+ readonly outputs: readonly [{
777
+ readonly internalType: "uint256";
778
+ readonly name: "";
779
+ readonly type: "uint256";
780
+ }];
781
+ readonly stateMutability: "nonpayable";
782
+ readonly type: "function";
783
+ }, {
784
+ readonly inputs: readonly [{
785
+ readonly internalType: "address";
786
+ readonly name: "account";
787
+ readonly type: "address";
788
+ }];
789
+ readonly name: "borrowBalanceCurrent";
790
+ readonly outputs: readonly [{
791
+ readonly internalType: "uint256";
792
+ readonly name: "";
793
+ readonly type: "uint256";
794
+ }];
795
+ readonly stateMutability: "nonpayable";
796
+ readonly type: "function";
797
+ }, {
798
+ readonly inputs: readonly [{
799
+ readonly internalType: "address";
800
+ readonly name: "account";
801
+ readonly type: "address";
802
+ }];
803
+ readonly name: "borrowBalanceStored";
804
+ readonly outputs: readonly [{
805
+ readonly internalType: "uint256";
806
+ readonly name: "";
807
+ readonly type: "uint256";
808
+ }];
809
+ readonly stateMutability: "view";
810
+ readonly type: "function";
811
+ }, {
812
+ readonly inputs: readonly [];
813
+ readonly name: "borrowIndex";
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: "borrowRatePerBlock";
824
+ readonly outputs: readonly [{
825
+ readonly internalType: "uint256";
826
+ readonly name: "";
827
+ readonly type: "uint256";
828
+ }];
829
+ readonly stateMutability: "view";
830
+ readonly type: "function";
831
+ }, {
832
+ readonly inputs: readonly [];
833
+ readonly name: "comptroller";
834
+ readonly outputs: readonly [{
835
+ readonly internalType: "contract ComptrollerInterface";
836
+ readonly name: "";
837
+ readonly type: "address";
838
+ }];
839
+ readonly stateMutability: "view";
840
+ readonly type: "function";
841
+ }, {
842
+ readonly inputs: readonly [];
843
+ readonly name: "decimals";
844
+ readonly outputs: readonly [{
845
+ readonly internalType: "uint8";
846
+ readonly name: "";
847
+ readonly type: "uint8";
848
+ }];
849
+ readonly stateMutability: "view";
850
+ readonly type: "function";
851
+ }, {
852
+ readonly inputs: readonly [];
853
+ readonly name: "exchangeRateCurrent";
854
+ readonly outputs: readonly [{
855
+ readonly internalType: "uint256";
856
+ readonly name: "";
857
+ readonly type: "uint256";
858
+ }];
859
+ readonly stateMutability: "nonpayable";
860
+ readonly type: "function";
861
+ }, {
862
+ readonly inputs: readonly [];
863
+ readonly name: "exchangeRateStored";
864
+ readonly outputs: readonly [{
865
+ readonly internalType: "uint256";
866
+ readonly name: "";
867
+ readonly type: "uint256";
868
+ }];
869
+ readonly stateMutability: "view";
870
+ readonly type: "function";
871
+ }, {
872
+ readonly inputs: readonly [{
873
+ readonly internalType: "address";
874
+ readonly name: "account";
875
+ readonly type: "address";
876
+ }];
877
+ readonly name: "getAccountSnapshot";
878
+ readonly outputs: readonly [{
879
+ readonly internalType: "uint256";
880
+ readonly name: "";
881
+ readonly type: "uint256";
882
+ }, {
883
+ readonly internalType: "uint256";
884
+ readonly name: "";
885
+ readonly type: "uint256";
886
+ }, {
887
+ readonly internalType: "uint256";
888
+ readonly name: "";
889
+ readonly type: "uint256";
890
+ }, {
891
+ readonly internalType: "uint256";
892
+ readonly name: "";
893
+ readonly type: "uint256";
894
+ }];
895
+ readonly stateMutability: "view";
896
+ readonly type: "function";
897
+ }, {
898
+ readonly inputs: readonly [];
899
+ readonly name: "getCash";
900
+ readonly outputs: readonly [{
901
+ readonly internalType: "uint256";
902
+ readonly name: "";
903
+ readonly type: "uint256";
904
+ }];
905
+ readonly stateMutability: "view";
906
+ readonly type: "function";
907
+ }, {
908
+ readonly inputs: readonly [];
909
+ readonly name: "implementation";
910
+ readonly outputs: readonly [{
911
+ readonly internalType: "address";
912
+ readonly name: "";
913
+ readonly type: "address";
914
+ }];
915
+ readonly stateMutability: "view";
916
+ readonly type: "function";
917
+ }, {
918
+ readonly inputs: readonly [{
919
+ readonly internalType: "address";
920
+ readonly name: "underlying_";
921
+ readonly type: "address";
922
+ }, {
923
+ readonly internalType: "contract ComptrollerInterface";
924
+ readonly name: "comptroller_";
925
+ readonly type: "address";
926
+ }, {
927
+ readonly internalType: "contract InterestRateModel";
928
+ readonly name: "interestRateModel_";
929
+ readonly type: "address";
930
+ }, {
931
+ readonly internalType: "uint256";
932
+ readonly name: "initialExchangeRateMantissa_";
933
+ readonly type: "uint256";
934
+ }, {
935
+ readonly internalType: "string";
936
+ readonly name: "name_";
937
+ readonly type: "string";
938
+ }, {
939
+ readonly internalType: "string";
940
+ readonly name: "symbol_";
941
+ readonly type: "string";
942
+ }, {
943
+ readonly internalType: "uint8";
944
+ readonly name: "decimals_";
945
+ readonly type: "uint8";
946
+ }];
947
+ readonly name: "initialize";
948
+ readonly outputs: readonly [];
949
+ readonly stateMutability: "nonpayable";
950
+ readonly type: "function";
951
+ }, {
952
+ readonly inputs: readonly [{
953
+ readonly internalType: "contract ComptrollerInterface";
954
+ readonly name: "comptroller_";
955
+ readonly type: "address";
956
+ }, {
957
+ readonly internalType: "contract InterestRateModel";
958
+ readonly name: "interestRateModel_";
959
+ readonly type: "address";
960
+ }, {
961
+ readonly internalType: "uint256";
962
+ readonly name: "initialExchangeRateMantissa_";
963
+ readonly type: "uint256";
964
+ }, {
965
+ readonly internalType: "string";
966
+ readonly name: "name_";
967
+ readonly type: "string";
968
+ }, {
969
+ readonly internalType: "string";
970
+ readonly name: "symbol_";
971
+ readonly type: "string";
972
+ }, {
973
+ readonly internalType: "uint8";
974
+ readonly name: "decimals_";
975
+ readonly type: "uint8";
976
+ }];
977
+ readonly name: "initialize";
978
+ readonly outputs: readonly [];
979
+ readonly stateMutability: "nonpayable";
980
+ readonly type: "function";
981
+ }, {
982
+ readonly inputs: readonly [];
983
+ readonly name: "interestRateModel";
984
+ readonly outputs: readonly [{
985
+ readonly internalType: "contract InterestRateModel";
986
+ readonly name: "";
987
+ readonly type: "address";
988
+ }];
989
+ readonly stateMutability: "view";
990
+ readonly type: "function";
991
+ }, {
992
+ readonly inputs: readonly [];
993
+ readonly name: "isCToken";
994
+ readonly outputs: readonly [{
995
+ readonly internalType: "bool";
996
+ readonly name: "";
997
+ readonly type: "bool";
998
+ }];
999
+ readonly stateMutability: "view";
1000
+ readonly type: "function";
1001
+ }, {
1002
+ readonly inputs: readonly [{
1003
+ readonly internalType: "address";
1004
+ readonly name: "borrower";
1005
+ readonly type: "address";
1006
+ }, {
1007
+ readonly internalType: "uint256";
1008
+ readonly name: "repayAmount";
1009
+ readonly type: "uint256";
1010
+ }, {
1011
+ readonly internalType: "contract CTokenInterface";
1012
+ readonly name: "cTokenCollateral";
1013
+ readonly type: "address";
1014
+ }];
1015
+ readonly name: "liquidateBorrow";
1016
+ readonly outputs: readonly [{
1017
+ readonly internalType: "uint256";
1018
+ readonly name: "";
1019
+ readonly type: "uint256";
1020
+ }];
1021
+ readonly stateMutability: "nonpayable";
1022
+ readonly type: "function";
1023
+ }, {
1024
+ readonly inputs: readonly [{
1025
+ readonly internalType: "uint256";
1026
+ readonly name: "mintAmount";
1027
+ readonly type: "uint256";
1028
+ }];
1029
+ readonly name: "mint";
1030
+ readonly outputs: readonly [{
1031
+ readonly internalType: "uint256";
1032
+ readonly name: "";
1033
+ readonly type: "uint256";
1034
+ }];
1035
+ readonly stateMutability: "nonpayable";
1036
+ readonly type: "function";
1037
+ }, {
1038
+ readonly inputs: readonly [];
1039
+ readonly name: "name";
1040
+ readonly outputs: readonly [{
1041
+ readonly internalType: "string";
1042
+ readonly name: "";
1043
+ readonly type: "string";
1044
+ }];
1045
+ readonly stateMutability: "view";
1046
+ readonly type: "function";
1047
+ }, {
1048
+ readonly inputs: readonly [];
1049
+ readonly name: "pendingAdmin";
1050
+ readonly outputs: readonly [{
1051
+ readonly internalType: "address payable";
1052
+ readonly name: "";
1053
+ readonly type: "address";
1054
+ }];
1055
+ readonly stateMutability: "view";
1056
+ readonly type: "function";
1057
+ }, {
1058
+ readonly inputs: readonly [];
1059
+ readonly name: "protocolSeizeShareMantissa";
1060
+ readonly outputs: readonly [{
1061
+ readonly internalType: "uint256";
1062
+ readonly name: "";
1063
+ readonly type: "uint256";
1064
+ }];
1065
+ readonly stateMutability: "view";
1066
+ readonly type: "function";
1067
+ }, {
1068
+ readonly inputs: readonly [{
1069
+ readonly internalType: "uint256";
1070
+ readonly name: "redeemTokens";
1071
+ readonly type: "uint256";
1072
+ }];
1073
+ readonly name: "redeem";
1074
+ readonly outputs: readonly [{
1075
+ readonly internalType: "uint256";
1076
+ readonly name: "";
1077
+ readonly type: "uint256";
1078
+ }];
1079
+ readonly stateMutability: "nonpayable";
1080
+ readonly type: "function";
1081
+ }, {
1082
+ readonly inputs: readonly [{
1083
+ readonly internalType: "uint256";
1084
+ readonly name: "redeemAmount";
1085
+ readonly type: "uint256";
1086
+ }];
1087
+ readonly name: "redeemUnderlying";
1088
+ readonly outputs: readonly [{
1089
+ readonly internalType: "uint256";
1090
+ readonly name: "";
1091
+ readonly type: "uint256";
1092
+ }];
1093
+ readonly stateMutability: "nonpayable";
1094
+ readonly type: "function";
1095
+ }, {
1096
+ readonly inputs: readonly [{
1097
+ readonly internalType: "uint256";
1098
+ readonly name: "repayAmount";
1099
+ readonly type: "uint256";
1100
+ }];
1101
+ readonly name: "repayBorrow";
1102
+ readonly outputs: readonly [{
1103
+ readonly internalType: "uint256";
1104
+ readonly name: "";
1105
+ readonly type: "uint256";
1106
+ }];
1107
+ readonly stateMutability: "nonpayable";
1108
+ readonly type: "function";
1109
+ }, {
1110
+ readonly inputs: readonly [{
1111
+ readonly internalType: "address";
1112
+ readonly name: "borrower";
1113
+ readonly type: "address";
1114
+ }, {
1115
+ readonly internalType: "uint256";
1116
+ readonly name: "repayAmount";
1117
+ readonly type: "uint256";
1118
+ }];
1119
+ readonly name: "repayBorrowBehalf";
1120
+ readonly outputs: readonly [{
1121
+ readonly internalType: "uint256";
1122
+ readonly name: "";
1123
+ readonly type: "uint256";
1124
+ }];
1125
+ readonly stateMutability: "nonpayable";
1126
+ readonly type: "function";
1127
+ }, {
1128
+ readonly inputs: readonly [];
1129
+ readonly name: "reserveFactorMantissa";
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 internalType: "address";
1140
+ readonly name: "liquidator";
1141
+ readonly type: "address";
1142
+ }, {
1143
+ readonly internalType: "address";
1144
+ readonly name: "borrower";
1145
+ readonly type: "address";
1146
+ }, {
1147
+ readonly internalType: "uint256";
1148
+ readonly name: "seizeTokens";
1149
+ readonly type: "uint256";
1150
+ }];
1151
+ readonly name: "seize";
1152
+ readonly outputs: readonly [{
1153
+ readonly internalType: "uint256";
1154
+ readonly name: "";
1155
+ readonly type: "uint256";
1156
+ }];
1157
+ readonly stateMutability: "nonpayable";
1158
+ readonly type: "function";
1159
+ }, {
1160
+ readonly inputs: readonly [];
1161
+ readonly name: "supplyRatePerBlock";
1162
+ readonly outputs: readonly [{
1163
+ readonly internalType: "uint256";
1164
+ readonly name: "";
1165
+ readonly type: "uint256";
1166
+ }];
1167
+ readonly stateMutability: "view";
1168
+ readonly type: "function";
1169
+ }, {
1170
+ readonly inputs: readonly [{
1171
+ readonly internalType: "contract EIP20NonStandardInterface";
1172
+ readonly name: "token";
1173
+ readonly type: "address";
1174
+ }];
1175
+ readonly name: "sweepToken";
1176
+ readonly outputs: readonly [];
1177
+ readonly stateMutability: "nonpayable";
1178
+ readonly type: "function";
1179
+ }, {
1180
+ readonly inputs: readonly [];
1181
+ readonly name: "symbol";
1182
+ readonly outputs: readonly [{
1183
+ readonly internalType: "string";
1184
+ readonly name: "";
1185
+ readonly type: "string";
1186
+ }];
1187
+ readonly stateMutability: "view";
1188
+ readonly type: "function";
1189
+ }, {
1190
+ readonly inputs: readonly [];
1191
+ readonly name: "totalBorrows";
1192
+ readonly outputs: readonly [{
1193
+ readonly internalType: "uint256";
1194
+ readonly name: "";
1195
+ readonly type: "uint256";
1196
+ }];
1197
+ readonly stateMutability: "view";
1198
+ readonly type: "function";
1199
+ }, {
1200
+ readonly inputs: readonly [];
1201
+ readonly name: "totalBorrowsCurrent";
1202
+ readonly outputs: readonly [{
1203
+ readonly internalType: "uint256";
1204
+ readonly name: "";
1205
+ readonly type: "uint256";
1206
+ }];
1207
+ readonly stateMutability: "nonpayable";
1208
+ readonly type: "function";
1209
+ }, {
1210
+ readonly inputs: readonly [];
1211
+ readonly name: "totalReserves";
1212
+ readonly outputs: readonly [{
1213
+ readonly internalType: "uint256";
1214
+ readonly name: "";
1215
+ readonly type: "uint256";
1216
+ }];
1217
+ readonly stateMutability: "view";
1218
+ readonly type: "function";
1219
+ }, {
1220
+ readonly inputs: readonly [];
1221
+ readonly name: "totalSupply";
1222
+ readonly outputs: readonly [{
1223
+ readonly internalType: "uint256";
1224
+ readonly name: "";
1225
+ readonly type: "uint256";
1226
+ }];
1227
+ readonly stateMutability: "view";
1228
+ readonly type: "function";
1229
+ }, {
1230
+ readonly inputs: readonly [{
1231
+ readonly internalType: "address";
1232
+ readonly name: "dst";
1233
+ readonly type: "address";
1234
+ }, {
1235
+ readonly internalType: "uint256";
1236
+ readonly name: "amount";
1237
+ readonly type: "uint256";
1238
+ }];
1239
+ readonly name: "transfer";
1240
+ readonly outputs: readonly [{
1241
+ readonly internalType: "bool";
1242
+ readonly name: "";
1243
+ readonly type: "bool";
1244
+ }];
1245
+ readonly stateMutability: "nonpayable";
1246
+ readonly type: "function";
1247
+ }, {
1248
+ readonly inputs: readonly [{
1249
+ readonly internalType: "address";
1250
+ readonly name: "src";
1251
+ readonly type: "address";
1252
+ }, {
1253
+ readonly internalType: "address";
1254
+ readonly name: "dst";
1255
+ readonly type: "address";
1256
+ }, {
1257
+ readonly internalType: "uint256";
1258
+ readonly name: "amount";
1259
+ readonly type: "uint256";
1260
+ }];
1261
+ readonly name: "transferFrom";
1262
+ readonly outputs: readonly [{
1263
+ readonly internalType: "bool";
1264
+ readonly name: "";
1265
+ readonly type: "bool";
1266
+ }];
1267
+ readonly stateMutability: "nonpayable";
1268
+ readonly type: "function";
1269
+ }, {
1270
+ readonly inputs: readonly [];
1271
+ readonly name: "underlying";
1272
+ readonly outputs: readonly [{
1273
+ readonly internalType: "address";
1274
+ readonly name: "";
1275
+ readonly type: "address";
1276
+ }];
1277
+ readonly stateMutability: "view";
1278
+ readonly type: "function";
1279
+ }, {
1280
+ readonly inputs: readonly [];
1281
+ readonly name: "whitelist";
1282
+ readonly outputs: readonly [{
1283
+ readonly internalType: "contract WhitelistAccess";
1284
+ readonly name: "";
1285
+ readonly type: "address";
1286
+ }];
1287
+ readonly stateMutability: "view";
1288
+ readonly type: "function";
1289
+ }];
1290
+ /**
1291
+ * Type-safe ABI for CErc20Delegate_json
1292
+ */
1293
+ export type CErc20Delegate_jsonAbi = typeof CErc20Delegate_jsonAbi;
1294
+ /**
1295
+ * Contract instance type for CErc20Delegate_json
1296
+ */
1297
+ export type CErc20Delegate_jsonContract = any;
1298
+ /**
1299
+ * CErc20Delegate_json Contract Class
1300
+ *
1301
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1302
+ *
1303
+ * @example
1304
+ * ```typescript
1305
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1306
+ * import { mainnet } from 'viem/chains';
1307
+ * import { CErc20Delegate_json } from 'CErc20Delegate_json';
1308
+ *
1309
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1310
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1311
+ *
1312
+ * const contract = new CErc20Delegate_json('0x...', { publicClient, walletClient });
1313
+ *
1314
+ * // Read functions
1315
+ * const result = await contract.balanceOf('0x...');
1316
+ *
1317
+ * // Write functions
1318
+ * const hash = await contract.transfer('0x...', 1000n);
1319
+ *
1320
+ * // Simulate transactions (dry-run)
1321
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1322
+ * console.log('Gas estimate:', simulation.request.gas);
1323
+ *
1324
+ * // Watch events
1325
+ * const unwatch = contract.watch.Transfer((event) => {
1326
+ * console.log('Transfer event:', event);
1327
+ * });
1328
+ * ```
1329
+ */
1330
+ export declare class CErc20Delegate_json {
1331
+ private contract;
1332
+ private contractAddress;
1333
+ private publicClient;
1334
+ constructor(address: Address, clients: {
1335
+ publicClient: PublicClient;
1336
+ walletClient?: WalletClient;
1337
+ });
1338
+ /**
1339
+ * Get the contract address
1340
+ */
1341
+ get address(): Address;
1342
+ /**
1343
+ * Get the underlying viem contract instance
1344
+ */
1345
+ getContract(): CErc20Delegate_jsonContract;
1346
+ /**
1347
+ * NO_ERROR
1348
+ * view
1349
+ */
1350
+ NO_ERROR(): Promise<bigint>;
1351
+ /**
1352
+ * accrualBlockNumber
1353
+ * view
1354
+ */
1355
+ accrualBlockNumber(): Promise<bigint>;
1356
+ /**
1357
+ * admin
1358
+ * view
1359
+ */
1360
+ admin(): Promise<`0x${string}`>;
1361
+ /**
1362
+ * allowance
1363
+ * view
1364
+ */
1365
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
1366
+ /**
1367
+ * balanceOf
1368
+ * view
1369
+ */
1370
+ balanceOf(owner: `0x${string}`): Promise<bigint>;
1371
+ /**
1372
+ * borrowBalanceStored
1373
+ * view
1374
+ */
1375
+ borrowBalanceStored(account: `0x${string}`): Promise<bigint>;
1376
+ /**
1377
+ * borrowIndex
1378
+ * view
1379
+ */
1380
+ borrowIndex(): Promise<bigint>;
1381
+ /**
1382
+ * borrowRatePerBlock
1383
+ * view
1384
+ */
1385
+ borrowRatePerBlock(): Promise<bigint>;
1386
+ /**
1387
+ * comptroller
1388
+ * view
1389
+ */
1390
+ comptroller(): Promise<`0x${string}`>;
1391
+ /**
1392
+ * decimals
1393
+ * view
1394
+ */
1395
+ decimals(): Promise<bigint>;
1396
+ /**
1397
+ * exchangeRateStored
1398
+ * view
1399
+ */
1400
+ exchangeRateStored(): Promise<bigint>;
1401
+ /**
1402
+ * getAccountSnapshot
1403
+ * view
1404
+ */
1405
+ getAccountSnapshot(account: `0x${string}`): Promise<[bigint, bigint, bigint, bigint]>;
1406
+ /**
1407
+ * getCash
1408
+ * view
1409
+ */
1410
+ getCash(): Promise<bigint>;
1411
+ /**
1412
+ * implementation
1413
+ * view
1414
+ */
1415
+ implementation(): Promise<`0x${string}`>;
1416
+ /**
1417
+ * interestRateModel
1418
+ * view
1419
+ */
1420
+ interestRateModel(): Promise<`0x${string}`>;
1421
+ /**
1422
+ * isCToken
1423
+ * view
1424
+ */
1425
+ isCToken(): Promise<boolean>;
1426
+ /**
1427
+ * name
1428
+ * view
1429
+ */
1430
+ name(): Promise<string>;
1431
+ /**
1432
+ * pendingAdmin
1433
+ * view
1434
+ */
1435
+ pendingAdmin(): Promise<`0x${string}`>;
1436
+ /**
1437
+ * protocolSeizeShareMantissa
1438
+ * view
1439
+ */
1440
+ protocolSeizeShareMantissa(): Promise<bigint>;
1441
+ /**
1442
+ * reserveFactorMantissa
1443
+ * view
1444
+ */
1445
+ reserveFactorMantissa(): Promise<bigint>;
1446
+ /**
1447
+ * supplyRatePerBlock
1448
+ * view
1449
+ */
1450
+ supplyRatePerBlock(): Promise<bigint>;
1451
+ /**
1452
+ * symbol
1453
+ * view
1454
+ */
1455
+ symbol(): Promise<string>;
1456
+ /**
1457
+ * totalBorrows
1458
+ * view
1459
+ */
1460
+ totalBorrows(): Promise<bigint>;
1461
+ /**
1462
+ * totalReserves
1463
+ * view
1464
+ */
1465
+ totalReserves(): Promise<bigint>;
1466
+ /**
1467
+ * totalSupply
1468
+ * view
1469
+ */
1470
+ totalSupply(): Promise<bigint>;
1471
+ /**
1472
+ * underlying
1473
+ * view
1474
+ */
1475
+ underlying(): Promise<`0x${string}`>;
1476
+ /**
1477
+ * whitelist
1478
+ * view
1479
+ */
1480
+ whitelist(): Promise<`0x${string}`>;
1481
+ /**
1482
+ * _acceptAdmin
1483
+ * nonpayable
1484
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1485
+ */
1486
+ _acceptAdmin(options?: {
1487
+ accessList?: import('viem').AccessList;
1488
+ authorizationList?: import('viem').AuthorizationList;
1489
+ chain?: import('viem').Chain | null;
1490
+ dataSuffix?: `0x${string}`;
1491
+ gas?: bigint;
1492
+ gasPrice?: bigint;
1493
+ maxFeePerGas?: bigint;
1494
+ maxPriorityFeePerGas?: bigint;
1495
+ nonce?: number;
1496
+ value?: bigint;
1497
+ }): Promise<`0x${string}`>;
1498
+ /**
1499
+ * _addReserves
1500
+ * nonpayable
1501
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1502
+ */
1503
+ _addReserves(addAmount: bigint, options?: {
1504
+ accessList?: import('viem').AccessList;
1505
+ authorizationList?: import('viem').AuthorizationList;
1506
+ chain?: import('viem').Chain | null;
1507
+ dataSuffix?: `0x${string}`;
1508
+ gas?: bigint;
1509
+ gasPrice?: bigint;
1510
+ maxFeePerGas?: bigint;
1511
+ maxPriorityFeePerGas?: bigint;
1512
+ nonce?: number;
1513
+ value?: bigint;
1514
+ }): Promise<`0x${string}`>;
1515
+ /**
1516
+ * _becomeImplementation
1517
+ * nonpayable
1518
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1519
+ */
1520
+ _becomeImplementation(data: `0x${string}`, options?: {
1521
+ accessList?: import('viem').AccessList;
1522
+ authorizationList?: import('viem').AuthorizationList;
1523
+ chain?: import('viem').Chain | null;
1524
+ dataSuffix?: `0x${string}`;
1525
+ gas?: bigint;
1526
+ gasPrice?: bigint;
1527
+ maxFeePerGas?: bigint;
1528
+ maxPriorityFeePerGas?: bigint;
1529
+ nonce?: number;
1530
+ value?: bigint;
1531
+ }): Promise<`0x${string}`>;
1532
+ /**
1533
+ * _delegateCompLikeTo
1534
+ * nonpayable
1535
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1536
+ */
1537
+ _delegateCompLikeTo(compLikeDelegatee: `0x${string}`, options?: {
1538
+ accessList?: import('viem').AccessList;
1539
+ authorizationList?: import('viem').AuthorizationList;
1540
+ chain?: import('viem').Chain | null;
1541
+ dataSuffix?: `0x${string}`;
1542
+ gas?: bigint;
1543
+ gasPrice?: bigint;
1544
+ maxFeePerGas?: bigint;
1545
+ maxPriorityFeePerGas?: bigint;
1546
+ nonce?: number;
1547
+ value?: bigint;
1548
+ }): Promise<`0x${string}`>;
1549
+ /**
1550
+ * _reduceReserves
1551
+ * nonpayable
1552
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1553
+ */
1554
+ _reduceReserves(reduceAmount: bigint, options?: {
1555
+ accessList?: import('viem').AccessList;
1556
+ authorizationList?: import('viem').AuthorizationList;
1557
+ chain?: import('viem').Chain | null;
1558
+ dataSuffix?: `0x${string}`;
1559
+ gas?: bigint;
1560
+ gasPrice?: bigint;
1561
+ maxFeePerGas?: bigint;
1562
+ maxPriorityFeePerGas?: bigint;
1563
+ nonce?: number;
1564
+ value?: bigint;
1565
+ }): Promise<`0x${string}`>;
1566
+ /**
1567
+ * _resignImplementation
1568
+ * nonpayable
1569
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1570
+ */
1571
+ _resignImplementation(options?: {
1572
+ accessList?: import('viem').AccessList;
1573
+ authorizationList?: import('viem').AuthorizationList;
1574
+ chain?: import('viem').Chain | null;
1575
+ dataSuffix?: `0x${string}`;
1576
+ gas?: bigint;
1577
+ gasPrice?: bigint;
1578
+ maxFeePerGas?: bigint;
1579
+ maxPriorityFeePerGas?: bigint;
1580
+ nonce?: number;
1581
+ value?: bigint;
1582
+ }): Promise<`0x${string}`>;
1583
+ /**
1584
+ * _setComptroller
1585
+ * nonpayable
1586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1587
+ */
1588
+ _setComptroller(newComptroller: `0x${string}`, options?: {
1589
+ accessList?: import('viem').AccessList;
1590
+ authorizationList?: import('viem').AuthorizationList;
1591
+ chain?: import('viem').Chain | null;
1592
+ dataSuffix?: `0x${string}`;
1593
+ gas?: bigint;
1594
+ gasPrice?: bigint;
1595
+ maxFeePerGas?: bigint;
1596
+ maxPriorityFeePerGas?: bigint;
1597
+ nonce?: number;
1598
+ value?: bigint;
1599
+ }): Promise<`0x${string}`>;
1600
+ /**
1601
+ * _setInterestRateModel
1602
+ * nonpayable
1603
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1604
+ */
1605
+ _setInterestRateModel(newInterestRateModel: `0x${string}`, options?: {
1606
+ accessList?: import('viem').AccessList;
1607
+ authorizationList?: import('viem').AuthorizationList;
1608
+ chain?: import('viem').Chain | null;
1609
+ dataSuffix?: `0x${string}`;
1610
+ gas?: bigint;
1611
+ gasPrice?: bigint;
1612
+ maxFeePerGas?: bigint;
1613
+ maxPriorityFeePerGas?: bigint;
1614
+ nonce?: number;
1615
+ value?: bigint;
1616
+ }): Promise<`0x${string}`>;
1617
+ /**
1618
+ * _setPendingAdmin
1619
+ * nonpayable
1620
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1621
+ */
1622
+ _setPendingAdmin(newPendingAdmin: `0x${string}`, options?: {
1623
+ accessList?: import('viem').AccessList;
1624
+ authorizationList?: import('viem').AuthorizationList;
1625
+ chain?: import('viem').Chain | null;
1626
+ dataSuffix?: `0x${string}`;
1627
+ gas?: bigint;
1628
+ gasPrice?: bigint;
1629
+ maxFeePerGas?: bigint;
1630
+ maxPriorityFeePerGas?: bigint;
1631
+ nonce?: number;
1632
+ value?: bigint;
1633
+ }): Promise<`0x${string}`>;
1634
+ /**
1635
+ * _setReserveFactor
1636
+ * nonpayable
1637
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1638
+ */
1639
+ _setReserveFactor(newReserveFactorMantissa: bigint, options?: {
1640
+ accessList?: import('viem').AccessList;
1641
+ authorizationList?: import('viem').AuthorizationList;
1642
+ chain?: import('viem').Chain | null;
1643
+ dataSuffix?: `0x${string}`;
1644
+ gas?: bigint;
1645
+ gasPrice?: bigint;
1646
+ maxFeePerGas?: bigint;
1647
+ maxPriorityFeePerGas?: bigint;
1648
+ nonce?: number;
1649
+ value?: bigint;
1650
+ }): Promise<`0x${string}`>;
1651
+ /**
1652
+ * _setWhitelist
1653
+ * nonpayable
1654
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1655
+ */
1656
+ _setWhitelist(newWhitelist: `0x${string}`, options?: {
1657
+ accessList?: import('viem').AccessList;
1658
+ authorizationList?: import('viem').AuthorizationList;
1659
+ chain?: import('viem').Chain | null;
1660
+ dataSuffix?: `0x${string}`;
1661
+ gas?: bigint;
1662
+ gasPrice?: bigint;
1663
+ maxFeePerGas?: bigint;
1664
+ maxPriorityFeePerGas?: bigint;
1665
+ nonce?: number;
1666
+ value?: bigint;
1667
+ }): Promise<`0x${string}`>;
1668
+ /**
1669
+ * accrueInterest
1670
+ * nonpayable
1671
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1672
+ */
1673
+ accrueInterest(options?: {
1674
+ accessList?: import('viem').AccessList;
1675
+ authorizationList?: import('viem').AuthorizationList;
1676
+ chain?: import('viem').Chain | null;
1677
+ dataSuffix?: `0x${string}`;
1678
+ gas?: bigint;
1679
+ gasPrice?: bigint;
1680
+ maxFeePerGas?: bigint;
1681
+ maxPriorityFeePerGas?: bigint;
1682
+ nonce?: number;
1683
+ value?: bigint;
1684
+ }): Promise<`0x${string}`>;
1685
+ /**
1686
+ * approve
1687
+ * nonpayable
1688
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1689
+ */
1690
+ approve(spender: `0x${string}`, amount: bigint, options?: {
1691
+ accessList?: import('viem').AccessList;
1692
+ authorizationList?: import('viem').AuthorizationList;
1693
+ chain?: import('viem').Chain | null;
1694
+ dataSuffix?: `0x${string}`;
1695
+ gas?: bigint;
1696
+ gasPrice?: bigint;
1697
+ maxFeePerGas?: bigint;
1698
+ maxPriorityFeePerGas?: bigint;
1699
+ nonce?: number;
1700
+ value?: bigint;
1701
+ }): Promise<`0x${string}`>;
1702
+ /**
1703
+ * balanceOfUnderlying
1704
+ * nonpayable
1705
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1706
+ */
1707
+ balanceOfUnderlying(owner: `0x${string}`, options?: {
1708
+ accessList?: import('viem').AccessList;
1709
+ authorizationList?: import('viem').AuthorizationList;
1710
+ chain?: import('viem').Chain | null;
1711
+ dataSuffix?: `0x${string}`;
1712
+ gas?: bigint;
1713
+ gasPrice?: bigint;
1714
+ maxFeePerGas?: bigint;
1715
+ maxPriorityFeePerGas?: bigint;
1716
+ nonce?: number;
1717
+ value?: bigint;
1718
+ }): Promise<`0x${string}`>;
1719
+ /**
1720
+ * borrow
1721
+ * nonpayable
1722
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1723
+ */
1724
+ borrow(borrowAmount: bigint, options?: {
1725
+ accessList?: import('viem').AccessList;
1726
+ authorizationList?: import('viem').AuthorizationList;
1727
+ chain?: import('viem').Chain | null;
1728
+ dataSuffix?: `0x${string}`;
1729
+ gas?: bigint;
1730
+ gasPrice?: bigint;
1731
+ maxFeePerGas?: bigint;
1732
+ maxPriorityFeePerGas?: bigint;
1733
+ nonce?: number;
1734
+ value?: bigint;
1735
+ }): Promise<`0x${string}`>;
1736
+ /**
1737
+ * borrowBalanceCurrent
1738
+ * nonpayable
1739
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1740
+ */
1741
+ borrowBalanceCurrent(account: `0x${string}`, options?: {
1742
+ accessList?: import('viem').AccessList;
1743
+ authorizationList?: import('viem').AuthorizationList;
1744
+ chain?: import('viem').Chain | null;
1745
+ dataSuffix?: `0x${string}`;
1746
+ gas?: bigint;
1747
+ gasPrice?: bigint;
1748
+ maxFeePerGas?: bigint;
1749
+ maxPriorityFeePerGas?: bigint;
1750
+ nonce?: number;
1751
+ value?: bigint;
1752
+ }): Promise<`0x${string}`>;
1753
+ /**
1754
+ * exchangeRateCurrent
1755
+ * nonpayable
1756
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1757
+ */
1758
+ exchangeRateCurrent(options?: {
1759
+ accessList?: import('viem').AccessList;
1760
+ authorizationList?: import('viem').AuthorizationList;
1761
+ chain?: import('viem').Chain | null;
1762
+ dataSuffix?: `0x${string}`;
1763
+ gas?: bigint;
1764
+ gasPrice?: bigint;
1765
+ maxFeePerGas?: bigint;
1766
+ maxPriorityFeePerGas?: bigint;
1767
+ nonce?: number;
1768
+ value?: bigint;
1769
+ }): Promise<`0x${string}`>;
1770
+ initialize(underlying_: `0x${string}`, comptroller_: `0x${string}`, interestRateModel_: `0x${string}`, initialExchangeRateMantissa_: bigint, name_: string, symbol_: string, decimals_: bigint, options?: {
1771
+ accessList?: import('viem').AccessList;
1772
+ authorizationList?: import('viem').AuthorizationList;
1773
+ chain?: import('viem').Chain | null;
1774
+ dataSuffix?: `0x${string}`;
1775
+ gas?: bigint;
1776
+ gasPrice?: bigint;
1777
+ maxFeePerGas?: bigint;
1778
+ maxPriorityFeePerGas?: bigint;
1779
+ nonce?: number;
1780
+ value?: bigint;
1781
+ }): Promise<`0x${string}`>;
1782
+ initialize(comptroller_: `0x${string}`, interestRateModel_: `0x${string}`, initialExchangeRateMantissa_: bigint, name_: string, symbol_: string, decimals_: bigint, options?: {
1783
+ accessList?: import('viem').AccessList;
1784
+ authorizationList?: import('viem').AuthorizationList;
1785
+ chain?: import('viem').Chain | null;
1786
+ dataSuffix?: `0x${string}`;
1787
+ gas?: bigint;
1788
+ gasPrice?: bigint;
1789
+ maxFeePerGas?: bigint;
1790
+ maxPriorityFeePerGas?: bigint;
1791
+ nonce?: number;
1792
+ value?: bigint;
1793
+ }): Promise<`0x${string}`>;
1794
+ /**
1795
+ * liquidateBorrow
1796
+ * nonpayable
1797
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1798
+ */
1799
+ liquidateBorrow(borrower: `0x${string}`, repayAmount: bigint, cTokenCollateral: `0x${string}`, options?: {
1800
+ accessList?: import('viem').AccessList;
1801
+ authorizationList?: import('viem').AuthorizationList;
1802
+ chain?: import('viem').Chain | null;
1803
+ dataSuffix?: `0x${string}`;
1804
+ gas?: bigint;
1805
+ gasPrice?: bigint;
1806
+ maxFeePerGas?: bigint;
1807
+ maxPriorityFeePerGas?: bigint;
1808
+ nonce?: number;
1809
+ value?: bigint;
1810
+ }): Promise<`0x${string}`>;
1811
+ /**
1812
+ * mint
1813
+ * nonpayable
1814
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1815
+ */
1816
+ mint(mintAmount: bigint, options?: {
1817
+ accessList?: import('viem').AccessList;
1818
+ authorizationList?: import('viem').AuthorizationList;
1819
+ chain?: import('viem').Chain | null;
1820
+ dataSuffix?: `0x${string}`;
1821
+ gas?: bigint;
1822
+ gasPrice?: bigint;
1823
+ maxFeePerGas?: bigint;
1824
+ maxPriorityFeePerGas?: bigint;
1825
+ nonce?: number;
1826
+ value?: bigint;
1827
+ }): Promise<`0x${string}`>;
1828
+ /**
1829
+ * redeem
1830
+ * nonpayable
1831
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1832
+ */
1833
+ redeem(redeemTokens: bigint, options?: {
1834
+ accessList?: import('viem').AccessList;
1835
+ authorizationList?: import('viem').AuthorizationList;
1836
+ chain?: import('viem').Chain | null;
1837
+ dataSuffix?: `0x${string}`;
1838
+ gas?: bigint;
1839
+ gasPrice?: bigint;
1840
+ maxFeePerGas?: bigint;
1841
+ maxPriorityFeePerGas?: bigint;
1842
+ nonce?: number;
1843
+ value?: bigint;
1844
+ }): Promise<`0x${string}`>;
1845
+ /**
1846
+ * redeemUnderlying
1847
+ * nonpayable
1848
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1849
+ */
1850
+ redeemUnderlying(redeemAmount: bigint, options?: {
1851
+ accessList?: import('viem').AccessList;
1852
+ authorizationList?: import('viem').AuthorizationList;
1853
+ chain?: import('viem').Chain | null;
1854
+ dataSuffix?: `0x${string}`;
1855
+ gas?: bigint;
1856
+ gasPrice?: bigint;
1857
+ maxFeePerGas?: bigint;
1858
+ maxPriorityFeePerGas?: bigint;
1859
+ nonce?: number;
1860
+ value?: bigint;
1861
+ }): Promise<`0x${string}`>;
1862
+ /**
1863
+ * repayBorrow
1864
+ * nonpayable
1865
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1866
+ */
1867
+ repayBorrow(repayAmount: bigint, options?: {
1868
+ accessList?: import('viem').AccessList;
1869
+ authorizationList?: import('viem').AuthorizationList;
1870
+ chain?: import('viem').Chain | null;
1871
+ dataSuffix?: `0x${string}`;
1872
+ gas?: bigint;
1873
+ gasPrice?: bigint;
1874
+ maxFeePerGas?: bigint;
1875
+ maxPriorityFeePerGas?: bigint;
1876
+ nonce?: number;
1877
+ value?: bigint;
1878
+ }): Promise<`0x${string}`>;
1879
+ /**
1880
+ * repayBorrowBehalf
1881
+ * nonpayable
1882
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1883
+ */
1884
+ repayBorrowBehalf(borrower: `0x${string}`, repayAmount: bigint, options?: {
1885
+ accessList?: import('viem').AccessList;
1886
+ authorizationList?: import('viem').AuthorizationList;
1887
+ chain?: import('viem').Chain | null;
1888
+ dataSuffix?: `0x${string}`;
1889
+ gas?: bigint;
1890
+ gasPrice?: bigint;
1891
+ maxFeePerGas?: bigint;
1892
+ maxPriorityFeePerGas?: bigint;
1893
+ nonce?: number;
1894
+ value?: bigint;
1895
+ }): Promise<`0x${string}`>;
1896
+ /**
1897
+ * seize
1898
+ * nonpayable
1899
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1900
+ */
1901
+ seize(liquidator: `0x${string}`, borrower: `0x${string}`, seizeTokens: bigint, options?: {
1902
+ accessList?: import('viem').AccessList;
1903
+ authorizationList?: import('viem').AuthorizationList;
1904
+ chain?: import('viem').Chain | null;
1905
+ dataSuffix?: `0x${string}`;
1906
+ gas?: bigint;
1907
+ gasPrice?: bigint;
1908
+ maxFeePerGas?: bigint;
1909
+ maxPriorityFeePerGas?: bigint;
1910
+ nonce?: number;
1911
+ value?: bigint;
1912
+ }): Promise<`0x${string}`>;
1913
+ /**
1914
+ * sweepToken
1915
+ * nonpayable
1916
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1917
+ */
1918
+ sweepToken(token: `0x${string}`, options?: {
1919
+ accessList?: import('viem').AccessList;
1920
+ authorizationList?: import('viem').AuthorizationList;
1921
+ chain?: import('viem').Chain | null;
1922
+ dataSuffix?: `0x${string}`;
1923
+ gas?: bigint;
1924
+ gasPrice?: bigint;
1925
+ maxFeePerGas?: bigint;
1926
+ maxPriorityFeePerGas?: bigint;
1927
+ nonce?: number;
1928
+ value?: bigint;
1929
+ }): Promise<`0x${string}`>;
1930
+ /**
1931
+ * totalBorrowsCurrent
1932
+ * nonpayable
1933
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1934
+ */
1935
+ totalBorrowsCurrent(options?: {
1936
+ accessList?: import('viem').AccessList;
1937
+ authorizationList?: import('viem').AuthorizationList;
1938
+ chain?: import('viem').Chain | null;
1939
+ dataSuffix?: `0x${string}`;
1940
+ gas?: bigint;
1941
+ gasPrice?: bigint;
1942
+ maxFeePerGas?: bigint;
1943
+ maxPriorityFeePerGas?: bigint;
1944
+ nonce?: number;
1945
+ value?: bigint;
1946
+ }): Promise<`0x${string}`>;
1947
+ /**
1948
+ * transfer
1949
+ * nonpayable
1950
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1951
+ */
1952
+ transfer(dst: `0x${string}`, amount: bigint, options?: {
1953
+ accessList?: import('viem').AccessList;
1954
+ authorizationList?: import('viem').AuthorizationList;
1955
+ chain?: import('viem').Chain | null;
1956
+ dataSuffix?: `0x${string}`;
1957
+ gas?: bigint;
1958
+ gasPrice?: bigint;
1959
+ maxFeePerGas?: bigint;
1960
+ maxPriorityFeePerGas?: bigint;
1961
+ nonce?: number;
1962
+ value?: bigint;
1963
+ }): Promise<`0x${string}`>;
1964
+ /**
1965
+ * transferFrom
1966
+ * nonpayable
1967
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1968
+ */
1969
+ transferFrom(src: `0x${string}`, dst: `0x${string}`, amount: bigint, options?: {
1970
+ accessList?: import('viem').AccessList;
1971
+ authorizationList?: import('viem').AuthorizationList;
1972
+ chain?: import('viem').Chain | null;
1973
+ dataSuffix?: `0x${string}`;
1974
+ gas?: bigint;
1975
+ gasPrice?: bigint;
1976
+ maxFeePerGas?: bigint;
1977
+ maxPriorityFeePerGas?: bigint;
1978
+ nonce?: number;
1979
+ value?: bigint;
1980
+ }): Promise<`0x${string}`>;
1981
+ /**
1982
+ * Simulate contract write operations (dry-run without sending transaction)
1983
+ *
1984
+ * @example
1985
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1986
+ * console.log('Gas estimate:', result.request.gas);
1987
+ * console.log('Would succeed:', result.result);
1988
+ */
1989
+ get simulate(): {
1990
+ /**
1991
+ * Simulate _acceptAdmin
1992
+ * Returns gas estimate and result without sending transaction
1993
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1994
+ */
1995
+ _acceptAdmin(options?: {
1996
+ accessList?: import("viem").AccessList;
1997
+ authorizationList?: import("viem").AuthorizationList;
1998
+ chain?: import("viem").Chain | null;
1999
+ dataSuffix?: `0x${string}`;
2000
+ gas?: bigint;
2001
+ gasPrice?: bigint;
2002
+ maxFeePerGas?: bigint;
2003
+ maxPriorityFeePerGas?: bigint;
2004
+ nonce?: number;
2005
+ value?: bigint;
2006
+ }): Promise<bigint>;
2007
+ /**
2008
+ * Simulate _addReserves
2009
+ * Returns gas estimate and result without sending transaction
2010
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2011
+ */
2012
+ _addReserves(addAmount: bigint, options?: {
2013
+ accessList?: import("viem").AccessList;
2014
+ authorizationList?: import("viem").AuthorizationList;
2015
+ chain?: import("viem").Chain | null;
2016
+ dataSuffix?: `0x${string}`;
2017
+ gas?: bigint;
2018
+ gasPrice?: bigint;
2019
+ maxFeePerGas?: bigint;
2020
+ maxPriorityFeePerGas?: bigint;
2021
+ nonce?: number;
2022
+ value?: bigint;
2023
+ }): Promise<bigint>;
2024
+ /**
2025
+ * Simulate _becomeImplementation
2026
+ * Returns gas estimate and result without sending transaction
2027
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2028
+ */
2029
+ _becomeImplementation(data: `0x${string}`, options?: {
2030
+ accessList?: import("viem").AccessList;
2031
+ authorizationList?: import("viem").AuthorizationList;
2032
+ chain?: import("viem").Chain | null;
2033
+ dataSuffix?: `0x${string}`;
2034
+ gas?: bigint;
2035
+ gasPrice?: bigint;
2036
+ maxFeePerGas?: bigint;
2037
+ maxPriorityFeePerGas?: bigint;
2038
+ nonce?: number;
2039
+ value?: bigint;
2040
+ }): Promise<void>;
2041
+ /**
2042
+ * Simulate _delegateCompLikeTo
2043
+ * Returns gas estimate and result without sending transaction
2044
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2045
+ */
2046
+ _delegateCompLikeTo(compLikeDelegatee: `0x${string}`, options?: {
2047
+ accessList?: import("viem").AccessList;
2048
+ authorizationList?: import("viem").AuthorizationList;
2049
+ chain?: import("viem").Chain | null;
2050
+ dataSuffix?: `0x${string}`;
2051
+ gas?: bigint;
2052
+ gasPrice?: bigint;
2053
+ maxFeePerGas?: bigint;
2054
+ maxPriorityFeePerGas?: bigint;
2055
+ nonce?: number;
2056
+ value?: bigint;
2057
+ }): Promise<void>;
2058
+ /**
2059
+ * Simulate _reduceReserves
2060
+ * Returns gas estimate and result without sending transaction
2061
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2062
+ */
2063
+ _reduceReserves(reduceAmount: bigint, options?: {
2064
+ accessList?: import("viem").AccessList;
2065
+ authorizationList?: import("viem").AuthorizationList;
2066
+ chain?: import("viem").Chain | null;
2067
+ dataSuffix?: `0x${string}`;
2068
+ gas?: bigint;
2069
+ gasPrice?: bigint;
2070
+ maxFeePerGas?: bigint;
2071
+ maxPriorityFeePerGas?: bigint;
2072
+ nonce?: number;
2073
+ value?: bigint;
2074
+ }): Promise<bigint>;
2075
+ /**
2076
+ * Simulate _resignImplementation
2077
+ * Returns gas estimate and result without sending transaction
2078
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2079
+ */
2080
+ _resignImplementation(options?: {
2081
+ accessList?: import("viem").AccessList;
2082
+ authorizationList?: import("viem").AuthorizationList;
2083
+ chain?: import("viem").Chain | null;
2084
+ dataSuffix?: `0x${string}`;
2085
+ gas?: bigint;
2086
+ gasPrice?: bigint;
2087
+ maxFeePerGas?: bigint;
2088
+ maxPriorityFeePerGas?: bigint;
2089
+ nonce?: number;
2090
+ value?: bigint;
2091
+ }): Promise<void>;
2092
+ /**
2093
+ * Simulate _setComptroller
2094
+ * Returns gas estimate and result without sending transaction
2095
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2096
+ */
2097
+ _setComptroller(newComptroller: `0x${string}`, options?: {
2098
+ accessList?: import("viem").AccessList;
2099
+ authorizationList?: import("viem").AuthorizationList;
2100
+ chain?: import("viem").Chain | null;
2101
+ dataSuffix?: `0x${string}`;
2102
+ gas?: bigint;
2103
+ gasPrice?: bigint;
2104
+ maxFeePerGas?: bigint;
2105
+ maxPriorityFeePerGas?: bigint;
2106
+ nonce?: number;
2107
+ value?: bigint;
2108
+ }): Promise<bigint>;
2109
+ /**
2110
+ * Simulate _setInterestRateModel
2111
+ * Returns gas estimate and result without sending transaction
2112
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2113
+ */
2114
+ _setInterestRateModel(newInterestRateModel: `0x${string}`, options?: {
2115
+ accessList?: import("viem").AccessList;
2116
+ authorizationList?: import("viem").AuthorizationList;
2117
+ chain?: import("viem").Chain | null;
2118
+ dataSuffix?: `0x${string}`;
2119
+ gas?: bigint;
2120
+ gasPrice?: bigint;
2121
+ maxFeePerGas?: bigint;
2122
+ maxPriorityFeePerGas?: bigint;
2123
+ nonce?: number;
2124
+ value?: bigint;
2125
+ }): Promise<bigint>;
2126
+ /**
2127
+ * Simulate _setPendingAdmin
2128
+ * Returns gas estimate and result without sending transaction
2129
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2130
+ */
2131
+ _setPendingAdmin(newPendingAdmin: `0x${string}`, options?: {
2132
+ accessList?: import("viem").AccessList;
2133
+ authorizationList?: import("viem").AuthorizationList;
2134
+ chain?: import("viem").Chain | null;
2135
+ dataSuffix?: `0x${string}`;
2136
+ gas?: bigint;
2137
+ gasPrice?: bigint;
2138
+ maxFeePerGas?: bigint;
2139
+ maxPriorityFeePerGas?: bigint;
2140
+ nonce?: number;
2141
+ value?: bigint;
2142
+ }): Promise<bigint>;
2143
+ /**
2144
+ * Simulate _setReserveFactor
2145
+ * Returns gas estimate and result without sending transaction
2146
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2147
+ */
2148
+ _setReserveFactor(newReserveFactorMantissa: bigint, options?: {
2149
+ accessList?: import("viem").AccessList;
2150
+ authorizationList?: import("viem").AuthorizationList;
2151
+ chain?: import("viem").Chain | null;
2152
+ dataSuffix?: `0x${string}`;
2153
+ gas?: bigint;
2154
+ gasPrice?: bigint;
2155
+ maxFeePerGas?: bigint;
2156
+ maxPriorityFeePerGas?: bigint;
2157
+ nonce?: number;
2158
+ value?: bigint;
2159
+ }): Promise<bigint>;
2160
+ /**
2161
+ * Simulate _setWhitelist
2162
+ * Returns gas estimate and result without sending transaction
2163
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2164
+ */
2165
+ _setWhitelist(newWhitelist: `0x${string}`, options?: {
2166
+ accessList?: import("viem").AccessList;
2167
+ authorizationList?: import("viem").AuthorizationList;
2168
+ chain?: import("viem").Chain | null;
2169
+ dataSuffix?: `0x${string}`;
2170
+ gas?: bigint;
2171
+ gasPrice?: bigint;
2172
+ maxFeePerGas?: bigint;
2173
+ maxPriorityFeePerGas?: bigint;
2174
+ nonce?: number;
2175
+ value?: bigint;
2176
+ }): Promise<bigint>;
2177
+ /**
2178
+ * Simulate accrueInterest
2179
+ * Returns gas estimate and result without sending transaction
2180
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2181
+ */
2182
+ accrueInterest(options?: {
2183
+ accessList?: import("viem").AccessList;
2184
+ authorizationList?: import("viem").AuthorizationList;
2185
+ chain?: import("viem").Chain | null;
2186
+ dataSuffix?: `0x${string}`;
2187
+ gas?: bigint;
2188
+ gasPrice?: bigint;
2189
+ maxFeePerGas?: bigint;
2190
+ maxPriorityFeePerGas?: bigint;
2191
+ nonce?: number;
2192
+ value?: bigint;
2193
+ }): Promise<bigint>;
2194
+ /**
2195
+ * Simulate approve
2196
+ * Returns gas estimate and result without sending transaction
2197
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2198
+ */
2199
+ approve(spender: `0x${string}`, amount: bigint, options?: {
2200
+ accessList?: import("viem").AccessList;
2201
+ authorizationList?: import("viem").AuthorizationList;
2202
+ chain?: import("viem").Chain | null;
2203
+ dataSuffix?: `0x${string}`;
2204
+ gas?: bigint;
2205
+ gasPrice?: bigint;
2206
+ maxFeePerGas?: bigint;
2207
+ maxPriorityFeePerGas?: bigint;
2208
+ nonce?: number;
2209
+ value?: bigint;
2210
+ }): Promise<boolean>;
2211
+ /**
2212
+ * Simulate balanceOfUnderlying
2213
+ * Returns gas estimate and result without sending transaction
2214
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2215
+ */
2216
+ balanceOfUnderlying(owner: `0x${string}`, options?: {
2217
+ accessList?: import("viem").AccessList;
2218
+ authorizationList?: import("viem").AuthorizationList;
2219
+ chain?: import("viem").Chain | null;
2220
+ dataSuffix?: `0x${string}`;
2221
+ gas?: bigint;
2222
+ gasPrice?: bigint;
2223
+ maxFeePerGas?: bigint;
2224
+ maxPriorityFeePerGas?: bigint;
2225
+ nonce?: number;
2226
+ value?: bigint;
2227
+ }): Promise<bigint>;
2228
+ /**
2229
+ * Simulate borrow
2230
+ * Returns gas estimate and result without sending transaction
2231
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2232
+ */
2233
+ borrow(borrowAmount: bigint, options?: {
2234
+ accessList?: import("viem").AccessList;
2235
+ authorizationList?: import("viem").AuthorizationList;
2236
+ chain?: import("viem").Chain | null;
2237
+ dataSuffix?: `0x${string}`;
2238
+ gas?: bigint;
2239
+ gasPrice?: bigint;
2240
+ maxFeePerGas?: bigint;
2241
+ maxPriorityFeePerGas?: bigint;
2242
+ nonce?: number;
2243
+ value?: bigint;
2244
+ }): Promise<bigint>;
2245
+ /**
2246
+ * Simulate borrowBalanceCurrent
2247
+ * Returns gas estimate and result without sending transaction
2248
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2249
+ */
2250
+ borrowBalanceCurrent(account: `0x${string}`, options?: {
2251
+ accessList?: import("viem").AccessList;
2252
+ authorizationList?: import("viem").AuthorizationList;
2253
+ chain?: import("viem").Chain | null;
2254
+ dataSuffix?: `0x${string}`;
2255
+ gas?: bigint;
2256
+ gasPrice?: bigint;
2257
+ maxFeePerGas?: bigint;
2258
+ maxPriorityFeePerGas?: bigint;
2259
+ nonce?: number;
2260
+ value?: bigint;
2261
+ }): Promise<bigint>;
2262
+ /**
2263
+ * Simulate exchangeRateCurrent
2264
+ * Returns gas estimate and result without sending transaction
2265
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2266
+ */
2267
+ exchangeRateCurrent(options?: {
2268
+ accessList?: import("viem").AccessList;
2269
+ authorizationList?: import("viem").AuthorizationList;
2270
+ chain?: import("viem").Chain | null;
2271
+ dataSuffix?: `0x${string}`;
2272
+ gas?: bigint;
2273
+ gasPrice?: bigint;
2274
+ maxFeePerGas?: bigint;
2275
+ maxPriorityFeePerGas?: bigint;
2276
+ nonce?: number;
2277
+ value?: bigint;
2278
+ }): Promise<bigint>;
2279
+ /**
2280
+ * Simulate initialize
2281
+ * Returns gas estimate and result without sending transaction
2282
+ * Supports multiple overloads: (address, address, address, uint256, string, string, uint8), (address, address, uint256, string, string, uint8)
2283
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2284
+ */
2285
+ initialize(...args: any[]): Promise<any>;
2286
+ /**
2287
+ * Simulate liquidateBorrow
2288
+ * Returns gas estimate and result without sending transaction
2289
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2290
+ */
2291
+ liquidateBorrow(borrower: `0x${string}`, repayAmount: bigint, cTokenCollateral: `0x${string}`, options?: {
2292
+ accessList?: import("viem").AccessList;
2293
+ authorizationList?: import("viem").AuthorizationList;
2294
+ chain?: import("viem").Chain | null;
2295
+ dataSuffix?: `0x${string}`;
2296
+ gas?: bigint;
2297
+ gasPrice?: bigint;
2298
+ maxFeePerGas?: bigint;
2299
+ maxPriorityFeePerGas?: bigint;
2300
+ nonce?: number;
2301
+ value?: bigint;
2302
+ }): Promise<bigint>;
2303
+ /**
2304
+ * Simulate mint
2305
+ * Returns gas estimate and result without sending transaction
2306
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2307
+ */
2308
+ mint(mintAmount: bigint, options?: {
2309
+ accessList?: import("viem").AccessList;
2310
+ authorizationList?: import("viem").AuthorizationList;
2311
+ chain?: import("viem").Chain | null;
2312
+ dataSuffix?: `0x${string}`;
2313
+ gas?: bigint;
2314
+ gasPrice?: bigint;
2315
+ maxFeePerGas?: bigint;
2316
+ maxPriorityFeePerGas?: bigint;
2317
+ nonce?: number;
2318
+ value?: bigint;
2319
+ }): Promise<bigint>;
2320
+ /**
2321
+ * Simulate redeem
2322
+ * Returns gas estimate and result without sending transaction
2323
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2324
+ */
2325
+ redeem(redeemTokens: bigint, options?: {
2326
+ accessList?: import("viem").AccessList;
2327
+ authorizationList?: import("viem").AuthorizationList;
2328
+ chain?: import("viem").Chain | null;
2329
+ dataSuffix?: `0x${string}`;
2330
+ gas?: bigint;
2331
+ gasPrice?: bigint;
2332
+ maxFeePerGas?: bigint;
2333
+ maxPriorityFeePerGas?: bigint;
2334
+ nonce?: number;
2335
+ value?: bigint;
2336
+ }): Promise<bigint>;
2337
+ /**
2338
+ * Simulate redeemUnderlying
2339
+ * Returns gas estimate and result without sending transaction
2340
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2341
+ */
2342
+ redeemUnderlying(redeemAmount: bigint, options?: {
2343
+ accessList?: import("viem").AccessList;
2344
+ authorizationList?: import("viem").AuthorizationList;
2345
+ chain?: import("viem").Chain | null;
2346
+ dataSuffix?: `0x${string}`;
2347
+ gas?: bigint;
2348
+ gasPrice?: bigint;
2349
+ maxFeePerGas?: bigint;
2350
+ maxPriorityFeePerGas?: bigint;
2351
+ nonce?: number;
2352
+ value?: bigint;
2353
+ }): Promise<bigint>;
2354
+ /**
2355
+ * Simulate repayBorrow
2356
+ * Returns gas estimate and result without sending transaction
2357
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2358
+ */
2359
+ repayBorrow(repayAmount: bigint, options?: {
2360
+ accessList?: import("viem").AccessList;
2361
+ authorizationList?: import("viem").AuthorizationList;
2362
+ chain?: import("viem").Chain | null;
2363
+ dataSuffix?: `0x${string}`;
2364
+ gas?: bigint;
2365
+ gasPrice?: bigint;
2366
+ maxFeePerGas?: bigint;
2367
+ maxPriorityFeePerGas?: bigint;
2368
+ nonce?: number;
2369
+ value?: bigint;
2370
+ }): Promise<bigint>;
2371
+ /**
2372
+ * Simulate repayBorrowBehalf
2373
+ * Returns gas estimate and result without sending transaction
2374
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2375
+ */
2376
+ repayBorrowBehalf(borrower: `0x${string}`, repayAmount: bigint, options?: {
2377
+ accessList?: import("viem").AccessList;
2378
+ authorizationList?: import("viem").AuthorizationList;
2379
+ chain?: import("viem").Chain | null;
2380
+ dataSuffix?: `0x${string}`;
2381
+ gas?: bigint;
2382
+ gasPrice?: bigint;
2383
+ maxFeePerGas?: bigint;
2384
+ maxPriorityFeePerGas?: bigint;
2385
+ nonce?: number;
2386
+ value?: bigint;
2387
+ }): Promise<bigint>;
2388
+ /**
2389
+ * Simulate seize
2390
+ * Returns gas estimate and result without sending transaction
2391
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2392
+ */
2393
+ seize(liquidator: `0x${string}`, borrower: `0x${string}`, seizeTokens: bigint, options?: {
2394
+ accessList?: import("viem").AccessList;
2395
+ authorizationList?: import("viem").AuthorizationList;
2396
+ chain?: import("viem").Chain | null;
2397
+ dataSuffix?: `0x${string}`;
2398
+ gas?: bigint;
2399
+ gasPrice?: bigint;
2400
+ maxFeePerGas?: bigint;
2401
+ maxPriorityFeePerGas?: bigint;
2402
+ nonce?: number;
2403
+ value?: bigint;
2404
+ }): Promise<bigint>;
2405
+ /**
2406
+ * Simulate sweepToken
2407
+ * Returns gas estimate and result without sending transaction
2408
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2409
+ */
2410
+ sweepToken(token: `0x${string}`, options?: {
2411
+ accessList?: import("viem").AccessList;
2412
+ authorizationList?: import("viem").AuthorizationList;
2413
+ chain?: import("viem").Chain | null;
2414
+ dataSuffix?: `0x${string}`;
2415
+ gas?: bigint;
2416
+ gasPrice?: bigint;
2417
+ maxFeePerGas?: bigint;
2418
+ maxPriorityFeePerGas?: bigint;
2419
+ nonce?: number;
2420
+ value?: bigint;
2421
+ }): Promise<void>;
2422
+ /**
2423
+ * Simulate totalBorrowsCurrent
2424
+ * Returns gas estimate and result without sending transaction
2425
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2426
+ */
2427
+ totalBorrowsCurrent(options?: {
2428
+ accessList?: import("viem").AccessList;
2429
+ authorizationList?: import("viem").AuthorizationList;
2430
+ chain?: import("viem").Chain | null;
2431
+ dataSuffix?: `0x${string}`;
2432
+ gas?: bigint;
2433
+ gasPrice?: bigint;
2434
+ maxFeePerGas?: bigint;
2435
+ maxPriorityFeePerGas?: bigint;
2436
+ nonce?: number;
2437
+ value?: bigint;
2438
+ }): Promise<bigint>;
2439
+ /**
2440
+ * Simulate transfer
2441
+ * Returns gas estimate and result without sending transaction
2442
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2443
+ */
2444
+ transfer(dst: `0x${string}`, amount: bigint, options?: {
2445
+ accessList?: import("viem").AccessList;
2446
+ authorizationList?: import("viem").AuthorizationList;
2447
+ chain?: import("viem").Chain | null;
2448
+ dataSuffix?: `0x${string}`;
2449
+ gas?: bigint;
2450
+ gasPrice?: bigint;
2451
+ maxFeePerGas?: bigint;
2452
+ maxPriorityFeePerGas?: bigint;
2453
+ nonce?: number;
2454
+ value?: bigint;
2455
+ }): Promise<boolean>;
2456
+ /**
2457
+ * Simulate transferFrom
2458
+ * Returns gas estimate and result without sending transaction
2459
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2460
+ */
2461
+ transferFrom(src: `0x${string}`, dst: `0x${string}`, amount: bigint, options?: {
2462
+ accessList?: import("viem").AccessList;
2463
+ authorizationList?: import("viem").AuthorizationList;
2464
+ chain?: import("viem").Chain | null;
2465
+ dataSuffix?: `0x${string}`;
2466
+ gas?: bigint;
2467
+ gasPrice?: bigint;
2468
+ maxFeePerGas?: bigint;
2469
+ maxPriorityFeePerGas?: bigint;
2470
+ nonce?: number;
2471
+ value?: bigint;
2472
+ }): Promise<boolean>;
2473
+ };
2474
+ /**
2475
+ * Watch contract events
2476
+ *
2477
+ * @example
2478
+ * // Watch all Transfer events
2479
+ * const unwatch = contract.watch.Transfer((event) => {
2480
+ * console.log('Transfer:', event);
2481
+ * });
2482
+ *
2483
+ * // Stop watching
2484
+ * unwatch();
2485
+ */
2486
+ get watch(): {
2487
+ /**
2488
+ * Watch AccrueInterest events
2489
+ * @param callback Function to call when event is emitted
2490
+ * @param filter Optional filter for indexed parameters
2491
+ * @returns Unwatch function to stop listening
2492
+ */
2493
+ AccrueInterest: (callback: (event: {
2494
+ cashPrior: bigint;
2495
+ interestAccumulated: bigint;
2496
+ borrowIndex: bigint;
2497
+ totalBorrows: bigint;
2498
+ }) => void) => () => void;
2499
+ /**
2500
+ * Watch Approval events
2501
+ * @param callback Function to call when event is emitted
2502
+ * @param filter Optional filter for indexed parameters
2503
+ * @returns Unwatch function to stop listening
2504
+ */
2505
+ Approval: (callback: (event: {
2506
+ owner: `0x${string}`;
2507
+ spender: `0x${string}`;
2508
+ amount: bigint;
2509
+ }) => void, filter?: {
2510
+ owner: `0x${string}`;
2511
+ spender: `0x${string}`;
2512
+ }) => () => void;
2513
+ /**
2514
+ * Watch Borrow events
2515
+ * @param callback Function to call when event is emitted
2516
+ * @param filter Optional filter for indexed parameters
2517
+ * @returns Unwatch function to stop listening
2518
+ */
2519
+ Borrow: (callback: (event: {
2520
+ borrower: `0x${string}`;
2521
+ borrowAmount: bigint;
2522
+ accountBorrows: bigint;
2523
+ totalBorrows: bigint;
2524
+ }) => void) => () => void;
2525
+ /**
2526
+ * Watch LiquidateBorrow events
2527
+ * @param callback Function to call when event is emitted
2528
+ * @param filter Optional filter for indexed parameters
2529
+ * @returns Unwatch function to stop listening
2530
+ */
2531
+ LiquidateBorrow: (callback: (event: {
2532
+ liquidator: `0x${string}`;
2533
+ borrower: `0x${string}`;
2534
+ repayAmount: bigint;
2535
+ cTokenCollateral: `0x${string}`;
2536
+ seizeTokens: bigint;
2537
+ }) => void) => () => void;
2538
+ /**
2539
+ * Watch Mint events
2540
+ * @param callback Function to call when event is emitted
2541
+ * @param filter Optional filter for indexed parameters
2542
+ * @returns Unwatch function to stop listening
2543
+ */
2544
+ Mint: (callback: (event: {
2545
+ minter: `0x${string}`;
2546
+ mintAmount: bigint;
2547
+ mintTokens: bigint;
2548
+ }) => void) => () => void;
2549
+ /**
2550
+ * Watch NewAdmin events
2551
+ * @param callback Function to call when event is emitted
2552
+ * @param filter Optional filter for indexed parameters
2553
+ * @returns Unwatch function to stop listening
2554
+ */
2555
+ NewAdmin: (callback: (event: {
2556
+ oldAdmin: `0x${string}`;
2557
+ newAdmin: `0x${string}`;
2558
+ }) => void) => () => void;
2559
+ /**
2560
+ * Watch NewComptroller events
2561
+ * @param callback Function to call when event is emitted
2562
+ * @param filter Optional filter for indexed parameters
2563
+ * @returns Unwatch function to stop listening
2564
+ */
2565
+ NewComptroller: (callback: (event: {
2566
+ oldComptroller: `0x${string}`;
2567
+ newComptroller: `0x${string}`;
2568
+ }) => void) => () => void;
2569
+ /**
2570
+ * Watch NewMarketInterestRateModel events
2571
+ * @param callback Function to call when event is emitted
2572
+ * @param filter Optional filter for indexed parameters
2573
+ * @returns Unwatch function to stop listening
2574
+ */
2575
+ NewMarketInterestRateModel: (callback: (event: {
2576
+ oldInterestRateModel: `0x${string}`;
2577
+ newInterestRateModel: `0x${string}`;
2578
+ }) => void) => () => void;
2579
+ /**
2580
+ * Watch NewPendingAdmin events
2581
+ * @param callback Function to call when event is emitted
2582
+ * @param filter Optional filter for indexed parameters
2583
+ * @returns Unwatch function to stop listening
2584
+ */
2585
+ NewPendingAdmin: (callback: (event: {
2586
+ oldPendingAdmin: `0x${string}`;
2587
+ newPendingAdmin: `0x${string}`;
2588
+ }) => void) => () => void;
2589
+ /**
2590
+ * Watch NewReserveFactor events
2591
+ * @param callback Function to call when event is emitted
2592
+ * @param filter Optional filter for indexed parameters
2593
+ * @returns Unwatch function to stop listening
2594
+ */
2595
+ NewReserveFactor: (callback: (event: {
2596
+ oldReserveFactorMantissa: bigint;
2597
+ newReserveFactorMantissa: bigint;
2598
+ }) => void) => () => void;
2599
+ /**
2600
+ * Watch NewWhitelist events
2601
+ * @param callback Function to call when event is emitted
2602
+ * @param filter Optional filter for indexed parameters
2603
+ * @returns Unwatch function to stop listening
2604
+ */
2605
+ NewWhitelist: (callback: (event: {
2606
+ oldWhitelist: `0x${string}`;
2607
+ newWhitelist: `0x${string}`;
2608
+ }) => void) => () => void;
2609
+ /**
2610
+ * Watch Redeem events
2611
+ * @param callback Function to call when event is emitted
2612
+ * @param filter Optional filter for indexed parameters
2613
+ * @returns Unwatch function to stop listening
2614
+ */
2615
+ Redeem: (callback: (event: {
2616
+ redeemer: `0x${string}`;
2617
+ redeemAmount: bigint;
2618
+ redeemTokens: bigint;
2619
+ }) => void) => () => void;
2620
+ /**
2621
+ * Watch RepayBorrow events
2622
+ * @param callback Function to call when event is emitted
2623
+ * @param filter Optional filter for indexed parameters
2624
+ * @returns Unwatch function to stop listening
2625
+ */
2626
+ RepayBorrow: (callback: (event: {
2627
+ payer: `0x${string}`;
2628
+ borrower: `0x${string}`;
2629
+ repayAmount: bigint;
2630
+ accountBorrows: bigint;
2631
+ totalBorrows: bigint;
2632
+ }) => void) => () => void;
2633
+ /**
2634
+ * Watch ReservesAdded events
2635
+ * @param callback Function to call when event is emitted
2636
+ * @param filter Optional filter for indexed parameters
2637
+ * @returns Unwatch function to stop listening
2638
+ */
2639
+ ReservesAdded: (callback: (event: {
2640
+ benefactor: `0x${string}`;
2641
+ addAmount: bigint;
2642
+ newTotalReserves: bigint;
2643
+ }) => void) => () => void;
2644
+ /**
2645
+ * Watch ReservesReduced events
2646
+ * @param callback Function to call when event is emitted
2647
+ * @param filter Optional filter for indexed parameters
2648
+ * @returns Unwatch function to stop listening
2649
+ */
2650
+ ReservesReduced: (callback: (event: {
2651
+ admin: `0x${string}`;
2652
+ reduceAmount: bigint;
2653
+ newTotalReserves: bigint;
2654
+ }) => void) => () => void;
2655
+ /**
2656
+ * Watch Transfer events
2657
+ * @param callback Function to call when event is emitted
2658
+ * @param filter Optional filter for indexed parameters
2659
+ * @returns Unwatch function to stop listening
2660
+ */
2661
+ Transfer: (callback: (event: {
2662
+ from: `0x${string}`;
2663
+ to: `0x${string}`;
2664
+ amount: bigint;
2665
+ }) => void, filter?: {
2666
+ from: `0x${string}`;
2667
+ to: `0x${string}`;
2668
+ }) => () => void;
2669
+ };
2670
+ }