timelock-sdk 0.0.70 → 0.0.72

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
@@ -1,18 +1,14 @@
1
1
  import "./uniswapMathLens-CK8C7WOt.cjs";
2
- import { A as UniswapMathLens, k as TimelockMarketData, p as Amount } from "./index-BK67HnC2.cjs";
2
+ import { A as UniswapMathLens, k as TimelockMarketData, p as Amount } from "./index-C-uDgfkL.cjs";
3
3
  import * as viem116 from "viem";
4
4
  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_core0 from "@wagmi/core";
9
- import * as _tanstack_query_core0 from "@tanstack/query-core";
10
8
  import * as _tanstack_react_query0 from "@tanstack/react-query";
11
9
  import { NonUndefinedGuard } from "@tanstack/react-query";
12
- import * as wagmi0 from "wagmi";
13
- import * as node_modules__wagmi_core_dist_types_errors_base0 from "node_modules/@wagmi/core/dist/types/errors/base";
14
- import * as node_modules_viem__types_errors_abi0 from "node_modules/viem/_types/errors/abi";
15
- import * as node_modules_viem__types_errors_account0 from "node_modules/viem/_types/errors/account";
10
+ import * as _tanstack_query_core0 from "@tanstack/query-core";
11
+ import * as _wagmi_core0 from "@wagmi/core";
16
12
 
17
13
  //#region src/generated/graphql.d.ts
18
14
  type Exact<T$1 extends {
@@ -2762,15 +2758,10 @@ declare const useClosedUserOptions: (user?: Address) => {
2762
2758
  };
2763
2759
  //#endregion
2764
2760
  //#region src/hooks/market/useExerciseOption.d.ts
2765
- declare const useExerciseOption: (marketAddr?: Address) => {
2766
- exerciseOption: (option: OptionData, liquidities: readonly bigint[]) => Promise<`0x${string}`>;
2767
- hash: `0x${string}` | undefined;
2768
- isPending: boolean;
2769
- isConfirming: boolean;
2770
- isSuccess: boolean;
2771
- error: _wagmi_core0.WriteContractErrorType | null;
2772
- isLoading: boolean;
2773
- };
2761
+ declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
2762
+ option: OptionData;
2763
+ liquidities: readonly bigint[];
2764
+ }, unknown>;
2774
2765
  //#endregion
2775
2766
  //#region src/hooks/market/useMarketData.d.ts
2776
2767
  declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
@@ -2801,18 +2792,12 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
2801
2792
  };
2802
2793
  //#endregion
2803
2794
  //#region src/hooks/market/useMintOption.d.ts
2804
- declare const useMintOption: (marketAddr?: Address) => {
2805
- mintOption: (optionType: "CALL" | "PUT", amount: bigint, duration: number, strikeTick?: number) => Promise<`0x${string}`>;
2806
- hash: `0x${string}` | undefined;
2807
- isPending: boolean;
2808
- isConfirming: boolean;
2809
- isSuccess: boolean;
2810
- error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core0.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem116.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem116.AbiFunctionNotFoundErrorType | viem116.AbiEncodingLengthMismatchErrorType | viem116.InvalidAddressErrorType | viem116.AbiEncodingArrayLengthMismatchErrorType | viem116.IntegerOutOfRangeErrorType | viem116.SizeExceedsPaddingSizeErrorType | viem116.InvalidArrayErrorType | viem116.AbiEncodingBytesSizeMismatchErrorType | viem116.SizeOverflowErrorType | viem116.SliceOffsetOutOfBoundsErrorType | viem116.InvalidAbiEncodingTypeErrorType | viem116.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem116.GetContractErrorReturnType<viem116.SendTransactionErrorType> | null;
2811
- isLoading: boolean;
2812
- isApprovalPending: boolean;
2813
- approvalError: _wagmi_core0.WriteContractErrorType | null;
2814
- resetApproval: () => void;
2815
- };
2795
+ declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
2796
+ optionType: "CALL" | "PUT";
2797
+ amount: bigint;
2798
+ duration: number;
2799
+ strikeTick?: number;
2800
+ }, unknown>;
2816
2801
  //#endregion
2817
2802
  //#region src/hooks/market/useOptionPnl.d.ts
2818
2803
  declare const useOptionPnl: (option: OptionData) => {
@@ -2832,18 +2817,10 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
2832
2817
  };
2833
2818
  //#endregion
2834
2819
  //#region src/hooks/market/useExtendOption.d.ts
2835
- declare const useExtendOption: (marketAddr?: Address) => {
2836
- extendOption: (option: OptionData, duration: number) => Promise<`0x${string}`>;
2837
- hash: `0x${string}` | undefined;
2838
- isPending: boolean;
2839
- isConfirming: boolean;
2840
- isSuccess: boolean;
2841
- error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core0.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem116.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem116.AbiFunctionNotFoundErrorType | viem116.AbiEncodingLengthMismatchErrorType | viem116.InvalidAddressErrorType | viem116.AbiEncodingArrayLengthMismatchErrorType | viem116.IntegerOutOfRangeErrorType | viem116.SizeExceedsPaddingSizeErrorType | viem116.InvalidArrayErrorType | viem116.AbiEncodingBytesSizeMismatchErrorType | viem116.SizeOverflowErrorType | viem116.SliceOffsetOutOfBoundsErrorType | viem116.InvalidAbiEncodingTypeErrorType | viem116.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem116.GetContractErrorReturnType<viem116.SendTransactionErrorType> | null;
2842
- isLoading: boolean;
2843
- isApprovalPending: boolean;
2844
- approvalError: _wagmi_core0.WriteContractErrorType | null;
2845
- resetApproval: () => void;
2846
- };
2820
+ declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
2821
+ option: OptionData;
2822
+ duration: number;
2823
+ }, unknown>;
2847
2824
  //#endregion
2848
2825
  //#region src/hooks/market/useUserOperators.d.ts
2849
2826
  declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
@@ -3245,15 +3222,14 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
3245
3222
  };
3246
3223
  //#endregion
3247
3224
  //#region src/hooks/market/useSetOperatorPerms.d.ts
3248
- declare const useSetOperatorPerms: (marketAddr?: Address) => {
3249
- setOperatorPerms: (operator: Address, canExtend: boolean, canExercise: boolean, canTransfer: boolean, canMint: boolean, spendingApproval: bigint) => Promise<`0x${string}`>;
3250
- hash: `0x${string}` | undefined;
3251
- isPending: boolean;
3252
- isConfirming: boolean;
3253
- isSuccess: boolean;
3254
- error: _wagmi_core0.WriteContractErrorType | null;
3255
- isLoading: boolean;
3256
- };
3225
+ declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
3226
+ operator: Address;
3227
+ canExtend: boolean;
3228
+ canExercise: boolean;
3229
+ canTransfer: boolean;
3230
+ canMint: boolean;
3231
+ spendingApproval: bigint;
3232
+ }, unknown>;
3257
3233
  //#endregion
3258
3234
  //#region src/hooks/pool/useCurrentPrice.d.ts
3259
3235
  declare const useCurrentPrice: (poolAddr?: Address) => {