timelock-sdk 0.0.57 → 0.0.59

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,11 +1,11 @@
1
- import "./uniswapMathLens-CGKa7m43.cjs";
2
- import { D as TimelockMarketData, O as UniswapMathLens, d as Amount } from "./index-3V8OBVyj.cjs";
3
- import * as viem0 from "viem";
1
+ import "./uniswapMathLens-CVpKNF0-.cjs";
2
+ import { D as TimelockMarketData, O as UniswapMathLens, d as Amount } from "./index-CrA0YbZT.cjs";
3
+ import * as viem249 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_core1 from "@wagmi/core";
8
+ import * as _wagmi_core0 from "@wagmi/core";
9
9
  import * as _tanstack_query_core0 from "@tanstack/query-core";
10
10
  import * as _tanstack_react_query0 from "@tanstack/react-query";
11
11
  import { NonUndefinedGuard } from "@tanstack/react-query";
@@ -2302,7 +2302,7 @@ declare const useExerciseOption: (marketAddr?: Address) => {
2302
2302
  isPending: boolean;
2303
2303
  isConfirming: boolean;
2304
2304
  isSuccess: boolean;
2305
- error: _wagmi_core1.WriteContractErrorType | null;
2305
+ error: _wagmi_core0.WriteContractErrorType | null;
2306
2306
  isLoading: boolean;
2307
2307
  };
2308
2308
  //#endregion
@@ -2340,10 +2340,10 @@ declare const useMintOption: (marketAddr?: Address) => {
2340
2340
  isPending: boolean;
2341
2341
  isConfirming: boolean;
2342
2342
  isSuccess: boolean;
2343
- error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core1.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem0.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem0.AbiFunctionNotFoundErrorType | viem0.AbiEncodingLengthMismatchErrorType | viem0.InvalidAddressErrorType | viem0.AbiEncodingArrayLengthMismatchErrorType | viem0.IntegerOutOfRangeErrorType | viem0.SizeExceedsPaddingSizeErrorType | viem0.InvalidArrayErrorType | viem0.AbiEncodingBytesSizeMismatchErrorType | viem0.SizeOverflowErrorType | viem0.SliceOffsetOutOfBoundsErrorType | viem0.InvalidAbiEncodingTypeErrorType | viem0.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem0.GetContractErrorReturnType<viem0.SendTransactionErrorType> | null;
2343
+ error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core0.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem249.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem249.AbiFunctionNotFoundErrorType | viem249.AbiEncodingLengthMismatchErrorType | viem249.InvalidAddressErrorType | viem249.AbiEncodingArrayLengthMismatchErrorType | viem249.IntegerOutOfRangeErrorType | viem249.SizeExceedsPaddingSizeErrorType | viem249.InvalidArrayErrorType | viem249.AbiEncodingBytesSizeMismatchErrorType | viem249.SizeOverflowErrorType | viem249.SliceOffsetOutOfBoundsErrorType | viem249.InvalidAbiEncodingTypeErrorType | viem249.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem249.GetContractErrorReturnType<viem249.SendTransactionErrorType> | null;
2344
2344
  isLoading: boolean;
2345
2345
  isApprovalPending: boolean;
2346
- approvalError: _wagmi_core1.WriteContractErrorType | null;
2346
+ approvalError: _wagmi_core0.WriteContractErrorType | null;
2347
2347
  resetApproval: () => void;
2348
2348
  };
2349
2349
  //#endregion
@@ -2371,10 +2371,10 @@ declare const useExtendOption: (marketAddr?: Address) => {
2371
2371
  isPending: boolean;
2372
2372
  isConfirming: boolean;
2373
2373
  isSuccess: boolean;
2374
- error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core1.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem0.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem0.AbiFunctionNotFoundErrorType | viem0.AbiEncodingLengthMismatchErrorType | viem0.InvalidAddressErrorType | viem0.AbiEncodingArrayLengthMismatchErrorType | viem0.IntegerOutOfRangeErrorType | viem0.SizeExceedsPaddingSizeErrorType | viem0.InvalidArrayErrorType | viem0.AbiEncodingBytesSizeMismatchErrorType | viem0.SizeOverflowErrorType | viem0.SliceOffsetOutOfBoundsErrorType | viem0.InvalidAbiEncodingTypeErrorType | viem0.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem0.GetContractErrorReturnType<viem0.SendTransactionErrorType> | null;
2374
+ error: wagmi0.ConnectorAccountNotFoundErrorType | wagmi0.ConnectorChainMismatchErrorType | _wagmi_core0.ConnectorNotConnectedErrorType | wagmi0.ConnectorUnavailableReconnectingErrorType | viem249.BaseErrorType | node_modules__wagmi_core_dist_types_errors_base0.ErrorType | node_modules__wagmi_core_dist_types_errors_base0.BaseErrorType | viem249.AbiFunctionNotFoundErrorType | viem249.AbiEncodingLengthMismatchErrorType | viem249.InvalidAddressErrorType | viem249.AbiEncodingArrayLengthMismatchErrorType | viem249.IntegerOutOfRangeErrorType | viem249.SizeExceedsPaddingSizeErrorType | viem249.InvalidArrayErrorType | viem249.AbiEncodingBytesSizeMismatchErrorType | viem249.SizeOverflowErrorType | viem249.SliceOffsetOutOfBoundsErrorType | viem249.InvalidAbiEncodingTypeErrorType | viem249.InvalidDefinitionTypeErrorType | node_modules_viem__types_errors_abi0.AbiItemAmbiguityErrorType | node_modules_viem__types_errors_account0.AccountNotFoundErrorType | viem249.GetContractErrorReturnType<viem249.SendTransactionErrorType> | null;
2375
2375
  isLoading: boolean;
2376
2376
  isApprovalPending: boolean;
2377
- approvalError: _wagmi_core1.WriteContractErrorType | null;
2377
+ approvalError: _wagmi_core0.WriteContractErrorType | null;
2378
2378
  resetApproval: () => void;
2379
2379
  };
2380
2380
  //#endregion
@@ -2435,14 +2435,14 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
2435
2435
  isPending: boolean;
2436
2436
  isConfirming: boolean;
2437
2437
  isSuccess: boolean;
2438
- error: _wagmi_core1.WriteContractErrorType | null;
2438
+ error: _wagmi_core0.WriteContractErrorType | null;
2439
2439
  isLoading: boolean;
2440
2440
  };
2441
2441
  //#endregion
2442
2442
  //#region src/hooks/vault/useLiquidityBlocks.d.ts
2443
2443
  type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
2444
2444
  declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2445
- error: viem0.ReadContractErrorType;
2445
+ error: viem249.ReadContractErrorType;
2446
2446
  isError: true;
2447
2447
  isPending: false;
2448
2448
  isLoading: false;
@@ -2454,7 +2454,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2454
2454
  dataUpdatedAt: number;
2455
2455
  errorUpdatedAt: number;
2456
2456
  failureCount: number;
2457
- failureReason: viem0.ReadContractErrorType | null;
2457
+ failureReason: viem249.ReadContractErrorType | null;
2458
2458
  errorUpdateCount: number;
2459
2459
  isFetched: boolean;
2460
2460
  isFetchedAfterMount: boolean;
@@ -2474,7 +2474,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2474
2474
  totalAmount1: bigint;
2475
2475
  borrowedAmount0: bigint;
2476
2476
  borrowedAmount1: bigint;
2477
- }[], viem0.ReadContractErrorType>>;
2477
+ }[], viem249.ReadContractErrorType>>;
2478
2478
  fetchStatus: _tanstack_query_core0.FetchStatus;
2479
2479
  promise: Promise<readonly {
2480
2480
  tickLower: number;
@@ -2512,7 +2512,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2512
2512
  dataUpdatedAt: number;
2513
2513
  errorUpdatedAt: number;
2514
2514
  failureCount: number;
2515
- failureReason: viem0.ReadContractErrorType | null;
2515
+ failureReason: viem249.ReadContractErrorType | null;
2516
2516
  errorUpdateCount: number;
2517
2517
  isFetched: boolean;
2518
2518
  isFetchedAfterMount: boolean;
@@ -2532,7 +2532,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2532
2532
  totalAmount1: bigint;
2533
2533
  borrowedAmount0: bigint;
2534
2534
  borrowedAmount1: bigint;
2535
- }[], viem0.ReadContractErrorType>>;
2535
+ }[], viem249.ReadContractErrorType>>;
2536
2536
  fetchStatus: _tanstack_query_core0.FetchStatus;
2537
2537
  promise: Promise<readonly {
2538
2538
  tickLower: number;
@@ -2558,7 +2558,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2558
2558
  borrowedAmount1: bigint;
2559
2559
  }[];
2560
2560
  } | {
2561
- error: viem0.ReadContractErrorType;
2561
+ error: viem249.ReadContractErrorType;
2562
2562
  isError: true;
2563
2563
  isPending: false;
2564
2564
  isLoading: false;
@@ -2570,7 +2570,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2570
2570
  dataUpdatedAt: number;
2571
2571
  errorUpdatedAt: number;
2572
2572
  failureCount: number;
2573
- failureReason: viem0.ReadContractErrorType | null;
2573
+ failureReason: viem249.ReadContractErrorType | null;
2574
2574
  errorUpdateCount: number;
2575
2575
  isFetched: boolean;
2576
2576
  isFetchedAfterMount: boolean;
@@ -2590,7 +2590,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2590
2590
  totalAmount1: bigint;
2591
2591
  borrowedAmount0: bigint;
2592
2592
  borrowedAmount1: bigint;
2593
- }[], viem0.ReadContractErrorType>>;
2593
+ }[], viem249.ReadContractErrorType>>;
2594
2594
  fetchStatus: _tanstack_query_core0.FetchStatus;
2595
2595
  promise: Promise<readonly {
2596
2596
  tickLower: number;
@@ -2628,7 +2628,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2628
2628
  dataUpdatedAt: number;
2629
2629
  errorUpdatedAt: number;
2630
2630
  failureCount: number;
2631
- failureReason: viem0.ReadContractErrorType | null;
2631
+ failureReason: viem249.ReadContractErrorType | null;
2632
2632
  errorUpdateCount: number;
2633
2633
  isFetched: boolean;
2634
2634
  isFetchedAfterMount: boolean;
@@ -2648,7 +2648,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2648
2648
  totalAmount1: bigint;
2649
2649
  borrowedAmount0: bigint;
2650
2650
  borrowedAmount1: bigint;
2651
- }[], viem0.ReadContractErrorType>>;
2651
+ }[], viem249.ReadContractErrorType>>;
2652
2652
  fetchStatus: _tanstack_query_core0.FetchStatus;
2653
2653
  promise: Promise<readonly {
2654
2654
  tickLower: number;
@@ -2685,7 +2685,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2685
2685
  dataUpdatedAt: number;
2686
2686
  errorUpdatedAt: number;
2687
2687
  failureCount: number;
2688
- failureReason: viem0.ReadContractErrorType | null;
2688
+ failureReason: viem249.ReadContractErrorType | null;
2689
2689
  errorUpdateCount: number;
2690
2690
  isFetched: boolean;
2691
2691
  isFetchedAfterMount: boolean;
@@ -2706,7 +2706,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2706
2706
  totalAmount1: bigint;
2707
2707
  borrowedAmount0: bigint;
2708
2708
  borrowedAmount1: bigint;
2709
- }[], viem0.ReadContractErrorType>>;
2709
+ }[], viem249.ReadContractErrorType>>;
2710
2710
  fetchStatus: _tanstack_query_core0.FetchStatus;
2711
2711
  promise: Promise<readonly {
2712
2712
  tickLower: number;
@@ -2744,7 +2744,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2744
2744
  dataUpdatedAt: number;
2745
2745
  errorUpdatedAt: number;
2746
2746
  failureCount: number;
2747
- failureReason: viem0.ReadContractErrorType | null;
2747
+ failureReason: viem249.ReadContractErrorType | null;
2748
2748
  errorUpdateCount: number;
2749
2749
  isFetched: boolean;
2750
2750
  isFetchedAfterMount: boolean;
@@ -2764,7 +2764,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2764
2764
  totalAmount1: bigint;
2765
2765
  borrowedAmount0: bigint;
2766
2766
  borrowedAmount1: bigint;
2767
- }[], viem0.ReadContractErrorType>>;
2767
+ }[], viem249.ReadContractErrorType>>;
2768
2768
  fetchStatus: _tanstack_query_core0.FetchStatus;
2769
2769
  promise: Promise<readonly {
2770
2770
  tickLower: number;
@@ -2810,7 +2810,7 @@ declare const useMintLiquidity: (vaultAddr?: Address) => {
2810
2810
  isPending: boolean;
2811
2811
  isConfirming: boolean;
2812
2812
  isSuccess: boolean;
2813
- error: _wagmi_core1.WriteContractErrorType | null;
2813
+ error: _wagmi_core0.WriteContractErrorType | null;
2814
2814
  isLoading: boolean;
2815
2815
  };
2816
2816
  //#endregion
@@ -2837,14 +2837,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
2837
2837
  borrowedAmount0: Amount;
2838
2838
  borrowedAmount1: Amount;
2839
2839
  blocksCount: bigint;
2840
- refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem0.ReadContractErrorType>>;
2840
+ refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem249.ReadContractErrorType>>;
2841
2841
  };
2842
2842
  //#endregion
2843
2843
  //#region src/hooks/useLens.d.ts
2844
2844
  declare const useLens: () => {
2845
2845
  timelockLens: {
2846
2846
  read: {
2847
- batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
2847
+ batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
2848
2848
  readonly type: "function";
2849
2849
  readonly name: "batchGetRefTick";
2850
2850
  readonly inputs: readonly [{
@@ -3518,7 +3518,7 @@ declare const useLens: () => {
3518
3518
  }];
3519
3519
  readonly stateMutability: "view";
3520
3520
  }], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
3521
- getAllBlocks: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
3521
+ getAllBlocks: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
3522
3522
  readonly type: "function";
3523
3523
  readonly name: "batchGetRefTick";
3524
3524
  readonly inputs: readonly [{
@@ -4202,7 +4202,7 @@ declare const useLens: () => {
4202
4202
  borrowedAmount0: bigint;
4203
4203
  borrowedAmount1: bigint;
4204
4204
  }[]>;
4205
- getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
4205
+ getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4206
4206
  readonly type: "function";
4207
4207
  readonly name: "batchGetRefTick";
4208
4208
  readonly inputs: readonly [{
@@ -4893,7 +4893,7 @@ declare const useLens: () => {
4893
4893
  expiresAt: bigint;
4894
4894
  liquidities: readonly bigint[];
4895
4895
  }[], bigint, boolean]>;
4896
- getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
4896
+ getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4897
4897
  readonly type: "function";
4898
4898
  readonly name: "batchGetRefTick";
4899
4899
  readonly inputs: readonly [{
@@ -5567,7 +5567,7 @@ declare const useLens: () => {
5567
5567
  }];
5568
5568
  readonly stateMutability: "view";
5569
5569
  }], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
5570
- getMarketData: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
5570
+ getMarketData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
5571
5571
  readonly type: "function";
5572
5572
  readonly name: "batchGetRefTick";
5573
5573
  readonly inputs: readonly [{
@@ -6254,7 +6254,7 @@ declare const useLens: () => {
6254
6254
  payoutAssetName: string;
6255
6255
  optionsCount: bigint;
6256
6256
  }>;
6257
- getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
6257
+ getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6258
6258
  readonly type: "function";
6259
6259
  readonly name: "batchGetRefTick";
6260
6260
  readonly inputs: readonly [{
@@ -6928,7 +6928,7 @@ declare const useLens: () => {
6928
6928
  }];
6929
6929
  readonly stateMutability: "view";
6930
6930
  }], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
6931
- getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
6931
+ getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6932
6932
  readonly type: "function";
6933
6933
  readonly name: "batchGetRefTick";
6934
6934
  readonly inputs: readonly [{
@@ -7602,7 +7602,7 @@ declare const useLens: () => {
7602
7602
  }];
7603
7603
  readonly stateMutability: "view";
7604
7604
  }], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
7605
- getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
7605
+ getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
7606
7606
  readonly type: "function";
7607
7607
  readonly name: "batchGetRefTick";
7608
7608
  readonly inputs: readonly [{
@@ -8293,7 +8293,7 @@ declare const useLens: () => {
8293
8293
  expiresAt: bigint;
8294
8294
  liquidities: readonly bigint[];
8295
8295
  }>;
8296
- getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
8296
+ getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
8297
8297
  readonly type: "function";
8298
8298
  readonly name: "batchGetRefTick";
8299
8299
  readonly inputs: readonly [{
@@ -8984,7 +8984,7 @@ declare const useLens: () => {
8984
8984
  expiresAt: bigint;
8985
8985
  liquidities: readonly bigint[];
8986
8986
  }[]>;
8987
- getPoolData: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
8987
+ getPoolData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
8988
8988
  readonly type: "function";
8989
8989
  readonly name: "batchGetRefTick";
8990
8990
  readonly inputs: readonly [{
@@ -9669,7 +9669,7 @@ declare const useLens: () => {
9669
9669
  tickSpacing: number;
9670
9670
  fee: number;
9671
9671
  }>;
9672
- getRefTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
9672
+ getRefTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
9673
9673
  readonly type: "function";
9674
9674
  readonly name: "batchGetRefTick";
9675
9675
  readonly inputs: readonly [{
@@ -10343,7 +10343,7 @@ declare const useLens: () => {
10343
10343
  }];
10344
10344
  readonly stateMutability: "view";
10345
10345
  }], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
10346
- getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
10346
+ getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
10347
10347
  readonly type: "function";
10348
10348
  readonly name: "batchGetRefTick";
10349
10349
  readonly inputs: readonly [{
@@ -11034,7 +11034,7 @@ declare const useLens: () => {
11034
11034
  expiresAt: bigint;
11035
11035
  liquidities: readonly bigint[];
11036
11036
  }[], bigint, boolean]>;
11037
- getVaultTVL: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
11037
+ getVaultTVL: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
11038
11038
  readonly type: "function";
11039
11039
  readonly name: "batchGetRefTick";
11040
11040
  readonly inputs: readonly [{
@@ -12387,7 +12387,7 @@ declare const useLens: () => {
12387
12387
  } | undefined;
12388
12388
  uniswapLens: {
12389
12389
  read: {
12390
- batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
12390
+ batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
12391
12391
  readonly type: "function";
12392
12392
  readonly name: "batchGetAmount0ForLiquidity";
12393
12393
  readonly inputs: readonly [{
@@ -13008,7 +13008,7 @@ declare const useLens: () => {
13008
13008
  }];
13009
13009
  readonly stateMutability: "pure";
13010
13010
  }], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
13011
- batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
13011
+ batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
13012
13012
  readonly type: "function";
13013
13013
  readonly name: "batchGetAmount0ForLiquidity";
13014
13014
  readonly inputs: readonly [{
@@ -13629,7 +13629,7 @@ declare const useLens: () => {
13629
13629
  }];
13630
13630
  readonly stateMutability: "pure";
13631
13631
  }], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
13632
- batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
13632
+ batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
13633
13633
  readonly type: "function";
13634
13634
  readonly name: "batchGetAmount0ForLiquidity";
13635
13635
  readonly inputs: readonly [{
@@ -14250,7 +14250,7 @@ declare const useLens: () => {
14250
14250
  }];
14251
14251
  readonly stateMutability: "pure";
14252
14252
  }], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
14253
- batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
14253
+ batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
14254
14254
  readonly type: "function";
14255
14255
  readonly name: "batchGetAmount0ForLiquidity";
14256
14256
  readonly inputs: readonly [{
@@ -14871,7 +14871,7 @@ declare const useLens: () => {
14871
14871
  }];
14872
14872
  readonly stateMutability: "pure";
14873
14873
  }], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
14874
- batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
14874
+ batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
14875
14875
  readonly type: "function";
14876
14876
  readonly name: "batchGetAmount0ForLiquidity";
14877
14877
  readonly inputs: readonly [{
@@ -15492,7 +15492,7 @@ declare const useLens: () => {
15492
15492
  }];
15493
15493
  readonly stateMutability: "pure";
15494
15494
  }], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
15495
- batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
15495
+ batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
15496
15496
  readonly type: "function";
15497
15497
  readonly name: "batchGetAmount0ForLiquidity";
15498
15498
  readonly inputs: readonly [{
@@ -16113,7 +16113,7 @@ declare const useLens: () => {
16113
16113
  }];
16114
16114
  readonly stateMutability: "pure";
16115
16115
  }], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
16116
- batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16116
+ batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
16117
16117
  readonly type: "function";
16118
16118
  readonly name: "batchGetAmount0ForLiquidity";
16119
16119
  readonly inputs: readonly [{
@@ -16734,7 +16734,7 @@ declare const useLens: () => {
16734
16734
  }];
16735
16735
  readonly stateMutability: "pure";
16736
16736
  }], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
16737
- batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16737
+ batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
16738
16738
  readonly type: "function";
16739
16739
  readonly name: "batchGetAmount0ForLiquidity";
16740
16740
  readonly inputs: readonly [{
@@ -17355,7 +17355,7 @@ declare const useLens: () => {
17355
17355
  }];
17356
17356
  readonly stateMutability: "pure";
17357
17357
  }], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
17358
- batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
17358
+ batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
17359
17359
  readonly type: "function";
17360
17360
  readonly name: "batchGetAmount0ForLiquidity";
17361
17361
  readonly inputs: readonly [{
@@ -17976,7 +17976,7 @@ declare const useLens: () => {
17976
17976
  }];
17977
17977
  readonly stateMutability: "pure";
17978
17978
  }], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
17979
- batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
17979
+ batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
17980
17980
  readonly type: "function";
17981
17981
  readonly name: "batchGetAmount0ForLiquidity";
17982
17982
  readonly inputs: readonly [{
@@ -18597,7 +18597,7 @@ declare const useLens: () => {
18597
18597
  }];
18598
18598
  readonly stateMutability: "pure";
18599
18599
  }], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
18600
- batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
18600
+ batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
18601
18601
  readonly type: "function";
18602
18602
  readonly name: "batchGetAmount0ForLiquidity";
18603
18603
  readonly inputs: readonly [{
@@ -19218,7 +19218,7 @@ declare const useLens: () => {
19218
19218
  }];
19219
19219
  readonly stateMutability: "pure";
19220
19220
  }], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
19221
- batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
19221
+ batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
19222
19222
  readonly type: "function";
19223
19223
  readonly name: "batchGetAmount0ForLiquidity";
19224
19224
  readonly inputs: readonly [{
@@ -19839,7 +19839,7 @@ declare const useLens: () => {
19839
19839
  }];
19840
19840
  readonly stateMutability: "pure";
19841
19841
  }], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
19842
- batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
19842
+ batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
19843
19843
  readonly type: "function";
19844
19844
  readonly name: "batchGetAmount0ForLiquidity";
19845
19845
  readonly inputs: readonly [{
@@ -20460,7 +20460,7 @@ declare const useLens: () => {
20460
20460
  }];
20461
20461
  readonly stateMutability: "pure";
20462
20462
  }], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
20463
- getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
20463
+ getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
20464
20464
  readonly type: "function";
20465
20465
  readonly name: "batchGetAmount0ForLiquidity";
20466
20466
  readonly inputs: readonly [{
@@ -21081,7 +21081,7 @@ declare const useLens: () => {
21081
21081
  }];
21082
21082
  readonly stateMutability: "pure";
21083
21083
  }], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
21084
- getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
21084
+ getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21085
21085
  readonly type: "function";
21086
21086
  readonly name: "batchGetAmount0ForLiquidity";
21087
21087
  readonly inputs: readonly [{
@@ -21702,7 +21702,7 @@ declare const useLens: () => {
21702
21702
  }];
21703
21703
  readonly stateMutability: "pure";
21704
21704
  }], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
21705
- getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
21705
+ getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21706
21706
  readonly type: "function";
21707
21707
  readonly name: "batchGetAmount0ForLiquidity";
21708
21708
  readonly inputs: readonly [{
@@ -22323,7 +22323,7 @@ declare const useLens: () => {
22323
22323
  }];
22324
22324
  readonly stateMutability: "pure";
22325
22325
  }], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
22326
- getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
22326
+ getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
22327
22327
  readonly type: "function";
22328
22328
  readonly name: "batchGetAmount0ForLiquidity";
22329
22329
  readonly inputs: readonly [{
@@ -22944,7 +22944,7 @@ declare const useLens: () => {
22944
22944
  }];
22945
22945
  readonly stateMutability: "pure";
22946
22946
  }], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
22947
- getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
22947
+ getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
22948
22948
  readonly type: "function";
22949
22949
  readonly name: "batchGetAmount0ForLiquidity";
22950
22950
  readonly inputs: readonly [{
@@ -23565,7 +23565,7 @@ declare const useLens: () => {
23565
23565
  }];
23566
23566
  readonly stateMutability: "pure";
23567
23567
  }], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
23568
- getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
23568
+ getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
23569
23569
  readonly type: "function";
23570
23570
  readonly name: "batchGetAmount0ForLiquidity";
23571
23571
  readonly inputs: readonly [{
@@ -24186,7 +24186,7 @@ declare const useLens: () => {
24186
24186
  }];
24187
24187
  readonly stateMutability: "pure";
24188
24188
  }], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
24189
- getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
24189
+ getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
24190
24190
  readonly type: "function";
24191
24191
  readonly name: "batchGetAmount0ForLiquidity";
24192
24192
  readonly inputs: readonly [{
@@ -24807,7 +24807,7 @@ declare const useLens: () => {
24807
24807
  }];
24808
24808
  readonly stateMutability: "pure";
24809
24809
  }], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
24810
- getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
24810
+ getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
24811
24811
  readonly type: "function";
24812
24812
  readonly name: "batchGetAmount0ForLiquidity";
24813
24813
  readonly inputs: readonly [{
@@ -25428,7 +25428,7 @@ declare const useLens: () => {
25428
25428
  }];
25429
25429
  readonly stateMutability: "pure";
25430
25430
  }], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
25431
- getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
25431
+ getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
25432
25432
  readonly type: "function";
25433
25433
  readonly name: "batchGetAmount0ForLiquidity";
25434
25434
  readonly inputs: readonly [{
@@ -26049,7 +26049,7 @@ declare const useLens: () => {
26049
26049
  }];
26050
26050
  readonly stateMutability: "pure";
26051
26051
  }], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26052
- getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
26052
+ getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26053
26053
  readonly type: "function";
26054
26054
  readonly name: "batchGetAmount0ForLiquidity";
26055
26055
  readonly inputs: readonly [{
@@ -26670,7 +26670,7 @@ declare const useLens: () => {
26670
26670
  }];
26671
26671
  readonly stateMutability: "pure";
26672
26672
  }], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26673
- getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
26673
+ getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26674
26674
  readonly type: "function";
26675
26675
  readonly name: "batchGetAmount0ForLiquidity";
26676
26676
  readonly inputs: readonly [{
@@ -27291,7 +27291,7 @@ declare const useLens: () => {
27291
27291
  }];
27292
27292
  readonly stateMutability: "pure";
27293
27293
  }], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
27294
- getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
27294
+ getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
27295
27295
  readonly type: "function";
27296
27296
  readonly name: "batchGetAmount0ForLiquidity";
27297
27297
  readonly inputs: readonly [{
@@ -27912,7 +27912,7 @@ declare const useLens: () => {
27912
27912
  }];
27913
27913
  readonly stateMutability: "pure";
27914
27914
  }], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
27915
- getPriceAtTick: (args: readonly [number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
27915
+ getPriceAtTick: (args: readonly [number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
27916
27916
  readonly type: "function";
27917
27917
  readonly name: "batchGetAmount0ForLiquidity";
27918
27918
  readonly inputs: readonly [{
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import "./uniswapMathLens-BCl11EO1.js";
2
- import { D as TimelockMarketData, O as UniswapMathLens, d as Amount } from "./index-BCwVk3dz.js";
1
+ import "./uniswapMathLens-nYgMLuOt.js";
2
+ import { D as TimelockMarketData, O as UniswapMathLens, d as Amount } from "./index-BSxG0QvH.js";
3
3
  import * as viem249 from "viem";
4
4
  import { Address } from "viem";
5
5
  import React, { ReactNode } from "react";
package/dist/client.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
 
4
- import { r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-gAjmVL6j.js";
5
- import { C as token1ToToken0, D as getUniswapMathLens, E as getTimelockMarket, O as timelockLenses, S as token0ToToken1, T as getTimelockLens, b as roundTickDown, d as wrapPrice, h as getPriceAtTick, k as uniswapMathLenses, l as wrapAmount, m as PRICE_PRECISION, w as getErc20, y as liquiditiesToAmounts } from "./numberUtils-BHnUMxbB.js";
4
+ import { r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-DlorOgXd.js";
5
+ import { C as token1ToToken0, D as getUniswapMathLens, E as getTimelockMarket, O as timelockLenses, S as token0ToToken1, T as getTimelockLens, b as roundTickDown, d as wrapPrice, h as getPriceAtTick, k as uniswapMathLenses, l as wrapAmount, m as PRICE_PRECISION, w as getErc20, y as liquiditiesToAmounts } from "./numberUtils-DmIl8J2d.js";
6
6
  import { n as uniswapV3PoolAbi, t as singleOwnerVaultAbi } from "./singleOwnerVault-BeJChjfJ.js";
7
7
  import { encodeAbiParameters, encodeFunctionData, erc20Abi, maxUint256, zeroAddress } from "viem";
8
8
  import React, { createContext, useContext, useMemo } from "react";
@@ -398,8 +398,7 @@ const useMintOption = (marketAddr) => {
398
398
  duration,
399
399
  0
400
400
  ]);
401
- const maxPremium = (premium + protocolFee * 11n) / 10n;
402
- await askForApproval(payoutAsset, marketAddr, maxPremium);
401
+ await askForApproval(payoutAsset, marketAddr, (premium + protocolFee * 11n) / 10n);
403
402
  const hash$1 = await writeContractAsync({
404
403
  address: marketAddr,
405
404
  abi: optionsMarketAbi,
@@ -409,7 +408,7 @@ const useMintOption = (marketAddr) => {
409
408
  amount,
410
409
  strikeTick,
411
410
  duration,
412
- maxPremium,
411
+ maxUint256,
413
412
  false,
414
413
  await timelockLens.read.getRefTick([vault, strikeTick])
415
414
  ]
@@ -570,15 +569,16 @@ const useExtendOption = (marketAddr) => {
570
569
  const extendOption = async (option, duration) => {
571
570
  if (!client || !address) throw new Error("Wallet not connected");
572
571
  if (!marketAddr || !payoutAsset) throw new Error("Market address not available");
573
- const [premium, protocolFee] = await getTimelockMarket(marketAddr, client).read.calculatePremium([
572
+ const market = getTimelockMarket(marketAddr, client);
573
+ const remainingDuration = Math.max(0, Math.floor((option.expiresAt.getTime() - Date.now()) / 1e3));
574
+ const [premium, protocolFee] = await market.read.calculatePremium([
574
575
  option.optionType === "CALL" ? 0 : 1,
575
576
  option.positionSizeCurrent,
576
577
  option.strikeTick,
577
578
  duration,
578
- Math.floor((option.expiresAt.getTime() - Date.now()) / 1e3)
579
+ remainingDuration
579
580
  ]);
580
- const maxPremium = (premium + protocolFee * 11n) / 10n;
581
- await askForApproval(payoutAsset, marketAddr, maxPremium);
581
+ await askForApproval(payoutAsset, marketAddr, (premium + protocolFee * 11n) / 10n);
582
582
  const hash$1 = await writeContractAsync({
583
583
  address: marketAddr,
584
584
  abi: optionsMarketAbi,
@@ -586,7 +586,7 @@ const useExtendOption = (marketAddr) => {
586
586
  args: [
587
587
  option.optionId,
588
588
  duration,
589
- maxPremium
589
+ maxUint256
590
590
  ]
591
591
  });
592
592
  await waitForTransactionReceipt(client, { hash: hash$1 });