timelock-sdk 0.0.266 → 0.0.268

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,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- const require_graphql = require('./graphql-kf13KPwy.cjs');
3
+ const require_graphql = require('./graphql-BH0AK2SE.cjs');
4
4
  const require_stateView = require('./stateView-BXg8tiiy.cjs');
5
5
  const require_factory = require('./factory-AGrigZB6.cjs');
6
6
  let viem = require("viem");
@@ -557,7 +557,7 @@ const useApproval = () => {
557
557
  address: tokenAddress,
558
558
  abi: viem.erc20Abi,
559
559
  functionName: "approve",
560
- args: [spenderAddress, viem.maxUint256]
560
+ args: [spenderAddress, amount]
561
561
  }) });
562
562
  };
563
563
  return {
@@ -811,8 +811,8 @@ const useOptionPnl = (option) => {
811
811
  address: timelockLens === null || timelockLens === void 0 ? void 0 : timelockLens.address,
812
812
  abi: require_stateView.lensAbi,
813
813
  functionName: "getRefTick",
814
- args: vault && (option === null || option === void 0 ? void 0 : option.startTick) ? [vault, option.startTick] : void 0,
815
- query: { enabled: !!timelockLens && !!vault && (option === null || option === void 0 ? void 0 : option.startTick) !== void 0 }
814
+ args: vault && (option === null || option === void 0 ? void 0 : option.startTick) !== void 0 ? [vault, option.startTick] : void 0,
815
+ query: { enabled: !!vault && (option === null || option === void 0 ? void 0 : option.startTick) !== void 0 }
816
816
  });
817
817
  const swapper = require_graphql.swappers[chainId];
818
818
  const { data: unrealizedPayout, ...rest } = (0, wagmi.useSimulateContract)({
@@ -1139,8 +1139,6 @@ const usePerpsOperator = () => {
1139
1139
  const { data: address } = (0, _tanstack_react_query.useQuery)({
1140
1140
  queryKey: ["perpsOperatorAddress", operator || "--"],
1141
1141
  queryFn: () => operator === null || operator === void 0 ? void 0 : operator.getOperatorAddress(),
1142
- staleTime: 1e4,
1143
- refetchInterval: 1e4,
1144
1142
  enabled: !!operator
1145
1143
  });
1146
1144
  const validateAndSetAuth = async (message, signature) => {