timelock-sdk 0.0.145 → 0.0.147

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-CFucfVf-.cjs');
5
- const require_optionsMarket = require('./optionsMarket-ohPoVcdm.cjs');
4
+ const require_optionUtils = require('./optionUtils-BDPUmzhu.cjs');
5
+ const require_optionsMarket = require('./optionsMarket-DvxxArTL.cjs');
6
6
  const require_singleOwnerVault = require('./singleOwnerVault-GCpQV7pN.cjs');
7
7
  let viem = require("viem");
8
8
  let react = require("react");
@@ -13,7 +13,6 @@ graphql_tag = require_optionUtils.__toESM(graphql_tag);
13
13
  let viem_actions = require("viem/actions");
14
14
  let wagmi = require("wagmi");
15
15
  let __tanstack_react_query = require("@tanstack/react-query");
16
- require("zod/v4/locales");
17
16
  let zod = require("zod");
18
17
 
19
18
  //#region src/generated/graphql.ts
@@ -589,13 +588,13 @@ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
589
588
  //#endregion
590
589
  //#region src/hooks/options/useExerciseOption.ts
591
590
  const useExerciseOption = (marketAddr) => {
592
- const { vault, poolKey } = useMarketData(marketAddr);
591
+ const { vault, poolManager, poolKey } = useMarketData(marketAddr);
593
592
  const { timelockLens } = useLens();
594
593
  const queryClient = (0, __tanstack_react_query.useQueryClient)();
595
594
  const client = (0, wagmi.useClient)();
596
595
  const { address } = (0, wagmi.useConnection)();
597
596
  const { writeContractAsync } = (0, wagmi.useWriteContract)();
598
- const { sqrtPriceX96 } = useCurrentPrice();
597
+ const { sqrtPriceX96 } = useCurrentPrice(poolManager, poolKey);
599
598
  const exerciseOption = async ({ option, liquidities }) => {
600
599
  if (!client || !address) throw new Error("Wallet not connected");
601
600
  if (!marketAddr) throw new Error("Market address not available");
@@ -772,6 +771,7 @@ const useMintOption = (marketAddr) => {
772
771
  strikeTick,
773
772
  duration,
774
773
  viem.maxUint256,
774
+ viem.maxUint256,
775
775
  await timelockLens.read.getRefTick([vault, strikeTick])
776
776
  ]
777
777
  });