@ichidao/ichi-vaults-sdk 0.0.111 → 0.0.113

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.
Files changed (40) hide show
  1. package/README.md +3 -0
  2. package/dist/abis/types/ClPool.d.ts +986 -0
  3. package/dist/abis/types/ClPool.js +3 -0
  4. package/dist/abis/types/ClPool.js.map +1 -0
  5. package/dist/abis/types/factories/ClPool__factory.d.ts +1020 -0
  6. package/dist/abis/types/factories/ClPool__factory.js +1317 -0
  7. package/dist/abis/types/factories/ClPool__factory.js.map +1 -0
  8. package/dist/abis/types/factories/index.d.ts +1 -0
  9. package/dist/abis/types/factories/index.js +3 -1
  10. package/dist/abis/types/factories/index.js.map +1 -1
  11. package/dist/abis/types/index.d.ts +2 -0
  12. package/dist/abis/types/index.js +3 -1
  13. package/dist/abis/types/index.js.map +1 -1
  14. package/dist/src/abis/types/ClPool.d.ts +986 -0
  15. package/dist/src/abis/types/factories/ClPool__factory.d.ts +1020 -0
  16. package/dist/src/abis/types/factories/index.d.ts +1 -0
  17. package/dist/src/abis/types/index.d.ts +2 -0
  18. package/dist/src/contracts/index.d.ts +2 -1
  19. package/dist/src/contracts/index.js +11 -1
  20. package/dist/src/contracts/index.js.map +1 -1
  21. package/dist/src/functions/priceFromPool.d.ts +2 -1
  22. package/dist/src/functions/priceFromPool.js +63 -33
  23. package/dist/src/functions/priceFromPool.js.map +1 -1
  24. package/dist/src/functions/vaultMetrics.js +31 -55
  25. package/dist/src/functions/vaultMetrics.js.map +1 -1
  26. package/dist/src/graphql/constants.js +57 -44
  27. package/dist/src/graphql/constants.js.map +1 -1
  28. package/dist/src/index.cjs.js +1 -1
  29. package/dist/src/index.esm.js +1 -1
  30. package/dist/src/src/contracts/index.d.ts +2 -1
  31. package/dist/src/src/functions/priceFromPool.d.ts +2 -1
  32. package/dist/src/src/types/index.d.ts +3 -0
  33. package/dist/src/src/utils/config/addresses.d.ts +4 -0
  34. package/dist/src/types/index.d.ts +3 -0
  35. package/dist/src/types/index.js +3 -1
  36. package/dist/src/types/index.js.map +1 -1
  37. package/dist/src/utils/config/addresses.d.ts +4 -0
  38. package/dist/src/utils/config/addresses.js +144 -118
  39. package/dist/src/utils/config/addresses.js.map +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,1317 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ClPool__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: true,
14
+ internalType: "address",
15
+ name: "owner",
16
+ type: "address",
17
+ },
18
+ {
19
+ indexed: true,
20
+ internalType: "int24",
21
+ name: "tickLower",
22
+ type: "int24",
23
+ },
24
+ {
25
+ indexed: true,
26
+ internalType: "int24",
27
+ name: "tickUpper",
28
+ type: "int24",
29
+ },
30
+ {
31
+ indexed: false,
32
+ internalType: "uint128",
33
+ name: "amount",
34
+ type: "uint128",
35
+ },
36
+ {
37
+ indexed: false,
38
+ internalType: "uint256",
39
+ name: "amount0",
40
+ type: "uint256",
41
+ },
42
+ {
43
+ indexed: false,
44
+ internalType: "uint256",
45
+ name: "amount1",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ name: "Burn",
50
+ type: "event",
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [
55
+ {
56
+ indexed: true,
57
+ internalType: "address",
58
+ name: "owner",
59
+ type: "address",
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: "address",
64
+ name: "recipient",
65
+ type: "address",
66
+ },
67
+ {
68
+ indexed: true,
69
+ internalType: "int24",
70
+ name: "tickLower",
71
+ type: "int24",
72
+ },
73
+ {
74
+ indexed: true,
75
+ internalType: "int24",
76
+ name: "tickUpper",
77
+ type: "int24",
78
+ },
79
+ {
80
+ indexed: false,
81
+ internalType: "uint128",
82
+ name: "amount0",
83
+ type: "uint128",
84
+ },
85
+ {
86
+ indexed: false,
87
+ internalType: "uint128",
88
+ name: "amount1",
89
+ type: "uint128",
90
+ },
91
+ ],
92
+ name: "Collect",
93
+ type: "event",
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [
98
+ {
99
+ indexed: true,
100
+ internalType: "address",
101
+ name: "recipient",
102
+ type: "address",
103
+ },
104
+ {
105
+ indexed: false,
106
+ internalType: "uint128",
107
+ name: "amount0",
108
+ type: "uint128",
109
+ },
110
+ {
111
+ indexed: false,
112
+ internalType: "uint128",
113
+ name: "amount1",
114
+ type: "uint128",
115
+ },
116
+ ],
117
+ name: "CollectFees",
118
+ type: "event",
119
+ },
120
+ {
121
+ anonymous: false,
122
+ inputs: [
123
+ {
124
+ indexed: true,
125
+ internalType: "address",
126
+ name: "sender",
127
+ type: "address",
128
+ },
129
+ {
130
+ indexed: true,
131
+ internalType: "address",
132
+ name: "recipient",
133
+ type: "address",
134
+ },
135
+ {
136
+ indexed: false,
137
+ internalType: "uint256",
138
+ name: "amount0",
139
+ type: "uint256",
140
+ },
141
+ {
142
+ indexed: false,
143
+ internalType: "uint256",
144
+ name: "amount1",
145
+ type: "uint256",
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: "uint256",
150
+ name: "paid0",
151
+ type: "uint256",
152
+ },
153
+ {
154
+ indexed: false,
155
+ internalType: "uint256",
156
+ name: "paid1",
157
+ type: "uint256",
158
+ },
159
+ ],
160
+ name: "Flash",
161
+ type: "event",
162
+ },
163
+ {
164
+ anonymous: false,
165
+ inputs: [
166
+ {
167
+ indexed: false,
168
+ internalType: "uint16",
169
+ name: "observationCardinalityNextOld",
170
+ type: "uint16",
171
+ },
172
+ {
173
+ indexed: false,
174
+ internalType: "uint16",
175
+ name: "observationCardinalityNextNew",
176
+ type: "uint16",
177
+ },
178
+ ],
179
+ name: "IncreaseObservationCardinalityNext",
180
+ type: "event",
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: false,
187
+ internalType: "uint160",
188
+ name: "sqrtPriceX96",
189
+ type: "uint160",
190
+ },
191
+ {
192
+ indexed: false,
193
+ internalType: "int24",
194
+ name: "tick",
195
+ type: "int24",
196
+ },
197
+ ],
198
+ name: "Initialize",
199
+ type: "event",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ indexed: false,
206
+ internalType: "address",
207
+ name: "sender",
208
+ type: "address",
209
+ },
210
+ {
211
+ indexed: true,
212
+ internalType: "address",
213
+ name: "owner",
214
+ type: "address",
215
+ },
216
+ {
217
+ indexed: true,
218
+ internalType: "int24",
219
+ name: "tickLower",
220
+ type: "int24",
221
+ },
222
+ {
223
+ indexed: true,
224
+ internalType: "int24",
225
+ name: "tickUpper",
226
+ type: "int24",
227
+ },
228
+ {
229
+ indexed: false,
230
+ internalType: "uint128",
231
+ name: "amount",
232
+ type: "uint128",
233
+ },
234
+ {
235
+ indexed: false,
236
+ internalType: "uint256",
237
+ name: "amount0",
238
+ type: "uint256",
239
+ },
240
+ {
241
+ indexed: false,
242
+ internalType: "uint256",
243
+ name: "amount1",
244
+ type: "uint256",
245
+ },
246
+ ],
247
+ name: "Mint",
248
+ type: "event",
249
+ },
250
+ {
251
+ anonymous: false,
252
+ inputs: [
253
+ {
254
+ indexed: false,
255
+ internalType: "uint8",
256
+ name: "feeProtocol0Old",
257
+ type: "uint8",
258
+ },
259
+ {
260
+ indexed: false,
261
+ internalType: "uint8",
262
+ name: "feeProtocol1Old",
263
+ type: "uint8",
264
+ },
265
+ {
266
+ indexed: false,
267
+ internalType: "uint8",
268
+ name: "feeProtocol0New",
269
+ type: "uint8",
270
+ },
271
+ {
272
+ indexed: false,
273
+ internalType: "uint8",
274
+ name: "feeProtocol1New",
275
+ type: "uint8",
276
+ },
277
+ ],
278
+ name: "SetFeeProtocol",
279
+ type: "event",
280
+ },
281
+ {
282
+ anonymous: false,
283
+ inputs: [
284
+ {
285
+ indexed: true,
286
+ internalType: "address",
287
+ name: "sender",
288
+ type: "address",
289
+ },
290
+ {
291
+ indexed: true,
292
+ internalType: "address",
293
+ name: "recipient",
294
+ type: "address",
295
+ },
296
+ {
297
+ indexed: false,
298
+ internalType: "int256",
299
+ name: "amount0",
300
+ type: "int256",
301
+ },
302
+ {
303
+ indexed: false,
304
+ internalType: "int256",
305
+ name: "amount1",
306
+ type: "int256",
307
+ },
308
+ {
309
+ indexed: false,
310
+ internalType: "uint160",
311
+ name: "sqrtPriceX96",
312
+ type: "uint160",
313
+ },
314
+ {
315
+ indexed: false,
316
+ internalType: "uint128",
317
+ name: "liquidity",
318
+ type: "uint128",
319
+ },
320
+ {
321
+ indexed: false,
322
+ internalType: "int24",
323
+ name: "tick",
324
+ type: "int24",
325
+ },
326
+ ],
327
+ name: "Swap",
328
+ type: "event",
329
+ },
330
+ {
331
+ inputs: [
332
+ {
333
+ internalType: "int24",
334
+ name: "tickLower",
335
+ type: "int24",
336
+ },
337
+ {
338
+ internalType: "int24",
339
+ name: "tickUpper",
340
+ type: "int24",
341
+ },
342
+ {
343
+ internalType: "uint128",
344
+ name: "amount",
345
+ type: "uint128",
346
+ },
347
+ {
348
+ internalType: "address",
349
+ name: "owner",
350
+ type: "address",
351
+ },
352
+ ],
353
+ name: "burn",
354
+ outputs: [
355
+ {
356
+ internalType: "uint256",
357
+ name: "amount0",
358
+ type: "uint256",
359
+ },
360
+ {
361
+ internalType: "uint256",
362
+ name: "amount1",
363
+ type: "uint256",
364
+ },
365
+ ],
366
+ stateMutability: "nonpayable",
367
+ type: "function",
368
+ },
369
+ {
370
+ inputs: [
371
+ {
372
+ internalType: "int24",
373
+ name: "tickLower",
374
+ type: "int24",
375
+ },
376
+ {
377
+ internalType: "int24",
378
+ name: "tickUpper",
379
+ type: "int24",
380
+ },
381
+ {
382
+ internalType: "uint128",
383
+ name: "amount",
384
+ type: "uint128",
385
+ },
386
+ ],
387
+ name: "burn",
388
+ outputs: [
389
+ {
390
+ internalType: "uint256",
391
+ name: "amount0",
392
+ type: "uint256",
393
+ },
394
+ {
395
+ internalType: "uint256",
396
+ name: "amount1",
397
+ type: "uint256",
398
+ },
399
+ ],
400
+ stateMutability: "nonpayable",
401
+ type: "function",
402
+ },
403
+ {
404
+ inputs: [
405
+ {
406
+ internalType: "address",
407
+ name: "recipient",
408
+ type: "address",
409
+ },
410
+ {
411
+ internalType: "int24",
412
+ name: "tickLower",
413
+ type: "int24",
414
+ },
415
+ {
416
+ internalType: "int24",
417
+ name: "tickUpper",
418
+ type: "int24",
419
+ },
420
+ {
421
+ internalType: "uint128",
422
+ name: "amount0Requested",
423
+ type: "uint128",
424
+ },
425
+ {
426
+ internalType: "uint128",
427
+ name: "amount1Requested",
428
+ type: "uint128",
429
+ },
430
+ {
431
+ internalType: "address",
432
+ name: "owner",
433
+ type: "address",
434
+ },
435
+ ],
436
+ name: "collect",
437
+ outputs: [
438
+ {
439
+ internalType: "uint128",
440
+ name: "amount0",
441
+ type: "uint128",
442
+ },
443
+ {
444
+ internalType: "uint128",
445
+ name: "amount1",
446
+ type: "uint128",
447
+ },
448
+ ],
449
+ stateMutability: "nonpayable",
450
+ type: "function",
451
+ },
452
+ {
453
+ inputs: [
454
+ {
455
+ internalType: "address",
456
+ name: "recipient",
457
+ type: "address",
458
+ },
459
+ {
460
+ internalType: "int24",
461
+ name: "tickLower",
462
+ type: "int24",
463
+ },
464
+ {
465
+ internalType: "int24",
466
+ name: "tickUpper",
467
+ type: "int24",
468
+ },
469
+ {
470
+ internalType: "uint128",
471
+ name: "amount0Requested",
472
+ type: "uint128",
473
+ },
474
+ {
475
+ internalType: "uint128",
476
+ name: "amount1Requested",
477
+ type: "uint128",
478
+ },
479
+ ],
480
+ name: "collect",
481
+ outputs: [
482
+ {
483
+ internalType: "uint128",
484
+ name: "amount0",
485
+ type: "uint128",
486
+ },
487
+ {
488
+ internalType: "uint128",
489
+ name: "amount1",
490
+ type: "uint128",
491
+ },
492
+ ],
493
+ stateMutability: "nonpayable",
494
+ type: "function",
495
+ },
496
+ {
497
+ inputs: [],
498
+ name: "collectFees",
499
+ outputs: [
500
+ {
501
+ internalType: "uint128",
502
+ name: "amount0",
503
+ type: "uint128",
504
+ },
505
+ {
506
+ internalType: "uint128",
507
+ name: "amount1",
508
+ type: "uint128",
509
+ },
510
+ ],
511
+ stateMutability: "nonpayable",
512
+ type: "function",
513
+ },
514
+ {
515
+ inputs: [],
516
+ name: "factory",
517
+ outputs: [
518
+ {
519
+ internalType: "address",
520
+ name: "",
521
+ type: "address",
522
+ },
523
+ ],
524
+ stateMutability: "view",
525
+ type: "function",
526
+ },
527
+ {
528
+ inputs: [],
529
+ name: "fee",
530
+ outputs: [
531
+ {
532
+ internalType: "uint24",
533
+ name: "",
534
+ type: "uint24",
535
+ },
536
+ ],
537
+ stateMutability: "view",
538
+ type: "function",
539
+ },
540
+ {
541
+ inputs: [],
542
+ name: "feeGrowthGlobal0X128",
543
+ outputs: [
544
+ {
545
+ internalType: "uint256",
546
+ name: "",
547
+ type: "uint256",
548
+ },
549
+ ],
550
+ stateMutability: "view",
551
+ type: "function",
552
+ },
553
+ {
554
+ inputs: [],
555
+ name: "feeGrowthGlobal1X128",
556
+ outputs: [
557
+ {
558
+ internalType: "uint256",
559
+ name: "",
560
+ type: "uint256",
561
+ },
562
+ ],
563
+ stateMutability: "view",
564
+ type: "function",
565
+ },
566
+ {
567
+ inputs: [
568
+ {
569
+ internalType: "address",
570
+ name: "recipient",
571
+ type: "address",
572
+ },
573
+ {
574
+ internalType: "uint256",
575
+ name: "amount0",
576
+ type: "uint256",
577
+ },
578
+ {
579
+ internalType: "uint256",
580
+ name: "amount1",
581
+ type: "uint256",
582
+ },
583
+ {
584
+ internalType: "bytes",
585
+ name: "data",
586
+ type: "bytes",
587
+ },
588
+ ],
589
+ name: "flash",
590
+ outputs: [],
591
+ stateMutability: "nonpayable",
592
+ type: "function",
593
+ },
594
+ {
595
+ inputs: [],
596
+ name: "gauge",
597
+ outputs: [
598
+ {
599
+ internalType: "address",
600
+ name: "",
601
+ type: "address",
602
+ },
603
+ ],
604
+ stateMutability: "view",
605
+ type: "function",
606
+ },
607
+ {
608
+ inputs: [],
609
+ name: "gaugeFees",
610
+ outputs: [
611
+ {
612
+ internalType: "uint128",
613
+ name: "token0",
614
+ type: "uint128",
615
+ },
616
+ {
617
+ internalType: "uint128",
618
+ name: "token1",
619
+ type: "uint128",
620
+ },
621
+ ],
622
+ stateMutability: "view",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "int24",
629
+ name: "tickLower",
630
+ type: "int24",
631
+ },
632
+ {
633
+ internalType: "int24",
634
+ name: "tickUpper",
635
+ type: "int24",
636
+ },
637
+ {
638
+ internalType: "uint256",
639
+ name: "_rewardGrowthGlobalX128",
640
+ type: "uint256",
641
+ },
642
+ ],
643
+ name: "getRewardGrowthInside",
644
+ outputs: [
645
+ {
646
+ internalType: "uint256",
647
+ name: "rewardGrowthInside",
648
+ type: "uint256",
649
+ },
650
+ ],
651
+ stateMutability: "view",
652
+ type: "function",
653
+ },
654
+ {
655
+ inputs: [
656
+ {
657
+ internalType: "uint16",
658
+ name: "observationCardinalityNext",
659
+ type: "uint16",
660
+ },
661
+ ],
662
+ name: "increaseObservationCardinalityNext",
663
+ outputs: [],
664
+ stateMutability: "nonpayable",
665
+ type: "function",
666
+ },
667
+ {
668
+ inputs: [
669
+ {
670
+ internalType: "address",
671
+ name: "_factory",
672
+ type: "address",
673
+ },
674
+ {
675
+ internalType: "address",
676
+ name: "_token0",
677
+ type: "address",
678
+ },
679
+ {
680
+ internalType: "address",
681
+ name: "_token1",
682
+ type: "address",
683
+ },
684
+ {
685
+ internalType: "int24",
686
+ name: "_tickSpacing",
687
+ type: "int24",
688
+ },
689
+ {
690
+ internalType: "uint160",
691
+ name: "_sqrtPriceX96",
692
+ type: "uint160",
693
+ },
694
+ {
695
+ internalType: "address",
696
+ name: "_gauge",
697
+ type: "address",
698
+ },
699
+ {
700
+ internalType: "address",
701
+ name: "_nft",
702
+ type: "address",
703
+ },
704
+ ],
705
+ name: "initialize",
706
+ outputs: [],
707
+ stateMutability: "nonpayable",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [],
712
+ name: "lastUpdated",
713
+ outputs: [
714
+ {
715
+ internalType: "uint32",
716
+ name: "",
717
+ type: "uint32",
718
+ },
719
+ ],
720
+ stateMutability: "view",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [],
725
+ name: "liquidity",
726
+ outputs: [
727
+ {
728
+ internalType: "uint128",
729
+ name: "",
730
+ type: "uint128",
731
+ },
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function",
735
+ },
736
+ {
737
+ inputs: [],
738
+ name: "maxLiquidityPerTick",
739
+ outputs: [
740
+ {
741
+ internalType: "uint128",
742
+ name: "",
743
+ type: "uint128",
744
+ },
745
+ ],
746
+ stateMutability: "view",
747
+ type: "function",
748
+ },
749
+ {
750
+ inputs: [
751
+ {
752
+ internalType: "address",
753
+ name: "recipient",
754
+ type: "address",
755
+ },
756
+ {
757
+ internalType: "int24",
758
+ name: "tickLower",
759
+ type: "int24",
760
+ },
761
+ {
762
+ internalType: "int24",
763
+ name: "tickUpper",
764
+ type: "int24",
765
+ },
766
+ {
767
+ internalType: "uint128",
768
+ name: "amount",
769
+ type: "uint128",
770
+ },
771
+ {
772
+ internalType: "bytes",
773
+ name: "data",
774
+ type: "bytes",
775
+ },
776
+ ],
777
+ name: "mint",
778
+ outputs: [
779
+ {
780
+ internalType: "uint256",
781
+ name: "amount0",
782
+ type: "uint256",
783
+ },
784
+ {
785
+ internalType: "uint256",
786
+ name: "amount1",
787
+ type: "uint256",
788
+ },
789
+ ],
790
+ stateMutability: "nonpayable",
791
+ type: "function",
792
+ },
793
+ {
794
+ inputs: [],
795
+ name: "nft",
796
+ outputs: [
797
+ {
798
+ internalType: "address",
799
+ name: "",
800
+ type: "address",
801
+ },
802
+ ],
803
+ stateMutability: "view",
804
+ type: "function",
805
+ },
806
+ {
807
+ inputs: [
808
+ {
809
+ internalType: "uint256",
810
+ name: "",
811
+ type: "uint256",
812
+ },
813
+ ],
814
+ name: "observations",
815
+ outputs: [
816
+ {
817
+ internalType: "uint32",
818
+ name: "blockTimestamp",
819
+ type: "uint32",
820
+ },
821
+ {
822
+ internalType: "int56",
823
+ name: "tickCumulative",
824
+ type: "int56",
825
+ },
826
+ {
827
+ internalType: "uint160",
828
+ name: "secondsPerLiquidityCumulativeX128",
829
+ type: "uint160",
830
+ },
831
+ {
832
+ internalType: "bool",
833
+ name: "initialized",
834
+ type: "bool",
835
+ },
836
+ ],
837
+ stateMutability: "view",
838
+ type: "function",
839
+ },
840
+ {
841
+ inputs: [
842
+ {
843
+ internalType: "uint32[]",
844
+ name: "secondsAgos",
845
+ type: "uint32[]",
846
+ },
847
+ ],
848
+ name: "observe",
849
+ outputs: [
850
+ {
851
+ internalType: "int56[]",
852
+ name: "tickCumulatives",
853
+ type: "int56[]",
854
+ },
855
+ {
856
+ internalType: "uint160[]",
857
+ name: "secondsPerLiquidityCumulativeX128s",
858
+ type: "uint160[]",
859
+ },
860
+ ],
861
+ stateMutability: "view",
862
+ type: "function",
863
+ },
864
+ {
865
+ inputs: [],
866
+ name: "periodFinish",
867
+ outputs: [
868
+ {
869
+ internalType: "uint256",
870
+ name: "",
871
+ type: "uint256",
872
+ },
873
+ ],
874
+ stateMutability: "view",
875
+ type: "function",
876
+ },
877
+ {
878
+ inputs: [
879
+ {
880
+ internalType: "bytes32",
881
+ name: "",
882
+ type: "bytes32",
883
+ },
884
+ ],
885
+ name: "positions",
886
+ outputs: [
887
+ {
888
+ internalType: "uint128",
889
+ name: "liquidity",
890
+ type: "uint128",
891
+ },
892
+ {
893
+ internalType: "uint256",
894
+ name: "feeGrowthInside0LastX128",
895
+ type: "uint256",
896
+ },
897
+ {
898
+ internalType: "uint256",
899
+ name: "feeGrowthInside1LastX128",
900
+ type: "uint256",
901
+ },
902
+ {
903
+ internalType: "uint128",
904
+ name: "tokensOwed0",
905
+ type: "uint128",
906
+ },
907
+ {
908
+ internalType: "uint128",
909
+ name: "tokensOwed1",
910
+ type: "uint128",
911
+ },
912
+ ],
913
+ stateMutability: "view",
914
+ type: "function",
915
+ },
916
+ {
917
+ inputs: [],
918
+ name: "rewardGrowthGlobalX128",
919
+ outputs: [
920
+ {
921
+ internalType: "uint256",
922
+ name: "",
923
+ type: "uint256",
924
+ },
925
+ ],
926
+ stateMutability: "view",
927
+ type: "function",
928
+ },
929
+ {
930
+ inputs: [],
931
+ name: "rewardRate",
932
+ outputs: [
933
+ {
934
+ internalType: "uint256",
935
+ name: "",
936
+ type: "uint256",
937
+ },
938
+ ],
939
+ stateMutability: "view",
940
+ type: "function",
941
+ },
942
+ {
943
+ inputs: [],
944
+ name: "rewardReserve",
945
+ outputs: [
946
+ {
947
+ internalType: "uint256",
948
+ name: "",
949
+ type: "uint256",
950
+ },
951
+ ],
952
+ stateMutability: "view",
953
+ type: "function",
954
+ },
955
+ {
956
+ inputs: [],
957
+ name: "rollover",
958
+ outputs: [
959
+ {
960
+ internalType: "uint256",
961
+ name: "",
962
+ type: "uint256",
963
+ },
964
+ ],
965
+ stateMutability: "view",
966
+ type: "function",
967
+ },
968
+ {
969
+ inputs: [],
970
+ name: "slot0",
971
+ outputs: [
972
+ {
973
+ internalType: "uint160",
974
+ name: "sqrtPriceX96",
975
+ type: "uint160",
976
+ },
977
+ {
978
+ internalType: "int24",
979
+ name: "tick",
980
+ type: "int24",
981
+ },
982
+ {
983
+ internalType: "uint16",
984
+ name: "observationIndex",
985
+ type: "uint16",
986
+ },
987
+ {
988
+ internalType: "uint16",
989
+ name: "observationCardinality",
990
+ type: "uint16",
991
+ },
992
+ {
993
+ internalType: "uint16",
994
+ name: "observationCardinalityNext",
995
+ type: "uint16",
996
+ },
997
+ {
998
+ internalType: "bool",
999
+ name: "unlocked",
1000
+ type: "bool",
1001
+ },
1002
+ ],
1003
+ stateMutability: "view",
1004
+ type: "function",
1005
+ },
1006
+ {
1007
+ inputs: [
1008
+ {
1009
+ internalType: "int24",
1010
+ name: "tickLower",
1011
+ type: "int24",
1012
+ },
1013
+ {
1014
+ internalType: "int24",
1015
+ name: "tickUpper",
1016
+ type: "int24",
1017
+ },
1018
+ ],
1019
+ name: "snapshotCumulativesInside",
1020
+ outputs: [
1021
+ {
1022
+ internalType: "int56",
1023
+ name: "tickCumulativeInside",
1024
+ type: "int56",
1025
+ },
1026
+ {
1027
+ internalType: "uint160",
1028
+ name: "secondsPerLiquidityInsideX128",
1029
+ type: "uint160",
1030
+ },
1031
+ {
1032
+ internalType: "uint32",
1033
+ name: "secondsInside",
1034
+ type: "uint32",
1035
+ },
1036
+ ],
1037
+ stateMutability: "view",
1038
+ type: "function",
1039
+ },
1040
+ {
1041
+ inputs: [
1042
+ {
1043
+ internalType: "int128",
1044
+ name: "stakedLiquidityDelta",
1045
+ type: "int128",
1046
+ },
1047
+ {
1048
+ internalType: "int24",
1049
+ name: "tickLower",
1050
+ type: "int24",
1051
+ },
1052
+ {
1053
+ internalType: "int24",
1054
+ name: "tickUpper",
1055
+ type: "int24",
1056
+ },
1057
+ ],
1058
+ name: "stake",
1059
+ outputs: [],
1060
+ stateMutability: "nonpayable",
1061
+ type: "function",
1062
+ },
1063
+ {
1064
+ inputs: [],
1065
+ name: "stakedLiquidity",
1066
+ outputs: [
1067
+ {
1068
+ internalType: "uint128",
1069
+ name: "",
1070
+ type: "uint128",
1071
+ },
1072
+ ],
1073
+ stateMutability: "view",
1074
+ type: "function",
1075
+ },
1076
+ {
1077
+ inputs: [
1078
+ {
1079
+ internalType: "address",
1080
+ name: "recipient",
1081
+ type: "address",
1082
+ },
1083
+ {
1084
+ internalType: "bool",
1085
+ name: "zeroForOne",
1086
+ type: "bool",
1087
+ },
1088
+ {
1089
+ internalType: "int256",
1090
+ name: "amountSpecified",
1091
+ type: "int256",
1092
+ },
1093
+ {
1094
+ internalType: "uint160",
1095
+ name: "sqrtPriceLimitX96",
1096
+ type: "uint160",
1097
+ },
1098
+ {
1099
+ internalType: "bytes",
1100
+ name: "data",
1101
+ type: "bytes",
1102
+ },
1103
+ ],
1104
+ name: "swap",
1105
+ outputs: [
1106
+ {
1107
+ internalType: "int256",
1108
+ name: "amount0",
1109
+ type: "int256",
1110
+ },
1111
+ {
1112
+ internalType: "int256",
1113
+ name: "amount1",
1114
+ type: "int256",
1115
+ },
1116
+ ],
1117
+ stateMutability: "nonpayable",
1118
+ type: "function",
1119
+ },
1120
+ {
1121
+ inputs: [
1122
+ {
1123
+ internalType: "uint256",
1124
+ name: "_rewardRate",
1125
+ type: "uint256",
1126
+ },
1127
+ {
1128
+ internalType: "uint256",
1129
+ name: "_rewardReserve",
1130
+ type: "uint256",
1131
+ },
1132
+ {
1133
+ internalType: "uint256",
1134
+ name: "_periodFinish",
1135
+ type: "uint256",
1136
+ },
1137
+ ],
1138
+ name: "syncReward",
1139
+ outputs: [],
1140
+ stateMutability: "nonpayable",
1141
+ type: "function",
1142
+ },
1143
+ {
1144
+ inputs: [
1145
+ {
1146
+ internalType: "int16",
1147
+ name: "",
1148
+ type: "int16",
1149
+ },
1150
+ ],
1151
+ name: "tickBitmap",
1152
+ outputs: [
1153
+ {
1154
+ internalType: "uint256",
1155
+ name: "",
1156
+ type: "uint256",
1157
+ },
1158
+ ],
1159
+ stateMutability: "view",
1160
+ type: "function",
1161
+ },
1162
+ {
1163
+ inputs: [],
1164
+ name: "tickSpacing",
1165
+ outputs: [
1166
+ {
1167
+ internalType: "int24",
1168
+ name: "",
1169
+ type: "int24",
1170
+ },
1171
+ ],
1172
+ stateMutability: "view",
1173
+ type: "function",
1174
+ },
1175
+ {
1176
+ inputs: [
1177
+ {
1178
+ internalType: "int24",
1179
+ name: "",
1180
+ type: "int24",
1181
+ },
1182
+ ],
1183
+ name: "ticks",
1184
+ outputs: [
1185
+ {
1186
+ internalType: "uint128",
1187
+ name: "liquidityGross",
1188
+ type: "uint128",
1189
+ },
1190
+ {
1191
+ internalType: "int128",
1192
+ name: "liquidityNet",
1193
+ type: "int128",
1194
+ },
1195
+ {
1196
+ internalType: "int128",
1197
+ name: "stakedLiquidityNet",
1198
+ type: "int128",
1199
+ },
1200
+ {
1201
+ internalType: "uint256",
1202
+ name: "feeGrowthOutside0X128",
1203
+ type: "uint256",
1204
+ },
1205
+ {
1206
+ internalType: "uint256",
1207
+ name: "feeGrowthOutside1X128",
1208
+ type: "uint256",
1209
+ },
1210
+ {
1211
+ internalType: "uint256",
1212
+ name: "rewardGrowthOutsideX128",
1213
+ type: "uint256",
1214
+ },
1215
+ {
1216
+ internalType: "int56",
1217
+ name: "tickCumulativeOutside",
1218
+ type: "int56",
1219
+ },
1220
+ {
1221
+ internalType: "uint160",
1222
+ name: "secondsPerLiquidityOutsideX128",
1223
+ type: "uint160",
1224
+ },
1225
+ {
1226
+ internalType: "uint32",
1227
+ name: "secondsOutside",
1228
+ type: "uint32",
1229
+ },
1230
+ {
1231
+ internalType: "bool",
1232
+ name: "initialized",
1233
+ type: "bool",
1234
+ },
1235
+ ],
1236
+ stateMutability: "view",
1237
+ type: "function",
1238
+ },
1239
+ {
1240
+ inputs: [],
1241
+ name: "token0",
1242
+ outputs: [
1243
+ {
1244
+ internalType: "address",
1245
+ name: "",
1246
+ type: "address",
1247
+ },
1248
+ ],
1249
+ stateMutability: "view",
1250
+ type: "function",
1251
+ },
1252
+ {
1253
+ inputs: [],
1254
+ name: "token1",
1255
+ outputs: [
1256
+ {
1257
+ internalType: "address",
1258
+ name: "",
1259
+ type: "address",
1260
+ },
1261
+ ],
1262
+ stateMutability: "view",
1263
+ type: "function",
1264
+ },
1265
+ {
1266
+ inputs: [],
1267
+ name: "tokens",
1268
+ outputs: [
1269
+ {
1270
+ internalType: "address",
1271
+ name: "token0_",
1272
+ type: "address",
1273
+ },
1274
+ {
1275
+ internalType: "address",
1276
+ name: "token1_",
1277
+ type: "address",
1278
+ },
1279
+ ],
1280
+ stateMutability: "view",
1281
+ type: "function",
1282
+ },
1283
+ {
1284
+ inputs: [],
1285
+ name: "unstakedFee",
1286
+ outputs: [
1287
+ {
1288
+ internalType: "uint24",
1289
+ name: "",
1290
+ type: "uint24",
1291
+ },
1292
+ ],
1293
+ stateMutability: "view",
1294
+ type: "function",
1295
+ },
1296
+ {
1297
+ inputs: [],
1298
+ name: "updateRewardsGrowthGlobal",
1299
+ outputs: [],
1300
+ stateMutability: "nonpayable",
1301
+ type: "function",
1302
+ },
1303
+ ];
1304
+ var ClPool__factory = /** @class */ (function () {
1305
+ function ClPool__factory() {
1306
+ }
1307
+ ClPool__factory.createInterface = function () {
1308
+ return new ethers_1.utils.Interface(_abi);
1309
+ };
1310
+ ClPool__factory.connect = function (address, signerOrProvider) {
1311
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1312
+ };
1313
+ ClPool__factory.abi = _abi;
1314
+ return ClPool__factory;
1315
+ }());
1316
+ exports.ClPool__factory = ClPool__factory;
1317
+ //# sourceMappingURL=ClPool__factory.js.map