timelock-sdk 0.0.71 → 0.0.73
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 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +59 -59
- package/dist/client.d.ts +58 -58
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/{index-C-uDgfkL.d.cts → index-CFBcBY1K.d.cts} +92 -92
- package/dist/package.d.cts +1 -1
- package/package.json +5 -5
package/dist/client.cjs
CHANGED
|
@@ -319,7 +319,7 @@ const useExerciseOption = (marketAddr) => {
|
|
|
319
319
|
]
|
|
320
320
|
});
|
|
321
321
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
322
|
-
|
|
322
|
+
queryClient.invalidateQueries({ queryKey: ["userOptions", address.toLowerCase()] });
|
|
323
323
|
return hash;
|
|
324
324
|
};
|
|
325
325
|
return (0, __tanstack_react_query.useMutation)({ mutationFn: exerciseOption });
|
|
@@ -451,7 +451,7 @@ const useMintOption = (marketAddr) => {
|
|
|
451
451
|
]
|
|
452
452
|
});
|
|
453
453
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
454
|
-
|
|
454
|
+
queryClient.invalidateQueries({ queryKey: ["userOptions", address.toLowerCase()] });
|
|
455
455
|
return hash;
|
|
456
456
|
};
|
|
457
457
|
return (0, __tanstack_react_query.useMutation)({ mutationFn: mintOption });
|
|
@@ -616,7 +616,7 @@ const useExtendOption = (marketAddr) => {
|
|
|
616
616
|
]
|
|
617
617
|
});
|
|
618
618
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
619
|
-
|
|
619
|
+
queryClient.invalidateQueries({ queryKey: ["userOptions", address.toLowerCase()] });
|
|
620
620
|
return hash;
|
|
621
621
|
};
|
|
622
622
|
return (0, __tanstack_react_query.useMutation)({ mutationFn: extendOption });
|
|
@@ -675,7 +675,7 @@ const useSetOperatorPerms = (marketAddr) => {
|
|
|
675
675
|
]
|
|
676
676
|
});
|
|
677
677
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
678
|
-
|
|
678
|
+
queryClient.invalidateQueries({ queryKey: [
|
|
679
679
|
"userOperators",
|
|
680
680
|
address.toLowerCase(),
|
|
681
681
|
marketAddr.toLowerCase()
|