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