timelock-sdk 0.0.124 → 0.0.125

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
@@ -1075,11 +1075,7 @@ const useSetOperatorPerms = (marketAddr) => {
1075
1075
  ]
1076
1076
  });
1077
1077
  await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
1078
- queryClient.invalidateQueries({ queryKey: [
1079
- "userOperators",
1080
- address.toLowerCase(),
1081
- marketAddr.toLowerCase()
1082
- ] });
1078
+ queryClient.invalidateQueries({ queryKey: ["userOperators"] });
1083
1079
  queryClient.invalidateQueries({ queryKey: ["readContract"] });
1084
1080
  return hash;
1085
1081
  };
@@ -1203,7 +1199,10 @@ const useOperatorPerms = (marketAddr, userAddr, operatorAddr) => {
1203
1199
  address: marketAddr,
1204
1200
  functionName: "operatorPerms",
1205
1201
  args: [userAddr, operatorAddr],
1206
- query: { enabled: !!userAddr && !!operatorAddr }
1202
+ query: {
1203
+ enabled: !!userAddr && !!operatorAddr,
1204
+ refetchInterval: 5e3
1205
+ }
1207
1206
  });
1208
1207
  const [canExtend, canExercise, canTransfer, canMint, spendingApproval] = data || [];
1209
1208
  const min = (a, b) => a < b ? a : b;