timelock-sdk 0.0.16 → 0.0.17

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,5 +1,6 @@
1
- import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-D65Sb-VK.js";
2
- import * as viem382 from "viem";
1
+ import "./uniswapMathLens-SWLgAikn.js";
2
+ import { Amount, TimelockMarketData, UniswapMathLens } from "./index-DyZhOGnP.js";
3
+ import * as viem249 from "viem";
3
4
  import { Address } from "viem";
4
5
  import React, { ReactNode } from "react";
5
6
  import { GraphQLClient } from "graphql-request";
@@ -51,8 +52,6 @@ type Scalars = {
51
52
  output: any;
52
53
  };
53
54
  };
54
- /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */
55
-
56
55
  type GetActiveUserOptionsQueryVariables = Exact<{
57
56
  user: Scalars['String']['input'];
58
57
  }>;
@@ -169,7 +168,7 @@ declare const useTimelockConfig: () => {
169
168
  };
170
169
  //#endregion
171
170
  //#region src/hooks/market/useExerciseOption.d.ts
172
- declare const useExerciseOption: (market?: Address | TimelockMarket) => {
171
+ declare const useExerciseOption: (marketAddr?: Address) => {
173
172
  exerciseOption: (optionId: bigint, liquidities: readonly bigint[]) => Promise<`0x${string}`>;
174
173
  hash: `0x${string}` | undefined;
175
174
  isPending: boolean;
@@ -180,7 +179,7 @@ declare const useExerciseOption: (market?: Address | TimelockMarket) => {
180
179
  };
181
180
  //#endregion
182
181
  //#region src/hooks/market/useMarketData.d.ts
183
- declare const useMarketData: (market?: Address | TimelockMarket) => Partial<NonUndefinedGuard<{
182
+ declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
184
183
  pool: Address;
185
184
  vault: Address;
186
185
  optionAsset: Address;
@@ -200,14 +199,14 @@ declare const useMarketData: (market?: Address | TimelockMarket) => Partial<NonU
200
199
  } | undefined>>;
201
200
  //#endregion
202
201
  //#region src/hooks/market/useMaxPositionSize.d.ts
203
- declare const useMaxPositionSize: (market: Address | TimelockMarket | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
202
+ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
204
203
  maxCallSize: Amount | undefined;
205
204
  maxPutSize: Amount | undefined;
206
205
  refetch: () => void;
207
206
  };
208
207
  //#endregion
209
208
  //#region src/hooks/market/useMintOption.d.ts
210
- declare const useMintOption: (market?: Address | TimelockMarket) => {
209
+ declare const useMintOption: (marketAddr?: Address) => {
211
210
  mintOption: (optionType: "CALL" | "PUT", amount: bigint, duration: number, strikeTick?: number) => Promise<`0x${string}`>;
212
211
  hash: `0x${string}` | undefined;
213
212
  isPending: boolean;
@@ -229,7 +228,7 @@ declare const useOptionPnl: (optionData: {
229
228
  };
230
229
  //#endregion
231
230
  //#region src/hooks/market/useOptionPremium.d.ts
232
- declare const useOptionPremium: (market: Address | TimelockMarket | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, duration: number) => Amount | undefined;
231
+ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, duration: number) => Amount | undefined;
233
232
  //#endregion
234
233
  //#region src/hooks/market/useUserOptions.d.ts
235
234
  type OptionData = ReturnType<typeof useUserOptions>['data'][0];
@@ -2182,28 +2181,24 @@ declare const useClosedUserOptions: (user?: string) => {
2182
2181
  };
2183
2182
  //#endregion
2184
2183
  //#region src/hooks/pool/useCurrentPrice.d.ts
2185
- declare const useCurrentPrice: (pool?: Address | UniswapPool) => {
2184
+ declare const useCurrentPrice: (poolAddr?: Address) => {
2186
2185
  currentPrice: Amount | undefined;
2187
2186
  currentTick: {
2188
- exact?: number;
2189
- rounded?: number;
2187
+ exact: number | undefined;
2188
+ rounded: number | undefined;
2190
2189
  };
2191
2190
  };
2192
2191
  //#endregion
2193
2192
  //#region src/hooks/pool/useCurrentTick.d.ts
2194
- declare const getCurrentTick: (pool: UniswapPool) => Promise<{
2195
- exact: number;
2196
- rounded: number;
2197
- }>;
2198
- declare const useCurrentTick: (pool?: Address | UniswapPool) => {
2199
- exact?: number;
2200
- rounded?: number;
2193
+ declare const useCurrentTick: (poolAddr?: Address) => {
2194
+ exact: number | undefined;
2195
+ rounded: number | undefined;
2201
2196
  };
2202
2197
  //#endregion
2203
2198
  //#region src/hooks/pool/usePoolData.d.ts
2204
2199
  type UniswapPoolData = ReturnType<typeof usePoolData>;
2205
2200
  type NonUndefined<T> = T extends undefined ? never : T;
2206
- declare const usePoolData: (pool?: Address | UniswapPool) => Partial<NonUndefined<{
2201
+ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
2207
2202
  token0: `0x${string}`;
2208
2203
  token1: `0x${string}`;
2209
2204
  token0Decimals: number;
@@ -2217,7 +2212,7 @@ declare const usePoolData: (pool?: Address | UniswapPool) => Partial<NonUndefine
2217
2212
  } | undefined>>;
2218
2213
  //#endregion
2219
2214
  //#region src/hooks/pool/usePriceAtTick.d.ts
2220
- declare const usePriceAtTick: (tick?: number, pool?: Address | UniswapPool) => Amount | undefined;
2215
+ declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
2221
2216
  //#endregion
2222
2217
  //#region src/hooks/vault/useBurnLiquidity.d.ts
2223
2218
  interface BurnPosition {
@@ -2225,7 +2220,7 @@ interface BurnPosition {
2225
2220
  tickUpper: number;
2226
2221
  liquidity: bigint;
2227
2222
  }
2228
- declare const useBurnLiquidity: (vault?: Address | TimelockVault) => {
2223
+ declare const useBurnLiquidity: (vaultAddr?: Address) => {
2229
2224
  burnMultiple: (positions: BurnPosition[]) => Promise<void>;
2230
2225
  burn: (tickLower: number, tickUpper: number, liquidity: bigint) => Promise<`0x${string}`>;
2231
2226
  hash: `0x${string}` | undefined;
@@ -2238,7 +2233,7 @@ declare const useBurnLiquidity: (vault?: Address | TimelockVault) => {
2238
2233
  //#endregion
2239
2234
  //#region src/hooks/vault/useLiquidityBlocks.d.ts
2240
2235
  type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['blocks'][0];
2241
- declare const useLiquidityBlocks: (vault?: Address | TimelockVault) => {
2236
+ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
2242
2237
  tvl1: Amount | undefined;
2243
2238
  blocks: readonly {
2244
2239
  tickLower: number;
@@ -2280,7 +2275,7 @@ interface MintPositionParams {
2280
2275
  tickUpper: number;
2281
2276
  liquidity: bigint;
2282
2277
  }
2283
- declare const useMintLiquidity: (vault?: Address | TimelockVault) => {
2278
+ declare const useMintLiquidity: (vaultAddr?: Address) => {
2284
2279
  mintMultiple: (positions: MintPositionParams[]) => Promise<void>;
2285
2280
  mint: (tickLower: number, tickUpper: number, liquidity: bigint) => Promise<`0x${string}`>;
2286
2281
  hash: `0x${string}` | undefined;
@@ -2292,26 +2287,26 @@ declare const useMintLiquidity: (vault?: Address | TimelockVault) => {
2292
2287
  };
2293
2288
  //#endregion
2294
2289
  //#region src/hooks/vault/useVaultData.d.ts
2295
- declare const useVaultData: (vault?: Address | TimelockVault) => {
2290
+ declare const useVaultData: (vaultAddr?: Address) => {
2296
2291
  pool: `0x${string}` | undefined;
2297
2292
  };
2298
2293
  //#endregion
2299
2294
  //#region src/hooks/vault/useVaultTVL.d.ts
2300
- declare const useVaultTVL: (vault?: Address | TimelockVault) => {
2295
+ declare const useVaultTVL: (vaultAddr?: Address) => {
2301
2296
  tvl0: Amount | undefined;
2302
2297
  tvl1: Amount | undefined;
2303
2298
  totalAmount0: Amount | undefined;
2304
2299
  totalAmount1: Amount | undefined;
2305
2300
  borrowedAmount0: Amount | undefined;
2306
2301
  borrowedAmount1: Amount | undefined;
2307
- refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint], viem382.ReadContractErrorType>>;
2302
+ refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint], viem249.ReadContractErrorType>>;
2308
2303
  };
2309
2304
  //#endregion
2310
2305
  //#region src/hooks/useLens.d.ts
2311
2306
  declare const useLens: () => {
2312
2307
  uniswapLens: {
2313
2308
  read: {
2314
- batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
2309
+ batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
2315
2310
  readonly type: "function";
2316
2311
  readonly name: "batchGetAmount0ForLiquidity";
2317
2312
  readonly inputs: readonly [{
@@ -2932,7 +2927,7 @@ declare const useLens: () => {
2932
2927
  }];
2933
2928
  readonly stateMutability: "pure";
2934
2929
  }], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
2935
- batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
2930
+ batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
2936
2931
  readonly type: "function";
2937
2932
  readonly name: "batchGetAmount0ForLiquidity";
2938
2933
  readonly inputs: readonly [{
@@ -3553,7 +3548,7 @@ declare const useLens: () => {
3553
3548
  }];
3554
3549
  readonly stateMutability: "pure";
3555
3550
  }], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
3556
- batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
3551
+ batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
3557
3552
  readonly type: "function";
3558
3553
  readonly name: "batchGetAmount0ForLiquidity";
3559
3554
  readonly inputs: readonly [{
@@ -4174,7 +4169,7 @@ declare const useLens: () => {
4174
4169
  }];
4175
4170
  readonly stateMutability: "pure";
4176
4171
  }], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
4177
- batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
4172
+ batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4178
4173
  readonly type: "function";
4179
4174
  readonly name: "batchGetAmount0ForLiquidity";
4180
4175
  readonly inputs: readonly [{
@@ -4795,7 +4790,7 @@ declare const useLens: () => {
4795
4790
  }];
4796
4791
  readonly stateMutability: "pure";
4797
4792
  }], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
4798
- batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
4793
+ batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
4799
4794
  readonly type: "function";
4800
4795
  readonly name: "batchGetAmount0ForLiquidity";
4801
4796
  readonly inputs: readonly [{
@@ -5416,7 +5411,7 @@ declare const useLens: () => {
5416
5411
  }];
5417
5412
  readonly stateMutability: "pure";
5418
5413
  }], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
5419
- batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
5414
+ batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
5420
5415
  readonly type: "function";
5421
5416
  readonly name: "batchGetAmount0ForLiquidity";
5422
5417
  readonly inputs: readonly [{
@@ -6037,7 +6032,7 @@ declare const useLens: () => {
6037
6032
  }];
6038
6033
  readonly stateMutability: "pure";
6039
6034
  }], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
6040
- batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
6035
+ batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6041
6036
  readonly type: "function";
6042
6037
  readonly name: "batchGetAmount0ForLiquidity";
6043
6038
  readonly inputs: readonly [{
@@ -6658,7 +6653,7 @@ declare const useLens: () => {
6658
6653
  }];
6659
6654
  readonly stateMutability: "pure";
6660
6655
  }], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
6661
- batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
6656
+ batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
6662
6657
  readonly type: "function";
6663
6658
  readonly name: "batchGetAmount0ForLiquidity";
6664
6659
  readonly inputs: readonly [{
@@ -7279,7 +7274,7 @@ declare const useLens: () => {
7279
7274
  }];
7280
7275
  readonly stateMutability: "pure";
7281
7276
  }], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
7282
- batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
7277
+ batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
7283
7278
  readonly type: "function";
7284
7279
  readonly name: "batchGetAmount0ForLiquidity";
7285
7280
  readonly inputs: readonly [{
@@ -7900,7 +7895,7 @@ declare const useLens: () => {
7900
7895
  }];
7901
7896
  readonly stateMutability: "pure";
7902
7897
  }], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
7903
- batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
7898
+ batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
7904
7899
  readonly type: "function";
7905
7900
  readonly name: "batchGetAmount0ForLiquidity";
7906
7901
  readonly inputs: readonly [{
@@ -8521,7 +8516,7 @@ declare const useLens: () => {
8521
8516
  }];
8522
8517
  readonly stateMutability: "pure";
8523
8518
  }], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
8524
- batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
8519
+ batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
8525
8520
  readonly type: "function";
8526
8521
  readonly name: "batchGetAmount0ForLiquidity";
8527
8522
  readonly inputs: readonly [{
@@ -9142,7 +9137,7 @@ declare const useLens: () => {
9142
9137
  }];
9143
9138
  readonly stateMutability: "pure";
9144
9139
  }], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
9145
- batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
9140
+ batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
9146
9141
  readonly type: "function";
9147
9142
  readonly name: "batchGetAmount0ForLiquidity";
9148
9143
  readonly inputs: readonly [{
@@ -9763,7 +9758,7 @@ declare const useLens: () => {
9763
9758
  }];
9764
9759
  readonly stateMutability: "pure";
9765
9760
  }], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
9766
- batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
9761
+ batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
9767
9762
  readonly type: "function";
9768
9763
  readonly name: "batchGetAmount0ForLiquidity";
9769
9764
  readonly inputs: readonly [{
@@ -10384,7 +10379,7 @@ declare const useLens: () => {
10384
10379
  }];
10385
10380
  readonly stateMutability: "pure";
10386
10381
  }], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
10387
- getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
10382
+ getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
10388
10383
  readonly type: "function";
10389
10384
  readonly name: "batchGetAmount0ForLiquidity";
10390
10385
  readonly inputs: readonly [{
@@ -11005,7 +11000,7 @@ declare const useLens: () => {
11005
11000
  }];
11006
11001
  readonly stateMutability: "pure";
11007
11002
  }], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
11008
- getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
11003
+ getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
11009
11004
  readonly type: "function";
11010
11005
  readonly name: "batchGetAmount0ForLiquidity";
11011
11006
  readonly inputs: readonly [{
@@ -11626,7 +11621,7 @@ declare const useLens: () => {
11626
11621
  }];
11627
11622
  readonly stateMutability: "pure";
11628
11623
  }], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
11629
- getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
11624
+ getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
11630
11625
  readonly type: "function";
11631
11626
  readonly name: "batchGetAmount0ForLiquidity";
11632
11627
  readonly inputs: readonly [{
@@ -12247,7 +12242,7 @@ declare const useLens: () => {
12247
12242
  }];
12248
12243
  readonly stateMutability: "pure";
12249
12244
  }], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
12250
- getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
12245
+ getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
12251
12246
  readonly type: "function";
12252
12247
  readonly name: "batchGetAmount0ForLiquidity";
12253
12248
  readonly inputs: readonly [{
@@ -12868,7 +12863,7 @@ declare const useLens: () => {
12868
12863
  }];
12869
12864
  readonly stateMutability: "pure";
12870
12865
  }], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
12871
- getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
12866
+ getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
12872
12867
  readonly type: "function";
12873
12868
  readonly name: "batchGetAmount0ForLiquidity";
12874
12869
  readonly inputs: readonly [{
@@ -13489,7 +13484,7 @@ declare const useLens: () => {
13489
13484
  }];
13490
13485
  readonly stateMutability: "pure";
13491
13486
  }], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
13492
- getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
13487
+ getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
13493
13488
  readonly type: "function";
13494
13489
  readonly name: "batchGetAmount0ForLiquidity";
13495
13490
  readonly inputs: readonly [{
@@ -14110,7 +14105,7 @@ declare const useLens: () => {
14110
14105
  }];
14111
14106
  readonly stateMutability: "pure";
14112
14107
  }], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
14113
- getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
14108
+ getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
14114
14109
  readonly type: "function";
14115
14110
  readonly name: "batchGetAmount0ForLiquidity";
14116
14111
  readonly inputs: readonly [{
@@ -14731,7 +14726,7 @@ declare const useLens: () => {
14731
14726
  }];
14732
14727
  readonly stateMutability: "pure";
14733
14728
  }], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
14734
- getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
14729
+ getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
14735
14730
  readonly type: "function";
14736
14731
  readonly name: "batchGetAmount0ForLiquidity";
14737
14732
  readonly inputs: readonly [{
@@ -15352,7 +15347,7 @@ declare const useLens: () => {
15352
15347
  }];
15353
15348
  readonly stateMutability: "pure";
15354
15349
  }], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
15355
- getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
15350
+ getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
15356
15351
  readonly type: "function";
15357
15352
  readonly name: "batchGetAmount0ForLiquidity";
15358
15353
  readonly inputs: readonly [{
@@ -15973,7 +15968,7 @@ declare const useLens: () => {
15973
15968
  }];
15974
15969
  readonly stateMutability: "pure";
15975
15970
  }], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
15976
- getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
15971
+ getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
15977
15972
  readonly type: "function";
15978
15973
  readonly name: "batchGetAmount0ForLiquidity";
15979
15974
  readonly inputs: readonly [{
@@ -16594,7 +16589,7 @@ declare const useLens: () => {
16594
16589
  }];
16595
16590
  readonly stateMutability: "pure";
16596
16591
  }], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
16597
- getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
16592
+ getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
16598
16593
  readonly type: "function";
16599
16594
  readonly name: "batchGetAmount0ForLiquidity";
16600
16595
  readonly inputs: readonly [{
@@ -17215,7 +17210,7 @@ declare const useLens: () => {
17215
17210
  }];
17216
17211
  readonly stateMutability: "pure";
17217
17212
  }], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
17218
- getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
17213
+ getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
17219
17214
  readonly type: "function";
17220
17215
  readonly name: "batchGetAmount0ForLiquidity";
17221
17216
  readonly inputs: readonly [{
@@ -17836,7 +17831,7 @@ declare const useLens: () => {
17836
17831
  }];
17837
17832
  readonly stateMutability: "pure";
17838
17833
  }], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
17839
- getPriceAtTick: (args: readonly [number], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
17834
+ getPriceAtTick: (args: readonly [number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
17840
17835
  readonly type: "function";
17841
17836
  readonly name: "batchGetAmount0ForLiquidity";
17842
17837
  readonly inputs: readonly [{
@@ -19083,7 +19078,7 @@ declare const useLens: () => {
19083
19078
  } | undefined;
19084
19079
  timelockLens: {
19085
19080
  read: {
19086
- batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
19081
+ batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
19087
19082
  readonly type: "function";
19088
19083
  readonly name: "batchGetRefTick";
19089
19084
  readonly inputs: readonly [{
@@ -19785,7 +19780,7 @@ declare const useLens: () => {
19785
19780
  }];
19786
19781
  readonly stateMutability: "view";
19787
19782
  }], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
19788
- getAllBlocks: (args: readonly [`0x${string}`], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
19783
+ getAllBlocks: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
19789
19784
  readonly type: "function";
19790
19785
  readonly name: "batchGetRefTick";
19791
19786
  readonly inputs: readonly [{
@@ -20497,7 +20492,7 @@ declare const useLens: () => {
20497
20492
  borrowedAmount0: bigint;
20498
20493
  borrowedAmount1: bigint;
20499
20494
  }[]>;
20500
- getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
20495
+ getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
20501
20496
  readonly type: "function";
20502
20497
  readonly name: "batchGetRefTick";
20503
20498
  readonly inputs: readonly [{
@@ -21218,7 +21213,7 @@ declare const useLens: () => {
21218
21213
  createdAt: bigint;
21219
21214
  liquidities: readonly bigint[];
21220
21215
  }[], bigint, boolean]>;
21221
- getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
21216
+ getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21222
21217
  readonly type: "function";
21223
21218
  readonly name: "batchGetRefTick";
21224
21219
  readonly inputs: readonly [{
@@ -21920,7 +21915,7 @@ declare const useLens: () => {
21920
21915
  }];
21921
21916
  readonly stateMutability: "view";
21922
21917
  }], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
21923
- getMarketData: (args: readonly [`0x${string}`], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
21918
+ getMarketData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
21924
21919
  readonly type: "function";
21925
21920
  readonly name: "batchGetRefTick";
21926
21921
  readonly inputs: readonly [{
@@ -22635,7 +22630,7 @@ declare const useLens: () => {
22635
22630
  payoutAssetName: string;
22636
22631
  optionsCount: bigint;
22637
22632
  }>;
22638
- getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
22633
+ getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
22639
22634
  readonly type: "function";
22640
22635
  readonly name: "batchGetRefTick";
22641
22636
  readonly inputs: readonly [{
@@ -23337,7 +23332,7 @@ declare const useLens: () => {
23337
23332
  }];
23338
23333
  readonly stateMutability: "view";
23339
23334
  }], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
23340
- getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
23335
+ getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
23341
23336
  readonly type: "function";
23342
23337
  readonly name: "batchGetRefTick";
23343
23338
  readonly inputs: readonly [{
@@ -24039,7 +24034,7 @@ declare const useLens: () => {
24039
24034
  }];
24040
24035
  readonly stateMutability: "view";
24041
24036
  }], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
24042
- getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
24037
+ getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
24043
24038
  readonly type: "function";
24044
24039
  readonly name: "batchGetRefTick";
24045
24040
  readonly inputs: readonly [{
@@ -24760,7 +24755,7 @@ declare const useLens: () => {
24760
24755
  createdAt: bigint;
24761
24756
  liquidities: readonly bigint[];
24762
24757
  }>;
24763
- getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
24758
+ getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
24764
24759
  readonly type: "function";
24765
24760
  readonly name: "batchGetRefTick";
24766
24761
  readonly inputs: readonly [{
@@ -25481,7 +25476,7 @@ declare const useLens: () => {
25481
25476
  createdAt: bigint;
25482
25477
  liquidities: readonly bigint[];
25483
25478
  }[]>;
25484
- getPoolData: (args: readonly [`0x${string}`], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
25479
+ getPoolData: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
25485
25480
  readonly type: "function";
25486
25481
  readonly name: "batchGetRefTick";
25487
25482
  readonly inputs: readonly [{
@@ -26194,7 +26189,7 @@ declare const useLens: () => {
26194
26189
  tickSpacing: number;
26195
26190
  fee: number;
26196
26191
  }>;
26197
- getRefTick: (args: readonly [`0x${string}`, number], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
26192
+ getRefTick: (args: readonly [`0x${string}`, number], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26198
26193
  readonly type: "function";
26199
26194
  readonly name: "batchGetRefTick";
26200
26195
  readonly inputs: readonly [{
@@ -26896,7 +26891,7 @@ declare const useLens: () => {
26896
26891
  }];
26897
26892
  readonly stateMutability: "view";
26898
26893
  }], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
26899
- getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
26894
+ getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
26900
26895
  readonly type: "function";
26901
26896
  readonly name: "batchGetRefTick";
26902
26897
  readonly inputs: readonly [{
@@ -27617,7 +27612,7 @@ declare const useLens: () => {
27617
27612
  createdAt: bigint;
27618
27613
  liquidities: readonly bigint[];
27619
27614
  }[], bigint, boolean]>;
27620
- getVaultTVL: (args: readonly [`0x${string}`], options?: viem382.Prettify<viem382.UnionOmit<viem382.ReadContractParameters<readonly [{
27615
+ getVaultTVL: (args: readonly [`0x${string}`], options?: viem249.Prettify<viem249.UnionOmit<viem249.ReadContractParameters<readonly [{
27621
27616
  readonly type: "function";
27622
27617
  readonly name: "batchGetRefTick";
27623
27618
  readonly inputs: readonly [{
@@ -29026,4 +29021,4 @@ declare const useLens: () => {
29026
29021
  } | undefined;
29027
29022
  };
29028
29023
  //#endregion
29029
- export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, getCurrentTick, useActiveUserOptions, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, useTimelockConfig, useVaultData, useVaultTVL };
29024
+ export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, useActiveUserOptions, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, useTimelockConfig, useVaultData, useVaultTVL };