timelock-sdk 0.0.162 → 0.0.164

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 +1059 -308
  2. package/dist/abis.cjs.map +1 -1
  3. package/dist/abis.d.cts +2967 -766
  4. package/dist/abis.d.ts +2967 -766
  5. package/dist/abis.js +1051 -303
  6. package/dist/abis.js.map +1 -1
  7. package/dist/{client-BVPR3obW.d.cts → client-Di1eoh5l.d.cts} +870 -1797
  8. package/dist/{client-BFhMekeP.d.ts → client-Dp-YTEVp.d.ts} +35 -962
  9. package/dist/client.cjs +113 -949
  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 +79 -915
  14. package/dist/client.js.map +1 -1
  15. package/dist/factory-DitVXzjQ.cjs +1715 -0
  16. package/dist/factory-DitVXzjQ.cjs.map +1 -0
  17. package/dist/factory-y-iVl_er.js +1697 -0
  18. package/dist/factory-y-iVl_er.js.map +1 -0
  19. package/dist/{optionUtils-R9Y-jxoz.cjs → optionUtils-Cuuw6jXD.cjs} +6 -1048
  20. package/dist/optionUtils-Cuuw6jXD.cjs.map +1 -0
  21. package/dist/optionUtils-OyY8qOu0.js +381 -0
  22. package/dist/optionUtils-OyY8qOu0.js.map +1 -0
  23. package/dist/{uniswapMathLens-oe-gukfo.d.ts → optionsMarket-2HZ-p_dl.d.ts} +2 -625
  24. package/dist/{uniswapMathLens-B6gp2UGI.d.cts → optionsMarket-c4hgszY_.d.cts} +2 -625
  25. package/dist/package.cjs +2 -2
  26. package/dist/package.d.cts +3 -3
  27. package/dist/package.d.ts +3 -3
  28. package/dist/package.js +2 -2
  29. package/dist/{optionsMarket-CWigPja1.js → statelessStateView-CBkcP7CK.js} +1599 -1322
  30. package/dist/statelessStateView-CBkcP7CK.js.map +1 -0
  31. package/dist/{optionsMarket-CtlBxuj0.cjs → statelessStateView-XdTJQxsY.cjs} +1600 -1323
  32. package/dist/statelessStateView-XdTJQxsY.cjs.map +1 -0
  33. package/package.json +1 -1
  34. package/dist/optionUtils-R9Y-jxoz.cjs.map +0 -1
  35. package/dist/optionUtils-fCYueZl2.js +0 -1417
  36. package/dist/optionUtils-fCYueZl2.js.map +0 -1
  37. package/dist/optionsMarket-CWigPja1.js.map +0 -1
  38. package/dist/optionsMarket-CtlBxuj0.cjs.map +0 -1
  39. package/dist/singleOwnerVault-BJyEs_D_.js +0 -847
  40. package/dist/singleOwnerVault-BJyEs_D_.js.map +0 -1
  41. package/dist/singleOwnerVault-GCpQV7pN.cjs +0 -853
  42. package/dist/singleOwnerVault-GCpQV7pN.cjs.map +0 -1
@@ -1,1417 +0,0 @@
1
- import { i as erc20Abi$1, r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-CWigPja1.js";
2
- import { getContract } from "viem";
3
- import { monadTestnet, unichainSepolia } from "viem/chains";
4
- import { SqrtPriceMath, TickMath } from "@uniswap/v3-sdk";
5
- import Big from "big.js";
6
- import JSBI from "jsbi";
7
-
8
- //#region src/abis/statelessStateView.ts
9
- const statelessStateViewAbi = [
10
- {
11
- type: "function",
12
- name: "getFeeGrowthGlobals",
13
- inputs: [{
14
- name: "poolManager",
15
- type: "address",
16
- internalType: "contract IPoolManager"
17
- }, {
18
- name: "key",
19
- type: "tuple",
20
- internalType: "struct PoolKey",
21
- components: [
22
- {
23
- name: "currency0",
24
- type: "address",
25
- internalType: "Currency"
26
- },
27
- {
28
- name: "currency1",
29
- type: "address",
30
- internalType: "Currency"
31
- },
32
- {
33
- name: "fee",
34
- type: "uint24",
35
- internalType: "uint24"
36
- },
37
- {
38
- name: "tickSpacing",
39
- type: "int24",
40
- internalType: "int24"
41
- },
42
- {
43
- name: "hooks",
44
- type: "address",
45
- internalType: "contract IHooks"
46
- }
47
- ]
48
- }],
49
- outputs: [{
50
- name: "feeGrowthGlobal0",
51
- type: "uint256",
52
- internalType: "uint256"
53
- }, {
54
- name: "feeGrowthGlobal1",
55
- type: "uint256",
56
- internalType: "uint256"
57
- }],
58
- stateMutability: "view"
59
- },
60
- {
61
- type: "function",
62
- name: "getFeeGrowthGlobals",
63
- inputs: [{
64
- name: "poolManager",
65
- type: "address",
66
- internalType: "contract IPoolManager"
67
- }, {
68
- name: "poolId",
69
- type: "bytes32",
70
- internalType: "PoolId"
71
- }],
72
- outputs: [{
73
- name: "feeGrowthGlobal0",
74
- type: "uint256",
75
- internalType: "uint256"
76
- }, {
77
- name: "feeGrowthGlobal1",
78
- type: "uint256",
79
- internalType: "uint256"
80
- }],
81
- stateMutability: "view"
82
- },
83
- {
84
- type: "function",
85
- name: "getFeeGrowthInside",
86
- inputs: [
87
- {
88
- name: "poolManager",
89
- type: "address",
90
- internalType: "contract IPoolManager"
91
- },
92
- {
93
- name: "poolId",
94
- type: "bytes32",
95
- internalType: "PoolId"
96
- },
97
- {
98
- name: "tickLower",
99
- type: "int24",
100
- internalType: "int24"
101
- },
102
- {
103
- name: "tickUpper",
104
- type: "int24",
105
- internalType: "int24"
106
- }
107
- ],
108
- outputs: [{
109
- name: "feeGrowthInside0X128",
110
- type: "uint256",
111
- internalType: "uint256"
112
- }, {
113
- name: "feeGrowthInside1X128",
114
- type: "uint256",
115
- internalType: "uint256"
116
- }],
117
- stateMutability: "view"
118
- },
119
- {
120
- type: "function",
121
- name: "getFeeGrowthInside",
122
- inputs: [
123
- {
124
- name: "poolManager",
125
- type: "address",
126
- internalType: "contract IPoolManager"
127
- },
128
- {
129
- name: "key",
130
- type: "tuple",
131
- internalType: "struct PoolKey",
132
- components: [
133
- {
134
- name: "currency0",
135
- type: "address",
136
- internalType: "Currency"
137
- },
138
- {
139
- name: "currency1",
140
- type: "address",
141
- internalType: "Currency"
142
- },
143
- {
144
- name: "fee",
145
- type: "uint24",
146
- internalType: "uint24"
147
- },
148
- {
149
- name: "tickSpacing",
150
- type: "int24",
151
- internalType: "int24"
152
- },
153
- {
154
- name: "hooks",
155
- type: "address",
156
- internalType: "contract IHooks"
157
- }
158
- ]
159
- },
160
- {
161
- name: "tickLower",
162
- type: "int24",
163
- internalType: "int24"
164
- },
165
- {
166
- name: "tickUpper",
167
- type: "int24",
168
- internalType: "int24"
169
- }
170
- ],
171
- outputs: [{
172
- name: "feeGrowthInside0X128",
173
- type: "uint256",
174
- internalType: "uint256"
175
- }, {
176
- name: "feeGrowthInside1X128",
177
- type: "uint256",
178
- internalType: "uint256"
179
- }],
180
- stateMutability: "view"
181
- },
182
- {
183
- type: "function",
184
- name: "getLiquidity",
185
- inputs: [{
186
- name: "poolManager",
187
- type: "address",
188
- internalType: "contract IPoolManager"
189
- }, {
190
- name: "poolId",
191
- type: "bytes32",
192
- internalType: "PoolId"
193
- }],
194
- outputs: [{
195
- name: "liquidity",
196
- type: "uint128",
197
- internalType: "uint128"
198
- }],
199
- stateMutability: "view"
200
- },
201
- {
202
- type: "function",
203
- name: "getLiquidity",
204
- inputs: [{
205
- name: "poolManager",
206
- type: "address",
207
- internalType: "contract IPoolManager"
208
- }, {
209
- name: "key",
210
- type: "tuple",
211
- internalType: "struct PoolKey",
212
- components: [
213
- {
214
- name: "currency0",
215
- type: "address",
216
- internalType: "Currency"
217
- },
218
- {
219
- name: "currency1",
220
- type: "address",
221
- internalType: "Currency"
222
- },
223
- {
224
- name: "fee",
225
- type: "uint24",
226
- internalType: "uint24"
227
- },
228
- {
229
- name: "tickSpacing",
230
- type: "int24",
231
- internalType: "int24"
232
- },
233
- {
234
- name: "hooks",
235
- type: "address",
236
- internalType: "contract IHooks"
237
- }
238
- ]
239
- }],
240
- outputs: [{
241
- name: "liquidity",
242
- type: "uint128",
243
- internalType: "uint128"
244
- }],
245
- stateMutability: "view"
246
- },
247
- {
248
- type: "function",
249
- name: "getPositionInfo",
250
- inputs: [
251
- {
252
- name: "poolManager",
253
- type: "address",
254
- internalType: "contract IPoolManager"
255
- },
256
- {
257
- name: "key",
258
- type: "tuple",
259
- internalType: "struct PoolKey",
260
- components: [
261
- {
262
- name: "currency0",
263
- type: "address",
264
- internalType: "Currency"
265
- },
266
- {
267
- name: "currency1",
268
- type: "address",
269
- internalType: "Currency"
270
- },
271
- {
272
- name: "fee",
273
- type: "uint24",
274
- internalType: "uint24"
275
- },
276
- {
277
- name: "tickSpacing",
278
- type: "int24",
279
- internalType: "int24"
280
- },
281
- {
282
- name: "hooks",
283
- type: "address",
284
- internalType: "contract IHooks"
285
- }
286
- ]
287
- },
288
- {
289
- name: "positionId",
290
- type: "bytes32",
291
- internalType: "bytes32"
292
- }
293
- ],
294
- outputs: [
295
- {
296
- name: "liquidity",
297
- type: "uint128",
298
- internalType: "uint128"
299
- },
300
- {
301
- name: "feeGrowthInside0LastX128",
302
- type: "uint256",
303
- internalType: "uint256"
304
- },
305
- {
306
- name: "feeGrowthInside1LastX128",
307
- type: "uint256",
308
- internalType: "uint256"
309
- }
310
- ],
311
- stateMutability: "view"
312
- },
313
- {
314
- type: "function",
315
- name: "getPositionInfo",
316
- inputs: [
317
- {
318
- name: "poolManager",
319
- type: "address",
320
- internalType: "contract IPoolManager"
321
- },
322
- {
323
- name: "poolId",
324
- type: "bytes32",
325
- internalType: "PoolId"
326
- },
327
- {
328
- name: "positionId",
329
- type: "bytes32",
330
- internalType: "bytes32"
331
- }
332
- ],
333
- outputs: [
334
- {
335
- name: "liquidity",
336
- type: "uint128",
337
- internalType: "uint128"
338
- },
339
- {
340
- name: "feeGrowthInside0LastX128",
341
- type: "uint256",
342
- internalType: "uint256"
343
- },
344
- {
345
- name: "feeGrowthInside1LastX128",
346
- type: "uint256",
347
- internalType: "uint256"
348
- }
349
- ],
350
- stateMutability: "view"
351
- },
352
- {
353
- type: "function",
354
- name: "getPositionInfo",
355
- inputs: [
356
- {
357
- name: "poolManager",
358
- type: "address",
359
- internalType: "contract IPoolManager"
360
- },
361
- {
362
- name: "poolId",
363
- type: "bytes32",
364
- internalType: "PoolId"
365
- },
366
- {
367
- name: "owner",
368
- type: "address",
369
- internalType: "address"
370
- },
371
- {
372
- name: "tickLower",
373
- type: "int24",
374
- internalType: "int24"
375
- },
376
- {
377
- name: "tickUpper",
378
- type: "int24",
379
- internalType: "int24"
380
- },
381
- {
382
- name: "salt",
383
- type: "bytes32",
384
- internalType: "bytes32"
385
- }
386
- ],
387
- outputs: [
388
- {
389
- name: "liquidity",
390
- type: "uint128",
391
- internalType: "uint128"
392
- },
393
- {
394
- name: "feeGrowthInside0LastX128",
395
- type: "uint256",
396
- internalType: "uint256"
397
- },
398
- {
399
- name: "feeGrowthInside1LastX128",
400
- type: "uint256",
401
- internalType: "uint256"
402
- }
403
- ],
404
- stateMutability: "view"
405
- },
406
- {
407
- type: "function",
408
- name: "getPositionInfo",
409
- inputs: [
410
- {
411
- name: "poolManager",
412
- type: "address",
413
- internalType: "contract IPoolManager"
414
- },
415
- {
416
- name: "key",
417
- type: "tuple",
418
- internalType: "struct PoolKey",
419
- components: [
420
- {
421
- name: "currency0",
422
- type: "address",
423
- internalType: "Currency"
424
- },
425
- {
426
- name: "currency1",
427
- type: "address",
428
- internalType: "Currency"
429
- },
430
- {
431
- name: "fee",
432
- type: "uint24",
433
- internalType: "uint24"
434
- },
435
- {
436
- name: "tickSpacing",
437
- type: "int24",
438
- internalType: "int24"
439
- },
440
- {
441
- name: "hooks",
442
- type: "address",
443
- internalType: "contract IHooks"
444
- }
445
- ]
446
- },
447
- {
448
- name: "owner",
449
- type: "address",
450
- internalType: "address"
451
- },
452
- {
453
- name: "tickLower",
454
- type: "int24",
455
- internalType: "int24"
456
- },
457
- {
458
- name: "tickUpper",
459
- type: "int24",
460
- internalType: "int24"
461
- },
462
- {
463
- name: "salt",
464
- type: "bytes32",
465
- internalType: "bytes32"
466
- }
467
- ],
468
- outputs: [
469
- {
470
- name: "liquidity",
471
- type: "uint128",
472
- internalType: "uint128"
473
- },
474
- {
475
- name: "feeGrowthInside0LastX128",
476
- type: "uint256",
477
- internalType: "uint256"
478
- },
479
- {
480
- name: "feeGrowthInside1LastX128",
481
- type: "uint256",
482
- internalType: "uint256"
483
- }
484
- ],
485
- stateMutability: "view"
486
- },
487
- {
488
- type: "function",
489
- name: "getPositionLiquidity",
490
- inputs: [
491
- {
492
- name: "poolManager",
493
- type: "address",
494
- internalType: "contract IPoolManager"
495
- },
496
- {
497
- name: "poolId",
498
- type: "bytes32",
499
- internalType: "PoolId"
500
- },
501
- {
502
- name: "positionId",
503
- type: "bytes32",
504
- internalType: "bytes32"
505
- }
506
- ],
507
- outputs: [{
508
- name: "liquidity",
509
- type: "uint128",
510
- internalType: "uint128"
511
- }],
512
- stateMutability: "view"
513
- },
514
- {
515
- type: "function",
516
- name: "getPositionLiquidity",
517
- inputs: [
518
- {
519
- name: "poolManager",
520
- type: "address",
521
- internalType: "contract IPoolManager"
522
- },
523
- {
524
- name: "key",
525
- type: "tuple",
526
- internalType: "struct PoolKey",
527
- components: [
528
- {
529
- name: "currency0",
530
- type: "address",
531
- internalType: "Currency"
532
- },
533
- {
534
- name: "currency1",
535
- type: "address",
536
- internalType: "Currency"
537
- },
538
- {
539
- name: "fee",
540
- type: "uint24",
541
- internalType: "uint24"
542
- },
543
- {
544
- name: "tickSpacing",
545
- type: "int24",
546
- internalType: "int24"
547
- },
548
- {
549
- name: "hooks",
550
- type: "address",
551
- internalType: "contract IHooks"
552
- }
553
- ]
554
- },
555
- {
556
- name: "positionId",
557
- type: "bytes32",
558
- internalType: "bytes32"
559
- }
560
- ],
561
- outputs: [{
562
- name: "liquidity",
563
- type: "uint128",
564
- internalType: "uint128"
565
- }],
566
- stateMutability: "view"
567
- },
568
- {
569
- type: "function",
570
- name: "getSlot0",
571
- inputs: [{
572
- name: "poolManager",
573
- type: "address",
574
- internalType: "contract IPoolManager"
575
- }, {
576
- name: "key",
577
- type: "tuple",
578
- internalType: "struct PoolKey",
579
- components: [
580
- {
581
- name: "currency0",
582
- type: "address",
583
- internalType: "Currency"
584
- },
585
- {
586
- name: "currency1",
587
- type: "address",
588
- internalType: "Currency"
589
- },
590
- {
591
- name: "fee",
592
- type: "uint24",
593
- internalType: "uint24"
594
- },
595
- {
596
- name: "tickSpacing",
597
- type: "int24",
598
- internalType: "int24"
599
- },
600
- {
601
- name: "hooks",
602
- type: "address",
603
- internalType: "contract IHooks"
604
- }
605
- ]
606
- }],
607
- outputs: [
608
- {
609
- name: "sqrtPriceX96",
610
- type: "uint160",
611
- internalType: "uint160"
612
- },
613
- {
614
- name: "tick",
615
- type: "int24",
616
- internalType: "int24"
617
- },
618
- {
619
- name: "protocolFee",
620
- type: "uint24",
621
- internalType: "uint24"
622
- },
623
- {
624
- name: "lpFee",
625
- type: "uint24",
626
- internalType: "uint24"
627
- }
628
- ],
629
- stateMutability: "view"
630
- },
631
- {
632
- type: "function",
633
- name: "getSlot0",
634
- inputs: [{
635
- name: "poolManager",
636
- type: "address",
637
- internalType: "contract IPoolManager"
638
- }, {
639
- name: "poolId",
640
- type: "bytes32",
641
- internalType: "PoolId"
642
- }],
643
- outputs: [
644
- {
645
- name: "sqrtPriceX96",
646
- type: "uint160",
647
- internalType: "uint160"
648
- },
649
- {
650
- name: "tick",
651
- type: "int24",
652
- internalType: "int24"
653
- },
654
- {
655
- name: "protocolFee",
656
- type: "uint24",
657
- internalType: "uint24"
658
- },
659
- {
660
- name: "lpFee",
661
- type: "uint24",
662
- internalType: "uint24"
663
- }
664
- ],
665
- stateMutability: "view"
666
- },
667
- {
668
- type: "function",
669
- name: "getTickBitmap",
670
- inputs: [
671
- {
672
- name: "poolManager",
673
- type: "address",
674
- internalType: "contract IPoolManager"
675
- },
676
- {
677
- name: "key",
678
- type: "tuple",
679
- internalType: "struct PoolKey",
680
- components: [
681
- {
682
- name: "currency0",
683
- type: "address",
684
- internalType: "Currency"
685
- },
686
- {
687
- name: "currency1",
688
- type: "address",
689
- internalType: "Currency"
690
- },
691
- {
692
- name: "fee",
693
- type: "uint24",
694
- internalType: "uint24"
695
- },
696
- {
697
- name: "tickSpacing",
698
- type: "int24",
699
- internalType: "int24"
700
- },
701
- {
702
- name: "hooks",
703
- type: "address",
704
- internalType: "contract IHooks"
705
- }
706
- ]
707
- },
708
- {
709
- name: "tick",
710
- type: "int16",
711
- internalType: "int16"
712
- }
713
- ],
714
- outputs: [{
715
- name: "tickBitmap",
716
- type: "uint256",
717
- internalType: "uint256"
718
- }],
719
- stateMutability: "view"
720
- },
721
- {
722
- type: "function",
723
- name: "getTickBitmap",
724
- inputs: [
725
- {
726
- name: "poolManager",
727
- type: "address",
728
- internalType: "contract IPoolManager"
729
- },
730
- {
731
- name: "poolId",
732
- type: "bytes32",
733
- internalType: "PoolId"
734
- },
735
- {
736
- name: "tick",
737
- type: "int16",
738
- internalType: "int16"
739
- }
740
- ],
741
- outputs: [{
742
- name: "tickBitmap",
743
- type: "uint256",
744
- internalType: "uint256"
745
- }],
746
- stateMutability: "view"
747
- },
748
- {
749
- type: "function",
750
- name: "getTickFeeGrowthOutside",
751
- inputs: [
752
- {
753
- name: "poolManager",
754
- type: "address",
755
- internalType: "contract IPoolManager"
756
- },
757
- {
758
- name: "key",
759
- type: "tuple",
760
- internalType: "struct PoolKey",
761
- components: [
762
- {
763
- name: "currency0",
764
- type: "address",
765
- internalType: "Currency"
766
- },
767
- {
768
- name: "currency1",
769
- type: "address",
770
- internalType: "Currency"
771
- },
772
- {
773
- name: "fee",
774
- type: "uint24",
775
- internalType: "uint24"
776
- },
777
- {
778
- name: "tickSpacing",
779
- type: "int24",
780
- internalType: "int24"
781
- },
782
- {
783
- name: "hooks",
784
- type: "address",
785
- internalType: "contract IHooks"
786
- }
787
- ]
788
- },
789
- {
790
- name: "tick",
791
- type: "int24",
792
- internalType: "int24"
793
- }
794
- ],
795
- outputs: [{
796
- name: "feeGrowthOutside0X128",
797
- type: "uint256",
798
- internalType: "uint256"
799
- }, {
800
- name: "feeGrowthOutside1X128",
801
- type: "uint256",
802
- internalType: "uint256"
803
- }],
804
- stateMutability: "view"
805
- },
806
- {
807
- type: "function",
808
- name: "getTickFeeGrowthOutside",
809
- inputs: [
810
- {
811
- name: "poolManager",
812
- type: "address",
813
- internalType: "contract IPoolManager"
814
- },
815
- {
816
- name: "poolId",
817
- type: "bytes32",
818
- internalType: "PoolId"
819
- },
820
- {
821
- name: "tick",
822
- type: "int24",
823
- internalType: "int24"
824
- }
825
- ],
826
- outputs: [{
827
- name: "feeGrowthOutside0X128",
828
- type: "uint256",
829
- internalType: "uint256"
830
- }, {
831
- name: "feeGrowthOutside1X128",
832
- type: "uint256",
833
- internalType: "uint256"
834
- }],
835
- stateMutability: "view"
836
- },
837
- {
838
- type: "function",
839
- name: "getTickInfo",
840
- inputs: [
841
- {
842
- name: "poolManager",
843
- type: "address",
844
- internalType: "contract IPoolManager"
845
- },
846
- {
847
- name: "poolId",
848
- type: "bytes32",
849
- internalType: "PoolId"
850
- },
851
- {
852
- name: "tick",
853
- type: "int24",
854
- internalType: "int24"
855
- }
856
- ],
857
- outputs: [
858
- {
859
- name: "liquidityGross",
860
- type: "uint128",
861
- internalType: "uint128"
862
- },
863
- {
864
- name: "liquidityNet",
865
- type: "int128",
866
- internalType: "int128"
867
- },
868
- {
869
- name: "feeGrowthOutside0X128",
870
- type: "uint256",
871
- internalType: "uint256"
872
- },
873
- {
874
- name: "feeGrowthOutside1X128",
875
- type: "uint256",
876
- internalType: "uint256"
877
- }
878
- ],
879
- stateMutability: "view"
880
- },
881
- {
882
- type: "function",
883
- name: "getTickInfo",
884
- inputs: [
885
- {
886
- name: "poolManager",
887
- type: "address",
888
- internalType: "contract IPoolManager"
889
- },
890
- {
891
- name: "key",
892
- type: "tuple",
893
- internalType: "struct PoolKey",
894
- components: [
895
- {
896
- name: "currency0",
897
- type: "address",
898
- internalType: "Currency"
899
- },
900
- {
901
- name: "currency1",
902
- type: "address",
903
- internalType: "Currency"
904
- },
905
- {
906
- name: "fee",
907
- type: "uint24",
908
- internalType: "uint24"
909
- },
910
- {
911
- name: "tickSpacing",
912
- type: "int24",
913
- internalType: "int24"
914
- },
915
- {
916
- name: "hooks",
917
- type: "address",
918
- internalType: "contract IHooks"
919
- }
920
- ]
921
- },
922
- {
923
- name: "tick",
924
- type: "int24",
925
- internalType: "int24"
926
- }
927
- ],
928
- outputs: [
929
- {
930
- name: "liquidityGross",
931
- type: "uint128",
932
- internalType: "uint128"
933
- },
934
- {
935
- name: "liquidityNet",
936
- type: "int128",
937
- internalType: "int128"
938
- },
939
- {
940
- name: "feeGrowthOutside0X128",
941
- type: "uint256",
942
- internalType: "uint256"
943
- },
944
- {
945
- name: "feeGrowthOutside1X128",
946
- type: "uint256",
947
- internalType: "uint256"
948
- }
949
- ],
950
- stateMutability: "view"
951
- },
952
- {
953
- type: "function",
954
- name: "getTickLiquidity",
955
- inputs: [
956
- {
957
- name: "poolManager",
958
- type: "address",
959
- internalType: "contract IPoolManager"
960
- },
961
- {
962
- name: "key",
963
- type: "tuple",
964
- internalType: "struct PoolKey",
965
- components: [
966
- {
967
- name: "currency0",
968
- type: "address",
969
- internalType: "Currency"
970
- },
971
- {
972
- name: "currency1",
973
- type: "address",
974
- internalType: "Currency"
975
- },
976
- {
977
- name: "fee",
978
- type: "uint24",
979
- internalType: "uint24"
980
- },
981
- {
982
- name: "tickSpacing",
983
- type: "int24",
984
- internalType: "int24"
985
- },
986
- {
987
- name: "hooks",
988
- type: "address",
989
- internalType: "contract IHooks"
990
- }
991
- ]
992
- },
993
- {
994
- name: "tick",
995
- type: "int24",
996
- internalType: "int24"
997
- }
998
- ],
999
- outputs: [{
1000
- name: "liquidityGross",
1001
- type: "uint128",
1002
- internalType: "uint128"
1003
- }, {
1004
- name: "liquidityNet",
1005
- type: "int128",
1006
- internalType: "int128"
1007
- }],
1008
- stateMutability: "view"
1009
- },
1010
- {
1011
- type: "function",
1012
- name: "getTickLiquidity",
1013
- inputs: [
1014
- {
1015
- name: "poolManager",
1016
- type: "address",
1017
- internalType: "contract IPoolManager"
1018
- },
1019
- {
1020
- name: "poolId",
1021
- type: "bytes32",
1022
- internalType: "PoolId"
1023
- },
1024
- {
1025
- name: "tick",
1026
- type: "int24",
1027
- internalType: "int24"
1028
- }
1029
- ],
1030
- outputs: [{
1031
- name: "liquidityGross",
1032
- type: "uint128",
1033
- internalType: "uint128"
1034
- }, {
1035
- name: "liquidityNet",
1036
- type: "int128",
1037
- internalType: "int128"
1038
- }],
1039
- stateMutability: "view"
1040
- }
1041
- ];
1042
-
1043
- //#endregion
1044
- //#region src/lib/contracts.ts
1045
- const getErc20 = (address, client) => getContract({
1046
- abi: erc20Abi$1,
1047
- address,
1048
- client
1049
- });
1050
- const getTimelockMarket = (address, client) => {
1051
- return getContract({
1052
- abi: optionsMarketAbi,
1053
- address,
1054
- client
1055
- });
1056
- };
1057
- const getStateView = (client) => {
1058
- return getContract({
1059
- abi: statelessStateViewAbi,
1060
- address: stateViews[client.chain.id],
1061
- client
1062
- });
1063
- };
1064
- const getTimelockLens = (client) => getContract({
1065
- abi: lensAbi,
1066
- address: timelockLenses[client.chain.id],
1067
- client
1068
- });
1069
- const swappers = {
1070
- [monadTestnet.id]: "0x877309663591ad974bE2c0C7fB453844c8D613D8",
1071
- [unichainSepolia.id]: "0xa145eb0CAdB5F3c5e42931e60ee609DE74FDEA0b"
1072
- };
1073
- const timelockLenses = {
1074
- [monadTestnet.id]: "0x22745deD5F51A2F33D98c5682048f5d10baE3b92",
1075
- [unichainSepolia.id]: "0xd24A0eb898a9568dAF9b78DA8C6ae1b0b44be7C0"
1076
- };
1077
- const timelockFactories = { [unichainSepolia.id]: "0x8790e55d165591C082D3CBb811b36c9C893530DF" };
1078
- const swapRouters = {
1079
- [monadTestnet.id]: "0xEd8a7Ca09c6Db6F4b9FAcB8De7e9A5449B1D21a4",
1080
- [unichainSepolia.id]: "0x7C9fBd739cb0e09657B7c6aB4eFc37bEe80820B0"
1081
- };
1082
- const stateViews = {
1083
- [monadTestnet.id]: "0xB85e32Ff9b08Be61cD888e5D997E51951BCA1A69",
1084
- [unichainSepolia.id]: "0xB5ABc500f54a798E20ae8f91e21DBa29B1CE3F5a"
1085
- };
1086
-
1087
- //#endregion
1088
- //#region src/lib/price.ts
1089
- const getResolutionConfig = (resolution) => {
1090
- return {
1091
- "1m": {
1092
- timeframe: "minute",
1093
- aggregate: "1",
1094
- seconds: 60
1095
- },
1096
- "5m": {
1097
- timeframe: "minute",
1098
- aggregate: "5",
1099
- seconds: 300
1100
- },
1101
- "15m": {
1102
- timeframe: "minute",
1103
- aggregate: "15",
1104
- seconds: 900
1105
- },
1106
- "1h": {
1107
- timeframe: "hour",
1108
- aggregate: "1",
1109
- seconds: 3600
1110
- },
1111
- "4h": {
1112
- timeframe: "hour",
1113
- aggregate: "4",
1114
- seconds: 14400
1115
- },
1116
- "1d": {
1117
- timeframe: "day",
1118
- aggregate: "1",
1119
- seconds: 86400
1120
- }
1121
- }[resolution];
1122
- };
1123
- const fillGaps = (prices, start, end, intervalMs) => {
1124
- if (prices.length === 0) return [];
1125
- const priceMap = /* @__PURE__ */ new Map();
1126
- for (const point of prices) {
1127
- const alignedTime = Math.floor(point.timestamp.getTime() / intervalMs) * intervalMs;
1128
- priceMap.set(alignedTime, point);
1129
- }
1130
- const filled = [];
1131
- let currentTime = Math.floor(prices[0].timestamp.getTime() / intervalMs) * intervalMs;
1132
- let lastKnownPrice = null;
1133
- while (currentTime <= end.getTime()) {
1134
- const existing = priceMap.get(currentTime);
1135
- if (existing) {
1136
- filled.push(existing);
1137
- lastKnownPrice = existing;
1138
- } else if (lastKnownPrice) filled.push({
1139
- timestamp: new Date(currentTime),
1140
- price: lastKnownPrice.price
1141
- });
1142
- currentTime += intervalMs;
1143
- }
1144
- return filled;
1145
- };
1146
- const getPriceHistory = async (pool, token, resolution, start, end) => {
1147
- const network = "monad-testnet";
1148
- const { timeframe, aggregate, seconds } = getResolutionConfig(resolution);
1149
- if (end.getTime() > Date.now()) end = new Date(Date.now());
1150
- const startSecs = Math.floor(start.getTime() / 1e3);
1151
- const endSecs = Math.floor(end.getTime() / 1e3);
1152
- const diffSeconds = endSecs - startSecs;
1153
- const url = `https://api.geckoterminal.com/api/v2/networks/${network}/pools/${pool}/ohlcv/${timeframe}?aggregate=${aggregate}&limit=${Math.min(Math.ceil(diffSeconds / seconds), 1e3)}&token=${token === 0 ? "base" : "quote"}&currency=usd&before_timestamp=${endSecs}`;
1154
- const res = await fetch(url, { headers: { Accept: "application/json" } });
1155
- if (!res.ok) throw new Error(`Failed to fetch price history: ${res.statusText}`);
1156
- return fillGaps((await res.json()).data.attributes.ohlcv_list.map(([timestamp, , , , close]) => ({
1157
- timestamp: /* @__PURE__ */ new Date(timestamp * 1e3),
1158
- price: close
1159
- })).sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime()), start, end, seconds * 1e3).filter((point) => point.timestamp.getTime() / 1e3 >= startSecs && point.timestamp.getTime() / 1e3 <= endSecs);
1160
- };
1161
- const getCurrentPrice = async (poolAddr, tokenAddr) => {
1162
- var _pool$price_change_pe;
1163
- const geckoUrl = `https://api.geckoterminal.com/api/v2/networks/monad-testnet/pools/${poolAddr.toLowerCase()}`;
1164
- const response = await fetch(geckoUrl, {
1165
- method: "GET",
1166
- headers: {
1167
- Accept: "application/json",
1168
- "User-Agent": "TimelockTrade/1.0"
1169
- },
1170
- cache: "no-store"
1171
- });
1172
- if (!response.ok) throw new Error(`Failed to fetch price data for pool ${poolAddr}`);
1173
- const data = await response.json();
1174
- const pool = data.data.attributes;
1175
- const relationships = data.data.relationships;
1176
- const baseTokenAddr = relationships.base_token.data.id.split("_")[1].toLowerCase();
1177
- const quoteTokenAddr = relationships.quote_token.data.id.split("_")[1].toLowerCase();
1178
- const isBaseToken = tokenAddr.toLowerCase() === baseTokenAddr.toLowerCase();
1179
- const isQuoteToken = tokenAddr.toLowerCase() === quoteTokenAddr.toLowerCase();
1180
- if (!isBaseToken && !isQuoteToken) throw new Error(`Token ${tokenAddr} is not part of pool ${poolAddr}`);
1181
- const price = isBaseToken ? pool.base_token_price_quote_token : pool.quote_token_price_base_token;
1182
- const priceChange = (_pool$price_change_pe = pool.price_change_percentage) === null || _pool$price_change_pe === void 0 ? void 0 : _pool$price_change_pe.h24;
1183
- return {
1184
- currentPrice: parseFloat(price || "0"),
1185
- percentChange: parseFloat(priceChange || "0"),
1186
- poolAddr,
1187
- timestamp: Date.now()
1188
- };
1189
- };
1190
-
1191
- //#endregion
1192
- //#region src/lib/liquidityUtils.ts
1193
- const PRICE_PRECISION = BigInt(0xde0b6b3a7640000);
1194
- const getPriceAtSqrtPriceX96 = (sqrtPriceX96) => {
1195
- return sqrtPriceX96 * sqrtPriceX96 * PRICE_PRECISION / BigInt(2 ** 192);
1196
- };
1197
- const getSqrtPriceX96AtPrice = (price) => {
1198
- const priceX192 = price * BigInt(2 ** 192) / PRICE_PRECISION;
1199
- return JSBI.BigInt(new Big(priceX192.toString()).sqrt().toFixed(0));
1200
- };
1201
- const getPriceAtTick = (tick) => {
1202
- const sqrtRatioX96 = BigInt(TickMath.getSqrtRatioAtTick(tick).toString());
1203
- return sqrtRatioX96 * sqrtRatioX96 * PRICE_PRECISION / BigInt(2 ** 192);
1204
- };
1205
- const getTickAtPrice = (price) => {
1206
- const priceX192 = price * BigInt(2 ** 192) / PRICE_PRECISION;
1207
- const sqrtPriceX96 = JSBI.BigInt(new Big(priceX192.toString()).sqrt().toFixed(0));
1208
- return TickMath.getTickAtSqrtRatio(sqrtPriceX96);
1209
- };
1210
- const getNearestValidStrikeTick = (optionType, optionAssetIsToken0, tickSpacing, currentTick, strikeTick) => {
1211
- strikeTick = roundTick(strikeTick ?? currentTick, tickSpacing);
1212
- if (optionType === "CALL" && optionAssetIsToken0 || optionType === "PUT" && !optionAssetIsToken0) strikeTick += tickSpacing;
1213
- return strikeTick;
1214
- };
1215
- const roundTick = (tick, spacing) => {
1216
- const rem = tick % spacing;
1217
- if (rem >= 0) return tick - rem;
1218
- return tick - rem - spacing;
1219
- };
1220
- const token0ToToken1 = (amount0, price) => {
1221
- price = typeof price === "bigint" ? price : price.scaled;
1222
- return amount0 * price / PRICE_PRECISION;
1223
- };
1224
- const token1ToToken0 = (amount1, price) => {
1225
- price = typeof price === "bigint" ? price : price.scaled;
1226
- return amount1 * PRICE_PRECISION / price;
1227
- };
1228
- const token0ToToken1AtTick = (amount0, tick) => {
1229
- return amount0 * getPriceAtTick(tick) / PRICE_PRECISION;
1230
- };
1231
- const token1ToToken0AtTick = (amount1, tick) => {
1232
- const price = getPriceAtTick(tick);
1233
- return amount1 * PRICE_PRECISION / price;
1234
- };
1235
- const getAmountsFromLiquidity = (tickLower, tickUpper, liquidity, currentTick) => {
1236
- const sqrtRatioX96 = TickMath.getSqrtRatioAtTick(currentTick);
1237
- const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);
1238
- const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);
1239
- const liquidityJSBI = JSBI.BigInt(liquidity.toString());
1240
- let delta0 = JSBI.BigInt(0);
1241
- let delta1 = JSBI.BigInt(0);
1242
- if (currentTick < tickLower) delta0 = SqrtPriceMath.getAmount0Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1243
- else if (currentTick >= tickUpper) delta1 = SqrtPriceMath.getAmount1Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1244
- else {
1245
- delta0 = SqrtPriceMath.getAmount0Delta(sqrtRatioX96, sqrtRatioBX96, liquidityJSBI, false);
1246
- delta1 = SqrtPriceMath.getAmount1Delta(sqrtRatioAX96, sqrtRatioX96, liquidityJSBI, false);
1247
- }
1248
- return [BigInt(delta0.toString()), BigInt(delta1.toString())];
1249
- };
1250
- const liquiditiesToAmount0 = (liquidities, startTick, tickSpacing) => {
1251
- let amount0 = BigInt(0);
1252
- for (let i = 0; i < liquidities.length; i++) {
1253
- const liquidity = liquidities[i];
1254
- if (liquidity === BigInt(0)) continue;
1255
- const tickLower = startTick + tickSpacing * i;
1256
- const tickUpper = tickLower + tickSpacing;
1257
- const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);
1258
- const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);
1259
- const liquidityJSBI = JSBI.BigInt(liquidity.toString());
1260
- const amount0Delta = SqrtPriceMath.getAmount0Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1261
- amount0 += BigInt(amount0Delta.toString());
1262
- }
1263
- return amount0;
1264
- };
1265
- const liquiditiesToAmount1 = (liquidities, startTick, tickSpacing) => {
1266
- let amount1 = BigInt(0);
1267
- for (let i = 0; i < liquidities.length; i++) {
1268
- const liquidity = liquidities[i];
1269
- if (liquidity === BigInt(0)) continue;
1270
- const tickLower = startTick + tickSpacing * i;
1271
- const tickUpper = tickLower + tickSpacing;
1272
- const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);
1273
- const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);
1274
- const liquidityJSBI = JSBI.BigInt(liquidity.toString());
1275
- const amount1Delta = SqrtPriceMath.getAmount1Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1276
- amount1 += BigInt(amount1Delta.toString());
1277
- }
1278
- return amount1;
1279
- };
1280
- const liquiditiesToAmounts = (liquidities, startTick, price, tickSpacing) => {
1281
- let amount0 = 0n;
1282
- let amount1 = 0n;
1283
- const sqrtRatioX96 = getSqrtPriceX96AtPrice(price);
1284
- for (let i = 0; i < liquidities.length; i++) {
1285
- const liquidity = liquidities[i];
1286
- if (liquidity === BigInt(0)) continue;
1287
- const tickLower = startTick + tickSpacing * i;
1288
- const tickUpper = tickLower + tickSpacing;
1289
- const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);
1290
- const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);
1291
- const liquidityJSBI = JSBI.BigInt(liquidity.toString());
1292
- if (JSBI.lessThanOrEqual(sqrtRatioX96, sqrtRatioAX96)) {
1293
- const delta0 = SqrtPriceMath.getAmount0Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1294
- amount0 += BigInt(delta0.toString());
1295
- } else if (JSBI.lessThan(sqrtRatioX96, sqrtRatioBX96)) {
1296
- const delta0 = SqrtPriceMath.getAmount0Delta(sqrtRatioX96, sqrtRatioBX96, liquidityJSBI, false);
1297
- const delta1 = SqrtPriceMath.getAmount1Delta(sqrtRatioAX96, sqrtRatioX96, liquidityJSBI, false);
1298
- amount0 += BigInt(delta0.toString());
1299
- amount1 += BigInt(delta1.toString());
1300
- } else {
1301
- const delta1 = SqrtPriceMath.getAmount1Delta(sqrtRatioAX96, sqrtRatioBX96, liquidityJSBI, false);
1302
- amount1 += BigInt(delta1.toString());
1303
- }
1304
- }
1305
- return [amount0, amount1];
1306
- };
1307
-
1308
- //#endregion
1309
- //#region src/lib/numberUtils.ts
1310
- const EMPTY_ARRAY = [];
1311
- const zero = {
1312
- scaled: 0n,
1313
- unscaled: Big(0),
1314
- decimals: 18,
1315
- formatted: "0"
1316
- };
1317
- const wrapAmount = (scaled, decimals) => {
1318
- const unscaled = unscaleAmount(scaled, decimals);
1319
- return {
1320
- scaled,
1321
- unscaled,
1322
- decimals,
1323
- formatted: formatAmount(unscaled)
1324
- };
1325
- };
1326
- const wrapAmountUnscaled = (unscaled, decimals) => {
1327
- unscaled = Big(unscaled);
1328
- const scaled = scaleAmount(unscaled, decimals);
1329
- const formatted = formatAmount(unscaled);
1330
- return {
1331
- scaled,
1332
- unscaled,
1333
- decimals,
1334
- formatted
1335
- };
1336
- };
1337
- const wrapPrice = (scaled, decimals0, decimals1) => {
1338
- const unscaled = unscalePrice(scaled, decimals0, decimals1);
1339
- const formatted = formatAmount(unscaled);
1340
- return {
1341
- scaled,
1342
- unscaled,
1343
- decimals: 36 + decimals1 - decimals0,
1344
- formatted
1345
- };
1346
- };
1347
- const wrapPriceUnscaled = (unscaled, decimals0, decimals1) => {
1348
- unscaled = Big(unscaled);
1349
- const scaled = scalePrice(unscaled, decimals0, decimals1);
1350
- const formatted = formatAmount(unscaled);
1351
- return {
1352
- scaled,
1353
- unscaled,
1354
- decimals: 36 + decimals1 - decimals0,
1355
- formatted
1356
- };
1357
- };
1358
- const unscaleAmount = (scaled, decimals) => {
1359
- return new Big(scaled.toString()).div(new Big(10).pow(decimals));
1360
- };
1361
- const scaleAmount = (unscaled, decimals) => {
1362
- return BigInt(Big(unscaled).mul(new Big(10).pow(decimals)).round().toFixed(0));
1363
- };
1364
- const unscalePrice = (scaled, decimals0, decimals1, precision = 18) => {
1365
- return new Big(scaled.toString()).mul(new Big(10).pow(decimals0)).div(new Big(10).pow(decimals1)).div(new Big(10).pow(precision));
1366
- };
1367
- const scalePrice = (unscaled, decimals0, decimals1, precision = 18) => {
1368
- return BigInt(Big(unscaled).mul(new Big(10).pow(precision)).mul(new Big(10).pow(decimals1)).div(new Big(10).pow(decimals0)).round().toFixed(0));
1369
- };
1370
- const formatAmount = (value) => {
1371
- if (!value) return "-";
1372
- value = new Big(value);
1373
- if (value.gte(1e8)) return formatVagueAmount(value, 2);
1374
- return formatCondensed(Big(value).toFixed(100));
1375
- };
1376
- const formatVagueAmount = (value, fractionDigits = 2) => {
1377
- value = Number(value);
1378
- if (value === 0) return "0";
1379
- return value.toExponential(fractionDigits).replace(/\.?0+e/, "e").replace(/e\+/, "e");
1380
- };
1381
- const formatCondensed = (input, decimals = 2) => {
1382
- const [whole, decimal] = (typeof input === "number" ? input.toFixed(20) : input).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "").split(".");
1383
- const formattedWhole = whole.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1384
- if (!decimal) return formattedWhole;
1385
- const leadingZeroMatch = decimal.match(/^(0{3,})/);
1386
- if (leadingZeroMatch) {
1387
- const zeroCount = leadingZeroMatch[1].length;
1388
- return `${formattedWhole}.0${toSubscript(zeroCount.toString())}${decimal.slice(zeroCount).slice(0, decimals)}`;
1389
- } else {
1390
- const nonZeroStart = decimal.search(/[1-9]/);
1391
- if (nonZeroStart === -1) return formattedWhole;
1392
- const twoDigits = decimal.slice(nonZeroStart).slice(0, decimals);
1393
- return `${formattedWhole}.${decimal.slice(0, nonZeroStart)}${twoDigits}`;
1394
- }
1395
- };
1396
- const toSubscript = (input) => {
1397
- return input.replace(/[0-9]/g, (m) => "₀₁₂₃₄₅₆₇₈₉"[+m]);
1398
- };
1399
- const formatUSD = (value) => {
1400
- return "$" + formatAmount(value);
1401
- };
1402
-
1403
- //#endregion
1404
- //#region src/lib/optionUtils.ts
1405
- const getPayoutAtTick = (option, liquidities, tick, tickSpacing, optionAssetIsToken0) => {
1406
- return getPayoutAtPrice(option, liquidities, getPriceAtTick(tick), tickSpacing, optionAssetIsToken0);
1407
- };
1408
- const getPayoutAtPrice = (option, liquidities, price, tickSpacing, optionAssetIsToken0) => {
1409
- const [borrowedAmount0, borrowedAmount1] = liquiditiesToAmounts(liquidities, option.startTick, option.entryPrice, tickSpacing);
1410
- const [repayAmount0, repayAmount1] = liquiditiesToAmounts(liquidities, option.startTick, price, tickSpacing);
1411
- const delta = (optionAssetIsToken0 ? borrowedAmount1 + token0ToToken1(borrowedAmount0, price) : borrowedAmount0 + token1ToToken0(borrowedAmount1, price)) - (optionAssetIsToken0 ? repayAmount1 + token0ToToken1(repayAmount0, price) : repayAmount0 + token1ToToken0(repayAmount1, price));
1412
- return delta < 0n ? 0n : delta;
1413
- };
1414
-
1415
- //#endregion
1416
- export { token1ToToken0 as A, swappers as B, getTickAtPrice as C, roundTick as D, liquiditiesToAmounts as E, getStateView as F, timelockLenses as H, getTimelockLens as I, getTimelockMarket as L, getCurrentPrice as M, getPriceHistory as N, token0ToToken1 as O, getErc20 as P, stateViews as R, getSqrtPriceX96AtPrice as S, liquiditiesToAmount1 as T, statelessStateViewAbi as U, timelockFactories as V, PRICE_PRECISION as _, formatCondensed as a, getPriceAtSqrtPriceX96 as b, scaleAmount as c, unscalePrice as d, wrapAmount as f, zero as g, wrapPriceUnscaled as h, formatAmount as i, token1ToToken0AtTick as j, token0ToToken1AtTick as k, scalePrice as l, wrapPrice as m, getPayoutAtTick as n, formatUSD as o, wrapAmountUnscaled as p, EMPTY_ARRAY as r, formatVagueAmount as s, getPayoutAtPrice as t, unscaleAmount as u, getAmountsFromLiquidity as v, liquiditiesToAmount0 as w, getPriceAtTick as x, getNearestValidStrikeTick as y, swapRouters as z };
1417
- //# sourceMappingURL=optionUtils-fCYueZl2.js.map