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.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 = (operatorAddr, userAddr) => {
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 }