timelock-sdk 0.0.92 → 0.0.94
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-CGZEauft.d.ts → client-BanYHaNs.d.cts} +209 -865
- package/dist/{client-DJzkUajw.d.cts → client-S6cJb7ZQ.d.ts} +442 -1098
- package/dist/client.cjs +13 -2
- 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 +13 -2
- 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
|
@@ -1013,13 +1013,24 @@ const useClosePerp = () => {
|
|
|
1013
1013
|
|
|
1014
1014
|
//#endregion
|
|
1015
1015
|
//#region src/hooks/operators/useOperatorPerps.ts
|
|
1016
|
-
const useOperatorPerms = (
|
|
1017
|
-
|
|
1016
|
+
const useOperatorPerms = (marketAddr, userAddr, operatorAddr) => {
|
|
1017
|
+
const { data,...rest } = (0, wagmi.useReadContract)({
|
|
1018
1018
|
abi: require_optionsMarket.optionsMarketAbi,
|
|
1019
|
+
address: marketAddr,
|
|
1019
1020
|
functionName: "operatorPerms",
|
|
1020
1021
|
args: [userAddr, operatorAddr],
|
|
1021
1022
|
query: { enabled: !!userAddr && !!operatorAddr }
|
|
1022
1023
|
});
|
|
1024
|
+
return {
|
|
1025
|
+
data: data ? {
|
|
1026
|
+
canExtend: data[0],
|
|
1027
|
+
canExercise: data[1],
|
|
1028
|
+
canTransfer: data[2],
|
|
1029
|
+
canMint: data[3],
|
|
1030
|
+
spendingApproval: data[4]
|
|
1031
|
+
} : void 0,
|
|
1032
|
+
...rest
|
|
1033
|
+
};
|
|
1023
1034
|
};
|
|
1024
1035
|
|
|
1025
1036
|
//#endregion
|