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