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/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-Dug-JH14.d.cts → client-BSOaCDXS.d.ts} +4185 -1187
- package/dist/{client-Czhi5lSG.d.ts → client-HrsZMFVQ.d.cts} +3979 -981
- package/dist/client.cjs +19 -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 +19 -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,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;
|