timelock-sdk 0.0.109 → 0.0.110
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-BcsbWPvK.d.ts → client--yJ0Oalw.d.ts} +160 -160
- package/dist/client.cjs +40 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +40 -4
- package/dist/client.js.map +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -418,7 +418,16 @@ const useExerciseOption = (marketAddr) => {
|
|
|
418
418
|
]
|
|
419
419
|
});
|
|
420
420
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
421
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
421
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
422
|
+
"userOptions",
|
|
423
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
424
|
+
true
|
|
425
|
+
] });
|
|
426
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
427
|
+
"userOptions",
|
|
428
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
429
|
+
false
|
|
430
|
+
] });
|
|
422
431
|
queryClient.invalidateQueries({ queryKey: ["readContract"] });
|
|
423
432
|
return hash;
|
|
424
433
|
};
|
|
@@ -551,7 +560,16 @@ const useMintOption = (marketAddr) => {
|
|
|
551
560
|
]
|
|
552
561
|
});
|
|
553
562
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
554
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
563
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
564
|
+
"userOptions",
|
|
565
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
566
|
+
true
|
|
567
|
+
] });
|
|
568
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
569
|
+
"userOptions",
|
|
570
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
571
|
+
false
|
|
572
|
+
] });
|
|
555
573
|
queryClient.invalidateQueries({ queryKey: ["readContract"] });
|
|
556
574
|
return hash;
|
|
557
575
|
};
|
|
@@ -1083,7 +1101,16 @@ const useMintPerp = (marketAddr) => {
|
|
|
1083
1101
|
duration,
|
|
1084
1102
|
strikeTick: validStrikeTick
|
|
1085
1103
|
});
|
|
1086
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
1104
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
1105
|
+
"userOptions",
|
|
1106
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
1107
|
+
true
|
|
1108
|
+
] });
|
|
1109
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
1110
|
+
"userOptions",
|
|
1111
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
1112
|
+
false
|
|
1113
|
+
] });
|
|
1087
1114
|
queryClient.invalidateQueries({ queryKey: ["readContract"] });
|
|
1088
1115
|
};
|
|
1089
1116
|
return (0, __tanstack_react_query.useMutation)({ mutationFn: mintPerp });
|
|
@@ -1099,7 +1126,16 @@ const useClosePerp = () => {
|
|
|
1099
1126
|
if (!operator) throw new Error("Operator not connected");
|
|
1100
1127
|
if (!operator.auth) await signMessage();
|
|
1101
1128
|
await operator.exercisePerp(body);
|
|
1102
|
-
queryClient.invalidateQueries({ queryKey: [
|
|
1129
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
1130
|
+
"userOptions",
|
|
1131
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
1132
|
+
true
|
|
1133
|
+
] });
|
|
1134
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
1135
|
+
"userOptions",
|
|
1136
|
+
address === null || address === void 0 ? void 0 : address.toLowerCase(),
|
|
1137
|
+
false
|
|
1138
|
+
] });
|
|
1103
1139
|
queryClient.invalidateQueries({ queryKey: ["readContract"] });
|
|
1104
1140
|
} });
|
|
1105
1141
|
};
|