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