timelock-sdk 0.0.32 → 0.0.34

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.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./uniswapMathLens-MrB_VfJB.js";
2
2
  import { Amount, TimelockMarketData, UniswapMathLens } from "./index-CRhFaRiq.js";
3
- import * as viem250 from "viem";
3
+ import * as viem249 from "viem";
4
4
  import { Address } from "viem";
5
5
  import React, { ReactNode } from "react";
6
6
  import { GraphQLClient, RequestOptions } from "graphql-request";
@@ -2242,7 +2242,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
2242
2242
  //#region src/hooks/vault/useLiquidityBlocks.d.ts
2243
2243
  type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
2244
2244
  declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2245
- error: viem250.ReadContractErrorType;
2245
+ error: viem249.ReadContractErrorType;
2246
2246
  isError: true;
2247
2247
  isPending: false;
2248
2248
  isLoading: false;
@@ -2254,7 +2254,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2254
2254
  dataUpdatedAt: number;
2255
2255
  errorUpdatedAt: number;
2256
2256
  failureCount: number;
2257
- failureReason: viem250.ReadContractErrorType | null;
2257
+ failureReason: viem249.ReadContractErrorType | null;
2258
2258
  errorUpdateCount: number;
2259
2259
  isFetched: boolean;
2260
2260
  isFetchedAfterMount: boolean;
@@ -2274,7 +2274,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2274
2274
  totalAmount1: bigint;
2275
2275
  borrowedAmount0: bigint;
2276
2276
  borrowedAmount1: bigint;
2277
- }[], viem250.ReadContractErrorType>>;
2277
+ }[], viem249.ReadContractErrorType>>;
2278
2278
  fetchStatus: _tanstack_query_core0.FetchStatus;
2279
2279
  promise: Promise<readonly {
2280
2280
  tickLower: number;
@@ -2312,7 +2312,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2312
2312
  dataUpdatedAt: number;
2313
2313
  errorUpdatedAt: number;
2314
2314
  failureCount: number;
2315
- failureReason: viem250.ReadContractErrorType | null;
2315
+ failureReason: viem249.ReadContractErrorType | null;
2316
2316
  errorUpdateCount: number;
2317
2317
  isFetched: boolean;
2318
2318
  isFetchedAfterMount: boolean;
@@ -2332,7 +2332,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2332
2332
  totalAmount1: bigint;
2333
2333
  borrowedAmount0: bigint;
2334
2334
  borrowedAmount1: bigint;
2335
- }[], viem250.ReadContractErrorType>>;
2335
+ }[], viem249.ReadContractErrorType>>;
2336
2336
  fetchStatus: _tanstack_query_core0.FetchStatus;
2337
2337
  promise: Promise<readonly {
2338
2338
  tickLower: number;
@@ -2358,7 +2358,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2358
2358
  borrowedAmount1: bigint;
2359
2359
  }[];
2360
2360
  } | {
2361
- error: viem250.ReadContractErrorType;
2361
+ error: viem249.ReadContractErrorType;
2362
2362
  isError: true;
2363
2363
  isPending: false;
2364
2364
  isLoading: false;
@@ -2370,7 +2370,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2370
2370
  dataUpdatedAt: number;
2371
2371
  errorUpdatedAt: number;
2372
2372
  failureCount: number;
2373
- failureReason: viem250.ReadContractErrorType | null;
2373
+ failureReason: viem249.ReadContractErrorType | null;
2374
2374
  errorUpdateCount: number;
2375
2375
  isFetched: boolean;
2376
2376
  isFetchedAfterMount: boolean;
@@ -2390,7 +2390,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2390
2390
  totalAmount1: bigint;
2391
2391
  borrowedAmount0: bigint;
2392
2392
  borrowedAmount1: bigint;
2393
- }[], viem250.ReadContractErrorType>>;
2393
+ }[], viem249.ReadContractErrorType>>;
2394
2394
  fetchStatus: _tanstack_query_core0.FetchStatus;
2395
2395
  promise: Promise<readonly {
2396
2396
  tickLower: number;
@@ -2428,7 +2428,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2428
2428
  dataUpdatedAt: number;
2429
2429
  errorUpdatedAt: number;
2430
2430
  failureCount: number;
2431
- failureReason: viem250.ReadContractErrorType | null;
2431
+ failureReason: viem249.ReadContractErrorType | null;
2432
2432
  errorUpdateCount: number;
2433
2433
  isFetched: boolean;
2434
2434
  isFetchedAfterMount: boolean;
@@ -2448,7 +2448,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2448
2448
  totalAmount1: bigint;
2449
2449
  borrowedAmount0: bigint;
2450
2450
  borrowedAmount1: bigint;
2451
- }[], viem250.ReadContractErrorType>>;
2451
+ }[], viem249.ReadContractErrorType>>;
2452
2452
  fetchStatus: _tanstack_query_core0.FetchStatus;
2453
2453
  promise: Promise<readonly {
2454
2454
  tickLower: number;
@@ -2485,7 +2485,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2485
2485
  dataUpdatedAt: number;
2486
2486
  errorUpdatedAt: number;
2487
2487
  failureCount: number;
2488
- failureReason: viem250.ReadContractErrorType | null;
2488
+ failureReason: viem249.ReadContractErrorType | null;
2489
2489
  errorUpdateCount: number;
2490
2490
  isFetched: boolean;
2491
2491
  isFetchedAfterMount: boolean;
@@ -2506,7 +2506,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2506
2506
  totalAmount1: bigint;
2507
2507
  borrowedAmount0: bigint;
2508
2508
  borrowedAmount1: bigint;
2509
- }[], viem250.ReadContractErrorType>>;
2509
+ }[], viem249.ReadContractErrorType>>;
2510
2510
  fetchStatus: _tanstack_query_core0.FetchStatus;
2511
2511
  promise: Promise<readonly {
2512
2512
  tickLower: number;
@@ -2544,7 +2544,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2544
2544
  dataUpdatedAt: number;
2545
2545
  errorUpdatedAt: number;
2546
2546
  failureCount: number;
2547
- failureReason: viem250.ReadContractErrorType | null;
2547
+ failureReason: viem249.ReadContractErrorType | null;
2548
2548
  errorUpdateCount: number;
2549
2549
  isFetched: boolean;
2550
2550
  isFetchedAfterMount: boolean;
@@ -2564,7 +2564,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2564
2564
  totalAmount1: bigint;
2565
2565
  borrowedAmount0: bigint;
2566
2566
  borrowedAmount1: bigint;
2567
- }[], viem250.ReadContractErrorType>>;
2567
+ }[], viem249.ReadContractErrorType>>;
2568
2568
  fetchStatus: _tanstack_query_core0.FetchStatus;
2569
2569
  promise: Promise<readonly {
2570
2570
  tickLower: number;
@@ -2637,14 +2637,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
2637
2637
  borrowedAmount0: Amount;
2638
2638
  borrowedAmount1: Amount;
2639
2639
  blocksCount: bigint;
2640
- refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem250.ReadContractErrorType>>;
2640
+ refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem249.ReadContractErrorType>>;
2641
2641
  };
2642
2642
  //#endregion
2643
2643
  //#region src/hooks/useLens.d.ts
2644
2644
  declare const useLens: () => {
2645
2645
  timelockLens: {
2646
2646
  read: {
2647
- batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
2647
+ batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
2648
2648
  readonly type: "function";
2649
2649
  readonly name: "batchGetRefTick";
2650
2650
  readonly inputs: readonly [{
@@ -3350,7 +3350,7 @@ declare const useLens: () => {
3350
3350
  }];
3351
3351
  readonly stateMutability: "view";
3352
3352
  }], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
3353
- getAllBlocks: (args: readonly [`0x${string}`], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
3353
+ getAllBlocks: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
3354
3354
  readonly type: "function";
3355
3355
  readonly name: "batchGetRefTick";
3356
3356
  readonly inputs: readonly [{
@@ -4066,7 +4066,7 @@ declare const useLens: () => {
4066
4066
  borrowedAmount0: bigint;
4067
4067
  borrowedAmount1: bigint;
4068
4068
  }[]>;
4069
- getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
4069
+ getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4070
4070
  readonly type: "function";
4071
4071
  readonly name: "batchGetRefTick";
4072
4072
  readonly inputs: readonly [{
@@ -4791,7 +4791,7 @@ declare const useLens: () => {
4791
4791
  createdAt: bigint;
4792
4792
  liquidities: readonly bigint[];
4793
4793
  }[], bigint, boolean]>;
4794
- getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
4794
+ getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4795
4795
  readonly type: "function";
4796
4796
  readonly name: "batchGetRefTick";
4797
4797
  readonly inputs: readonly [{
@@ -5497,7 +5497,7 @@ declare const useLens: () => {
5497
5497
  }];
5498
5498
  readonly stateMutability: "view";
5499
5499
  }], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
5500
- getMarketData: (args: readonly [`0x${string}`], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
5500
+ getMarketData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
5501
5501
  readonly type: "function";
5502
5502
  readonly name: "batchGetRefTick";
5503
5503
  readonly inputs: readonly [{
@@ -6216,7 +6216,7 @@ declare const useLens: () => {
6216
6216
  payoutAssetName: string;
6217
6217
  optionsCount: bigint;
6218
6218
  }>;
6219
- getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
6219
+ getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6220
6220
  readonly type: "function";
6221
6221
  readonly name: "batchGetRefTick";
6222
6222
  readonly inputs: readonly [{
@@ -6922,7 +6922,7 @@ declare const useLens: () => {
6922
6922
  }];
6923
6923
  readonly stateMutability: "view";
6924
6924
  }], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
6925
- getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
6925
+ getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6926
6926
  readonly type: "function";
6927
6927
  readonly name: "batchGetRefTick";
6928
6928
  readonly inputs: readonly [{
@@ -7628,7 +7628,7 @@ declare const useLens: () => {
7628
7628
  }];
7629
7629
  readonly stateMutability: "view";
7630
7630
  }], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
7631
- getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
7631
+ getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
7632
7632
  readonly type: "function";
7633
7633
  readonly name: "batchGetRefTick";
7634
7634
  readonly inputs: readonly [{
@@ -8353,7 +8353,7 @@ declare const useLens: () => {
8353
8353
  createdAt: bigint;
8354
8354
  liquidities: readonly bigint[];
8355
8355
  }>;
8356
- getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
8356
+ getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
8357
8357
  readonly type: "function";
8358
8358
  readonly name: "batchGetRefTick";
8359
8359
  readonly inputs: readonly [{
@@ -9078,7 +9078,7 @@ declare const useLens: () => {
9078
9078
  createdAt: bigint;
9079
9079
  liquidities: readonly bigint[];
9080
9080
  }[]>;
9081
- getPoolData: (args: readonly [`0x${string}`], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
9081
+ getPoolData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
9082
9082
  readonly type: "function";
9083
9083
  readonly name: "batchGetRefTick";
9084
9084
  readonly inputs: readonly [{
@@ -9795,7 +9795,7 @@ declare const useLens: () => {
9795
9795
  tickSpacing: number;
9796
9796
  fee: number;
9797
9797
  }>;
9798
- getRefTick: (args: readonly [`0x${string}`, number], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
9798
+ getRefTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
9799
9799
  readonly type: "function";
9800
9800
  readonly name: "batchGetRefTick";
9801
9801
  readonly inputs: readonly [{
@@ -10501,7 +10501,7 @@ declare const useLens: () => {
10501
10501
  }];
10502
10502
  readonly stateMutability: "view";
10503
10503
  }], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
10504
- getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
10504
+ getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
10505
10505
  readonly type: "function";
10506
10506
  readonly name: "batchGetRefTick";
10507
10507
  readonly inputs: readonly [{
@@ -11226,7 +11226,7 @@ declare const useLens: () => {
11226
11226
  createdAt: bigint;
11227
11227
  liquidities: readonly bigint[];
11228
11228
  }[], bigint, boolean]>;
11229
- getVaultTVL: (args: readonly [`0x${string}`], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
11229
+ getVaultTVL: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
11230
11230
  readonly type: "function";
11231
11231
  readonly name: "batchGetRefTick";
11232
11232
  readonly inputs: readonly [{
@@ -12643,7 +12643,7 @@ declare const useLens: () => {
12643
12643
  } | undefined;
12644
12644
  uniswapLens: {
12645
12645
  read: {
12646
- batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
12646
+ batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
12647
12647
  readonly type: "function";
12648
12648
  readonly name: "batchGetAmount0ForLiquidity";
12649
12649
  readonly inputs: readonly [{
@@ -13264,7 +13264,7 @@ declare const useLens: () => {
13264
13264
  }];
13265
13265
  readonly stateMutability: "pure";
13266
13266
  }], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
13267
- batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
13267
+ batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
13268
13268
  readonly type: "function";
13269
13269
  readonly name: "batchGetAmount0ForLiquidity";
13270
13270
  readonly inputs: readonly [{
@@ -13885,7 +13885,7 @@ declare const useLens: () => {
13885
13885
  }];
13886
13886
  readonly stateMutability: "pure";
13887
13887
  }], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
13888
- batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
13888
+ batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
13889
13889
  readonly type: "function";
13890
13890
  readonly name: "batchGetAmount0ForLiquidity";
13891
13891
  readonly inputs: readonly [{
@@ -14506,7 +14506,7 @@ declare const useLens: () => {
14506
14506
  }];
14507
14507
  readonly stateMutability: "pure";
14508
14508
  }], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
14509
- batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
14509
+ batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
14510
14510
  readonly type: "function";
14511
14511
  readonly name: "batchGetAmount0ForLiquidity";
14512
14512
  readonly inputs: readonly [{
@@ -15127,7 +15127,7 @@ declare const useLens: () => {
15127
15127
  }];
15128
15128
  readonly stateMutability: "pure";
15129
15129
  }], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
15130
- batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
15130
+ batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
15131
15131
  readonly type: "function";
15132
15132
  readonly name: "batchGetAmount0ForLiquidity";
15133
15133
  readonly inputs: readonly [{
@@ -15748,7 +15748,7 @@ declare const useLens: () => {
15748
15748
  }];
15749
15749
  readonly stateMutability: "pure";
15750
15750
  }], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
15751
- batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
15751
+ batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
15752
15752
  readonly type: "function";
15753
15753
  readonly name: "batchGetAmount0ForLiquidity";
15754
15754
  readonly inputs: readonly [{
@@ -16369,7 +16369,7 @@ declare const useLens: () => {
16369
16369
  }];
16370
16370
  readonly stateMutability: "pure";
16371
16371
  }], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
16372
- batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
16372
+ batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
16373
16373
  readonly type: "function";
16374
16374
  readonly name: "batchGetAmount0ForLiquidity";
16375
16375
  readonly inputs: readonly [{
@@ -16990,7 +16990,7 @@ declare const useLens: () => {
16990
16990
  }];
16991
16991
  readonly stateMutability: "pure";
16992
16992
  }], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
16993
- batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
16993
+ batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
16994
16994
  readonly type: "function";
16995
16995
  readonly name: "batchGetAmount0ForLiquidity";
16996
16996
  readonly inputs: readonly [{
@@ -17611,7 +17611,7 @@ declare const useLens: () => {
17611
17611
  }];
17612
17612
  readonly stateMutability: "pure";
17613
17613
  }], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
17614
- batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
17614
+ batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
17615
17615
  readonly type: "function";
17616
17616
  readonly name: "batchGetAmount0ForLiquidity";
17617
17617
  readonly inputs: readonly [{
@@ -18232,7 +18232,7 @@ declare const useLens: () => {
18232
18232
  }];
18233
18233
  readonly stateMutability: "pure";
18234
18234
  }], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
18235
- batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
18235
+ batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
18236
18236
  readonly type: "function";
18237
18237
  readonly name: "batchGetAmount0ForLiquidity";
18238
18238
  readonly inputs: readonly [{
@@ -18853,7 +18853,7 @@ declare const useLens: () => {
18853
18853
  }];
18854
18854
  readonly stateMutability: "pure";
18855
18855
  }], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
18856
- batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
18856
+ batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
18857
18857
  readonly type: "function";
18858
18858
  readonly name: "batchGetAmount0ForLiquidity";
18859
18859
  readonly inputs: readonly [{
@@ -19474,7 +19474,7 @@ declare const useLens: () => {
19474
19474
  }];
19475
19475
  readonly stateMutability: "pure";
19476
19476
  }], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
19477
- batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
19477
+ batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
19478
19478
  readonly type: "function";
19479
19479
  readonly name: "batchGetAmount0ForLiquidity";
19480
19480
  readonly inputs: readonly [{
@@ -20095,7 +20095,7 @@ declare const useLens: () => {
20095
20095
  }];
20096
20096
  readonly stateMutability: "pure";
20097
20097
  }], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
20098
- batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
20098
+ batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
20099
20099
  readonly type: "function";
20100
20100
  readonly name: "batchGetAmount0ForLiquidity";
20101
20101
  readonly inputs: readonly [{
@@ -20716,7 +20716,7 @@ declare const useLens: () => {
20716
20716
  }];
20717
20717
  readonly stateMutability: "pure";
20718
20718
  }], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
20719
- getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
20719
+ getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
20720
20720
  readonly type: "function";
20721
20721
  readonly name: "batchGetAmount0ForLiquidity";
20722
20722
  readonly inputs: readonly [{
@@ -21337,7 +21337,7 @@ declare const useLens: () => {
21337
21337
  }];
21338
21338
  readonly stateMutability: "pure";
21339
21339
  }], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
21340
- getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
21340
+ getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21341
21341
  readonly type: "function";
21342
21342
  readonly name: "batchGetAmount0ForLiquidity";
21343
21343
  readonly inputs: readonly [{
@@ -21958,7 +21958,7 @@ declare const useLens: () => {
21958
21958
  }];
21959
21959
  readonly stateMutability: "pure";
21960
21960
  }], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
21961
- getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
21961
+ getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21962
21962
  readonly type: "function";
21963
21963
  readonly name: "batchGetAmount0ForLiquidity";
21964
21964
  readonly inputs: readonly [{
@@ -22579,7 +22579,7 @@ declare const useLens: () => {
22579
22579
  }];
22580
22580
  readonly stateMutability: "pure";
22581
22581
  }], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
22582
- getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
22582
+ getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
22583
22583
  readonly type: "function";
22584
22584
  readonly name: "batchGetAmount0ForLiquidity";
22585
22585
  readonly inputs: readonly [{
@@ -23200,7 +23200,7 @@ declare const useLens: () => {
23200
23200
  }];
23201
23201
  readonly stateMutability: "pure";
23202
23202
  }], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
23203
- getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
23203
+ getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
23204
23204
  readonly type: "function";
23205
23205
  readonly name: "batchGetAmount0ForLiquidity";
23206
23206
  readonly inputs: readonly [{
@@ -23821,7 +23821,7 @@ declare const useLens: () => {
23821
23821
  }];
23822
23822
  readonly stateMutability: "pure";
23823
23823
  }], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
23824
- getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
23824
+ getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
23825
23825
  readonly type: "function";
23826
23826
  readonly name: "batchGetAmount0ForLiquidity";
23827
23827
  readonly inputs: readonly [{
@@ -24442,7 +24442,7 @@ declare const useLens: () => {
24442
24442
  }];
24443
24443
  readonly stateMutability: "pure";
24444
24444
  }], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
24445
- getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
24445
+ getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
24446
24446
  readonly type: "function";
24447
24447
  readonly name: "batchGetAmount0ForLiquidity";
24448
24448
  readonly inputs: readonly [{
@@ -25063,7 +25063,7 @@ declare const useLens: () => {
25063
25063
  }];
25064
25064
  readonly stateMutability: "pure";
25065
25065
  }], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
25066
- getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
25066
+ getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
25067
25067
  readonly type: "function";
25068
25068
  readonly name: "batchGetAmount0ForLiquidity";
25069
25069
  readonly inputs: readonly [{
@@ -25684,7 +25684,7 @@ declare const useLens: () => {
25684
25684
  }];
25685
25685
  readonly stateMutability: "pure";
25686
25686
  }], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
25687
- getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
25687
+ getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
25688
25688
  readonly type: "function";
25689
25689
  readonly name: "batchGetAmount0ForLiquidity";
25690
25690
  readonly inputs: readonly [{
@@ -26305,7 +26305,7 @@ declare const useLens: () => {
26305
26305
  }];
26306
26306
  readonly stateMutability: "pure";
26307
26307
  }], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26308
- getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
26308
+ getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26309
26309
  readonly type: "function";
26310
26310
  readonly name: "batchGetAmount0ForLiquidity";
26311
26311
  readonly inputs: readonly [{
@@ -26926,7 +26926,7 @@ declare const useLens: () => {
26926
26926
  }];
26927
26927
  readonly stateMutability: "pure";
26928
26928
  }], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
26929
- getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
26929
+ getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26930
26930
  readonly type: "function";
26931
26931
  readonly name: "batchGetAmount0ForLiquidity";
26932
26932
  readonly inputs: readonly [{
@@ -27547,7 +27547,7 @@ declare const useLens: () => {
27547
27547
  }];
27548
27548
  readonly stateMutability: "pure";
27549
27549
  }], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
27550
- getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
27550
+ getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
27551
27551
  readonly type: "function";
27552
27552
  readonly name: "batchGetAmount0ForLiquidity";
27553
27553
  readonly inputs: readonly [{
@@ -28168,7 +28168,7 @@ declare const useLens: () => {
28168
28168
  }];
28169
28169
  readonly stateMutability: "pure";
28170
28170
  }], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
28171
- getPriceAtTick: (args: readonly [number], options?: viem250.Prettify<viem250.UnionOmit<viem250.ReadContractParameters<readonly [{
28171
+ getPriceAtTick: (args: readonly [number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
28172
28172
  readonly type: "function";
28173
28173
  readonly name: "batchGetAmount0ForLiquidity";
28174
28174
  readonly inputs: readonly [{
package/dist/client.js CHANGED
@@ -413,8 +413,9 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strike
413
413
  const { exact: currentTick } = useCurrentTick(pool);
414
414
  const strikeTickRounded = useMemo(() => {
415
415
  if (!tickSpacing || currentTick === void 0) return;
416
- strikeTick = roundTickDown(strikeTick ?? currentTick, tickSpacing);
417
- if (optionType === "CALL" && optionAssetIsToken0 || optionType === "PUT" && !optionAssetIsToken0) strikeTick += tickSpacing;
416
+ let strikeTickRounded$1 = roundTickDown(strikeTick ?? currentTick, tickSpacing);
417
+ if (optionType === "CALL" && optionAssetIsToken0 || optionType === "PUT" && !optionAssetIsToken0) strikeTickRounded$1 += tickSpacing;
418
+ return strikeTickRounded$1;
418
419
  }, [
419
420
  currentTick,
420
421
  tickSpacing,
@@ -426,12 +427,12 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strike
426
427
  address: marketAddr,
427
428
  abi: optionsMarketAbi,
428
429
  functionName: "calculatePremium",
429
- args: [
430
+ args: strikeTickRounded !== void 0 ? [
430
431
  optionType === "CALL" ? 0 : 1,
431
432
  optionAmount,
432
433
  strikeTickRounded,
433
434
  BigInt(duration)
434
- ],
435
+ ] : void 0,
435
436
  query: { enabled: strikeTickRounded !== void 0 }
436
437
  });
437
438
  return useMemo(() => {