timelock-sdk 0.0.45 → 0.0.46
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 +2 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +111 -111
- package/dist/client.d.ts +56 -56
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-B20z73_3.d.ts → index-B7b3c8cu.d.cts} +2 -2
- package/dist/{index-CA5kB-yT.d.cts → index-CRhFaRiq.d.ts} +2 -2
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./uniswapMathLens-MrB_VfJB.js";
|
|
2
|
-
import { Amount, TimelockMarketData, UniswapMathLens } from "./index-
|
|
3
|
-
import * as
|
|
2
|
+
import { Amount, TimelockMarketData, UniswapMathLens } from "./index-CRhFaRiq.js";
|
|
3
|
+
import * as viem367 from "viem";
|
|
4
4
|
import { Address } from "viem";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
6
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
@@ -2357,7 +2357,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
|
|
|
2357
2357
|
//#region src/hooks/vault/useLiquidityBlocks.d.ts
|
|
2358
2358
|
type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
|
|
2359
2359
|
declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
2360
|
-
error:
|
|
2360
|
+
error: viem367.ReadContractErrorType;
|
|
2361
2361
|
isError: true;
|
|
2362
2362
|
isPending: false;
|
|
2363
2363
|
isLoading: false;
|
|
@@ -2369,7 +2369,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2369
2369
|
dataUpdatedAt: number;
|
|
2370
2370
|
errorUpdatedAt: number;
|
|
2371
2371
|
failureCount: number;
|
|
2372
|
-
failureReason:
|
|
2372
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2373
2373
|
errorUpdateCount: number;
|
|
2374
2374
|
isFetched: boolean;
|
|
2375
2375
|
isFetchedAfterMount: boolean;
|
|
@@ -2389,7 +2389,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2389
2389
|
totalAmount1: bigint;
|
|
2390
2390
|
borrowedAmount0: bigint;
|
|
2391
2391
|
borrowedAmount1: bigint;
|
|
2392
|
-
}[],
|
|
2392
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2393
2393
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2394
2394
|
promise: Promise<readonly {
|
|
2395
2395
|
tickLower: number;
|
|
@@ -2427,7 +2427,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2427
2427
|
dataUpdatedAt: number;
|
|
2428
2428
|
errorUpdatedAt: number;
|
|
2429
2429
|
failureCount: number;
|
|
2430
|
-
failureReason:
|
|
2430
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2431
2431
|
errorUpdateCount: number;
|
|
2432
2432
|
isFetched: boolean;
|
|
2433
2433
|
isFetchedAfterMount: boolean;
|
|
@@ -2447,7 +2447,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2447
2447
|
totalAmount1: bigint;
|
|
2448
2448
|
borrowedAmount0: bigint;
|
|
2449
2449
|
borrowedAmount1: bigint;
|
|
2450
|
-
}[],
|
|
2450
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2451
2451
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2452
2452
|
promise: Promise<readonly {
|
|
2453
2453
|
tickLower: number;
|
|
@@ -2473,7 +2473,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2473
2473
|
borrowedAmount1: bigint;
|
|
2474
2474
|
}[];
|
|
2475
2475
|
} | {
|
|
2476
|
-
error:
|
|
2476
|
+
error: viem367.ReadContractErrorType;
|
|
2477
2477
|
isError: true;
|
|
2478
2478
|
isPending: false;
|
|
2479
2479
|
isLoading: false;
|
|
@@ -2485,7 +2485,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2485
2485
|
dataUpdatedAt: number;
|
|
2486
2486
|
errorUpdatedAt: number;
|
|
2487
2487
|
failureCount: number;
|
|
2488
|
-
failureReason:
|
|
2488
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2489
2489
|
errorUpdateCount: number;
|
|
2490
2490
|
isFetched: boolean;
|
|
2491
2491
|
isFetchedAfterMount: boolean;
|
|
@@ -2505,7 +2505,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2505
2505
|
totalAmount1: bigint;
|
|
2506
2506
|
borrowedAmount0: bigint;
|
|
2507
2507
|
borrowedAmount1: bigint;
|
|
2508
|
-
}[],
|
|
2508
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2509
2509
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2510
2510
|
promise: Promise<readonly {
|
|
2511
2511
|
tickLower: number;
|
|
@@ -2543,7 +2543,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2543
2543
|
dataUpdatedAt: number;
|
|
2544
2544
|
errorUpdatedAt: number;
|
|
2545
2545
|
failureCount: number;
|
|
2546
|
-
failureReason:
|
|
2546
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2547
2547
|
errorUpdateCount: number;
|
|
2548
2548
|
isFetched: boolean;
|
|
2549
2549
|
isFetchedAfterMount: boolean;
|
|
@@ -2563,7 +2563,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2563
2563
|
totalAmount1: bigint;
|
|
2564
2564
|
borrowedAmount0: bigint;
|
|
2565
2565
|
borrowedAmount1: bigint;
|
|
2566
|
-
}[],
|
|
2566
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2567
2567
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2568
2568
|
promise: Promise<readonly {
|
|
2569
2569
|
tickLower: number;
|
|
@@ -2600,7 +2600,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2600
2600
|
dataUpdatedAt: number;
|
|
2601
2601
|
errorUpdatedAt: number;
|
|
2602
2602
|
failureCount: number;
|
|
2603
|
-
failureReason:
|
|
2603
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2604
2604
|
errorUpdateCount: number;
|
|
2605
2605
|
isFetched: boolean;
|
|
2606
2606
|
isFetchedAfterMount: boolean;
|
|
@@ -2621,7 +2621,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2621
2621
|
totalAmount1: bigint;
|
|
2622
2622
|
borrowedAmount0: bigint;
|
|
2623
2623
|
borrowedAmount1: bigint;
|
|
2624
|
-
}[],
|
|
2624
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2625
2625
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2626
2626
|
promise: Promise<readonly {
|
|
2627
2627
|
tickLower: number;
|
|
@@ -2659,7 +2659,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2659
2659
|
dataUpdatedAt: number;
|
|
2660
2660
|
errorUpdatedAt: number;
|
|
2661
2661
|
failureCount: number;
|
|
2662
|
-
failureReason:
|
|
2662
|
+
failureReason: viem367.ReadContractErrorType | null;
|
|
2663
2663
|
errorUpdateCount: number;
|
|
2664
2664
|
isFetched: boolean;
|
|
2665
2665
|
isFetchedAfterMount: boolean;
|
|
@@ -2679,7 +2679,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2679
2679
|
totalAmount1: bigint;
|
|
2680
2680
|
borrowedAmount0: bigint;
|
|
2681
2681
|
borrowedAmount1: bigint;
|
|
2682
|
-
}[],
|
|
2682
|
+
}[], viem367.ReadContractErrorType>>;
|
|
2683
2683
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2684
2684
|
promise: Promise<readonly {
|
|
2685
2685
|
tickLower: number;
|
|
@@ -2752,14 +2752,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
2752
2752
|
borrowedAmount0: Amount;
|
|
2753
2753
|
borrowedAmount1: Amount;
|
|
2754
2754
|
blocksCount: bigint;
|
|
2755
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint],
|
|
2755
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem367.ReadContractErrorType>>;
|
|
2756
2756
|
};
|
|
2757
2757
|
//#endregion
|
|
2758
2758
|
//#region src/hooks/useLens.d.ts
|
|
2759
2759
|
declare const useLens: () => {
|
|
2760
2760
|
timelockLens: {
|
|
2761
2761
|
read: {
|
|
2762
|
-
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?:
|
|
2762
|
+
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
2763
2763
|
readonly type: "function";
|
|
2764
2764
|
readonly name: "batchGetRefTick";
|
|
2765
2765
|
readonly inputs: readonly [{
|
|
@@ -3465,7 +3465,7 @@ declare const useLens: () => {
|
|
|
3465
3465
|
}];
|
|
3466
3466
|
readonly stateMutability: "view";
|
|
3467
3467
|
}], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
|
|
3468
|
-
getAllBlocks: (args: readonly [`0x${string}`], options?:
|
|
3468
|
+
getAllBlocks: (args: readonly [`0x${string}`], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
3469
3469
|
readonly type: "function";
|
|
3470
3470
|
readonly name: "batchGetRefTick";
|
|
3471
3471
|
readonly inputs: readonly [{
|
|
@@ -4181,7 +4181,7 @@ declare const useLens: () => {
|
|
|
4181
4181
|
borrowedAmount0: bigint;
|
|
4182
4182
|
borrowedAmount1: bigint;
|
|
4183
4183
|
}[]>;
|
|
4184
|
-
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?:
|
|
4184
|
+
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
4185
4185
|
readonly type: "function";
|
|
4186
4186
|
readonly name: "batchGetRefTick";
|
|
4187
4187
|
readonly inputs: readonly [{
|
|
@@ -4906,7 +4906,7 @@ declare const useLens: () => {
|
|
|
4906
4906
|
createdAt: bigint;
|
|
4907
4907
|
liquidities: readonly bigint[];
|
|
4908
4908
|
}[], bigint, boolean]>;
|
|
4909
|
-
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?:
|
|
4909
|
+
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
4910
4910
|
readonly type: "function";
|
|
4911
4911
|
readonly name: "batchGetRefTick";
|
|
4912
4912
|
readonly inputs: readonly [{
|
|
@@ -5612,7 +5612,7 @@ declare const useLens: () => {
|
|
|
5612
5612
|
}];
|
|
5613
5613
|
readonly stateMutability: "view";
|
|
5614
5614
|
}], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
5615
|
-
getMarketData: (args: readonly [`0x${string}`], options?:
|
|
5615
|
+
getMarketData: (args: readonly [`0x${string}`], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
5616
5616
|
readonly type: "function";
|
|
5617
5617
|
readonly name: "batchGetRefTick";
|
|
5618
5618
|
readonly inputs: readonly [{
|
|
@@ -6331,7 +6331,7 @@ declare const useLens: () => {
|
|
|
6331
6331
|
payoutAssetName: string;
|
|
6332
6332
|
optionsCount: bigint;
|
|
6333
6333
|
}>;
|
|
6334
|
-
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?:
|
|
6334
|
+
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
6335
6335
|
readonly type: "function";
|
|
6336
6336
|
readonly name: "batchGetRefTick";
|
|
6337
6337
|
readonly inputs: readonly [{
|
|
@@ -7037,7 +7037,7 @@ declare const useLens: () => {
|
|
|
7037
7037
|
}];
|
|
7038
7038
|
readonly stateMutability: "view";
|
|
7039
7039
|
}], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
7040
|
-
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?:
|
|
7040
|
+
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
7041
7041
|
readonly type: "function";
|
|
7042
7042
|
readonly name: "batchGetRefTick";
|
|
7043
7043
|
readonly inputs: readonly [{
|
|
@@ -7743,7 +7743,7 @@ declare const useLens: () => {
|
|
|
7743
7743
|
}];
|
|
7744
7744
|
readonly stateMutability: "view";
|
|
7745
7745
|
}], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
7746
|
-
getOptionData: (args: readonly [`0x${string}`, bigint], options?:
|
|
7746
|
+
getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
7747
7747
|
readonly type: "function";
|
|
7748
7748
|
readonly name: "batchGetRefTick";
|
|
7749
7749
|
readonly inputs: readonly [{
|
|
@@ -8468,7 +8468,7 @@ declare const useLens: () => {
|
|
|
8468
8468
|
createdAt: bigint;
|
|
8469
8469
|
liquidities: readonly bigint[];
|
|
8470
8470
|
}>;
|
|
8471
|
-
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?:
|
|
8471
|
+
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
8472
8472
|
readonly type: "function";
|
|
8473
8473
|
readonly name: "batchGetRefTick";
|
|
8474
8474
|
readonly inputs: readonly [{
|
|
@@ -9193,7 +9193,7 @@ declare const useLens: () => {
|
|
|
9193
9193
|
createdAt: bigint;
|
|
9194
9194
|
liquidities: readonly bigint[];
|
|
9195
9195
|
}[]>;
|
|
9196
|
-
getPoolData: (args: readonly [`0x${string}`], options?:
|
|
9196
|
+
getPoolData: (args: readonly [`0x${string}`], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
9197
9197
|
readonly type: "function";
|
|
9198
9198
|
readonly name: "batchGetRefTick";
|
|
9199
9199
|
readonly inputs: readonly [{
|
|
@@ -9910,7 +9910,7 @@ declare const useLens: () => {
|
|
|
9910
9910
|
tickSpacing: number;
|
|
9911
9911
|
fee: number;
|
|
9912
9912
|
}>;
|
|
9913
|
-
getRefTick: (args: readonly [`0x${string}`, number], options?:
|
|
9913
|
+
getRefTick: (args: readonly [`0x${string}`, number], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
9914
9914
|
readonly type: "function";
|
|
9915
9915
|
readonly name: "batchGetRefTick";
|
|
9916
9916
|
readonly inputs: readonly [{
|
|
@@ -10616,7 +10616,7 @@ declare const useLens: () => {
|
|
|
10616
10616
|
}];
|
|
10617
10617
|
readonly stateMutability: "view";
|
|
10618
10618
|
}], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
10619
|
-
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?:
|
|
10619
|
+
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
10620
10620
|
readonly type: "function";
|
|
10621
10621
|
readonly name: "batchGetRefTick";
|
|
10622
10622
|
readonly inputs: readonly [{
|
|
@@ -11341,7 +11341,7 @@ declare const useLens: () => {
|
|
|
11341
11341
|
createdAt: bigint;
|
|
11342
11342
|
liquidities: readonly bigint[];
|
|
11343
11343
|
}[], bigint, boolean]>;
|
|
11344
|
-
getVaultTVL: (args: readonly [`0x${string}`], options?:
|
|
11344
|
+
getVaultTVL: (args: readonly [`0x${string}`], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
11345
11345
|
readonly type: "function";
|
|
11346
11346
|
readonly name: "batchGetRefTick";
|
|
11347
11347
|
readonly inputs: readonly [{
|
|
@@ -12758,7 +12758,7 @@ declare const useLens: () => {
|
|
|
12758
12758
|
} | undefined;
|
|
12759
12759
|
uniswapLens: {
|
|
12760
12760
|
read: {
|
|
12761
|
-
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
12761
|
+
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
12762
12762
|
readonly type: "function";
|
|
12763
12763
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
12764
12764
|
readonly inputs: readonly [{
|
|
@@ -13379,7 +13379,7 @@ declare const useLens: () => {
|
|
|
13379
13379
|
}];
|
|
13380
13380
|
readonly stateMutability: "pure";
|
|
13381
13381
|
}], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
13382
|
-
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
13382
|
+
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
13383
13383
|
readonly type: "function";
|
|
13384
13384
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
13385
13385
|
readonly inputs: readonly [{
|
|
@@ -14000,7 +14000,7 @@ declare const useLens: () => {
|
|
|
14000
14000
|
}];
|
|
14001
14001
|
readonly stateMutability: "pure";
|
|
14002
14002
|
}], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
14003
|
-
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
14003
|
+
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
14004
14004
|
readonly type: "function";
|
|
14005
14005
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
14006
14006
|
readonly inputs: readonly [{
|
|
@@ -14621,7 +14621,7 @@ declare const useLens: () => {
|
|
|
14621
14621
|
}];
|
|
14622
14622
|
readonly stateMutability: "pure";
|
|
14623
14623
|
}], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
14624
|
-
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
14624
|
+
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
14625
14625
|
readonly type: "function";
|
|
14626
14626
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
14627
14627
|
readonly inputs: readonly [{
|
|
@@ -15242,7 +15242,7 @@ declare const useLens: () => {
|
|
|
15242
15242
|
}];
|
|
15243
15243
|
readonly stateMutability: "pure";
|
|
15244
15244
|
}], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
15245
|
-
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
15245
|
+
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
15246
15246
|
readonly type: "function";
|
|
15247
15247
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15248
15248
|
readonly inputs: readonly [{
|
|
@@ -15863,7 +15863,7 @@ declare const useLens: () => {
|
|
|
15863
15863
|
}];
|
|
15864
15864
|
readonly stateMutability: "pure";
|
|
15865
15865
|
}], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
15866
|
-
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?:
|
|
15866
|
+
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
15867
15867
|
readonly type: "function";
|
|
15868
15868
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15869
15869
|
readonly inputs: readonly [{
|
|
@@ -16484,7 +16484,7 @@ declare const useLens: () => {
|
|
|
16484
16484
|
}];
|
|
16485
16485
|
readonly stateMutability: "pure";
|
|
16486
16486
|
}], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
16487
|
-
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
16487
|
+
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
16488
16488
|
readonly type: "function";
|
|
16489
16489
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
16490
16490
|
readonly inputs: readonly [{
|
|
@@ -17105,7 +17105,7 @@ declare const useLens: () => {
|
|
|
17105
17105
|
}];
|
|
17106
17106
|
readonly stateMutability: "pure";
|
|
17107
17107
|
}], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
17108
|
-
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
17108
|
+
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
17109
17109
|
readonly type: "function";
|
|
17110
17110
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
17111
17111
|
readonly inputs: readonly [{
|
|
@@ -17726,7 +17726,7 @@ declare const useLens: () => {
|
|
|
17726
17726
|
}];
|
|
17727
17727
|
readonly stateMutability: "pure";
|
|
17728
17728
|
}], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
17729
|
-
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
17729
|
+
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
17730
17730
|
readonly type: "function";
|
|
17731
17731
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
17732
17732
|
readonly inputs: readonly [{
|
|
@@ -18347,7 +18347,7 @@ declare const useLens: () => {
|
|
|
18347
18347
|
}];
|
|
18348
18348
|
readonly stateMutability: "pure";
|
|
18349
18349
|
}], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
18350
|
-
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
18350
|
+
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
18351
18351
|
readonly type: "function";
|
|
18352
18352
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18353
18353
|
readonly inputs: readonly [{
|
|
@@ -18968,7 +18968,7 @@ declare const useLens: () => {
|
|
|
18968
18968
|
}];
|
|
18969
18969
|
readonly stateMutability: "pure";
|
|
18970
18970
|
}], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
18971
|
-
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
18971
|
+
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
18972
18972
|
readonly type: "function";
|
|
18973
18973
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18974
18974
|
readonly inputs: readonly [{
|
|
@@ -19589,7 +19589,7 @@ declare const useLens: () => {
|
|
|
19589
19589
|
}];
|
|
19590
19590
|
readonly stateMutability: "pure";
|
|
19591
19591
|
}], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
19592
|
-
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?:
|
|
19592
|
+
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
19593
19593
|
readonly type: "function";
|
|
19594
19594
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
19595
19595
|
readonly inputs: readonly [{
|
|
@@ -20210,7 +20210,7 @@ declare const useLens: () => {
|
|
|
20210
20210
|
}];
|
|
20211
20211
|
readonly stateMutability: "pure";
|
|
20212
20212
|
}], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
20213
|
-
batchGetPriceAtTick: (args: readonly [readonly number[]], options?:
|
|
20213
|
+
batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
20214
20214
|
readonly type: "function";
|
|
20215
20215
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20216
20216
|
readonly inputs: readonly [{
|
|
@@ -20831,7 +20831,7 @@ declare const useLens: () => {
|
|
|
20831
20831
|
}];
|
|
20832
20832
|
readonly stateMutability: "pure";
|
|
20833
20833
|
}], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
20834
|
-
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
20834
|
+
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
20835
20835
|
readonly type: "function";
|
|
20836
20836
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20837
20837
|
readonly inputs: readonly [{
|
|
@@ -21452,7 +21452,7 @@ declare const useLens: () => {
|
|
|
21452
21452
|
}];
|
|
21453
21453
|
readonly stateMutability: "pure";
|
|
21454
21454
|
}], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
21455
|
-
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
21455
|
+
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
21456
21456
|
readonly type: "function";
|
|
21457
21457
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
21458
21458
|
readonly inputs: readonly [{
|
|
@@ -22073,7 +22073,7 @@ declare const useLens: () => {
|
|
|
22073
22073
|
}];
|
|
22074
22074
|
readonly stateMutability: "pure";
|
|
22075
22075
|
}], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
22076
|
-
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
22076
|
+
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
22077
22077
|
readonly type: "function";
|
|
22078
22078
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
22079
22079
|
readonly inputs: readonly [{
|
|
@@ -22694,7 +22694,7 @@ declare const useLens: () => {
|
|
|
22694
22694
|
}];
|
|
22695
22695
|
readonly stateMutability: "pure";
|
|
22696
22696
|
}], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
22697
|
-
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
22697
|
+
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
22698
22698
|
readonly type: "function";
|
|
22699
22699
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
22700
22700
|
readonly inputs: readonly [{
|
|
@@ -23315,7 +23315,7 @@ declare const useLens: () => {
|
|
|
23315
23315
|
}];
|
|
23316
23316
|
readonly stateMutability: "pure";
|
|
23317
23317
|
}], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
23318
|
-
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?:
|
|
23318
|
+
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
23319
23319
|
readonly type: "function";
|
|
23320
23320
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
23321
23321
|
readonly inputs: readonly [{
|
|
@@ -23936,7 +23936,7 @@ declare const useLens: () => {
|
|
|
23936
23936
|
}];
|
|
23937
23937
|
readonly stateMutability: "pure";
|
|
23938
23938
|
}], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
23939
|
-
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?:
|
|
23939
|
+
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
23940
23940
|
readonly type: "function";
|
|
23941
23941
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
23942
23942
|
readonly inputs: readonly [{
|
|
@@ -24557,7 +24557,7 @@ declare const useLens: () => {
|
|
|
24557
24557
|
}];
|
|
24558
24558
|
readonly stateMutability: "pure";
|
|
24559
24559
|
}], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
24560
|
-
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?:
|
|
24560
|
+
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
24561
24561
|
readonly type: "function";
|
|
24562
24562
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
24563
24563
|
readonly inputs: readonly [{
|
|
@@ -25178,7 +25178,7 @@ declare const useLens: () => {
|
|
|
25178
25178
|
}];
|
|
25179
25179
|
readonly stateMutability: "pure";
|
|
25180
25180
|
}], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
25181
|
-
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?:
|
|
25181
|
+
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
25182
25182
|
readonly type: "function";
|
|
25183
25183
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
25184
25184
|
readonly inputs: readonly [{
|
|
@@ -25799,7 +25799,7 @@ declare const useLens: () => {
|
|
|
25799
25799
|
}];
|
|
25800
25800
|
readonly stateMutability: "pure";
|
|
25801
25801
|
}], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
25802
|
-
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?:
|
|
25802
|
+
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
25803
25803
|
readonly type: "function";
|
|
25804
25804
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
25805
25805
|
readonly inputs: readonly [{
|
|
@@ -26420,7 +26420,7 @@ declare const useLens: () => {
|
|
|
26420
26420
|
}];
|
|
26421
26421
|
readonly stateMutability: "pure";
|
|
26422
26422
|
}], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
26423
|
-
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?:
|
|
26423
|
+
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
26424
26424
|
readonly type: "function";
|
|
26425
26425
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
26426
26426
|
readonly inputs: readonly [{
|
|
@@ -27041,7 +27041,7 @@ declare const useLens: () => {
|
|
|
27041
27041
|
}];
|
|
27042
27042
|
readonly stateMutability: "pure";
|
|
27043
27043
|
}], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
27044
|
-
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?:
|
|
27044
|
+
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
27045
27045
|
readonly type: "function";
|
|
27046
27046
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
27047
27047
|
readonly inputs: readonly [{
|
|
@@ -27662,7 +27662,7 @@ declare const useLens: () => {
|
|
|
27662
27662
|
}];
|
|
27663
27663
|
readonly stateMutability: "pure";
|
|
27664
27664
|
}], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
27665
|
-
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?:
|
|
27665
|
+
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
27666
27666
|
readonly type: "function";
|
|
27667
27667
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
27668
27668
|
readonly inputs: readonly [{
|
|
@@ -28283,7 +28283,7 @@ declare const useLens: () => {
|
|
|
28283
28283
|
}];
|
|
28284
28284
|
readonly stateMutability: "pure";
|
|
28285
28285
|
}], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
28286
|
-
getPriceAtTick: (args: readonly [number], options?:
|
|
28286
|
+
getPriceAtTick: (args: readonly [number], options?: viem367.Prettify<viem367.UnionOmit<viem367.ReadContractParameters<readonly [{
|
|
28287
28287
|
readonly type: "function";
|
|
28288
28288
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
28289
28289
|
readonly inputs: readonly [{
|
package/dist/client.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { lensAbi, optionsMarketAbi } from "./optionsMarket-DyBxHplR.js";
|
|
5
5
|
import { PRICE_PRECISION, getErc20, getPriceAtTick, getTimelockLens, getTimelockMarket, getUniswapMathLens, liquiditiesToAmounts, roundTickDown, timelockLenses, token0ToToken1, token1ToToken0, uniswapMathLenses, wrapAmount, wrapPrice } from "./numberUtils-Dk_yqgfN.js";
|
|
6
6
|
import { singleOwnerVaultAbi, uniswapV3PoolAbi } from "./singleOwnerVault-DMu9pqN1.js";
|
|
7
|
-
import { encodeFunctionData, erc20Abi, maxUint256 } from "viem";
|
|
7
|
+
import { encodeFunctionData, erc20Abi, maxUint256, zeroAddress } from "viem";
|
|
8
8
|
import React, { createContext, useContext, useMemo } from "react";
|
|
9
9
|
import { useAccount, useChainId, useClient, useReadContract, useWaitForTransactionReceipt, useWriteContract } from "wagmi";
|
|
10
10
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
@@ -694,8 +694,8 @@ const useLiquidityBlocks = (vaultAddr) => {
|
|
|
694
694
|
address: timelockLens === null || timelockLens === void 0 ? void 0 : timelockLens.address,
|
|
695
695
|
abi: lensAbi,
|
|
696
696
|
functionName: "getAllBlocks",
|
|
697
|
-
args: [vaultAddr],
|
|
698
|
-
query: { enabled: !!vaultAddr
|
|
697
|
+
args: [vaultAddr || zeroAddress],
|
|
698
|
+
query: { enabled: !!vaultAddr }
|
|
699
699
|
});
|
|
700
700
|
return {
|
|
701
701
|
data: blocks,
|