timelock-sdk 0.0.134 → 0.0.136

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 (42) hide show
  1. package/dist/abis.cjs +602 -3
  2. package/dist/abis.cjs.map +1 -0
  3. package/dist/abis.d.cts +354 -90
  4. package/dist/abis.d.ts +354 -90
  5. package/dist/abis.js +602 -3
  6. package/dist/abis.js.map +1 -0
  7. package/dist/{client-CJcTIGGv.d.cts → client-B7kKAk49.d.cts} +44622 -34761
  8. package/dist/{client-CZdmjIOb.d.ts → client-D4EJlSs_.d.ts} +44623 -34762
  9. package/dist/client.cjs +88 -74
  10. package/dist/client.cjs.map +1 -1
  11. package/dist/client.d.cts +3 -3
  12. package/dist/client.d.ts +3 -3
  13. package/dist/client.js +87 -75
  14. package/dist/client.js.map +1 -1
  15. package/dist/optionUtils-B0rlRtfb.js +1401 -0
  16. package/dist/optionUtils-B0rlRtfb.js.map +1 -0
  17. package/dist/{optionUtils-OfLzCR6R.cjs → optionUtils-pH0o9gTm.cjs} +1069 -37
  18. package/dist/optionUtils-pH0o9gTm.cjs.map +1 -0
  19. package/dist/{optionsMarket-B2IsvbeA.js → optionsMarket-CjlRzn2K.js} +213 -21
  20. package/dist/optionsMarket-CjlRzn2K.js.map +1 -0
  21. package/dist/{optionsMarket-C6K82im8.cjs → optionsMarket-iZiYJCuW.cjs} +213 -21
  22. package/dist/optionsMarket-iZiYJCuW.cjs.map +1 -0
  23. package/dist/package.cjs +5 -6
  24. package/dist/package.d.cts +3 -3
  25. package/dist/package.d.ts +3 -3
  26. package/dist/package.js +3 -3
  27. package/dist/singleOwnerVault-BJyEs_D_.js +847 -0
  28. package/dist/singleOwnerVault-BJyEs_D_.js.map +1 -0
  29. package/dist/singleOwnerVault-GCpQV7pN.cjs +853 -0
  30. package/dist/singleOwnerVault-GCpQV7pN.cjs.map +1 -0
  31. package/dist/{uniswapMathLens-DHfzEjej.d.ts → uniswapMathLens-B0xWynAN.d.cts} +182 -21
  32. package/dist/{uniswapMathLens-Be6lFJcD.d.cts → uniswapMathLens-DAI2a8aU.d.ts} +182 -21
  33. package/package.json +38 -38
  34. package/dist/optionUtils-CQzUsKpO.js +0 -369
  35. package/dist/optionUtils-CQzUsKpO.js.map +0 -1
  36. package/dist/optionUtils-OfLzCR6R.cjs.map +0 -1
  37. package/dist/optionsMarket-B2IsvbeA.js.map +0 -1
  38. package/dist/optionsMarket-C6K82im8.cjs.map +0 -1
  39. package/dist/singleOwnerVault-gf2zNZVk.cjs +0 -1131
  40. package/dist/singleOwnerVault-gf2zNZVk.cjs.map +0 -1
  41. package/dist/singleOwnerVault-p81IjmWe.js +0 -1119
  42. package/dist/singleOwnerVault-p81IjmWe.js.map +0 -1
@@ -0,0 +1,847 @@
1
+ //#region src/abis/singleOwnerVault.ts
2
+ const singleOwnerVaultAbi = [
3
+ {
4
+ type: "constructor",
5
+ inputs: [{
6
+ name: "_poolManager",
7
+ type: "address",
8
+ internalType: "contract IPoolManager"
9
+ }, {
10
+ name: "_poolKey",
11
+ type: "tuple",
12
+ internalType: "struct PoolKey",
13
+ components: [
14
+ {
15
+ name: "currency0",
16
+ type: "address",
17
+ internalType: "Currency"
18
+ },
19
+ {
20
+ name: "currency1",
21
+ type: "address",
22
+ internalType: "Currency"
23
+ },
24
+ {
25
+ name: "fee",
26
+ type: "uint24",
27
+ internalType: "uint24"
28
+ },
29
+ {
30
+ name: "tickSpacing",
31
+ type: "int24",
32
+ internalType: "int24"
33
+ },
34
+ {
35
+ name: "hooks",
36
+ type: "address",
37
+ internalType: "contract IHooks"
38
+ }
39
+ ]
40
+ }],
41
+ stateMutability: "nonpayable"
42
+ },
43
+ {
44
+ type: "function",
45
+ name: "BORROW",
46
+ inputs: [],
47
+ outputs: [{
48
+ name: "",
49
+ type: "uint8",
50
+ internalType: "uint8"
51
+ }],
52
+ stateMutability: "view"
53
+ },
54
+ {
55
+ type: "function",
56
+ name: "BURN",
57
+ inputs: [],
58
+ outputs: [{
59
+ name: "",
60
+ type: "uint8",
61
+ internalType: "uint8"
62
+ }],
63
+ stateMutability: "view"
64
+ },
65
+ {
66
+ type: "function",
67
+ name: "MINT",
68
+ inputs: [],
69
+ outputs: [{
70
+ name: "",
71
+ type: "uint8",
72
+ internalType: "uint8"
73
+ }],
74
+ stateMutability: "view"
75
+ },
76
+ {
77
+ type: "function",
78
+ name: "REPAY",
79
+ inputs: [],
80
+ outputs: [{
81
+ name: "",
82
+ type: "uint8",
83
+ internalType: "uint8"
84
+ }],
85
+ stateMutability: "view"
86
+ },
87
+ {
88
+ type: "function",
89
+ name: "blocks",
90
+ inputs: [{
91
+ name: "",
92
+ type: "int24",
93
+ internalType: "int24"
94
+ }],
95
+ outputs: [
96
+ {
97
+ name: "tickLower",
98
+ type: "int24",
99
+ internalType: "int24"
100
+ },
101
+ {
102
+ name: "tickUpper",
103
+ type: "int24",
104
+ internalType: "int24"
105
+ },
106
+ {
107
+ name: "prevTickLower",
108
+ type: "int24",
109
+ internalType: "int24"
110
+ },
111
+ {
112
+ name: "totalLiquidity",
113
+ type: "uint128",
114
+ internalType: "uint128"
115
+ },
116
+ {
117
+ name: "borrowedLiquidity",
118
+ type: "uint128",
119
+ internalType: "uint128"
120
+ }
121
+ ],
122
+ stateMutability: "view"
123
+ },
124
+ {
125
+ type: "function",
126
+ name: "blocksCount",
127
+ inputs: [],
128
+ outputs: [{
129
+ name: "",
130
+ type: "uint256",
131
+ internalType: "uint256"
132
+ }],
133
+ stateMutability: "view"
134
+ },
135
+ {
136
+ type: "function",
137
+ name: "borrow",
138
+ inputs: [
139
+ {
140
+ name: "tickLower",
141
+ type: "int24",
142
+ internalType: "int24"
143
+ },
144
+ {
145
+ name: "tickUpper",
146
+ type: "int24",
147
+ internalType: "int24"
148
+ },
149
+ {
150
+ name: "liquidity",
151
+ type: "uint128",
152
+ internalType: "uint128"
153
+ },
154
+ {
155
+ name: "refTick",
156
+ type: "int24",
157
+ internalType: "int24"
158
+ }
159
+ ],
160
+ outputs: [{
161
+ name: "delta0",
162
+ type: "int256",
163
+ internalType: "int256"
164
+ }, {
165
+ name: "delta1",
166
+ type: "int256",
167
+ internalType: "int256"
168
+ }],
169
+ stateMutability: "nonpayable"
170
+ },
171
+ {
172
+ type: "function",
173
+ name: "borrowerWhitelist",
174
+ inputs: [{
175
+ name: "",
176
+ type: "address",
177
+ internalType: "address"
178
+ }],
179
+ outputs: [{
180
+ name: "",
181
+ type: "bool",
182
+ internalType: "bool"
183
+ }],
184
+ stateMutability: "view"
185
+ },
186
+ {
187
+ type: "function",
188
+ name: "burn",
189
+ inputs: [
190
+ {
191
+ name: "tickLower",
192
+ type: "int24",
193
+ internalType: "int24"
194
+ },
195
+ {
196
+ name: "tickUpper",
197
+ type: "int24",
198
+ internalType: "int24"
199
+ },
200
+ {
201
+ name: "liquidity",
202
+ type: "uint128",
203
+ internalType: "uint128"
204
+ },
205
+ {
206
+ name: "refTick",
207
+ type: "int24",
208
+ internalType: "int24"
209
+ }
210
+ ],
211
+ outputs: [
212
+ {
213
+ name: "amount0",
214
+ type: "int256",
215
+ internalType: "int256"
216
+ },
217
+ {
218
+ name: "amount1",
219
+ type: "int256",
220
+ internalType: "int256"
221
+ },
222
+ {
223
+ name: "fees0",
224
+ type: "uint256",
225
+ internalType: "uint256"
226
+ },
227
+ {
228
+ name: "fees1",
229
+ type: "uint256",
230
+ internalType: "uint256"
231
+ }
232
+ ],
233
+ stateMutability: "nonpayable"
234
+ },
235
+ {
236
+ type: "function",
237
+ name: "getBlock",
238
+ inputs: [{
239
+ name: "tickLower",
240
+ type: "int24",
241
+ internalType: "int24"
242
+ }, {
243
+ name: "refTick",
244
+ type: "int24",
245
+ internalType: "int24"
246
+ }],
247
+ outputs: [{
248
+ name: "",
249
+ type: "tuple",
250
+ internalType: "struct TimelockVaultCore.LiquidityBlock",
251
+ components: [
252
+ {
253
+ name: "tickLower",
254
+ type: "int24",
255
+ internalType: "int24"
256
+ },
257
+ {
258
+ name: "tickUpper",
259
+ type: "int24",
260
+ internalType: "int24"
261
+ },
262
+ {
263
+ name: "prevTickLower",
264
+ type: "int24",
265
+ internalType: "int24"
266
+ },
267
+ {
268
+ name: "totalLiquidity",
269
+ type: "uint128",
270
+ internalType: "uint128"
271
+ },
272
+ {
273
+ name: "borrowedLiquidity",
274
+ type: "uint128",
275
+ internalType: "uint128"
276
+ }
277
+ ]
278
+ }],
279
+ stateMutability: "view"
280
+ },
281
+ {
282
+ type: "function",
283
+ name: "highestTick",
284
+ inputs: [],
285
+ outputs: [{
286
+ name: "",
287
+ type: "int24",
288
+ internalType: "int24"
289
+ }],
290
+ stateMutability: "view"
291
+ },
292
+ {
293
+ type: "function",
294
+ name: "lowestTick",
295
+ inputs: [],
296
+ outputs: [{
297
+ name: "",
298
+ type: "int24",
299
+ internalType: "int24"
300
+ }],
301
+ stateMutability: "view"
302
+ },
303
+ {
304
+ type: "function",
305
+ name: "mint",
306
+ inputs: [
307
+ {
308
+ name: "tickLower",
309
+ type: "int24",
310
+ internalType: "int24"
311
+ },
312
+ {
313
+ name: "tickUpper",
314
+ type: "int24",
315
+ internalType: "int24"
316
+ },
317
+ {
318
+ name: "liquidity",
319
+ type: "uint128",
320
+ internalType: "uint128"
321
+ },
322
+ {
323
+ name: "refTick",
324
+ type: "int24",
325
+ internalType: "int24"
326
+ }
327
+ ],
328
+ outputs: [
329
+ {
330
+ name: "amount0",
331
+ type: "int256",
332
+ internalType: "int256"
333
+ },
334
+ {
335
+ name: "amount1",
336
+ type: "int256",
337
+ internalType: "int256"
338
+ },
339
+ {
340
+ name: "fees0",
341
+ type: "uint256",
342
+ internalType: "uint256"
343
+ },
344
+ {
345
+ name: "fees1",
346
+ type: "uint256",
347
+ internalType: "uint256"
348
+ }
349
+ ],
350
+ stateMutability: "nonpayable"
351
+ },
352
+ {
353
+ type: "function",
354
+ name: "multicall",
355
+ inputs: [{
356
+ name: "data",
357
+ type: "bytes[]",
358
+ internalType: "bytes[]"
359
+ }],
360
+ outputs: [{
361
+ name: "results",
362
+ type: "bytes[]",
363
+ internalType: "bytes[]"
364
+ }],
365
+ stateMutability: "nonpayable"
366
+ },
367
+ {
368
+ type: "function",
369
+ name: "owner",
370
+ inputs: [],
371
+ outputs: [{
372
+ name: "",
373
+ type: "address",
374
+ internalType: "address"
375
+ }],
376
+ stateMutability: "view"
377
+ },
378
+ {
379
+ type: "function",
380
+ name: "poolKey",
381
+ inputs: [],
382
+ outputs: [{
383
+ name: "",
384
+ type: "tuple",
385
+ internalType: "struct PoolKey",
386
+ components: [
387
+ {
388
+ name: "currency0",
389
+ type: "address",
390
+ internalType: "Currency"
391
+ },
392
+ {
393
+ name: "currency1",
394
+ type: "address",
395
+ internalType: "Currency"
396
+ },
397
+ {
398
+ name: "fee",
399
+ type: "uint24",
400
+ internalType: "uint24"
401
+ },
402
+ {
403
+ name: "tickSpacing",
404
+ type: "int24",
405
+ internalType: "int24"
406
+ },
407
+ {
408
+ name: "hooks",
409
+ type: "address",
410
+ internalType: "contract IHooks"
411
+ }
412
+ ]
413
+ }],
414
+ stateMutability: "view"
415
+ },
416
+ {
417
+ type: "function",
418
+ name: "poolManager",
419
+ inputs: [],
420
+ outputs: [{
421
+ name: "",
422
+ type: "address",
423
+ internalType: "contract IPoolManager"
424
+ }],
425
+ stateMutability: "view"
426
+ },
427
+ {
428
+ type: "function",
429
+ name: "renounceOwnership",
430
+ inputs: [],
431
+ outputs: [],
432
+ stateMutability: "nonpayable"
433
+ },
434
+ {
435
+ type: "function",
436
+ name: "repay",
437
+ inputs: [
438
+ {
439
+ name: "tickLower",
440
+ type: "int24",
441
+ internalType: "int24"
442
+ },
443
+ {
444
+ name: "tickUpper",
445
+ type: "int24",
446
+ internalType: "int24"
447
+ },
448
+ {
449
+ name: "liquidity",
450
+ type: "uint128",
451
+ internalType: "uint128"
452
+ },
453
+ {
454
+ name: "refTick",
455
+ type: "int24",
456
+ internalType: "int24"
457
+ }
458
+ ],
459
+ outputs: [{
460
+ name: "delta0",
461
+ type: "int256",
462
+ internalType: "int256"
463
+ }, {
464
+ name: "delta1",
465
+ type: "int256",
466
+ internalType: "int256"
467
+ }],
468
+ stateMutability: "nonpayable"
469
+ },
470
+ {
471
+ type: "function",
472
+ name: "settleAndTake",
473
+ inputs: [],
474
+ outputs: [{
475
+ name: "delta0",
476
+ type: "int256",
477
+ internalType: "int256"
478
+ }, {
479
+ name: "delta1",
480
+ type: "int256",
481
+ internalType: "int256"
482
+ }],
483
+ stateMutability: "nonpayable"
484
+ },
485
+ {
486
+ type: "function",
487
+ name: "transferOwnership",
488
+ inputs: [{
489
+ name: "newOwner",
490
+ type: "address",
491
+ internalType: "address"
492
+ }],
493
+ outputs: [],
494
+ stateMutability: "nonpayable"
495
+ },
496
+ {
497
+ type: "function",
498
+ name: "unlockCallback",
499
+ inputs: [{
500
+ name: "rawData",
501
+ type: "bytes",
502
+ internalType: "bytes"
503
+ }],
504
+ outputs: [{
505
+ name: "",
506
+ type: "bytes",
507
+ internalType: "bytes"
508
+ }],
509
+ stateMutability: "nonpayable"
510
+ },
511
+ {
512
+ type: "function",
513
+ name: "whitelistBorrower",
514
+ inputs: [{
515
+ name: "borrower",
516
+ type: "address",
517
+ internalType: "address"
518
+ }, {
519
+ name: "status",
520
+ type: "bool",
521
+ internalType: "bool"
522
+ }],
523
+ outputs: [],
524
+ stateMutability: "nonpayable"
525
+ },
526
+ {
527
+ type: "function",
528
+ name: "withdrawTokens",
529
+ inputs: [{
530
+ name: "tokens",
531
+ type: "address[]",
532
+ internalType: "contract IERC20[]"
533
+ }],
534
+ outputs: [],
535
+ stateMutability: "nonpayable"
536
+ },
537
+ {
538
+ type: "event",
539
+ name: "Borrow",
540
+ inputs: [
541
+ {
542
+ name: "user",
543
+ type: "address",
544
+ indexed: false,
545
+ internalType: "address"
546
+ },
547
+ {
548
+ name: "tickLower",
549
+ type: "int24",
550
+ indexed: false,
551
+ internalType: "int24"
552
+ },
553
+ {
554
+ name: "tickUpper",
555
+ type: "int24",
556
+ indexed: false,
557
+ internalType: "int24"
558
+ },
559
+ {
560
+ name: "liquidity",
561
+ type: "uint128",
562
+ indexed: false,
563
+ internalType: "uint128"
564
+ }
565
+ ],
566
+ anonymous: false
567
+ },
568
+ {
569
+ type: "event",
570
+ name: "BorrowerWhitelisted",
571
+ inputs: [{
572
+ name: "borrower",
573
+ type: "address",
574
+ indexed: true,
575
+ internalType: "address"
576
+ }, {
577
+ name: "status",
578
+ type: "bool",
579
+ indexed: false,
580
+ internalType: "bool"
581
+ }],
582
+ anonymous: false
583
+ },
584
+ {
585
+ type: "event",
586
+ name: "Burn",
587
+ inputs: [
588
+ {
589
+ name: "user",
590
+ type: "address",
591
+ indexed: false,
592
+ internalType: "address"
593
+ },
594
+ {
595
+ name: "tickLower",
596
+ type: "int24",
597
+ indexed: false,
598
+ internalType: "int24"
599
+ },
600
+ {
601
+ name: "tickUpper",
602
+ type: "int24",
603
+ indexed: false,
604
+ internalType: "int24"
605
+ },
606
+ {
607
+ name: "liquidity",
608
+ type: "uint128",
609
+ indexed: false,
610
+ internalType: "uint128"
611
+ }
612
+ ],
613
+ anonymous: false
614
+ },
615
+ {
616
+ type: "event",
617
+ name: "Mint",
618
+ inputs: [
619
+ {
620
+ name: "user",
621
+ type: "address",
622
+ indexed: false,
623
+ internalType: "address"
624
+ },
625
+ {
626
+ name: "tickLower",
627
+ type: "int24",
628
+ indexed: false,
629
+ internalType: "int24"
630
+ },
631
+ {
632
+ name: "tickUpper",
633
+ type: "int24",
634
+ indexed: false,
635
+ internalType: "int24"
636
+ },
637
+ {
638
+ name: "liquidity",
639
+ type: "uint128",
640
+ indexed: false,
641
+ internalType: "uint128"
642
+ }
643
+ ],
644
+ anonymous: false
645
+ },
646
+ {
647
+ type: "event",
648
+ name: "OwnershipTransferred",
649
+ inputs: [{
650
+ name: "previousOwner",
651
+ type: "address",
652
+ indexed: true,
653
+ internalType: "address"
654
+ }, {
655
+ name: "newOwner",
656
+ type: "address",
657
+ indexed: true,
658
+ internalType: "address"
659
+ }],
660
+ anonymous: false
661
+ },
662
+ {
663
+ type: "event",
664
+ name: "Repay",
665
+ inputs: [
666
+ {
667
+ name: "user",
668
+ type: "address",
669
+ indexed: false,
670
+ internalType: "address"
671
+ },
672
+ {
673
+ name: "tickLower",
674
+ type: "int24",
675
+ indexed: false,
676
+ internalType: "int24"
677
+ },
678
+ {
679
+ name: "tickUpper",
680
+ type: "int24",
681
+ indexed: false,
682
+ internalType: "int24"
683
+ },
684
+ {
685
+ name: "liquidity",
686
+ type: "uint128",
687
+ indexed: false,
688
+ internalType: "uint128"
689
+ }
690
+ ],
691
+ anonymous: false
692
+ },
693
+ {
694
+ type: "event",
695
+ name: "TokenWithdrawn",
696
+ inputs: [
697
+ {
698
+ name: "token",
699
+ type: "address",
700
+ indexed: true,
701
+ internalType: "address"
702
+ },
703
+ {
704
+ name: "to",
705
+ type: "address",
706
+ indexed: true,
707
+ internalType: "address"
708
+ },
709
+ {
710
+ name: "amount",
711
+ type: "uint256",
712
+ indexed: false,
713
+ internalType: "uint256"
714
+ }
715
+ ],
716
+ anonymous: false
717
+ },
718
+ {
719
+ type: "error",
720
+ name: "AddressEmptyCode",
721
+ inputs: [{
722
+ name: "target",
723
+ type: "address",
724
+ internalType: "address"
725
+ }]
726
+ },
727
+ {
728
+ type: "error",
729
+ name: "BorrowerNotWhitelisted",
730
+ inputs: [{
731
+ name: "borrower",
732
+ type: "address",
733
+ internalType: "address"
734
+ }]
735
+ },
736
+ {
737
+ type: "error",
738
+ name: "FailedCall",
739
+ inputs: []
740
+ },
741
+ {
742
+ type: "error",
743
+ name: "InsufficientLiquidity",
744
+ inputs: [{
745
+ name: "blockTickLower",
746
+ type: "int24",
747
+ internalType: "int24"
748
+ }, {
749
+ name: "required",
750
+ type: "uint128",
751
+ internalType: "uint128"
752
+ }]
753
+ },
754
+ {
755
+ type: "error",
756
+ name: "InvalidActionType",
757
+ inputs: [{
758
+ name: "actionType",
759
+ type: "uint8",
760
+ internalType: "uint8"
761
+ }]
762
+ },
763
+ {
764
+ type: "error",
765
+ name: "InvalidRefTick",
766
+ inputs: [{
767
+ name: "tickLower",
768
+ type: "int24",
769
+ internalType: "int24"
770
+ }]
771
+ },
772
+ {
773
+ type: "error",
774
+ name: "InvalidTickRange",
775
+ inputs: [{
776
+ name: "tickLower",
777
+ type: "int24",
778
+ internalType: "int24"
779
+ }, {
780
+ name: "tickUpper",
781
+ type: "int24",
782
+ internalType: "int24"
783
+ }]
784
+ },
785
+ {
786
+ type: "error",
787
+ name: "OwnableInvalidOwner",
788
+ inputs: [{
789
+ name: "owner",
790
+ type: "address",
791
+ internalType: "address"
792
+ }]
793
+ },
794
+ {
795
+ type: "error",
796
+ name: "OwnableUnauthorizedAccount",
797
+ inputs: [{
798
+ name: "account",
799
+ type: "address",
800
+ internalType: "address"
801
+ }]
802
+ },
803
+ {
804
+ type: "error",
805
+ name: "ReentrancyGuardReentrantCall",
806
+ inputs: []
807
+ },
808
+ {
809
+ type: "error",
810
+ name: "SafeERC20FailedOperation",
811
+ inputs: [{
812
+ name: "token",
813
+ type: "address",
814
+ internalType: "address"
815
+ }]
816
+ },
817
+ {
818
+ type: "error",
819
+ name: "TooMuchRepay",
820
+ inputs: [
821
+ {
822
+ name: "blockTickLower",
823
+ type: "int24",
824
+ internalType: "int24"
825
+ },
826
+ {
827
+ name: "attempted",
828
+ type: "uint128",
829
+ internalType: "uint128"
830
+ },
831
+ {
832
+ name: "maximum",
833
+ type: "uint128",
834
+ internalType: "uint128"
835
+ }
836
+ ]
837
+ },
838
+ {
839
+ type: "error",
840
+ name: "UnauthorizedCaller",
841
+ inputs: []
842
+ }
843
+ ];
844
+
845
+ //#endregion
846
+ export { singleOwnerVaultAbi as t };
847
+ //# sourceMappingURL=singleOwnerVault-BJyEs_D_.js.map