@ichidao/ichi-vaults-sdk 0.0.1

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 (97) hide show
  1. package/README.md +420 -0
  2. package/dist/abis/types/DepositGuard.d.ts +114 -0
  3. package/dist/abis/types/DepositGuard.js +3 -0
  4. package/dist/abis/types/DepositGuard.js.map +1 -0
  5. package/dist/abis/types/ERC20.d.ts +168 -0
  6. package/dist/abis/types/ERC20.js +3 -0
  7. package/dist/abis/types/ERC20.js.map +1 -0
  8. package/dist/abis/types/IchiVault.d.ts +828 -0
  9. package/dist/abis/types/IchiVault.js +3 -0
  10. package/dist/abis/types/IchiVault.js.map +1 -0
  11. package/dist/abis/types/common.d.ts +22 -0
  12. package/dist/abis/types/common.js +3 -0
  13. package/dist/abis/types/common.js.map +1 -0
  14. package/dist/abis/types/factories/DepositGuard__factory.d.ts +139 -0
  15. package/dist/abis/types/factories/DepositGuard__factory.js +191 -0
  16. package/dist/abis/types/factories/DepositGuard__factory.js.map +1 -0
  17. package/dist/abis/types/factories/ERC20__factory.d.ts +175 -0
  18. package/dist/abis/types/factories/ERC20__factory.js +243 -0
  19. package/dist/abis/types/factories/ERC20__factory.js.map +1 -0
  20. package/dist/abis/types/factories/IchiVault__factory.d.ts +899 -0
  21. package/dist/abis/types/factories/IchiVault__factory.js +1168 -0
  22. package/dist/abis/types/factories/IchiVault__factory.js.map +1 -0
  23. package/dist/abis/types/factories/index.d.ts +3 -0
  24. package/dist/abis/types/factories/index.js +13 -0
  25. package/dist/abis/types/factories/index.js.map +1 -0
  26. package/dist/abis/types/index.d.ts +7 -0
  27. package/dist/abis/types/index.js +34 -0
  28. package/dist/abis/types/index.js.map +1 -0
  29. package/dist/src/__tests__/index.test.d.ts +1 -0
  30. package/dist/src/__tests__/index.test.js +238 -0
  31. package/dist/src/__tests__/index.test.js.map +1 -0
  32. package/dist/src/abis/IchiVault.json +1147 -0
  33. package/dist/src/abis/types/DepositGuard.d.ts +114 -0
  34. package/dist/src/abis/types/ERC20.d.ts +168 -0
  35. package/dist/src/abis/types/IchiVault.d.ts +828 -0
  36. package/dist/src/abis/types/common.d.ts +22 -0
  37. package/dist/src/abis/types/factories/DepositGuard__factory.d.ts +139 -0
  38. package/dist/src/abis/types/factories/ERC20__factory.d.ts +175 -0
  39. package/dist/src/abis/types/factories/IchiVault__factory.d.ts +899 -0
  40. package/dist/src/abis/types/factories/index.d.ts +3 -0
  41. package/dist/src/abis/types/index.d.ts +7 -0
  42. package/dist/src/contracts/index.d.ts +6 -0
  43. package/dist/src/contracts/index.js +22 -0
  44. package/dist/src/contracts/index.js.map +1 -0
  45. package/dist/src/functions/balances.d.ts +12 -0
  46. package/dist/src/functions/balances.js +227 -0
  47. package/dist/src/functions/balances.js.map +1 -0
  48. package/dist/src/functions/deposit.d.ts +9 -0
  49. package/dist/src/functions/deposit.js +260 -0
  50. package/dist/src/functions/deposit.js.map +1 -0
  51. package/dist/src/functions/vault.d.ts +3 -0
  52. package/dist/src/functions/vault.js +96 -0
  53. package/dist/src/functions/vault.js.map +1 -0
  54. package/dist/src/functions/withdraw.d.ts +5 -0
  55. package/dist/src/functions/withdraw.js +102 -0
  56. package/dist/src/functions/withdraw.js.map +1 -0
  57. package/dist/src/index.cjs.js +18 -0
  58. package/dist/src/index.d.ts +5 -0
  59. package/dist/src/index.esm.js +16 -0
  60. package/dist/src/index.js +23 -0
  61. package/dist/src/index.js.map +1 -0
  62. package/dist/src/src/__tests__/index.test.d.ts +1 -0
  63. package/dist/src/src/contracts/index.d.ts +6 -0
  64. package/dist/src/src/functions/balances.d.ts +12 -0
  65. package/dist/src/src/functions/deposit.d.ts +9 -0
  66. package/dist/src/src/functions/vault.d.ts +3 -0
  67. package/dist/src/src/functions/withdraw.d.ts +5 -0
  68. package/dist/src/src/index.d.ts +5 -0
  69. package/dist/src/src/types/calculateGasMargin.d.ts +2 -0
  70. package/dist/src/src/types/index.d.ts +32 -0
  71. package/dist/src/src/types/vaultQueryData.d.ts +10 -0
  72. package/dist/src/src/utils/config/addresses.d.ts +14 -0
  73. package/dist/src/src/utils/formatBigInt.d.ts +2 -0
  74. package/dist/src/src/utils/parseBigInt.d.ts +2 -0
  75. package/dist/src/src/utils/positionKey.d.ts +2 -0
  76. package/dist/src/types/calculateGasMargin.d.ts +2 -0
  77. package/dist/src/types/calculateGasMargin.js +8 -0
  78. package/dist/src/types/calculateGasMargin.js.map +1 -0
  79. package/dist/src/types/index.d.ts +32 -0
  80. package/dist/src/types/index.js +18 -0
  81. package/dist/src/types/index.js.map +1 -0
  82. package/dist/src/types/vaultQueryData.d.ts +10 -0
  83. package/dist/src/types/vaultQueryData.js +3 -0
  84. package/dist/src/types/vaultQueryData.js.map +1 -0
  85. package/dist/src/utils/config/addresses.d.ts +14 -0
  86. package/dist/src/utils/config/addresses.js +41 -0
  87. package/dist/src/utils/config/addresses.js.map +1 -0
  88. package/dist/src/utils/formatBigInt.d.ts +2 -0
  89. package/dist/src/utils/formatBigInt.js +12 -0
  90. package/dist/src/utils/formatBigInt.js.map +1 -0
  91. package/dist/src/utils/parseBigInt.d.ts +2 -0
  92. package/dist/src/utils/parseBigInt.js +12 -0
  93. package/dist/src/utils/parseBigInt.js.map +1 -0
  94. package/dist/src/utils/positionKey.d.ts +2 -0
  95. package/dist/src/utils/positionKey.js +8 -0
  96. package/dist/src/utils/positionKey.js.map +1 -0
  97. package/package.json +98 -0
@@ -0,0 +1,1168 @@
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.IchiVault__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "_pool",
14
+ type: "address",
15
+ },
16
+ {
17
+ internalType: "bool",
18
+ name: "_allowToken0",
19
+ type: "bool",
20
+ },
21
+ {
22
+ internalType: "bool",
23
+ name: "_allowToken1",
24
+ type: "bool",
25
+ },
26
+ {
27
+ internalType: "address",
28
+ name: "__owner",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "uint32",
33
+ name: "_twapPeriod",
34
+ type: "uint32",
35
+ },
36
+ ],
37
+ stateMutability: "nonpayable",
38
+ type: "constructor",
39
+ },
40
+ {
41
+ anonymous: false,
42
+ inputs: [
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "sender",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "address",
52
+ name: "affiliate",
53
+ type: "address",
54
+ },
55
+ ],
56
+ name: "Affiliate",
57
+ type: "event",
58
+ },
59
+ {
60
+ anonymous: false,
61
+ inputs: [
62
+ {
63
+ indexed: true,
64
+ internalType: "address",
65
+ name: "owner",
66
+ type: "address",
67
+ },
68
+ {
69
+ indexed: true,
70
+ internalType: "address",
71
+ name: "spender",
72
+ type: "address",
73
+ },
74
+ {
75
+ indexed: false,
76
+ internalType: "uint256",
77
+ name: "value",
78
+ type: "uint256",
79
+ },
80
+ ],
81
+ name: "Approval",
82
+ type: "event",
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: true,
89
+ internalType: "address",
90
+ name: "sender",
91
+ type: "address",
92
+ },
93
+ {
94
+ indexed: true,
95
+ internalType: "address",
96
+ name: "pool",
97
+ type: "address",
98
+ },
99
+ {
100
+ indexed: false,
101
+ internalType: "bool",
102
+ name: "allowToken0",
103
+ type: "bool",
104
+ },
105
+ {
106
+ indexed: false,
107
+ internalType: "bool",
108
+ name: "allowToken1",
109
+ type: "bool",
110
+ },
111
+ {
112
+ indexed: false,
113
+ internalType: "address",
114
+ name: "owner",
115
+ type: "address",
116
+ },
117
+ {
118
+ indexed: false,
119
+ internalType: "uint256",
120
+ name: "twapPeriod",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ name: "DeployICHIVault",
125
+ type: "event",
126
+ },
127
+ {
128
+ anonymous: false,
129
+ inputs: [
130
+ {
131
+ indexed: true,
132
+ internalType: "address",
133
+ name: "sender",
134
+ type: "address",
135
+ },
136
+ {
137
+ indexed: true,
138
+ internalType: "address",
139
+ name: "to",
140
+ type: "address",
141
+ },
142
+ {
143
+ indexed: false,
144
+ internalType: "uint256",
145
+ name: "shares",
146
+ type: "uint256",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "uint256",
151
+ name: "amount0",
152
+ type: "uint256",
153
+ },
154
+ {
155
+ indexed: false,
156
+ internalType: "uint256",
157
+ name: "amount1",
158
+ type: "uint256",
159
+ },
160
+ ],
161
+ name: "Deposit",
162
+ type: "event",
163
+ },
164
+ {
165
+ anonymous: false,
166
+ inputs: [
167
+ {
168
+ indexed: true,
169
+ internalType: "address",
170
+ name: "sender",
171
+ type: "address",
172
+ },
173
+ {
174
+ indexed: false,
175
+ internalType: "uint256",
176
+ name: "deposit0Max",
177
+ type: "uint256",
178
+ },
179
+ {
180
+ indexed: false,
181
+ internalType: "uint256",
182
+ name: "deposit1Max",
183
+ type: "uint256",
184
+ },
185
+ ],
186
+ name: "DepositMax",
187
+ type: "event",
188
+ },
189
+ {
190
+ anonymous: false,
191
+ inputs: [
192
+ {
193
+ indexed: true,
194
+ internalType: "address",
195
+ name: "sender",
196
+ type: "address",
197
+ },
198
+ {
199
+ indexed: false,
200
+ internalType: "uint256",
201
+ name: "hysteresis",
202
+ type: "uint256",
203
+ },
204
+ ],
205
+ name: "Hysteresis",
206
+ type: "event",
207
+ },
208
+ {
209
+ anonymous: false,
210
+ inputs: [
211
+ {
212
+ indexed: true,
213
+ internalType: "address",
214
+ name: "sender",
215
+ type: "address",
216
+ },
217
+ {
218
+ indexed: false,
219
+ internalType: "uint256",
220
+ name: "maxTotalSupply",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ name: "MaxTotalSupply",
225
+ type: "event",
226
+ },
227
+ {
228
+ anonymous: false,
229
+ inputs: [
230
+ {
231
+ indexed: true,
232
+ internalType: "address",
233
+ name: "previousOwner",
234
+ type: "address",
235
+ },
236
+ {
237
+ indexed: true,
238
+ internalType: "address",
239
+ name: "newOwner",
240
+ type: "address",
241
+ },
242
+ ],
243
+ name: "OwnershipTransferred",
244
+ type: "event",
245
+ },
246
+ {
247
+ anonymous: false,
248
+ inputs: [
249
+ {
250
+ indexed: false,
251
+ internalType: "int24",
252
+ name: "tick",
253
+ type: "int24",
254
+ },
255
+ {
256
+ indexed: false,
257
+ internalType: "uint256",
258
+ name: "totalAmount0",
259
+ type: "uint256",
260
+ },
261
+ {
262
+ indexed: false,
263
+ internalType: "uint256",
264
+ name: "totalAmount1",
265
+ type: "uint256",
266
+ },
267
+ {
268
+ indexed: false,
269
+ internalType: "uint256",
270
+ name: "feeAmount0",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ indexed: false,
275
+ internalType: "uint256",
276
+ name: "feeAmount1",
277
+ type: "uint256",
278
+ },
279
+ {
280
+ indexed: false,
281
+ internalType: "uint256",
282
+ name: "totalSupply",
283
+ type: "uint256",
284
+ },
285
+ ],
286
+ name: "Rebalance",
287
+ type: "event",
288
+ },
289
+ {
290
+ anonymous: false,
291
+ inputs: [
292
+ {
293
+ indexed: false,
294
+ internalType: "address",
295
+ name: "sender",
296
+ type: "address",
297
+ },
298
+ {
299
+ indexed: false,
300
+ internalType: "uint32",
301
+ name: "newTwapPeriod",
302
+ type: "uint32",
303
+ },
304
+ ],
305
+ name: "SetTwapPeriod",
306
+ type: "event",
307
+ },
308
+ {
309
+ anonymous: false,
310
+ inputs: [
311
+ {
312
+ indexed: true,
313
+ internalType: "address",
314
+ name: "from",
315
+ type: "address",
316
+ },
317
+ {
318
+ indexed: true,
319
+ internalType: "address",
320
+ name: "to",
321
+ type: "address",
322
+ },
323
+ {
324
+ indexed: false,
325
+ internalType: "uint256",
326
+ name: "value",
327
+ type: "uint256",
328
+ },
329
+ ],
330
+ name: "Transfer",
331
+ type: "event",
332
+ },
333
+ {
334
+ anonymous: false,
335
+ inputs: [
336
+ {
337
+ indexed: true,
338
+ internalType: "address",
339
+ name: "sender",
340
+ type: "address",
341
+ },
342
+ {
343
+ indexed: true,
344
+ internalType: "address",
345
+ name: "to",
346
+ type: "address",
347
+ },
348
+ {
349
+ indexed: false,
350
+ internalType: "uint256",
351
+ name: "shares",
352
+ type: "uint256",
353
+ },
354
+ {
355
+ indexed: false,
356
+ internalType: "uint256",
357
+ name: "amount0",
358
+ type: "uint256",
359
+ },
360
+ {
361
+ indexed: false,
362
+ internalType: "uint256",
363
+ name: "amount1",
364
+ type: "uint256",
365
+ },
366
+ ],
367
+ name: "Withdraw",
368
+ type: "event",
369
+ },
370
+ {
371
+ inputs: [],
372
+ name: "PRECISION",
373
+ outputs: [
374
+ {
375
+ internalType: "uint256",
376
+ name: "",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ stateMutability: "view",
381
+ type: "function",
382
+ },
383
+ {
384
+ inputs: [],
385
+ name: "affiliate",
386
+ outputs: [
387
+ {
388
+ internalType: "address",
389
+ name: "",
390
+ type: "address",
391
+ },
392
+ ],
393
+ stateMutability: "view",
394
+ type: "function",
395
+ },
396
+ {
397
+ inputs: [],
398
+ name: "allowToken0",
399
+ outputs: [
400
+ {
401
+ internalType: "bool",
402
+ name: "",
403
+ type: "bool",
404
+ },
405
+ ],
406
+ stateMutability: "view",
407
+ type: "function",
408
+ },
409
+ {
410
+ inputs: [],
411
+ name: "allowToken1",
412
+ outputs: [
413
+ {
414
+ internalType: "bool",
415
+ name: "",
416
+ type: "bool",
417
+ },
418
+ ],
419
+ stateMutability: "view",
420
+ type: "function",
421
+ },
422
+ {
423
+ inputs: [
424
+ {
425
+ internalType: "address",
426
+ name: "owner",
427
+ type: "address",
428
+ },
429
+ {
430
+ internalType: "address",
431
+ name: "spender",
432
+ type: "address",
433
+ },
434
+ ],
435
+ name: "allowance",
436
+ outputs: [
437
+ {
438
+ internalType: "uint256",
439
+ name: "",
440
+ type: "uint256",
441
+ },
442
+ ],
443
+ stateMutability: "view",
444
+ type: "function",
445
+ },
446
+ {
447
+ inputs: [
448
+ {
449
+ internalType: "address",
450
+ name: "spender",
451
+ type: "address",
452
+ },
453
+ {
454
+ internalType: "uint256",
455
+ name: "amount",
456
+ type: "uint256",
457
+ },
458
+ ],
459
+ name: "approve",
460
+ outputs: [
461
+ {
462
+ internalType: "bool",
463
+ name: "",
464
+ type: "bool",
465
+ },
466
+ ],
467
+ stateMutability: "nonpayable",
468
+ type: "function",
469
+ },
470
+ {
471
+ inputs: [
472
+ {
473
+ internalType: "address",
474
+ name: "account",
475
+ type: "address",
476
+ },
477
+ ],
478
+ name: "balanceOf",
479
+ outputs: [
480
+ {
481
+ internalType: "uint256",
482
+ name: "",
483
+ type: "uint256",
484
+ },
485
+ ],
486
+ stateMutability: "view",
487
+ type: "function",
488
+ },
489
+ {
490
+ inputs: [],
491
+ name: "baseLower",
492
+ outputs: [
493
+ {
494
+ internalType: "int24",
495
+ name: "",
496
+ type: "int24",
497
+ },
498
+ ],
499
+ stateMutability: "view",
500
+ type: "function",
501
+ },
502
+ {
503
+ inputs: [],
504
+ name: "baseUpper",
505
+ outputs: [
506
+ {
507
+ internalType: "int24",
508
+ name: "",
509
+ type: "int24",
510
+ },
511
+ ],
512
+ stateMutability: "view",
513
+ type: "function",
514
+ },
515
+ {
516
+ inputs: [],
517
+ name: "currentTick",
518
+ outputs: [
519
+ {
520
+ internalType: "int24",
521
+ name: "tick",
522
+ type: "int24",
523
+ },
524
+ ],
525
+ stateMutability: "view",
526
+ type: "function",
527
+ },
528
+ {
529
+ inputs: [],
530
+ name: "decimals",
531
+ outputs: [
532
+ {
533
+ internalType: "uint8",
534
+ name: "",
535
+ type: "uint8",
536
+ },
537
+ ],
538
+ stateMutability: "view",
539
+ type: "function",
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ internalType: "address",
545
+ name: "spender",
546
+ type: "address",
547
+ },
548
+ {
549
+ internalType: "uint256",
550
+ name: "subtractedValue",
551
+ type: "uint256",
552
+ },
553
+ ],
554
+ name: "decreaseAllowance",
555
+ outputs: [
556
+ {
557
+ internalType: "bool",
558
+ name: "",
559
+ type: "bool",
560
+ },
561
+ ],
562
+ stateMutability: "nonpayable",
563
+ type: "function",
564
+ },
565
+ {
566
+ inputs: [
567
+ {
568
+ internalType: "uint256",
569
+ name: "deposit0",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "deposit1",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "address",
579
+ name: "to",
580
+ type: "address",
581
+ },
582
+ ],
583
+ name: "deposit",
584
+ outputs: [
585
+ {
586
+ internalType: "uint256",
587
+ name: "shares",
588
+ type: "uint256",
589
+ },
590
+ ],
591
+ stateMutability: "nonpayable",
592
+ type: "function",
593
+ },
594
+ {
595
+ inputs: [],
596
+ name: "deposit0Max",
597
+ outputs: [
598
+ {
599
+ internalType: "uint256",
600
+ name: "",
601
+ type: "uint256",
602
+ },
603
+ ],
604
+ stateMutability: "view",
605
+ type: "function",
606
+ },
607
+ {
608
+ inputs: [],
609
+ name: "deposit1Max",
610
+ outputs: [
611
+ {
612
+ internalType: "uint256",
613
+ name: "",
614
+ type: "uint256",
615
+ },
616
+ ],
617
+ stateMutability: "view",
618
+ type: "function",
619
+ },
620
+ {
621
+ inputs: [],
622
+ name: "fee",
623
+ outputs: [
624
+ {
625
+ internalType: "uint24",
626
+ name: "",
627
+ type: "uint24",
628
+ },
629
+ ],
630
+ stateMutability: "view",
631
+ type: "function",
632
+ },
633
+ {
634
+ inputs: [],
635
+ name: "getBasePosition",
636
+ outputs: [
637
+ {
638
+ internalType: "uint128",
639
+ name: "liquidity",
640
+ type: "uint128",
641
+ },
642
+ {
643
+ internalType: "uint256",
644
+ name: "amount0",
645
+ type: "uint256",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "amount1",
650
+ type: "uint256",
651
+ },
652
+ ],
653
+ stateMutability: "view",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [],
658
+ name: "getLimitPosition",
659
+ outputs: [
660
+ {
661
+ internalType: "uint128",
662
+ name: "liquidity",
663
+ type: "uint128",
664
+ },
665
+ {
666
+ internalType: "uint256",
667
+ name: "amount0",
668
+ type: "uint256",
669
+ },
670
+ {
671
+ internalType: "uint256",
672
+ name: "amount1",
673
+ type: "uint256",
674
+ },
675
+ ],
676
+ stateMutability: "view",
677
+ type: "function",
678
+ },
679
+ {
680
+ inputs: [],
681
+ name: "getTotalAmounts",
682
+ outputs: [
683
+ {
684
+ internalType: "uint256",
685
+ name: "total0",
686
+ type: "uint256",
687
+ },
688
+ {
689
+ internalType: "uint256",
690
+ name: "total1",
691
+ type: "uint256",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [],
699
+ name: "hysteresis",
700
+ outputs: [
701
+ {
702
+ internalType: "uint256",
703
+ name: "",
704
+ type: "uint256",
705
+ },
706
+ ],
707
+ stateMutability: "view",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [],
712
+ name: "ichiVaultFactory",
713
+ outputs: [
714
+ {
715
+ internalType: "address",
716
+ name: "",
717
+ type: "address",
718
+ },
719
+ ],
720
+ stateMutability: "view",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [
725
+ {
726
+ internalType: "address",
727
+ name: "spender",
728
+ type: "address",
729
+ },
730
+ {
731
+ internalType: "uint256",
732
+ name: "addedValue",
733
+ type: "uint256",
734
+ },
735
+ ],
736
+ name: "increaseAllowance",
737
+ outputs: [
738
+ {
739
+ internalType: "bool",
740
+ name: "",
741
+ type: "bool",
742
+ },
743
+ ],
744
+ stateMutability: "nonpayable",
745
+ type: "function",
746
+ },
747
+ {
748
+ inputs: [],
749
+ name: "limitLower",
750
+ outputs: [
751
+ {
752
+ internalType: "int24",
753
+ name: "",
754
+ type: "int24",
755
+ },
756
+ ],
757
+ stateMutability: "view",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [],
762
+ name: "limitUpper",
763
+ outputs: [
764
+ {
765
+ internalType: "int24",
766
+ name: "",
767
+ type: "int24",
768
+ },
769
+ ],
770
+ stateMutability: "view",
771
+ type: "function",
772
+ },
773
+ {
774
+ inputs: [],
775
+ name: "maxTotalSupply",
776
+ outputs: [
777
+ {
778
+ internalType: "uint256",
779
+ name: "",
780
+ type: "uint256",
781
+ },
782
+ ],
783
+ stateMutability: "view",
784
+ type: "function",
785
+ },
786
+ {
787
+ inputs: [],
788
+ name: "name",
789
+ outputs: [
790
+ {
791
+ internalType: "string",
792
+ name: "",
793
+ type: "string",
794
+ },
795
+ ],
796
+ stateMutability: "view",
797
+ type: "function",
798
+ },
799
+ {
800
+ inputs: [],
801
+ name: "owner",
802
+ outputs: [
803
+ {
804
+ internalType: "address",
805
+ name: "",
806
+ type: "address",
807
+ },
808
+ ],
809
+ stateMutability: "view",
810
+ type: "function",
811
+ },
812
+ {
813
+ inputs: [],
814
+ name: "pool",
815
+ outputs: [
816
+ {
817
+ internalType: "address",
818
+ name: "",
819
+ type: "address",
820
+ },
821
+ ],
822
+ stateMutability: "view",
823
+ type: "function",
824
+ },
825
+ {
826
+ inputs: [
827
+ {
828
+ internalType: "int24",
829
+ name: "_baseLower",
830
+ type: "int24",
831
+ },
832
+ {
833
+ internalType: "int24",
834
+ name: "_baseUpper",
835
+ type: "int24",
836
+ },
837
+ {
838
+ internalType: "int24",
839
+ name: "_limitLower",
840
+ type: "int24",
841
+ },
842
+ {
843
+ internalType: "int24",
844
+ name: "_limitUpper",
845
+ type: "int24",
846
+ },
847
+ {
848
+ internalType: "int256",
849
+ name: "swapQuantity",
850
+ type: "int256",
851
+ },
852
+ ],
853
+ name: "rebalance",
854
+ outputs: [],
855
+ stateMutability: "nonpayable",
856
+ type: "function",
857
+ },
858
+ {
859
+ inputs: [],
860
+ name: "renounceOwnership",
861
+ outputs: [],
862
+ stateMutability: "nonpayable",
863
+ type: "function",
864
+ },
865
+ {
866
+ inputs: [
867
+ {
868
+ internalType: "address",
869
+ name: "_affiliate",
870
+ type: "address",
871
+ },
872
+ ],
873
+ name: "setAffiliate",
874
+ outputs: [],
875
+ stateMutability: "nonpayable",
876
+ type: "function",
877
+ },
878
+ {
879
+ inputs: [
880
+ {
881
+ internalType: "uint256",
882
+ name: "_deposit0Max",
883
+ type: "uint256",
884
+ },
885
+ {
886
+ internalType: "uint256",
887
+ name: "_deposit1Max",
888
+ type: "uint256",
889
+ },
890
+ ],
891
+ name: "setDepositMax",
892
+ outputs: [],
893
+ stateMutability: "nonpayable",
894
+ type: "function",
895
+ },
896
+ {
897
+ inputs: [
898
+ {
899
+ internalType: "uint256",
900
+ name: "_hysteresis",
901
+ type: "uint256",
902
+ },
903
+ ],
904
+ name: "setHysteresis",
905
+ outputs: [],
906
+ stateMutability: "nonpayable",
907
+ type: "function",
908
+ },
909
+ {
910
+ inputs: [
911
+ {
912
+ internalType: "uint256",
913
+ name: "_maxTotalSupply",
914
+ type: "uint256",
915
+ },
916
+ ],
917
+ name: "setMaxTotalSupply",
918
+ outputs: [],
919
+ stateMutability: "nonpayable",
920
+ type: "function",
921
+ },
922
+ {
923
+ inputs: [
924
+ {
925
+ internalType: "uint32",
926
+ name: "newTwapPeriod",
927
+ type: "uint32",
928
+ },
929
+ ],
930
+ name: "setTwapPeriod",
931
+ outputs: [],
932
+ stateMutability: "nonpayable",
933
+ type: "function",
934
+ },
935
+ {
936
+ inputs: [],
937
+ name: "symbol",
938
+ outputs: [
939
+ {
940
+ internalType: "string",
941
+ name: "",
942
+ type: "string",
943
+ },
944
+ ],
945
+ stateMutability: "view",
946
+ type: "function",
947
+ },
948
+ {
949
+ inputs: [],
950
+ name: "tickSpacing",
951
+ outputs: [
952
+ {
953
+ internalType: "int24",
954
+ name: "",
955
+ type: "int24",
956
+ },
957
+ ],
958
+ stateMutability: "view",
959
+ type: "function",
960
+ },
961
+ {
962
+ inputs: [],
963
+ name: "token0",
964
+ outputs: [
965
+ {
966
+ internalType: "address",
967
+ name: "",
968
+ type: "address",
969
+ },
970
+ ],
971
+ stateMutability: "view",
972
+ type: "function",
973
+ },
974
+ {
975
+ inputs: [],
976
+ name: "token1",
977
+ outputs: [
978
+ {
979
+ internalType: "address",
980
+ name: "",
981
+ type: "address",
982
+ },
983
+ ],
984
+ stateMutability: "view",
985
+ type: "function",
986
+ },
987
+ {
988
+ inputs: [],
989
+ name: "totalSupply",
990
+ outputs: [
991
+ {
992
+ internalType: "uint256",
993
+ name: "",
994
+ type: "uint256",
995
+ },
996
+ ],
997
+ stateMutability: "view",
998
+ type: "function",
999
+ },
1000
+ {
1001
+ inputs: [
1002
+ {
1003
+ internalType: "address",
1004
+ name: "recipient",
1005
+ type: "address",
1006
+ },
1007
+ {
1008
+ internalType: "uint256",
1009
+ name: "amount",
1010
+ type: "uint256",
1011
+ },
1012
+ ],
1013
+ name: "transfer",
1014
+ outputs: [
1015
+ {
1016
+ internalType: "bool",
1017
+ name: "",
1018
+ type: "bool",
1019
+ },
1020
+ ],
1021
+ stateMutability: "nonpayable",
1022
+ type: "function",
1023
+ },
1024
+ {
1025
+ inputs: [
1026
+ {
1027
+ internalType: "address",
1028
+ name: "sender",
1029
+ type: "address",
1030
+ },
1031
+ {
1032
+ internalType: "address",
1033
+ name: "recipient",
1034
+ type: "address",
1035
+ },
1036
+ {
1037
+ internalType: "uint256",
1038
+ name: "amount",
1039
+ type: "uint256",
1040
+ },
1041
+ ],
1042
+ name: "transferFrom",
1043
+ outputs: [
1044
+ {
1045
+ internalType: "bool",
1046
+ name: "",
1047
+ type: "bool",
1048
+ },
1049
+ ],
1050
+ stateMutability: "nonpayable",
1051
+ type: "function",
1052
+ },
1053
+ {
1054
+ inputs: [
1055
+ {
1056
+ internalType: "address",
1057
+ name: "newOwner",
1058
+ type: "address",
1059
+ },
1060
+ ],
1061
+ name: "transferOwnership",
1062
+ outputs: [],
1063
+ stateMutability: "nonpayable",
1064
+ type: "function",
1065
+ },
1066
+ {
1067
+ inputs: [],
1068
+ name: "twapPeriod",
1069
+ outputs: [
1070
+ {
1071
+ internalType: "uint32",
1072
+ name: "",
1073
+ type: "uint32",
1074
+ },
1075
+ ],
1076
+ stateMutability: "view",
1077
+ type: "function",
1078
+ },
1079
+ {
1080
+ inputs: [
1081
+ {
1082
+ internalType: "uint256",
1083
+ name: "amount0",
1084
+ type: "uint256",
1085
+ },
1086
+ {
1087
+ internalType: "uint256",
1088
+ name: "amount1",
1089
+ type: "uint256",
1090
+ },
1091
+ {
1092
+ internalType: "bytes",
1093
+ name: "data",
1094
+ type: "bytes",
1095
+ },
1096
+ ],
1097
+ name: "uniswapV3MintCallback",
1098
+ outputs: [],
1099
+ stateMutability: "nonpayable",
1100
+ type: "function",
1101
+ },
1102
+ {
1103
+ inputs: [
1104
+ {
1105
+ internalType: "int256",
1106
+ name: "amount0Delta",
1107
+ type: "int256",
1108
+ },
1109
+ {
1110
+ internalType: "int256",
1111
+ name: "amount1Delta",
1112
+ type: "int256",
1113
+ },
1114
+ {
1115
+ internalType: "bytes",
1116
+ name: "data",
1117
+ type: "bytes",
1118
+ },
1119
+ ],
1120
+ name: "uniswapV3SwapCallback",
1121
+ outputs: [],
1122
+ stateMutability: "nonpayable",
1123
+ type: "function",
1124
+ },
1125
+ {
1126
+ inputs: [
1127
+ {
1128
+ internalType: "uint256",
1129
+ name: "shares",
1130
+ type: "uint256",
1131
+ },
1132
+ {
1133
+ internalType: "address",
1134
+ name: "to",
1135
+ type: "address",
1136
+ },
1137
+ ],
1138
+ name: "withdraw",
1139
+ outputs: [
1140
+ {
1141
+ internalType: "uint256",
1142
+ name: "amount0",
1143
+ type: "uint256",
1144
+ },
1145
+ {
1146
+ internalType: "uint256",
1147
+ name: "amount1",
1148
+ type: "uint256",
1149
+ },
1150
+ ],
1151
+ stateMutability: "nonpayable",
1152
+ type: "function",
1153
+ },
1154
+ ];
1155
+ var IchiVault__factory = /** @class */ (function () {
1156
+ function IchiVault__factory() {
1157
+ }
1158
+ IchiVault__factory.createInterface = function () {
1159
+ return new ethers_1.utils.Interface(_abi);
1160
+ };
1161
+ IchiVault__factory.connect = function (address, signerOrProvider) {
1162
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
1163
+ };
1164
+ IchiVault__factory.abi = _abi;
1165
+ return IchiVault__factory;
1166
+ }());
1167
+ exports.IchiVault__factory = IchiVault__factory;
1168
+ //# sourceMappingURL=IchiVault__factory.js.map