defi-state-querier 0.5.15__py3-none-any.whl → 0.5.16__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1523 @@
1
+ import json
2
+
3
+ TCV_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "contract IUniswapV3Factory",
9
+ "name": "factory_",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "contract INonfungiblePositionManager",
14
+ "name": "nftManager_",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable",
19
+ "type": "constructor"
20
+ },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "owner",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "spender",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": false,
38
+ "internalType": "uint256",
39
+ "name": "value",
40
+ "type": "uint256"
41
+ }
42
+ ],
43
+ "name": "Approval",
44
+ "type": "event"
45
+ },
46
+ {
47
+ "anonymous": false,
48
+ "inputs": [
49
+ {
50
+ "indexed": false,
51
+ "internalType": "uint8",
52
+ "name": "version",
53
+ "type": "uint8"
54
+ }
55
+ ],
56
+ "name": "Initialized",
57
+ "type": "event"
58
+ },
59
+ {
60
+ "anonymous": false,
61
+ "inputs": [
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "user",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint256",
71
+ "name": "burnAmount0",
72
+ "type": "uint256"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "internalType": "uint256",
77
+ "name": "burnAmount1",
78
+ "type": "uint256"
79
+ }
80
+ ],
81
+ "name": "LPBurned",
82
+ "type": "event"
83
+ },
84
+ {
85
+ "anonymous": false,
86
+ "inputs": [
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint24[]",
90
+ "name": "feeTiers",
91
+ "type": "uint24[]"
92
+ }
93
+ ],
94
+ "name": "LogAddPools",
95
+ "type": "event"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": false,
102
+ "internalType": "address[]",
103
+ "name": "routers",
104
+ "type": "address[]"
105
+ }
106
+ ],
107
+ "name": "LogBlacklistRouters",
108
+ "type": "event"
109
+ },
110
+ {
111
+ "anonymous": false,
112
+ "inputs": [
113
+ {
114
+ "indexed": true,
115
+ "internalType": "address",
116
+ "name": "receiver",
117
+ "type": "address"
118
+ },
119
+ {
120
+ "indexed": false,
121
+ "internalType": "uint256",
122
+ "name": "burnAmount",
123
+ "type": "uint256"
124
+ },
125
+ {
126
+ "indexed": false,
127
+ "internalType": "uint256",
128
+ "name": "amount0Out",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "indexed": false,
133
+ "internalType": "uint256",
134
+ "name": "amount1Out",
135
+ "type": "uint256"
136
+ }
137
+ ],
138
+ "name": "LogBurn",
139
+ "type": "event"
140
+ },
141
+ {
142
+ "anonymous": false,
143
+ "inputs": [
144
+ {
145
+ "indexed": false,
146
+ "internalType": "uint256",
147
+ "name": "fee0",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "uint256",
153
+ "name": "fee1",
154
+ "type": "uint256"
155
+ }
156
+ ],
157
+ "name": "LogCollectedFees",
158
+ "type": "event"
159
+ },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": true,
165
+ "internalType": "address",
166
+ "name": "receiver",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "indexed": false,
171
+ "internalType": "uint256",
172
+ "name": "mintAmount",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "internalType": "uint256",
178
+ "name": "amount0In",
179
+ "type": "uint256"
180
+ },
181
+ {
182
+ "indexed": false,
183
+ "internalType": "uint256",
184
+ "name": "amount1In",
185
+ "type": "uint256"
186
+ }
187
+ ],
188
+ "name": "LogMint",
189
+ "type": "event"
190
+ },
191
+ {
192
+ "anonymous": false,
193
+ "inputs": [
194
+ {
195
+ "components": [
196
+ {
197
+ "components": [
198
+ {
199
+ "internalType": "uint128",
200
+ "name": "liquidity",
201
+ "type": "uint128"
202
+ },
203
+ {
204
+ "components": [
205
+ {
206
+ "internalType": "int24",
207
+ "name": "lowerTick",
208
+ "type": "int24"
209
+ },
210
+ {
211
+ "internalType": "int24",
212
+ "name": "upperTick",
213
+ "type": "int24"
214
+ },
215
+ {
216
+ "internalType": "uint24",
217
+ "name": "feeTier",
218
+ "type": "uint24"
219
+ }
220
+ ],
221
+ "internalType": "struct Range",
222
+ "name": "range",
223
+ "type": "tuple"
224
+ }
225
+ ],
226
+ "internalType": "struct PositionLiquidity[]",
227
+ "name": "burns",
228
+ "type": "tuple[]"
229
+ },
230
+ {
231
+ "components": [
232
+ {
233
+ "internalType": "uint128",
234
+ "name": "liquidity",
235
+ "type": "uint128"
236
+ },
237
+ {
238
+ "components": [
239
+ {
240
+ "internalType": "int24",
241
+ "name": "lowerTick",
242
+ "type": "int24"
243
+ },
244
+ {
245
+ "internalType": "int24",
246
+ "name": "upperTick",
247
+ "type": "int24"
248
+ },
249
+ {
250
+ "internalType": "uint24",
251
+ "name": "feeTier",
252
+ "type": "uint24"
253
+ }
254
+ ],
255
+ "internalType": "struct Range",
256
+ "name": "range",
257
+ "type": "tuple"
258
+ }
259
+ ],
260
+ "internalType": "struct PositionLiquidity[]",
261
+ "name": "mints",
262
+ "type": "tuple[]"
263
+ },
264
+ {
265
+ "components": [
266
+ {
267
+ "internalType": "bytes",
268
+ "name": "payload",
269
+ "type": "bytes"
270
+ },
271
+ {
272
+ "internalType": "address",
273
+ "name": "router",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "internalType": "uint256",
278
+ "name": "amountIn",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "internalType": "uint256",
283
+ "name": "expectedMinReturn",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "internalType": "bool",
288
+ "name": "zeroForOne",
289
+ "type": "bool"
290
+ }
291
+ ],
292
+ "internalType": "struct SwapPayload",
293
+ "name": "swap",
294
+ "type": "tuple"
295
+ },
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "minBurn0",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "internalType": "uint256",
303
+ "name": "minBurn1",
304
+ "type": "uint256"
305
+ },
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "minDeposit0",
309
+ "type": "uint256"
310
+ },
311
+ {
312
+ "internalType": "uint256",
313
+ "name": "minDeposit1",
314
+ "type": "uint256"
315
+ }
316
+ ],
317
+ "indexed": false,
318
+ "internalType": "struct Rebalance",
319
+ "name": "rebalanceParams",
320
+ "type": "tuple"
321
+ },
322
+ {
323
+ "indexed": false,
324
+ "internalType": "uint256",
325
+ "name": "swapDelta0",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "swapDelta1",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "LogRebalance",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": false,
343
+ "internalType": "address[]",
344
+ "name": "pools",
345
+ "type": "address[]"
346
+ }
347
+ ],
348
+ "name": "LogRemovePools",
349
+ "type": "event"
350
+ },
351
+ {
352
+ "anonymous": false,
353
+ "inputs": [
354
+ {
355
+ "indexed": false,
356
+ "internalType": "address",
357
+ "name": "minter",
358
+ "type": "address"
359
+ }
360
+ ],
361
+ "name": "LogRestrictedMint",
362
+ "type": "event"
363
+ },
364
+ {
365
+ "anonymous": false,
366
+ "inputs": [
367
+ {
368
+ "indexed": false,
369
+ "internalType": "uint256",
370
+ "name": "init0",
371
+ "type": "uint256"
372
+ },
373
+ {
374
+ "indexed": false,
375
+ "internalType": "uint256",
376
+ "name": "init1",
377
+ "type": "uint256"
378
+ }
379
+ ],
380
+ "name": "LogSetInits",
381
+ "type": "event"
382
+ },
383
+ {
384
+ "anonymous": false,
385
+ "inputs": [
386
+ {
387
+ "indexed": false,
388
+ "internalType": "address",
389
+ "name": "newManager",
390
+ "type": "address"
391
+ }
392
+ ],
393
+ "name": "LogSetManager",
394
+ "type": "event"
395
+ },
396
+ {
397
+ "anonymous": false,
398
+ "inputs": [
399
+ {
400
+ "indexed": false,
401
+ "internalType": "uint16",
402
+ "name": "managerFeeBPS",
403
+ "type": "uint16"
404
+ }
405
+ ],
406
+ "name": "LogSetManagerFeeBPS",
407
+ "type": "event"
408
+ },
409
+ {
410
+ "anonymous": false,
411
+ "inputs": [
412
+ {
413
+ "indexed": false,
414
+ "internalType": "address[]",
415
+ "name": "routers",
416
+ "type": "address[]"
417
+ }
418
+ ],
419
+ "name": "LogWhitelistRouters",
420
+ "type": "event"
421
+ },
422
+ {
423
+ "anonymous": false,
424
+ "inputs": [
425
+ {
426
+ "indexed": false,
427
+ "internalType": "uint256",
428
+ "name": "amount0",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "indexed": false,
433
+ "internalType": "uint256",
434
+ "name": "amount1",
435
+ "type": "uint256"
436
+ }
437
+ ],
438
+ "name": "LogWithdrawManagerBalance",
439
+ "type": "event"
440
+ },
441
+ {
442
+ "anonymous": false,
443
+ "inputs": [
444
+ {
445
+ "indexed": true,
446
+ "internalType": "address",
447
+ "name": "previousOwner",
448
+ "type": "address"
449
+ },
450
+ {
451
+ "indexed": true,
452
+ "internalType": "address",
453
+ "name": "newOwner",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "name": "OwnershipTransferred",
458
+ "type": "event"
459
+ },
460
+ {
461
+ "anonymous": false,
462
+ "inputs": [
463
+ {
464
+ "indexed": true,
465
+ "internalType": "address",
466
+ "name": "from",
467
+ "type": "address"
468
+ },
469
+ {
470
+ "indexed": true,
471
+ "internalType": "address",
472
+ "name": "to",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "indexed": false,
477
+ "internalType": "uint256",
478
+ "name": "value",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "Transfer",
483
+ "type": "event"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "address",
489
+ "name": "owner",
490
+ "type": "address"
491
+ },
492
+ {
493
+ "internalType": "address",
494
+ "name": "spender",
495
+ "type": "address"
496
+ }
497
+ ],
498
+ "name": "allowance",
499
+ "outputs": [
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "",
503
+ "type": "uint256"
504
+ }
505
+ ],
506
+ "stateMutability": "view",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "address",
513
+ "name": "spender",
514
+ "type": "address"
515
+ },
516
+ {
517
+ "internalType": "uint256",
518
+ "name": "amount",
519
+ "type": "uint256"
520
+ }
521
+ ],
522
+ "name": "approve",
523
+ "outputs": [
524
+ {
525
+ "internalType": "bool",
526
+ "name": "",
527
+ "type": "bool"
528
+ }
529
+ ],
530
+ "stateMutability": "nonpayable",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "address",
537
+ "name": "account",
538
+ "type": "address"
539
+ }
540
+ ],
541
+ "name": "balanceOf",
542
+ "outputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ {
555
+ "internalType": "uint256",
556
+ "name": "burnAmount_",
557
+ "type": "uint256"
558
+ },
559
+ {
560
+ "internalType": "uint256",
561
+ "name": "amount0Min_",
562
+ "type": "uint256"
563
+ },
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "amount1Min_",
567
+ "type": "uint256"
568
+ },
569
+ {
570
+ "internalType": "address",
571
+ "name": "receiver_",
572
+ "type": "address"
573
+ },
574
+ {
575
+ "internalType": "address",
576
+ "name": "tcvRouter_",
577
+ "type": "address"
578
+ }
579
+ ],
580
+ "name": "burn",
581
+ "outputs": [
582
+ {
583
+ "internalType": "uint256",
584
+ "name": "amount0",
585
+ "type": "uint256"
586
+ },
587
+ {
588
+ "internalType": "uint256",
589
+ "name": "amount1",
590
+ "type": "uint256"
591
+ }
592
+ ],
593
+ "stateMutability": "nonpayable",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "address",
600
+ "name": "account",
601
+ "type": "address"
602
+ }
603
+ ],
604
+ "name": "current",
605
+ "outputs": [
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ {
618
+ "internalType": "address",
619
+ "name": "account",
620
+ "type": "address"
621
+ }
622
+ ],
623
+ "name": "currentNow",
624
+ "outputs": [
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "decimals",
637
+ "outputs": [
638
+ {
639
+ "internalType": "uint8",
640
+ "name": "",
641
+ "type": "uint8"
642
+ }
643
+ ],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "spender",
652
+ "type": "address"
653
+ },
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "subtractedValue",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "name": "decreaseAllowance",
661
+ "outputs": [
662
+ {
663
+ "internalType": "bool",
664
+ "name": "",
665
+ "type": "bool"
666
+ }
667
+ ],
668
+ "stateMutability": "nonpayable",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [],
673
+ "name": "factory",
674
+ "outputs": [
675
+ {
676
+ "internalType": "contract IUniswapV3Factory",
677
+ "name": "",
678
+ "type": "address"
679
+ }
680
+ ],
681
+ "stateMutability": "view",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "inputs": [
686
+ {
687
+ "internalType": "uint256",
688
+ "name": "",
689
+ "type": "uint256"
690
+ }
691
+ ],
692
+ "name": "fee0RatioLiq0",
693
+ "outputs": [
694
+ {
695
+ "internalType": "uint256",
696
+ "name": "",
697
+ "type": "uint256"
698
+ }
699
+ ],
700
+ "stateMutability": "view",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "name": "fee1RatioLiq0",
712
+ "outputs": [
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "",
716
+ "type": "uint256"
717
+ }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [],
724
+ "name": "getPools",
725
+ "outputs": [
726
+ {
727
+ "internalType": "address[]",
728
+ "name": "",
729
+ "type": "address[]"
730
+ }
731
+ ],
732
+ "stateMutability": "view",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [],
737
+ "name": "getRanges",
738
+ "outputs": [
739
+ {
740
+ "components": [
741
+ {
742
+ "internalType": "int24",
743
+ "name": "lowerTick",
744
+ "type": "int24"
745
+ },
746
+ {
747
+ "internalType": "int24",
748
+ "name": "upperTick",
749
+ "type": "int24"
750
+ },
751
+ {
752
+ "internalType": "uint24",
753
+ "name": "feeTier",
754
+ "type": "uint24"
755
+ }
756
+ ],
757
+ "internalType": "struct Range[]",
758
+ "name": "",
759
+ "type": "tuple[]"
760
+ }
761
+ ],
762
+ "stateMutability": "view",
763
+ "type": "function"
764
+ },
765
+ {
766
+ "inputs": [
767
+ {
768
+ "internalType": "address",
769
+ "name": "spender",
770
+ "type": "address"
771
+ },
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "addedValue",
775
+ "type": "uint256"
776
+ }
777
+ ],
778
+ "name": "increaseAllowance",
779
+ "outputs": [
780
+ {
781
+ "internalType": "bool",
782
+ "name": "",
783
+ "type": "bool"
784
+ }
785
+ ],
786
+ "stateMutability": "nonpayable",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "inputs": [
791
+ {
792
+ "internalType": "address",
793
+ "name": "account",
794
+ "type": "address"
795
+ }
796
+ ],
797
+ "name": "indexRebalance",
798
+ "outputs": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "",
802
+ "type": "uint256"
803
+ }
804
+ ],
805
+ "stateMutability": "view",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [],
810
+ "name": "init0",
811
+ "outputs": [
812
+ {
813
+ "internalType": "uint256",
814
+ "name": "",
815
+ "type": "uint256"
816
+ }
817
+ ],
818
+ "stateMutability": "view",
819
+ "type": "function"
820
+ },
821
+ {
822
+ "inputs": [],
823
+ "name": "init1",
824
+ "outputs": [
825
+ {
826
+ "internalType": "uint256",
827
+ "name": "",
828
+ "type": "uint256"
829
+ }
830
+ ],
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [
836
+ {
837
+ "internalType": "string",
838
+ "name": "name_",
839
+ "type": "string"
840
+ },
841
+ {
842
+ "internalType": "string",
843
+ "name": "symbol_",
844
+ "type": "string"
845
+ },
846
+ {
847
+ "components": [
848
+ {
849
+ "internalType": "uint24[]",
850
+ "name": "feeTiers",
851
+ "type": "uint24[]"
852
+ },
853
+ {
854
+ "internalType": "address",
855
+ "name": "token0",
856
+ "type": "address"
857
+ },
858
+ {
859
+ "internalType": "address",
860
+ "name": "token1",
861
+ "type": "address"
862
+ },
863
+ {
864
+ "internalType": "address",
865
+ "name": "owner",
866
+ "type": "address"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "init0",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "init1",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "address",
880
+ "name": "manager",
881
+ "type": "address"
882
+ },
883
+ {
884
+ "internalType": "address[]",
885
+ "name": "routers",
886
+ "type": "address[]"
887
+ }
888
+ ],
889
+ "internalType": "struct InitializePayload",
890
+ "name": "params_",
891
+ "type": "tuple"
892
+ }
893
+ ],
894
+ "name": "initialize",
895
+ "outputs": [],
896
+ "stateMutability": "nonpayable",
897
+ "type": "function"
898
+ },
899
+ {
900
+ "inputs": [],
901
+ "name": "liquidityBase",
902
+ "outputs": [
903
+ {
904
+ "internalType": "uint128",
905
+ "name": "",
906
+ "type": "uint128"
907
+ }
908
+ ],
909
+ "stateMutability": "view",
910
+ "type": "function"
911
+ },
912
+ {
913
+ "inputs": [],
914
+ "name": "manager",
915
+ "outputs": [
916
+ {
917
+ "internalType": "address",
918
+ "name": "",
919
+ "type": "address"
920
+ }
921
+ ],
922
+ "stateMutability": "view",
923
+ "type": "function"
924
+ },
925
+ {
926
+ "inputs": [],
927
+ "name": "managerBalance0",
928
+ "outputs": [
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "",
932
+ "type": "uint256"
933
+ }
934
+ ],
935
+ "stateMutability": "view",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [],
940
+ "name": "managerBalance1",
941
+ "outputs": [
942
+ {
943
+ "internalType": "uint256",
944
+ "name": "",
945
+ "type": "uint256"
946
+ }
947
+ ],
948
+ "stateMutability": "view",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [],
953
+ "name": "managerFeeBPS",
954
+ "outputs": [
955
+ {
956
+ "internalType": "uint16",
957
+ "name": "",
958
+ "type": "uint16"
959
+ }
960
+ ],
961
+ "stateMutability": "view",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "mintAmount_",
969
+ "type": "uint256"
970
+ },
971
+ {
972
+ "internalType": "address",
973
+ "name": "receiver_",
974
+ "type": "address"
975
+ }
976
+ ],
977
+ "name": "mint",
978
+ "outputs": [
979
+ {
980
+ "internalType": "uint256",
981
+ "name": "amount0",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "internalType": "uint256",
986
+ "name": "amount1",
987
+ "type": "uint256"
988
+ }
989
+ ],
990
+ "stateMutability": "nonpayable",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [],
995
+ "name": "name",
996
+ "outputs": [
997
+ {
998
+ "internalType": "string",
999
+ "name": "",
1000
+ "type": "string"
1001
+ }
1002
+ ],
1003
+ "stateMutability": "view",
1004
+ "type": "function"
1005
+ },
1006
+ {
1007
+ "inputs": [],
1008
+ "name": "nftManager",
1009
+ "outputs": [
1010
+ {
1011
+ "internalType": "contract INonfungiblePositionManager",
1012
+ "name": "",
1013
+ "type": "address"
1014
+ }
1015
+ ],
1016
+ "stateMutability": "view",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [],
1021
+ "name": "numOfRebalance",
1022
+ "outputs": [
1023
+ {
1024
+ "internalType": "uint256",
1025
+ "name": "",
1026
+ "type": "uint256"
1027
+ }
1028
+ ],
1029
+ "stateMutability": "view",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [],
1034
+ "name": "owner",
1035
+ "outputs": [
1036
+ {
1037
+ "internalType": "address",
1038
+ "name": "",
1039
+ "type": "address"
1040
+ }
1041
+ ],
1042
+ "stateMutability": "view",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "inputs": [
1047
+ {
1048
+ "internalType": "uint256",
1049
+ "name": "",
1050
+ "type": "uint256"
1051
+ }
1052
+ ],
1053
+ "name": "rangeToTokenIds",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "uint256",
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "uint256",
1068
+ "name": "",
1069
+ "type": "uint256"
1070
+ }
1071
+ ],
1072
+ "name": "ratioLPRebalance",
1073
+ "outputs": [
1074
+ {
1075
+ "internalType": "uint256",
1076
+ "name": "",
1077
+ "type": "uint256"
1078
+ }
1079
+ ],
1080
+ "stateMutability": "view",
1081
+ "type": "function"
1082
+ },
1083
+ {
1084
+ "inputs": [
1085
+ {
1086
+ "components": [
1087
+ {
1088
+ "components": [
1089
+ {
1090
+ "internalType": "uint128",
1091
+ "name": "liquidity",
1092
+ "type": "uint128"
1093
+ },
1094
+ {
1095
+ "components": [
1096
+ {
1097
+ "internalType": "int24",
1098
+ "name": "lowerTick",
1099
+ "type": "int24"
1100
+ },
1101
+ {
1102
+ "internalType": "int24",
1103
+ "name": "upperTick",
1104
+ "type": "int24"
1105
+ },
1106
+ {
1107
+ "internalType": "uint24",
1108
+ "name": "feeTier",
1109
+ "type": "uint24"
1110
+ }
1111
+ ],
1112
+ "internalType": "struct Range",
1113
+ "name": "range",
1114
+ "type": "tuple"
1115
+ }
1116
+ ],
1117
+ "internalType": "struct PositionLiquidity[]",
1118
+ "name": "burns",
1119
+ "type": "tuple[]"
1120
+ },
1121
+ {
1122
+ "components": [
1123
+ {
1124
+ "internalType": "uint128",
1125
+ "name": "liquidity",
1126
+ "type": "uint128"
1127
+ },
1128
+ {
1129
+ "components": [
1130
+ {
1131
+ "internalType": "int24",
1132
+ "name": "lowerTick",
1133
+ "type": "int24"
1134
+ },
1135
+ {
1136
+ "internalType": "int24",
1137
+ "name": "upperTick",
1138
+ "type": "int24"
1139
+ },
1140
+ {
1141
+ "internalType": "uint24",
1142
+ "name": "feeTier",
1143
+ "type": "uint24"
1144
+ }
1145
+ ],
1146
+ "internalType": "struct Range",
1147
+ "name": "range",
1148
+ "type": "tuple"
1149
+ }
1150
+ ],
1151
+ "internalType": "struct PositionLiquidity[]",
1152
+ "name": "mints",
1153
+ "type": "tuple[]"
1154
+ },
1155
+ {
1156
+ "components": [
1157
+ {
1158
+ "internalType": "bytes",
1159
+ "name": "payload",
1160
+ "type": "bytes"
1161
+ },
1162
+ {
1163
+ "internalType": "address",
1164
+ "name": "router",
1165
+ "type": "address"
1166
+ },
1167
+ {
1168
+ "internalType": "uint256",
1169
+ "name": "amountIn",
1170
+ "type": "uint256"
1171
+ },
1172
+ {
1173
+ "internalType": "uint256",
1174
+ "name": "expectedMinReturn",
1175
+ "type": "uint256"
1176
+ },
1177
+ {
1178
+ "internalType": "bool",
1179
+ "name": "zeroForOne",
1180
+ "type": "bool"
1181
+ }
1182
+ ],
1183
+ "internalType": "struct SwapPayload",
1184
+ "name": "swap",
1185
+ "type": "tuple"
1186
+ },
1187
+ {
1188
+ "internalType": "uint256",
1189
+ "name": "minBurn0",
1190
+ "type": "uint256"
1191
+ },
1192
+ {
1193
+ "internalType": "uint256",
1194
+ "name": "minBurn1",
1195
+ "type": "uint256"
1196
+ },
1197
+ {
1198
+ "internalType": "uint256",
1199
+ "name": "minDeposit0",
1200
+ "type": "uint256"
1201
+ },
1202
+ {
1203
+ "internalType": "uint256",
1204
+ "name": "minDeposit1",
1205
+ "type": "uint256"
1206
+ }
1207
+ ],
1208
+ "internalType": "struct Rebalance",
1209
+ "name": "rebalanceParams_",
1210
+ "type": "tuple"
1211
+ }
1212
+ ],
1213
+ "name": "rebalance",
1214
+ "outputs": [],
1215
+ "stateMutability": "nonpayable",
1216
+ "type": "function"
1217
+ },
1218
+ {
1219
+ "inputs": [
1220
+ {
1221
+ "internalType": "address",
1222
+ "name": "account",
1223
+ "type": "address"
1224
+ }
1225
+ ],
1226
+ "name": "remainFee0User",
1227
+ "outputs": [
1228
+ {
1229
+ "internalType": "uint256",
1230
+ "name": "",
1231
+ "type": "uint256"
1232
+ }
1233
+ ],
1234
+ "stateMutability": "view",
1235
+ "type": "function"
1236
+ },
1237
+ {
1238
+ "inputs": [
1239
+ {
1240
+ "internalType": "address",
1241
+ "name": "account",
1242
+ "type": "address"
1243
+ }
1244
+ ],
1245
+ "name": "remainFee1User",
1246
+ "outputs": [
1247
+ {
1248
+ "internalType": "uint256",
1249
+ "name": "",
1250
+ "type": "uint256"
1251
+ }
1252
+ ],
1253
+ "stateMutability": "view",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [],
1258
+ "name": "renounceOwnership",
1259
+ "outputs": [],
1260
+ "stateMutability": "nonpayable",
1261
+ "type": "function"
1262
+ },
1263
+ {
1264
+ "inputs": [],
1265
+ "name": "restrictedMint",
1266
+ "outputs": [
1267
+ {
1268
+ "internalType": "address",
1269
+ "name": "",
1270
+ "type": "address"
1271
+ }
1272
+ ],
1273
+ "stateMutability": "view",
1274
+ "type": "function"
1275
+ },
1276
+ {
1277
+ "inputs": [
1278
+ {
1279
+ "internalType": "address",
1280
+ "name": "account",
1281
+ "type": "address"
1282
+ },
1283
+ {
1284
+ "internalType": "uint256",
1285
+ "name": "amount",
1286
+ "type": "uint256"
1287
+ }
1288
+ ],
1289
+ "name": "setCurrent",
1290
+ "outputs": [],
1291
+ "stateMutability": "nonpayable",
1292
+ "type": "function"
1293
+ },
1294
+ {
1295
+ "inputs": [
1296
+ {
1297
+ "internalType": "address",
1298
+ "name": "account",
1299
+ "type": "address"
1300
+ },
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "index",
1304
+ "type": "uint256"
1305
+ }
1306
+ ],
1307
+ "name": "setIndexRebelance",
1308
+ "outputs": [],
1309
+ "stateMutability": "nonpayable",
1310
+ "type": "function"
1311
+ },
1312
+ {
1313
+ "inputs": [],
1314
+ "name": "setLiquidity",
1315
+ "outputs": [],
1316
+ "stateMutability": "nonpayable",
1317
+ "type": "function"
1318
+ },
1319
+ {
1320
+ "inputs": [
1321
+ {
1322
+ "internalType": "address",
1323
+ "name": "manager_",
1324
+ "type": "address"
1325
+ }
1326
+ ],
1327
+ "name": "setManager",
1328
+ "outputs": [],
1329
+ "stateMutability": "nonpayable",
1330
+ "type": "function"
1331
+ },
1332
+ {
1333
+ "inputs": [
1334
+ {
1335
+ "internalType": "uint16",
1336
+ "name": "managerFeeBPS_",
1337
+ "type": "uint16"
1338
+ }
1339
+ ],
1340
+ "name": "setManagerFeeBPS",
1341
+ "outputs": [],
1342
+ "stateMutability": "nonpayable",
1343
+ "type": "function"
1344
+ },
1345
+ {
1346
+ "inputs": [
1347
+ {
1348
+ "internalType": "uint256",
1349
+ "name": "index",
1350
+ "type": "uint256"
1351
+ }
1352
+ ],
1353
+ "name": "setNumOfRebalance",
1354
+ "outputs": [],
1355
+ "stateMutability": "nonpayable",
1356
+ "type": "function"
1357
+ },
1358
+ {
1359
+ "inputs": [],
1360
+ "name": "symbol",
1361
+ "outputs": [
1362
+ {
1363
+ "internalType": "string",
1364
+ "name": "",
1365
+ "type": "string"
1366
+ }
1367
+ ],
1368
+ "stateMutability": "view",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [],
1373
+ "name": "token0",
1374
+ "outputs": [
1375
+ {
1376
+ "internalType": "contract IERC20",
1377
+ "name": "",
1378
+ "type": "address"
1379
+ }
1380
+ ],
1381
+ "stateMutability": "view",
1382
+ "type": "function"
1383
+ },
1384
+ {
1385
+ "inputs": [],
1386
+ "name": "token1",
1387
+ "outputs": [
1388
+ {
1389
+ "internalType": "contract IERC20",
1390
+ "name": "",
1391
+ "type": "address"
1392
+ }
1393
+ ],
1394
+ "stateMutability": "view",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "inputs": [],
1399
+ "name": "totalLiquidity",
1400
+ "outputs": [
1401
+ {
1402
+ "internalType": "uint256",
1403
+ "name": "",
1404
+ "type": "uint256"
1405
+ }
1406
+ ],
1407
+ "stateMutability": "view",
1408
+ "type": "function"
1409
+ },
1410
+ {
1411
+ "inputs": [],
1412
+ "name": "totalLiquidity0",
1413
+ "outputs": [
1414
+ {
1415
+ "internalType": "uint256",
1416
+ "name": "",
1417
+ "type": "uint256"
1418
+ }
1419
+ ],
1420
+ "stateMutability": "view",
1421
+ "type": "function"
1422
+ },
1423
+ {
1424
+ "inputs": [],
1425
+ "name": "totalLiquidityNFT",
1426
+ "outputs": [
1427
+ {
1428
+ "internalType": "uint128",
1429
+ "name": "",
1430
+ "type": "uint128"
1431
+ }
1432
+ ],
1433
+ "stateMutability": "view",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [],
1438
+ "name": "totalSupply",
1439
+ "outputs": [
1440
+ {
1441
+ "internalType": "uint256",
1442
+ "name": "",
1443
+ "type": "uint256"
1444
+ }
1445
+ ],
1446
+ "stateMutability": "view",
1447
+ "type": "function"
1448
+ },
1449
+ {
1450
+ "inputs": [
1451
+ {
1452
+ "internalType": "address",
1453
+ "name": "to",
1454
+ "type": "address"
1455
+ },
1456
+ {
1457
+ "internalType": "uint256",
1458
+ "name": "amount",
1459
+ "type": "uint256"
1460
+ }
1461
+ ],
1462
+ "name": "transfer",
1463
+ "outputs": [
1464
+ {
1465
+ "internalType": "bool",
1466
+ "name": "",
1467
+ "type": "bool"
1468
+ }
1469
+ ],
1470
+ "stateMutability": "nonpayable",
1471
+ "type": "function"
1472
+ },
1473
+ {
1474
+ "inputs": [
1475
+ {
1476
+ "internalType": "address",
1477
+ "name": "from",
1478
+ "type": "address"
1479
+ },
1480
+ {
1481
+ "internalType": "address",
1482
+ "name": "to",
1483
+ "type": "address"
1484
+ },
1485
+ {
1486
+ "internalType": "uint256",
1487
+ "name": "amount",
1488
+ "type": "uint256"
1489
+ }
1490
+ ],
1491
+ "name": "transferFrom",
1492
+ "outputs": [
1493
+ {
1494
+ "internalType": "bool",
1495
+ "name": "",
1496
+ "type": "bool"
1497
+ }
1498
+ ],
1499
+ "stateMutability": "nonpayable",
1500
+ "type": "function"
1501
+ },
1502
+ {
1503
+ "inputs": [
1504
+ {
1505
+ "internalType": "address",
1506
+ "name": "newOwner",
1507
+ "type": "address"
1508
+ }
1509
+ ],
1510
+ "name": "transferOwnership",
1511
+ "outputs": [],
1512
+ "stateMutability": "nonpayable",
1513
+ "type": "function"
1514
+ },
1515
+ {
1516
+ "inputs": [],
1517
+ "name": "withdrawManagerBalance",
1518
+ "outputs": [],
1519
+ "stateMutability": "nonpayable",
1520
+ "type": "function"
1521
+ }
1522
+ ]
1523
+ ''')