@gitmyabi/yspendle-lpt 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,2181 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+ /**
5
+ * PendleLPCompounder_json ABI
6
+ *
7
+ * This ABI is typed using viem's type system for full type safety.
8
+ */
9
+ export const PendleLPCompounder_jsonAbi = [
10
+ {
11
+ "inputs": [
12
+ {
13
+ "internalType": "address",
14
+ "name": "_asset",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "internalType": "address",
19
+ "name": "_pendleStaking",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "internalType": "address",
24
+ "name": "_PENDLE",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "internalType": "uint24",
29
+ "name": "_feePENDLEtoBase",
30
+ "type": "uint24"
31
+ },
32
+ {
33
+ "internalType": "address",
34
+ "name": "_base",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "internalType": "uint24",
39
+ "name": "_feeBaseToTargetToken",
40
+ "type": "uint24"
41
+ },
42
+ {
43
+ "internalType": "address",
44
+ "name": "_targetToken",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "internalType": "address",
49
+ "name": "_GOV",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "internalType": "string",
54
+ "name": "_name",
55
+ "type": "string"
56
+ }
57
+ ],
58
+ "stateMutability": "nonpayable",
59
+ "type": "constructor"
60
+ },
61
+ {
62
+ "stateMutability": "nonpayable",
63
+ "type": "fallback"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "GOV",
68
+ "outputs": [
69
+ {
70
+ "internalType": "address",
71
+ "name": "",
72
+ "type": "address"
73
+ }
74
+ ],
75
+ "stateMutability": "view",
76
+ "type": "function"
77
+ },
78
+ {
79
+ "inputs": [
80
+ {
81
+ "internalType": "address",
82
+ "name": "_rewardToken",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "internalType": "uint24",
87
+ "name": "_feeRewardTokenToBase",
88
+ "type": "uint24"
89
+ }
90
+ ],
91
+ "name": "addReward",
92
+ "outputs": [],
93
+ "stateMutability": "nonpayable",
94
+ "type": "function"
95
+ },
96
+ {
97
+ "inputs": [],
98
+ "name": "auction",
99
+ "outputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "stateMutability": "view",
107
+ "type": "function"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "auctionFactory",
112
+ "outputs": [
113
+ {
114
+ "internalType": "address",
115
+ "name": "",
116
+ "type": "address"
117
+ }
118
+ ],
119
+ "stateMutability": "view",
120
+ "type": "function"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "_token",
127
+ "type": "address"
128
+ }
129
+ ],
130
+ "name": "auctionKicked",
131
+ "outputs": [
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "",
135
+ "type": "uint256"
136
+ }
137
+ ],
138
+ "stateMutability": "nonpayable",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "autocompound",
144
+ "outputs": [
145
+ {
146
+ "internalType": "bool",
147
+ "name": "",
148
+ "type": "bool"
149
+ }
150
+ ],
151
+ "stateMutability": "view",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "internalType": "address",
158
+ "name": "",
159
+ "type": "address"
160
+ }
161
+ ],
162
+ "name": "availableDepositLimit",
163
+ "outputs": [
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "",
167
+ "type": "uint256"
168
+ }
169
+ ],
170
+ "stateMutability": "view",
171
+ "type": "function"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "address",
177
+ "name": "",
178
+ "type": "address"
179
+ }
180
+ ],
181
+ "name": "availableWithdrawLimit",
182
+ "outputs": [
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "",
186
+ "type": "uint256"
187
+ }
188
+ ],
189
+ "stateMutability": "view",
190
+ "type": "function"
191
+ },
192
+ {
193
+ "inputs": [],
194
+ "name": "balanceAsset",
195
+ "outputs": [
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "stateMutability": "view",
203
+ "type": "function"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "balanceStaked",
208
+ "outputs": [
209
+ {
210
+ "internalType": "uint256",
211
+ "name": "",
212
+ "type": "uint256"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "base",
221
+ "outputs": [
222
+ {
223
+ "internalType": "address",
224
+ "name": "",
225
+ "type": "address"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [],
233
+ "name": "claimRewards",
234
+ "outputs": [],
235
+ "stateMutability": "nonpayable",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [
240
+ {
241
+ "internalType": "uint256",
242
+ "name": "_amount",
243
+ "type": "uint256"
244
+ }
245
+ ],
246
+ "name": "deployFunds",
247
+ "outputs": [],
248
+ "stateMutability": "nonpayable",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [],
253
+ "name": "doHealthCheck",
254
+ "outputs": [
255
+ {
256
+ "internalType": "bool",
257
+ "name": "",
258
+ "type": "bool"
259
+ }
260
+ ],
261
+ "stateMutability": "view",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "_amount",
269
+ "type": "uint256"
270
+ }
271
+ ],
272
+ "name": "freeFunds",
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [],
279
+ "name": "harvestAndReport",
280
+ "outputs": [
281
+ {
282
+ "internalType": "uint256",
283
+ "name": "_totalAssets",
284
+ "type": "uint256"
285
+ }
286
+ ],
287
+ "stateMutability": "nonpayable",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "isExpired",
293
+ "outputs": [
294
+ {
295
+ "internalType": "bool",
296
+ "name": "",
297
+ "type": "bool"
298
+ }
299
+ ],
300
+ "stateMutability": "view",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [
305
+ {
306
+ "internalType": "address",
307
+ "name": "_token",
308
+ "type": "address"
309
+ }
310
+ ],
311
+ "name": "kickable",
312
+ "outputs": [
313
+ {
314
+ "internalType": "uint256",
315
+ "name": "",
316
+ "type": "uint256"
317
+ }
318
+ ],
319
+ "stateMutability": "view",
320
+ "type": "function"
321
+ },
322
+ {
323
+ "inputs": [],
324
+ "name": "lossLimitRatio",
325
+ "outputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "stateMutability": "view",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "minAmountToSell",
338
+ "outputs": [
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "stateMutability": "view",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "address",
352
+ "name": "",
353
+ "type": "address"
354
+ }
355
+ ],
356
+ "name": "minAmountToSellMapping",
357
+ "outputs": [
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [
369
+ {
370
+ "internalType": "address",
371
+ "name": "_token",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "internalType": "uint256",
376
+ "name": "_amountTaken",
377
+ "type": "uint256"
378
+ },
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "_amountPayed",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "name": "postTake",
386
+ "outputs": [],
387
+ "stateMutability": "nonpayable",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ {
393
+ "internalType": "address",
394
+ "name": "_token",
395
+ "type": "address"
396
+ },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "_amountToTake",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "_amountToPay",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "name": "preTake",
409
+ "outputs": [],
410
+ "stateMutability": "nonpayable",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [],
415
+ "name": "profitLimitRatio",
416
+ "outputs": [
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "",
420
+ "type": "uint256"
421
+ }
422
+ ],
423
+ "stateMutability": "view",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ {
429
+ "internalType": "address",
430
+ "name": "_rewardToken",
431
+ "type": "address"
432
+ }
433
+ ],
434
+ "name": "removeReward",
435
+ "outputs": [],
436
+ "stateMutability": "nonpayable",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "inputs": [],
441
+ "name": "removeTradeFactory",
442
+ "outputs": [],
443
+ "stateMutability": "nonpayable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [],
448
+ "name": "rewardTokens",
449
+ "outputs": [
450
+ {
451
+ "internalType": "address[]",
452
+ "name": "",
453
+ "type": "address[]"
454
+ }
455
+ ],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
459
+ {
460
+ "inputs": [],
461
+ "name": "router",
462
+ "outputs": [
463
+ {
464
+ "internalType": "address",
465
+ "name": "",
466
+ "type": "address"
467
+ }
468
+ ],
469
+ "stateMutability": "view",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [],
474
+ "name": "routerParams",
475
+ "outputs": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "guessMin",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "internalType": "uint256",
483
+ "name": "guessMax",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "internalType": "uint256",
488
+ "name": "guessOffchain",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "maxIteration",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "eps",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "stateMutability": "view",
503
+ "type": "function"
504
+ },
505
+ {
506
+ "inputs": [
507
+ {
508
+ "internalType": "address",
509
+ "name": "_auction",
510
+ "type": "address"
511
+ }
512
+ ],
513
+ "name": "setAuction",
514
+ "outputs": [],
515
+ "stateMutability": "nonpayable",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "bool",
522
+ "name": "_autocompound",
523
+ "type": "bool"
524
+ }
525
+ ],
526
+ "name": "setAutocompound",
527
+ "outputs": [],
528
+ "stateMutability": "nonpayable",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "bool",
535
+ "name": "_doHealthCheck",
536
+ "type": "bool"
537
+ }
538
+ ],
539
+ "name": "setDoHealthCheck",
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "_newLossLimitRatio",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "name": "setLossLimitRatio",
553
+ "outputs": [],
554
+ "stateMutability": "nonpayable",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [
559
+ {
560
+ "internalType": "address",
561
+ "name": "_token",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "_amount",
567
+ "type": "uint256"
568
+ }
569
+ ],
570
+ "name": "setMinAmountToSellMapping",
571
+ "outputs": [],
572
+ "stateMutability": "nonpayable",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "_newProfitLimitRatio",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "name": "setProfitLimitRatio",
584
+ "outputs": [],
585
+ "stateMutability": "nonpayable",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "_guessMin",
593
+ "type": "uint256"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "_guessMax",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "_maxIteration",
603
+ "type": "uint256"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "_eps",
608
+ "type": "uint256"
609
+ }
610
+ ],
611
+ "name": "setRouterParams",
612
+ "outputs": [],
613
+ "stateMutability": "nonpayable",
614
+ "type": "function"
615
+ },
616
+ {
617
+ "inputs": [
618
+ {
619
+ "internalType": "address",
620
+ "name": "_tradeFactory",
621
+ "type": "address"
622
+ },
623
+ {
624
+ "internalType": "bool",
625
+ "name": "_useTradeFactory",
626
+ "type": "bool"
627
+ }
628
+ ],
629
+ "name": "setTradeFactory",
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "internalType": "address",
638
+ "name": "_token0",
639
+ "type": "address"
640
+ },
641
+ {
642
+ "internalType": "address",
643
+ "name": "_token1",
644
+ "type": "address"
645
+ },
646
+ {
647
+ "internalType": "uint24",
648
+ "name": "_fee",
649
+ "type": "uint24"
650
+ }
651
+ ],
652
+ "name": "setUniFees",
653
+ "outputs": [],
654
+ "stateMutability": "nonpayable",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [
659
+ {
660
+ "internalType": "bool",
661
+ "name": "_useAuction",
662
+ "type": "bool"
663
+ }
664
+ ],
665
+ "name": "setUseAuction",
666
+ "outputs": [],
667
+ "stateMutability": "nonpayable",
668
+ "type": "function"
669
+ },
670
+ {
671
+ "inputs": [
672
+ {
673
+ "internalType": "bool",
674
+ "name": "_useTradeFactory",
675
+ "type": "bool"
676
+ }
677
+ ],
678
+ "name": "setUseTradeFactory",
679
+ "outputs": [],
680
+ "stateMutability": "nonpayable",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "_amount",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "name": "shutdownWithdraw",
692
+ "outputs": [],
693
+ "stateMutability": "nonpayable",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [
698
+ {
699
+ "internalType": "address",
700
+ "name": "_token",
701
+ "type": "address"
702
+ }
703
+ ],
704
+ "name": "sweep",
705
+ "outputs": [],
706
+ "stateMutability": "nonpayable",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [],
711
+ "name": "targetToken",
712
+ "outputs": [
713
+ {
714
+ "internalType": "address",
715
+ "name": "",
716
+ "type": "address"
717
+ }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ {
725
+ "internalType": "uint256",
726
+ "name": "_totalIdle",
727
+ "type": "uint256"
728
+ }
729
+ ],
730
+ "name": "tendThis",
731
+ "outputs": [],
732
+ "stateMutability": "nonpayable",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [],
737
+ "name": "tendTrigger",
738
+ "outputs": [
739
+ {
740
+ "internalType": "bool",
741
+ "name": "",
742
+ "type": "bool"
743
+ },
744
+ {
745
+ "internalType": "bytes",
746
+ "name": "",
747
+ "type": "bytes"
748
+ }
749
+ ],
750
+ "stateMutability": "view",
751
+ "type": "function"
752
+ },
753
+ {
754
+ "inputs": [],
755
+ "name": "tokenizedStrategyAddress",
756
+ "outputs": [
757
+ {
758
+ "internalType": "address",
759
+ "name": "",
760
+ "type": "address"
761
+ }
762
+ ],
763
+ "stateMutability": "view",
764
+ "type": "function"
765
+ },
766
+ {
767
+ "inputs": [],
768
+ "name": "tradeFactory",
769
+ "outputs": [
770
+ {
771
+ "internalType": "address",
772
+ "name": "",
773
+ "type": "address"
774
+ }
775
+ ],
776
+ "stateMutability": "view",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [
781
+ {
782
+ "internalType": "address",
783
+ "name": "",
784
+ "type": "address"
785
+ },
786
+ {
787
+ "internalType": "address",
788
+ "name": "",
789
+ "type": "address"
790
+ }
791
+ ],
792
+ "name": "uniFees",
793
+ "outputs": [
794
+ {
795
+ "internalType": "uint24",
796
+ "name": "",
797
+ "type": "uint24"
798
+ }
799
+ ],
800
+ "stateMutability": "view",
801
+ "type": "function"
802
+ },
803
+ {
804
+ "inputs": [],
805
+ "name": "unwrapTargetTokenToSY",
806
+ "outputs": [
807
+ {
808
+ "internalType": "bool",
809
+ "name": "",
810
+ "type": "bool"
811
+ }
812
+ ],
813
+ "stateMutability": "view",
814
+ "type": "function"
815
+ },
816
+ {
817
+ "inputs": [],
818
+ "name": "useAuction",
819
+ "outputs": [
820
+ {
821
+ "internalType": "bool",
822
+ "name": "",
823
+ "type": "bool"
824
+ }
825
+ ],
826
+ "stateMutability": "view",
827
+ "type": "function"
828
+ },
829
+ {
830
+ "inputs": [],
831
+ "name": "useTradeFactory",
832
+ "outputs": [
833
+ {
834
+ "internalType": "bool",
835
+ "name": "",
836
+ "type": "bool"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "stateMutability": "payable",
844
+ "type": "receive"
845
+ }
846
+ ] as const satisfies Abi;
847
+
848
+ /**
849
+ * Type-safe ABI for PendleLPCompounder_json
850
+ */
851
+ export type PendleLPCompounder_jsonAbi = typeof PendleLPCompounder_jsonAbi;
852
+
853
+ /**
854
+ * Contract instance type for PendleLPCompounder_json
855
+ */
856
+ // Use any for contract type to avoid complex viem type issues
857
+ // The runtime behavior is type-safe through viem's ABI typing
858
+ export type PendleLPCompounder_jsonContract = any;
859
+
860
+ /**
861
+ * PendleLPCompounder_json Contract Class
862
+ *
863
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
864
+ *
865
+ * @example
866
+ * ```typescript
867
+ * import { createPublicClient, createWalletClient, http } from 'viem';
868
+ * import { mainnet } from 'viem/chains';
869
+ * import { PendleLPCompounder_json } from 'PendleLPCompounder_json';
870
+ *
871
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
872
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
873
+ *
874
+ * const contract = new PendleLPCompounder_json('0x...', { publicClient, walletClient });
875
+ *
876
+ * // Read functions
877
+ * const result = await contract.balanceOf('0x...');
878
+ *
879
+ * // Write functions
880
+ * const hash = await contract.transfer('0x...', 1000n);
881
+ *
882
+ * // Simulate transactions (dry-run)
883
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
884
+ * console.log('Gas estimate:', simulation.request.gas);
885
+ *
886
+ * // Watch events
887
+ * const unwatch = contract.watch.Transfer((event) => {
888
+ * console.log('Transfer event:', event);
889
+ * });
890
+ * ```
891
+ */
892
+ export class PendleLPCompounder_json {
893
+ private contract: PendleLPCompounder_jsonContract;
894
+ private contractAddress: Address;
895
+ private publicClient: PublicClient;
896
+
897
+ constructor(
898
+ address: Address,
899
+ clients: {
900
+ publicClient: PublicClient;
901
+ walletClient?: WalletClient;
902
+ }
903
+ ) {
904
+ this.contractAddress = address;
905
+ this.publicClient = clients.publicClient;
906
+ this.contract = getContract({
907
+ address,
908
+ abi: PendleLPCompounder_jsonAbi,
909
+ client: {
910
+ public: clients.publicClient,
911
+ wallet: clients.walletClient,
912
+ },
913
+ });
914
+ }
915
+
916
+ /**
917
+ * Get the contract address
918
+ */
919
+ get address(): Address {
920
+ return this.contractAddress;
921
+ }
922
+
923
+ /**
924
+ * Get the underlying viem contract instance
925
+ */
926
+ getContract(): PendleLPCompounder_jsonContract {
927
+ return this.contract;
928
+ }
929
+
930
+ /**
931
+ * GOV
932
+ * view
933
+ */
934
+ async GOV(): Promise<`0x${string}`> {
935
+ return this.contract.read.GOV() as Promise<`0x${string}`>;
936
+ }
937
+
938
+ /**
939
+ * auction
940
+ * view
941
+ */
942
+ async auction(): Promise<`0x${string}`> {
943
+ return this.contract.read.auction() as Promise<`0x${string}`>;
944
+ }
945
+
946
+ /**
947
+ * auctionFactory
948
+ * view
949
+ */
950
+ async auctionFactory(): Promise<`0x${string}`> {
951
+ return this.contract.read.auctionFactory() as Promise<`0x${string}`>;
952
+ }
953
+
954
+ /**
955
+ * autocompound
956
+ * view
957
+ */
958
+ async autocompound(): Promise<boolean> {
959
+ return this.contract.read.autocompound() as Promise<boolean>;
960
+ }
961
+
962
+ /**
963
+ * availableDepositLimit
964
+ * view
965
+ */
966
+ async availableDepositLimit(arg0: `0x${string}`): Promise<bigint> {
967
+ return this.contract.read.availableDepositLimit([arg0] as const) as Promise<bigint>;
968
+ }
969
+
970
+ /**
971
+ * availableWithdrawLimit
972
+ * view
973
+ */
974
+ async availableWithdrawLimit(arg0: `0x${string}`): Promise<bigint> {
975
+ return this.contract.read.availableWithdrawLimit([arg0] as const) as Promise<bigint>;
976
+ }
977
+
978
+ /**
979
+ * balanceAsset
980
+ * view
981
+ */
982
+ async balanceAsset(): Promise<bigint> {
983
+ return this.contract.read.balanceAsset() as Promise<bigint>;
984
+ }
985
+
986
+ /**
987
+ * balanceStaked
988
+ * view
989
+ */
990
+ async balanceStaked(): Promise<bigint> {
991
+ return this.contract.read.balanceStaked() as Promise<bigint>;
992
+ }
993
+
994
+ /**
995
+ * base
996
+ * view
997
+ */
998
+ async base(): Promise<`0x${string}`> {
999
+ return this.contract.read.base() as Promise<`0x${string}`>;
1000
+ }
1001
+
1002
+ /**
1003
+ * doHealthCheck
1004
+ * view
1005
+ */
1006
+ async doHealthCheck(): Promise<boolean> {
1007
+ return this.contract.read.doHealthCheck() as Promise<boolean>;
1008
+ }
1009
+
1010
+ /**
1011
+ * isExpired
1012
+ * view
1013
+ */
1014
+ async isExpired(): Promise<boolean> {
1015
+ return this.contract.read.isExpired() as Promise<boolean>;
1016
+ }
1017
+
1018
+ /**
1019
+ * kickable
1020
+ * view
1021
+ */
1022
+ async kickable(_token: `0x${string}`): Promise<bigint> {
1023
+ return this.contract.read.kickable([_token] as const) as Promise<bigint>;
1024
+ }
1025
+
1026
+ /**
1027
+ * lossLimitRatio
1028
+ * view
1029
+ */
1030
+ async lossLimitRatio(): Promise<bigint> {
1031
+ return this.contract.read.lossLimitRatio() as Promise<bigint>;
1032
+ }
1033
+
1034
+ /**
1035
+ * minAmountToSell
1036
+ * view
1037
+ */
1038
+ async minAmountToSell(): Promise<bigint> {
1039
+ return this.contract.read.minAmountToSell() as Promise<bigint>;
1040
+ }
1041
+
1042
+ /**
1043
+ * minAmountToSellMapping
1044
+ * view
1045
+ */
1046
+ async minAmountToSellMapping(arg0: `0x${string}`): Promise<bigint> {
1047
+ return this.contract.read.minAmountToSellMapping([arg0] as const) as Promise<bigint>;
1048
+ }
1049
+
1050
+ /**
1051
+ * profitLimitRatio
1052
+ * view
1053
+ */
1054
+ async profitLimitRatio(): Promise<bigint> {
1055
+ return this.contract.read.profitLimitRatio() as Promise<bigint>;
1056
+ }
1057
+
1058
+ /**
1059
+ * rewardTokens
1060
+ * view
1061
+ */
1062
+ async rewardTokens(): Promise<`0x${string}`[]> {
1063
+ return this.contract.read.rewardTokens() as Promise<`0x${string}`[]>;
1064
+ }
1065
+
1066
+ /**
1067
+ * router
1068
+ * view
1069
+ */
1070
+ async router(): Promise<`0x${string}`> {
1071
+ return this.contract.read.router() as Promise<`0x${string}`>;
1072
+ }
1073
+
1074
+ /**
1075
+ * routerParams
1076
+ * view
1077
+ */
1078
+ async routerParams(): Promise<[bigint, bigint, bigint, bigint, bigint]> {
1079
+ return this.contract.read.routerParams() as Promise<[bigint, bigint, bigint, bigint, bigint]>;
1080
+ }
1081
+
1082
+ /**
1083
+ * targetToken
1084
+ * view
1085
+ */
1086
+ async targetToken(): Promise<`0x${string}`> {
1087
+ return this.contract.read.targetToken() as Promise<`0x${string}`>;
1088
+ }
1089
+
1090
+ /**
1091
+ * tendTrigger
1092
+ * view
1093
+ */
1094
+ async tendTrigger(): Promise<[boolean, `0x${string}`]> {
1095
+ return this.contract.read.tendTrigger() as Promise<[boolean, `0x${string}`]>;
1096
+ }
1097
+
1098
+ /**
1099
+ * tokenizedStrategyAddress
1100
+ * view
1101
+ */
1102
+ async tokenizedStrategyAddress(): Promise<`0x${string}`> {
1103
+ return this.contract.read.tokenizedStrategyAddress() as Promise<`0x${string}`>;
1104
+ }
1105
+
1106
+ /**
1107
+ * tradeFactory
1108
+ * view
1109
+ */
1110
+ async tradeFactory(): Promise<`0x${string}`> {
1111
+ return this.contract.read.tradeFactory() as Promise<`0x${string}`>;
1112
+ }
1113
+
1114
+ /**
1115
+ * uniFees
1116
+ * view
1117
+ */
1118
+ async uniFees(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
1119
+ return this.contract.read.uniFees([arg0, arg1] as const) as Promise<bigint>;
1120
+ }
1121
+
1122
+ /**
1123
+ * unwrapTargetTokenToSY
1124
+ * view
1125
+ */
1126
+ async unwrapTargetTokenToSY(): Promise<boolean> {
1127
+ return this.contract.read.unwrapTargetTokenToSY() as Promise<boolean>;
1128
+ }
1129
+
1130
+ /**
1131
+ * useAuction
1132
+ * view
1133
+ */
1134
+ async useAuction(): Promise<boolean> {
1135
+ return this.contract.read.useAuction() as Promise<boolean>;
1136
+ }
1137
+
1138
+ /**
1139
+ * useTradeFactory
1140
+ * view
1141
+ */
1142
+ async useTradeFactory(): Promise<boolean> {
1143
+ return this.contract.read.useTradeFactory() as Promise<boolean>;
1144
+ }
1145
+
1146
+ /**
1147
+ * addReward
1148
+ * nonpayable
1149
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1150
+ */
1151
+ async addReward(_rewardToken: `0x${string}`, _feeRewardTokenToBase: bigint, options?: {
1152
+ accessList?: import('viem').AccessList;
1153
+ authorizationList?: import('viem').AuthorizationList;
1154
+ chain?: import('viem').Chain | null;
1155
+ dataSuffix?: `0x${string}`;
1156
+ gas?: bigint;
1157
+ gasPrice?: bigint;
1158
+ maxFeePerGas?: bigint;
1159
+ maxPriorityFeePerGas?: bigint;
1160
+ nonce?: number;
1161
+ value?: bigint;
1162
+ }): Promise<`0x${string}`> {
1163
+ if (!this.contract.write) {
1164
+ throw new Error('Wallet client is required for write operations');
1165
+ }
1166
+ return this.contract.write.addReward([_rewardToken, _feeRewardTokenToBase] as const, options) as Promise<`0x${string}`>;
1167
+ }
1168
+
1169
+ /**
1170
+ * auctionKicked
1171
+ * nonpayable
1172
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1173
+ */
1174
+ async auctionKicked(_token: `0x${string}`, options?: {
1175
+ accessList?: import('viem').AccessList;
1176
+ authorizationList?: import('viem').AuthorizationList;
1177
+ chain?: import('viem').Chain | null;
1178
+ dataSuffix?: `0x${string}`;
1179
+ gas?: bigint;
1180
+ gasPrice?: bigint;
1181
+ maxFeePerGas?: bigint;
1182
+ maxPriorityFeePerGas?: bigint;
1183
+ nonce?: number;
1184
+ value?: bigint;
1185
+ }): Promise<`0x${string}`> {
1186
+ if (!this.contract.write) {
1187
+ throw new Error('Wallet client is required for write operations');
1188
+ }
1189
+ return this.contract.write.auctionKicked([_token] as const, options) as Promise<`0x${string}`>;
1190
+ }
1191
+
1192
+ /**
1193
+ * claimRewards
1194
+ * nonpayable
1195
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1196
+ */
1197
+ async claimRewards(options?: {
1198
+ accessList?: import('viem').AccessList;
1199
+ authorizationList?: import('viem').AuthorizationList;
1200
+ chain?: import('viem').Chain | null;
1201
+ dataSuffix?: `0x${string}`;
1202
+ gas?: bigint;
1203
+ gasPrice?: bigint;
1204
+ maxFeePerGas?: bigint;
1205
+ maxPriorityFeePerGas?: bigint;
1206
+ nonce?: number;
1207
+ value?: bigint;
1208
+ }): Promise<`0x${string}`> {
1209
+ if (!this.contract.write) {
1210
+ throw new Error('Wallet client is required for write operations');
1211
+ }
1212
+ return this.contract.write.claimRewards(options) as Promise<`0x${string}`>;
1213
+ }
1214
+
1215
+ /**
1216
+ * deployFunds
1217
+ * nonpayable
1218
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1219
+ */
1220
+ async deployFunds(_amount: bigint, options?: {
1221
+ accessList?: import('viem').AccessList;
1222
+ authorizationList?: import('viem').AuthorizationList;
1223
+ chain?: import('viem').Chain | null;
1224
+ dataSuffix?: `0x${string}`;
1225
+ gas?: bigint;
1226
+ gasPrice?: bigint;
1227
+ maxFeePerGas?: bigint;
1228
+ maxPriorityFeePerGas?: bigint;
1229
+ nonce?: number;
1230
+ value?: bigint;
1231
+ }): Promise<`0x${string}`> {
1232
+ if (!this.contract.write) {
1233
+ throw new Error('Wallet client is required for write operations');
1234
+ }
1235
+ return this.contract.write.deployFunds([_amount] as const, options) as Promise<`0x${string}`>;
1236
+ }
1237
+
1238
+ /**
1239
+ * freeFunds
1240
+ * nonpayable
1241
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1242
+ */
1243
+ async freeFunds(_amount: bigint, options?: {
1244
+ accessList?: import('viem').AccessList;
1245
+ authorizationList?: import('viem').AuthorizationList;
1246
+ chain?: import('viem').Chain | null;
1247
+ dataSuffix?: `0x${string}`;
1248
+ gas?: bigint;
1249
+ gasPrice?: bigint;
1250
+ maxFeePerGas?: bigint;
1251
+ maxPriorityFeePerGas?: bigint;
1252
+ nonce?: number;
1253
+ value?: bigint;
1254
+ }): Promise<`0x${string}`> {
1255
+ if (!this.contract.write) {
1256
+ throw new Error('Wallet client is required for write operations');
1257
+ }
1258
+ return this.contract.write.freeFunds([_amount] as const, options) as Promise<`0x${string}`>;
1259
+ }
1260
+
1261
+ /**
1262
+ * harvestAndReport
1263
+ * nonpayable
1264
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1265
+ */
1266
+ async harvestAndReport(options?: {
1267
+ accessList?: import('viem').AccessList;
1268
+ authorizationList?: import('viem').AuthorizationList;
1269
+ chain?: import('viem').Chain | null;
1270
+ dataSuffix?: `0x${string}`;
1271
+ gas?: bigint;
1272
+ gasPrice?: bigint;
1273
+ maxFeePerGas?: bigint;
1274
+ maxPriorityFeePerGas?: bigint;
1275
+ nonce?: number;
1276
+ value?: bigint;
1277
+ }): Promise<`0x${string}`> {
1278
+ if (!this.contract.write) {
1279
+ throw new Error('Wallet client is required for write operations');
1280
+ }
1281
+ return this.contract.write.harvestAndReport(options) as Promise<`0x${string}`>;
1282
+ }
1283
+
1284
+ /**
1285
+ * postTake
1286
+ * nonpayable
1287
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1288
+ */
1289
+ async postTake(_token: `0x${string}`, _amountTaken: bigint, _amountPayed: bigint, options?: {
1290
+ accessList?: import('viem').AccessList;
1291
+ authorizationList?: import('viem').AuthorizationList;
1292
+ chain?: import('viem').Chain | null;
1293
+ dataSuffix?: `0x${string}`;
1294
+ gas?: bigint;
1295
+ gasPrice?: bigint;
1296
+ maxFeePerGas?: bigint;
1297
+ maxPriorityFeePerGas?: bigint;
1298
+ nonce?: number;
1299
+ value?: bigint;
1300
+ }): Promise<`0x${string}`> {
1301
+ if (!this.contract.write) {
1302
+ throw new Error('Wallet client is required for write operations');
1303
+ }
1304
+ return this.contract.write.postTake([_token, _amountTaken, _amountPayed] as const, options) as Promise<`0x${string}`>;
1305
+ }
1306
+
1307
+ /**
1308
+ * preTake
1309
+ * nonpayable
1310
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1311
+ */
1312
+ async preTake(_token: `0x${string}`, _amountToTake: bigint, _amountToPay: bigint, options?: {
1313
+ accessList?: import('viem').AccessList;
1314
+ authorizationList?: import('viem').AuthorizationList;
1315
+ chain?: import('viem').Chain | null;
1316
+ dataSuffix?: `0x${string}`;
1317
+ gas?: bigint;
1318
+ gasPrice?: bigint;
1319
+ maxFeePerGas?: bigint;
1320
+ maxPriorityFeePerGas?: bigint;
1321
+ nonce?: number;
1322
+ value?: bigint;
1323
+ }): Promise<`0x${string}`> {
1324
+ if (!this.contract.write) {
1325
+ throw new Error('Wallet client is required for write operations');
1326
+ }
1327
+ return this.contract.write.preTake([_token, _amountToTake, _amountToPay] as const, options) as Promise<`0x${string}`>;
1328
+ }
1329
+
1330
+ /**
1331
+ * removeReward
1332
+ * nonpayable
1333
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1334
+ */
1335
+ async removeReward(_rewardToken: `0x${string}`, options?: {
1336
+ accessList?: import('viem').AccessList;
1337
+ authorizationList?: import('viem').AuthorizationList;
1338
+ chain?: import('viem').Chain | null;
1339
+ dataSuffix?: `0x${string}`;
1340
+ gas?: bigint;
1341
+ gasPrice?: bigint;
1342
+ maxFeePerGas?: bigint;
1343
+ maxPriorityFeePerGas?: bigint;
1344
+ nonce?: number;
1345
+ value?: bigint;
1346
+ }): Promise<`0x${string}`> {
1347
+ if (!this.contract.write) {
1348
+ throw new Error('Wallet client is required for write operations');
1349
+ }
1350
+ return this.contract.write.removeReward([_rewardToken] as const, options) as Promise<`0x${string}`>;
1351
+ }
1352
+
1353
+ /**
1354
+ * removeTradeFactory
1355
+ * nonpayable
1356
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1357
+ */
1358
+ async removeTradeFactory(options?: {
1359
+ accessList?: import('viem').AccessList;
1360
+ authorizationList?: import('viem').AuthorizationList;
1361
+ chain?: import('viem').Chain | null;
1362
+ dataSuffix?: `0x${string}`;
1363
+ gas?: bigint;
1364
+ gasPrice?: bigint;
1365
+ maxFeePerGas?: bigint;
1366
+ maxPriorityFeePerGas?: bigint;
1367
+ nonce?: number;
1368
+ value?: bigint;
1369
+ }): Promise<`0x${string}`> {
1370
+ if (!this.contract.write) {
1371
+ throw new Error('Wallet client is required for write operations');
1372
+ }
1373
+ return this.contract.write.removeTradeFactory(options) as Promise<`0x${string}`>;
1374
+ }
1375
+
1376
+ /**
1377
+ * setAuction
1378
+ * nonpayable
1379
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1380
+ */
1381
+ async setAuction(_auction: `0x${string}`, options?: {
1382
+ accessList?: import('viem').AccessList;
1383
+ authorizationList?: import('viem').AuthorizationList;
1384
+ chain?: import('viem').Chain | null;
1385
+ dataSuffix?: `0x${string}`;
1386
+ gas?: bigint;
1387
+ gasPrice?: bigint;
1388
+ maxFeePerGas?: bigint;
1389
+ maxPriorityFeePerGas?: bigint;
1390
+ nonce?: number;
1391
+ value?: bigint;
1392
+ }): Promise<`0x${string}`> {
1393
+ if (!this.contract.write) {
1394
+ throw new Error('Wallet client is required for write operations');
1395
+ }
1396
+ return this.contract.write.setAuction([_auction] as const, options) as Promise<`0x${string}`>;
1397
+ }
1398
+
1399
+ /**
1400
+ * setAutocompound
1401
+ * nonpayable
1402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1403
+ */
1404
+ async setAutocompound(_autocompound: boolean, options?: {
1405
+ accessList?: import('viem').AccessList;
1406
+ authorizationList?: import('viem').AuthorizationList;
1407
+ chain?: import('viem').Chain | null;
1408
+ dataSuffix?: `0x${string}`;
1409
+ gas?: bigint;
1410
+ gasPrice?: bigint;
1411
+ maxFeePerGas?: bigint;
1412
+ maxPriorityFeePerGas?: bigint;
1413
+ nonce?: number;
1414
+ value?: bigint;
1415
+ }): Promise<`0x${string}`> {
1416
+ if (!this.contract.write) {
1417
+ throw new Error('Wallet client is required for write operations');
1418
+ }
1419
+ return this.contract.write.setAutocompound([_autocompound] as const, options) as Promise<`0x${string}`>;
1420
+ }
1421
+
1422
+ /**
1423
+ * setDoHealthCheck
1424
+ * nonpayable
1425
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1426
+ */
1427
+ async setDoHealthCheck(_doHealthCheck: boolean, options?: {
1428
+ accessList?: import('viem').AccessList;
1429
+ authorizationList?: import('viem').AuthorizationList;
1430
+ chain?: import('viem').Chain | null;
1431
+ dataSuffix?: `0x${string}`;
1432
+ gas?: bigint;
1433
+ gasPrice?: bigint;
1434
+ maxFeePerGas?: bigint;
1435
+ maxPriorityFeePerGas?: bigint;
1436
+ nonce?: number;
1437
+ value?: bigint;
1438
+ }): Promise<`0x${string}`> {
1439
+ if (!this.contract.write) {
1440
+ throw new Error('Wallet client is required for write operations');
1441
+ }
1442
+ return this.contract.write.setDoHealthCheck([_doHealthCheck] as const, options) as Promise<`0x${string}`>;
1443
+ }
1444
+
1445
+ /**
1446
+ * setLossLimitRatio
1447
+ * nonpayable
1448
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1449
+ */
1450
+ async setLossLimitRatio(_newLossLimitRatio: bigint, options?: {
1451
+ accessList?: import('viem').AccessList;
1452
+ authorizationList?: import('viem').AuthorizationList;
1453
+ chain?: import('viem').Chain | null;
1454
+ dataSuffix?: `0x${string}`;
1455
+ gas?: bigint;
1456
+ gasPrice?: bigint;
1457
+ maxFeePerGas?: bigint;
1458
+ maxPriorityFeePerGas?: bigint;
1459
+ nonce?: number;
1460
+ value?: bigint;
1461
+ }): Promise<`0x${string}`> {
1462
+ if (!this.contract.write) {
1463
+ throw new Error('Wallet client is required for write operations');
1464
+ }
1465
+ return this.contract.write.setLossLimitRatio([_newLossLimitRatio] as const, options) as Promise<`0x${string}`>;
1466
+ }
1467
+
1468
+ /**
1469
+ * setMinAmountToSellMapping
1470
+ * nonpayable
1471
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1472
+ */
1473
+ async setMinAmountToSellMapping(_token: `0x${string}`, _amount: bigint, options?: {
1474
+ accessList?: import('viem').AccessList;
1475
+ authorizationList?: import('viem').AuthorizationList;
1476
+ chain?: import('viem').Chain | null;
1477
+ dataSuffix?: `0x${string}`;
1478
+ gas?: bigint;
1479
+ gasPrice?: bigint;
1480
+ maxFeePerGas?: bigint;
1481
+ maxPriorityFeePerGas?: bigint;
1482
+ nonce?: number;
1483
+ value?: bigint;
1484
+ }): Promise<`0x${string}`> {
1485
+ if (!this.contract.write) {
1486
+ throw new Error('Wallet client is required for write operations');
1487
+ }
1488
+ return this.contract.write.setMinAmountToSellMapping([_token, _amount] as const, options) as Promise<`0x${string}`>;
1489
+ }
1490
+
1491
+ /**
1492
+ * setProfitLimitRatio
1493
+ * nonpayable
1494
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1495
+ */
1496
+ async setProfitLimitRatio(_newProfitLimitRatio: bigint, options?: {
1497
+ accessList?: import('viem').AccessList;
1498
+ authorizationList?: import('viem').AuthorizationList;
1499
+ chain?: import('viem').Chain | null;
1500
+ dataSuffix?: `0x${string}`;
1501
+ gas?: bigint;
1502
+ gasPrice?: bigint;
1503
+ maxFeePerGas?: bigint;
1504
+ maxPriorityFeePerGas?: bigint;
1505
+ nonce?: number;
1506
+ value?: bigint;
1507
+ }): Promise<`0x${string}`> {
1508
+ if (!this.contract.write) {
1509
+ throw new Error('Wallet client is required for write operations');
1510
+ }
1511
+ return this.contract.write.setProfitLimitRatio([_newProfitLimitRatio] as const, options) as Promise<`0x${string}`>;
1512
+ }
1513
+
1514
+ /**
1515
+ * setRouterParams
1516
+ * nonpayable
1517
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1518
+ */
1519
+ async setRouterParams(_guessMin: bigint, _guessMax: bigint, _maxIteration: bigint, _eps: bigint, options?: {
1520
+ accessList?: import('viem').AccessList;
1521
+ authorizationList?: import('viem').AuthorizationList;
1522
+ chain?: import('viem').Chain | null;
1523
+ dataSuffix?: `0x${string}`;
1524
+ gas?: bigint;
1525
+ gasPrice?: bigint;
1526
+ maxFeePerGas?: bigint;
1527
+ maxPriorityFeePerGas?: bigint;
1528
+ nonce?: number;
1529
+ value?: bigint;
1530
+ }): Promise<`0x${string}`> {
1531
+ if (!this.contract.write) {
1532
+ throw new Error('Wallet client is required for write operations');
1533
+ }
1534
+ return this.contract.write.setRouterParams([_guessMin, _guessMax, _maxIteration, _eps] as const, options) as Promise<`0x${string}`>;
1535
+ }
1536
+
1537
+ /**
1538
+ * setTradeFactory
1539
+ * nonpayable
1540
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1541
+ */
1542
+ async setTradeFactory(_tradeFactory: `0x${string}`, _useTradeFactory: boolean, options?: {
1543
+ accessList?: import('viem').AccessList;
1544
+ authorizationList?: import('viem').AuthorizationList;
1545
+ chain?: import('viem').Chain | null;
1546
+ dataSuffix?: `0x${string}`;
1547
+ gas?: bigint;
1548
+ gasPrice?: bigint;
1549
+ maxFeePerGas?: bigint;
1550
+ maxPriorityFeePerGas?: bigint;
1551
+ nonce?: number;
1552
+ value?: bigint;
1553
+ }): Promise<`0x${string}`> {
1554
+ if (!this.contract.write) {
1555
+ throw new Error('Wallet client is required for write operations');
1556
+ }
1557
+ return this.contract.write.setTradeFactory([_tradeFactory, _useTradeFactory] as const, options) as Promise<`0x${string}`>;
1558
+ }
1559
+
1560
+ /**
1561
+ * setUniFees
1562
+ * nonpayable
1563
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1564
+ */
1565
+ async setUniFees(_token0: `0x${string}`, _token1: `0x${string}`, _fee: bigint, options?: {
1566
+ accessList?: import('viem').AccessList;
1567
+ authorizationList?: import('viem').AuthorizationList;
1568
+ chain?: import('viem').Chain | null;
1569
+ dataSuffix?: `0x${string}`;
1570
+ gas?: bigint;
1571
+ gasPrice?: bigint;
1572
+ maxFeePerGas?: bigint;
1573
+ maxPriorityFeePerGas?: bigint;
1574
+ nonce?: number;
1575
+ value?: bigint;
1576
+ }): Promise<`0x${string}`> {
1577
+ if (!this.contract.write) {
1578
+ throw new Error('Wallet client is required for write operations');
1579
+ }
1580
+ return this.contract.write.setUniFees([_token0, _token1, _fee] as const, options) as Promise<`0x${string}`>;
1581
+ }
1582
+
1583
+ /**
1584
+ * setUseAuction
1585
+ * nonpayable
1586
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1587
+ */
1588
+ async setUseAuction(_useAuction: boolean, options?: {
1589
+ accessList?: import('viem').AccessList;
1590
+ authorizationList?: import('viem').AuthorizationList;
1591
+ chain?: import('viem').Chain | null;
1592
+ dataSuffix?: `0x${string}`;
1593
+ gas?: bigint;
1594
+ gasPrice?: bigint;
1595
+ maxFeePerGas?: bigint;
1596
+ maxPriorityFeePerGas?: bigint;
1597
+ nonce?: number;
1598
+ value?: bigint;
1599
+ }): Promise<`0x${string}`> {
1600
+ if (!this.contract.write) {
1601
+ throw new Error('Wallet client is required for write operations');
1602
+ }
1603
+ return this.contract.write.setUseAuction([_useAuction] as const, options) as Promise<`0x${string}`>;
1604
+ }
1605
+
1606
+ /**
1607
+ * setUseTradeFactory
1608
+ * nonpayable
1609
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1610
+ */
1611
+ async setUseTradeFactory(_useTradeFactory: boolean, options?: {
1612
+ accessList?: import('viem').AccessList;
1613
+ authorizationList?: import('viem').AuthorizationList;
1614
+ chain?: import('viem').Chain | null;
1615
+ dataSuffix?: `0x${string}`;
1616
+ gas?: bigint;
1617
+ gasPrice?: bigint;
1618
+ maxFeePerGas?: bigint;
1619
+ maxPriorityFeePerGas?: bigint;
1620
+ nonce?: number;
1621
+ value?: bigint;
1622
+ }): Promise<`0x${string}`> {
1623
+ if (!this.contract.write) {
1624
+ throw new Error('Wallet client is required for write operations');
1625
+ }
1626
+ return this.contract.write.setUseTradeFactory([_useTradeFactory] as const, options) as Promise<`0x${string}`>;
1627
+ }
1628
+
1629
+ /**
1630
+ * shutdownWithdraw
1631
+ * nonpayable
1632
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1633
+ */
1634
+ async shutdownWithdraw(_amount: bigint, options?: {
1635
+ accessList?: import('viem').AccessList;
1636
+ authorizationList?: import('viem').AuthorizationList;
1637
+ chain?: import('viem').Chain | null;
1638
+ dataSuffix?: `0x${string}`;
1639
+ gas?: bigint;
1640
+ gasPrice?: bigint;
1641
+ maxFeePerGas?: bigint;
1642
+ maxPriorityFeePerGas?: bigint;
1643
+ nonce?: number;
1644
+ value?: bigint;
1645
+ }): Promise<`0x${string}`> {
1646
+ if (!this.contract.write) {
1647
+ throw new Error('Wallet client is required for write operations');
1648
+ }
1649
+ return this.contract.write.shutdownWithdraw([_amount] as const, options) as Promise<`0x${string}`>;
1650
+ }
1651
+
1652
+ /**
1653
+ * sweep
1654
+ * nonpayable
1655
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1656
+ */
1657
+ async sweep(_token: `0x${string}`, options?: {
1658
+ accessList?: import('viem').AccessList;
1659
+ authorizationList?: import('viem').AuthorizationList;
1660
+ chain?: import('viem').Chain | null;
1661
+ dataSuffix?: `0x${string}`;
1662
+ gas?: bigint;
1663
+ gasPrice?: bigint;
1664
+ maxFeePerGas?: bigint;
1665
+ maxPriorityFeePerGas?: bigint;
1666
+ nonce?: number;
1667
+ value?: bigint;
1668
+ }): Promise<`0x${string}`> {
1669
+ if (!this.contract.write) {
1670
+ throw new Error('Wallet client is required for write operations');
1671
+ }
1672
+ return this.contract.write.sweep([_token] as const, options) as Promise<`0x${string}`>;
1673
+ }
1674
+
1675
+ /**
1676
+ * tendThis
1677
+ * nonpayable
1678
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1679
+ */
1680
+ async tendThis(_totalIdle: bigint, options?: {
1681
+ accessList?: import('viem').AccessList;
1682
+ authorizationList?: import('viem').AuthorizationList;
1683
+ chain?: import('viem').Chain | null;
1684
+ dataSuffix?: `0x${string}`;
1685
+ gas?: bigint;
1686
+ gasPrice?: bigint;
1687
+ maxFeePerGas?: bigint;
1688
+ maxPriorityFeePerGas?: bigint;
1689
+ nonce?: number;
1690
+ value?: bigint;
1691
+ }): Promise<`0x${string}`> {
1692
+ if (!this.contract.write) {
1693
+ throw new Error('Wallet client is required for write operations');
1694
+ }
1695
+ return this.contract.write.tendThis([_totalIdle] as const, options) as Promise<`0x${string}`>;
1696
+ }
1697
+
1698
+
1699
+
1700
+ /**
1701
+ * Simulate contract write operations (dry-run without sending transaction)
1702
+ *
1703
+ * @example
1704
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1705
+ * console.log('Gas estimate:', result.request.gas);
1706
+ * console.log('Would succeed:', result.result);
1707
+ */
1708
+ get simulate() {
1709
+ const contract = this.contract;
1710
+ if (!contract.simulate) {
1711
+ throw new Error('Public client is required for simulation');
1712
+ }
1713
+ return {
1714
+ /**
1715
+ * Simulate addReward
1716
+ * Returns gas estimate and result without sending transaction
1717
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1718
+ */
1719
+ async addReward(_rewardToken: `0x${string}`, _feeRewardTokenToBase: bigint, options?: {
1720
+ accessList?: import('viem').AccessList;
1721
+ authorizationList?: import('viem').AuthorizationList;
1722
+ chain?: import('viem').Chain | null;
1723
+ dataSuffix?: `0x${string}`;
1724
+ gas?: bigint;
1725
+ gasPrice?: bigint;
1726
+ maxFeePerGas?: bigint;
1727
+ maxPriorityFeePerGas?: bigint;
1728
+ nonce?: number;
1729
+ value?: bigint;
1730
+ }): Promise<void> {
1731
+ return contract.simulate.addReward([_rewardToken, _feeRewardTokenToBase] as const, options) as Promise<void>;
1732
+ },
1733
+ /**
1734
+ * Simulate auctionKicked
1735
+ * Returns gas estimate and result without sending transaction
1736
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1737
+ */
1738
+ async auctionKicked(_token: `0x${string}`, options?: {
1739
+ accessList?: import('viem').AccessList;
1740
+ authorizationList?: import('viem').AuthorizationList;
1741
+ chain?: import('viem').Chain | null;
1742
+ dataSuffix?: `0x${string}`;
1743
+ gas?: bigint;
1744
+ gasPrice?: bigint;
1745
+ maxFeePerGas?: bigint;
1746
+ maxPriorityFeePerGas?: bigint;
1747
+ nonce?: number;
1748
+ value?: bigint;
1749
+ }): Promise<bigint> {
1750
+ return contract.simulate.auctionKicked([_token] as const, options) as Promise<bigint>;
1751
+ },
1752
+ /**
1753
+ * Simulate claimRewards
1754
+ * Returns gas estimate and result without sending transaction
1755
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1756
+ */
1757
+ async claimRewards(options?: {
1758
+ accessList?: import('viem').AccessList;
1759
+ authorizationList?: import('viem').AuthorizationList;
1760
+ chain?: import('viem').Chain | null;
1761
+ dataSuffix?: `0x${string}`;
1762
+ gas?: bigint;
1763
+ gasPrice?: bigint;
1764
+ maxFeePerGas?: bigint;
1765
+ maxPriorityFeePerGas?: bigint;
1766
+ nonce?: number;
1767
+ value?: bigint;
1768
+ }): Promise<void> {
1769
+ return contract.simulate.claimRewards(options) as Promise<void>;
1770
+ },
1771
+ /**
1772
+ * Simulate deployFunds
1773
+ * Returns gas estimate and result without sending transaction
1774
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1775
+ */
1776
+ async deployFunds(_amount: bigint, 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<void> {
1788
+ return contract.simulate.deployFunds([_amount] as const, options) as Promise<void>;
1789
+ },
1790
+ /**
1791
+ * Simulate freeFunds
1792
+ * Returns gas estimate and result without sending transaction
1793
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1794
+ */
1795
+ async freeFunds(_amount: bigint, options?: {
1796
+ accessList?: import('viem').AccessList;
1797
+ authorizationList?: import('viem').AuthorizationList;
1798
+ chain?: import('viem').Chain | null;
1799
+ dataSuffix?: `0x${string}`;
1800
+ gas?: bigint;
1801
+ gasPrice?: bigint;
1802
+ maxFeePerGas?: bigint;
1803
+ maxPriorityFeePerGas?: bigint;
1804
+ nonce?: number;
1805
+ value?: bigint;
1806
+ }): Promise<void> {
1807
+ return contract.simulate.freeFunds([_amount] as const, options) as Promise<void>;
1808
+ },
1809
+ /**
1810
+ * Simulate harvestAndReport
1811
+ * Returns gas estimate and result without sending transaction
1812
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1813
+ */
1814
+ async harvestAndReport(options?: {
1815
+ accessList?: import('viem').AccessList;
1816
+ authorizationList?: import('viem').AuthorizationList;
1817
+ chain?: import('viem').Chain | null;
1818
+ dataSuffix?: `0x${string}`;
1819
+ gas?: bigint;
1820
+ gasPrice?: bigint;
1821
+ maxFeePerGas?: bigint;
1822
+ maxPriorityFeePerGas?: bigint;
1823
+ nonce?: number;
1824
+ value?: bigint;
1825
+ }): Promise<bigint> {
1826
+ return contract.simulate.harvestAndReport(options) as Promise<bigint>;
1827
+ },
1828
+ /**
1829
+ * Simulate postTake
1830
+ * Returns gas estimate and result without sending transaction
1831
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1832
+ */
1833
+ async postTake(_token: `0x${string}`, _amountTaken: bigint, _amountPayed: bigint, options?: {
1834
+ accessList?: import('viem').AccessList;
1835
+ authorizationList?: import('viem').AuthorizationList;
1836
+ chain?: import('viem').Chain | null;
1837
+ dataSuffix?: `0x${string}`;
1838
+ gas?: bigint;
1839
+ gasPrice?: bigint;
1840
+ maxFeePerGas?: bigint;
1841
+ maxPriorityFeePerGas?: bigint;
1842
+ nonce?: number;
1843
+ value?: bigint;
1844
+ }): Promise<void> {
1845
+ return contract.simulate.postTake([_token, _amountTaken, _amountPayed] as const, options) as Promise<void>;
1846
+ },
1847
+ /**
1848
+ * Simulate preTake
1849
+ * Returns gas estimate and result without sending transaction
1850
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1851
+ */
1852
+ async preTake(_token: `0x${string}`, _amountToTake: bigint, _amountToPay: bigint, options?: {
1853
+ accessList?: import('viem').AccessList;
1854
+ authorizationList?: import('viem').AuthorizationList;
1855
+ chain?: import('viem').Chain | null;
1856
+ dataSuffix?: `0x${string}`;
1857
+ gas?: bigint;
1858
+ gasPrice?: bigint;
1859
+ maxFeePerGas?: bigint;
1860
+ maxPriorityFeePerGas?: bigint;
1861
+ nonce?: number;
1862
+ value?: bigint;
1863
+ }): Promise<void> {
1864
+ return contract.simulate.preTake([_token, _amountToTake, _amountToPay] as const, options) as Promise<void>;
1865
+ },
1866
+ /**
1867
+ * Simulate removeReward
1868
+ * Returns gas estimate and result without sending transaction
1869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1870
+ */
1871
+ async removeReward(_rewardToken: `0x${string}`, options?: {
1872
+ accessList?: import('viem').AccessList;
1873
+ authorizationList?: import('viem').AuthorizationList;
1874
+ chain?: import('viem').Chain | null;
1875
+ dataSuffix?: `0x${string}`;
1876
+ gas?: bigint;
1877
+ gasPrice?: bigint;
1878
+ maxFeePerGas?: bigint;
1879
+ maxPriorityFeePerGas?: bigint;
1880
+ nonce?: number;
1881
+ value?: bigint;
1882
+ }): Promise<void> {
1883
+ return contract.simulate.removeReward([_rewardToken] as const, options) as Promise<void>;
1884
+ },
1885
+ /**
1886
+ * Simulate removeTradeFactory
1887
+ * Returns gas estimate and result without sending transaction
1888
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1889
+ */
1890
+ async removeTradeFactory(options?: {
1891
+ accessList?: import('viem').AccessList;
1892
+ authorizationList?: import('viem').AuthorizationList;
1893
+ chain?: import('viem').Chain | null;
1894
+ dataSuffix?: `0x${string}`;
1895
+ gas?: bigint;
1896
+ gasPrice?: bigint;
1897
+ maxFeePerGas?: bigint;
1898
+ maxPriorityFeePerGas?: bigint;
1899
+ nonce?: number;
1900
+ value?: bigint;
1901
+ }): Promise<void> {
1902
+ return contract.simulate.removeTradeFactory(options) as Promise<void>;
1903
+ },
1904
+ /**
1905
+ * Simulate setAuction
1906
+ * Returns gas estimate and result without sending transaction
1907
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1908
+ */
1909
+ async setAuction(_auction: `0x${string}`, options?: {
1910
+ accessList?: import('viem').AccessList;
1911
+ authorizationList?: import('viem').AuthorizationList;
1912
+ chain?: import('viem').Chain | null;
1913
+ dataSuffix?: `0x${string}`;
1914
+ gas?: bigint;
1915
+ gasPrice?: bigint;
1916
+ maxFeePerGas?: bigint;
1917
+ maxPriorityFeePerGas?: bigint;
1918
+ nonce?: number;
1919
+ value?: bigint;
1920
+ }): Promise<void> {
1921
+ return contract.simulate.setAuction([_auction] as const, options) as Promise<void>;
1922
+ },
1923
+ /**
1924
+ * Simulate setAutocompound
1925
+ * Returns gas estimate and result without sending transaction
1926
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1927
+ */
1928
+ async setAutocompound(_autocompound: boolean, options?: {
1929
+ accessList?: import('viem').AccessList;
1930
+ authorizationList?: import('viem').AuthorizationList;
1931
+ chain?: import('viem').Chain | null;
1932
+ dataSuffix?: `0x${string}`;
1933
+ gas?: bigint;
1934
+ gasPrice?: bigint;
1935
+ maxFeePerGas?: bigint;
1936
+ maxPriorityFeePerGas?: bigint;
1937
+ nonce?: number;
1938
+ value?: bigint;
1939
+ }): Promise<void> {
1940
+ return contract.simulate.setAutocompound([_autocompound] as const, options) as Promise<void>;
1941
+ },
1942
+ /**
1943
+ * Simulate setDoHealthCheck
1944
+ * Returns gas estimate and result without sending transaction
1945
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1946
+ */
1947
+ async setDoHealthCheck(_doHealthCheck: boolean, options?: {
1948
+ accessList?: import('viem').AccessList;
1949
+ authorizationList?: import('viem').AuthorizationList;
1950
+ chain?: import('viem').Chain | null;
1951
+ dataSuffix?: `0x${string}`;
1952
+ gas?: bigint;
1953
+ gasPrice?: bigint;
1954
+ maxFeePerGas?: bigint;
1955
+ maxPriorityFeePerGas?: bigint;
1956
+ nonce?: number;
1957
+ value?: bigint;
1958
+ }): Promise<void> {
1959
+ return contract.simulate.setDoHealthCheck([_doHealthCheck] as const, options) as Promise<void>;
1960
+ },
1961
+ /**
1962
+ * Simulate setLossLimitRatio
1963
+ * Returns gas estimate and result without sending transaction
1964
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1965
+ */
1966
+ async setLossLimitRatio(_newLossLimitRatio: bigint, options?: {
1967
+ accessList?: import('viem').AccessList;
1968
+ authorizationList?: import('viem').AuthorizationList;
1969
+ chain?: import('viem').Chain | null;
1970
+ dataSuffix?: `0x${string}`;
1971
+ gas?: bigint;
1972
+ gasPrice?: bigint;
1973
+ maxFeePerGas?: bigint;
1974
+ maxPriorityFeePerGas?: bigint;
1975
+ nonce?: number;
1976
+ value?: bigint;
1977
+ }): Promise<void> {
1978
+ return contract.simulate.setLossLimitRatio([_newLossLimitRatio] as const, options) as Promise<void>;
1979
+ },
1980
+ /**
1981
+ * Simulate setMinAmountToSellMapping
1982
+ * Returns gas estimate and result without sending transaction
1983
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1984
+ */
1985
+ async setMinAmountToSellMapping(_token: `0x${string}`, _amount: bigint, options?: {
1986
+ accessList?: import('viem').AccessList;
1987
+ authorizationList?: import('viem').AuthorizationList;
1988
+ chain?: import('viem').Chain | null;
1989
+ dataSuffix?: `0x${string}`;
1990
+ gas?: bigint;
1991
+ gasPrice?: bigint;
1992
+ maxFeePerGas?: bigint;
1993
+ maxPriorityFeePerGas?: bigint;
1994
+ nonce?: number;
1995
+ value?: bigint;
1996
+ }): Promise<void> {
1997
+ return contract.simulate.setMinAmountToSellMapping([_token, _amount] as const, options) as Promise<void>;
1998
+ },
1999
+ /**
2000
+ * Simulate setProfitLimitRatio
2001
+ * Returns gas estimate and result without sending transaction
2002
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2003
+ */
2004
+ async setProfitLimitRatio(_newProfitLimitRatio: 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<void> {
2016
+ return contract.simulate.setProfitLimitRatio([_newProfitLimitRatio] as const, options) as Promise<void>;
2017
+ },
2018
+ /**
2019
+ * Simulate setRouterParams
2020
+ * Returns gas estimate and result without sending transaction
2021
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2022
+ */
2023
+ async setRouterParams(_guessMin: bigint, _guessMax: bigint, _maxIteration: bigint, _eps: bigint, options?: {
2024
+ accessList?: import('viem').AccessList;
2025
+ authorizationList?: import('viem').AuthorizationList;
2026
+ chain?: import('viem').Chain | null;
2027
+ dataSuffix?: `0x${string}`;
2028
+ gas?: bigint;
2029
+ gasPrice?: bigint;
2030
+ maxFeePerGas?: bigint;
2031
+ maxPriorityFeePerGas?: bigint;
2032
+ nonce?: number;
2033
+ value?: bigint;
2034
+ }): Promise<void> {
2035
+ return contract.simulate.setRouterParams([_guessMin, _guessMax, _maxIteration, _eps] as const, options) as Promise<void>;
2036
+ },
2037
+ /**
2038
+ * Simulate setTradeFactory
2039
+ * Returns gas estimate and result without sending transaction
2040
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2041
+ */
2042
+ async setTradeFactory(_tradeFactory: `0x${string}`, _useTradeFactory: boolean, options?: {
2043
+ accessList?: import('viem').AccessList;
2044
+ authorizationList?: import('viem').AuthorizationList;
2045
+ chain?: import('viem').Chain | null;
2046
+ dataSuffix?: `0x${string}`;
2047
+ gas?: bigint;
2048
+ gasPrice?: bigint;
2049
+ maxFeePerGas?: bigint;
2050
+ maxPriorityFeePerGas?: bigint;
2051
+ nonce?: number;
2052
+ value?: bigint;
2053
+ }): Promise<void> {
2054
+ return contract.simulate.setTradeFactory([_tradeFactory, _useTradeFactory] as const, options) as Promise<void>;
2055
+ },
2056
+ /**
2057
+ * Simulate setUniFees
2058
+ * Returns gas estimate and result without sending transaction
2059
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2060
+ */
2061
+ async setUniFees(_token0: `0x${string}`, _token1: `0x${string}`, _fee: bigint, options?: {
2062
+ accessList?: import('viem').AccessList;
2063
+ authorizationList?: import('viem').AuthorizationList;
2064
+ chain?: import('viem').Chain | null;
2065
+ dataSuffix?: `0x${string}`;
2066
+ gas?: bigint;
2067
+ gasPrice?: bigint;
2068
+ maxFeePerGas?: bigint;
2069
+ maxPriorityFeePerGas?: bigint;
2070
+ nonce?: number;
2071
+ value?: bigint;
2072
+ }): Promise<void> {
2073
+ return contract.simulate.setUniFees([_token0, _token1, _fee] as const, options) as Promise<void>;
2074
+ },
2075
+ /**
2076
+ * Simulate setUseAuction
2077
+ * Returns gas estimate and result without sending transaction
2078
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2079
+ */
2080
+ async setUseAuction(_useAuction: boolean, options?: {
2081
+ accessList?: import('viem').AccessList;
2082
+ authorizationList?: import('viem').AuthorizationList;
2083
+ chain?: import('viem').Chain | null;
2084
+ dataSuffix?: `0x${string}`;
2085
+ gas?: bigint;
2086
+ gasPrice?: bigint;
2087
+ maxFeePerGas?: bigint;
2088
+ maxPriorityFeePerGas?: bigint;
2089
+ nonce?: number;
2090
+ value?: bigint;
2091
+ }): Promise<void> {
2092
+ return contract.simulate.setUseAuction([_useAuction] as const, options) as Promise<void>;
2093
+ },
2094
+ /**
2095
+ * Simulate setUseTradeFactory
2096
+ * Returns gas estimate and result without sending transaction
2097
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2098
+ */
2099
+ async setUseTradeFactory(_useTradeFactory: boolean, options?: {
2100
+ accessList?: import('viem').AccessList;
2101
+ authorizationList?: import('viem').AuthorizationList;
2102
+ chain?: import('viem').Chain | null;
2103
+ dataSuffix?: `0x${string}`;
2104
+ gas?: bigint;
2105
+ gasPrice?: bigint;
2106
+ maxFeePerGas?: bigint;
2107
+ maxPriorityFeePerGas?: bigint;
2108
+ nonce?: number;
2109
+ value?: bigint;
2110
+ }): Promise<void> {
2111
+ return contract.simulate.setUseTradeFactory([_useTradeFactory] as const, options) as Promise<void>;
2112
+ },
2113
+ /**
2114
+ * Simulate shutdownWithdraw
2115
+ * Returns gas estimate and result without sending transaction
2116
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2117
+ */
2118
+ async shutdownWithdraw(_amount: bigint, options?: {
2119
+ accessList?: import('viem').AccessList;
2120
+ authorizationList?: import('viem').AuthorizationList;
2121
+ chain?: import('viem').Chain | null;
2122
+ dataSuffix?: `0x${string}`;
2123
+ gas?: bigint;
2124
+ gasPrice?: bigint;
2125
+ maxFeePerGas?: bigint;
2126
+ maxPriorityFeePerGas?: bigint;
2127
+ nonce?: number;
2128
+ value?: bigint;
2129
+ }): Promise<void> {
2130
+ return contract.simulate.shutdownWithdraw([_amount] as const, options) as Promise<void>;
2131
+ },
2132
+ /**
2133
+ * Simulate sweep
2134
+ * Returns gas estimate and result without sending transaction
2135
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2136
+ */
2137
+ async sweep(_token: `0x${string}`, options?: {
2138
+ accessList?: import('viem').AccessList;
2139
+ authorizationList?: import('viem').AuthorizationList;
2140
+ chain?: import('viem').Chain | null;
2141
+ dataSuffix?: `0x${string}`;
2142
+ gas?: bigint;
2143
+ gasPrice?: bigint;
2144
+ maxFeePerGas?: bigint;
2145
+ maxPriorityFeePerGas?: bigint;
2146
+ nonce?: number;
2147
+ value?: bigint;
2148
+ }): Promise<void> {
2149
+ return contract.simulate.sweep([_token] as const, options) as Promise<void>;
2150
+ },
2151
+ /**
2152
+ * Simulate tendThis
2153
+ * Returns gas estimate and result without sending transaction
2154
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2155
+ */
2156
+ async tendThis(_totalIdle: bigint, options?: {
2157
+ accessList?: import('viem').AccessList;
2158
+ authorizationList?: import('viem').AuthorizationList;
2159
+ chain?: import('viem').Chain | null;
2160
+ dataSuffix?: `0x${string}`;
2161
+ gas?: bigint;
2162
+ gasPrice?: bigint;
2163
+ maxFeePerGas?: bigint;
2164
+ maxPriorityFeePerGas?: bigint;
2165
+ nonce?: number;
2166
+ value?: bigint;
2167
+ }): Promise<void> {
2168
+ return contract.simulate.tendThis([_totalIdle] as const, options) as Promise<void>;
2169
+ }
2170
+ };
2171
+ }
2172
+
2173
+ /**
2174
+ * Watch contract events
2175
+ *
2176
+ * Note: This contract has no events, so watch returns an empty object.
2177
+ */
2178
+ get watch() {
2179
+ return {};
2180
+ }
2181
+ }