timelock-sdk 0.0.32 → 0.0.33

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.d.cts CHANGED
@@ -5,7 +5,7 @@ import { Address } from "viem";
5
5
  import React, { ReactNode } from "react";
6
6
  import "graphql";
7
7
  import { GraphQLClient, RequestOptions } from "graphql-request";
8
- import * as _wagmi_core1 from "@wagmi/core";
8
+ import * as _wagmi_core0 from "@wagmi/core";
9
9
  import { NonUndefinedGuard } from "@tanstack/react-query";
10
10
  import * as _tanstack_query_core0 from "@tanstack/query-core";
11
11
 
@@ -179,7 +179,7 @@ declare const useExerciseOption: (marketAddr?: Address) => {
179
179
  isPending: boolean;
180
180
  isConfirming: boolean;
181
181
  isSuccess: boolean;
182
- error: _wagmi_core1.WriteContractErrorType | null;
182
+ error: _wagmi_core0.WriteContractErrorType | null;
183
183
  isLoading: boolean;
184
184
  };
185
185
  //#endregion
@@ -217,7 +217,7 @@ declare const useMintOption: (marketAddr?: Address) => {
217
217
  isPending: boolean;
218
218
  isConfirming: boolean;
219
219
  isSuccess: boolean;
220
- error: _wagmi_core1.WriteContractErrorType | null;
220
+ error: _wagmi_core0.WriteContractErrorType | null;
221
221
  isLoading: boolean;
222
222
  };
223
223
  //#endregion
@@ -2235,7 +2235,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
2235
2235
  isPending: boolean;
2236
2236
  isConfirming: boolean;
2237
2237
  isSuccess: boolean;
2238
- error: _wagmi_core1.WriteContractErrorType | null;
2238
+ error: _wagmi_core0.WriteContractErrorType | null;
2239
2239
  isLoading: boolean;
2240
2240
  };
2241
2241
  //#endregion
@@ -2610,7 +2610,7 @@ declare const useMintLiquidity: (vaultAddr?: Address) => {
2610
2610
  isPending: boolean;
2611
2611
  isConfirming: boolean;
2612
2612
  isSuccess: boolean;
2613
- error: _wagmi_core1.WriteContractErrorType | null;
2613
+ error: _wagmi_core0.WriteContractErrorType | null;
2614
2614
  isLoading: boolean;
2615
2615
  };
2616
2616
  //#endregion
package/dist/client.js CHANGED
@@ -426,12 +426,12 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strike
426
426
  address: marketAddr,
427
427
  abi: optionsMarketAbi,
428
428
  functionName: "calculatePremium",
429
- args: [
429
+ args: strikeTickRounded !== void 0 ? [
430
430
  optionType === "CALL" ? 0 : 1,
431
431
  optionAmount,
432
432
  strikeTickRounded,
433
433
  BigInt(duration)
434
- ],
434
+ ] : void 0,
435
435
  query: { enabled: strikeTickRounded !== void 0 }
436
436
  });
437
437
  return useMemo(() => {