timelock-sdk 0.0.20 → 0.0.22

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 CHANGED
@@ -1,4 +1,4 @@
1
- const require_optionsMarket = require('./optionsMarket-BsK9z8z4.cjs');
1
+ const require_optionsMarket = require('./optionsMarket-Br-bjuSA.cjs');
2
2
  const require_uniswapV3Pool = require('./uniswapV3Pool-D9Vqrkmz.cjs');
3
3
 
4
4
  exports.erc20Abi = require_optionsMarket.erc20Abi;
package/dist/abis.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-CsZDhwII.cjs";
1
+ import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-B1MIL2yT.cjs";
2
2
 
3
3
  //#region src/abis/erc20.d.ts
4
4
  declare const erc20Abi: readonly [{
package/dist/abis.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-SWLgAikn.js";
1
+ import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-MrB_VfJB.js";
2
2
 
3
3
  //#region src/abis/erc20.d.ts
4
4
  declare const erc20Abi: readonly [{
package/dist/abis.js CHANGED
@@ -1,4 +1,4 @@
1
- import { erc20Abi, lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./optionsMarket-BsJTpwtl.js";
1
+ import { erc20Abi, lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./optionsMarket-DyBxHplR.js";
2
2
  import { singleOwnerVaultAbi, uniswapV3PoolAbi } from "./uniswapV3Pool-Copswrde.js";
3
3
 
4
4
  export { erc20Abi, lensAbi, optionsMarketAbi, singleOwnerVaultAbi, uniswapMathLensAbi, uniswapV3PoolAbi };
package/dist/client.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_numberUtils = require('./numberUtils-B7BwWYfb.cjs');
5
- const require_optionsMarket = require('./optionsMarket-BsK9z8z4.cjs');
4
+ const require_numberUtils = require('./numberUtils-DOUvJfQD.cjs');
5
+ const require_optionsMarket = require('./optionsMarket-Br-bjuSA.cjs');
6
6
  const require_uniswapV3Pool = require('./uniswapV3Pool-D9Vqrkmz.cjs');
7
7
  let viem = require("viem");
8
8
  viem = require_numberUtils.__toESM(viem);
@@ -166,11 +166,14 @@ const useCurrentMarket = () => {
166
166
  const useTimelockConfig = () => {
167
167
  const context = (0, react.useContext)(TimelockMarketContext);
168
168
  if (context === void 0) throw new Error("useConfig must be used within a TimelockMarketProvider");
169
+ const graphqlClient = (0, react.useMemo)(() => {
170
+ if (context.envioGraphqlUrl) return getSdk(new graphql_request.GraphQLClient(context.envioGraphqlUrl));
171
+ }, [context.envioGraphqlUrl]);
169
172
  return {
170
173
  lensAddr: context.lensAddr,
171
174
  uniswapMathLensAddr: context.uniswapMathLensAddr,
172
175
  envioGraphqlUrl: context.envioGraphqlUrl,
173
- graphqlClient: context.envioGraphqlUrl ? getSdk(new graphql_request.GraphQLClient(context.envioGraphqlUrl)) : void 0
176
+ graphqlClient
174
177
  };
175
178
  };
176
179
 
@@ -743,6 +746,7 @@ const useVaultTVL = (vaultAddr) => {
743
746
  totalAmount1,
744
747
  borrowedAmount0,
745
748
  borrowedAmount1,
749
+ blocksCount: data === null || data === void 0 ? void 0 : data[6],
746
750
  refetch
747
751
  };
748
752
  };