timelock-sdk 0.0.154 → 0.0.156

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/client.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_optionUtils = require('./optionUtils-CbB06NF6.cjs');
5
- const require_optionsMarket = require('./optionsMarket-BXnAfG3Q.cjs');
4
+ const require_optionUtils = require('./optionUtils-Daz9iARj.cjs');
5
+ const require_optionsMarket = require('./optionsMarket-T7r7iDKa.cjs');
6
6
  const require_singleOwnerVault = require('./singleOwnerVault-GCpQV7pN.cjs');
7
7
  let viem = require("viem");
8
8
  let react = require("react");
@@ -2183,6 +2183,19 @@ const usePauseMarketTrading = ({ marketAddr }) => {
2183
2183
  };
2184
2184
  };
2185
2185
 
2186
+ //#endregion
2187
+ //#region src/hooks/fees/useFeeRates.ts
2188
+ const useFeeRates = (feeStrategy) => {
2189
+ const { timelockLens } = useLens();
2190
+ const { data } = (0, wagmi.useReadContract)({
2191
+ address: timelockLens === null || timelockLens === void 0 ? void 0 : timelockLens.address,
2192
+ abi: require_optionsMarket.lensAbi,
2193
+ args: feeStrategy ? [feeStrategy] : void 0,
2194
+ functionName: "getFeeRates"
2195
+ });
2196
+ return data || {};
2197
+ };
2198
+
2186
2199
  //#endregion
2187
2200
  exports.TimelockProvider = TimelockProvider;
2188
2201
  exports.batchGetAmountsFromLiquidity = batchGetAmountsFromLiquidity;
@@ -2198,6 +2211,7 @@ exports.useCurrentPrice = useCurrentPrice;
2198
2211
  exports.useCurrentTick = useCurrentTick;
2199
2212
  exports.useExerciseOption = useExerciseOption;
2200
2213
  exports.useExtendOption = useExtendOption;
2214
+ exports.useFeeRates = useFeeRates;
2201
2215
  exports.useGuardianGlobalState = useGuardianGlobalState;
2202
2216
  exports.useLens = useLens;
2203
2217
  exports.useLiquidityBlocks = useLiquidityBlocks;