timelock-sdk 0.0.173 → 0.0.175

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
@@ -449,7 +449,7 @@ const useLens = () => {
449
449
  };
450
450
 
451
451
  //#endregion
452
- //#region src/hooks/options/useMarketData.ts
452
+ //#region src/hooks/market/useMarketData.ts
453
453
  const useMarketData = (marketAddr) => {
454
454
  const { timelockLens } = useLens();
455
455
  const { data } = (0, wagmi.useReadContract)({
@@ -462,7 +462,7 @@ const useMarketData = (marketAddr) => {
462
462
  };
463
463
 
464
464
  //#endregion
465
- //#region src/hooks/options/useMarketState.ts
465
+ //#region src/hooks/market/useMarketState.ts
466
466
  const useMarketState = (marketAddr) => {
467
467
  const { timelockLens } = useLens();
468
468
  return (0, wagmi.useReadContract)({
@@ -474,7 +474,7 @@ const useMarketState = (marketAddr) => {
474
474
  };
475
475
 
476
476
  //#endregion
477
- //#region src/hooks/options/useMarketVolume.ts
477
+ //#region src/hooks/market/useMarketVolume.ts
478
478
  const useMarketVolume = (marketAddr) => {
479
479
  const { graphqlClient } = useTimelockConfig();
480
480
  return (0, __tanstack_react_query.useQuery)({
@@ -1338,7 +1338,7 @@ const useBurnLiquidity = (vaultAddr) => {
1338
1338
  const client = (0, wagmi.useClient)();
1339
1339
  const { timelockLens } = useLens();
1340
1340
  const { poolManager, poolKey } = useVaultData(vaultAddr);
1341
- const currentTick = useCurrentTick(poolManager, poolKey);
1341
+ const { data: { currentTick } = {} } = useCurrentTick(poolManager, poolKey);
1342
1342
  const { writeContractAsync, data: hash, isPending, error } = (0, wagmi.useWriteContract)();
1343
1343
  const { isLoading: isConfirming, isSuccess } = (0, wagmi.useWaitForTransactionReceipt)({ hash });
1344
1344
  const burn = async (tickLower, tickUpper, liquidity) => {
@@ -1360,7 +1360,7 @@ const useBurnLiquidity = (vaultAddr) => {
1360
1360
  };
1361
1361
  const burnMultiple = async (positions) => {
1362
1362
  if (!client) throw new Error("Wallet not connected");
1363
- if (!currentTick.exact) throw new Error("Current tick not available");
1363
+ if (!currentTick) throw new Error("Current tick not available");
1364
1364
  if (positions.length === 0) throw new Error("No positions to burn");
1365
1365
  if (!timelockLens || !vaultAddr) throw new Error("Vault/lens not available");
1366
1366
  if (positions.length === 1) await burn(positions[0].tickLower, positions[0].tickUpper, positions[0].liquidity);
@@ -1438,7 +1438,7 @@ const useMintLiquidity = (vaultAddr) => {
1438
1438
  const client = (0, wagmi.useClient)();
1439
1439
  const { poolManager, poolKey } = useVaultData(vaultAddr);
1440
1440
  const { timelockLens } = useLens();
1441
- const { exact: currentTick } = useCurrentTick(poolManager, poolKey);
1441
+ const { data: { currentTick } = {} } = useCurrentTick(poolManager, poolKey);
1442
1442
  const { token0, token1 } = usePoolData(poolManager, poolKey);
1443
1443
  const { askForApproval } = useApproval();
1444
1444
  const { writeContractAsync } = (0, wagmi.useWriteContract)();
@@ -1528,7 +1528,7 @@ const useGuardianGlobalState = (guardianAddr) => {
1528
1528
  //#region src/hooks/guardian/usePauseGlobalTrading.ts
1529
1529
  const usePauseGlobalTrading = (marketAddr) => {
1530
1530
  const { guardian } = useMarketData(marketAddr);
1531
- const { data: { globalBurnPaused, globalMintPaused }, refetch } = useGuardianGlobalState(guardian);
1531
+ const { data: { globalBurnPaused, globalMintPaused } = {}, refetch } = useGuardianGlobalState(guardian);
1532
1532
  const publicClient = (0, wagmi.usePublicClient)();
1533
1533
  const { writeContractAsync, ...rest } = (0, wagmi.useWriteContract)();
1534
1534
  const pauseGlobalTrading = async (paused) => {