timelock-sdk 0.0.10 → 0.0.12
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.cts +41 -54
- package/dist/client.d.ts +2 -15
- package/dist/{index-D6LBNb6K.d.ts → index-DxdylqnF.d.ts} +4 -2
- package/dist/{index-BCGDfKXC.d.cts → index-DztGt7Jv.d.cts} +111 -109
- package/dist/numberUtils-DB5N1e6G.js.map +1 -1
- package/dist/numberUtils-DRGhFDHZ.cjs.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-
|
|
1
|
+
import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-DztGt7Jv.cjs";
|
|
2
2
|
import "graphql";
|
|
3
3
|
import "graphql-request";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
@@ -6,7 +6,7 @@ import * as viem382 from "viem";
|
|
|
6
6
|
import { Address } from "viem";
|
|
7
7
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
8
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
|
-
import * as
|
|
9
|
+
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
10
|
|
|
11
11
|
//#region src/generated/graphql.d.ts
|
|
12
12
|
type Exact<T extends {
|
|
@@ -156,20 +156,7 @@ declare const TimelockMarketProvider: ({
|
|
|
156
156
|
marketData?: Partial<TimelockMarketData>;
|
|
157
157
|
envioGraphqlUrl?: string;
|
|
158
158
|
}) => React.JSX.Element;
|
|
159
|
-
declare const useCurrentMarket: () => Partial<
|
|
160
|
-
optionAssetIsToken0: boolean;
|
|
161
|
-
vault: `0x${string}`;
|
|
162
|
-
pool: `0x${string}`;
|
|
163
|
-
optionAsset: `0x${string}`;
|
|
164
|
-
payoutAsset: `0x${string}`;
|
|
165
|
-
optionAssetDecimals: number;
|
|
166
|
-
payoutAssetDecimals: number;
|
|
167
|
-
optionAssetSymbol: string;
|
|
168
|
-
payoutAssetSymbol: string;
|
|
169
|
-
optionAssetName: string;
|
|
170
|
-
payoutAssetName: string;
|
|
171
|
-
optionsCount: bigint;
|
|
172
|
-
}>;
|
|
159
|
+
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
173
160
|
declare const useTimelockConfig: () => {
|
|
174
161
|
lensAddr: `0x${string}` | undefined;
|
|
175
162
|
uniswapMathLensAddr: `0x${string}` | undefined;
|
|
@@ -269,7 +256,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
269
256
|
isRefetching: boolean;
|
|
270
257
|
isStale: boolean;
|
|
271
258
|
isEnabled: boolean;
|
|
272
|
-
refetch: (options?:
|
|
259
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
273
260
|
id: bigint;
|
|
274
261
|
marketAddr: Address;
|
|
275
262
|
optionType: "CALL" | "PUT";
|
|
@@ -297,7 +284,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
297
284
|
transactionHash: string;
|
|
298
285
|
} | null;
|
|
299
286
|
}[] | undefined, Error>>;
|
|
300
|
-
fetchStatus:
|
|
287
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
301
288
|
promise: Promise<{
|
|
302
289
|
id: bigint;
|
|
303
290
|
marketAddr: Address;
|
|
@@ -377,7 +364,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
377
364
|
isRefetching: boolean;
|
|
378
365
|
isStale: boolean;
|
|
379
366
|
isEnabled: boolean;
|
|
380
|
-
refetch: (options?:
|
|
367
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
381
368
|
id: bigint;
|
|
382
369
|
marketAddr: Address;
|
|
383
370
|
optionType: "CALL" | "PUT";
|
|
@@ -405,7 +392,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
405
392
|
transactionHash: string;
|
|
406
393
|
} | null;
|
|
407
394
|
}[] | undefined, Error>>;
|
|
408
|
-
fetchStatus:
|
|
395
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
409
396
|
promise: Promise<{
|
|
410
397
|
id: bigint;
|
|
411
398
|
marketAddr: Address;
|
|
@@ -485,7 +472,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
485
472
|
isRefetching: boolean;
|
|
486
473
|
isStale: boolean;
|
|
487
474
|
isEnabled: boolean;
|
|
488
|
-
refetch: (options?:
|
|
475
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
489
476
|
id: bigint;
|
|
490
477
|
marketAddr: Address;
|
|
491
478
|
optionType: "CALL" | "PUT";
|
|
@@ -513,7 +500,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
513
500
|
transactionHash: string;
|
|
514
501
|
} | null;
|
|
515
502
|
}[] | undefined, Error>>;
|
|
516
|
-
fetchStatus:
|
|
503
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
517
504
|
promise: Promise<{
|
|
518
505
|
id: bigint;
|
|
519
506
|
marketAddr: Address;
|
|
@@ -593,7 +580,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
593
580
|
isRefetching: boolean;
|
|
594
581
|
isStale: boolean;
|
|
595
582
|
isEnabled: boolean;
|
|
596
|
-
refetch: (options?:
|
|
583
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
597
584
|
id: bigint;
|
|
598
585
|
marketAddr: Address;
|
|
599
586
|
optionType: "CALL" | "PUT";
|
|
@@ -621,7 +608,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
621
608
|
transactionHash: string;
|
|
622
609
|
} | null;
|
|
623
610
|
}[] | undefined, Error>>;
|
|
624
|
-
fetchStatus:
|
|
611
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
625
612
|
promise: Promise<{
|
|
626
613
|
id: bigint;
|
|
627
614
|
marketAddr: Address;
|
|
@@ -701,7 +688,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
701
688
|
isRefetching: boolean;
|
|
702
689
|
isStale: boolean;
|
|
703
690
|
isEnabled: boolean;
|
|
704
|
-
refetch: (options?:
|
|
691
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
705
692
|
id: bigint;
|
|
706
693
|
marketAddr: Address;
|
|
707
694
|
optionType: "CALL" | "PUT";
|
|
@@ -729,7 +716,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
729
716
|
transactionHash: string;
|
|
730
717
|
} | null;
|
|
731
718
|
}[] | undefined, Error>>;
|
|
732
|
-
fetchStatus:
|
|
719
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
733
720
|
promise: Promise<{
|
|
734
721
|
id: bigint;
|
|
735
722
|
marketAddr: Address;
|
|
@@ -809,7 +796,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
809
796
|
isRefetching: boolean;
|
|
810
797
|
isStale: boolean;
|
|
811
798
|
isEnabled: boolean;
|
|
812
|
-
refetch: (options?:
|
|
799
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
813
800
|
id: bigint;
|
|
814
801
|
marketAddr: Address;
|
|
815
802
|
optionType: "CALL" | "PUT";
|
|
@@ -837,7 +824,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
837
824
|
transactionHash: string;
|
|
838
825
|
} | null;
|
|
839
826
|
}[] | undefined, Error>>;
|
|
840
|
-
fetchStatus:
|
|
827
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
841
828
|
promise: Promise<{
|
|
842
829
|
id: bigint;
|
|
843
830
|
marketAddr: Address;
|
|
@@ -918,7 +905,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
918
905
|
isRefetching: boolean;
|
|
919
906
|
isStale: boolean;
|
|
920
907
|
isEnabled: boolean;
|
|
921
|
-
refetch: (options?:
|
|
908
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
922
909
|
id: bigint;
|
|
923
910
|
marketAddr: Address;
|
|
924
911
|
optionType: "CALL" | "PUT";
|
|
@@ -946,7 +933,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
946
933
|
transactionHash: string;
|
|
947
934
|
} | null;
|
|
948
935
|
}[] | undefined, Error>>;
|
|
949
|
-
fetchStatus:
|
|
936
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
950
937
|
promise: Promise<{
|
|
951
938
|
id: bigint;
|
|
952
939
|
marketAddr: Address;
|
|
@@ -1026,7 +1013,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1026
1013
|
isRefetching: boolean;
|
|
1027
1014
|
isStale: boolean;
|
|
1028
1015
|
isEnabled: boolean;
|
|
1029
|
-
refetch: (options?:
|
|
1016
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1030
1017
|
id: bigint;
|
|
1031
1018
|
marketAddr: Address;
|
|
1032
1019
|
optionType: "CALL" | "PUT";
|
|
@@ -1054,7 +1041,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1054
1041
|
transactionHash: string;
|
|
1055
1042
|
} | null;
|
|
1056
1043
|
}[] | undefined, Error>>;
|
|
1057
|
-
fetchStatus:
|
|
1044
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1058
1045
|
promise: Promise<{
|
|
1059
1046
|
id: bigint;
|
|
1060
1047
|
marketAddr: Address;
|
|
@@ -1134,7 +1121,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1134
1121
|
isRefetching: boolean;
|
|
1135
1122
|
isStale: boolean;
|
|
1136
1123
|
isEnabled: boolean;
|
|
1137
|
-
refetch: (options?:
|
|
1124
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1138
1125
|
id: bigint;
|
|
1139
1126
|
marketAddr: Address;
|
|
1140
1127
|
optionType: "CALL" | "PUT";
|
|
@@ -1162,7 +1149,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1162
1149
|
transactionHash: string;
|
|
1163
1150
|
} | null;
|
|
1164
1151
|
}[] | undefined, Error>>;
|
|
1165
|
-
fetchStatus:
|
|
1152
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1166
1153
|
promise: Promise<{
|
|
1167
1154
|
id: bigint;
|
|
1168
1155
|
marketAddr: Address;
|
|
@@ -1242,7 +1229,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1242
1229
|
isRefetching: boolean;
|
|
1243
1230
|
isStale: boolean;
|
|
1244
1231
|
isEnabled: boolean;
|
|
1245
|
-
refetch: (options?:
|
|
1232
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1246
1233
|
id: bigint;
|
|
1247
1234
|
marketAddr: Address;
|
|
1248
1235
|
optionType: "CALL" | "PUT";
|
|
@@ -1270,7 +1257,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1270
1257
|
transactionHash: string;
|
|
1271
1258
|
} | null;
|
|
1272
1259
|
}[] | undefined, Error>>;
|
|
1273
|
-
fetchStatus:
|
|
1260
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1274
1261
|
promise: Promise<{
|
|
1275
1262
|
id: bigint;
|
|
1276
1263
|
marketAddr: Address;
|
|
@@ -1350,7 +1337,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1350
1337
|
isRefetching: boolean;
|
|
1351
1338
|
isStale: boolean;
|
|
1352
1339
|
isEnabled: boolean;
|
|
1353
|
-
refetch: (options?:
|
|
1340
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1354
1341
|
id: bigint;
|
|
1355
1342
|
marketAddr: Address;
|
|
1356
1343
|
optionType: "CALL" | "PUT";
|
|
@@ -1378,7 +1365,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1378
1365
|
transactionHash: string;
|
|
1379
1366
|
} | null;
|
|
1380
1367
|
}[] | undefined, Error>>;
|
|
1381
|
-
fetchStatus:
|
|
1368
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1382
1369
|
promise: Promise<{
|
|
1383
1370
|
id: bigint;
|
|
1384
1371
|
marketAddr: Address;
|
|
@@ -1458,7 +1445,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1458
1445
|
isRefetching: boolean;
|
|
1459
1446
|
isStale: boolean;
|
|
1460
1447
|
isEnabled: boolean;
|
|
1461
|
-
refetch: (options?:
|
|
1448
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1462
1449
|
id: bigint;
|
|
1463
1450
|
marketAddr: Address;
|
|
1464
1451
|
optionType: "CALL" | "PUT";
|
|
@@ -1486,7 +1473,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1486
1473
|
transactionHash: string;
|
|
1487
1474
|
} | null;
|
|
1488
1475
|
}[] | undefined, Error>>;
|
|
1489
|
-
fetchStatus:
|
|
1476
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1490
1477
|
promise: Promise<{
|
|
1491
1478
|
id: bigint;
|
|
1492
1479
|
marketAddr: Address;
|
|
@@ -1567,7 +1554,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1567
1554
|
isRefetching: boolean;
|
|
1568
1555
|
isStale: boolean;
|
|
1569
1556
|
isEnabled: boolean;
|
|
1570
|
-
refetch: (options?:
|
|
1557
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1571
1558
|
id: bigint;
|
|
1572
1559
|
marketAddr: Address;
|
|
1573
1560
|
optionType: "CALL" | "PUT";
|
|
@@ -1595,7 +1582,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1595
1582
|
transactionHash: string;
|
|
1596
1583
|
} | null;
|
|
1597
1584
|
}[] | undefined, Error>>;
|
|
1598
|
-
fetchStatus:
|
|
1585
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1599
1586
|
promise: Promise<{
|
|
1600
1587
|
id: bigint;
|
|
1601
1588
|
marketAddr: Address;
|
|
@@ -1675,7 +1662,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1675
1662
|
isRefetching: boolean;
|
|
1676
1663
|
isStale: boolean;
|
|
1677
1664
|
isEnabled: boolean;
|
|
1678
|
-
refetch: (options?:
|
|
1665
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1679
1666
|
id: bigint;
|
|
1680
1667
|
marketAddr: Address;
|
|
1681
1668
|
optionType: "CALL" | "PUT";
|
|
@@ -1703,7 +1690,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1703
1690
|
transactionHash: string;
|
|
1704
1691
|
} | null;
|
|
1705
1692
|
}[] | undefined, Error>>;
|
|
1706
|
-
fetchStatus:
|
|
1693
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1707
1694
|
promise: Promise<{
|
|
1708
1695
|
id: bigint;
|
|
1709
1696
|
marketAddr: Address;
|
|
@@ -1783,7 +1770,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1783
1770
|
isRefetching: boolean;
|
|
1784
1771
|
isStale: boolean;
|
|
1785
1772
|
isEnabled: boolean;
|
|
1786
|
-
refetch: (options?:
|
|
1773
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1787
1774
|
id: bigint;
|
|
1788
1775
|
marketAddr: Address;
|
|
1789
1776
|
optionType: "CALL" | "PUT";
|
|
@@ -1811,7 +1798,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1811
1798
|
transactionHash: string;
|
|
1812
1799
|
} | null;
|
|
1813
1800
|
}[] | undefined, Error>>;
|
|
1814
|
-
fetchStatus:
|
|
1801
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1815
1802
|
promise: Promise<{
|
|
1816
1803
|
id: bigint;
|
|
1817
1804
|
marketAddr: Address;
|
|
@@ -1891,7 +1878,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1891
1878
|
isRefetching: boolean;
|
|
1892
1879
|
isStale: boolean;
|
|
1893
1880
|
isEnabled: boolean;
|
|
1894
|
-
refetch: (options?:
|
|
1881
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1895
1882
|
id: bigint;
|
|
1896
1883
|
marketAddr: Address;
|
|
1897
1884
|
optionType: "CALL" | "PUT";
|
|
@@ -1919,7 +1906,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1919
1906
|
transactionHash: string;
|
|
1920
1907
|
} | null;
|
|
1921
1908
|
}[] | undefined, Error>>;
|
|
1922
|
-
fetchStatus:
|
|
1909
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1923
1910
|
promise: Promise<{
|
|
1924
1911
|
id: bigint;
|
|
1925
1912
|
marketAddr: Address;
|
|
@@ -1999,7 +1986,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1999
1986
|
isRefetching: boolean;
|
|
2000
1987
|
isStale: boolean;
|
|
2001
1988
|
isEnabled: boolean;
|
|
2002
|
-
refetch: (options?:
|
|
1989
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2003
1990
|
id: bigint;
|
|
2004
1991
|
marketAddr: Address;
|
|
2005
1992
|
optionType: "CALL" | "PUT";
|
|
@@ -2027,7 +2014,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2027
2014
|
transactionHash: string;
|
|
2028
2015
|
} | null;
|
|
2029
2016
|
}[] | undefined, Error>>;
|
|
2030
|
-
fetchStatus:
|
|
2017
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2031
2018
|
promise: Promise<{
|
|
2032
2019
|
id: bigint;
|
|
2033
2020
|
marketAddr: Address;
|
|
@@ -2107,7 +2094,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2107
2094
|
isRefetching: boolean;
|
|
2108
2095
|
isStale: boolean;
|
|
2109
2096
|
isEnabled: boolean;
|
|
2110
|
-
refetch: (options?:
|
|
2097
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2111
2098
|
id: bigint;
|
|
2112
2099
|
marketAddr: Address;
|
|
2113
2100
|
optionType: "CALL" | "PUT";
|
|
@@ -2135,7 +2122,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2135
2122
|
transactionHash: string;
|
|
2136
2123
|
} | null;
|
|
2137
2124
|
}[] | undefined, Error>>;
|
|
2138
|
-
fetchStatus:
|
|
2125
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2139
2126
|
promise: Promise<{
|
|
2140
2127
|
id: bigint;
|
|
2141
2128
|
marketAddr: Address;
|
|
@@ -2268,7 +2255,7 @@ declare const useLiquidityBlocks: (vault?: Address | TimelockVault) => {
|
|
|
2268
2255
|
totalAmount1: Amount | undefined;
|
|
2269
2256
|
borrowedAmount0: Amount | undefined;
|
|
2270
2257
|
borrowedAmount1: Amount | undefined;
|
|
2271
|
-
refetch: (options?:
|
|
2258
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
2272
2259
|
tickLower: number;
|
|
2273
2260
|
tickUpper: number;
|
|
2274
2261
|
prevTickLower: number;
|
|
@@ -2317,7 +2304,7 @@ declare const useVaultTVL: (vault?: Address | TimelockVault) => {
|
|
|
2317
2304
|
totalAmount1: Amount | undefined;
|
|
2318
2305
|
borrowedAmount0: Amount | undefined;
|
|
2319
2306
|
borrowedAmount1: Amount | undefined;
|
|
2320
|
-
refetch: (options?:
|
|
2307
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint], viem382.ReadContractErrorType>>;
|
|
2321
2308
|
};
|
|
2322
2309
|
//#endregion
|
|
2323
2310
|
//#region src/hooks/useLens.d.ts
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-
|
|
1
|
+
import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-DxdylqnF.js";
|
|
2
2
|
import * as viem382 from "viem";
|
|
3
3
|
import { Address } from "viem";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
@@ -156,20 +156,7 @@ declare const TimelockMarketProvider: ({
|
|
|
156
156
|
marketData?: Partial<TimelockMarketData>;
|
|
157
157
|
envioGraphqlUrl?: string;
|
|
158
158
|
}) => React.JSX.Element;
|
|
159
|
-
declare const useCurrentMarket: () => Partial<
|
|
160
|
-
optionAssetIsToken0: boolean;
|
|
161
|
-
vault: `0x${string}`;
|
|
162
|
-
pool: `0x${string}`;
|
|
163
|
-
optionAsset: `0x${string}`;
|
|
164
|
-
payoutAsset: `0x${string}`;
|
|
165
|
-
optionAssetDecimals: number;
|
|
166
|
-
payoutAssetDecimals: number;
|
|
167
|
-
optionAssetSymbol: string;
|
|
168
|
-
payoutAssetSymbol: string;
|
|
169
|
-
optionAssetName: string;
|
|
170
|
-
payoutAssetName: string;
|
|
171
|
-
optionsCount: bigint;
|
|
172
|
-
}>;
|
|
159
|
+
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
173
160
|
declare const useTimelockConfig: () => {
|
|
174
161
|
lensAddr: `0x${string}` | undefined;
|
|
175
162
|
uniswapMathLensAddr: `0x${string}` | undefined;
|
|
@@ -28685,7 +28685,9 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
28685
28685
|
readonly stateMutability: "pure";
|
|
28686
28686
|
}];
|
|
28687
28687
|
};
|
|
28688
|
-
type TimelockMarketData = Awaited<ReturnType<ReturnType<typeof getTimelockLens>['read']['getMarketData']
|
|
28688
|
+
type TimelockMarketData = Awaited<ReturnType<ReturnType<typeof getTimelockLens>['read']['getMarketData']>> & {
|
|
28689
|
+
address: Address;
|
|
28690
|
+
};
|
|
28689
28691
|
declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
28690
28692
|
read: {
|
|
28691
28693
|
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
@@ -38887,4 +38889,4 @@ declare const erc20Abi$1: readonly [{
|
|
|
38887
38889
|
}];
|
|
38888
38890
|
//#endregion
|
|
38889
38891
|
export { Amount, PRICE_PRECISION, TimelockLens, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool, erc20Abi$1 as erc20Abi, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getErc20, getPriceAtTick, getTickAtPrice, getTimelockLens, getTimelockMarket, getTimelockVault, getUniswapMathLens, getUniswapPool, lensAbi, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, optionsMarketAbi, roundTickDown, roundTickUp, scaleAmount, scalePrice, singleOwnerVaultAbi, timelockLenses, token0ToToken1, token1ToToken0, uniswapMathLensAbi, uniswapMathLenses, uniswapV3PoolAbi, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
|
38890
|
-
//# sourceMappingURL=index-
|
|
38892
|
+
//# sourceMappingURL=index-DxdylqnF.d.ts.map
|