timelock-sdk 0.0.157 → 0.0.160

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 (31) hide show
  1. package/dist/abis.cjs +1 -1
  2. package/dist/abis.d.cts +1 -1
  3. package/dist/abis.d.ts +1 -1
  4. package/dist/abis.js +1 -1
  5. package/dist/{client-CSYKjcyD.d.cts → client-DmXuKRhM.d.cts} +12987 -3020
  6. package/dist/{client-cNTMuD8y.d.ts → client-Dx6YoDji.d.ts} +12950 -2983
  7. package/dist/client.cjs +688 -169
  8. package/dist/client.cjs.map +1 -1
  9. package/dist/client.d.cts +3 -3
  10. package/dist/client.d.ts +3 -3
  11. package/dist/client.js +684 -171
  12. package/dist/client.js.map +1 -1
  13. package/dist/{optionUtils-Daz9iARj.cjs → optionUtils-B-TKN7Ni.cjs} +10 -3
  14. package/dist/optionUtils-B-TKN7Ni.cjs.map +1 -0
  15. package/dist/{optionUtils-B7EA45zY.js → optionUtils-CL-MSoFS.js} +5 -4
  16. package/dist/optionUtils-CL-MSoFS.js.map +1 -0
  17. package/dist/{optionsMarket-CT26uUTa.js → optionsMarket-BbXpQnpV.js} +193 -148
  18. package/dist/optionsMarket-BbXpQnpV.js.map +1 -0
  19. package/dist/{optionsMarket-T7r7iDKa.cjs → optionsMarket-DtjLm46g.cjs} +193 -148
  20. package/dist/optionsMarket-DtjLm46g.cjs.map +1 -0
  21. package/dist/package.cjs +3 -2
  22. package/dist/package.d.cts +3 -3
  23. package/dist/package.d.ts +3 -3
  24. package/dist/package.js +3 -3
  25. package/dist/{uniswapMathLens-DNbMIHSs.d.ts → uniswapMathLens-BoQxBJoY.d.cts} +95 -51
  26. package/dist/{uniswapMathLens-DT3TTcQa.d.cts → uniswapMathLens-Ds8UmCMU.d.ts} +95 -51
  27. package/package.json +1 -1
  28. package/dist/optionUtils-B7EA45zY.js.map +0 -1
  29. package/dist/optionUtils-Daz9iARj.cjs.map +0 -1
  30. package/dist/optionsMarket-CT26uUTa.js.map +0 -1
  31. package/dist/optionsMarket-T7r7iDKa.cjs.map +0 -1
@@ -311,70 +311,58 @@ const lensAbi = [
311
311
  internalType: "uint256"
312
312
  }
313
313
  ],
314
- outputs: [
315
- {
316
- name: "expiredOptions",
317
- type: "tuple[]",
318
- internalType: "struct TimelockLens.OptionData[]",
319
- components: [
320
- {
321
- name: "optionId",
322
- type: "uint256",
323
- internalType: "uint256"
324
- },
325
- {
326
- name: "owner",
327
- type: "address",
328
- internalType: "address"
329
- },
330
- {
331
- name: "optionType",
332
- type: "uint8",
333
- internalType: "uint8"
334
- },
335
- {
336
- name: "startTick",
337
- type: "int24",
338
- internalType: "int24"
339
- },
340
- {
341
- name: "strikeTick",
342
- type: "int24",
343
- internalType: "int24"
344
- },
345
- {
346
- name: "strikePrice",
347
- type: "uint256",
348
- internalType: "uint256"
349
- },
350
- {
351
- name: "positionSize",
352
- type: "uint256",
353
- internalType: "uint256"
354
- },
355
- {
356
- name: "expiresAt",
357
- type: "uint32",
358
- internalType: "uint32"
359
- },
360
- {
361
- name: "liquidities",
362
- type: "uint128[]",
363
- internalType: "uint128[]"
364
- }
365
- ]
366
- },
367
- {
368
- name: "",
369
- type: "uint256",
370
- internalType: "uint256"
371
- },
372
- {
373
- name: "",
374
- type: "bool",
375
- internalType: "bool"
376
- }
377
- ],
314
+ outputs: [{
315
+ name: "expiredOptions",
316
+ type: "tuple[]",
317
+ internalType: "struct TimelockLens.OptionData[]",
318
+ components: [
319
+ {
320
+ name: "optionId",
321
+ type: "uint256",
322
+ internalType: "uint256"
323
+ },
324
+ {
325
+ name: "owner",
326
+ type: "address",
327
+ internalType: "address"
328
+ },
329
+ {
330
+ name: "optionType",
331
+ type: "uint8",
332
+ internalType: "uint8"
333
+ },
334
+ {
335
+ name: "startTick",
336
+ type: "int24",
337
+ internalType: "int24"
338
+ },
339
+ {
340
+ name: "strikeTick",
341
+ type: "int24",
342
+ internalType: "int24"
343
+ },
344
+ {
345
+ name: "strikePrice",
346
+ type: "uint256",
347
+ internalType: "uint256"
348
+ },
349
+ {
350
+ name: "positionSize",
351
+ type: "uint256",
352
+ internalType: "uint256"
353
+ },
354
+ {
355
+ name: "expiresAt",
356
+ type: "uint32",
357
+ internalType: "uint32"
358
+ },
359
+ {
360
+ name: "liquidities",
361
+ type: "uint128[]",
362
+ internalType: "uint128[]"
363
+ }
364
+ ]
365
+ }],
378
366
  stateMutability: "view"
379
367
  },
380
368
  {
@@ -409,6 +397,11 @@ const lensAbi = [
409
397
  name: "minBaseFee",
410
398
  type: "uint128",
411
399
  internalType: "uint128"
400
+ },
401
+ {
402
+ name: "feeRecipient",
403
+ type: "address",
404
+ internalType: "address"
412
405
  }
413
406
  ]
414
407
  }],
@@ -525,9 +518,9 @@ const lensAbi = [
525
518
  internalType: "struct TimelockLens.TimelockMarketData",
526
519
  components: [
527
520
  {
528
- name: "optionAssetIsToken0",
529
- type: "bool",
530
- internalType: "bool"
521
+ name: "guardian",
522
+ type: "address",
523
+ internalType: "contract TimelockGuardian"
531
524
  },
532
525
  {
533
526
  name: "vault",
@@ -571,6 +564,11 @@ const lensAbi = [
571
564
  }
572
565
  ]
573
566
  },
567
+ {
568
+ name: "optionAssetIsToken0",
569
+ type: "bool",
570
+ internalType: "bool"
571
+ },
574
572
  {
575
573
  name: "optionAsset",
576
574
  type: "address",
@@ -610,17 +608,29 @@ const lensAbi = [
610
608
  name: "payoutAssetName",
611
609
  type: "string",
612
610
  internalType: "string"
613
- },
611
+ }
612
+ ]
613
+ }],
614
+ stateMutability: "view"
615
+ },
616
+ {
617
+ type: "function",
618
+ name: "getMarketState",
619
+ inputs: [{
620
+ name: "market",
621
+ type: "address",
622
+ internalType: "contract TimelockOptionsMarket"
623
+ }],
624
+ outputs: [{
625
+ name: "marketState",
626
+ type: "tuple",
627
+ internalType: "struct TimelockLens.TimelockMarketState",
628
+ components: [
614
629
  {
615
630
  name: "optionsCount",
616
631
  type: "uint256",
617
632
  internalType: "uint256"
618
633
  },
619
- {
620
- name: "guardian",
621
- type: "address",
622
- internalType: "address"
623
- },
624
634
  {
625
635
  name: "optionPricing",
626
636
  type: "address",
@@ -629,7 +639,7 @@ const lensAbi = [
629
639
  {
630
640
  name: "feeStrategy",
631
641
  type: "address",
632
- internalType: "address"
642
+ internalType: "contract IFeeStrategy"
633
643
  },
634
644
  {
635
645
  name: "owner",
@@ -814,6 +824,48 @@ const lensAbi = [
814
824
  }],
815
825
  stateMutability: "view"
816
826
  },
827
+ {
828
+ type: "function",
829
+ name: "getOptionPricingParams",
830
+ inputs: [{
831
+ name: "pricing",
832
+ type: "address",
833
+ internalType: "contract OptionPricing"
834
+ }],
835
+ outputs: [{
836
+ name: "params",
837
+ type: "tuple",
838
+ internalType: "struct TimelockLens.OptionPricingParams",
839
+ components: [
840
+ {
841
+ name: "logicContract",
842
+ type: "address",
843
+ internalType: "contract StatelessOptionPricing"
844
+ },
845
+ {
846
+ name: "iv",
847
+ type: "uint32",
848
+ internalType: "uint32"
849
+ },
850
+ {
851
+ name: "riskFreeRate",
852
+ type: "uint32",
853
+ internalType: "uint32"
854
+ },
855
+ {
856
+ name: "minPremiumDailyRate",
857
+ type: "uint32",
858
+ internalType: "uint32"
859
+ },
860
+ {
861
+ name: "minPremiumAmount",
862
+ type: "uint256",
863
+ internalType: "uint256"
864
+ }
865
+ ]
866
+ }],
867
+ stateMutability: "view"
868
+ },
817
869
  {
818
870
  type: "function",
819
871
  name: "getOptionsData",
@@ -997,6 +1049,30 @@ const lensAbi = [
997
1049
  }],
998
1050
  stateMutability: "view"
999
1051
  },
1052
+ {
1053
+ type: "function",
1054
+ name: "getStaticPricingParams",
1055
+ inputs: [{
1056
+ name: "pricing",
1057
+ type: "address",
1058
+ internalType: "contract StaticPerpsPricing"
1059
+ }],
1060
+ outputs: [{
1061
+ name: "params",
1062
+ type: "tuple",
1063
+ internalType: "struct TimelockLens.StaticPerpsPricingParams",
1064
+ components: [{
1065
+ name: "dailyFundingRate",
1066
+ type: "uint32",
1067
+ internalType: "uint32"
1068
+ }, {
1069
+ name: "minFundingAmount",
1070
+ type: "uint128",
1071
+ internalType: "uint128"
1072
+ }]
1073
+ }],
1074
+ stateMutability: "view"
1075
+ },
1000
1076
  {
1001
1077
  type: "function",
1002
1078
  name: "getTokenData",
@@ -2008,11 +2084,6 @@ const optionsMarketAbi = [
2008
2084
  type: "address",
2009
2085
  internalType: "contract IFeeStrategy"
2010
2086
  },
2011
- {
2012
- name: "_feeRecipient",
2013
- type: "address",
2014
- internalType: "address"
2015
- },
2016
2087
  {
2017
2088
  name: "_guardian",
2018
2089
  type: "address",
@@ -2022,21 +2093,15 @@ const optionsMarketAbi = [
2022
2093
  name: "_optionAssetIsToken0",
2023
2094
  type: "bool",
2024
2095
  internalType: "bool"
2096
+ },
2097
+ {
2098
+ name: "_owner",
2099
+ type: "address",
2100
+ internalType: "address"
2025
2101
  }
2026
2102
  ],
2027
2103
  stateMutability: "nonpayable"
2028
2104
  },
2029
- {
2030
- type: "function",
2031
- name: "DUST_THRESHOLD",
2032
- inputs: [],
2033
- outputs: [{
2034
- name: "",
2035
- type: "uint256",
2036
- internalType: "uint256"
2037
- }],
2038
- stateMutability: "view"
2039
- },
2040
2105
  {
2041
2106
  type: "function",
2042
2107
  name: "calculatePremium",
@@ -2067,15 +2132,23 @@ const optionsMarketAbi = [
2067
2132
  internalType: "uint32"
2068
2133
  }
2069
2134
  ],
2070
- outputs: [{
2071
- name: "premium",
2072
- type: "uint256",
2073
- internalType: "uint256"
2074
- }, {
2075
- name: "protocolFee",
2076
- type: "uint256",
2077
- internalType: "uint256"
2078
- }],
2135
+ outputs: [
2136
+ {
2137
+ name: "premium",
2138
+ type: "uint256",
2139
+ internalType: "uint256"
2140
+ },
2141
+ {
2142
+ name: "protocolFee",
2143
+ type: "uint256",
2144
+ internalType: "uint256"
2145
+ },
2146
+ {
2147
+ name: "feeRecipient",
2148
+ type: "address",
2149
+ internalType: "address"
2150
+ }
2151
+ ],
2079
2152
  stateMutability: "view"
2080
2153
  },
2081
2154
  {
@@ -2162,17 +2235,6 @@ const optionsMarketAbi = [
2162
2235
  }],
2163
2236
  stateMutability: "nonpayable"
2164
2237
  },
2165
- {
2166
- type: "function",
2167
- name: "feeRecipient",
2168
- inputs: [],
2169
- outputs: [{
2170
- name: "",
2171
- type: "address",
2172
- internalType: "address"
2173
- }],
2174
- stateMutability: "view"
2175
- },
2176
2238
  {
2177
2239
  type: "function",
2178
2240
  name: "feeStrategy",
@@ -2636,23 +2698,15 @@ const optionsMarketAbi = [
2636
2698
  {
2637
2699
  type: "function",
2638
2700
  name: "updateAddresses",
2639
- inputs: [
2640
- {
2641
- name: "_optionPricing",
2642
- type: "address",
2643
- internalType: "contract IOptionPricing"
2644
- },
2645
- {
2646
- name: "_feeStrategy",
2647
- type: "address",
2648
- internalType: "contract IFeeStrategy"
2649
- },
2650
- {
2651
- name: "_feeRecipient",
2652
- type: "address",
2653
- internalType: "address"
2654
- }
2655
- ],
2701
+ inputs: [{
2702
+ name: "_optionPricing",
2703
+ type: "address",
2704
+ internalType: "contract IOptionPricing"
2705
+ }, {
2706
+ name: "_feeStrategy",
2707
+ type: "address",
2708
+ internalType: "contract IFeeStrategy"
2709
+ }],
2656
2710
  outputs: [],
2657
2711
  stateMutability: "nonpayable"
2658
2712
  },
@@ -2862,26 +2916,17 @@ const optionsMarketAbi = [
2862
2916
  {
2863
2917
  type: "event",
2864
2918
  name: "UpdateAddresses",
2865
- inputs: [
2866
- {
2867
- name: "optionPricing",
2868
- type: "address",
2869
- indexed: false,
2870
- internalType: "contract IOptionPricing"
2871
- },
2872
- {
2873
- name: "feeStrategy",
2874
- type: "address",
2875
- indexed: false,
2876
- internalType: "contract IFeeStrategy"
2877
- },
2878
- {
2879
- name: "feeRecipient",
2880
- type: "address",
2881
- indexed: false,
2882
- internalType: "address"
2883
- }
2884
- ],
2919
+ inputs: [{
2920
+ name: "optionPricing",
2921
+ type: "address",
2922
+ indexed: false,
2923
+ internalType: "contract IOptionPricing"
2924
+ }, {
2925
+ name: "feeStrategy",
2926
+ type: "address",
2927
+ indexed: false,
2928
+ internalType: "contract IFeeStrategy"
2929
+ }],
2885
2930
  anonymous: false
2886
2931
  },
2887
2932
  {
@@ -3137,4 +3182,4 @@ Object.defineProperty(exports, 'uniswapMathLensAbi', {
3137
3182
  return uniswapMathLensAbi;
3138
3183
  }
3139
3184
  });
3140
- //# sourceMappingURL=optionsMarket-T7r7iDKa.cjs.map
3185
+ //# sourceMappingURL=optionsMarket-DtjLm46g.cjs.map