timelock-sdk 0.0.34 → 0.0.36
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 +102 -32
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +258 -122
- package/dist/client.d.ts +313 -177
- package/dist/client.js +94 -25
- package/dist/client.js.map +1 -1
- package/dist/{index-CRhFaRiq.d.ts → index-B20z73_3.d.ts} +92 -92
- package/dist/package.d.ts +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
|
@@ -6,8 +6,9 @@ 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 {
|
|
@@ -61,10 +62,12 @@ type GetActiveUserOptionsQuery = {
|
|
|
61
62
|
UserOption: Array<{
|
|
62
63
|
__typename: 'UserOption';
|
|
63
64
|
id: string;
|
|
65
|
+
optionId: any;
|
|
64
66
|
ownerAddr: string;
|
|
65
67
|
optionType: any;
|
|
66
68
|
strikeTick: number;
|
|
67
69
|
entryTick: number;
|
|
70
|
+
startTick: number;
|
|
68
71
|
strikePrice: any;
|
|
69
72
|
entryPrice: any;
|
|
70
73
|
expiresAt: number;
|
|
@@ -95,10 +98,12 @@ type GetClosedUserOptionsQuery = {
|
|
|
95
98
|
UserOption: Array<{
|
|
96
99
|
__typename: 'UserOption';
|
|
97
100
|
id: string;
|
|
101
|
+
optionId: any;
|
|
98
102
|
ownerAddr: string;
|
|
99
103
|
optionType: any;
|
|
100
104
|
strikeTick: number;
|
|
101
105
|
entryTick: number;
|
|
106
|
+
startTick: number;
|
|
102
107
|
strikePrice: any;
|
|
103
108
|
entryPrice: any;
|
|
104
109
|
expiresAt: number;
|
|
@@ -172,72 +177,6 @@ declare const TimelockMarketProvider: ({
|
|
|
172
177
|
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
173
178
|
declare const useTimelockConfig: () => TimelockMarketContextValue;
|
|
174
179
|
//#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
180
|
//#region src/hooks/market/useUserOptions.d.ts
|
|
242
181
|
type OptionData = ReturnType<typeof useUserOptions>['data'][0];
|
|
243
182
|
declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
@@ -264,7 +203,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
264
203
|
isStale: boolean;
|
|
265
204
|
isEnabled: boolean;
|
|
266
205
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
267
|
-
|
|
206
|
+
optionId: bigint;
|
|
268
207
|
marketAddr: Address;
|
|
269
208
|
optionType: "CALL" | "PUT";
|
|
270
209
|
createdAt: Date;
|
|
@@ -278,9 +217,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
278
217
|
strikePrice: bigint;
|
|
279
218
|
entryPrice: bigint;
|
|
280
219
|
__typename: "UserOption";
|
|
220
|
+
id: string;
|
|
281
221
|
ownerAddr: string;
|
|
282
222
|
strikeTick: number;
|
|
283
223
|
entryTick: number;
|
|
224
|
+
startTick: number;
|
|
284
225
|
fullyExercised: boolean;
|
|
285
226
|
exerciseEvents: Array<{
|
|
286
227
|
__typename: "ExerciseOptionEvent";
|
|
@@ -293,7 +234,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
293
234
|
}[], Error>>;
|
|
294
235
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
295
236
|
promise: Promise<{
|
|
296
|
-
|
|
237
|
+
optionId: bigint;
|
|
297
238
|
marketAddr: Address;
|
|
298
239
|
optionType: "CALL" | "PUT";
|
|
299
240
|
createdAt: Date;
|
|
@@ -307,9 +248,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
307
248
|
strikePrice: bigint;
|
|
308
249
|
entryPrice: bigint;
|
|
309
250
|
__typename: "UserOption";
|
|
251
|
+
id: string;
|
|
310
252
|
ownerAddr: string;
|
|
311
253
|
strikeTick: number;
|
|
312
254
|
entryTick: number;
|
|
255
|
+
startTick: number;
|
|
313
256
|
fullyExercised: boolean;
|
|
314
257
|
exerciseEvents: Array<{
|
|
315
258
|
__typename: "ExerciseOptionEvent";
|
|
@@ -321,7 +264,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
321
264
|
} | null;
|
|
322
265
|
}[]>;
|
|
323
266
|
data: {
|
|
324
|
-
|
|
267
|
+
optionId: bigint;
|
|
325
268
|
marketAddr: Address;
|
|
326
269
|
optionType: "CALL" | "PUT";
|
|
327
270
|
createdAt: Date;
|
|
@@ -335,9 +278,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
335
278
|
strikePrice: bigint;
|
|
336
279
|
entryPrice: bigint;
|
|
337
280
|
__typename: "UserOption";
|
|
281
|
+
id: string;
|
|
338
282
|
ownerAddr: string;
|
|
339
283
|
strikeTick: number;
|
|
340
284
|
entryTick: number;
|
|
285
|
+
startTick: number;
|
|
341
286
|
fullyExercised: boolean;
|
|
342
287
|
exerciseEvents: Array<{
|
|
343
288
|
__typename: "ExerciseOptionEvent";
|
|
@@ -372,7 +317,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
372
317
|
isStale: boolean;
|
|
373
318
|
isEnabled: boolean;
|
|
374
319
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
375
|
-
|
|
320
|
+
optionId: bigint;
|
|
376
321
|
marketAddr: Address;
|
|
377
322
|
optionType: "CALL" | "PUT";
|
|
378
323
|
createdAt: Date;
|
|
@@ -386,9 +331,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
386
331
|
strikePrice: bigint;
|
|
387
332
|
entryPrice: bigint;
|
|
388
333
|
__typename: "UserOption";
|
|
334
|
+
id: string;
|
|
389
335
|
ownerAddr: string;
|
|
390
336
|
strikeTick: number;
|
|
391
337
|
entryTick: number;
|
|
338
|
+
startTick: number;
|
|
392
339
|
fullyExercised: boolean;
|
|
393
340
|
exerciseEvents: Array<{
|
|
394
341
|
__typename: "ExerciseOptionEvent";
|
|
@@ -401,7 +348,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
401
348
|
}[], Error>>;
|
|
402
349
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
403
350
|
promise: Promise<{
|
|
404
|
-
|
|
351
|
+
optionId: bigint;
|
|
405
352
|
marketAddr: Address;
|
|
406
353
|
optionType: "CALL" | "PUT";
|
|
407
354
|
createdAt: Date;
|
|
@@ -415,9 +362,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
415
362
|
strikePrice: bigint;
|
|
416
363
|
entryPrice: bigint;
|
|
417
364
|
__typename: "UserOption";
|
|
365
|
+
id: string;
|
|
418
366
|
ownerAddr: string;
|
|
419
367
|
strikeTick: number;
|
|
420
368
|
entryTick: number;
|
|
369
|
+
startTick: number;
|
|
421
370
|
fullyExercised: boolean;
|
|
422
371
|
exerciseEvents: Array<{
|
|
423
372
|
__typename: "ExerciseOptionEvent";
|
|
@@ -429,7 +378,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
429
378
|
} | null;
|
|
430
379
|
}[]>;
|
|
431
380
|
data: {
|
|
432
|
-
|
|
381
|
+
optionId: bigint;
|
|
433
382
|
marketAddr: Address;
|
|
434
383
|
optionType: "CALL" | "PUT";
|
|
435
384
|
createdAt: Date;
|
|
@@ -443,9 +392,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
443
392
|
strikePrice: bigint;
|
|
444
393
|
entryPrice: bigint;
|
|
445
394
|
__typename: "UserOption";
|
|
395
|
+
id: string;
|
|
446
396
|
ownerAddr: string;
|
|
447
397
|
strikeTick: number;
|
|
448
398
|
entryTick: number;
|
|
399
|
+
startTick: number;
|
|
449
400
|
fullyExercised: boolean;
|
|
450
401
|
exerciseEvents: Array<{
|
|
451
402
|
__typename: "ExerciseOptionEvent";
|
|
@@ -480,7 +431,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
480
431
|
isStale: boolean;
|
|
481
432
|
isEnabled: boolean;
|
|
482
433
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
483
|
-
|
|
434
|
+
optionId: bigint;
|
|
484
435
|
marketAddr: Address;
|
|
485
436
|
optionType: "CALL" | "PUT";
|
|
486
437
|
createdAt: Date;
|
|
@@ -494,9 +445,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
494
445
|
strikePrice: bigint;
|
|
495
446
|
entryPrice: bigint;
|
|
496
447
|
__typename: "UserOption";
|
|
448
|
+
id: string;
|
|
497
449
|
ownerAddr: string;
|
|
498
450
|
strikeTick: number;
|
|
499
451
|
entryTick: number;
|
|
452
|
+
startTick: number;
|
|
500
453
|
fullyExercised: boolean;
|
|
501
454
|
exerciseEvents: Array<{
|
|
502
455
|
__typename: "ExerciseOptionEvent";
|
|
@@ -509,7 +462,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
509
462
|
}[], Error>>;
|
|
510
463
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
511
464
|
promise: Promise<{
|
|
512
|
-
|
|
465
|
+
optionId: bigint;
|
|
513
466
|
marketAddr: Address;
|
|
514
467
|
optionType: "CALL" | "PUT";
|
|
515
468
|
createdAt: Date;
|
|
@@ -523,9 +476,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
523
476
|
strikePrice: bigint;
|
|
524
477
|
entryPrice: bigint;
|
|
525
478
|
__typename: "UserOption";
|
|
479
|
+
id: string;
|
|
526
480
|
ownerAddr: string;
|
|
527
481
|
strikeTick: number;
|
|
528
482
|
entryTick: number;
|
|
483
|
+
startTick: number;
|
|
529
484
|
fullyExercised: boolean;
|
|
530
485
|
exerciseEvents: Array<{
|
|
531
486
|
__typename: "ExerciseOptionEvent";
|
|
@@ -537,7 +492,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
537
492
|
} | null;
|
|
538
493
|
}[]>;
|
|
539
494
|
data: {
|
|
540
|
-
|
|
495
|
+
optionId: bigint;
|
|
541
496
|
marketAddr: Address;
|
|
542
497
|
optionType: "CALL" | "PUT";
|
|
543
498
|
createdAt: Date;
|
|
@@ -551,9 +506,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
551
506
|
strikePrice: bigint;
|
|
552
507
|
entryPrice: bigint;
|
|
553
508
|
__typename: "UserOption";
|
|
509
|
+
id: string;
|
|
554
510
|
ownerAddr: string;
|
|
555
511
|
strikeTick: number;
|
|
556
512
|
entryTick: number;
|
|
513
|
+
startTick: number;
|
|
557
514
|
fullyExercised: boolean;
|
|
558
515
|
exerciseEvents: Array<{
|
|
559
516
|
__typename: "ExerciseOptionEvent";
|
|
@@ -588,7 +545,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
588
545
|
isStale: boolean;
|
|
589
546
|
isEnabled: boolean;
|
|
590
547
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
591
|
-
|
|
548
|
+
optionId: bigint;
|
|
592
549
|
marketAddr: Address;
|
|
593
550
|
optionType: "CALL" | "PUT";
|
|
594
551
|
createdAt: Date;
|
|
@@ -602,9 +559,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
602
559
|
strikePrice: bigint;
|
|
603
560
|
entryPrice: bigint;
|
|
604
561
|
__typename: "UserOption";
|
|
562
|
+
id: string;
|
|
605
563
|
ownerAddr: string;
|
|
606
564
|
strikeTick: number;
|
|
607
565
|
entryTick: number;
|
|
566
|
+
startTick: number;
|
|
608
567
|
fullyExercised: boolean;
|
|
609
568
|
exerciseEvents: Array<{
|
|
610
569
|
__typename: "ExerciseOptionEvent";
|
|
@@ -617,7 +576,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
617
576
|
}[], Error>>;
|
|
618
577
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
619
578
|
promise: Promise<{
|
|
620
|
-
|
|
579
|
+
optionId: bigint;
|
|
621
580
|
marketAddr: Address;
|
|
622
581
|
optionType: "CALL" | "PUT";
|
|
623
582
|
createdAt: Date;
|
|
@@ -631,9 +590,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
631
590
|
strikePrice: bigint;
|
|
632
591
|
entryPrice: bigint;
|
|
633
592
|
__typename: "UserOption";
|
|
593
|
+
id: string;
|
|
634
594
|
ownerAddr: string;
|
|
635
595
|
strikeTick: number;
|
|
636
596
|
entryTick: number;
|
|
597
|
+
startTick: number;
|
|
637
598
|
fullyExercised: boolean;
|
|
638
599
|
exerciseEvents: Array<{
|
|
639
600
|
__typename: "ExerciseOptionEvent";
|
|
@@ -645,7 +606,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
645
606
|
} | null;
|
|
646
607
|
}[]>;
|
|
647
608
|
data: {
|
|
648
|
-
|
|
609
|
+
optionId: bigint;
|
|
649
610
|
marketAddr: Address;
|
|
650
611
|
optionType: "CALL" | "PUT";
|
|
651
612
|
createdAt: Date;
|
|
@@ -659,9 +620,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
659
620
|
strikePrice: bigint;
|
|
660
621
|
entryPrice: bigint;
|
|
661
622
|
__typename: "UserOption";
|
|
623
|
+
id: string;
|
|
662
624
|
ownerAddr: string;
|
|
663
625
|
strikeTick: number;
|
|
664
626
|
entryTick: number;
|
|
627
|
+
startTick: number;
|
|
665
628
|
fullyExercised: boolean;
|
|
666
629
|
exerciseEvents: Array<{
|
|
667
630
|
__typename: "ExerciseOptionEvent";
|
|
@@ -696,7 +659,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
696
659
|
isStale: boolean;
|
|
697
660
|
isEnabled: boolean;
|
|
698
661
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
699
|
-
|
|
662
|
+
optionId: bigint;
|
|
700
663
|
marketAddr: Address;
|
|
701
664
|
optionType: "CALL" | "PUT";
|
|
702
665
|
createdAt: Date;
|
|
@@ -710,9 +673,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
710
673
|
strikePrice: bigint;
|
|
711
674
|
entryPrice: bigint;
|
|
712
675
|
__typename: "UserOption";
|
|
676
|
+
id: string;
|
|
713
677
|
ownerAddr: string;
|
|
714
678
|
strikeTick: number;
|
|
715
679
|
entryTick: number;
|
|
680
|
+
startTick: number;
|
|
716
681
|
fullyExercised: boolean;
|
|
717
682
|
exerciseEvents: Array<{
|
|
718
683
|
__typename: "ExerciseOptionEvent";
|
|
@@ -725,7 +690,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
725
690
|
}[], Error>>;
|
|
726
691
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
727
692
|
promise: Promise<{
|
|
728
|
-
|
|
693
|
+
optionId: bigint;
|
|
729
694
|
marketAddr: Address;
|
|
730
695
|
optionType: "CALL" | "PUT";
|
|
731
696
|
createdAt: Date;
|
|
@@ -739,9 +704,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
739
704
|
strikePrice: bigint;
|
|
740
705
|
entryPrice: bigint;
|
|
741
706
|
__typename: "UserOption";
|
|
707
|
+
id: string;
|
|
742
708
|
ownerAddr: string;
|
|
743
709
|
strikeTick: number;
|
|
744
710
|
entryTick: number;
|
|
711
|
+
startTick: number;
|
|
745
712
|
fullyExercised: boolean;
|
|
746
713
|
exerciseEvents: Array<{
|
|
747
714
|
__typename: "ExerciseOptionEvent";
|
|
@@ -753,7 +720,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
753
720
|
} | null;
|
|
754
721
|
}[]>;
|
|
755
722
|
data: {
|
|
756
|
-
|
|
723
|
+
optionId: bigint;
|
|
757
724
|
marketAddr: Address;
|
|
758
725
|
optionType: "CALL" | "PUT";
|
|
759
726
|
createdAt: Date;
|
|
@@ -767,9 +734,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
767
734
|
strikePrice: bigint;
|
|
768
735
|
entryPrice: bigint;
|
|
769
736
|
__typename: "UserOption";
|
|
737
|
+
id: string;
|
|
770
738
|
ownerAddr: string;
|
|
771
739
|
strikeTick: number;
|
|
772
740
|
entryTick: number;
|
|
741
|
+
startTick: number;
|
|
773
742
|
fullyExercised: boolean;
|
|
774
743
|
exerciseEvents: Array<{
|
|
775
744
|
__typename: "ExerciseOptionEvent";
|
|
@@ -804,7 +773,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
804
773
|
isStale: boolean;
|
|
805
774
|
isEnabled: boolean;
|
|
806
775
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
807
|
-
|
|
776
|
+
optionId: bigint;
|
|
808
777
|
marketAddr: Address;
|
|
809
778
|
optionType: "CALL" | "PUT";
|
|
810
779
|
createdAt: Date;
|
|
@@ -818,9 +787,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
818
787
|
strikePrice: bigint;
|
|
819
788
|
entryPrice: bigint;
|
|
820
789
|
__typename: "UserOption";
|
|
790
|
+
id: string;
|
|
821
791
|
ownerAddr: string;
|
|
822
792
|
strikeTick: number;
|
|
823
793
|
entryTick: number;
|
|
794
|
+
startTick: number;
|
|
824
795
|
fullyExercised: boolean;
|
|
825
796
|
exerciseEvents: Array<{
|
|
826
797
|
__typename: "ExerciseOptionEvent";
|
|
@@ -833,7 +804,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
833
804
|
}[], Error>>;
|
|
834
805
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
835
806
|
promise: Promise<{
|
|
836
|
-
|
|
807
|
+
optionId: bigint;
|
|
837
808
|
marketAddr: Address;
|
|
838
809
|
optionType: "CALL" | "PUT";
|
|
839
810
|
createdAt: Date;
|
|
@@ -847,9 +818,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
847
818
|
strikePrice: bigint;
|
|
848
819
|
entryPrice: bigint;
|
|
849
820
|
__typename: "UserOption";
|
|
821
|
+
id: string;
|
|
850
822
|
ownerAddr: string;
|
|
851
823
|
strikeTick: number;
|
|
852
824
|
entryTick: number;
|
|
825
|
+
startTick: number;
|
|
853
826
|
fullyExercised: boolean;
|
|
854
827
|
exerciseEvents: Array<{
|
|
855
828
|
__typename: "ExerciseOptionEvent";
|
|
@@ -861,7 +834,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
861
834
|
} | null;
|
|
862
835
|
}[]>;
|
|
863
836
|
data: {
|
|
864
|
-
|
|
837
|
+
optionId: bigint;
|
|
865
838
|
marketAddr: Address;
|
|
866
839
|
optionType: "CALL" | "PUT";
|
|
867
840
|
createdAt: Date;
|
|
@@ -875,9 +848,11 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
875
848
|
strikePrice: bigint;
|
|
876
849
|
entryPrice: bigint;
|
|
877
850
|
__typename: "UserOption";
|
|
851
|
+
id: string;
|
|
878
852
|
ownerAddr: string;
|
|
879
853
|
strikeTick: number;
|
|
880
854
|
entryTick: number;
|
|
855
|
+
startTick: number;
|
|
881
856
|
fullyExercised: boolean;
|
|
882
857
|
exerciseEvents: Array<{
|
|
883
858
|
__typename: "ExerciseOptionEvent";
|
|
@@ -913,7 +888,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
913
888
|
isStale: boolean;
|
|
914
889
|
isEnabled: boolean;
|
|
915
890
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
916
|
-
|
|
891
|
+
optionId: bigint;
|
|
917
892
|
marketAddr: Address;
|
|
918
893
|
optionType: "CALL" | "PUT";
|
|
919
894
|
createdAt: Date;
|
|
@@ -927,9 +902,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
927
902
|
strikePrice: bigint;
|
|
928
903
|
entryPrice: bigint;
|
|
929
904
|
__typename: "UserOption";
|
|
905
|
+
id: string;
|
|
930
906
|
ownerAddr: string;
|
|
931
907
|
strikeTick: number;
|
|
932
908
|
entryTick: number;
|
|
909
|
+
startTick: number;
|
|
933
910
|
fullyExercised: boolean;
|
|
934
911
|
exerciseEvents: Array<{
|
|
935
912
|
__typename: "ExerciseOptionEvent";
|
|
@@ -942,7 +919,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
942
919
|
}[], Error>>;
|
|
943
920
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
944
921
|
promise: Promise<{
|
|
945
|
-
|
|
922
|
+
optionId: bigint;
|
|
946
923
|
marketAddr: Address;
|
|
947
924
|
optionType: "CALL" | "PUT";
|
|
948
925
|
createdAt: Date;
|
|
@@ -956,9 +933,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
956
933
|
strikePrice: bigint;
|
|
957
934
|
entryPrice: bigint;
|
|
958
935
|
__typename: "UserOption";
|
|
936
|
+
id: string;
|
|
959
937
|
ownerAddr: string;
|
|
960
938
|
strikeTick: number;
|
|
961
939
|
entryTick: number;
|
|
940
|
+
startTick: number;
|
|
962
941
|
fullyExercised: boolean;
|
|
963
942
|
exerciseEvents: Array<{
|
|
964
943
|
__typename: "ExerciseOptionEvent";
|
|
@@ -970,7 +949,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
970
949
|
} | null;
|
|
971
950
|
}[]>;
|
|
972
951
|
data: {
|
|
973
|
-
|
|
952
|
+
optionId: bigint;
|
|
974
953
|
marketAddr: Address;
|
|
975
954
|
optionType: "CALL" | "PUT";
|
|
976
955
|
createdAt: Date;
|
|
@@ -984,9 +963,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
984
963
|
strikePrice: bigint;
|
|
985
964
|
entryPrice: bigint;
|
|
986
965
|
__typename: "UserOption";
|
|
966
|
+
id: string;
|
|
987
967
|
ownerAddr: string;
|
|
988
968
|
strikeTick: number;
|
|
989
969
|
entryTick: number;
|
|
970
|
+
startTick: number;
|
|
990
971
|
fullyExercised: boolean;
|
|
991
972
|
exerciseEvents: Array<{
|
|
992
973
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1021,7 +1002,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1021
1002
|
isStale: boolean;
|
|
1022
1003
|
isEnabled: boolean;
|
|
1023
1004
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1024
|
-
|
|
1005
|
+
optionId: bigint;
|
|
1025
1006
|
marketAddr: Address;
|
|
1026
1007
|
optionType: "CALL" | "PUT";
|
|
1027
1008
|
createdAt: Date;
|
|
@@ -1035,9 +1016,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1035
1016
|
strikePrice: bigint;
|
|
1036
1017
|
entryPrice: bigint;
|
|
1037
1018
|
__typename: "UserOption";
|
|
1019
|
+
id: string;
|
|
1038
1020
|
ownerAddr: string;
|
|
1039
1021
|
strikeTick: number;
|
|
1040
1022
|
entryTick: number;
|
|
1023
|
+
startTick: number;
|
|
1041
1024
|
fullyExercised: boolean;
|
|
1042
1025
|
exerciseEvents: Array<{
|
|
1043
1026
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1050,7 +1033,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1050
1033
|
}[], Error>>;
|
|
1051
1034
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1052
1035
|
promise: Promise<{
|
|
1053
|
-
|
|
1036
|
+
optionId: bigint;
|
|
1054
1037
|
marketAddr: Address;
|
|
1055
1038
|
optionType: "CALL" | "PUT";
|
|
1056
1039
|
createdAt: Date;
|
|
@@ -1064,9 +1047,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1064
1047
|
strikePrice: bigint;
|
|
1065
1048
|
entryPrice: bigint;
|
|
1066
1049
|
__typename: "UserOption";
|
|
1050
|
+
id: string;
|
|
1067
1051
|
ownerAddr: string;
|
|
1068
1052
|
strikeTick: number;
|
|
1069
1053
|
entryTick: number;
|
|
1054
|
+
startTick: number;
|
|
1070
1055
|
fullyExercised: boolean;
|
|
1071
1056
|
exerciseEvents: Array<{
|
|
1072
1057
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1078,7 +1063,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1078
1063
|
} | null;
|
|
1079
1064
|
}[]>;
|
|
1080
1065
|
data: {
|
|
1081
|
-
|
|
1066
|
+
optionId: bigint;
|
|
1082
1067
|
marketAddr: Address;
|
|
1083
1068
|
optionType: "CALL" | "PUT";
|
|
1084
1069
|
createdAt: Date;
|
|
@@ -1092,9 +1077,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1092
1077
|
strikePrice: bigint;
|
|
1093
1078
|
entryPrice: bigint;
|
|
1094
1079
|
__typename: "UserOption";
|
|
1080
|
+
id: string;
|
|
1095
1081
|
ownerAddr: string;
|
|
1096
1082
|
strikeTick: number;
|
|
1097
1083
|
entryTick: number;
|
|
1084
|
+
startTick: number;
|
|
1098
1085
|
fullyExercised: boolean;
|
|
1099
1086
|
exerciseEvents: Array<{
|
|
1100
1087
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1129,7 +1116,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1129
1116
|
isStale: boolean;
|
|
1130
1117
|
isEnabled: boolean;
|
|
1131
1118
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1132
|
-
|
|
1119
|
+
optionId: bigint;
|
|
1133
1120
|
marketAddr: Address;
|
|
1134
1121
|
optionType: "CALL" | "PUT";
|
|
1135
1122
|
createdAt: Date;
|
|
@@ -1143,9 +1130,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1143
1130
|
strikePrice: bigint;
|
|
1144
1131
|
entryPrice: bigint;
|
|
1145
1132
|
__typename: "UserOption";
|
|
1133
|
+
id: string;
|
|
1146
1134
|
ownerAddr: string;
|
|
1147
1135
|
strikeTick: number;
|
|
1148
1136
|
entryTick: number;
|
|
1137
|
+
startTick: number;
|
|
1149
1138
|
fullyExercised: boolean;
|
|
1150
1139
|
exerciseEvents: Array<{
|
|
1151
1140
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1158,7 +1147,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1158
1147
|
}[], Error>>;
|
|
1159
1148
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1160
1149
|
promise: Promise<{
|
|
1161
|
-
|
|
1150
|
+
optionId: bigint;
|
|
1162
1151
|
marketAddr: Address;
|
|
1163
1152
|
optionType: "CALL" | "PUT";
|
|
1164
1153
|
createdAt: Date;
|
|
@@ -1172,9 +1161,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1172
1161
|
strikePrice: bigint;
|
|
1173
1162
|
entryPrice: bigint;
|
|
1174
1163
|
__typename: "UserOption";
|
|
1164
|
+
id: string;
|
|
1175
1165
|
ownerAddr: string;
|
|
1176
1166
|
strikeTick: number;
|
|
1177
1167
|
entryTick: number;
|
|
1168
|
+
startTick: number;
|
|
1178
1169
|
fullyExercised: boolean;
|
|
1179
1170
|
exerciseEvents: Array<{
|
|
1180
1171
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1186,7 +1177,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1186
1177
|
} | null;
|
|
1187
1178
|
}[]>;
|
|
1188
1179
|
data: {
|
|
1189
|
-
|
|
1180
|
+
optionId: bigint;
|
|
1190
1181
|
marketAddr: Address;
|
|
1191
1182
|
optionType: "CALL" | "PUT";
|
|
1192
1183
|
createdAt: Date;
|
|
@@ -1200,9 +1191,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1200
1191
|
strikePrice: bigint;
|
|
1201
1192
|
entryPrice: bigint;
|
|
1202
1193
|
__typename: "UserOption";
|
|
1194
|
+
id: string;
|
|
1203
1195
|
ownerAddr: string;
|
|
1204
1196
|
strikeTick: number;
|
|
1205
1197
|
entryTick: number;
|
|
1198
|
+
startTick: number;
|
|
1206
1199
|
fullyExercised: boolean;
|
|
1207
1200
|
exerciseEvents: Array<{
|
|
1208
1201
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1237,7 +1230,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1237
1230
|
isStale: boolean;
|
|
1238
1231
|
isEnabled: boolean;
|
|
1239
1232
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1240
|
-
|
|
1233
|
+
optionId: bigint;
|
|
1241
1234
|
marketAddr: Address;
|
|
1242
1235
|
optionType: "CALL" | "PUT";
|
|
1243
1236
|
createdAt: Date;
|
|
@@ -1251,9 +1244,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1251
1244
|
strikePrice: bigint;
|
|
1252
1245
|
entryPrice: bigint;
|
|
1253
1246
|
__typename: "UserOption";
|
|
1247
|
+
id: string;
|
|
1254
1248
|
ownerAddr: string;
|
|
1255
1249
|
strikeTick: number;
|
|
1256
1250
|
entryTick: number;
|
|
1251
|
+
startTick: number;
|
|
1257
1252
|
fullyExercised: boolean;
|
|
1258
1253
|
exerciseEvents: Array<{
|
|
1259
1254
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1266,7 +1261,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1266
1261
|
}[], Error>>;
|
|
1267
1262
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1268
1263
|
promise: Promise<{
|
|
1269
|
-
|
|
1264
|
+
optionId: bigint;
|
|
1270
1265
|
marketAddr: Address;
|
|
1271
1266
|
optionType: "CALL" | "PUT";
|
|
1272
1267
|
createdAt: Date;
|
|
@@ -1280,9 +1275,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1280
1275
|
strikePrice: bigint;
|
|
1281
1276
|
entryPrice: bigint;
|
|
1282
1277
|
__typename: "UserOption";
|
|
1278
|
+
id: string;
|
|
1283
1279
|
ownerAddr: string;
|
|
1284
1280
|
strikeTick: number;
|
|
1285
1281
|
entryTick: number;
|
|
1282
|
+
startTick: number;
|
|
1286
1283
|
fullyExercised: boolean;
|
|
1287
1284
|
exerciseEvents: Array<{
|
|
1288
1285
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1294,7 +1291,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1294
1291
|
} | null;
|
|
1295
1292
|
}[]>;
|
|
1296
1293
|
data: {
|
|
1297
|
-
|
|
1294
|
+
optionId: bigint;
|
|
1298
1295
|
marketAddr: Address;
|
|
1299
1296
|
optionType: "CALL" | "PUT";
|
|
1300
1297
|
createdAt: Date;
|
|
@@ -1308,9 +1305,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1308
1305
|
strikePrice: bigint;
|
|
1309
1306
|
entryPrice: bigint;
|
|
1310
1307
|
__typename: "UserOption";
|
|
1308
|
+
id: string;
|
|
1311
1309
|
ownerAddr: string;
|
|
1312
1310
|
strikeTick: number;
|
|
1313
1311
|
entryTick: number;
|
|
1312
|
+
startTick: number;
|
|
1314
1313
|
fullyExercised: boolean;
|
|
1315
1314
|
exerciseEvents: Array<{
|
|
1316
1315
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1345,7 +1344,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1345
1344
|
isStale: boolean;
|
|
1346
1345
|
isEnabled: boolean;
|
|
1347
1346
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1348
|
-
|
|
1347
|
+
optionId: bigint;
|
|
1349
1348
|
marketAddr: Address;
|
|
1350
1349
|
optionType: "CALL" | "PUT";
|
|
1351
1350
|
createdAt: Date;
|
|
@@ -1359,9 +1358,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1359
1358
|
strikePrice: bigint;
|
|
1360
1359
|
entryPrice: bigint;
|
|
1361
1360
|
__typename: "UserOption";
|
|
1361
|
+
id: string;
|
|
1362
1362
|
ownerAddr: string;
|
|
1363
1363
|
strikeTick: number;
|
|
1364
1364
|
entryTick: number;
|
|
1365
|
+
startTick: number;
|
|
1365
1366
|
fullyExercised: boolean;
|
|
1366
1367
|
exerciseEvents: Array<{
|
|
1367
1368
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1374,7 +1375,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1374
1375
|
}[], Error>>;
|
|
1375
1376
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1376
1377
|
promise: Promise<{
|
|
1377
|
-
|
|
1378
|
+
optionId: bigint;
|
|
1378
1379
|
marketAddr: Address;
|
|
1379
1380
|
optionType: "CALL" | "PUT";
|
|
1380
1381
|
createdAt: Date;
|
|
@@ -1388,9 +1389,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1388
1389
|
strikePrice: bigint;
|
|
1389
1390
|
entryPrice: bigint;
|
|
1390
1391
|
__typename: "UserOption";
|
|
1392
|
+
id: string;
|
|
1391
1393
|
ownerAddr: string;
|
|
1392
1394
|
strikeTick: number;
|
|
1393
1395
|
entryTick: number;
|
|
1396
|
+
startTick: number;
|
|
1394
1397
|
fullyExercised: boolean;
|
|
1395
1398
|
exerciseEvents: Array<{
|
|
1396
1399
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1402,7 +1405,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1402
1405
|
} | null;
|
|
1403
1406
|
}[]>;
|
|
1404
1407
|
data: {
|
|
1405
|
-
|
|
1408
|
+
optionId: bigint;
|
|
1406
1409
|
marketAddr: Address;
|
|
1407
1410
|
optionType: "CALL" | "PUT";
|
|
1408
1411
|
createdAt: Date;
|
|
@@ -1416,9 +1419,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1416
1419
|
strikePrice: bigint;
|
|
1417
1420
|
entryPrice: bigint;
|
|
1418
1421
|
__typename: "UserOption";
|
|
1422
|
+
id: string;
|
|
1419
1423
|
ownerAddr: string;
|
|
1420
1424
|
strikeTick: number;
|
|
1421
1425
|
entryTick: number;
|
|
1426
|
+
startTick: number;
|
|
1422
1427
|
fullyExercised: boolean;
|
|
1423
1428
|
exerciseEvents: Array<{
|
|
1424
1429
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1453,7 +1458,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1453
1458
|
isStale: boolean;
|
|
1454
1459
|
isEnabled: boolean;
|
|
1455
1460
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1456
|
-
|
|
1461
|
+
optionId: bigint;
|
|
1457
1462
|
marketAddr: Address;
|
|
1458
1463
|
optionType: "CALL" | "PUT";
|
|
1459
1464
|
createdAt: Date;
|
|
@@ -1467,9 +1472,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1467
1472
|
strikePrice: bigint;
|
|
1468
1473
|
entryPrice: bigint;
|
|
1469
1474
|
__typename: "UserOption";
|
|
1475
|
+
id: string;
|
|
1470
1476
|
ownerAddr: string;
|
|
1471
1477
|
strikeTick: number;
|
|
1472
1478
|
entryTick: number;
|
|
1479
|
+
startTick: number;
|
|
1473
1480
|
fullyExercised: boolean;
|
|
1474
1481
|
exerciseEvents: Array<{
|
|
1475
1482
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1482,7 +1489,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1482
1489
|
}[], Error>>;
|
|
1483
1490
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1484
1491
|
promise: Promise<{
|
|
1485
|
-
|
|
1492
|
+
optionId: bigint;
|
|
1486
1493
|
marketAddr: Address;
|
|
1487
1494
|
optionType: "CALL" | "PUT";
|
|
1488
1495
|
createdAt: Date;
|
|
@@ -1496,9 +1503,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1496
1503
|
strikePrice: bigint;
|
|
1497
1504
|
entryPrice: bigint;
|
|
1498
1505
|
__typename: "UserOption";
|
|
1506
|
+
id: string;
|
|
1499
1507
|
ownerAddr: string;
|
|
1500
1508
|
strikeTick: number;
|
|
1501
1509
|
entryTick: number;
|
|
1510
|
+
startTick: number;
|
|
1502
1511
|
fullyExercised: boolean;
|
|
1503
1512
|
exerciseEvents: Array<{
|
|
1504
1513
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1510,7 +1519,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1510
1519
|
} | null;
|
|
1511
1520
|
}[]>;
|
|
1512
1521
|
data: {
|
|
1513
|
-
|
|
1522
|
+
optionId: bigint;
|
|
1514
1523
|
marketAddr: Address;
|
|
1515
1524
|
optionType: "CALL" | "PUT";
|
|
1516
1525
|
createdAt: Date;
|
|
@@ -1524,9 +1533,11 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1524
1533
|
strikePrice: bigint;
|
|
1525
1534
|
entryPrice: bigint;
|
|
1526
1535
|
__typename: "UserOption";
|
|
1536
|
+
id: string;
|
|
1527
1537
|
ownerAddr: string;
|
|
1528
1538
|
strikeTick: number;
|
|
1529
1539
|
entryTick: number;
|
|
1540
|
+
startTick: number;
|
|
1530
1541
|
fullyExercised: boolean;
|
|
1531
1542
|
exerciseEvents: Array<{
|
|
1532
1543
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1562,7 +1573,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1562
1573
|
isStale: boolean;
|
|
1563
1574
|
isEnabled: boolean;
|
|
1564
1575
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1565
|
-
|
|
1576
|
+
optionId: bigint;
|
|
1566
1577
|
marketAddr: Address;
|
|
1567
1578
|
optionType: "CALL" | "PUT";
|
|
1568
1579
|
createdAt: Date;
|
|
@@ -1576,9 +1587,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1576
1587
|
strikePrice: bigint;
|
|
1577
1588
|
entryPrice: bigint;
|
|
1578
1589
|
__typename: "UserOption";
|
|
1590
|
+
id: string;
|
|
1579
1591
|
ownerAddr: string;
|
|
1580
1592
|
strikeTick: number;
|
|
1581
1593
|
entryTick: number;
|
|
1594
|
+
startTick: number;
|
|
1582
1595
|
fullyExercised: boolean;
|
|
1583
1596
|
exerciseEvents: Array<{
|
|
1584
1597
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1591,7 +1604,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1591
1604
|
}[], Error>>;
|
|
1592
1605
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1593
1606
|
promise: Promise<{
|
|
1594
|
-
|
|
1607
|
+
optionId: bigint;
|
|
1595
1608
|
marketAddr: Address;
|
|
1596
1609
|
optionType: "CALL" | "PUT";
|
|
1597
1610
|
createdAt: Date;
|
|
@@ -1605,9 +1618,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1605
1618
|
strikePrice: bigint;
|
|
1606
1619
|
entryPrice: bigint;
|
|
1607
1620
|
__typename: "UserOption";
|
|
1621
|
+
id: string;
|
|
1608
1622
|
ownerAddr: string;
|
|
1609
1623
|
strikeTick: number;
|
|
1610
1624
|
entryTick: number;
|
|
1625
|
+
startTick: number;
|
|
1611
1626
|
fullyExercised: boolean;
|
|
1612
1627
|
exerciseEvents: Array<{
|
|
1613
1628
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1619,7 +1634,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1619
1634
|
} | null;
|
|
1620
1635
|
}[]>;
|
|
1621
1636
|
data: {
|
|
1622
|
-
|
|
1637
|
+
optionId: bigint;
|
|
1623
1638
|
marketAddr: Address;
|
|
1624
1639
|
optionType: "CALL" | "PUT";
|
|
1625
1640
|
createdAt: Date;
|
|
@@ -1633,9 +1648,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1633
1648
|
strikePrice: bigint;
|
|
1634
1649
|
entryPrice: bigint;
|
|
1635
1650
|
__typename: "UserOption";
|
|
1651
|
+
id: string;
|
|
1636
1652
|
ownerAddr: string;
|
|
1637
1653
|
strikeTick: number;
|
|
1638
1654
|
entryTick: number;
|
|
1655
|
+
startTick: number;
|
|
1639
1656
|
fullyExercised: boolean;
|
|
1640
1657
|
exerciseEvents: Array<{
|
|
1641
1658
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1670,7 +1687,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1670
1687
|
isStale: boolean;
|
|
1671
1688
|
isEnabled: boolean;
|
|
1672
1689
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1673
|
-
|
|
1690
|
+
optionId: bigint;
|
|
1674
1691
|
marketAddr: Address;
|
|
1675
1692
|
optionType: "CALL" | "PUT";
|
|
1676
1693
|
createdAt: Date;
|
|
@@ -1684,9 +1701,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1684
1701
|
strikePrice: bigint;
|
|
1685
1702
|
entryPrice: bigint;
|
|
1686
1703
|
__typename: "UserOption";
|
|
1704
|
+
id: string;
|
|
1687
1705
|
ownerAddr: string;
|
|
1688
1706
|
strikeTick: number;
|
|
1689
1707
|
entryTick: number;
|
|
1708
|
+
startTick: number;
|
|
1690
1709
|
fullyExercised: boolean;
|
|
1691
1710
|
exerciseEvents: Array<{
|
|
1692
1711
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1699,7 +1718,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1699
1718
|
}[], Error>>;
|
|
1700
1719
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1701
1720
|
promise: Promise<{
|
|
1702
|
-
|
|
1721
|
+
optionId: bigint;
|
|
1703
1722
|
marketAddr: Address;
|
|
1704
1723
|
optionType: "CALL" | "PUT";
|
|
1705
1724
|
createdAt: Date;
|
|
@@ -1713,9 +1732,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1713
1732
|
strikePrice: bigint;
|
|
1714
1733
|
entryPrice: bigint;
|
|
1715
1734
|
__typename: "UserOption";
|
|
1735
|
+
id: string;
|
|
1716
1736
|
ownerAddr: string;
|
|
1717
1737
|
strikeTick: number;
|
|
1718
1738
|
entryTick: number;
|
|
1739
|
+
startTick: number;
|
|
1719
1740
|
fullyExercised: boolean;
|
|
1720
1741
|
exerciseEvents: Array<{
|
|
1721
1742
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1727,7 +1748,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1727
1748
|
} | null;
|
|
1728
1749
|
}[]>;
|
|
1729
1750
|
data: {
|
|
1730
|
-
|
|
1751
|
+
optionId: bigint;
|
|
1731
1752
|
marketAddr: Address;
|
|
1732
1753
|
optionType: "CALL" | "PUT";
|
|
1733
1754
|
createdAt: Date;
|
|
@@ -1741,9 +1762,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1741
1762
|
strikePrice: bigint;
|
|
1742
1763
|
entryPrice: bigint;
|
|
1743
1764
|
__typename: "UserOption";
|
|
1765
|
+
id: string;
|
|
1744
1766
|
ownerAddr: string;
|
|
1745
1767
|
strikeTick: number;
|
|
1746
1768
|
entryTick: number;
|
|
1769
|
+
startTick: number;
|
|
1747
1770
|
fullyExercised: boolean;
|
|
1748
1771
|
exerciseEvents: Array<{
|
|
1749
1772
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1778,7 +1801,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1778
1801
|
isStale: boolean;
|
|
1779
1802
|
isEnabled: boolean;
|
|
1780
1803
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1781
|
-
|
|
1804
|
+
optionId: bigint;
|
|
1782
1805
|
marketAddr: Address;
|
|
1783
1806
|
optionType: "CALL" | "PUT";
|
|
1784
1807
|
createdAt: Date;
|
|
@@ -1792,9 +1815,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1792
1815
|
strikePrice: bigint;
|
|
1793
1816
|
entryPrice: bigint;
|
|
1794
1817
|
__typename: "UserOption";
|
|
1818
|
+
id: string;
|
|
1795
1819
|
ownerAddr: string;
|
|
1796
1820
|
strikeTick: number;
|
|
1797
1821
|
entryTick: number;
|
|
1822
|
+
startTick: number;
|
|
1798
1823
|
fullyExercised: boolean;
|
|
1799
1824
|
exerciseEvents: Array<{
|
|
1800
1825
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1807,7 +1832,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1807
1832
|
}[], Error>>;
|
|
1808
1833
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1809
1834
|
promise: Promise<{
|
|
1810
|
-
|
|
1835
|
+
optionId: bigint;
|
|
1811
1836
|
marketAddr: Address;
|
|
1812
1837
|
optionType: "CALL" | "PUT";
|
|
1813
1838
|
createdAt: Date;
|
|
@@ -1821,9 +1846,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1821
1846
|
strikePrice: bigint;
|
|
1822
1847
|
entryPrice: bigint;
|
|
1823
1848
|
__typename: "UserOption";
|
|
1849
|
+
id: string;
|
|
1824
1850
|
ownerAddr: string;
|
|
1825
1851
|
strikeTick: number;
|
|
1826
1852
|
entryTick: number;
|
|
1853
|
+
startTick: number;
|
|
1827
1854
|
fullyExercised: boolean;
|
|
1828
1855
|
exerciseEvents: Array<{
|
|
1829
1856
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1835,7 +1862,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1835
1862
|
} | null;
|
|
1836
1863
|
}[]>;
|
|
1837
1864
|
data: {
|
|
1838
|
-
|
|
1865
|
+
optionId: bigint;
|
|
1839
1866
|
marketAddr: Address;
|
|
1840
1867
|
optionType: "CALL" | "PUT";
|
|
1841
1868
|
createdAt: Date;
|
|
@@ -1849,9 +1876,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1849
1876
|
strikePrice: bigint;
|
|
1850
1877
|
entryPrice: bigint;
|
|
1851
1878
|
__typename: "UserOption";
|
|
1879
|
+
id: string;
|
|
1852
1880
|
ownerAddr: string;
|
|
1853
1881
|
strikeTick: number;
|
|
1854
1882
|
entryTick: number;
|
|
1883
|
+
startTick: number;
|
|
1855
1884
|
fullyExercised: boolean;
|
|
1856
1885
|
exerciseEvents: Array<{
|
|
1857
1886
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1886,7 +1915,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1886
1915
|
isStale: boolean;
|
|
1887
1916
|
isEnabled: boolean;
|
|
1888
1917
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1889
|
-
|
|
1918
|
+
optionId: bigint;
|
|
1890
1919
|
marketAddr: Address;
|
|
1891
1920
|
optionType: "CALL" | "PUT";
|
|
1892
1921
|
createdAt: Date;
|
|
@@ -1900,9 +1929,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1900
1929
|
strikePrice: bigint;
|
|
1901
1930
|
entryPrice: bigint;
|
|
1902
1931
|
__typename: "UserOption";
|
|
1932
|
+
id: string;
|
|
1903
1933
|
ownerAddr: string;
|
|
1904
1934
|
strikeTick: number;
|
|
1905
1935
|
entryTick: number;
|
|
1936
|
+
startTick: number;
|
|
1906
1937
|
fullyExercised: boolean;
|
|
1907
1938
|
exerciseEvents: Array<{
|
|
1908
1939
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1915,7 +1946,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1915
1946
|
}[], Error>>;
|
|
1916
1947
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1917
1948
|
promise: Promise<{
|
|
1918
|
-
|
|
1949
|
+
optionId: bigint;
|
|
1919
1950
|
marketAddr: Address;
|
|
1920
1951
|
optionType: "CALL" | "PUT";
|
|
1921
1952
|
createdAt: Date;
|
|
@@ -1929,9 +1960,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1929
1960
|
strikePrice: bigint;
|
|
1930
1961
|
entryPrice: bigint;
|
|
1931
1962
|
__typename: "UserOption";
|
|
1963
|
+
id: string;
|
|
1932
1964
|
ownerAddr: string;
|
|
1933
1965
|
strikeTick: number;
|
|
1934
1966
|
entryTick: number;
|
|
1967
|
+
startTick: number;
|
|
1935
1968
|
fullyExercised: boolean;
|
|
1936
1969
|
exerciseEvents: Array<{
|
|
1937
1970
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1943,7 +1976,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1943
1976
|
} | null;
|
|
1944
1977
|
}[]>;
|
|
1945
1978
|
data: {
|
|
1946
|
-
|
|
1979
|
+
optionId: bigint;
|
|
1947
1980
|
marketAddr: Address;
|
|
1948
1981
|
optionType: "CALL" | "PUT";
|
|
1949
1982
|
createdAt: Date;
|
|
@@ -1957,9 +1990,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1957
1990
|
strikePrice: bigint;
|
|
1958
1991
|
entryPrice: bigint;
|
|
1959
1992
|
__typename: "UserOption";
|
|
1993
|
+
id: string;
|
|
1960
1994
|
ownerAddr: string;
|
|
1961
1995
|
strikeTick: number;
|
|
1962
1996
|
entryTick: number;
|
|
1997
|
+
startTick: number;
|
|
1963
1998
|
fullyExercised: boolean;
|
|
1964
1999
|
exerciseEvents: Array<{
|
|
1965
2000
|
__typename: "ExerciseOptionEvent";
|
|
@@ -1994,7 +2029,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1994
2029
|
isStale: boolean;
|
|
1995
2030
|
isEnabled: boolean;
|
|
1996
2031
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1997
|
-
|
|
2032
|
+
optionId: bigint;
|
|
1998
2033
|
marketAddr: Address;
|
|
1999
2034
|
optionType: "CALL" | "PUT";
|
|
2000
2035
|
createdAt: Date;
|
|
@@ -2008,9 +2043,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2008
2043
|
strikePrice: bigint;
|
|
2009
2044
|
entryPrice: bigint;
|
|
2010
2045
|
__typename: "UserOption";
|
|
2046
|
+
id: string;
|
|
2011
2047
|
ownerAddr: string;
|
|
2012
2048
|
strikeTick: number;
|
|
2013
2049
|
entryTick: number;
|
|
2050
|
+
startTick: number;
|
|
2014
2051
|
fullyExercised: boolean;
|
|
2015
2052
|
exerciseEvents: Array<{
|
|
2016
2053
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2023,7 +2060,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2023
2060
|
}[], Error>>;
|
|
2024
2061
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2025
2062
|
promise: Promise<{
|
|
2026
|
-
|
|
2063
|
+
optionId: bigint;
|
|
2027
2064
|
marketAddr: Address;
|
|
2028
2065
|
optionType: "CALL" | "PUT";
|
|
2029
2066
|
createdAt: Date;
|
|
@@ -2037,9 +2074,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2037
2074
|
strikePrice: bigint;
|
|
2038
2075
|
entryPrice: bigint;
|
|
2039
2076
|
__typename: "UserOption";
|
|
2077
|
+
id: string;
|
|
2040
2078
|
ownerAddr: string;
|
|
2041
2079
|
strikeTick: number;
|
|
2042
2080
|
entryTick: number;
|
|
2081
|
+
startTick: number;
|
|
2043
2082
|
fullyExercised: boolean;
|
|
2044
2083
|
exerciseEvents: Array<{
|
|
2045
2084
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2051,7 +2090,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2051
2090
|
} | null;
|
|
2052
2091
|
}[]>;
|
|
2053
2092
|
data: {
|
|
2054
|
-
|
|
2093
|
+
optionId: bigint;
|
|
2055
2094
|
marketAddr: Address;
|
|
2056
2095
|
optionType: "CALL" | "PUT";
|
|
2057
2096
|
createdAt: Date;
|
|
@@ -2065,9 +2104,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2065
2104
|
strikePrice: bigint;
|
|
2066
2105
|
entryPrice: bigint;
|
|
2067
2106
|
__typename: "UserOption";
|
|
2107
|
+
id: string;
|
|
2068
2108
|
ownerAddr: string;
|
|
2069
2109
|
strikeTick: number;
|
|
2070
2110
|
entryTick: number;
|
|
2111
|
+
startTick: number;
|
|
2071
2112
|
fullyExercised: boolean;
|
|
2072
2113
|
exerciseEvents: Array<{
|
|
2073
2114
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2102,7 +2143,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2102
2143
|
isStale: boolean;
|
|
2103
2144
|
isEnabled: boolean;
|
|
2104
2145
|
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2105
|
-
|
|
2146
|
+
optionId: bigint;
|
|
2106
2147
|
marketAddr: Address;
|
|
2107
2148
|
optionType: "CALL" | "PUT";
|
|
2108
2149
|
createdAt: Date;
|
|
@@ -2116,9 +2157,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2116
2157
|
strikePrice: bigint;
|
|
2117
2158
|
entryPrice: bigint;
|
|
2118
2159
|
__typename: "UserOption";
|
|
2160
|
+
id: string;
|
|
2119
2161
|
ownerAddr: string;
|
|
2120
2162
|
strikeTick: number;
|
|
2121
2163
|
entryTick: number;
|
|
2164
|
+
startTick: number;
|
|
2122
2165
|
fullyExercised: boolean;
|
|
2123
2166
|
exerciseEvents: Array<{
|
|
2124
2167
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2131,7 +2174,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2131
2174
|
}[], Error>>;
|
|
2132
2175
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2133
2176
|
promise: Promise<{
|
|
2134
|
-
|
|
2177
|
+
optionId: bigint;
|
|
2135
2178
|
marketAddr: Address;
|
|
2136
2179
|
optionType: "CALL" | "PUT";
|
|
2137
2180
|
createdAt: Date;
|
|
@@ -2145,9 +2188,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2145
2188
|
strikePrice: bigint;
|
|
2146
2189
|
entryPrice: bigint;
|
|
2147
2190
|
__typename: "UserOption";
|
|
2191
|
+
id: string;
|
|
2148
2192
|
ownerAddr: string;
|
|
2149
2193
|
strikeTick: number;
|
|
2150
2194
|
entryTick: number;
|
|
2195
|
+
startTick: number;
|
|
2151
2196
|
fullyExercised: boolean;
|
|
2152
2197
|
exerciseEvents: Array<{
|
|
2153
2198
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2159,7 +2204,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2159
2204
|
} | null;
|
|
2160
2205
|
}[]>;
|
|
2161
2206
|
data: {
|
|
2162
|
-
|
|
2207
|
+
optionId: bigint;
|
|
2163
2208
|
marketAddr: Address;
|
|
2164
2209
|
optionType: "CALL" | "PUT";
|
|
2165
2210
|
createdAt: Date;
|
|
@@ -2173,9 +2218,11 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2173
2218
|
strikePrice: bigint;
|
|
2174
2219
|
entryPrice: bigint;
|
|
2175
2220
|
__typename: "UserOption";
|
|
2221
|
+
id: string;
|
|
2176
2222
|
ownerAddr: string;
|
|
2177
2223
|
strikeTick: number;
|
|
2178
2224
|
entryTick: number;
|
|
2225
|
+
startTick: number;
|
|
2179
2226
|
fullyExercised: boolean;
|
|
2180
2227
|
exerciseEvents: Array<{
|
|
2181
2228
|
__typename: "ExerciseOptionEvent";
|
|
@@ -2188,6 +2235,72 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2188
2235
|
}[];
|
|
2189
2236
|
};
|
|
2190
2237
|
//#endregion
|
|
2238
|
+
//#region src/hooks/market/useExerciseOption.d.ts
|
|
2239
|
+
declare const useExerciseOption: (marketAddr?: Address) => {
|
|
2240
|
+
exerciseOption: (option: OptionData, liquidities: readonly bigint[]) => Promise<`0x${string}`>;
|
|
2241
|
+
hash: `0x${string}` | undefined;
|
|
2242
|
+
isPending: boolean;
|
|
2243
|
+
isConfirming: boolean;
|
|
2244
|
+
isSuccess: boolean;
|
|
2245
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2246
|
+
isLoading: boolean;
|
|
2247
|
+
};
|
|
2248
|
+
//#endregion
|
|
2249
|
+
//#region src/hooks/market/useMarketData.d.ts
|
|
2250
|
+
declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
|
|
2251
|
+
pool: Address;
|
|
2252
|
+
vault: Address;
|
|
2253
|
+
optionAsset: Address;
|
|
2254
|
+
payoutAsset: Address;
|
|
2255
|
+
optionsCount: bigint;
|
|
2256
|
+
tradersCount: bigint;
|
|
2257
|
+
__typename: "TimelockMarket";
|
|
2258
|
+
id: string;
|
|
2259
|
+
tickSpacing: number;
|
|
2260
|
+
optionAssetIsToken0: boolean;
|
|
2261
|
+
optionAssetDecimals: number;
|
|
2262
|
+
payoutAssetDecimals: number;
|
|
2263
|
+
optionAssetSymbol: string;
|
|
2264
|
+
payoutAssetSymbol: string;
|
|
2265
|
+
optionAssetName: string;
|
|
2266
|
+
payoutAssetName: string;
|
|
2267
|
+
} | undefined>>;
|
|
2268
|
+
//#endregion
|
|
2269
|
+
//#region src/hooks/market/useMaxPositionSize.d.ts
|
|
2270
|
+
declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
2271
|
+
maxCallSize: Amount | undefined;
|
|
2272
|
+
maxPutSize: Amount | undefined;
|
|
2273
|
+
refetch: () => void;
|
|
2274
|
+
};
|
|
2275
|
+
//#endregion
|
|
2276
|
+
//#region src/hooks/market/useMintOption.d.ts
|
|
2277
|
+
declare const useMintOption: (marketAddr?: Address) => {
|
|
2278
|
+
mintOption: (optionType: "CALL" | "PUT", amount: bigint, duration: number, strikeTick?: number) => Promise<`0x${string}`>;
|
|
2279
|
+
hash: `0x${string}` | undefined;
|
|
2280
|
+
isPending: boolean;
|
|
2281
|
+
isConfirming: boolean;
|
|
2282
|
+
isSuccess: boolean;
|
|
2283
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2284
|
+
isLoading: boolean;
|
|
2285
|
+
};
|
|
2286
|
+
//#endregion
|
|
2287
|
+
//#region src/hooks/market/useOptionPnl.d.ts
|
|
2288
|
+
declare const useOptionPnl: (optionData: {
|
|
2289
|
+
marketAddr: Address;
|
|
2290
|
+
optionType: "CALL" | "PUT";
|
|
2291
|
+
positionSizeCurrent: bigint;
|
|
2292
|
+
entryPrice: bigint;
|
|
2293
|
+
}) => {
|
|
2294
|
+
unrealizedPayout?: undefined;
|
|
2295
|
+
displayPnl?: undefined;
|
|
2296
|
+
} | {
|
|
2297
|
+
unrealizedPayout: Amount;
|
|
2298
|
+
displayPnl: Amount;
|
|
2299
|
+
};
|
|
2300
|
+
//#endregion
|
|
2301
|
+
//#region src/hooks/market/useOptionPremium.d.ts
|
|
2302
|
+
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, duration: number, strikeTick?: number) => Amount | undefined;
|
|
2303
|
+
//#endregion
|
|
2191
2304
|
//#region src/hooks/pool/useCurrentPrice.d.ts
|
|
2192
2305
|
declare const useCurrentPrice: (poolAddr?: Address) => {
|
|
2193
2306
|
currentPrice: Amount | undefined;
|
|
@@ -2222,6 +2335,29 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
2222
2335
|
//#region src/hooks/pool/usePriceAtTick.d.ts
|
|
2223
2336
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
2224
2337
|
//#endregion
|
|
2338
|
+
//#region src/lib/price.d.ts
|
|
2339
|
+
interface PriceDataPoint {
|
|
2340
|
+
timestamp: number;
|
|
2341
|
+
price: number;
|
|
2342
|
+
}
|
|
2343
|
+
type PriceResolution = '1m' | '5m' | '15m' | '1h' | '4h' | '1d';
|
|
2344
|
+
//#endregion
|
|
2345
|
+
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
2346
|
+
interface UsePriceHistoryParams {
|
|
2347
|
+
poolAddress?: Address;
|
|
2348
|
+
resolution: PriceResolution;
|
|
2349
|
+
startTimestamp: number;
|
|
2350
|
+
endTimestamp: number;
|
|
2351
|
+
enabled?: boolean;
|
|
2352
|
+
}
|
|
2353
|
+
declare const usePriceHistory: ({
|
|
2354
|
+
poolAddress,
|
|
2355
|
+
resolution,
|
|
2356
|
+
startTimestamp,
|
|
2357
|
+
endTimestamp,
|
|
2358
|
+
enabled
|
|
2359
|
+
}: UsePriceHistoryParams) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
2360
|
+
//#endregion
|
|
2225
2361
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
2226
2362
|
interface BurnPosition {
|
|
2227
2363
|
tickLower: number;
|
|
@@ -29415,5 +29551,5 @@ declare const useLens: () => {
|
|
|
29415
29551
|
} | undefined;
|
|
29416
29552
|
};
|
|
29417
29553
|
//#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 };
|
|
29554
|
+
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
29555
|
//# sourceMappingURL=client.d.cts.map
|