timelock-sdk 0.0.72 → 0.0.74

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
@@ -1059,6 +1059,7 @@ const useVaultTVL = (vaultAddr) => {
1059
1059
  exports.TimelockMarketProvider = TimelockMarketProvider;
1060
1060
  exports.batchGetAmountsFromLiquidity = batchGetAmountsFromLiquidity;
1061
1061
  exports.useActiveUserOptions = useActiveUserOptions;
1062
+ exports.useApproval = useApproval;
1062
1063
  exports.useBurnLiquidity = useBurnLiquidity;
1063
1064
  exports.useClosedUserOptions = useClosedUserOptions;
1064
1065
  exports.useCurrentMarket = useCurrentMarket;
package/dist/client.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./uniswapMathLens-CK8C7WOt.cjs";
2
2
  import { A as UniswapMathLens, k as TimelockMarketData, p as Amount } from "./index-C-uDgfkL.cjs";
3
- import * as viem116 from "viem";
3
+ import * as viem0 from "viem";
4
4
  import { Address } from "viem";
5
5
  import React, { ReactNode } from "react";
6
6
  import "graphql";
@@ -11,9 +11,9 @@ import * as _tanstack_query_core0 from "@tanstack/query-core";
11
11
  import * as _wagmi_core0 from "@wagmi/core";
12
12
 
13
13
  //#region src/generated/graphql.d.ts
14
- type Exact<T$1 extends {
14
+ type Exact<T extends {
15
15
  [key: string]: unknown;
16
- }> = { [K in keyof T$1]: T$1[K] };
16
+ }> = { [K in keyof T]: T[K] };
17
17
  type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
18
18
  /** All built-in and custom scalars, mapped to their actual values */
19
19
  type Scalars = {
@@ -3248,7 +3248,7 @@ declare const useCurrentTick: (poolAddr?: Address) => {
3248
3248
  //#endregion
3249
3249
  //#region src/hooks/pool/usePoolData.d.ts
3250
3250
  type UniswapPoolData = ReturnType<typeof usePoolData>;
3251
- type NonUndefined<T$1> = T$1 extends undefined ? never : T$1;
3251
+ type NonUndefined<T> = T extends undefined ? never : T;
3252
3252
  declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
3253
3253
  token0: `0x${string}`;
3254
3254
  token1: `0x${string}`;
@@ -3295,7 +3295,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
3295
3295
  //#region src/hooks/vault/useLiquidityBlocks.d.ts
3296
3296
  type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
3297
3297
  declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3298
- error: viem116.ReadContractErrorType;
3298
+ error: viem0.ReadContractErrorType;
3299
3299
  isError: true;
3300
3300
  isPending: false;
3301
3301
  isLoading: false;
@@ -3307,7 +3307,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3307
3307
  dataUpdatedAt: number;
3308
3308
  errorUpdatedAt: number;
3309
3309
  failureCount: number;
3310
- failureReason: viem116.ReadContractErrorType | null;
3310
+ failureReason: viem0.ReadContractErrorType | null;
3311
3311
  errorUpdateCount: number;
3312
3312
  isFetched: boolean;
3313
3313
  isFetchedAfterMount: boolean;
@@ -3327,7 +3327,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3327
3327
  totalAmount1: bigint;
3328
3328
  borrowedAmount0: bigint;
3329
3329
  borrowedAmount1: bigint;
3330
- }[], viem116.ReadContractErrorType>>;
3330
+ }[], viem0.ReadContractErrorType>>;
3331
3331
  fetchStatus: _tanstack_query_core0.FetchStatus;
3332
3332
  promise: Promise<readonly {
3333
3333
  tickLower: number;
@@ -3365,7 +3365,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3365
3365
  dataUpdatedAt: number;
3366
3366
  errorUpdatedAt: number;
3367
3367
  failureCount: number;
3368
- failureReason: viem116.ReadContractErrorType | null;
3368
+ failureReason: viem0.ReadContractErrorType | null;
3369
3369
  errorUpdateCount: number;
3370
3370
  isFetched: boolean;
3371
3371
  isFetchedAfterMount: boolean;
@@ -3385,7 +3385,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3385
3385
  totalAmount1: bigint;
3386
3386
  borrowedAmount0: bigint;
3387
3387
  borrowedAmount1: bigint;
3388
- }[], viem116.ReadContractErrorType>>;
3388
+ }[], viem0.ReadContractErrorType>>;
3389
3389
  fetchStatus: _tanstack_query_core0.FetchStatus;
3390
3390
  promise: Promise<readonly {
3391
3391
  tickLower: number;
@@ -3411,7 +3411,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3411
3411
  borrowedAmount1: bigint;
3412
3412
  }[];
3413
3413
  } | {
3414
- error: viem116.ReadContractErrorType;
3414
+ error: viem0.ReadContractErrorType;
3415
3415
  isError: true;
3416
3416
  isPending: false;
3417
3417
  isLoading: false;
@@ -3423,7 +3423,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3423
3423
  dataUpdatedAt: number;
3424
3424
  errorUpdatedAt: number;
3425
3425
  failureCount: number;
3426
- failureReason: viem116.ReadContractErrorType | null;
3426
+ failureReason: viem0.ReadContractErrorType | null;
3427
3427
  errorUpdateCount: number;
3428
3428
  isFetched: boolean;
3429
3429
  isFetchedAfterMount: boolean;
@@ -3443,7 +3443,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3443
3443
  totalAmount1: bigint;
3444
3444
  borrowedAmount0: bigint;
3445
3445
  borrowedAmount1: bigint;
3446
- }[], viem116.ReadContractErrorType>>;
3446
+ }[], viem0.ReadContractErrorType>>;
3447
3447
  fetchStatus: _tanstack_query_core0.FetchStatus;
3448
3448
  promise: Promise<readonly {
3449
3449
  tickLower: number;
@@ -3481,7 +3481,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3481
3481
  dataUpdatedAt: number;
3482
3482
  errorUpdatedAt: number;
3483
3483
  failureCount: number;
3484
- failureReason: viem116.ReadContractErrorType | null;
3484
+ failureReason: viem0.ReadContractErrorType | null;
3485
3485
  errorUpdateCount: number;
3486
3486
  isFetched: boolean;
3487
3487
  isFetchedAfterMount: boolean;
@@ -3501,7 +3501,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3501
3501
  totalAmount1: bigint;
3502
3502
  borrowedAmount0: bigint;
3503
3503
  borrowedAmount1: bigint;
3504
- }[], viem116.ReadContractErrorType>>;
3504
+ }[], viem0.ReadContractErrorType>>;
3505
3505
  fetchStatus: _tanstack_query_core0.FetchStatus;
3506
3506
  promise: Promise<readonly {
3507
3507
  tickLower: number;
@@ -3538,7 +3538,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3538
3538
  dataUpdatedAt: number;
3539
3539
  errorUpdatedAt: number;
3540
3540
  failureCount: number;
3541
- failureReason: viem116.ReadContractErrorType | null;
3541
+ failureReason: viem0.ReadContractErrorType | null;
3542
3542
  errorUpdateCount: number;
3543
3543
  isFetched: boolean;
3544
3544
  isFetchedAfterMount: boolean;
@@ -3559,7 +3559,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3559
3559
  totalAmount1: bigint;
3560
3560
  borrowedAmount0: bigint;
3561
3561
  borrowedAmount1: bigint;
3562
- }[], viem116.ReadContractErrorType>>;
3562
+ }[], viem0.ReadContractErrorType>>;
3563
3563
  fetchStatus: _tanstack_query_core0.FetchStatus;
3564
3564
  promise: Promise<readonly {
3565
3565
  tickLower: number;
@@ -3597,7 +3597,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3597
3597
  dataUpdatedAt: number;
3598
3598
  errorUpdatedAt: number;
3599
3599
  failureCount: number;
3600
- failureReason: viem116.ReadContractErrorType | null;
3600
+ failureReason: viem0.ReadContractErrorType | null;
3601
3601
  errorUpdateCount: number;
3602
3602
  isFetched: boolean;
3603
3603
  isFetchedAfterMount: boolean;
@@ -3617,7 +3617,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
3617
3617
  totalAmount1: bigint;
3618
3618
  borrowedAmount0: bigint;
3619
3619
  borrowedAmount1: bigint;
3620
- }[], viem116.ReadContractErrorType>>;
3620
+ }[], viem0.ReadContractErrorType>>;
3621
3621
  fetchStatus: _tanstack_query_core0.FetchStatus;
3622
3622
  promise: Promise<readonly {
3623
3623
  tickLower: number;
@@ -3690,14 +3690,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
3690
3690
  borrowedAmount0: Amount;
3691
3691
  borrowedAmount1: Amount;
3692
3692
  blocksCount: bigint;
3693
- refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem116.ReadContractErrorType>>;
3693
+ refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem0.ReadContractErrorType>>;
3694
3694
  };
3695
3695
  //#endregion
3696
3696
  //#region src/hooks/useLens.d.ts
3697
3697
  declare const useLens: () => {
3698
3698
  timelockLens: {
3699
3699
  read: {
3700
- batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
3700
+ batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
3701
3701
  readonly type: "function";
3702
3702
  readonly name: "batchGetRefTick";
3703
3703
  readonly inputs: readonly [{
@@ -4371,7 +4371,7 @@ declare const useLens: () => {
4371
4371
  }];
4372
4372
  readonly stateMutability: "view";
4373
4373
  }], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
4374
- getAllBlocks: (args: readonly [`0x${string}`], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
4374
+ getAllBlocks: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
4375
4375
  readonly type: "function";
4376
4376
  readonly name: "batchGetRefTick";
4377
4377
  readonly inputs: readonly [{
@@ -5055,7 +5055,7 @@ declare const useLens: () => {
5055
5055
  borrowedAmount0: bigint;
5056
5056
  borrowedAmount1: bigint;
5057
5057
  }[]>;
5058
- getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
5058
+ getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
5059
5059
  readonly type: "function";
5060
5060
  readonly name: "batchGetRefTick";
5061
5061
  readonly inputs: readonly [{
@@ -5746,7 +5746,7 @@ declare const useLens: () => {
5746
5746
  expiresAt: number;
5747
5747
  liquidities: readonly bigint[];
5748
5748
  }[], bigint, boolean]>;
5749
- getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
5749
+ getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
5750
5750
  readonly type: "function";
5751
5751
  readonly name: "batchGetRefTick";
5752
5752
  readonly inputs: readonly [{
@@ -6420,7 +6420,7 @@ declare const useLens: () => {
6420
6420
  }];
6421
6421
  readonly stateMutability: "view";
6422
6422
  }], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
6423
- getMarketData: (args: readonly [`0x${string}`], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
6423
+ getMarketData: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
6424
6424
  readonly type: "function";
6425
6425
  readonly name: "batchGetRefTick";
6426
6426
  readonly inputs: readonly [{
@@ -7107,7 +7107,7 @@ declare const useLens: () => {
7107
7107
  payoutAssetName: string;
7108
7108
  optionsCount: bigint;
7109
7109
  }>;
7110
- getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
7110
+ getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
7111
7111
  readonly type: "function";
7112
7112
  readonly name: "batchGetRefTick";
7113
7113
  readonly inputs: readonly [{
@@ -7781,7 +7781,7 @@ declare const useLens: () => {
7781
7781
  }];
7782
7782
  readonly stateMutability: "view";
7783
7783
  }], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
7784
- getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
7784
+ getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
7785
7785
  readonly type: "function";
7786
7786
  readonly name: "batchGetRefTick";
7787
7787
  readonly inputs: readonly [{
@@ -8455,7 +8455,7 @@ declare const useLens: () => {
8455
8455
  }];
8456
8456
  readonly stateMutability: "view";
8457
8457
  }], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
8458
- getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
8458
+ getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
8459
8459
  readonly type: "function";
8460
8460
  readonly name: "batchGetRefTick";
8461
8461
  readonly inputs: readonly [{
@@ -9146,7 +9146,7 @@ declare const useLens: () => {
9146
9146
  expiresAt: number;
9147
9147
  liquidities: readonly bigint[];
9148
9148
  }>;
9149
- getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
9149
+ getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
9150
9150
  readonly type: "function";
9151
9151
  readonly name: "batchGetRefTick";
9152
9152
  readonly inputs: readonly [{
@@ -9837,7 +9837,7 @@ declare const useLens: () => {
9837
9837
  expiresAt: number;
9838
9838
  liquidities: readonly bigint[];
9839
9839
  }[]>;
9840
- getPoolData: (args: readonly [`0x${string}`], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
9840
+ getPoolData: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
9841
9841
  readonly type: "function";
9842
9842
  readonly name: "batchGetRefTick";
9843
9843
  readonly inputs: readonly [{
@@ -10522,7 +10522,7 @@ declare const useLens: () => {
10522
10522
  tickSpacing: number;
10523
10523
  fee: number;
10524
10524
  }>;
10525
- getRefTick: (args: readonly [`0x${string}`, number], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
10525
+ getRefTick: (args: readonly [`0x${string}`, number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
10526
10526
  readonly type: "function";
10527
10527
  readonly name: "batchGetRefTick";
10528
10528
  readonly inputs: readonly [{
@@ -11196,7 +11196,7 @@ declare const useLens: () => {
11196
11196
  }];
11197
11197
  readonly stateMutability: "view";
11198
11198
  }], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
11199
- getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
11199
+ getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
11200
11200
  readonly type: "function";
11201
11201
  readonly name: "batchGetRefTick";
11202
11202
  readonly inputs: readonly [{
@@ -11887,7 +11887,7 @@ declare const useLens: () => {
11887
11887
  expiresAt: number;
11888
11888
  liquidities: readonly bigint[];
11889
11889
  }[], bigint, boolean]>;
11890
- getVaultTVL: (args: readonly [`0x${string}`], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
11890
+ getVaultTVL: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
11891
11891
  readonly type: "function";
11892
11892
  readonly name: "batchGetRefTick";
11893
11893
  readonly inputs: readonly [{
@@ -13240,7 +13240,7 @@ declare const useLens: () => {
13240
13240
  } | undefined;
13241
13241
  uniswapLens: {
13242
13242
  read: {
13243
- batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
13243
+ batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
13244
13244
  readonly type: "function";
13245
13245
  readonly name: "batchGetAmount0ForLiquidity";
13246
13246
  readonly inputs: readonly [{
@@ -13861,7 +13861,7 @@ declare const useLens: () => {
13861
13861
  }];
13862
13862
  readonly stateMutability: "pure";
13863
13863
  }], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
13864
- batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
13864
+ batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
13865
13865
  readonly type: "function";
13866
13866
  readonly name: "batchGetAmount0ForLiquidity";
13867
13867
  readonly inputs: readonly [{
@@ -14482,7 +14482,7 @@ declare const useLens: () => {
14482
14482
  }];
14483
14483
  readonly stateMutability: "pure";
14484
14484
  }], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
14485
- batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
14485
+ batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
14486
14486
  readonly type: "function";
14487
14487
  readonly name: "batchGetAmount0ForLiquidity";
14488
14488
  readonly inputs: readonly [{
@@ -15103,7 +15103,7 @@ declare const useLens: () => {
15103
15103
  }];
15104
15104
  readonly stateMutability: "pure";
15105
15105
  }], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
15106
- batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
15106
+ batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
15107
15107
  readonly type: "function";
15108
15108
  readonly name: "batchGetAmount0ForLiquidity";
15109
15109
  readonly inputs: readonly [{
@@ -15724,7 +15724,7 @@ declare const useLens: () => {
15724
15724
  }];
15725
15725
  readonly stateMutability: "pure";
15726
15726
  }], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
15727
- batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
15727
+ batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
15728
15728
  readonly type: "function";
15729
15729
  readonly name: "batchGetAmount0ForLiquidity";
15730
15730
  readonly inputs: readonly [{
@@ -16345,7 +16345,7 @@ declare const useLens: () => {
16345
16345
  }];
16346
16346
  readonly stateMutability: "pure";
16347
16347
  }], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
16348
- batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
16348
+ batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16349
16349
  readonly type: "function";
16350
16350
  readonly name: "batchGetAmount0ForLiquidity";
16351
16351
  readonly inputs: readonly [{
@@ -16966,7 +16966,7 @@ declare const useLens: () => {
16966
16966
  }];
16967
16967
  readonly stateMutability: "pure";
16968
16968
  }], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
16969
- batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
16969
+ batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
16970
16970
  readonly type: "function";
16971
16971
  readonly name: "batchGetAmount0ForLiquidity";
16972
16972
  readonly inputs: readonly [{
@@ -17587,7 +17587,7 @@ declare const useLens: () => {
17587
17587
  }];
17588
17588
  readonly stateMutability: "pure";
17589
17589
  }], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
17590
- batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
17590
+ batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
17591
17591
  readonly type: "function";
17592
17592
  readonly name: "batchGetAmount0ForLiquidity";
17593
17593
  readonly inputs: readonly [{
@@ -18208,7 +18208,7 @@ declare const useLens: () => {
18208
18208
  }];
18209
18209
  readonly stateMutability: "pure";
18210
18210
  }], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
18211
- batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
18211
+ batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
18212
18212
  readonly type: "function";
18213
18213
  readonly name: "batchGetAmount0ForLiquidity";
18214
18214
  readonly inputs: readonly [{
@@ -18829,7 +18829,7 @@ declare const useLens: () => {
18829
18829
  }];
18830
18830
  readonly stateMutability: "pure";
18831
18831
  }], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
18832
- batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
18832
+ batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
18833
18833
  readonly type: "function";
18834
18834
  readonly name: "batchGetAmount0ForLiquidity";
18835
18835
  readonly inputs: readonly [{
@@ -19450,7 +19450,7 @@ declare const useLens: () => {
19450
19450
  }];
19451
19451
  readonly stateMutability: "pure";
19452
19452
  }], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
19453
- batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
19453
+ batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
19454
19454
  readonly type: "function";
19455
19455
  readonly name: "batchGetAmount0ForLiquidity";
19456
19456
  readonly inputs: readonly [{
@@ -20071,7 +20071,7 @@ declare const useLens: () => {
20071
20071
  }];
20072
20072
  readonly stateMutability: "pure";
20073
20073
  }], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
20074
- batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
20074
+ batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
20075
20075
  readonly type: "function";
20076
20076
  readonly name: "batchGetAmount0ForLiquidity";
20077
20077
  readonly inputs: readonly [{
@@ -20692,7 +20692,7 @@ declare const useLens: () => {
20692
20692
  }];
20693
20693
  readonly stateMutability: "pure";
20694
20694
  }], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
20695
- batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
20695
+ batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
20696
20696
  readonly type: "function";
20697
20697
  readonly name: "batchGetAmount0ForLiquidity";
20698
20698
  readonly inputs: readonly [{
@@ -21313,7 +21313,7 @@ declare const useLens: () => {
21313
21313
  }];
21314
21314
  readonly stateMutability: "pure";
21315
21315
  }], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
21316
- getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
21316
+ getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
21317
21317
  readonly type: "function";
21318
21318
  readonly name: "batchGetAmount0ForLiquidity";
21319
21319
  readonly inputs: readonly [{
@@ -21934,7 +21934,7 @@ declare const useLens: () => {
21934
21934
  }];
21935
21935
  readonly stateMutability: "pure";
21936
21936
  }], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
21937
- getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
21937
+ getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
21938
21938
  readonly type: "function";
21939
21939
  readonly name: "batchGetAmount0ForLiquidity";
21940
21940
  readonly inputs: readonly [{
@@ -22555,7 +22555,7 @@ declare const useLens: () => {
22555
22555
  }];
22556
22556
  readonly stateMutability: "pure";
22557
22557
  }], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
22558
- getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
22558
+ getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
22559
22559
  readonly type: "function";
22560
22560
  readonly name: "batchGetAmount0ForLiquidity";
22561
22561
  readonly inputs: readonly [{
@@ -23176,7 +23176,7 @@ declare const useLens: () => {
23176
23176
  }];
23177
23177
  readonly stateMutability: "pure";
23178
23178
  }], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
23179
- getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
23179
+ getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
23180
23180
  readonly type: "function";
23181
23181
  readonly name: "batchGetAmount0ForLiquidity";
23182
23182
  readonly inputs: readonly [{
@@ -23797,7 +23797,7 @@ declare const useLens: () => {
23797
23797
  }];
23798
23798
  readonly stateMutability: "pure";
23799
23799
  }], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
23800
- getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
23800
+ getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
23801
23801
  readonly type: "function";
23802
23802
  readonly name: "batchGetAmount0ForLiquidity";
23803
23803
  readonly inputs: readonly [{
@@ -24418,7 +24418,7 @@ declare const useLens: () => {
24418
24418
  }];
24419
24419
  readonly stateMutability: "pure";
24420
24420
  }], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
24421
- getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
24421
+ getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
24422
24422
  readonly type: "function";
24423
24423
  readonly name: "batchGetAmount0ForLiquidity";
24424
24424
  readonly inputs: readonly [{
@@ -25039,7 +25039,7 @@ declare const useLens: () => {
25039
25039
  }];
25040
25040
  readonly stateMutability: "pure";
25041
25041
  }], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
25042
- getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
25042
+ getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
25043
25043
  readonly type: "function";
25044
25044
  readonly name: "batchGetAmount0ForLiquidity";
25045
25045
  readonly inputs: readonly [{
@@ -25660,7 +25660,7 @@ declare const useLens: () => {
25660
25660
  }];
25661
25661
  readonly stateMutability: "pure";
25662
25662
  }], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
25663
- getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
25663
+ getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
25664
25664
  readonly type: "function";
25665
25665
  readonly name: "batchGetAmount0ForLiquidity";
25666
25666
  readonly inputs: readonly [{
@@ -26281,7 +26281,7 @@ declare const useLens: () => {
26281
26281
  }];
26282
26282
  readonly stateMutability: "pure";
26283
26283
  }], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26284
- getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
26284
+ getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
26285
26285
  readonly type: "function";
26286
26286
  readonly name: "batchGetAmount0ForLiquidity";
26287
26287
  readonly inputs: readonly [{
@@ -26902,7 +26902,7 @@ declare const useLens: () => {
26902
26902
  }];
26903
26903
  readonly stateMutability: "pure";
26904
26904
  }], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26905
- getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
26905
+ getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
26906
26906
  readonly type: "function";
26907
26907
  readonly name: "batchGetAmount0ForLiquidity";
26908
26908
  readonly inputs: readonly [{
@@ -27523,7 +27523,7 @@ declare const useLens: () => {
27523
27523
  }];
27524
27524
  readonly stateMutability: "pure";
27525
27525
  }], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
27526
- getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
27526
+ getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
27527
27527
  readonly type: "function";
27528
27528
  readonly name: "batchGetAmount0ForLiquidity";
27529
27529
  readonly inputs: readonly [{
@@ -28144,7 +28144,7 @@ declare const useLens: () => {
28144
28144
  }];
28145
28145
  readonly stateMutability: "pure";
28146
28146
  }], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
28147
- getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
28147
+ getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
28148
28148
  readonly type: "function";
28149
28149
  readonly name: "batchGetAmount0ForLiquidity";
28150
28150
  readonly inputs: readonly [{
@@ -28765,7 +28765,7 @@ declare const useLens: () => {
28765
28765
  }];
28766
28766
  readonly stateMutability: "pure";
28767
28767
  }], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
28768
- getPriceAtTick: (args: readonly [number], options?: viem116.Prettify<viem116.UnionOmit<viem116.ReadContractParameters<readonly [{
28768
+ getPriceAtTick: (args: readonly [number], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
28769
28769
  readonly type: "function";
28770
28770
  readonly name: "batchGetAmount0ForLiquidity";
28771
28771
  readonly inputs: readonly [{
@@ -30012,5 +30012,14 @@ declare const useLens: () => {
30012
30012
  } | undefined;
30013
30013
  };
30014
30014
  //#endregion
30015
- export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, useActiveUserOptions, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useExtendOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, usePriceHistory, useSetOperatorPerms, useTimelockConfig, useUserOperators, useVaultData, useVaultTVL };
30015
+ //#region src/hooks/useApproval.d.ts
30016
+ declare const useApproval: () => {
30017
+ askForApproval: (tokenAddress: Address, spenderAddress: Address, amount: bigint) => Promise<void>;
30018
+ hash: `0x${string}` | undefined;
30019
+ isPending: boolean;
30020
+ error: _wagmi_core0.WriteContractErrorType | null;
30021
+ reset: () => void;
30022
+ };
30023
+ //#endregion
30024
+ export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, useActiveUserOptions, useApproval, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useExtendOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, usePriceHistory, useSetOperatorPerms, useTimelockConfig, useUserOperators, useVaultData, useVaultTVL };
30016
30025
  //# sourceMappingURL=client.d.cts.map