timelock-sdk 0.0.154 → 0.0.155

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,22 @@ 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, ...rest } = (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 {
2197
+ data: data || {},
2198
+ ...rest
2199
+ };
2200
+ };
2201
+
2186
2202
  //#endregion
2187
2203
  exports.TimelockProvider = TimelockProvider;
2188
2204
  exports.batchGetAmountsFromLiquidity = batchGetAmountsFromLiquidity;
@@ -2198,6 +2214,7 @@ exports.useCurrentPrice = useCurrentPrice;
2198
2214
  exports.useCurrentTick = useCurrentTick;
2199
2215
  exports.useExerciseOption = useExerciseOption;
2200
2216
  exports.useExtendOption = useExtendOption;
2217
+ exports.useFeeRates = useFeeRates;
2201
2218
  exports.useGuardianGlobalState = useGuardianGlobalState;
2202
2219
  exports.useLens = useLens;
2203
2220
  exports.useLiquidityBlocks = useLiquidityBlocks;