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 +4 -6
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +250 -250
- package/dist/client.d.ts +25 -25
- package/dist/client.js +4 -6
- package/dist/client.js.map +1 -1
- package/dist/{graphql-BKnux7da.js → graphql-B2PXgobn.js} +2 -2
- package/dist/{graphql-BKnux7da.js.map → graphql-B2PXgobn.js.map} +1 -1
- package/dist/{graphql-kf13KPwy.cjs → graphql-BH0AK2SE.cjs} +2 -2
- package/dist/{graphql-kf13KPwy.cjs.map → graphql-BH0AK2SE.cjs.map} +1 -1
- package/dist/{index-BKx6KkXn.d.ts → index-BUPFsthE.d.ts} +483 -483
- package/dist/{index-JA1QJRKe.d.cts → index-BX3h8cAW.d.cts} +479 -479
- package/dist/package.cjs +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
const require_graphql = require('./graphql-
|
|
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,
|
|
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: !!
|
|
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) => {
|