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