timelock-sdk 0.0.93 → 0.0.95
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-B6xuAheU.d.cts → client-BSZsqyLp.d.ts} +112 -112
- package/dist/{client-CZVKXvrJ.d.ts → client-BanYHaNs.d.cts} +103 -103
- package/dist/client.cjs +3 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +3 -1
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -943,6 +943,7 @@ const useSetOperatorPerms = (marketAddr) => {
|
|
|
943
943
|
address.toLowerCase(),
|
|
944
944
|
marketAddr.toLowerCase()
|
|
945
945
|
] });
|
|
946
|
+
queryClient.invalidateQueries({ queryKey: ["readContract"] });
|
|
946
947
|
return hash;
|
|
947
948
|
};
|
|
948
949
|
return (0, __tanstack_react_query.useMutation)({ mutationFn: setOperatorPerms });
|
|
@@ -1013,9 +1014,10 @@ const useClosePerp = () => {
|
|
|
1013
1014
|
|
|
1014
1015
|
//#endregion
|
|
1015
1016
|
//#region src/hooks/operators/useOperatorPerps.ts
|
|
1016
|
-
const useOperatorPerms = (
|
|
1017
|
+
const useOperatorPerms = (marketAddr, userAddr, operatorAddr) => {
|
|
1017
1018
|
const { data,...rest } = (0, wagmi.useReadContract)({
|
|
1018
1019
|
abi: require_optionsMarket.optionsMarketAbi,
|
|
1020
|
+
address: marketAddr,
|
|
1019
1021
|
functionName: "operatorPerms",
|
|
1020
1022
|
args: [userAddr, operatorAddr],
|
|
1021
1023
|
query: { enabled: !!userAddr && !!operatorAddr }
|