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/client.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as viem249 from "viem";
4
4
  import { Address } from "viem";
5
5
  import React, { ReactNode } from "react";
6
6
  import { GraphQLClient, RequestOptions } from "graphql-request";
7
+ import * as _tanstack_react_query0 from "@tanstack/react-query";
7
8
  import { NonUndefinedGuard } from "@tanstack/react-query";
8
9
  import "graphql";
9
10
  import * as _wagmi_core0 from "@wagmi/core";
@@ -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;
@@ -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.ts.map