timelock-sdk 0.0.62 → 0.0.64
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 +11 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +405 -22
- package/dist/client.d.ts +511 -128
- package/dist/client.js +11 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -653,8 +653,12 @@ const useExtendOption = (marketAddr) => {
|
|
|
653
653
|
//#region src/hooks/market/useUserOperators.ts
|
|
654
654
|
const useUserOperators = (userAddr, marketAddr) => {
|
|
655
655
|
const { graphqlClient } = useTimelockConfig();
|
|
656
|
-
const { data } = useQuery({
|
|
657
|
-
queryKey: [
|
|
656
|
+
const { data,...rest } = useQuery({
|
|
657
|
+
queryKey: [
|
|
658
|
+
"userOperators",
|
|
659
|
+
userAddr || "--",
|
|
660
|
+
marketAddr || "--"
|
|
661
|
+
],
|
|
658
662
|
queryFn: async () => {
|
|
659
663
|
if (!userAddr || !marketAddr) return void 0;
|
|
660
664
|
return (await graphqlClient.GetUserMarketOperators({
|
|
@@ -666,9 +670,12 @@ const useUserOperators = (userAddr, marketAddr) => {
|
|
|
666
670
|
operatorAddr: operator.operator.address.toLowerCase()
|
|
667
671
|
}));
|
|
668
672
|
},
|
|
669
|
-
enabled: !!marketAddr && !!graphqlClient
|
|
673
|
+
enabled: !!userAddr && !!marketAddr && !!graphqlClient
|
|
670
674
|
});
|
|
671
|
-
return
|
|
675
|
+
return {
|
|
676
|
+
...rest,
|
|
677
|
+
data: data || []
|
|
678
|
+
};
|
|
672
679
|
};
|
|
673
680
|
|
|
674
681
|
//#endregion
|