timelock-sdk 0.0.65 → 0.0.66

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.
@@ -1,4 +1,4 @@
1
- import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-Ddy91uWa.js";
1
+ import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-i1P7D19j.js";
2
2
  import * as viem161 from "viem";
3
3
  import { Address, Client, GetContractReturnType, PublicClient } from "viem";
4
4
  import Big from "big.js";
@@ -22622,7 +22622,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
22622
22622
  readonly type: "uint8";
22623
22623
  readonly internalType: "uint8";
22624
22624
  }, {
22625
- readonly name: "leftTick";
22625
+ readonly name: "startTick";
22626
22626
  readonly type: "int24";
22627
22627
  readonly internalType: "int24";
22628
22628
  }, {
@@ -22846,7 +22846,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
22846
22846
  readonly type: "uint8";
22847
22847
  readonly internalType: "uint8";
22848
22848
  }, {
22849
- readonly name: "leftTick";
22849
+ readonly name: "startTick";
22850
22850
  readonly type: "int24";
22851
22851
  readonly internalType: "int24";
22852
22852
  }, {
@@ -22929,7 +22929,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
22929
22929
  readonly type: "uint8";
22930
22930
  readonly internalType: "uint8";
22931
22931
  }, {
22932
- readonly name: "leftTick";
22932
+ readonly name: "startTick";
22933
22933
  readonly type: "int24";
22934
22934
  readonly internalType: "int24";
22935
22935
  }, {
@@ -23093,7 +23093,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23093
23093
  readonly type: "uint8";
23094
23094
  readonly internalType: "uint8";
23095
23095
  }, {
23096
- readonly name: "leftTick";
23096
+ readonly name: "startTick";
23097
23097
  readonly type: "int24";
23098
23098
  readonly internalType: "int24";
23099
23099
  }, {
@@ -23296,7 +23296,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23296
23296
  readonly type: "uint8";
23297
23297
  readonly internalType: "uint8";
23298
23298
  }, {
23299
- readonly name: "leftTick";
23299
+ readonly name: "startTick";
23300
23300
  readonly type: "int24";
23301
23301
  readonly internalType: "int24";
23302
23302
  }, {
@@ -23520,7 +23520,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23520
23520
  readonly type: "uint8";
23521
23521
  readonly internalType: "uint8";
23522
23522
  }, {
23523
- readonly name: "leftTick";
23523
+ readonly name: "startTick";
23524
23524
  readonly type: "int24";
23525
23525
  readonly internalType: "int24";
23526
23526
  }, {
@@ -23603,7 +23603,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23603
23603
  readonly type: "uint8";
23604
23604
  readonly internalType: "uint8";
23605
23605
  }, {
23606
- readonly name: "leftTick";
23606
+ readonly name: "startTick";
23607
23607
  readonly type: "int24";
23608
23608
  readonly internalType: "int24";
23609
23609
  }, {
@@ -23767,7 +23767,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23767
23767
  readonly type: "uint8";
23768
23768
  readonly internalType: "uint8";
23769
23769
  }, {
23770
- readonly name: "leftTick";
23770
+ readonly name: "startTick";
23771
23771
  readonly type: "int24";
23772
23772
  readonly internalType: "int24";
23773
23773
  }, {
@@ -23980,7 +23980,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
23980
23980
  readonly type: "uint8";
23981
23981
  readonly internalType: "uint8";
23982
23982
  }, {
23983
- readonly name: "leftTick";
23983
+ readonly name: "startTick";
23984
23984
  readonly type: "int24";
23985
23985
  readonly internalType: "int24";
23986
23986
  }, {
@@ -24204,7 +24204,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24204
24204
  readonly type: "uint8";
24205
24205
  readonly internalType: "uint8";
24206
24206
  }, {
24207
- readonly name: "leftTick";
24207
+ readonly name: "startTick";
24208
24208
  readonly type: "int24";
24209
24209
  readonly internalType: "int24";
24210
24210
  }, {
@@ -24287,7 +24287,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24287
24287
  readonly type: "uint8";
24288
24288
  readonly internalType: "uint8";
24289
24289
  }, {
24290
- readonly name: "leftTick";
24290
+ readonly name: "startTick";
24291
24291
  readonly type: "int24";
24292
24292
  readonly internalType: "int24";
24293
24293
  }, {
@@ -24451,7 +24451,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24451
24451
  readonly type: "uint8";
24452
24452
  readonly internalType: "uint8";
24453
24453
  }, {
24454
- readonly name: "leftTick";
24454
+ readonly name: "startTick";
24455
24455
  readonly type: "int24";
24456
24456
  readonly internalType: "int24";
24457
24457
  }, {
@@ -24555,7 +24555,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24555
24555
  optionId: bigint;
24556
24556
  owner: `0x${string}`;
24557
24557
  optionType: number;
24558
- leftTick: number;
24558
+ startTick: number;
24559
24559
  strikeTick: number;
24560
24560
  entryTick: number;
24561
24561
  strikePrice: bigint;
@@ -24671,7 +24671,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24671
24671
  readonly type: "uint8";
24672
24672
  readonly internalType: "uint8";
24673
24673
  }, {
24674
- readonly name: "leftTick";
24674
+ readonly name: "startTick";
24675
24675
  readonly type: "int24";
24676
24676
  readonly internalType: "int24";
24677
24677
  }, {
@@ -24895,7 +24895,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24895
24895
  readonly type: "uint8";
24896
24896
  readonly internalType: "uint8";
24897
24897
  }, {
24898
- readonly name: "leftTick";
24898
+ readonly name: "startTick";
24899
24899
  readonly type: "int24";
24900
24900
  readonly internalType: "int24";
24901
24901
  }, {
@@ -24978,7 +24978,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
24978
24978
  readonly type: "uint8";
24979
24979
  readonly internalType: "uint8";
24980
24980
  }, {
24981
- readonly name: "leftTick";
24981
+ readonly name: "startTick";
24982
24982
  readonly type: "int24";
24983
24983
  readonly internalType: "int24";
24984
24984
  }, {
@@ -25142,7 +25142,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
25142
25142
  readonly type: "uint8";
25143
25143
  readonly internalType: "uint8";
25144
25144
  }, {
25145
- readonly name: "leftTick";
25145
+ readonly name: "startTick";
25146
25146
  readonly type: "int24";
25147
25147
  readonly internalType: "int24";
25148
25148
  }, {
@@ -25345,7 +25345,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
25345
25345
  readonly type: "uint8";
25346
25346
  readonly internalType: "uint8";
25347
25347
  }, {
25348
- readonly name: "leftTick";
25348
+ readonly name: "startTick";
25349
25349
  readonly type: "int24";
25350
25350
  readonly internalType: "int24";
25351
25351
  }, {
@@ -25569,7 +25569,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
25569
25569
  readonly type: "uint8";
25570
25570
  readonly internalType: "uint8";
25571
25571
  }, {
25572
- readonly name: "leftTick";
25572
+ readonly name: "startTick";
25573
25573
  readonly type: "int24";
25574
25574
  readonly internalType: "int24";
25575
25575
  }, {
@@ -25652,7 +25652,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
25652
25652
  readonly type: "uint8";
25653
25653
  readonly internalType: "uint8";
25654
25654
  }, {
25655
- readonly name: "leftTick";
25655
+ readonly name: "startTick";
25656
25656
  readonly type: "int24";
25657
25657
  readonly internalType: "int24";
25658
25658
  }, {
@@ -25816,7 +25816,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
25816
25816
  readonly type: "uint8";
25817
25817
  readonly internalType: "uint8";
25818
25818
  }, {
25819
- readonly name: "leftTick";
25819
+ readonly name: "startTick";
25820
25820
  readonly type: "int24";
25821
25821
  readonly internalType: "int24";
25822
25822
  }, {
@@ -26032,7 +26032,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26032
26032
  readonly type: "uint8";
26033
26033
  readonly internalType: "uint8";
26034
26034
  }, {
26035
- readonly name: "leftTick";
26035
+ readonly name: "startTick";
26036
26036
  readonly type: "int24";
26037
26037
  readonly internalType: "int24";
26038
26038
  }, {
@@ -26256,7 +26256,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26256
26256
  readonly type: "uint8";
26257
26257
  readonly internalType: "uint8";
26258
26258
  }, {
26259
- readonly name: "leftTick";
26259
+ readonly name: "startTick";
26260
26260
  readonly type: "int24";
26261
26261
  readonly internalType: "int24";
26262
26262
  }, {
@@ -26339,7 +26339,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26339
26339
  readonly type: "uint8";
26340
26340
  readonly internalType: "uint8";
26341
26341
  }, {
26342
- readonly name: "leftTick";
26342
+ readonly name: "startTick";
26343
26343
  readonly type: "int24";
26344
26344
  readonly internalType: "int24";
26345
26345
  }, {
@@ -26503,7 +26503,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26503
26503
  readonly type: "uint8";
26504
26504
  readonly internalType: "uint8";
26505
26505
  }, {
26506
- readonly name: "leftTick";
26506
+ readonly name: "startTick";
26507
26507
  readonly type: "int24";
26508
26508
  readonly internalType: "int24";
26509
26509
  }, {
@@ -26706,7 +26706,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26706
26706
  readonly type: "uint8";
26707
26707
  readonly internalType: "uint8";
26708
26708
  }, {
26709
- readonly name: "leftTick";
26709
+ readonly name: "startTick";
26710
26710
  readonly type: "int24";
26711
26711
  readonly internalType: "int24";
26712
26712
  }, {
@@ -26930,7 +26930,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
26930
26930
  readonly type: "uint8";
26931
26931
  readonly internalType: "uint8";
26932
26932
  }, {
26933
- readonly name: "leftTick";
26933
+ readonly name: "startTick";
26934
26934
  readonly type: "int24";
26935
26935
  readonly internalType: "int24";
26936
26936
  }, {
@@ -27013,7 +27013,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27013
27013
  readonly type: "uint8";
27014
27014
  readonly internalType: "uint8";
27015
27015
  }, {
27016
- readonly name: "leftTick";
27016
+ readonly name: "startTick";
27017
27017
  readonly type: "int24";
27018
27018
  readonly internalType: "int24";
27019
27019
  }, {
@@ -27177,7 +27177,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27177
27177
  readonly type: "uint8";
27178
27178
  readonly internalType: "uint8";
27179
27179
  }, {
27180
- readonly name: "leftTick";
27180
+ readonly name: "startTick";
27181
27181
  readonly type: "int24";
27182
27182
  readonly internalType: "int24";
27183
27183
  }, {
@@ -27380,7 +27380,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27380
27380
  readonly type: "uint8";
27381
27381
  readonly internalType: "uint8";
27382
27382
  }, {
27383
- readonly name: "leftTick";
27383
+ readonly name: "startTick";
27384
27384
  readonly type: "int24";
27385
27385
  readonly internalType: "int24";
27386
27386
  }, {
@@ -27604,7 +27604,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27604
27604
  readonly type: "uint8";
27605
27605
  readonly internalType: "uint8";
27606
27606
  }, {
27607
- readonly name: "leftTick";
27607
+ readonly name: "startTick";
27608
27608
  readonly type: "int24";
27609
27609
  readonly internalType: "int24";
27610
27610
  }, {
@@ -27687,7 +27687,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27687
27687
  readonly type: "uint8";
27688
27688
  readonly internalType: "uint8";
27689
27689
  }, {
27690
- readonly name: "leftTick";
27690
+ readonly name: "startTick";
27691
27691
  readonly type: "int24";
27692
27692
  readonly internalType: "int24";
27693
27693
  }, {
@@ -27851,7 +27851,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27851
27851
  readonly type: "uint8";
27852
27852
  readonly internalType: "uint8";
27853
27853
  }, {
27854
- readonly name: "leftTick";
27854
+ readonly name: "startTick";
27855
27855
  readonly type: "int24";
27856
27856
  readonly internalType: "int24";
27857
27857
  }, {
@@ -27955,7 +27955,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
27955
27955
  optionId: bigint;
27956
27956
  owner: `0x${string}`;
27957
27957
  optionType: number;
27958
- leftTick: number;
27958
+ startTick: number;
27959
27959
  strikeTick: number;
27960
27960
  entryTick: number;
27961
27961
  strikePrice: bigint;
@@ -28071,7 +28071,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28071
28071
  readonly type: "uint8";
28072
28072
  readonly internalType: "uint8";
28073
28073
  }, {
28074
- readonly name: "leftTick";
28074
+ readonly name: "startTick";
28075
28075
  readonly type: "int24";
28076
28076
  readonly internalType: "int24";
28077
28077
  }, {
@@ -28295,7 +28295,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28295
28295
  readonly type: "uint8";
28296
28296
  readonly internalType: "uint8";
28297
28297
  }, {
28298
- readonly name: "leftTick";
28298
+ readonly name: "startTick";
28299
28299
  readonly type: "int24";
28300
28300
  readonly internalType: "int24";
28301
28301
  }, {
@@ -28378,7 +28378,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28378
28378
  readonly type: "uint8";
28379
28379
  readonly internalType: "uint8";
28380
28380
  }, {
28381
- readonly name: "leftTick";
28381
+ readonly name: "startTick";
28382
28382
  readonly type: "int24";
28383
28383
  readonly internalType: "int24";
28384
28384
  }, {
@@ -28542,7 +28542,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28542
28542
  readonly type: "uint8";
28543
28543
  readonly internalType: "uint8";
28544
28544
  }, {
28545
- readonly name: "leftTick";
28545
+ readonly name: "startTick";
28546
28546
  readonly type: "int24";
28547
28547
  readonly internalType: "int24";
28548
28548
  }, {
@@ -28646,7 +28646,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28646
28646
  optionId: bigint;
28647
28647
  owner: `0x${string}`;
28648
28648
  optionType: number;
28649
- leftTick: number;
28649
+ startTick: number;
28650
28650
  strikeTick: number;
28651
28651
  entryTick: number;
28652
28652
  strikePrice: bigint;
@@ -28762,7 +28762,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28762
28762
  readonly type: "uint8";
28763
28763
  readonly internalType: "uint8";
28764
28764
  }, {
28765
- readonly name: "leftTick";
28765
+ readonly name: "startTick";
28766
28766
  readonly type: "int24";
28767
28767
  readonly internalType: "int24";
28768
28768
  }, {
@@ -28986,7 +28986,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
28986
28986
  readonly type: "uint8";
28987
28987
  readonly internalType: "uint8";
28988
28988
  }, {
28989
- readonly name: "leftTick";
28989
+ readonly name: "startTick";
28990
28990
  readonly type: "int24";
28991
28991
  readonly internalType: "int24";
28992
28992
  }, {
@@ -29069,7 +29069,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29069
29069
  readonly type: "uint8";
29070
29070
  readonly internalType: "uint8";
29071
29071
  }, {
29072
- readonly name: "leftTick";
29072
+ readonly name: "startTick";
29073
29073
  readonly type: "int24";
29074
29074
  readonly internalType: "int24";
29075
29075
  }, {
@@ -29233,7 +29233,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29233
29233
  readonly type: "uint8";
29234
29234
  readonly internalType: "uint8";
29235
29235
  }, {
29236
- readonly name: "leftTick";
29236
+ readonly name: "startTick";
29237
29237
  readonly type: "int24";
29238
29238
  readonly internalType: "int24";
29239
29239
  }, {
@@ -29447,7 +29447,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29447
29447
  readonly type: "uint8";
29448
29448
  readonly internalType: "uint8";
29449
29449
  }, {
29450
- readonly name: "leftTick";
29450
+ readonly name: "startTick";
29451
29451
  readonly type: "int24";
29452
29452
  readonly internalType: "int24";
29453
29453
  }, {
@@ -29671,7 +29671,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29671
29671
  readonly type: "uint8";
29672
29672
  readonly internalType: "uint8";
29673
29673
  }, {
29674
- readonly name: "leftTick";
29674
+ readonly name: "startTick";
29675
29675
  readonly type: "int24";
29676
29676
  readonly internalType: "int24";
29677
29677
  }, {
@@ -29754,7 +29754,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29754
29754
  readonly type: "uint8";
29755
29755
  readonly internalType: "uint8";
29756
29756
  }, {
29757
- readonly name: "leftTick";
29757
+ readonly name: "startTick";
29758
29758
  readonly type: "int24";
29759
29759
  readonly internalType: "int24";
29760
29760
  }, {
@@ -29918,7 +29918,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
29918
29918
  readonly type: "uint8";
29919
29919
  readonly internalType: "uint8";
29920
29920
  }, {
29921
- readonly name: "leftTick";
29921
+ readonly name: "startTick";
29922
29922
  readonly type: "int24";
29923
29923
  readonly internalType: "int24";
29924
29924
  }, {
@@ -30121,7 +30121,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30121
30121
  readonly type: "uint8";
30122
30122
  readonly internalType: "uint8";
30123
30123
  }, {
30124
- readonly name: "leftTick";
30124
+ readonly name: "startTick";
30125
30125
  readonly type: "int24";
30126
30126
  readonly internalType: "int24";
30127
30127
  }, {
@@ -30345,7 +30345,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30345
30345
  readonly type: "uint8";
30346
30346
  readonly internalType: "uint8";
30347
30347
  }, {
30348
- readonly name: "leftTick";
30348
+ readonly name: "startTick";
30349
30349
  readonly type: "int24";
30350
30350
  readonly internalType: "int24";
30351
30351
  }, {
@@ -30428,7 +30428,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30428
30428
  readonly type: "uint8";
30429
30429
  readonly internalType: "uint8";
30430
30430
  }, {
30431
- readonly name: "leftTick";
30431
+ readonly name: "startTick";
30432
30432
  readonly type: "int24";
30433
30433
  readonly internalType: "int24";
30434
30434
  }, {
@@ -30592,7 +30592,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30592
30592
  readonly type: "uint8";
30593
30593
  readonly internalType: "uint8";
30594
30594
  }, {
30595
- readonly name: "leftTick";
30595
+ readonly name: "startTick";
30596
30596
  readonly type: "int24";
30597
30597
  readonly internalType: "int24";
30598
30598
  }, {
@@ -30696,7 +30696,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30696
30696
  optionId: bigint;
30697
30697
  owner: `0x${string}`;
30698
30698
  optionType: number;
30699
- leftTick: number;
30699
+ startTick: number;
30700
30700
  strikeTick: number;
30701
30701
  entryTick: number;
30702
30702
  strikePrice: bigint;
@@ -30812,7 +30812,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
30812
30812
  readonly type: "uint8";
30813
30813
  readonly internalType: "uint8";
30814
30814
  }, {
30815
- readonly name: "leftTick";
30815
+ readonly name: "startTick";
30816
30816
  readonly type: "int24";
30817
30817
  readonly internalType: "int24";
30818
30818
  }, {
@@ -31036,7 +31036,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31036
31036
  readonly type: "uint8";
31037
31037
  readonly internalType: "uint8";
31038
31038
  }, {
31039
- readonly name: "leftTick";
31039
+ readonly name: "startTick";
31040
31040
  readonly type: "int24";
31041
31041
  readonly internalType: "int24";
31042
31042
  }, {
@@ -31119,7 +31119,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31119
31119
  readonly type: "uint8";
31120
31120
  readonly internalType: "uint8";
31121
31121
  }, {
31122
- readonly name: "leftTick";
31122
+ readonly name: "startTick";
31123
31123
  readonly type: "int24";
31124
31124
  readonly internalType: "int24";
31125
31125
  }, {
@@ -31283,7 +31283,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31283
31283
  readonly type: "uint8";
31284
31284
  readonly internalType: "uint8";
31285
31285
  }, {
31286
- readonly name: "leftTick";
31286
+ readonly name: "startTick";
31287
31287
  readonly type: "int24";
31288
31288
  readonly internalType: "int24";
31289
31289
  }, {
@@ -31488,7 +31488,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31488
31488
  readonly type: "uint8";
31489
31489
  readonly internalType: "uint8";
31490
31490
  }, {
31491
- readonly name: "leftTick";
31491
+ readonly name: "startTick";
31492
31492
  readonly type: "int24";
31493
31493
  readonly internalType: "int24";
31494
31494
  }, {
@@ -31712,7 +31712,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31712
31712
  readonly type: "uint8";
31713
31713
  readonly internalType: "uint8";
31714
31714
  }, {
31715
- readonly name: "leftTick";
31715
+ readonly name: "startTick";
31716
31716
  readonly type: "int24";
31717
31717
  readonly internalType: "int24";
31718
31718
  }, {
@@ -31795,7 +31795,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31795
31795
  readonly type: "uint8";
31796
31796
  readonly internalType: "uint8";
31797
31797
  }, {
31798
- readonly name: "leftTick";
31798
+ readonly name: "startTick";
31799
31799
  readonly type: "int24";
31800
31800
  readonly internalType: "int24";
31801
31801
  }, {
@@ -31959,7 +31959,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
31959
31959
  readonly type: "uint8";
31960
31960
  readonly internalType: "uint8";
31961
31961
  }, {
31962
- readonly name: "leftTick";
31962
+ readonly name: "startTick";
31963
31963
  readonly type: "int24";
31964
31964
  readonly internalType: "int24";
31965
31965
  }, {
@@ -32098,4 +32098,4 @@ declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, t
32098
32098
  declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, currentTick: number, tickSpacing: number) => bigint[];
32099
32099
  //#endregion
32100
32100
  export { getTimelockLens as A, wrapPriceUnscaled as C, TimelockMarketData as D, TimelockMarket as E, getUniswapMathLens as M, timelockLenses as N, UniswapMathLens as O, uniswapMathLenses as P, wrapPrice as S, TimelockLens as T, scalePrice as _, liquiditiesToAmount1 as a, wrapAmount as b, roundTickUp as c, Amount as d, formatAmount as f, scaleAmount as g, formatVagueAmount as h, liquiditiesToAmount0 as i, getTimelockMarket as j, getErc20 as k, token0ToToken1 as l, formatUSD as m, getPriceAtTick as n, liquiditiesToAmounts as o, formatCondensed as p, getTickAtPrice as r, roundTickDown as s, PRICE_PRECISION as t, token1ToToken0 as u, unscaleAmount as v, zero as w, wrapAmountUnscaled as x, unscalePrice as y };
32101
- //# sourceMappingURL=index-ZCeoylWY.d.ts.map
32101
+ //# sourceMappingURL=index-WjU9H0Tc.d.ts.map
@@ -1,4 +1,4 @@
1
- import { i as erc20Abi$1, n as uniswapMathLensAbi, r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-DD4CWMqv.js";
1
+ import { i as erc20Abi$1, n as uniswapMathLensAbi, r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-GbBWALCn.js";
2
2
  import { getContract } from "viem";
3
3
  import { monadTestnet } from "viem/chains";
4
4
  import { SqrtPriceMath, TickMath } from "@uniswap/v3-sdk";
@@ -28,7 +28,7 @@ const getTimelockLens = (client) => getContract({
28
28
  address: timelockLenses[client.chain.id],
29
29
  client
30
30
  });
31
- const timelockLenses = { [monadTestnet.id]: "0xe5e1Df4B781D4162702F6a28a38a0f441A86f9Fa" };
31
+ const timelockLenses = { [monadTestnet.id]: "0xa1461178F613d5d3550191FA9E1730B6e0d98593" };
32
32
  const uniswapMathLenses = { [monadTestnet.id]: "0x4C8375D1F6D5F452e92e211C1D3E7a44F78dFc95" };
33
33
 
34
34
  //#endregion
@@ -213,4 +213,4 @@ const formatUSD = (value) => {
213
213
 
214
214
  //#endregion
215
215
  export { token1ToToken0 as C, getUniswapMathLens as D, getTimelockMarket as E, timelockLenses as O, token0ToToken1 as S, getTimelockLens as T, liquiditiesToAmount0 as _, scaleAmount as a, roundTickDown as b, unscalePrice as c, wrapPrice as d, wrapPriceUnscaled as f, getTickAtPrice as g, getPriceAtTick as h, formatVagueAmount as i, uniswapMathLenses as k, wrapAmount as l, PRICE_PRECISION as m, formatCondensed as n, scalePrice as o, zero as p, formatUSD as r, unscaleAmount as s, formatAmount as t, wrapAmountUnscaled as u, liquiditiesToAmount1 as v, getErc20 as w, roundTickUp as x, liquiditiesToAmounts as y };
216
- //# sourceMappingURL=numberUtils-Dd7vdmeQ.js.map
216
+ //# sourceMappingURL=numberUtils-BVUp0GfC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"numberUtils-Dd7vdmeQ.js","names":["erc20Abi","timelockLenses: Record<number, Address>","uniswapMathLenses: Record<number, Address>","zero: Amount"],"sources":["../src/lib/contracts.ts","../src/lib/liquidityUtils.ts","../src/lib/numberUtils.ts"],"sourcesContent":["import type {Address, Client, PublicClient, GetContractReturnType} from 'viem';\nimport {getContract} from 'viem';\nimport {monadTestnet} from 'viem/chains';\n\nimport {erc20Abi} from '~/abis/erc20';\nimport {lensAbi} from '~/abis/lens';\nimport {uniswapMathLensAbi} from '~/abis/uniswapMathLens';\nimport {optionsMarketAbi} from '~/abis/optionsMarket';\n\nexport type TimelockMarket = GetContractReturnType<\n typeof optionsMarketAbi,\n Client,\n Address\n>;\nexport type TimelockLens = GetContractReturnType<\n typeof lensAbi,\n Client,\n Address\n>;\nexport type UniswapMathLens = GetContractReturnType<\n typeof uniswapMathLensAbi,\n Client,\n Address\n>;\n\nexport type TimelockMarketData = Awaited<\n ReturnType<TimelockLens['read']['getMarketData']>\n> & {address: Address};\n\nexport const getErc20 = (address: Address, client: Client) =>\n getContract({abi: erc20Abi, address, client});\n\nexport const getTimelockMarket = (\n address: Address,\n client: Client,\n): TimelockMarket => {\n return getContract({abi: optionsMarketAbi, address, client});\n};\n\nexport const getUniswapMathLens = (client: Client | PublicClient) =>\n getContract({\n abi: uniswapMathLensAbi,\n address: uniswapMathLenses[client.chain!.id],\n client,\n });\n\nexport const getTimelockLens = (client: Client | PublicClient) =>\n getContract({\n abi: lensAbi,\n address: timelockLenses[client.chain!.id],\n client,\n });\n\nexport const timelockLenses: Record<number, Address> = {\n [monadTestnet.id]: '0xe5e1Df4B781D4162702F6a28a38a0f441A86f9Fa',\n};\nexport const uniswapMathLenses: Record<number, Address> = {\n [monadTestnet.id]: '0x4C8375D1F6D5F452e92e211C1D3E7a44F78dFc95',\n};\n","import {SqrtPriceMath, TickMath} from '@uniswap/v3-sdk';\nimport Big from 'big.js';\nimport JSBI from 'jsbi';\n\nexport const PRICE_PRECISION = BigInt(1e18);\n\nexport const getPriceAtTick = (tick: number) => {\n const sqrtRatioX96 = BigInt(TickMath.getSqrtRatioAtTick(tick).toString());\n\n const priceX192 = sqrtRatioX96 * sqrtRatioX96;\n const price = (priceX192 * PRICE_PRECISION) / BigInt(2 ** 192);\n\n return price;\n};\n\nexport const getTickAtPrice = (price: bigint) => {\n const priceX192 = (price * BigInt(2 ** 192)) / PRICE_PRECISION;\n const sqrtPriceX96 = JSBI.BigInt(\n new Big(priceX192.toString()).sqrt().toFixed(0),\n );\n return TickMath.getTickAtSqrtRatio(sqrtPriceX96);\n};\n\nexport const roundTickDown = (tick: number, spacing: number) => {\n const rem = tick % spacing;\n if (rem >= 0) return tick - rem;\n return tick - rem - spacing;\n};\n\nexport const roundTickUp = (tick: number, spacing: number) => {\n const rem = tick % spacing;\n if (rem === 0) return tick;\n if (rem > 0) return tick - rem + spacing;\n return tick - rem;\n};\n\nexport const token0ToToken1 = (amount0: bigint, tick: number) => {\n const price = getPriceAtTick(tick);\n return (amount0 * price) / PRICE_PRECISION;\n};\n\nexport const token1ToToken0 = (amount1: bigint, tick: number) => {\n const price = getPriceAtTick(tick);\n return (amount1 * PRICE_PRECISION) / price;\n};\n\nexport const liquiditiesToAmount0 = (\n liquidities: bigint[],\n startTick: number,\n tickSpacing: number,\n) => {\n let amount0 = BigInt(0);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n const amount0Delta = SqrtPriceMath.getAmount0Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(amount0Delta.toString());\n }\n return amount0;\n};\n\nexport const liquiditiesToAmount1 = (\n liquidities: bigint[],\n startTick: number,\n tickSpacing: number,\n) => {\n let amount1 = BigInt(0);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n const amount1Delta = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount1 += BigInt(amount1Delta.toString());\n }\n return amount1;\n};\n\nexport const liquiditiesToAmounts = (\n liquidities: bigint[],\n startTick: number,\n currentTick: number,\n tickSpacing: number,\n) => {\n let amount0 = 0n;\n let amount1 = 0n;\n\n const sqrtRatioX96 = TickMath.getSqrtRatioAtTick(currentTick);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n if (currentTick < tickLower) {\n const delta0 = SqrtPriceMath.getAmount0Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(delta0.toString());\n } else if (currentTick >= tickUpper) {\n const delta1 = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount1 += BigInt(delta1.toString());\n } else {\n const delta0 = SqrtPriceMath.getAmount0Delta(\n sqrtRatioX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n const delta1 = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(delta0.toString());\n amount1 += BigInt(delta1.toString());\n }\n }\n return [amount0, amount1];\n};\n","import Big from 'big.js';\n\nexport type Amount = {\n scaled: bigint;\n unscaled: Big;\n decimals: number;\n formatted: string;\n};\n\nexport const zero: Amount = {\n scaled: 0n,\n unscaled: Big(0),\n decimals: 18,\n formatted: '0',\n};\n\nexport const wrapAmount = (scaled: bigint, decimals: number): Amount => {\n const unscaled = unscaleAmount(scaled, decimals);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals, formatted};\n};\n\nexport const wrapAmountUnscaled = (\n unscaled: Big | number | string,\n decimals: number,\n): Amount => {\n unscaled = Big(unscaled);\n const scaled = scaleAmount(unscaled, decimals);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals, formatted};\n};\n\nexport const wrapPrice = (\n scaled: bigint,\n decimals0: number,\n decimals1: number,\n): Amount => {\n const unscaled = unscalePrice(scaled, decimals0, decimals1);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals: 36 + decimals1 - decimals0, formatted};\n};\n\nexport const wrapPriceUnscaled = (\n unscaled: Big | number | string,\n decimals0: number,\n decimals1: number,\n): Amount => {\n unscaled = Big(unscaled);\n const scaled = scalePrice(unscaled, decimals0, decimals1);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals: 36 + decimals1 - decimals0, formatted};\n};\n\nexport const unscaleAmount = (scaled: bigint, decimals: number) => {\n return new Big(scaled.toString()).div(new Big(10).pow(decimals));\n};\n\nexport const scaleAmount = (\n unscaled: Big | number | string,\n decimals: number,\n) => {\n return BigInt(\n Big(unscaled).mul(new Big(10).pow(decimals)).round().toFixed(0),\n );\n};\n\nexport const unscalePrice = (\n scaled: bigint,\n decimals0: number,\n decimals1: number,\n precision = 18,\n) => {\n return new Big(scaled.toString())\n .mul(new Big(10).pow(decimals0))\n .div(new Big(10).pow(decimals1))\n .div(new Big(10).pow(precision));\n};\n\nexport const scalePrice = (\n unscaled: Big | number | string,\n decimals0: number,\n decimals1: number,\n precision = 18,\n) => {\n return BigInt(\n Big(unscaled)\n .mul(new Big(10).pow(precision))\n .mul(new Big(10).pow(decimals1))\n .div(new Big(10).pow(decimals0))\n .round()\n .toFixed(0),\n );\n};\n\nexport const formatAmount = (value?: Big | number | string) => {\n if (value === undefined) return '-';\n // return value < 1 ? value.toPrecision(2) : value.toFixed(2);\n return formatCondensed(Big(value).toFixed(100));\n};\n\nexport const formatVagueAmount = (value: number | bigint) => {\n value = Number(value);\n if (value === 0) return '0';\n\n const formatted = value.toExponential(2);\n return formatted.replace(/\\.?0+e/, 'e').replace(/e\\+/, 'e');\n};\n\nexport const formatCondensed = (\n input: string | number,\n decimals = 2,\n): string => {\n const str = (typeof input === 'number' ? input.toFixed(20) : input)\n .replace(/(\\.\\d*?)0+$/, '$1')\n .replace(/\\.$/, '');\n\n const [whole, decimal] = str.split('.');\n\n const formattedWhole = whole.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n if (!decimal) return formattedWhole;\n\n const leadingZeroMatch = decimal.match(/^(0{3,})/);\n\n if (leadingZeroMatch) {\n const zeroCount = leadingZeroMatch[1].length;\n const subscript = toSubscript(zeroCount.toString());\n const remaining = decimal.slice(zeroCount);\n\n const twoDigits = remaining.slice(0, decimals);\n return `${formattedWhole}.0${subscript}${twoDigits}`;\n } else {\n // No subscript needed, find first 2 significant digits\n const nonZeroStart = decimal.search(/[1-9]/); // Find first non-zero digit\n\n if (nonZeroStart === -1) {\n return formattedWhole; // All zeros\n }\n const significantPart = decimal.slice(nonZeroStart);\n const twoDigits = significantPart.slice(0, decimals);\n const leadingZeros = decimal.slice(0, nonZeroStart);\n\n return `${formattedWhole}.${leadingZeros}${twoDigits}`;\n }\n};\n\nconst toSubscript = (input: string) => {\n return input.replace(/[0-9]/g, m => '₀₁₂₃₄₅₆₇₈₉'[+m]);\n};\n\nexport const formatUSD = (value: Big | string | number): string => {\n return '$' + formatAmount(value);\n};\n"],"mappings":";;;;;;;;AA6BA,MAAa,YAAY,SAAkB,WACzC,YAAY;CAAC,KAAKA;CAAU;CAAS;CAAO,CAAC;AAE/C,MAAa,qBACX,SACA,WACmB;AACnB,QAAO,YAAY;EAAC,KAAK;EAAkB;EAAS;EAAO,CAAC;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,CAEQ,MAAM,IAAI;CAEvC,MAAM,iBAAiB,MAAM,QAAQ,yBAAyB,IAAI;AAClE,KAAI,CAAC,QAAS,QAAO;CAErB,MAAM,mBAAmB,QAAQ,MAAM,WAAW;AAElD,KAAI,kBAAkB;EACpB,MAAM,YAAY,iBAAiB,GAAG;AAKtC,SAAO,GAAG,eAAe,IAJP,YAAY,UAAU,UAAU,CAAC,GACjC,QAAQ,MAAM,UAAU,CAEd,MAAM,GAAG,SAAS;QAEzC;EAEL,MAAM,eAAe,QAAQ,OAAO,QAAQ;AAE5C,MAAI,iBAAiB,GACnB,QAAO;EAGT,MAAM,YADkB,QAAQ,MAAM,aAAa,CACjB,MAAM,GAAG,SAAS;AAGpD,SAAO,GAAG,eAAe,GAFJ,QAAQ,MAAM,GAAG,aAAa,GAER;;;AAI/C,MAAM,eAAe,UAAkB;AACrC,QAAO,MAAM,QAAQ,WAAU,MAAK,aAAa,CAAC,GAAG;;AAGvD,MAAa,aAAa,UAAyC;AACjE,QAAO,MAAM,aAAa,MAAM"}
1
+ {"version":3,"file":"numberUtils-BVUp0GfC.js","names":["erc20Abi","timelockLenses: Record<number, Address>","uniswapMathLenses: Record<number, Address>","zero: Amount"],"sources":["../src/lib/contracts.ts","../src/lib/liquidityUtils.ts","../src/lib/numberUtils.ts"],"sourcesContent":["import type {Address, Client, PublicClient, GetContractReturnType} from 'viem';\nimport {getContract} from 'viem';\nimport {monadTestnet} from 'viem/chains';\n\nimport {erc20Abi} from '~/abis/erc20';\nimport {lensAbi} from '~/abis/lens';\nimport {uniswapMathLensAbi} from '~/abis/uniswapMathLens';\nimport {optionsMarketAbi} from '~/abis/optionsMarket';\n\nexport type TimelockMarket = GetContractReturnType<\n typeof optionsMarketAbi,\n Client,\n Address\n>;\nexport type TimelockLens = GetContractReturnType<\n typeof lensAbi,\n Client,\n Address\n>;\nexport type UniswapMathLens = GetContractReturnType<\n typeof uniswapMathLensAbi,\n Client,\n Address\n>;\n\nexport type TimelockMarketData = Awaited<\n ReturnType<TimelockLens['read']['getMarketData']>\n> & {address: Address};\n\nexport const getErc20 = (address: Address, client: Client) =>\n getContract({abi: erc20Abi, address, client});\n\nexport const getTimelockMarket = (\n address: Address,\n client: Client,\n): TimelockMarket => {\n return getContract({abi: optionsMarketAbi, address, client});\n};\n\nexport const getUniswapMathLens = (client: Client | PublicClient) =>\n getContract({\n abi: uniswapMathLensAbi,\n address: uniswapMathLenses[client.chain!.id],\n client,\n });\n\nexport const getTimelockLens = (client: Client | PublicClient) =>\n getContract({\n abi: lensAbi,\n address: timelockLenses[client.chain!.id],\n client,\n });\n\nexport const timelockLenses: Record<number, Address> = {\n [monadTestnet.id]: '0xa1461178F613d5d3550191FA9E1730B6e0d98593',\n};\nexport const uniswapMathLenses: Record<number, Address> = {\n [monadTestnet.id]: '0x4C8375D1F6D5F452e92e211C1D3E7a44F78dFc95',\n};\n","import {SqrtPriceMath, TickMath} from '@uniswap/v3-sdk';\nimport Big from 'big.js';\nimport JSBI from 'jsbi';\n\nexport const PRICE_PRECISION = BigInt(1e18);\n\nexport const getPriceAtTick = (tick: number) => {\n const sqrtRatioX96 = BigInt(TickMath.getSqrtRatioAtTick(tick).toString());\n\n const priceX192 = sqrtRatioX96 * sqrtRatioX96;\n const price = (priceX192 * PRICE_PRECISION) / BigInt(2 ** 192);\n\n return price;\n};\n\nexport const getTickAtPrice = (price: bigint) => {\n const priceX192 = (price * BigInt(2 ** 192)) / PRICE_PRECISION;\n const sqrtPriceX96 = JSBI.BigInt(\n new Big(priceX192.toString()).sqrt().toFixed(0),\n );\n return TickMath.getTickAtSqrtRatio(sqrtPriceX96);\n};\n\nexport const roundTickDown = (tick: number, spacing: number) => {\n const rem = tick % spacing;\n if (rem >= 0) return tick - rem;\n return tick - rem - spacing;\n};\n\nexport const roundTickUp = (tick: number, spacing: number) => {\n const rem = tick % spacing;\n if (rem === 0) return tick;\n if (rem > 0) return tick - rem + spacing;\n return tick - rem;\n};\n\nexport const token0ToToken1 = (amount0: bigint, tick: number) => {\n const price = getPriceAtTick(tick);\n return (amount0 * price) / PRICE_PRECISION;\n};\n\nexport const token1ToToken0 = (amount1: bigint, tick: number) => {\n const price = getPriceAtTick(tick);\n return (amount1 * PRICE_PRECISION) / price;\n};\n\nexport const liquiditiesToAmount0 = (\n liquidities: bigint[],\n startTick: number,\n tickSpacing: number,\n) => {\n let amount0 = BigInt(0);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n const amount0Delta = SqrtPriceMath.getAmount0Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(amount0Delta.toString());\n }\n return amount0;\n};\n\nexport const liquiditiesToAmount1 = (\n liquidities: bigint[],\n startTick: number,\n tickSpacing: number,\n) => {\n let amount1 = BigInt(0);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n const amount1Delta = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount1 += BigInt(amount1Delta.toString());\n }\n return amount1;\n};\n\nexport const liquiditiesToAmounts = (\n liquidities: bigint[],\n startTick: number,\n currentTick: number,\n tickSpacing: number,\n) => {\n let amount0 = 0n;\n let amount1 = 0n;\n\n const sqrtRatioX96 = TickMath.getSqrtRatioAtTick(currentTick);\n\n for (let i = 0; i < liquidities.length; i++) {\n const liquidity = liquidities[i];\n if (liquidity === BigInt(0)) continue;\n\n const tickLower = startTick + tickSpacing * i;\n const tickUpper = tickLower + tickSpacing;\n\n const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower);\n const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper);\n const liquidityJSBI = JSBI.BigInt(liquidity.toString());\n\n if (currentTick < tickLower) {\n const delta0 = SqrtPriceMath.getAmount0Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(delta0.toString());\n } else if (currentTick >= tickUpper) {\n const delta1 = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n amount1 += BigInt(delta1.toString());\n } else {\n const delta0 = SqrtPriceMath.getAmount0Delta(\n sqrtRatioX96,\n sqrtRatioBX96,\n liquidityJSBI,\n false,\n );\n const delta1 = SqrtPriceMath.getAmount1Delta(\n sqrtRatioAX96,\n sqrtRatioX96,\n liquidityJSBI,\n false,\n );\n amount0 += BigInt(delta0.toString());\n amount1 += BigInt(delta1.toString());\n }\n }\n return [amount0, amount1];\n};\n","import Big from 'big.js';\n\nexport type Amount = {\n scaled: bigint;\n unscaled: Big;\n decimals: number;\n formatted: string;\n};\n\nexport const zero: Amount = {\n scaled: 0n,\n unscaled: Big(0),\n decimals: 18,\n formatted: '0',\n};\n\nexport const wrapAmount = (scaled: bigint, decimals: number): Amount => {\n const unscaled = unscaleAmount(scaled, decimals);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals, formatted};\n};\n\nexport const wrapAmountUnscaled = (\n unscaled: Big | number | string,\n decimals: number,\n): Amount => {\n unscaled = Big(unscaled);\n const scaled = scaleAmount(unscaled, decimals);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals, formatted};\n};\n\nexport const wrapPrice = (\n scaled: bigint,\n decimals0: number,\n decimals1: number,\n): Amount => {\n const unscaled = unscalePrice(scaled, decimals0, decimals1);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals: 36 + decimals1 - decimals0, formatted};\n};\n\nexport const wrapPriceUnscaled = (\n unscaled: Big | number | string,\n decimals0: number,\n decimals1: number,\n): Amount => {\n unscaled = Big(unscaled);\n const scaled = scalePrice(unscaled, decimals0, decimals1);\n const formatted = formatAmount(unscaled);\n return {scaled, unscaled, decimals: 36 + decimals1 - decimals0, formatted};\n};\n\nexport const unscaleAmount = (scaled: bigint, decimals: number) => {\n return new Big(scaled.toString()).div(new Big(10).pow(decimals));\n};\n\nexport const scaleAmount = (\n unscaled: Big | number | string,\n decimals: number,\n) => {\n return BigInt(\n Big(unscaled).mul(new Big(10).pow(decimals)).round().toFixed(0),\n );\n};\n\nexport const unscalePrice = (\n scaled: bigint,\n decimals0: number,\n decimals1: number,\n precision = 18,\n) => {\n return new Big(scaled.toString())\n .mul(new Big(10).pow(decimals0))\n .div(new Big(10).pow(decimals1))\n .div(new Big(10).pow(precision));\n};\n\nexport const scalePrice = (\n unscaled: Big | number | string,\n decimals0: number,\n decimals1: number,\n precision = 18,\n) => {\n return BigInt(\n Big(unscaled)\n .mul(new Big(10).pow(precision))\n .mul(new Big(10).pow(decimals1))\n .div(new Big(10).pow(decimals0))\n .round()\n .toFixed(0),\n );\n};\n\nexport const formatAmount = (value?: Big | number | string) => {\n if (value === undefined) return '-';\n // return value < 1 ? value.toPrecision(2) : value.toFixed(2);\n return formatCondensed(Big(value).toFixed(100));\n};\n\nexport const formatVagueAmount = (value: number | bigint) => {\n value = Number(value);\n if (value === 0) return '0';\n\n const formatted = value.toExponential(2);\n return formatted.replace(/\\.?0+e/, 'e').replace(/e\\+/, 'e');\n};\n\nexport const formatCondensed = (\n input: string | number,\n decimals = 2,\n): string => {\n const str = (typeof input === 'number' ? input.toFixed(20) : input)\n .replace(/(\\.\\d*?)0+$/, '$1')\n .replace(/\\.$/, '');\n\n const [whole, decimal] = str.split('.');\n\n const formattedWhole = whole.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n if (!decimal) return formattedWhole;\n\n const leadingZeroMatch = decimal.match(/^(0{3,})/);\n\n if (leadingZeroMatch) {\n const zeroCount = leadingZeroMatch[1].length;\n const subscript = toSubscript(zeroCount.toString());\n const remaining = decimal.slice(zeroCount);\n\n const twoDigits = remaining.slice(0, decimals);\n return `${formattedWhole}.0${subscript}${twoDigits}`;\n } else {\n // No subscript needed, find first 2 significant digits\n const nonZeroStart = decimal.search(/[1-9]/); // Find first non-zero digit\n\n if (nonZeroStart === -1) {\n return formattedWhole; // All zeros\n }\n const significantPart = decimal.slice(nonZeroStart);\n const twoDigits = significantPart.slice(0, decimals);\n const leadingZeros = decimal.slice(0, nonZeroStart);\n\n return `${formattedWhole}.${leadingZeros}${twoDigits}`;\n }\n};\n\nconst toSubscript = (input: string) => {\n return input.replace(/[0-9]/g, m => '₀₁₂₃₄₅₆₇₈₉'[+m]);\n};\n\nexport const formatUSD = (value: Big | string | number): string => {\n return '$' + formatAmount(value);\n};\n"],"mappings":";;;;;;;;AA6BA,MAAa,YAAY,SAAkB,WACzC,YAAY;CAAC,KAAKA;CAAU;CAAS;CAAO,CAAC;AAE/C,MAAa,qBACX,SACA,WACmB;AACnB,QAAO,YAAY;EAAC,KAAK;EAAkB;EAAS;EAAO,CAAC;;AAG9D,MAAa,sBAAsB,WACjC,YAAY;CACV,KAAK;CACL,SAAS,kBAAkB,OAAO,MAAO;CACzC;CACD,CAAC;AAEJ,MAAa,mBAAmB,WAC9B,YAAY;CACV,KAAK;CACL,SAAS,eAAe,OAAO,MAAO;CACtC;CACD,CAAC;AAEJ,MAAaC,iBAA0C,GACpD,aAAa,KAAK,8CACpB;AACD,MAAaC,oBAA6C,GACvD,aAAa,KAAK,8CACpB;;;;ACtDD,MAAa,kBAAkB,OAAO,kBAAK;AAE3C,MAAa,kBAAkB,SAAiB;CAC9C,MAAM,e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iB,GACnB,QAAO;EAGT,MAAM,YADkB,QAAQ,MAAM,aAAa,CACjB,MAAM,GAAG,SAAS;AAGpD,SAAO,GAAG,eAAe,GAFJ,QAAQ,MAAM,GAAG,aAAa,GAER;;;AAI/C,MAAM,eAAe,UAAkB;AACrC,QAAO,MAAM,QAAQ,WAAU,MAAK,aAAa,CAAC,GAAG;;AAGvD,MAAa,aAAa,UAAyC;AACjE,QAAO,MAAM,aAAa,MAAM"}
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const require_optionsMarket = require('./optionsMarket-D192aXEZ.cjs');
24
+ const require_optionsMarket = require('./optionsMarket-BpL6x4be.cjs');
25
25
  let viem = require("viem");
26
26
  viem = __toESM(viem);
27
27
  let viem_chains = require("viem/chains");
@@ -56,7 +56,7 @@ const getTimelockLens = (client) => (0, viem.getContract)({
56
56
  address: timelockLenses[client.chain.id],
57
57
  client
58
58
  });
59
- const timelockLenses = { [viem_chains.monadTestnet.id]: "0xe5e1Df4B781D4162702F6a28a38a0f441A86f9Fa" };
59
+ const timelockLenses = { [viem_chains.monadTestnet.id]: "0xa1461178F613d5d3550191FA9E1730B6e0d98593" };
60
60
  const uniswapMathLenses = { [viem_chains.monadTestnet.id]: "0x4C8375D1F6D5F452e92e211C1D3E7a44F78dFc95" };
61
61
 
62
62
  //#endregion
@@ -420,4 +420,4 @@ Object.defineProperty(exports, 'zero', {
420
420
  return zero;
421
421
  }
422
422
  });
423
- //# sourceMappingURL=numberUtils-CmVB4kX7.cjs.map
423
+ //# sourceMappingURL=numberUtils-BxQ4RnW9.cjs.map