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/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-Czhi5lSG.d.ts → client-DfG9023x.d.ts} +3271 -526
- package/dist/{client-Dug-JH14.d.cts → client-L8_H45kU.d.cts} +3271 -526
- package/dist/client.cjs +16 -2
- 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 +16 -3
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-mVijJiqG.js → optionUtils-B7EA45zY.js} +3 -3
- package/dist/{optionUtils-mVijJiqG.js.map → optionUtils-B7EA45zY.js.map} +1 -1
- package/dist/{optionUtils-CbB06NF6.cjs → optionUtils-Daz9iARj.cjs} +3 -3
- package/dist/{optionUtils-CbB06NF6.cjs.map → optionUtils-Daz9iARj.cjs.map} +1 -1
- package/dist/{optionsMarket-Bs6Pf2pL.js → optionsMarket-CT26uUTa.js} +38 -6
- package/dist/optionsMarket-CT26uUTa.js.map +1 -0
- package/dist/{optionsMarket-BXnAfG3Q.cjs → optionsMarket-T7r7iDKa.cjs} +38 -6
- package/dist/optionsMarket-T7r7iDKa.cjs.map +1 -0
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/dist/{uniswapMathLens-y9EJ9LnG.d.cts → uniswapMathLens-DNbMIHSs.d.ts} +32 -5
- package/dist/{uniswapMathLens-BeaDNApk.d.ts → uniswapMathLens-DT3TTcQa.d.cts} +32 -5
- package/package.json +1 -1
- package/dist/optionsMarket-BXnAfG3Q.cjs.map +0 -1
- package/dist/optionsMarket-Bs6Pf2pL.js.map +0 -1
package/dist/client.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_optionUtils = require('./optionUtils-
|
|
5
|
-
const require_optionsMarket = require('./optionsMarket-
|
|
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;
|