@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,1062 @@
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.AlgebraPool__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: "bottomTick",
27
+ type: "int24",
28
+ },
29
+ {
30
+ indexed: true,
31
+ internalType: "int24",
32
+ name: "topTick",
33
+ type: "int24",
34
+ },
35
+ {
36
+ indexed: false,
37
+ internalType: "uint128",
38
+ name: "liquidityAmount",
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: "bottomTick",
76
+ type: "int24",
77
+ },
78
+ {
79
+ indexed: true,
80
+ internalType: "int24",
81
+ name: "topTick",
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: false,
105
+ internalType: "uint16",
106
+ name: "communityFee0New",
107
+ type: "uint16",
108
+ },
109
+ {
110
+ indexed: false,
111
+ internalType: "uint16",
112
+ name: "communityFee1New",
113
+ type: "uint16",
114
+ },
115
+ ],
116
+ name: "CommunityFee",
117
+ type: "event",
118
+ },
119
+ {
120
+ anonymous: false,
121
+ inputs: [
122
+ {
123
+ indexed: false,
124
+ internalType: "uint16",
125
+ name: "fee",
126
+ type: "uint16",
127
+ },
128
+ ],
129
+ name: "Fee",
130
+ type: "event",
131
+ },
132
+ {
133
+ anonymous: false,
134
+ inputs: [
135
+ {
136
+ indexed: true,
137
+ internalType: "address",
138
+ name: "sender",
139
+ type: "address",
140
+ },
141
+ {
142
+ indexed: true,
143
+ internalType: "address",
144
+ name: "recipient",
145
+ type: "address",
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: "uint256",
150
+ name: "amount0",
151
+ type: "uint256",
152
+ },
153
+ {
154
+ indexed: false,
155
+ internalType: "uint256",
156
+ name: "amount1",
157
+ type: "uint256",
158
+ },
159
+ {
160
+ indexed: false,
161
+ internalType: "uint256",
162
+ name: "paid0",
163
+ type: "uint256",
164
+ },
165
+ {
166
+ indexed: false,
167
+ internalType: "uint256",
168
+ name: "paid1",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ name: "Flash",
173
+ type: "event",
174
+ },
175
+ {
176
+ anonymous: false,
177
+ inputs: [
178
+ {
179
+ indexed: true,
180
+ internalType: "address",
181
+ name: "virtualPoolAddress",
182
+ type: "address",
183
+ },
184
+ ],
185
+ name: "Incentive",
186
+ type: "event",
187
+ },
188
+ {
189
+ anonymous: false,
190
+ inputs: [
191
+ {
192
+ indexed: false,
193
+ internalType: "uint160",
194
+ name: "price",
195
+ type: "uint160",
196
+ },
197
+ {
198
+ indexed: false,
199
+ internalType: "int24",
200
+ name: "tick",
201
+ type: "int24",
202
+ },
203
+ ],
204
+ name: "Initialize",
205
+ type: "event",
206
+ },
207
+ {
208
+ anonymous: false,
209
+ inputs: [
210
+ {
211
+ indexed: false,
212
+ internalType: "uint32",
213
+ name: "liquidityCooldown",
214
+ type: "uint32",
215
+ },
216
+ ],
217
+ name: "LiquidityCooldown",
218
+ type: "event",
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: false,
225
+ internalType: "address",
226
+ name: "sender",
227
+ type: "address",
228
+ },
229
+ {
230
+ indexed: true,
231
+ internalType: "address",
232
+ name: "owner",
233
+ type: "address",
234
+ },
235
+ {
236
+ indexed: true,
237
+ internalType: "int24",
238
+ name: "bottomTick",
239
+ type: "int24",
240
+ },
241
+ {
242
+ indexed: true,
243
+ internalType: "int24",
244
+ name: "topTick",
245
+ type: "int24",
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: "uint128",
250
+ name: "liquidityAmount",
251
+ type: "uint128",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "uint256",
256
+ name: "amount0",
257
+ type: "uint256",
258
+ },
259
+ {
260
+ indexed: false,
261
+ internalType: "uint256",
262
+ name: "amount1",
263
+ type: "uint256",
264
+ },
265
+ ],
266
+ name: "Mint",
267
+ type: "event",
268
+ },
269
+ {
270
+ anonymous: false,
271
+ inputs: [
272
+ {
273
+ indexed: true,
274
+ internalType: "address",
275
+ name: "sender",
276
+ type: "address",
277
+ },
278
+ {
279
+ indexed: true,
280
+ internalType: "address",
281
+ name: "recipient",
282
+ type: "address",
283
+ },
284
+ {
285
+ indexed: false,
286
+ internalType: "int256",
287
+ name: "amount0",
288
+ type: "int256",
289
+ },
290
+ {
291
+ indexed: false,
292
+ internalType: "int256",
293
+ name: "amount1",
294
+ type: "int256",
295
+ },
296
+ {
297
+ indexed: false,
298
+ internalType: "uint160",
299
+ name: "price",
300
+ type: "uint160",
301
+ },
302
+ {
303
+ indexed: false,
304
+ internalType: "uint128",
305
+ name: "liquidity",
306
+ type: "uint128",
307
+ },
308
+ {
309
+ indexed: false,
310
+ internalType: "int24",
311
+ name: "tick",
312
+ type: "int24",
313
+ },
314
+ ],
315
+ name: "Swap",
316
+ type: "event",
317
+ },
318
+ {
319
+ inputs: [],
320
+ name: "activeIncentive",
321
+ outputs: [
322
+ {
323
+ internalType: "address",
324
+ name: "",
325
+ type: "address",
326
+ },
327
+ ],
328
+ stateMutability: "view",
329
+ type: "function",
330
+ },
331
+ {
332
+ inputs: [
333
+ {
334
+ internalType: "int24",
335
+ name: "bottomTick",
336
+ type: "int24",
337
+ },
338
+ {
339
+ internalType: "int24",
340
+ name: "topTick",
341
+ type: "int24",
342
+ },
343
+ {
344
+ internalType: "uint128",
345
+ name: "amount",
346
+ type: "uint128",
347
+ },
348
+ ],
349
+ name: "burn",
350
+ outputs: [
351
+ {
352
+ internalType: "uint256",
353
+ name: "amount0",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "amount1",
359
+ type: "uint256",
360
+ },
361
+ ],
362
+ stateMutability: "nonpayable",
363
+ type: "function",
364
+ },
365
+ {
366
+ inputs: [
367
+ {
368
+ internalType: "address",
369
+ name: "recipient",
370
+ type: "address",
371
+ },
372
+ {
373
+ internalType: "int24",
374
+ name: "bottomTick",
375
+ type: "int24",
376
+ },
377
+ {
378
+ internalType: "int24",
379
+ name: "topTick",
380
+ type: "int24",
381
+ },
382
+ {
383
+ internalType: "uint128",
384
+ name: "amount0Requested",
385
+ type: "uint128",
386
+ },
387
+ {
388
+ internalType: "uint128",
389
+ name: "amount1Requested",
390
+ type: "uint128",
391
+ },
392
+ ],
393
+ name: "collect",
394
+ outputs: [
395
+ {
396
+ internalType: "uint128",
397
+ name: "amount0",
398
+ type: "uint128",
399
+ },
400
+ {
401
+ internalType: "uint128",
402
+ name: "amount1",
403
+ type: "uint128",
404
+ },
405
+ ],
406
+ stateMutability: "nonpayable",
407
+ type: "function",
408
+ },
409
+ {
410
+ inputs: [],
411
+ name: "dataStorageOperator",
412
+ outputs: [
413
+ {
414
+ internalType: "address",
415
+ name: "",
416
+ type: "address",
417
+ },
418
+ ],
419
+ stateMutability: "view",
420
+ type: "function",
421
+ },
422
+ {
423
+ inputs: [],
424
+ name: "factory",
425
+ outputs: [
426
+ {
427
+ internalType: "address",
428
+ name: "",
429
+ type: "address",
430
+ },
431
+ ],
432
+ stateMutability: "view",
433
+ type: "function",
434
+ },
435
+ {
436
+ inputs: [
437
+ {
438
+ internalType: "address",
439
+ name: "recipient",
440
+ type: "address",
441
+ },
442
+ {
443
+ internalType: "uint256",
444
+ name: "amount0",
445
+ type: "uint256",
446
+ },
447
+ {
448
+ internalType: "uint256",
449
+ name: "amount1",
450
+ type: "uint256",
451
+ },
452
+ {
453
+ internalType: "bytes",
454
+ name: "data",
455
+ type: "bytes",
456
+ },
457
+ ],
458
+ name: "flash",
459
+ outputs: [],
460
+ stateMutability: "nonpayable",
461
+ type: "function",
462
+ },
463
+ {
464
+ inputs: [
465
+ {
466
+ internalType: "int24",
467
+ name: "bottomTick",
468
+ type: "int24",
469
+ },
470
+ {
471
+ internalType: "int24",
472
+ name: "topTick",
473
+ type: "int24",
474
+ },
475
+ ],
476
+ name: "getInnerCumulatives",
477
+ outputs: [
478
+ {
479
+ internalType: "int56",
480
+ name: "innerTickCumulative",
481
+ type: "int56",
482
+ },
483
+ {
484
+ internalType: "uint160",
485
+ name: "innerSecondsSpentPerLiquidity",
486
+ type: "uint160",
487
+ },
488
+ {
489
+ internalType: "uint32",
490
+ name: "innerSecondsSpent",
491
+ type: "uint32",
492
+ },
493
+ ],
494
+ stateMutability: "view",
495
+ type: "function",
496
+ },
497
+ {
498
+ inputs: [
499
+ {
500
+ internalType: "uint32[]",
501
+ name: "secondsAgos",
502
+ type: "uint32[]",
503
+ },
504
+ ],
505
+ name: "getTimepoints",
506
+ outputs: [
507
+ {
508
+ internalType: "int56[]",
509
+ name: "tickCumulatives",
510
+ type: "int56[]",
511
+ },
512
+ {
513
+ internalType: "uint160[]",
514
+ name: "secondsPerLiquidityCumulatives",
515
+ type: "uint160[]",
516
+ },
517
+ {
518
+ internalType: "uint112[]",
519
+ name: "volatilityCumulatives",
520
+ type: "uint112[]",
521
+ },
522
+ {
523
+ internalType: "uint256[]",
524
+ name: "volumePerAvgLiquiditys",
525
+ type: "uint256[]",
526
+ },
527
+ ],
528
+ stateMutability: "view",
529
+ type: "function",
530
+ },
531
+ {
532
+ inputs: [],
533
+ name: "globalState",
534
+ outputs: [
535
+ {
536
+ internalType: "uint160",
537
+ name: "price",
538
+ type: "uint160",
539
+ },
540
+ {
541
+ internalType: "int24",
542
+ name: "tick",
543
+ type: "int24",
544
+ },
545
+ {
546
+ internalType: "uint16",
547
+ name: "fee",
548
+ type: "uint16",
549
+ },
550
+ {
551
+ internalType: "uint16",
552
+ name: "timepointIndex",
553
+ type: "uint16",
554
+ },
555
+ {
556
+ internalType: "uint16",
557
+ name: "communityFeeToken0",
558
+ type: "uint16",
559
+ },
560
+ {
561
+ internalType: "uint16",
562
+ name: "communityFeeToken1",
563
+ type: "uint16",
564
+ },
565
+ {
566
+ internalType: "bool",
567
+ name: "unlocked",
568
+ type: "bool",
569
+ },
570
+ ],
571
+ stateMutability: "view",
572
+ type: "function",
573
+ },
574
+ {
575
+ inputs: [
576
+ {
577
+ internalType: "uint160",
578
+ name: "initialPrice",
579
+ type: "uint160",
580
+ },
581
+ ],
582
+ name: "initialize",
583
+ outputs: [],
584
+ stateMutability: "nonpayable",
585
+ type: "function",
586
+ },
587
+ {
588
+ inputs: [],
589
+ name: "liquidity",
590
+ outputs: [
591
+ {
592
+ internalType: "uint128",
593
+ name: "",
594
+ type: "uint128",
595
+ },
596
+ ],
597
+ stateMutability: "view",
598
+ type: "function",
599
+ },
600
+ {
601
+ inputs: [],
602
+ name: "liquidityCooldown",
603
+ outputs: [
604
+ {
605
+ internalType: "uint32",
606
+ name: "",
607
+ type: "uint32",
608
+ },
609
+ ],
610
+ stateMutability: "view",
611
+ type: "function",
612
+ },
613
+ {
614
+ inputs: [],
615
+ name: "maxLiquidityPerTick",
616
+ outputs: [
617
+ {
618
+ internalType: "uint128",
619
+ name: "",
620
+ type: "uint128",
621
+ },
622
+ ],
623
+ stateMutability: "pure",
624
+ type: "function",
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ internalType: "address",
630
+ name: "sender",
631
+ type: "address",
632
+ },
633
+ {
634
+ internalType: "address",
635
+ name: "recipient",
636
+ type: "address",
637
+ },
638
+ {
639
+ internalType: "int24",
640
+ name: "bottomTick",
641
+ type: "int24",
642
+ },
643
+ {
644
+ internalType: "int24",
645
+ name: "topTick",
646
+ type: "int24",
647
+ },
648
+ {
649
+ internalType: "uint128",
650
+ name: "liquidityDesired",
651
+ type: "uint128",
652
+ },
653
+ {
654
+ internalType: "bytes",
655
+ name: "data",
656
+ type: "bytes",
657
+ },
658
+ ],
659
+ name: "mint",
660
+ outputs: [
661
+ {
662
+ internalType: "uint256",
663
+ name: "amount0",
664
+ type: "uint256",
665
+ },
666
+ {
667
+ internalType: "uint256",
668
+ name: "amount1",
669
+ type: "uint256",
670
+ },
671
+ {
672
+ internalType: "uint128",
673
+ name: "liquidityActual",
674
+ type: "uint128",
675
+ },
676
+ ],
677
+ stateMutability: "nonpayable",
678
+ type: "function",
679
+ },
680
+ {
681
+ inputs: [
682
+ {
683
+ internalType: "bytes32",
684
+ name: "",
685
+ type: "bytes32",
686
+ },
687
+ ],
688
+ name: "positions",
689
+ outputs: [
690
+ {
691
+ internalType: "uint128",
692
+ name: "liquidity",
693
+ type: "uint128",
694
+ },
695
+ {
696
+ internalType: "uint32",
697
+ name: "lastLiquidityAddTimestamp",
698
+ type: "uint32",
699
+ },
700
+ {
701
+ internalType: "uint256",
702
+ name: "innerFeeGrowth0Token",
703
+ type: "uint256",
704
+ },
705
+ {
706
+ internalType: "uint256",
707
+ name: "innerFeeGrowth1Token",
708
+ type: "uint256",
709
+ },
710
+ {
711
+ internalType: "uint128",
712
+ name: "fees0",
713
+ type: "uint128",
714
+ },
715
+ {
716
+ internalType: "uint128",
717
+ name: "fees1",
718
+ type: "uint128",
719
+ },
720
+ ],
721
+ stateMutability: "view",
722
+ type: "function",
723
+ },
724
+ {
725
+ inputs: [
726
+ {
727
+ internalType: "uint16",
728
+ name: "communityFee0",
729
+ type: "uint16",
730
+ },
731
+ {
732
+ internalType: "uint16",
733
+ name: "communityFee1",
734
+ type: "uint16",
735
+ },
736
+ ],
737
+ name: "setCommunityFee",
738
+ outputs: [],
739
+ stateMutability: "nonpayable",
740
+ type: "function",
741
+ },
742
+ {
743
+ inputs: [
744
+ {
745
+ internalType: "address",
746
+ name: "virtualPoolAddress",
747
+ type: "address",
748
+ },
749
+ ],
750
+ name: "setIncentive",
751
+ outputs: [],
752
+ stateMutability: "nonpayable",
753
+ type: "function",
754
+ },
755
+ {
756
+ inputs: [
757
+ {
758
+ internalType: "uint32",
759
+ name: "newLiquidityCooldown",
760
+ type: "uint32",
761
+ },
762
+ ],
763
+ name: "setLiquidityCooldown",
764
+ outputs: [],
765
+ stateMutability: "nonpayable",
766
+ type: "function",
767
+ },
768
+ {
769
+ inputs: [
770
+ {
771
+ internalType: "address",
772
+ name: "recipient",
773
+ type: "address",
774
+ },
775
+ {
776
+ internalType: "bool",
777
+ name: "zeroToOne",
778
+ type: "bool",
779
+ },
780
+ {
781
+ internalType: "int256",
782
+ name: "amountRequired",
783
+ type: "int256",
784
+ },
785
+ {
786
+ internalType: "uint160",
787
+ name: "limitSqrtPrice",
788
+ type: "uint160",
789
+ },
790
+ {
791
+ internalType: "bytes",
792
+ name: "data",
793
+ type: "bytes",
794
+ },
795
+ ],
796
+ name: "swap",
797
+ outputs: [
798
+ {
799
+ internalType: "int256",
800
+ name: "amount0",
801
+ type: "int256",
802
+ },
803
+ {
804
+ internalType: "int256",
805
+ name: "amount1",
806
+ type: "int256",
807
+ },
808
+ ],
809
+ stateMutability: "nonpayable",
810
+ type: "function",
811
+ },
812
+ {
813
+ inputs: [
814
+ {
815
+ internalType: "address",
816
+ name: "sender",
817
+ type: "address",
818
+ },
819
+ {
820
+ internalType: "address",
821
+ name: "recipient",
822
+ type: "address",
823
+ },
824
+ {
825
+ internalType: "bool",
826
+ name: "zeroToOne",
827
+ type: "bool",
828
+ },
829
+ {
830
+ internalType: "int256",
831
+ name: "amountRequired",
832
+ type: "int256",
833
+ },
834
+ {
835
+ internalType: "uint160",
836
+ name: "limitSqrtPrice",
837
+ type: "uint160",
838
+ },
839
+ {
840
+ internalType: "bytes",
841
+ name: "data",
842
+ type: "bytes",
843
+ },
844
+ ],
845
+ name: "swapSupportingFeeOnInputTokens",
846
+ outputs: [
847
+ {
848
+ internalType: "int256",
849
+ name: "amount0",
850
+ type: "int256",
851
+ },
852
+ {
853
+ internalType: "int256",
854
+ name: "amount1",
855
+ type: "int256",
856
+ },
857
+ ],
858
+ stateMutability: "nonpayable",
859
+ type: "function",
860
+ },
861
+ {
862
+ inputs: [],
863
+ name: "tickSpacing",
864
+ outputs: [
865
+ {
866
+ internalType: "int24",
867
+ name: "",
868
+ type: "int24",
869
+ },
870
+ ],
871
+ stateMutability: "pure",
872
+ type: "function",
873
+ },
874
+ {
875
+ inputs: [
876
+ {
877
+ internalType: "int16",
878
+ name: "",
879
+ type: "int16",
880
+ },
881
+ ],
882
+ name: "tickTable",
883
+ outputs: [
884
+ {
885
+ internalType: "uint256",
886
+ name: "",
887
+ type: "uint256",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "int24",
897
+ name: "",
898
+ type: "int24",
899
+ },
900
+ ],
901
+ name: "ticks",
902
+ outputs: [
903
+ {
904
+ internalType: "uint128",
905
+ name: "liquidityTotal",
906
+ type: "uint128",
907
+ },
908
+ {
909
+ internalType: "int128",
910
+ name: "liquidityDelta",
911
+ type: "int128",
912
+ },
913
+ {
914
+ internalType: "uint256",
915
+ name: "outerFeeGrowth0Token",
916
+ type: "uint256",
917
+ },
918
+ {
919
+ internalType: "uint256",
920
+ name: "outerFeeGrowth1Token",
921
+ type: "uint256",
922
+ },
923
+ {
924
+ internalType: "int56",
925
+ name: "outerTickCumulative",
926
+ type: "int56",
927
+ },
928
+ {
929
+ internalType: "uint160",
930
+ name: "outerSecondsPerLiquidity",
931
+ type: "uint160",
932
+ },
933
+ {
934
+ internalType: "uint32",
935
+ name: "outerSecondsSpent",
936
+ type: "uint32",
937
+ },
938
+ {
939
+ internalType: "bool",
940
+ name: "initialized",
941
+ type: "bool",
942
+ },
943
+ ],
944
+ stateMutability: "view",
945
+ type: "function",
946
+ },
947
+ {
948
+ inputs: [
949
+ {
950
+ internalType: "uint256",
951
+ name: "index",
952
+ type: "uint256",
953
+ },
954
+ ],
955
+ name: "timepoints",
956
+ outputs: [
957
+ {
958
+ internalType: "bool",
959
+ name: "initialized",
960
+ type: "bool",
961
+ },
962
+ {
963
+ internalType: "uint32",
964
+ name: "blockTimestamp",
965
+ type: "uint32",
966
+ },
967
+ {
968
+ internalType: "int56",
969
+ name: "tickCumulative",
970
+ type: "int56",
971
+ },
972
+ {
973
+ internalType: "uint160",
974
+ name: "secondsPerLiquidityCumulative",
975
+ type: "uint160",
976
+ },
977
+ {
978
+ internalType: "uint88",
979
+ name: "volatilityCumulative",
980
+ type: "uint88",
981
+ },
982
+ {
983
+ internalType: "int24",
984
+ name: "averageTick",
985
+ type: "int24",
986
+ },
987
+ {
988
+ internalType: "uint144",
989
+ name: "volumePerLiquidityCumulative",
990
+ type: "uint144",
991
+ },
992
+ ],
993
+ stateMutability: "view",
994
+ type: "function",
995
+ },
996
+ {
997
+ inputs: [],
998
+ name: "token0",
999
+ outputs: [
1000
+ {
1001
+ internalType: "address",
1002
+ name: "",
1003
+ type: "address",
1004
+ },
1005
+ ],
1006
+ stateMutability: "view",
1007
+ type: "function",
1008
+ },
1009
+ {
1010
+ inputs: [],
1011
+ name: "token1",
1012
+ outputs: [
1013
+ {
1014
+ internalType: "address",
1015
+ name: "",
1016
+ type: "address",
1017
+ },
1018
+ ],
1019
+ stateMutability: "view",
1020
+ type: "function",
1021
+ },
1022
+ {
1023
+ inputs: [],
1024
+ name: "totalFeeGrowth0Token",
1025
+ outputs: [
1026
+ {
1027
+ internalType: "uint256",
1028
+ name: "",
1029
+ type: "uint256",
1030
+ },
1031
+ ],
1032
+ stateMutability: "view",
1033
+ type: "function",
1034
+ },
1035
+ {
1036
+ inputs: [],
1037
+ name: "totalFeeGrowth1Token",
1038
+ outputs: [
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "",
1042
+ type: "uint256",
1043
+ },
1044
+ ],
1045
+ stateMutability: "view",
1046
+ type: "function",
1047
+ },
1048
+ ];
1049
+ var AlgebraPool__factory = /** @class */ (function () {
1050
+ function AlgebraPool__factory() {
1051
+ }
1052
+ AlgebraPool__factory.createInterface = function () {
1053
+ return new ethers_1.utils.Interface(_abi);
1054
+ };
1055
+ AlgebraPool__factory.connect = function (address, signerOrProvider) {
1056
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1057
+ };
1058
+ AlgebraPool__factory.abi = _abi;
1059
+ return AlgebraPool__factory;
1060
+ }());
1061
+ exports.AlgebraPool__factory = AlgebraPool__factory;
1062
+ //# sourceMappingURL=AlgebraPool__factory.js.map