@ichidao/ichi-vaults-sdk 0.0.19 → 0.0.20

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 (78) hide show
  1. package/README.md +110 -58
  2. package/dist/abis/types/AlgebraPool.d.ts +817 -0
  3. package/dist/abis/types/AlgebraPool.js +3 -0
  4. package/dist/abis/types/AlgebraPool.js.map +1 -0
  5. package/dist/abis/types/DepositGuard.d.ts +100 -13
  6. package/dist/abis/types/UniswapV3Pool.d.ts +771 -0
  7. package/dist/abis/types/UniswapV3Pool.js +3 -0
  8. package/dist/abis/types/UniswapV3Pool.js.map +1 -0
  9. package/dist/abis/types/factories/AlgebraPool__factory.d.ts +821 -0
  10. package/dist/abis/types/factories/AlgebraPool__factory.js +1062 -0
  11. package/dist/abis/types/factories/AlgebraPool__factory.js.map +1 -0
  12. package/dist/abis/types/factories/DepositGuard__factory.d.ts +124 -4
  13. package/dist/abis/types/factories/DepositGuard__factory.js +160 -5
  14. package/dist/abis/types/factories/DepositGuard__factory.js.map +1 -1
  15. package/dist/abis/types/factories/UniswapV3Pool__factory.d.ts +781 -0
  16. package/dist/abis/types/factories/UniswapV3Pool__factory.js +1009 -0
  17. package/dist/abis/types/factories/UniswapV3Pool__factory.js.map +1 -0
  18. package/dist/abis/types/factories/index.d.ts +2 -0
  19. package/dist/abis/types/factories/index.js +5 -1
  20. package/dist/abis/types/factories/index.js.map +1 -1
  21. package/dist/abis/types/index.d.ts +4 -0
  22. package/dist/abis/types/index.js +5 -1
  23. package/dist/abis/types/index.js.map +1 -1
  24. package/dist/src/__tests__/index.test.js +37 -41
  25. package/dist/src/__tests__/index.test.js.map +1 -1
  26. package/dist/src/abis/types/AlgebraPool.d.ts +817 -0
  27. package/dist/src/abis/types/DepositGuard.d.ts +100 -13
  28. package/dist/src/abis/types/UniswapV3Pool.d.ts +771 -0
  29. package/dist/src/abis/types/factories/AlgebraPool__factory.d.ts +821 -0
  30. package/dist/src/abis/types/factories/DepositGuard__factory.d.ts +124 -4
  31. package/dist/src/abis/types/factories/UniswapV3Pool__factory.d.ts +781 -0
  32. package/dist/src/abis/types/factories/index.d.ts +2 -0
  33. package/dist/src/abis/types/index.d.ts +4 -0
  34. package/dist/src/contracts/index.d.ts +4 -1
  35. package/dist/src/contracts/index.js +21 -1
  36. package/dist/src/contracts/index.js.map +1 -1
  37. package/dist/src/functions/balances.js +4 -4
  38. package/dist/src/functions/balances.js.map +1 -1
  39. package/dist/src/functions/calculateFees.d.ts +2 -1
  40. package/dist/src/functions/calculateFees.js +212 -15
  41. package/dist/src/functions/calculateFees.js.map +1 -1
  42. package/dist/src/functions/deposit.js +8 -8
  43. package/dist/src/functions/deposit.js.map +1 -1
  44. package/dist/src/functions/fees.d.ts +3 -4
  45. package/dist/src/functions/fees.js +70 -34
  46. package/dist/src/functions/fees.js.map +1 -1
  47. package/dist/src/functions/vault.js +2 -2
  48. package/dist/src/functions/vault.js.map +1 -1
  49. package/dist/src/functions/withdraw.js +1 -1
  50. package/dist/src/functions/withdraw.js.map +1 -1
  51. package/dist/src/graphql/constants.js +18 -12
  52. package/dist/src/graphql/constants.js.map +1 -1
  53. package/dist/src/graphql/queries.d.ts +2 -2
  54. package/dist/src/graphql/queries.js +4 -2
  55. package/dist/src/graphql/queries.js.map +1 -1
  56. package/dist/src/index.cjs.js +1 -1
  57. package/dist/src/index.esm.js +1 -1
  58. package/dist/src/src/contracts/index.d.ts +4 -1
  59. package/dist/src/src/functions/calculateFees.d.ts +2 -1
  60. package/dist/src/src/functions/fees.d.ts +3 -4
  61. package/dist/src/src/graphql/queries.d.ts +2 -2
  62. package/dist/src/src/types/index.d.ts +9 -0
  63. package/dist/src/src/utils/config/addresses.d.ts +5 -1
  64. package/dist/src/src/utils/getPrice.d.ts +2 -0
  65. package/dist/src/src/utils/timestamps.d.ts +1 -0
  66. package/dist/src/types/index.d.ts +9 -0
  67. package/dist/src/types/index.js +2 -0
  68. package/dist/src/types/index.js.map +1 -1
  69. package/dist/src/utils/config/addresses.d.ts +5 -1
  70. package/dist/src/utils/config/addresses.js +120 -33
  71. package/dist/src/utils/config/addresses.js.map +1 -1
  72. package/dist/src/utils/getPrice.d.ts +2 -0
  73. package/dist/src/utils/getPrice.js +18 -0
  74. package/dist/src/utils/getPrice.js.map +1 -0
  75. package/dist/src/utils/timestamps.d.ts +1 -0
  76. package/dist/src/utils/timestamps.js +7 -0
  77. package/dist/src/utils/timestamps.js.map +1 -0
  78. package/package.json +2 -1
@@ -0,0 +1,1009 @@
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.UniswapV3Pool__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [],
11
+ stateMutability: "nonpayable",
12
+ type: "constructor",
13
+ },
14
+ {
15
+ anonymous: false,
16
+ inputs: [
17
+ {
18
+ indexed: true,
19
+ internalType: "address",
20
+ name: "owner",
21
+ type: "address",
22
+ },
23
+ {
24
+ indexed: true,
25
+ internalType: "int24",
26
+ name: "tickLower",
27
+ type: "int24",
28
+ },
29
+ {
30
+ indexed: true,
31
+ internalType: "int24",
32
+ name: "tickUpper",
33
+ type: "int24",
34
+ },
35
+ {
36
+ indexed: false,
37
+ internalType: "uint128",
38
+ name: "amount",
39
+ type: "uint128",
40
+ },
41
+ {
42
+ indexed: false,
43
+ internalType: "uint256",
44
+ name: "amount0",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ indexed: false,
49
+ internalType: "uint256",
50
+ name: "amount1",
51
+ type: "uint256",
52
+ },
53
+ ],
54
+ name: "Burn",
55
+ type: "event",
56
+ },
57
+ {
58
+ anonymous: false,
59
+ inputs: [
60
+ {
61
+ indexed: true,
62
+ internalType: "address",
63
+ name: "owner",
64
+ type: "address",
65
+ },
66
+ {
67
+ indexed: false,
68
+ internalType: "address",
69
+ name: "recipient",
70
+ type: "address",
71
+ },
72
+ {
73
+ indexed: true,
74
+ internalType: "int24",
75
+ name: "tickLower",
76
+ type: "int24",
77
+ },
78
+ {
79
+ indexed: true,
80
+ internalType: "int24",
81
+ name: "tickUpper",
82
+ type: "int24",
83
+ },
84
+ {
85
+ indexed: false,
86
+ internalType: "uint128",
87
+ name: "amount0",
88
+ type: "uint128",
89
+ },
90
+ {
91
+ indexed: false,
92
+ internalType: "uint128",
93
+ name: "amount1",
94
+ type: "uint128",
95
+ },
96
+ ],
97
+ name: "Collect",
98
+ type: "event",
99
+ },
100
+ {
101
+ anonymous: false,
102
+ inputs: [
103
+ {
104
+ indexed: true,
105
+ internalType: "address",
106
+ name: "sender",
107
+ type: "address",
108
+ },
109
+ {
110
+ indexed: true,
111
+ internalType: "address",
112
+ name: "recipient",
113
+ type: "address",
114
+ },
115
+ {
116
+ indexed: false,
117
+ internalType: "uint128",
118
+ name: "amount0",
119
+ type: "uint128",
120
+ },
121
+ {
122
+ indexed: false,
123
+ internalType: "uint128",
124
+ name: "amount1",
125
+ type: "uint128",
126
+ },
127
+ ],
128
+ name: "CollectProtocol",
129
+ type: "event",
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [
134
+ {
135
+ indexed: true,
136
+ internalType: "address",
137
+ name: "sender",
138
+ type: "address",
139
+ },
140
+ {
141
+ indexed: true,
142
+ internalType: "address",
143
+ name: "recipient",
144
+ type: "address",
145
+ },
146
+ {
147
+ indexed: false,
148
+ internalType: "uint256",
149
+ name: "amount0",
150
+ type: "uint256",
151
+ },
152
+ {
153
+ indexed: false,
154
+ internalType: "uint256",
155
+ name: "amount1",
156
+ type: "uint256",
157
+ },
158
+ {
159
+ indexed: false,
160
+ internalType: "uint256",
161
+ name: "paid0",
162
+ type: "uint256",
163
+ },
164
+ {
165
+ indexed: false,
166
+ internalType: "uint256",
167
+ name: "paid1",
168
+ type: "uint256",
169
+ },
170
+ ],
171
+ name: "Flash",
172
+ type: "event",
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ {
178
+ indexed: false,
179
+ internalType: "uint16",
180
+ name: "observationCardinalityNextOld",
181
+ type: "uint16",
182
+ },
183
+ {
184
+ indexed: false,
185
+ internalType: "uint16",
186
+ name: "observationCardinalityNextNew",
187
+ type: "uint16",
188
+ },
189
+ ],
190
+ name: "IncreaseObservationCardinalityNext",
191
+ type: "event",
192
+ },
193
+ {
194
+ anonymous: false,
195
+ inputs: [
196
+ {
197
+ indexed: false,
198
+ internalType: "uint160",
199
+ name: "sqrtPriceX96",
200
+ type: "uint160",
201
+ },
202
+ {
203
+ indexed: false,
204
+ internalType: "int24",
205
+ name: "tick",
206
+ type: "int24",
207
+ },
208
+ ],
209
+ name: "Initialize",
210
+ type: "event",
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ {
216
+ indexed: false,
217
+ internalType: "address",
218
+ name: "sender",
219
+ type: "address",
220
+ },
221
+ {
222
+ indexed: true,
223
+ internalType: "address",
224
+ name: "owner",
225
+ type: "address",
226
+ },
227
+ {
228
+ indexed: true,
229
+ internalType: "int24",
230
+ name: "tickLower",
231
+ type: "int24",
232
+ },
233
+ {
234
+ indexed: true,
235
+ internalType: "int24",
236
+ name: "tickUpper",
237
+ type: "int24",
238
+ },
239
+ {
240
+ indexed: false,
241
+ internalType: "uint128",
242
+ name: "amount",
243
+ type: "uint128",
244
+ },
245
+ {
246
+ indexed: false,
247
+ internalType: "uint256",
248
+ name: "amount0",
249
+ type: "uint256",
250
+ },
251
+ {
252
+ indexed: false,
253
+ internalType: "uint256",
254
+ name: "amount1",
255
+ type: "uint256",
256
+ },
257
+ ],
258
+ name: "Mint",
259
+ type: "event",
260
+ },
261
+ {
262
+ anonymous: false,
263
+ inputs: [
264
+ {
265
+ indexed: false,
266
+ internalType: "uint8",
267
+ name: "feeProtocol0Old",
268
+ type: "uint8",
269
+ },
270
+ {
271
+ indexed: false,
272
+ internalType: "uint8",
273
+ name: "feeProtocol1Old",
274
+ type: "uint8",
275
+ },
276
+ {
277
+ indexed: false,
278
+ internalType: "uint8",
279
+ name: "feeProtocol0New",
280
+ type: "uint8",
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "uint8",
285
+ name: "feeProtocol1New",
286
+ type: "uint8",
287
+ },
288
+ ],
289
+ name: "SetFeeProtocol",
290
+ type: "event",
291
+ },
292
+ {
293
+ anonymous: false,
294
+ inputs: [
295
+ {
296
+ indexed: true,
297
+ internalType: "address",
298
+ name: "sender",
299
+ type: "address",
300
+ },
301
+ {
302
+ indexed: true,
303
+ internalType: "address",
304
+ name: "recipient",
305
+ type: "address",
306
+ },
307
+ {
308
+ indexed: false,
309
+ internalType: "int256",
310
+ name: "amount0",
311
+ type: "int256",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "int256",
316
+ name: "amount1",
317
+ type: "int256",
318
+ },
319
+ {
320
+ indexed: false,
321
+ internalType: "uint160",
322
+ name: "sqrtPriceX96",
323
+ type: "uint160",
324
+ },
325
+ {
326
+ indexed: false,
327
+ internalType: "uint128",
328
+ name: "liquidity",
329
+ type: "uint128",
330
+ },
331
+ {
332
+ indexed: false,
333
+ internalType: "int24",
334
+ name: "tick",
335
+ type: "int24",
336
+ },
337
+ ],
338
+ name: "Swap",
339
+ type: "event",
340
+ },
341
+ {
342
+ inputs: [
343
+ {
344
+ internalType: "int24",
345
+ name: "tickLower",
346
+ type: "int24",
347
+ },
348
+ {
349
+ internalType: "int24",
350
+ name: "tickUpper",
351
+ type: "int24",
352
+ },
353
+ {
354
+ internalType: "uint128",
355
+ name: "amount",
356
+ type: "uint128",
357
+ },
358
+ ],
359
+ name: "burn",
360
+ outputs: [
361
+ {
362
+ internalType: "uint256",
363
+ name: "amount0",
364
+ type: "uint256",
365
+ },
366
+ {
367
+ internalType: "uint256",
368
+ name: "amount1",
369
+ type: "uint256",
370
+ },
371
+ ],
372
+ stateMutability: "nonpayable",
373
+ type: "function",
374
+ },
375
+ {
376
+ inputs: [
377
+ {
378
+ internalType: "address",
379
+ name: "recipient",
380
+ type: "address",
381
+ },
382
+ {
383
+ internalType: "int24",
384
+ name: "tickLower",
385
+ type: "int24",
386
+ },
387
+ {
388
+ internalType: "int24",
389
+ name: "tickUpper",
390
+ type: "int24",
391
+ },
392
+ {
393
+ internalType: "uint128",
394
+ name: "amount0Requested",
395
+ type: "uint128",
396
+ },
397
+ {
398
+ internalType: "uint128",
399
+ name: "amount1Requested",
400
+ type: "uint128",
401
+ },
402
+ ],
403
+ name: "collect",
404
+ outputs: [
405
+ {
406
+ internalType: "uint128",
407
+ name: "amount0",
408
+ type: "uint128",
409
+ },
410
+ {
411
+ internalType: "uint128",
412
+ name: "amount1",
413
+ type: "uint128",
414
+ },
415
+ ],
416
+ stateMutability: "nonpayable",
417
+ type: "function",
418
+ },
419
+ {
420
+ inputs: [
421
+ {
422
+ internalType: "address",
423
+ name: "recipient",
424
+ type: "address",
425
+ },
426
+ {
427
+ internalType: "uint128",
428
+ name: "amount0Requested",
429
+ type: "uint128",
430
+ },
431
+ {
432
+ internalType: "uint128",
433
+ name: "amount1Requested",
434
+ type: "uint128",
435
+ },
436
+ ],
437
+ name: "collectProtocol",
438
+ outputs: [
439
+ {
440
+ internalType: "uint128",
441
+ name: "amount0",
442
+ type: "uint128",
443
+ },
444
+ {
445
+ internalType: "uint128",
446
+ name: "amount1",
447
+ type: "uint128",
448
+ },
449
+ ],
450
+ stateMutability: "nonpayable",
451
+ type: "function",
452
+ },
453
+ {
454
+ inputs: [],
455
+ name: "factory",
456
+ outputs: [
457
+ {
458
+ internalType: "address",
459
+ name: "",
460
+ type: "address",
461
+ },
462
+ ],
463
+ stateMutability: "view",
464
+ type: "function",
465
+ },
466
+ {
467
+ inputs: [],
468
+ name: "fee",
469
+ outputs: [
470
+ {
471
+ internalType: "uint24",
472
+ name: "",
473
+ type: "uint24",
474
+ },
475
+ ],
476
+ stateMutability: "view",
477
+ type: "function",
478
+ },
479
+ {
480
+ inputs: [],
481
+ name: "feeGrowthGlobal0X128",
482
+ outputs: [
483
+ {
484
+ internalType: "uint256",
485
+ name: "",
486
+ type: "uint256",
487
+ },
488
+ ],
489
+ stateMutability: "view",
490
+ type: "function",
491
+ },
492
+ {
493
+ inputs: [],
494
+ name: "feeGrowthGlobal1X128",
495
+ outputs: [
496
+ {
497
+ internalType: "uint256",
498
+ name: "",
499
+ type: "uint256",
500
+ },
501
+ ],
502
+ stateMutability: "view",
503
+ type: "function",
504
+ },
505
+ {
506
+ inputs: [
507
+ {
508
+ internalType: "address",
509
+ name: "recipient",
510
+ type: "address",
511
+ },
512
+ {
513
+ internalType: "uint256",
514
+ name: "amount0",
515
+ type: "uint256",
516
+ },
517
+ {
518
+ internalType: "uint256",
519
+ name: "amount1",
520
+ type: "uint256",
521
+ },
522
+ {
523
+ internalType: "bytes",
524
+ name: "data",
525
+ type: "bytes",
526
+ },
527
+ ],
528
+ name: "flash",
529
+ outputs: [],
530
+ stateMutability: "nonpayable",
531
+ type: "function",
532
+ },
533
+ {
534
+ inputs: [
535
+ {
536
+ internalType: "uint16",
537
+ name: "observationCardinalityNext",
538
+ type: "uint16",
539
+ },
540
+ ],
541
+ name: "increaseObservationCardinalityNext",
542
+ outputs: [],
543
+ stateMutability: "nonpayable",
544
+ type: "function",
545
+ },
546
+ {
547
+ inputs: [
548
+ {
549
+ internalType: "uint160",
550
+ name: "sqrtPriceX96",
551
+ type: "uint160",
552
+ },
553
+ ],
554
+ name: "initialize",
555
+ outputs: [],
556
+ stateMutability: "nonpayable",
557
+ type: "function",
558
+ },
559
+ {
560
+ inputs: [],
561
+ name: "liquidity",
562
+ outputs: [
563
+ {
564
+ internalType: "uint128",
565
+ name: "",
566
+ type: "uint128",
567
+ },
568
+ ],
569
+ stateMutability: "view",
570
+ type: "function",
571
+ },
572
+ {
573
+ inputs: [],
574
+ name: "maxLiquidityPerTick",
575
+ outputs: [
576
+ {
577
+ internalType: "uint128",
578
+ name: "",
579
+ type: "uint128",
580
+ },
581
+ ],
582
+ stateMutability: "view",
583
+ type: "function",
584
+ },
585
+ {
586
+ inputs: [
587
+ {
588
+ internalType: "address",
589
+ name: "recipient",
590
+ type: "address",
591
+ },
592
+ {
593
+ internalType: "int24",
594
+ name: "tickLower",
595
+ type: "int24",
596
+ },
597
+ {
598
+ internalType: "int24",
599
+ name: "tickUpper",
600
+ type: "int24",
601
+ },
602
+ {
603
+ internalType: "uint128",
604
+ name: "amount",
605
+ type: "uint128",
606
+ },
607
+ {
608
+ internalType: "bytes",
609
+ name: "data",
610
+ type: "bytes",
611
+ },
612
+ ],
613
+ name: "mint",
614
+ outputs: [
615
+ {
616
+ internalType: "uint256",
617
+ name: "amount0",
618
+ type: "uint256",
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "amount1",
623
+ type: "uint256",
624
+ },
625
+ ],
626
+ stateMutability: "nonpayable",
627
+ type: "function",
628
+ },
629
+ {
630
+ inputs: [
631
+ {
632
+ internalType: "uint256",
633
+ name: "",
634
+ type: "uint256",
635
+ },
636
+ ],
637
+ name: "observations",
638
+ outputs: [
639
+ {
640
+ internalType: "uint32",
641
+ name: "blockTimestamp",
642
+ type: "uint32",
643
+ },
644
+ {
645
+ internalType: "int56",
646
+ name: "tickCumulative",
647
+ type: "int56",
648
+ },
649
+ {
650
+ internalType: "uint160",
651
+ name: "secondsPerLiquidityCumulativeX128",
652
+ type: "uint160",
653
+ },
654
+ {
655
+ internalType: "bool",
656
+ name: "initialized",
657
+ type: "bool",
658
+ },
659
+ ],
660
+ stateMutability: "view",
661
+ type: "function",
662
+ },
663
+ {
664
+ inputs: [
665
+ {
666
+ internalType: "uint32[]",
667
+ name: "secondsAgos",
668
+ type: "uint32[]",
669
+ },
670
+ ],
671
+ name: "observe",
672
+ outputs: [
673
+ {
674
+ internalType: "int56[]",
675
+ name: "tickCumulatives",
676
+ type: "int56[]",
677
+ },
678
+ {
679
+ internalType: "uint160[]",
680
+ name: "secondsPerLiquidityCumulativeX128s",
681
+ type: "uint160[]",
682
+ },
683
+ ],
684
+ stateMutability: "view",
685
+ type: "function",
686
+ },
687
+ {
688
+ inputs: [
689
+ {
690
+ internalType: "bytes32",
691
+ name: "",
692
+ type: "bytes32",
693
+ },
694
+ ],
695
+ name: "positions",
696
+ outputs: [
697
+ {
698
+ internalType: "uint128",
699
+ name: "liquidity",
700
+ type: "uint128",
701
+ },
702
+ {
703
+ internalType: "uint256",
704
+ name: "feeGrowthInside0LastX128",
705
+ type: "uint256",
706
+ },
707
+ {
708
+ internalType: "uint256",
709
+ name: "feeGrowthInside1LastX128",
710
+ type: "uint256",
711
+ },
712
+ {
713
+ internalType: "uint128",
714
+ name: "tokensOwed0",
715
+ type: "uint128",
716
+ },
717
+ {
718
+ internalType: "uint128",
719
+ name: "tokensOwed1",
720
+ type: "uint128",
721
+ },
722
+ ],
723
+ stateMutability: "view",
724
+ type: "function",
725
+ },
726
+ {
727
+ inputs: [],
728
+ name: "protocolFees",
729
+ outputs: [
730
+ {
731
+ internalType: "uint128",
732
+ name: "token0",
733
+ type: "uint128",
734
+ },
735
+ {
736
+ internalType: "uint128",
737
+ name: "token1",
738
+ type: "uint128",
739
+ },
740
+ ],
741
+ stateMutability: "view",
742
+ type: "function",
743
+ },
744
+ {
745
+ inputs: [
746
+ {
747
+ internalType: "uint8",
748
+ name: "feeProtocol0",
749
+ type: "uint8",
750
+ },
751
+ {
752
+ internalType: "uint8",
753
+ name: "feeProtocol1",
754
+ type: "uint8",
755
+ },
756
+ ],
757
+ name: "setFeeProtocol",
758
+ outputs: [],
759
+ stateMutability: "nonpayable",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [],
764
+ name: "slot0",
765
+ outputs: [
766
+ {
767
+ internalType: "uint160",
768
+ name: "sqrtPriceX96",
769
+ type: "uint160",
770
+ },
771
+ {
772
+ internalType: "int24",
773
+ name: "tick",
774
+ type: "int24",
775
+ },
776
+ {
777
+ internalType: "uint16",
778
+ name: "observationIndex",
779
+ type: "uint16",
780
+ },
781
+ {
782
+ internalType: "uint16",
783
+ name: "observationCardinality",
784
+ type: "uint16",
785
+ },
786
+ {
787
+ internalType: "uint16",
788
+ name: "observationCardinalityNext",
789
+ type: "uint16",
790
+ },
791
+ {
792
+ internalType: "uint8",
793
+ name: "feeProtocol",
794
+ type: "uint8",
795
+ },
796
+ {
797
+ internalType: "bool",
798
+ name: "unlocked",
799
+ type: "bool",
800
+ },
801
+ ],
802
+ stateMutability: "view",
803
+ type: "function",
804
+ },
805
+ {
806
+ inputs: [
807
+ {
808
+ internalType: "int24",
809
+ name: "tickLower",
810
+ type: "int24",
811
+ },
812
+ {
813
+ internalType: "int24",
814
+ name: "tickUpper",
815
+ type: "int24",
816
+ },
817
+ ],
818
+ name: "snapshotCumulativesInside",
819
+ outputs: [
820
+ {
821
+ internalType: "int56",
822
+ name: "tickCumulativeInside",
823
+ type: "int56",
824
+ },
825
+ {
826
+ internalType: "uint160",
827
+ name: "secondsPerLiquidityInsideX128",
828
+ type: "uint160",
829
+ },
830
+ {
831
+ internalType: "uint32",
832
+ name: "secondsInside",
833
+ type: "uint32",
834
+ },
835
+ ],
836
+ stateMutability: "view",
837
+ type: "function",
838
+ },
839
+ {
840
+ inputs: [
841
+ {
842
+ internalType: "address",
843
+ name: "recipient",
844
+ type: "address",
845
+ },
846
+ {
847
+ internalType: "bool",
848
+ name: "zeroForOne",
849
+ type: "bool",
850
+ },
851
+ {
852
+ internalType: "int256",
853
+ name: "amountSpecified",
854
+ type: "int256",
855
+ },
856
+ {
857
+ internalType: "uint160",
858
+ name: "sqrtPriceLimitX96",
859
+ type: "uint160",
860
+ },
861
+ {
862
+ internalType: "bytes",
863
+ name: "data",
864
+ type: "bytes",
865
+ },
866
+ ],
867
+ name: "swap",
868
+ outputs: [
869
+ {
870
+ internalType: "int256",
871
+ name: "amount0",
872
+ type: "int256",
873
+ },
874
+ {
875
+ internalType: "int256",
876
+ name: "amount1",
877
+ type: "int256",
878
+ },
879
+ ],
880
+ stateMutability: "nonpayable",
881
+ type: "function",
882
+ },
883
+ {
884
+ inputs: [
885
+ {
886
+ internalType: "int16",
887
+ name: "",
888
+ type: "int16",
889
+ },
890
+ ],
891
+ name: "tickBitmap",
892
+ outputs: [
893
+ {
894
+ internalType: "uint256",
895
+ name: "",
896
+ type: "uint256",
897
+ },
898
+ ],
899
+ stateMutability: "view",
900
+ type: "function",
901
+ },
902
+ {
903
+ inputs: [],
904
+ name: "tickSpacing",
905
+ outputs: [
906
+ {
907
+ internalType: "int24",
908
+ name: "",
909
+ type: "int24",
910
+ },
911
+ ],
912
+ stateMutability: "view",
913
+ type: "function",
914
+ },
915
+ {
916
+ inputs: [
917
+ {
918
+ internalType: "int24",
919
+ name: "",
920
+ type: "int24",
921
+ },
922
+ ],
923
+ name: "ticks",
924
+ outputs: [
925
+ {
926
+ internalType: "uint128",
927
+ name: "liquidityGross",
928
+ type: "uint128",
929
+ },
930
+ {
931
+ internalType: "int128",
932
+ name: "liquidityNet",
933
+ type: "int128",
934
+ },
935
+ {
936
+ internalType: "uint256",
937
+ name: "feeGrowthOutside0X128",
938
+ type: "uint256",
939
+ },
940
+ {
941
+ internalType: "uint256",
942
+ name: "feeGrowthOutside1X128",
943
+ type: "uint256",
944
+ },
945
+ {
946
+ internalType: "int56",
947
+ name: "tickCumulativeOutside",
948
+ type: "int56",
949
+ },
950
+ {
951
+ internalType: "uint160",
952
+ name: "secondsPerLiquidityOutsideX128",
953
+ type: "uint160",
954
+ },
955
+ {
956
+ internalType: "uint32",
957
+ name: "secondsOutside",
958
+ type: "uint32",
959
+ },
960
+ {
961
+ internalType: "bool",
962
+ name: "initialized",
963
+ type: "bool",
964
+ },
965
+ ],
966
+ stateMutability: "view",
967
+ type: "function",
968
+ },
969
+ {
970
+ inputs: [],
971
+ name: "token0",
972
+ outputs: [
973
+ {
974
+ internalType: "address",
975
+ name: "",
976
+ type: "address",
977
+ },
978
+ ],
979
+ stateMutability: "view",
980
+ type: "function",
981
+ },
982
+ {
983
+ inputs: [],
984
+ name: "token1",
985
+ outputs: [
986
+ {
987
+ internalType: "address",
988
+ name: "",
989
+ type: "address",
990
+ },
991
+ ],
992
+ stateMutability: "view",
993
+ type: "function",
994
+ },
995
+ ];
996
+ var UniswapV3Pool__factory = /** @class */ (function () {
997
+ function UniswapV3Pool__factory() {
998
+ }
999
+ UniswapV3Pool__factory.createInterface = function () {
1000
+ return new ethers_1.utils.Interface(_abi);
1001
+ };
1002
+ UniswapV3Pool__factory.connect = function (address, signerOrProvider) {
1003
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1004
+ };
1005
+ UniswapV3Pool__factory.abi = _abi;
1006
+ return UniswapV3Pool__factory;
1007
+ }());
1008
+ exports.UniswapV3Pool__factory = UniswapV3Pool__factory;
1009
+ //# sourceMappingURL=UniswapV3Pool__factory.js.map