timelock-sdk 0.0.91 → 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.cjs CHANGED
@@ -1011,6 +1011,27 @@ const useClosePerp = () => {
1011
1011
  } });
1012
1012
  };
1013
1013
 
1014
+ //#endregion
1015
+ //#region src/hooks/operators/useOperatorPerps.ts
1016
+ const useOperatorPerms = (operatorAddr, userAddr) => {
1017
+ const { data,...rest } = (0, wagmi.useReadContract)({
1018
+ abi: require_optionsMarket.optionsMarketAbi,
1019
+ functionName: "operatorPerms",
1020
+ args: [userAddr, operatorAddr],
1021
+ query: { enabled: !!userAddr && !!operatorAddr }
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
+ };
1033
+ };
1034
+
1014
1035
  //#endregion
1015
1036
  //#region src/hooks/pool/usePriceAtTick.ts
1016
1037
  const usePriceAtTick = (tick, poolAddr) => {
@@ -1265,6 +1286,7 @@ exports.useMaxPositionSize = useMaxPositionSize;
1265
1286
  exports.useMintLiquidity = useMintLiquidity;
1266
1287
  exports.useMintOption = useMintOption;
1267
1288
  exports.useMintPerp = useMintPerp;
1289
+ exports.useOperatorPerms = useOperatorPerms;
1268
1290
  exports.useOptionPnl = useOptionPnl;
1269
1291
  exports.useOptionPremium = useOptionPremium;
1270
1292
  exports.useOptionTimeline = useOptionTimeline;