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