timelock-sdk 0.0.34 → 0.0.35
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/abis.cjs +3 -3
- package/dist/abis.js +1 -1
- package/dist/client.cjs +99 -31
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +203 -123
- package/dist/client.d.ts +147 -67
- package/dist/client.js +91 -24
- package/dist/client.js.map +1 -1
- package/dist/{uniswapV3Pool-Copswrde.js → singleOwnerVault-DMu9pqN1.js} +696 -696
- package/dist/singleOwnerVault-DMu9pqN1.js.map +1 -0
- package/dist/{uniswapV3Pool-D9Vqrkmz.cjs → singleOwnerVault-gf2zNZVk.cjs} +696 -696
- package/dist/singleOwnerVault-gf2zNZVk.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/uniswapV3Pool-Copswrde.js.map +0 -1
- package/dist/uniswapV3Pool-D9Vqrkmz.cjs.map +0 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "./uniswapMathLens-B1MIL2yT.cjs";
|
|
2
2
|
import { Amount, TimelockMarketData, UniswapMathLens } from "./index-B7b3c8cu.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as viem117 from "viem";
|
|
4
4
|
import { Address } from "viem";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
6
6
|
import "graphql";
|
|
7
7
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
8
8
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
9
|
-
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
10
9
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
|
+
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
11
|
+
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
11
12
|
|
|
12
13
|
//#region src/generated/graphql.d.ts
|
|
13
14
|
type Exact<T extends {
|
|
@@ -65,6 +66,7 @@ type GetActiveUserOptionsQuery = {
|
|
|
65
66
|
optionType: any;
|
|
66
67
|
strikeTick: number;
|
|
67
68
|
entryTick: number;
|
|
69
|
+
startTick: number;
|
|
68
70
|
strikePrice: any;
|
|
69
71
|
entryPrice: any;
|
|
70
72
|
expiresAt: number;
|
|
@@ -99,6 +101,7 @@ type GetClosedUserOptionsQuery = {
|
|
|
99
101
|
optionType: any;
|
|
100
102
|
strikeTick: number;
|
|
101
103
|
entryTick: number;
|
|
104
|
+
startTick: number;
|
|
102
105
|
strikePrice: any;
|
|
103
106
|
entryPrice: any;
|
|
104
107
|
expiresAt: number;
|
|
@@ -172,72 +175,6 @@ declare const TimelockMarketProvider: ({
|
|
|
172
175
|
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
173
176
|
declare const useTimelockConfig: () => TimelockMarketContextValue;
|
|
174
177
|
//#endregion
|
|
175
|
-
//#region src/hooks/market/useExerciseOption.d.ts
|
|
176
|
-
declare const useExerciseOption: (marketAddr?: Address) => {
|
|
177
|
-
exerciseOption: (optionId: bigint, liquidities: readonly bigint[]) => Promise<`0x${string}`>;
|
|
178
|
-
hash: `0x${string}` | undefined;
|
|
179
|
-
isPending: boolean;
|
|
180
|
-
isConfirming: boolean;
|
|
181
|
-
isSuccess: boolean;
|
|
182
|
-
error: _wagmi_core0.WriteContractErrorType | null;
|
|
183
|
-
isLoading: boolean;
|
|
184
|
-
};
|
|
185
|
-
//#endregion
|
|
186
|
-
//#region src/hooks/market/useMarketData.d.ts
|
|
187
|
-
declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
|
|
188
|
-
pool: Address;
|
|
189
|
-
vault: Address;
|
|
190
|
-
optionAsset: Address;
|
|
191
|
-
payoutAsset: Address;
|
|
192
|
-
optionsCount: bigint;
|
|
193
|
-
tradersCount: bigint;
|
|
194
|
-
__typename: "TimelockMarket";
|
|
195
|
-
id: string;
|
|
196
|
-
tickSpacing: number;
|
|
197
|
-
optionAssetIsToken0: boolean;
|
|
198
|
-
optionAssetDecimals: number;
|
|
199
|
-
payoutAssetDecimals: number;
|
|
200
|
-
optionAssetSymbol: string;
|
|
201
|
-
payoutAssetSymbol: string;
|
|
202
|
-
optionAssetName: string;
|
|
203
|
-
payoutAssetName: string;
|
|
204
|
-
} | undefined>>;
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/hooks/market/useMaxPositionSize.d.ts
|
|
207
|
-
declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
208
|
-
maxCallSize: Amount | undefined;
|
|
209
|
-
maxPutSize: Amount | undefined;
|
|
210
|
-
refetch: () => void;
|
|
211
|
-
};
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region src/hooks/market/useMintOption.d.ts
|
|
214
|
-
declare const useMintOption: (marketAddr?: Address) => {
|
|
215
|
-
mintOption: (optionType: "CALL" | "PUT", amount: bigint, duration: number, strikeTick?: number) => Promise<`0x${string}`>;
|
|
216
|
-
hash: `0x${string}` | undefined;
|
|
217
|
-
isPending: boolean;
|
|
218
|
-
isConfirming: boolean;
|
|
219
|
-
isSuccess: boolean;
|
|
220
|
-
error: _wagmi_core0.WriteContractErrorType | null;
|
|
221
|
-
isLoading: boolean;
|
|
222
|
-
};
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/hooks/market/useOptionPnl.d.ts
|
|
225
|
-
declare const useOptionPnl: (optionData: {
|
|
226
|
-
marketAddr: Address;
|
|
227
|
-
optionType: "CALL" | "PUT";
|
|
228
|
-
positionSizeCurrent: bigint;
|
|
229
|
-
entryPrice: bigint;
|
|
230
|
-
}) => {
|
|
231
|
-
unrealizedPayout?: undefined;
|
|
232
|
-
displayPnl?: undefined;
|
|
233
|
-
} | {
|
|
234
|
-
unrealizedPayout: Amount;
|
|
235
|
-
displayPnl: Amount;
|
|
236
|
-
};
|
|
237
|
-
//#endregion
|
|
238
|
-
//#region src/hooks/market/useOptionPremium.d.ts
|
|
239
|
-
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, duration: number, strikeTick?: number) => Amount | undefined;
|
|
240
|
-
//#endregion
|
|
241
178
|
//#region src/hooks/market/useUserOptions.d.ts
|
|
242
179
|
type OptionData = ReturnType<typeof useUserOptions>['data'][0];
|
|
243
180
|
declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
@@ -281,6 +218,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
281
218
|
ownerAddr: string;
|
|
282
219
|
strikeTick: number;
|
|
283
220
|
entryTick: number;
|
|
221
|
+
startTick: number;
|
|
284
222
|
fullyExercised: boolean;
|
|
285
223
|
exerciseEvents: Array<{
|
|
286
224
|
__typename: "ExerciseOptionEvent";
|
|
@@ -310,6 +248,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
310
248
|
ownerAddr: string;
|
|
311
249
|
strikeTick: number;
|
|
312
250
|
entryTick: number;
|
|
251
|
+
startTick: number;
|
|
313
252
|
fullyExercised: boolean;
|
|
314
253
|
exerciseEvents: Array<{
|
|
315
254
|
__typename: "ExerciseOptionEvent";
|
|
@@ -338,6 +277,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
338
277
|
ownerAddr: string;
|
|
339
278
|
strikeTick: number;
|
|
340
279
|
entryTick: number;
|
|
280
|
+
startTick: number;
|
|
341
281
|
fullyExercised: boolean;
|
|
342
282
|
exerciseEvents: Array<{
|
|
343
283
|
__typename: "ExerciseOptionEvent";
|
|
@@ -389,6 +329,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
389
329
|
ownerAddr: string;
|
|
390
330
|
strikeTick: number;
|
|
391
331
|
entryTick: number;
|
|
332
|
+
startTick: number;
|
|
392
333
|
fullyExercised: boolean;
|
|
393
334
|
exerciseEvents: Array<{
|
|
394
335
|
__typename: "ExerciseOptionEvent";
|
|
@@ -418,6 +359,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
418
359
|
ownerAddr: string;
|
|
419
360
|
strikeTick: number;
|
|
420
361
|
entryTick: number;
|
|
362
|
+
startTick: number;
|
|
421
363
|
fullyExercised: boolean;
|
|
422
364
|
exerciseEvents: Array<{
|
|
423
365
|
__typename: "ExerciseOptionEvent";
|
|
@@ -446,6 +388,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
446
388
|
ownerAddr: string;
|
|
447
389
|
strikeTick: number;
|
|
448
390
|
entryTick: number;
|
|
391
|
+
startTick: number;
|
|
449
392
|
fullyExercised: boolean;
|
|
450
393
|
exerciseEvents: Array<{
|
|
451
394
|
__typename: "ExerciseOptionEvent";
|
|
@@ -497,6 +440,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
497
440
|
ownerAddr: string;
|
|
498
441
|
strikeTick: number;
|
|
499
442
|
entryTick: number;
|
|
443
|
+
startTick: number;
|
|
500
444
|
fullyExercised: boolean;
|
|
501
445
|
exerciseEvents: Array<{
|
|
502
446
|
__typename: "ExerciseOptionEvent";
|
|
@@ -526,6 +470,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
526
470
|
ownerAddr: string;
|
|
527
471
|
strikeTick: number;
|
|
528
472
|
entryTick: number;
|
|
473
|
+
startTick: number;
|
|
529
474
|
fullyExercised: boolean;
|
|
530
475
|
exerciseEvents: Array<{
|
|
531
476
|
__typename: "ExerciseOptionEvent";
|
|
@@ -554,6 +499,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
554
499
|
ownerAddr: string;
|
|
555
500
|
strikeTick: number;
|
|
556
501
|
entryTick: number;
|
|
502
|
+
startTick: number;
|
|
557
503
|
fullyExercised: boolean;
|
|
558
504
|
exerciseEvents: Array<{
|
|
559
505
|
__typename: "ExerciseOptionEvent";
|
|
@@ -605,6 +551,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
605
551
|
ownerAddr: string;
|
|
606
552
|
strikeTick: number;
|
|
607
553
|
entryTick: number;
|
|
554
|
+
startTick: number;
|
|
608
555
|
fullyExercised: boolean;
|
|
609
556
|
exerciseEvents: Array<{
|
|
610
557
|
__typename: "ExerciseOptionEvent";
|
|
@@ -634,6 +581,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
634
581
|
ownerAddr: string;
|
|
635
582
|
strikeTick: number;
|
|
636
583
|
entryTick: number;
|
|
584
|
+
startTick: number;
|
|
637
585
|
fullyExercised: boolean;
|
|
638
586
|
exerciseEvents: Array<{
|
|
639
587
|
__typename: "ExerciseOptionEvent";
|
|
@@ -662,6 +610,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
662
610
|
ownerAddr: string;
|
|
663
611
|
strikeTick: number;
|
|
664
612
|
entryTick: number;
|
|
613
|
+
startTick: number;
|
|
665
614
|
fullyExercised: boolean;
|
|
666
615
|
exerciseEvents: Array<{
|
|
667
616
|
__typename: "ExerciseOptionEvent";
|
|
@@ -713,6 +662,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
713
662
|
ownerAddr: string;
|
|
714
663
|
strikeTick: number;
|
|
715
664
|
entryTick: number;
|
|
665
|
+
startTick: number;
|
|
716
666
|
fullyExercised: boolean;
|
|
717
667
|
exerciseEvents: Array<{
|
|
718
668
|
__typename: "ExerciseOptionEvent";
|
|
@@ -742,6 +692,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
742
692
|
ownerAddr: string;
|
|
743
693
|
strikeTick: number;
|
|
744
694
|
entryTick: number;
|
|
695
|
+
startTick: number;
|
|
745
696
|
fullyExercised: boolean;
|
|
746
697
|
exerciseEvents: Array<{
|
|
747
698
|
__typename: "ExerciseOptionEvent";
|
|
@@ -770,6 +721,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
770
721
|
ownerAddr: string;
|
|
771
722
|
strikeTick: number;
|
|
772
723
|
entryTick: number;
|
|
724
|
+
startTick: number;
|
|
773
725
|
fullyExercised: boolean;
|
|
774
726
|
exerciseEvents: Array<{
|
|
775
727
|
__typename: "ExerciseOptionEvent";
|
|
@@ -821,6 +773,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
821
773
|
ownerAddr: string;
|
|
822
774
|
strikeTick: number;
|
|
823
775
|
entryTick: number;
|
|
776
|
+
startTick: number;
|
|
824
777
|
fullyExercised: boolean;
|
|
825
778
|
exerciseEvents: Array<{
|
|
826
779
|
__typename: "ExerciseOptionEvent";
|
|
@@ -850,6 +803,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
850
803
|
ownerAddr: string;
|
|
851
804
|
strikeTick: number;
|
|
852
805
|
entryTick: number;
|
|
806
|
+
startTick: number;
|
|
853
807
|
fullyExercised: boolean;
|
|
854
808
|
exerciseEvents: Array<{
|
|
855
809
|
__typename: "ExerciseOptionEvent";
|
|
@@ -878,6 +832,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
878
832
|
ownerAddr: string;
|
|
879
833
|
strikeTick: number;
|
|
880
834
|
entryTick: number;
|
|
835
|
+
startTick: number;
|
|
881
836
|
fullyExercised: boolean;
|
|
882
837
|
exerciseEvents: Array<{
|
|
883
838
|
__typename: "ExerciseOptionEvent";
|
|
@@ -930,6 +885,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
930
885
|
ownerAddr: string;
|
|
931
886
|
strikeTick: number;
|
|
932
887
|
entryTick: number;
|
|
888
|
+
startTick: number;
|
|
933
889
|
fullyExercised: boolean;
|
|
934
890
|
exerciseEvents: Array<{
|
|
935
891
|
__typename: "ExerciseOptionEvent";
|
|
@@ -959,6 +915,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
959
915
|
ownerAddr: string;
|
|
960
916
|
strikeTick: number;
|
|
961
917
|
entryTick: number;
|
|
918
|
+
startTick: number;
|
|
962
919
|
fullyExercised: boolean;
|
|
963
920
|
exerciseEvents: Array<{
|
|
964
921
|
__typename: "ExerciseOptionEvent";
|
|
@@ -987,6 +944,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
987
944
|
ownerAddr: string;
|
|
988
945
|
strikeTick: number;
|
|
989
946
|
entryTick: number;
|
|
947
|
+
startTick: number;
|
|
990
948
|
fullyExercised: boolean;
|
|
991
949
|
exerciseEvents: Array<{
|
|
992
950
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1038,6 +996,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1038
996
|
ownerAddr: string;
|
|
1039
997
|
strikeTick: number;
|
|
1040
998
|
entryTick: number;
|
|
999
|
+
startTick: number;
|
|
1041
1000
|
fullyExercised: boolean;
|
|
1042
1001
|
exerciseEvents: Array<{
|
|
1043
1002
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1067,6 +1026,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1067
1026
|
ownerAddr: string;
|
|
1068
1027
|
strikeTick: number;
|
|
1069
1028
|
entryTick: number;
|
|
1029
|
+
startTick: number;
|
|
1070
1030
|
fullyExercised: boolean;
|
|
1071
1031
|
exerciseEvents: Array<{
|
|
1072
1032
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1095,6 +1055,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1095
1055
|
ownerAddr: string;
|
|
1096
1056
|
strikeTick: number;
|
|
1097
1057
|
entryTick: number;
|
|
1058
|
+
startTick: number;
|
|
1098
1059
|
fullyExercised: boolean;
|
|
1099
1060
|
exerciseEvents: Array<{
|
|
1100
1061
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1146,6 +1107,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1146
1107
|
ownerAddr: string;
|
|
1147
1108
|
strikeTick: number;
|
|
1148
1109
|
entryTick: number;
|
|
1110
|
+
startTick: number;
|
|
1149
1111
|
fullyExercised: boolean;
|
|
1150
1112
|
exerciseEvents: Array<{
|
|
1151
1113
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1175,6 +1137,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1175
1137
|
ownerAddr: string;
|
|
1176
1138
|
strikeTick: number;
|
|
1177
1139
|
entryTick: number;
|
|
1140
|
+
startTick: number;
|
|
1178
1141
|
fullyExercised: boolean;
|
|
1179
1142
|
exerciseEvents: Array<{
|
|
1180
1143
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1203,6 +1166,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1203
1166
|
ownerAddr: string;
|
|
1204
1167
|
strikeTick: number;
|
|
1205
1168
|
entryTick: number;
|
|
1169
|
+
startTick: number;
|
|
1206
1170
|
fullyExercised: boolean;
|
|
1207
1171
|
exerciseEvents: Array<{
|
|
1208
1172
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1254,6 +1218,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1254
1218
|
ownerAddr: string;
|
|
1255
1219
|
strikeTick: number;
|
|
1256
1220
|
entryTick: number;
|
|
1221
|
+
startTick: number;
|
|
1257
1222
|
fullyExercised: boolean;
|
|
1258
1223
|
exerciseEvents: Array<{
|
|
1259
1224
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1283,6 +1248,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1283
1248
|
ownerAddr: string;
|
|
1284
1249
|
strikeTick: number;
|
|
1285
1250
|
entryTick: number;
|
|
1251
|
+
startTick: number;
|
|
1286
1252
|
fullyExercised: boolean;
|
|
1287
1253
|
exerciseEvents: Array<{
|
|
1288
1254
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1311,6 +1277,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1311
1277
|
ownerAddr: string;
|
|
1312
1278
|
strikeTick: number;
|
|
1313
1279
|
entryTick: number;
|
|
1280
|
+
startTick: number;
|
|
1314
1281
|
fullyExercised: boolean;
|
|
1315
1282
|
exerciseEvents: Array<{
|
|
1316
1283
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1362,6 +1329,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1362
1329
|
ownerAddr: string;
|
|
1363
1330
|
strikeTick: number;
|
|
1364
1331
|
entryTick: number;
|
|
1332
|
+
startTick: number;
|
|
1365
1333
|
fullyExercised: boolean;
|
|
1366
1334
|
exerciseEvents: Array<{
|
|
1367
1335
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1391,6 +1359,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1391
1359
|
ownerAddr: string;
|
|
1392
1360
|
strikeTick: number;
|
|
1393
1361
|
entryTick: number;
|
|
1362
|
+
startTick: number;
|
|
1394
1363
|
fullyExercised: boolean;
|
|
1395
1364
|
exerciseEvents: Array<{
|
|
1396
1365
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1419,6 +1388,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1419
1388
|
ownerAddr: string;
|
|
1420
1389
|
strikeTick: number;
|
|
1421
1390
|
entryTick: number;
|
|
1391
|
+
startTick: number;
|
|
1422
1392
|
fullyExercised: boolean;
|
|
1423
1393
|
exerciseEvents: Array<{
|
|
1424
1394
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1470,6 +1440,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1470
1440
|
ownerAddr: string;
|
|
1471
1441
|
strikeTick: number;
|
|
1472
1442
|
entryTick: number;
|
|
1443
|
+
startTick: number;
|
|
1473
1444
|
fullyExercised: boolean;
|
|
1474
1445
|
exerciseEvents: Array<{
|
|
1475
1446
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1499,6 +1470,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1499
1470
|
ownerAddr: string;
|
|
1500
1471
|
strikeTick: number;
|
|
1501
1472
|
entryTick: number;
|
|
1473
|
+
startTick: number;
|
|
1502
1474
|
fullyExercised: boolean;
|
|
1503
1475
|
exerciseEvents: Array<{
|
|
1504
1476
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1527,6 +1499,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1527
1499
|
ownerAddr: string;
|
|
1528
1500
|
strikeTick: number;
|
|
1529
1501
|
entryTick: number;
|
|
1502
|
+
startTick: number;
|
|
1530
1503
|
fullyExercised: boolean;
|
|
1531
1504
|
exerciseEvents: Array<{
|
|
1532
1505
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1579,6 +1552,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1579
1552
|
ownerAddr: string;
|
|
1580
1553
|
strikeTick: number;
|
|
1581
1554
|
entryTick: number;
|
|
1555
|
+
startTick: number;
|
|
1582
1556
|
fullyExercised: boolean;
|
|
1583
1557
|
exerciseEvents: Array<{
|
|
1584
1558
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1608,6 +1582,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1608
1582
|
ownerAddr: string;
|
|
1609
1583
|
strikeTick: number;
|
|
1610
1584
|
entryTick: number;
|
|
1585
|
+
startTick: number;
|
|
1611
1586
|
fullyExercised: boolean;
|
|
1612
1587
|
exerciseEvents: Array<{
|
|
1613
1588
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1636,6 +1611,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1636
1611
|
ownerAddr: string;
|
|
1637
1612
|
strikeTick: number;
|
|
1638
1613
|
entryTick: number;
|
|
1614
|
+
startTick: number;
|
|
1639
1615
|
fullyExercised: boolean;
|
|
1640
1616
|
exerciseEvents: Array<{
|
|
1641
1617
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1687,6 +1663,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1687
1663
|
ownerAddr: string;
|
|
1688
1664
|
strikeTick: number;
|
|
1689
1665
|
entryTick: number;
|
|
1666
|
+
startTick: number;
|
|
1690
1667
|
fullyExercised: boolean;
|
|
1691
1668
|
exerciseEvents: Array<{
|
|
1692
1669
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1716,6 +1693,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1716
1693
|
ownerAddr: string;
|
|
1717
1694
|
strikeTick: number;
|
|
1718
1695
|
entryTick: number;
|
|
1696
|
+
startTick: number;
|
|
1719
1697
|
fullyExercised: boolean;
|
|
1720
1698
|
exerciseEvents: Array<{
|
|
1721
1699
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1744,6 +1722,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1744
1722
|
ownerAddr: string;
|
|
1745
1723
|
strikeTick: number;
|
|
1746
1724
|
entryTick: number;
|
|
1725
|
+
startTick: number;
|
|
1747
1726
|
fullyExercised: boolean;
|
|
1748
1727
|
exerciseEvents: Array<{
|
|
1749
1728
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1795,6 +1774,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1795
1774
|
ownerAddr: string;
|
|
1796
1775
|
strikeTick: number;
|
|
1797
1776
|
entryTick: number;
|
|
1777
|
+
startTick: number;
|
|
1798
1778
|
fullyExercised: boolean;
|
|
1799
1779
|
exerciseEvents: Array<{
|
|
1800
1780
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1824,6 +1804,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1824
1804
|
ownerAddr: string;
|
|
1825
1805
|
strikeTick: number;
|
|
1826
1806
|
entryTick: number;
|
|
1807
|
+
startTick: number;
|
|
1827
1808
|
fullyExercised: boolean;
|
|
1828
1809
|
exerciseEvents: Array<{
|
|
1829
1810
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1852,6 +1833,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1852
1833
|
ownerAddr: string;
|
|
1853
1834
|
strikeTick: number;
|
|
1854
1835
|
entryTick: number;
|
|
1836
|
+
startTick: number;
|
|
1855
1837
|
fullyExercised: boolean;
|
|
1856
1838
|
exerciseEvents: Array<{
|
|
1857
1839
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1903,6 +1885,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1903
1885
|
ownerAddr: string;
|
|
1904
1886
|
strikeTick: number;
|
|
1905
1887
|
entryTick: number;
|
|
1888
|
+
startTick: number;
|
|
1906
1889
|
fullyExercised: boolean;
|
|
1907
1890
|
exerciseEvents: Array<{
|
|
1908
1891
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1932,6 +1915,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1932
1915
|
ownerAddr: string;
|
|
1933
1916
|
strikeTick: number;
|
|
1934
1917
|
entryTick: number;
|
|
1918
|
+
startTick: number;
|
|
1935
1919
|
fullyExercised: boolean;
|
|
1936
1920
|
exerciseEvents: Array<{
|
|
1937
1921
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1960,6 +1944,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1960
1944
|
ownerAddr: string;
|
|
1961
1945
|
strikeTick: number;
|
|
1962
1946
|
entryTick: number;
|
|
1947
|
+
startTick: number;
|
|
1963
1948
|
fullyExercised: boolean;
|
|
1964
1949
|
exerciseEvents: Array<{
|
|
1965
1950
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2011,6 +1996,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2011
1996
|
ownerAddr: string;
|
|
2012
1997
|
strikeTick: number;
|
|
2013
1998
|
entryTick: number;
|
|
1999
|
+
startTick: number;
|
|
2014
2000
|
fullyExercised: boolean;
|
|
2015
2001
|
exerciseEvents: Array<{
|
|
2016
2002
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2040,6 +2026,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2040
2026
|
ownerAddr: string;
|
|
2041
2027
|
strikeTick: number;
|
|
2042
2028
|
entryTick: number;
|
|
2029
|
+
startTick: number;
|
|
2043
2030
|
fullyExercised: boolean;
|
|
2044
2031
|
exerciseEvents: Array<{
|
|
2045
2032
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2068,6 +2055,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2068
2055
|
ownerAddr: string;
|
|
2069
2056
|
strikeTick: number;
|
|
2070
2057
|
entryTick: number;
|
|
2058
|
+
startTick: number;
|
|
2071
2059
|
fullyExercised: boolean;
|
|
2072
2060
|
exerciseEvents: Array<{
|
|
2073
2061
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2119,6 +2107,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2119
2107
|
ownerAddr: string;
|
|
2120
2108
|
strikeTick: number;
|
|
2121
2109
|
entryTick: number;
|
|
2110
|
+
startTick: number;
|
|
2122
2111
|
fullyExercised: boolean;
|
|
2123
2112
|
exerciseEvents: Array<{
|
|
2124
2113
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2148,6 +2137,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2148
2137
|
ownerAddr: string;
|
|
2149
2138
|
strikeTick: number;
|
|
2150
2139
|
entryTick: number;
|
|
2140
|
+
startTick: number;
|
|
2151
2141
|
fullyExercised: boolean;
|
|
2152
2142
|
exerciseEvents: Array<{
|
|
2153
2143
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2176,6 +2166,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2176
2166
|
ownerAddr: string;
|
|
2177
2167
|
strikeTick: number;
|
|
2178
2168
|
entryTick: number;
|
|
2169
|
+
startTick: number;
|
|
2179
2170
|
fullyExercised: boolean;
|
|
2180
2171
|
exerciseEvents: Array<{
|
|
2181
2172
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2188,6 +2179,72 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2188
2179
|
}[];
|
|
2189
2180
|
};
|
|
2190
2181
|
//#endregion
|
|
2182
|
+
//#region src/hooks/market/useExerciseOption.d.ts
|
|
2183
|
+
declare const useExerciseOption: (marketAddr?: Address) => {
|
|
2184
|
+
exerciseOption: (option: OptionData, liquidities: readonly bigint[]) => Promise<`0x${string}`>;
|
|
2185
|
+
hash: `0x${string}` | undefined;
|
|
2186
|
+
isPending: boolean;
|
|
2187
|
+
isConfirming: boolean;
|
|
2188
|
+
isSuccess: boolean;
|
|
2189
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2190
|
+
isLoading: boolean;
|
|
2191
|
+
};
|
|
2192
|
+
//#endregion
|
|
2193
|
+
//#region src/hooks/market/useMarketData.d.ts
|
|
2194
|
+
declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
|
|
2195
|
+
pool: Address;
|
|
2196
|
+
vault: Address;
|
|
2197
|
+
optionAsset: Address;
|
|
2198
|
+
payoutAsset: Address;
|
|
2199
|
+
optionsCount: bigint;
|
|
2200
|
+
tradersCount: bigint;
|
|
2201
|
+
__typename: "TimelockMarket";
|
|
2202
|
+
id: string;
|
|
2203
|
+
tickSpacing: number;
|
|
2204
|
+
optionAssetIsToken0: boolean;
|
|
2205
|
+
optionAssetDecimals: number;
|
|
2206
|
+
payoutAssetDecimals: number;
|
|
2207
|
+
optionAssetSymbol: string;
|
|
2208
|
+
payoutAssetSymbol: string;
|
|
2209
|
+
optionAssetName: string;
|
|
2210
|
+
payoutAssetName: string;
|
|
2211
|
+
} | undefined>>;
|
|
2212
|
+
//#endregion
|
|
2213
|
+
//#region src/hooks/market/useMaxPositionSize.d.ts
|
|
2214
|
+
declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
2215
|
+
maxCallSize: Amount | undefined;
|
|
2216
|
+
maxPutSize: Amount | undefined;
|
|
2217
|
+
refetch: () => void;
|
|
2218
|
+
};
|
|
2219
|
+
//#endregion
|
|
2220
|
+
//#region src/hooks/market/useMintOption.d.ts
|
|
2221
|
+
declare const useMintOption: (marketAddr?: Address) => {
|
|
2222
|
+
mintOption: (optionType: "CALL" | "PUT", amount: bigint, duration: number, strikeTick?: number) => Promise<`0x${string}`>;
|
|
2223
|
+
hash: `0x${string}` | undefined;
|
|
2224
|
+
isPending: boolean;
|
|
2225
|
+
isConfirming: boolean;
|
|
2226
|
+
isSuccess: boolean;
|
|
2227
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2228
|
+
isLoading: boolean;
|
|
2229
|
+
};
|
|
2230
|
+
//#endregion
|
|
2231
|
+
//#region src/hooks/market/useOptionPnl.d.ts
|
|
2232
|
+
declare const useOptionPnl: (optionData: {
|
|
2233
|
+
marketAddr: Address;
|
|
2234
|
+
optionType: "CALL" | "PUT";
|
|
2235
|
+
positionSizeCurrent: bigint;
|
|
2236
|
+
entryPrice: bigint;
|
|
2237
|
+
}) => {
|
|
2238
|
+
unrealizedPayout?: undefined;
|
|
2239
|
+
displayPnl?: undefined;
|
|
2240
|
+
} | {
|
|
2241
|
+
unrealizedPayout: Amount;
|
|
2242
|
+
displayPnl: Amount;
|
|
2243
|
+
};
|
|
2244
|
+
//#endregion
|
|
2245
|
+
//#region src/hooks/market/useOptionPremium.d.ts
|
|
2246
|
+
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, duration: number, strikeTick?: number) => Amount | undefined;
|
|
2247
|
+
//#endregion
|
|
2191
2248
|
//#region src/hooks/pool/useCurrentPrice.d.ts
|
|
2192
2249
|
declare const useCurrentPrice: (poolAddr?: Address) => {
|
|
2193
2250
|
currentPrice: Amount | undefined;
|
|
@@ -2222,6 +2279,29 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
2222
2279
|
//#region src/hooks/pool/usePriceAtTick.d.ts
|
|
2223
2280
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
2224
2281
|
//#endregion
|
|
2282
|
+
//#region src/lib/price.d.ts
|
|
2283
|
+
interface PriceDataPoint {
|
|
2284
|
+
timestamp: number;
|
|
2285
|
+
price: number;
|
|
2286
|
+
}
|
|
2287
|
+
type PriceResolution = '1m' | '5m' | '15m' | '1h' | '4h' | '1d';
|
|
2288
|
+
//#endregion
|
|
2289
|
+
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
2290
|
+
interface UsePriceHistoryParams {
|
|
2291
|
+
poolAddress?: Address;
|
|
2292
|
+
resolution: PriceResolution;
|
|
2293
|
+
startTimestamp: number;
|
|
2294
|
+
endTimestamp: number;
|
|
2295
|
+
enabled?: boolean;
|
|
2296
|
+
}
|
|
2297
|
+
declare const usePriceHistory: ({
|
|
2298
|
+
poolAddress,
|
|
2299
|
+
resolution,
|
|
2300
|
+
startTimestamp,
|
|
2301
|
+
endTimestamp,
|
|
2302
|
+
enabled
|
|
2303
|
+
}: UsePriceHistoryParams) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
2304
|
+
//#endregion
|
|
2225
2305
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
2226
2306
|
interface BurnPosition {
|
|
2227
2307
|
tickLower: number;
|
|
@@ -2242,7 +2322,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
|
|
|
2242
2322
|
//#region src/hooks/vault/useLiquidityBlocks.d.ts
|
|
2243
2323
|
type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
|
|
2244
2324
|
declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
2245
|
-
error:
|
|
2325
|
+
error: viem117.ReadContractErrorType;
|
|
2246
2326
|
isError: true;
|
|
2247
2327
|
isPending: false;
|
|
2248
2328
|
isLoading: false;
|
|
@@ -2254,7 +2334,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2254
2334
|
dataUpdatedAt: number;
|
|
2255
2335
|
errorUpdatedAt: number;
|
|
2256
2336
|
failureCount: number;
|
|
2257
|
-
failureReason:
|
|
2337
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2258
2338
|
errorUpdateCount: number;
|
|
2259
2339
|
isFetched: boolean;
|
|
2260
2340
|
isFetchedAfterMount: boolean;
|
|
@@ -2274,7 +2354,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2274
2354
|
totalAmount1: bigint;
|
|
2275
2355
|
borrowedAmount0: bigint;
|
|
2276
2356
|
borrowedAmount1: bigint;
|
|
2277
|
-
}[],
|
|
2357
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2278
2358
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2279
2359
|
promise: Promise<readonly {
|
|
2280
2360
|
tickLower: number;
|
|
@@ -2312,7 +2392,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2312
2392
|
dataUpdatedAt: number;
|
|
2313
2393
|
errorUpdatedAt: number;
|
|
2314
2394
|
failureCount: number;
|
|
2315
|
-
failureReason:
|
|
2395
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2316
2396
|
errorUpdateCount: number;
|
|
2317
2397
|
isFetched: boolean;
|
|
2318
2398
|
isFetchedAfterMount: boolean;
|
|
@@ -2332,7 +2412,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2332
2412
|
totalAmount1: bigint;
|
|
2333
2413
|
borrowedAmount0: bigint;
|
|
2334
2414
|
borrowedAmount1: bigint;
|
|
2335
|
-
}[],
|
|
2415
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2336
2416
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2337
2417
|
promise: Promise<readonly {
|
|
2338
2418
|
tickLower: number;
|
|
@@ -2358,7 +2438,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2358
2438
|
borrowedAmount1: bigint;
|
|
2359
2439
|
}[];
|
|
2360
2440
|
} | {
|
|
2361
|
-
error:
|
|
2441
|
+
error: viem117.ReadContractErrorType;
|
|
2362
2442
|
isError: true;
|
|
2363
2443
|
isPending: false;
|
|
2364
2444
|
isLoading: false;
|
|
@@ -2370,7 +2450,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2370
2450
|
dataUpdatedAt: number;
|
|
2371
2451
|
errorUpdatedAt: number;
|
|
2372
2452
|
failureCount: number;
|
|
2373
|
-
failureReason:
|
|
2453
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2374
2454
|
errorUpdateCount: number;
|
|
2375
2455
|
isFetched: boolean;
|
|
2376
2456
|
isFetchedAfterMount: boolean;
|
|
@@ -2390,7 +2470,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2390
2470
|
totalAmount1: bigint;
|
|
2391
2471
|
borrowedAmount0: bigint;
|
|
2392
2472
|
borrowedAmount1: bigint;
|
|
2393
|
-
}[],
|
|
2473
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2394
2474
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2395
2475
|
promise: Promise<readonly {
|
|
2396
2476
|
tickLower: number;
|
|
@@ -2428,7 +2508,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2428
2508
|
dataUpdatedAt: number;
|
|
2429
2509
|
errorUpdatedAt: number;
|
|
2430
2510
|
failureCount: number;
|
|
2431
|
-
failureReason:
|
|
2511
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2432
2512
|
errorUpdateCount: number;
|
|
2433
2513
|
isFetched: boolean;
|
|
2434
2514
|
isFetchedAfterMount: boolean;
|
|
@@ -2448,7 +2528,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2448
2528
|
totalAmount1: bigint;
|
|
2449
2529
|
borrowedAmount0: bigint;
|
|
2450
2530
|
borrowedAmount1: bigint;
|
|
2451
|
-
}[],
|
|
2531
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2452
2532
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2453
2533
|
promise: Promise<readonly {
|
|
2454
2534
|
tickLower: number;
|
|
@@ -2485,7 +2565,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2485
2565
|
dataUpdatedAt: number;
|
|
2486
2566
|
errorUpdatedAt: number;
|
|
2487
2567
|
failureCount: number;
|
|
2488
|
-
failureReason:
|
|
2568
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2489
2569
|
errorUpdateCount: number;
|
|
2490
2570
|
isFetched: boolean;
|
|
2491
2571
|
isFetchedAfterMount: boolean;
|
|
@@ -2506,7 +2586,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2506
2586
|
totalAmount1: bigint;
|
|
2507
2587
|
borrowedAmount0: bigint;
|
|
2508
2588
|
borrowedAmount1: bigint;
|
|
2509
|
-
}[],
|
|
2589
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2510
2590
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2511
2591
|
promise: Promise<readonly {
|
|
2512
2592
|
tickLower: number;
|
|
@@ -2544,7 +2624,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2544
2624
|
dataUpdatedAt: number;
|
|
2545
2625
|
errorUpdatedAt: number;
|
|
2546
2626
|
failureCount: number;
|
|
2547
|
-
failureReason:
|
|
2627
|
+
failureReason: viem117.ReadContractErrorType | null;
|
|
2548
2628
|
errorUpdateCount: number;
|
|
2549
2629
|
isFetched: boolean;
|
|
2550
2630
|
isFetchedAfterMount: boolean;
|
|
@@ -2564,7 +2644,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
2564
2644
|
totalAmount1: bigint;
|
|
2565
2645
|
borrowedAmount0: bigint;
|
|
2566
2646
|
borrowedAmount1: bigint;
|
|
2567
|
-
}[],
|
|
2647
|
+
}[], viem117.ReadContractErrorType>>;
|
|
2568
2648
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2569
2649
|
promise: Promise<readonly {
|
|
2570
2650
|
tickLower: number;
|
|
@@ -2637,14 +2717,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
2637
2717
|
borrowedAmount0: Amount;
|
|
2638
2718
|
borrowedAmount1: Amount;
|
|
2639
2719
|
blocksCount: bigint;
|
|
2640
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint],
|
|
2720
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem117.ReadContractErrorType>>;
|
|
2641
2721
|
};
|
|
2642
2722
|
//#endregion
|
|
2643
2723
|
//#region src/hooks/useLens.d.ts
|
|
2644
2724
|
declare const useLens: () => {
|
|
2645
2725
|
timelockLens: {
|
|
2646
2726
|
read: {
|
|
2647
|
-
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?:
|
|
2727
|
+
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
2648
2728
|
readonly type: "function";
|
|
2649
2729
|
readonly name: "batchGetRefTick";
|
|
2650
2730
|
readonly inputs: readonly [{
|
|
@@ -3350,7 +3430,7 @@ declare const useLens: () => {
|
|
|
3350
3430
|
}];
|
|
3351
3431
|
readonly stateMutability: "view";
|
|
3352
3432
|
}], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
|
|
3353
|
-
getAllBlocks: (args: readonly [`0x${string}`], options?:
|
|
3433
|
+
getAllBlocks: (args: readonly [`0x${string}`], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
3354
3434
|
readonly type: "function";
|
|
3355
3435
|
readonly name: "batchGetRefTick";
|
|
3356
3436
|
readonly inputs: readonly [{
|
|
@@ -4066,7 +4146,7 @@ declare const useLens: () => {
|
|
|
4066
4146
|
borrowedAmount0: bigint;
|
|
4067
4147
|
borrowedAmount1: bigint;
|
|
4068
4148
|
}[]>;
|
|
4069
|
-
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?:
|
|
4149
|
+
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
4070
4150
|
readonly type: "function";
|
|
4071
4151
|
readonly name: "batchGetRefTick";
|
|
4072
4152
|
readonly inputs: readonly [{
|
|
@@ -4791,7 +4871,7 @@ declare const useLens: () => {
|
|
|
4791
4871
|
createdAt: bigint;
|
|
4792
4872
|
liquidities: readonly bigint[];
|
|
4793
4873
|
}[], bigint, boolean]>;
|
|
4794
|
-
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?:
|
|
4874
|
+
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
4795
4875
|
readonly type: "function";
|
|
4796
4876
|
readonly name: "batchGetRefTick";
|
|
4797
4877
|
readonly inputs: readonly [{
|
|
@@ -5497,7 +5577,7 @@ declare const useLens: () => {
|
|
|
5497
5577
|
}];
|
|
5498
5578
|
readonly stateMutability: "view";
|
|
5499
5579
|
}], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
5500
|
-
getMarketData: (args: readonly [`0x${string}`], options?:
|
|
5580
|
+
getMarketData: (args: readonly [`0x${string}`], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
5501
5581
|
readonly type: "function";
|
|
5502
5582
|
readonly name: "batchGetRefTick";
|
|
5503
5583
|
readonly inputs: readonly [{
|
|
@@ -6216,7 +6296,7 @@ declare const useLens: () => {
|
|
|
6216
6296
|
payoutAssetName: string;
|
|
6217
6297
|
optionsCount: bigint;
|
|
6218
6298
|
}>;
|
|
6219
|
-
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?:
|
|
6299
|
+
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
6220
6300
|
readonly type: "function";
|
|
6221
6301
|
readonly name: "batchGetRefTick";
|
|
6222
6302
|
readonly inputs: readonly [{
|
|
@@ -6922,7 +7002,7 @@ declare const useLens: () => {
|
|
|
6922
7002
|
}];
|
|
6923
7003
|
readonly stateMutability: "view";
|
|
6924
7004
|
}], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
6925
|
-
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?:
|
|
7005
|
+
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
6926
7006
|
readonly type: "function";
|
|
6927
7007
|
readonly name: "batchGetRefTick";
|
|
6928
7008
|
readonly inputs: readonly [{
|
|
@@ -7628,7 +7708,7 @@ declare const useLens: () => {
|
|
|
7628
7708
|
}];
|
|
7629
7709
|
readonly stateMutability: "view";
|
|
7630
7710
|
}], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
7631
|
-
getOptionData: (args: readonly [`0x${string}`, bigint], options?:
|
|
7711
|
+
getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
7632
7712
|
readonly type: "function";
|
|
7633
7713
|
readonly name: "batchGetRefTick";
|
|
7634
7714
|
readonly inputs: readonly [{
|
|
@@ -8353,7 +8433,7 @@ declare const useLens: () => {
|
|
|
8353
8433
|
createdAt: bigint;
|
|
8354
8434
|
liquidities: readonly bigint[];
|
|
8355
8435
|
}>;
|
|
8356
|
-
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?:
|
|
8436
|
+
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
8357
8437
|
readonly type: "function";
|
|
8358
8438
|
readonly name: "batchGetRefTick";
|
|
8359
8439
|
readonly inputs: readonly [{
|
|
@@ -9078,7 +9158,7 @@ declare const useLens: () => {
|
|
|
9078
9158
|
createdAt: bigint;
|
|
9079
9159
|
liquidities: readonly bigint[];
|
|
9080
9160
|
}[]>;
|
|
9081
|
-
getPoolData: (args: readonly [`0x${string}`], options?:
|
|
9161
|
+
getPoolData: (args: readonly [`0x${string}`], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
9082
9162
|
readonly type: "function";
|
|
9083
9163
|
readonly name: "batchGetRefTick";
|
|
9084
9164
|
readonly inputs: readonly [{
|
|
@@ -9795,7 +9875,7 @@ declare const useLens: () => {
|
|
|
9795
9875
|
tickSpacing: number;
|
|
9796
9876
|
fee: number;
|
|
9797
9877
|
}>;
|
|
9798
|
-
getRefTick: (args: readonly [`0x${string}`, number], options?:
|
|
9878
|
+
getRefTick: (args: readonly [`0x${string}`, number], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
9799
9879
|
readonly type: "function";
|
|
9800
9880
|
readonly name: "batchGetRefTick";
|
|
9801
9881
|
readonly inputs: readonly [{
|
|
@@ -10501,7 +10581,7 @@ declare const useLens: () => {
|
|
|
10501
10581
|
}];
|
|
10502
10582
|
readonly stateMutability: "view";
|
|
10503
10583
|
}], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
10504
|
-
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?:
|
|
10584
|
+
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
10505
10585
|
readonly type: "function";
|
|
10506
10586
|
readonly name: "batchGetRefTick";
|
|
10507
10587
|
readonly inputs: readonly [{
|
|
@@ -11226,7 +11306,7 @@ declare const useLens: () => {
|
|
|
11226
11306
|
createdAt: bigint;
|
|
11227
11307
|
liquidities: readonly bigint[];
|
|
11228
11308
|
}[], bigint, boolean]>;
|
|
11229
|
-
getVaultTVL: (args: readonly [`0x${string}`], options?:
|
|
11309
|
+
getVaultTVL: (args: readonly [`0x${string}`], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
11230
11310
|
readonly type: "function";
|
|
11231
11311
|
readonly name: "batchGetRefTick";
|
|
11232
11312
|
readonly inputs: readonly [{
|
|
@@ -12643,7 +12723,7 @@ declare const useLens: () => {
|
|
|
12643
12723
|
} | undefined;
|
|
12644
12724
|
uniswapLens: {
|
|
12645
12725
|
read: {
|
|
12646
|
-
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
12726
|
+
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
12647
12727
|
readonly type: "function";
|
|
12648
12728
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
12649
12729
|
readonly inputs: readonly [{
|
|
@@ -13264,7 +13344,7 @@ declare const useLens: () => {
|
|
|
13264
13344
|
}];
|
|
13265
13345
|
readonly stateMutability: "pure";
|
|
13266
13346
|
}], "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?:
|
|
13347
|
+
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
13268
13348
|
readonly type: "function";
|
|
13269
13349
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
13270
13350
|
readonly inputs: readonly [{
|
|
@@ -13885,7 +13965,7 @@ declare const useLens: () => {
|
|
|
13885
13965
|
}];
|
|
13886
13966
|
readonly stateMutability: "pure";
|
|
13887
13967
|
}], "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?:
|
|
13968
|
+
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
13889
13969
|
readonly type: "function";
|
|
13890
13970
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
13891
13971
|
readonly inputs: readonly [{
|
|
@@ -14506,7 +14586,7 @@ declare const useLens: () => {
|
|
|
14506
14586
|
}];
|
|
14507
14587
|
readonly stateMutability: "pure";
|
|
14508
14588
|
}], "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?:
|
|
14589
|
+
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
14510
14590
|
readonly type: "function";
|
|
14511
14591
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
14512
14592
|
readonly inputs: readonly [{
|
|
@@ -15127,7 +15207,7 @@ declare const useLens: () => {
|
|
|
15127
15207
|
}];
|
|
15128
15208
|
readonly stateMutability: "pure";
|
|
15129
15209
|
}], "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?:
|
|
15210
|
+
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
15131
15211
|
readonly type: "function";
|
|
15132
15212
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15133
15213
|
readonly inputs: readonly [{
|
|
@@ -15748,7 +15828,7 @@ declare const useLens: () => {
|
|
|
15748
15828
|
}];
|
|
15749
15829
|
readonly stateMutability: "pure";
|
|
15750
15830
|
}], "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?:
|
|
15831
|
+
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
15752
15832
|
readonly type: "function";
|
|
15753
15833
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15754
15834
|
readonly inputs: readonly [{
|
|
@@ -16369,7 +16449,7 @@ declare const useLens: () => {
|
|
|
16369
16449
|
}];
|
|
16370
16450
|
readonly stateMutability: "pure";
|
|
16371
16451
|
}], "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?:
|
|
16452
|
+
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
16373
16453
|
readonly type: "function";
|
|
16374
16454
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
16375
16455
|
readonly inputs: readonly [{
|
|
@@ -16990,7 +17070,7 @@ declare const useLens: () => {
|
|
|
16990
17070
|
}];
|
|
16991
17071
|
readonly stateMutability: "pure";
|
|
16992
17072
|
}], "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?:
|
|
17073
|
+
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
16994
17074
|
readonly type: "function";
|
|
16995
17075
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
16996
17076
|
readonly inputs: readonly [{
|
|
@@ -17611,7 +17691,7 @@ declare const useLens: () => {
|
|
|
17611
17691
|
}];
|
|
17612
17692
|
readonly stateMutability: "pure";
|
|
17613
17693
|
}], "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?:
|
|
17694
|
+
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
17615
17695
|
readonly type: "function";
|
|
17616
17696
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
17617
17697
|
readonly inputs: readonly [{
|
|
@@ -18232,7 +18312,7 @@ declare const useLens: () => {
|
|
|
18232
18312
|
}];
|
|
18233
18313
|
readonly stateMutability: "pure";
|
|
18234
18314
|
}], "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?:
|
|
18315
|
+
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
18236
18316
|
readonly type: "function";
|
|
18237
18317
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18238
18318
|
readonly inputs: readonly [{
|
|
@@ -18853,7 +18933,7 @@ declare const useLens: () => {
|
|
|
18853
18933
|
}];
|
|
18854
18934
|
readonly stateMutability: "pure";
|
|
18855
18935
|
}], "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?:
|
|
18936
|
+
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
18857
18937
|
readonly type: "function";
|
|
18858
18938
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18859
18939
|
readonly inputs: readonly [{
|
|
@@ -19474,7 +19554,7 @@ declare const useLens: () => {
|
|
|
19474
19554
|
}];
|
|
19475
19555
|
readonly stateMutability: "pure";
|
|
19476
19556
|
}], "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?:
|
|
19557
|
+
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
19478
19558
|
readonly type: "function";
|
|
19479
19559
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
19480
19560
|
readonly inputs: readonly [{
|
|
@@ -20095,7 +20175,7 @@ declare const useLens: () => {
|
|
|
20095
20175
|
}];
|
|
20096
20176
|
readonly stateMutability: "pure";
|
|
20097
20177
|
}], "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?:
|
|
20178
|
+
batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
20099
20179
|
readonly type: "function";
|
|
20100
20180
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20101
20181
|
readonly inputs: readonly [{
|
|
@@ -20716,7 +20796,7 @@ declare const useLens: () => {
|
|
|
20716
20796
|
}];
|
|
20717
20797
|
readonly stateMutability: "pure";
|
|
20718
20798
|
}], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
20719
|
-
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
20799
|
+
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
20720
20800
|
readonly type: "function";
|
|
20721
20801
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20722
20802
|
readonly inputs: readonly [{
|
|
@@ -21337,7 +21417,7 @@ declare const useLens: () => {
|
|
|
21337
21417
|
}];
|
|
21338
21418
|
readonly stateMutability: "pure";
|
|
21339
21419
|
}], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
21340
|
-
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
21420
|
+
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
21341
21421
|
readonly type: "function";
|
|
21342
21422
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
21343
21423
|
readonly inputs: readonly [{
|
|
@@ -21958,7 +22038,7 @@ declare const useLens: () => {
|
|
|
21958
22038
|
}];
|
|
21959
22039
|
readonly stateMutability: "pure";
|
|
21960
22040
|
}], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
21961
|
-
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
22041
|
+
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
21962
22042
|
readonly type: "function";
|
|
21963
22043
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
21964
22044
|
readonly inputs: readonly [{
|
|
@@ -22579,7 +22659,7 @@ declare const useLens: () => {
|
|
|
22579
22659
|
}];
|
|
22580
22660
|
readonly stateMutability: "pure";
|
|
22581
22661
|
}], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
22582
|
-
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
22662
|
+
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
22583
22663
|
readonly type: "function";
|
|
22584
22664
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
22585
22665
|
readonly inputs: readonly [{
|
|
@@ -23200,7 +23280,7 @@ declare const useLens: () => {
|
|
|
23200
23280
|
}];
|
|
23201
23281
|
readonly stateMutability: "pure";
|
|
23202
23282
|
}], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
23203
|
-
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?:
|
|
23283
|
+
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
23204
23284
|
readonly type: "function";
|
|
23205
23285
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
23206
23286
|
readonly inputs: readonly [{
|
|
@@ -23821,7 +23901,7 @@ declare const useLens: () => {
|
|
|
23821
23901
|
}];
|
|
23822
23902
|
readonly stateMutability: "pure";
|
|
23823
23903
|
}], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
23824
|
-
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?:
|
|
23904
|
+
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
23825
23905
|
readonly type: "function";
|
|
23826
23906
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
23827
23907
|
readonly inputs: readonly [{
|
|
@@ -24442,7 +24522,7 @@ declare const useLens: () => {
|
|
|
24442
24522
|
}];
|
|
24443
24523
|
readonly stateMutability: "pure";
|
|
24444
24524
|
}], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
24445
|
-
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?:
|
|
24525
|
+
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
24446
24526
|
readonly type: "function";
|
|
24447
24527
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
24448
24528
|
readonly inputs: readonly [{
|
|
@@ -25063,7 +25143,7 @@ declare const useLens: () => {
|
|
|
25063
25143
|
}];
|
|
25064
25144
|
readonly stateMutability: "pure";
|
|
25065
25145
|
}], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
25066
|
-
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?:
|
|
25146
|
+
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
25067
25147
|
readonly type: "function";
|
|
25068
25148
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
25069
25149
|
readonly inputs: readonly [{
|
|
@@ -25684,7 +25764,7 @@ declare const useLens: () => {
|
|
|
25684
25764
|
}];
|
|
25685
25765
|
readonly stateMutability: "pure";
|
|
25686
25766
|
}], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
25687
|
-
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?:
|
|
25767
|
+
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
25688
25768
|
readonly type: "function";
|
|
25689
25769
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
25690
25770
|
readonly inputs: readonly [{
|
|
@@ -26305,7 +26385,7 @@ declare const useLens: () => {
|
|
|
26305
26385
|
}];
|
|
26306
26386
|
readonly stateMutability: "pure";
|
|
26307
26387
|
}], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
26308
|
-
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?:
|
|
26388
|
+
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
26309
26389
|
readonly type: "function";
|
|
26310
26390
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
26311
26391
|
readonly inputs: readonly [{
|
|
@@ -26926,7 +27006,7 @@ declare const useLens: () => {
|
|
|
26926
27006
|
}];
|
|
26927
27007
|
readonly stateMutability: "pure";
|
|
26928
27008
|
}], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
26929
|
-
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?:
|
|
27009
|
+
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
26930
27010
|
readonly type: "function";
|
|
26931
27011
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
26932
27012
|
readonly inputs: readonly [{
|
|
@@ -27547,7 +27627,7 @@ declare const useLens: () => {
|
|
|
27547
27627
|
}];
|
|
27548
27628
|
readonly stateMutability: "pure";
|
|
27549
27629
|
}], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
27550
|
-
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?:
|
|
27630
|
+
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
27551
27631
|
readonly type: "function";
|
|
27552
27632
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
27553
27633
|
readonly inputs: readonly [{
|
|
@@ -28168,7 +28248,7 @@ declare const useLens: () => {
|
|
|
28168
28248
|
}];
|
|
28169
28249
|
readonly stateMutability: "pure";
|
|
28170
28250
|
}], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
28171
|
-
getPriceAtTick: (args: readonly [number], options?:
|
|
28251
|
+
getPriceAtTick: (args: readonly [number], options?: viem117.Prettify<viem117.UnionOmit<viem117.ReadContractParameters<readonly [{
|
|
28172
28252
|
readonly type: "function";
|
|
28173
28253
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
28174
28254
|
readonly inputs: readonly [{
|
|
@@ -29415,5 +29495,5 @@ declare const useLens: () => {
|
|
|
29415
29495
|
} | undefined;
|
|
29416
29496
|
};
|
|
29417
29497
|
//#endregion
|
|
29418
|
-
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 };
|
|
29498
|
+
export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, type UsePriceHistoryParams, batchGetAmountsFromLiquidity, useActiveUserOptions, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, usePriceHistory, useTimelockConfig, useVaultData, useVaultTVL };
|
|
29419
29499
|
//# sourceMappingURL=client.d.cts.map
|