timelock-sdk 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +21 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +95 -70
- package/dist/client.d.ts +91 -66
- package/dist/client.js +23 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-sG69Fv-T.d.ts → index-BCGDfKXC.d.cts} +123 -122
- package/dist/{index-DDAsERk2.d.cts → index-D6LBNb6K.d.ts} +16 -15
- package/dist/numberUtils-DB5N1e6G.js.map +1 -1
- package/dist/numberUtils-DRGhFDHZ.cjs.map +1 -1
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Amount, TimelockMarket, TimelockVault, UniswapMathLens, UniswapPool } from "./index-
|
|
1
|
+
import { Amount, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool } from "./index-BCGDfKXC.cjs";
|
|
2
2
|
import "graphql";
|
|
3
3
|
import "graphql-request";
|
|
4
|
+
import React, { ReactNode } from "react";
|
|
4
5
|
import * as viem382 from "viem";
|
|
5
6
|
import { Address } from "viem";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import * as
|
|
7
|
+
import * as _wagmi_core0 from "@wagmi/core";
|
|
8
|
+
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
|
+
import * as _tanstack_query_core1 from "@tanstack/query-core";
|
|
9
10
|
|
|
10
11
|
//#region src/generated/graphql.d.ts
|
|
11
12
|
type Exact<T extends {
|
|
@@ -120,25 +121,30 @@ type GetClosedUserOptionsQuery = {
|
|
|
120
121
|
} | null;
|
|
121
122
|
}>;
|
|
122
123
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
type TimelockMarketData = Required<ReturnType<typeof useMarketData>>;
|
|
126
|
-
declare const useMarketData: (market?: Address | TimelockMarket) => Partial<{
|
|
127
|
-
optionAssetIsToken0: boolean;
|
|
128
|
-
vault: `0x${string}`;
|
|
129
|
-
pool: `0x${string}`;
|
|
130
|
-
optionAsset: `0x${string}`;
|
|
131
|
-
payoutAsset: `0x${string}`;
|
|
132
|
-
optionAssetDecimals: number;
|
|
133
|
-
payoutAssetDecimals: number;
|
|
134
|
-
optionAssetSymbol: string;
|
|
135
|
-
payoutAssetSymbol: string;
|
|
136
|
-
optionAssetName: string;
|
|
137
|
-
payoutAssetName: string;
|
|
138
|
-
optionsCount: bigint;
|
|
139
|
-
} & {
|
|
140
|
-
address: Address;
|
|
124
|
+
type GetMarketDataQueryVariables = Exact<{
|
|
125
|
+
marketAddr: Scalars['String']['input'];
|
|
141
126
|
}>;
|
|
127
|
+
type GetMarketDataQuery = {
|
|
128
|
+
__typename: 'query_root';
|
|
129
|
+
TimelockMarket: Array<{
|
|
130
|
+
__typename: 'TimelockMarket';
|
|
131
|
+
id: string;
|
|
132
|
+
optionsCount: any;
|
|
133
|
+
tradersCount: any;
|
|
134
|
+
vault: string;
|
|
135
|
+
pool: string;
|
|
136
|
+
tickSpacing: number;
|
|
137
|
+
optionAssetIsToken0: boolean;
|
|
138
|
+
optionAsset: string;
|
|
139
|
+
payoutAsset: string;
|
|
140
|
+
optionAssetDecimals: number;
|
|
141
|
+
payoutAssetDecimals: number;
|
|
142
|
+
optionAssetSymbol: string;
|
|
143
|
+
payoutAssetSymbol: string;
|
|
144
|
+
optionAssetName: string;
|
|
145
|
+
payoutAssetName: string;
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
142
148
|
//#endregion
|
|
143
149
|
//#region src/providers/TimelockMarketProvider.d.ts
|
|
144
150
|
declare const TimelockMarketProvider: ({
|
|
@@ -150,7 +156,7 @@ declare const TimelockMarketProvider: ({
|
|
|
150
156
|
marketData?: Partial<TimelockMarketData>;
|
|
151
157
|
envioGraphqlUrl?: string;
|
|
152
158
|
}) => React.JSX.Element;
|
|
153
|
-
declare const useCurrentMarket: () => Partial<
|
|
159
|
+
declare const useCurrentMarket: () => Partial<{
|
|
154
160
|
optionAssetIsToken0: boolean;
|
|
155
161
|
vault: `0x${string}`;
|
|
156
162
|
pool: `0x${string}`;
|
|
@@ -163,9 +169,7 @@ declare const useCurrentMarket: () => Partial<Required<Partial<{
|
|
|
163
169
|
optionAssetName: string;
|
|
164
170
|
payoutAssetName: string;
|
|
165
171
|
optionsCount: bigint;
|
|
166
|
-
}
|
|
167
|
-
address: Address;
|
|
168
|
-
}>>>;
|
|
172
|
+
}>;
|
|
169
173
|
declare const useTimelockConfig: () => {
|
|
170
174
|
lensAddr: `0x${string}` | undefined;
|
|
171
175
|
uniswapMathLensAddr: `0x${string}` | undefined;
|
|
@@ -173,6 +177,7 @@ declare const useTimelockConfig: () => {
|
|
|
173
177
|
graphqlClient: {
|
|
174
178
|
GetActiveUserOptions(variables: GetActiveUserOptionsQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsQuery>;
|
|
175
179
|
GetClosedUserOptions(variables: GetClosedUserOptionsQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsQuery>;
|
|
180
|
+
GetMarketData(variables: GetMarketDataQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetMarketDataQuery>;
|
|
176
181
|
} | undefined;
|
|
177
182
|
};
|
|
178
183
|
//#endregion
|
|
@@ -183,10 +188,30 @@ declare const useExerciseOption: (market?: Address | TimelockMarket) => {
|
|
|
183
188
|
isPending: boolean;
|
|
184
189
|
isConfirming: boolean;
|
|
185
190
|
isSuccess: boolean;
|
|
186
|
-
error:
|
|
191
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
187
192
|
isLoading: boolean;
|
|
188
193
|
};
|
|
189
194
|
//#endregion
|
|
195
|
+
//#region src/hooks/market/useMarketData.d.ts
|
|
196
|
+
declare const useMarketData: (market?: Address | TimelockMarket) => Partial<NonUndefinedGuard<{
|
|
197
|
+
pool: Address;
|
|
198
|
+
vault: Address;
|
|
199
|
+
optionAsset: Address;
|
|
200
|
+
payoutAsset: Address;
|
|
201
|
+
optionsCount: bigint;
|
|
202
|
+
tradersCount: bigint;
|
|
203
|
+
__typename: "TimelockMarket";
|
|
204
|
+
id: string;
|
|
205
|
+
tickSpacing: number;
|
|
206
|
+
optionAssetIsToken0: boolean;
|
|
207
|
+
optionAssetDecimals: number;
|
|
208
|
+
payoutAssetDecimals: number;
|
|
209
|
+
optionAssetSymbol: string;
|
|
210
|
+
payoutAssetSymbol: string;
|
|
211
|
+
optionAssetName: string;
|
|
212
|
+
payoutAssetName: string;
|
|
213
|
+
} | undefined>>;
|
|
214
|
+
//#endregion
|
|
190
215
|
//#region src/hooks/market/useMaxPositionSize.d.ts
|
|
191
216
|
declare const useMaxPositionSize: (market: Address | TimelockMarket | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
192
217
|
maxCallSize: Amount | undefined;
|
|
@@ -201,11 +226,11 @@ declare const useMintOption: (market?: Address | TimelockMarket) => {
|
|
|
201
226
|
isPending: boolean;
|
|
202
227
|
isConfirming: boolean;
|
|
203
228
|
isSuccess: boolean;
|
|
204
|
-
error:
|
|
229
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
205
230
|
isLoading: boolean;
|
|
206
231
|
};
|
|
207
232
|
//#endregion
|
|
208
|
-
//#region src/hooks/market/
|
|
233
|
+
//#region src/hooks/market/useOptionPnl.d.ts
|
|
209
234
|
declare const useOptionPnl: (optionData: {
|
|
210
235
|
marketAddr: Address;
|
|
211
236
|
optionType: "CALL" | "PUT";
|
|
@@ -244,7 +269,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
244
269
|
isRefetching: boolean;
|
|
245
270
|
isStale: boolean;
|
|
246
271
|
isEnabled: boolean;
|
|
247
|
-
refetch: (options?:
|
|
272
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
248
273
|
id: bigint;
|
|
249
274
|
marketAddr: Address;
|
|
250
275
|
optionType: "CALL" | "PUT";
|
|
@@ -272,7 +297,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
272
297
|
transactionHash: string;
|
|
273
298
|
} | null;
|
|
274
299
|
}[] | undefined, Error>>;
|
|
275
|
-
fetchStatus:
|
|
300
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
276
301
|
promise: Promise<{
|
|
277
302
|
id: bigint;
|
|
278
303
|
marketAddr: Address;
|
|
@@ -352,7 +377,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
352
377
|
isRefetching: boolean;
|
|
353
378
|
isStale: boolean;
|
|
354
379
|
isEnabled: boolean;
|
|
355
|
-
refetch: (options?:
|
|
380
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
356
381
|
id: bigint;
|
|
357
382
|
marketAddr: Address;
|
|
358
383
|
optionType: "CALL" | "PUT";
|
|
@@ -380,7 +405,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
380
405
|
transactionHash: string;
|
|
381
406
|
} | null;
|
|
382
407
|
}[] | undefined, Error>>;
|
|
383
|
-
fetchStatus:
|
|
408
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
384
409
|
promise: Promise<{
|
|
385
410
|
id: bigint;
|
|
386
411
|
marketAddr: Address;
|
|
@@ -460,7 +485,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
460
485
|
isRefetching: boolean;
|
|
461
486
|
isStale: boolean;
|
|
462
487
|
isEnabled: boolean;
|
|
463
|
-
refetch: (options?:
|
|
488
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
464
489
|
id: bigint;
|
|
465
490
|
marketAddr: Address;
|
|
466
491
|
optionType: "CALL" | "PUT";
|
|
@@ -488,7 +513,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
488
513
|
transactionHash: string;
|
|
489
514
|
} | null;
|
|
490
515
|
}[] | undefined, Error>>;
|
|
491
|
-
fetchStatus:
|
|
516
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
492
517
|
promise: Promise<{
|
|
493
518
|
id: bigint;
|
|
494
519
|
marketAddr: Address;
|
|
@@ -568,7 +593,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
568
593
|
isRefetching: boolean;
|
|
569
594
|
isStale: boolean;
|
|
570
595
|
isEnabled: boolean;
|
|
571
|
-
refetch: (options?:
|
|
596
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
572
597
|
id: bigint;
|
|
573
598
|
marketAddr: Address;
|
|
574
599
|
optionType: "CALL" | "PUT";
|
|
@@ -596,7 +621,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
596
621
|
transactionHash: string;
|
|
597
622
|
} | null;
|
|
598
623
|
}[] | undefined, Error>>;
|
|
599
|
-
fetchStatus:
|
|
624
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
600
625
|
promise: Promise<{
|
|
601
626
|
id: bigint;
|
|
602
627
|
marketAddr: Address;
|
|
@@ -676,7 +701,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
676
701
|
isRefetching: boolean;
|
|
677
702
|
isStale: boolean;
|
|
678
703
|
isEnabled: boolean;
|
|
679
|
-
refetch: (options?:
|
|
704
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
680
705
|
id: bigint;
|
|
681
706
|
marketAddr: Address;
|
|
682
707
|
optionType: "CALL" | "PUT";
|
|
@@ -704,7 +729,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
704
729
|
transactionHash: string;
|
|
705
730
|
} | null;
|
|
706
731
|
}[] | undefined, Error>>;
|
|
707
|
-
fetchStatus:
|
|
732
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
708
733
|
promise: Promise<{
|
|
709
734
|
id: bigint;
|
|
710
735
|
marketAddr: Address;
|
|
@@ -784,7 +809,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
784
809
|
isRefetching: boolean;
|
|
785
810
|
isStale: boolean;
|
|
786
811
|
isEnabled: boolean;
|
|
787
|
-
refetch: (options?:
|
|
812
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
788
813
|
id: bigint;
|
|
789
814
|
marketAddr: Address;
|
|
790
815
|
optionType: "CALL" | "PUT";
|
|
@@ -812,7 +837,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
812
837
|
transactionHash: string;
|
|
813
838
|
} | null;
|
|
814
839
|
}[] | undefined, Error>>;
|
|
815
|
-
fetchStatus:
|
|
840
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
816
841
|
promise: Promise<{
|
|
817
842
|
id: bigint;
|
|
818
843
|
marketAddr: Address;
|
|
@@ -893,7 +918,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
893
918
|
isRefetching: boolean;
|
|
894
919
|
isStale: boolean;
|
|
895
920
|
isEnabled: boolean;
|
|
896
|
-
refetch: (options?:
|
|
921
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
897
922
|
id: bigint;
|
|
898
923
|
marketAddr: Address;
|
|
899
924
|
optionType: "CALL" | "PUT";
|
|
@@ -921,7 +946,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
921
946
|
transactionHash: string;
|
|
922
947
|
} | null;
|
|
923
948
|
}[] | undefined, Error>>;
|
|
924
|
-
fetchStatus:
|
|
949
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
925
950
|
promise: Promise<{
|
|
926
951
|
id: bigint;
|
|
927
952
|
marketAddr: Address;
|
|
@@ -1001,7 +1026,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1001
1026
|
isRefetching: boolean;
|
|
1002
1027
|
isStale: boolean;
|
|
1003
1028
|
isEnabled: boolean;
|
|
1004
|
-
refetch: (options?:
|
|
1029
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1005
1030
|
id: bigint;
|
|
1006
1031
|
marketAddr: Address;
|
|
1007
1032
|
optionType: "CALL" | "PUT";
|
|
@@ -1029,7 +1054,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1029
1054
|
transactionHash: string;
|
|
1030
1055
|
} | null;
|
|
1031
1056
|
}[] | undefined, Error>>;
|
|
1032
|
-
fetchStatus:
|
|
1057
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1033
1058
|
promise: Promise<{
|
|
1034
1059
|
id: bigint;
|
|
1035
1060
|
marketAddr: Address;
|
|
@@ -1109,7 +1134,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1109
1134
|
isRefetching: boolean;
|
|
1110
1135
|
isStale: boolean;
|
|
1111
1136
|
isEnabled: boolean;
|
|
1112
|
-
refetch: (options?:
|
|
1137
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1113
1138
|
id: bigint;
|
|
1114
1139
|
marketAddr: Address;
|
|
1115
1140
|
optionType: "CALL" | "PUT";
|
|
@@ -1137,7 +1162,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1137
1162
|
transactionHash: string;
|
|
1138
1163
|
} | null;
|
|
1139
1164
|
}[] | undefined, Error>>;
|
|
1140
|
-
fetchStatus:
|
|
1165
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1141
1166
|
promise: Promise<{
|
|
1142
1167
|
id: bigint;
|
|
1143
1168
|
marketAddr: Address;
|
|
@@ -1217,7 +1242,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1217
1242
|
isRefetching: boolean;
|
|
1218
1243
|
isStale: boolean;
|
|
1219
1244
|
isEnabled: boolean;
|
|
1220
|
-
refetch: (options?:
|
|
1245
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1221
1246
|
id: bigint;
|
|
1222
1247
|
marketAddr: Address;
|
|
1223
1248
|
optionType: "CALL" | "PUT";
|
|
@@ -1245,7 +1270,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1245
1270
|
transactionHash: string;
|
|
1246
1271
|
} | null;
|
|
1247
1272
|
}[] | undefined, Error>>;
|
|
1248
|
-
fetchStatus:
|
|
1273
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1249
1274
|
promise: Promise<{
|
|
1250
1275
|
id: bigint;
|
|
1251
1276
|
marketAddr: Address;
|
|
@@ -1325,7 +1350,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1325
1350
|
isRefetching: boolean;
|
|
1326
1351
|
isStale: boolean;
|
|
1327
1352
|
isEnabled: boolean;
|
|
1328
|
-
refetch: (options?:
|
|
1353
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1329
1354
|
id: bigint;
|
|
1330
1355
|
marketAddr: Address;
|
|
1331
1356
|
optionType: "CALL" | "PUT";
|
|
@@ -1353,7 +1378,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1353
1378
|
transactionHash: string;
|
|
1354
1379
|
} | null;
|
|
1355
1380
|
}[] | undefined, Error>>;
|
|
1356
|
-
fetchStatus:
|
|
1381
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1357
1382
|
promise: Promise<{
|
|
1358
1383
|
id: bigint;
|
|
1359
1384
|
marketAddr: Address;
|
|
@@ -1433,7 +1458,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1433
1458
|
isRefetching: boolean;
|
|
1434
1459
|
isStale: boolean;
|
|
1435
1460
|
isEnabled: boolean;
|
|
1436
|
-
refetch: (options?:
|
|
1461
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1437
1462
|
id: bigint;
|
|
1438
1463
|
marketAddr: Address;
|
|
1439
1464
|
optionType: "CALL" | "PUT";
|
|
@@ -1461,7 +1486,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1461
1486
|
transactionHash: string;
|
|
1462
1487
|
} | null;
|
|
1463
1488
|
}[] | undefined, Error>>;
|
|
1464
|
-
fetchStatus:
|
|
1489
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1465
1490
|
promise: Promise<{
|
|
1466
1491
|
id: bigint;
|
|
1467
1492
|
marketAddr: Address;
|
|
@@ -1542,7 +1567,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1542
1567
|
isRefetching: boolean;
|
|
1543
1568
|
isStale: boolean;
|
|
1544
1569
|
isEnabled: boolean;
|
|
1545
|
-
refetch: (options?:
|
|
1570
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1546
1571
|
id: bigint;
|
|
1547
1572
|
marketAddr: Address;
|
|
1548
1573
|
optionType: "CALL" | "PUT";
|
|
@@ -1570,7 +1595,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1570
1595
|
transactionHash: string;
|
|
1571
1596
|
} | null;
|
|
1572
1597
|
}[] | undefined, Error>>;
|
|
1573
|
-
fetchStatus:
|
|
1598
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1574
1599
|
promise: Promise<{
|
|
1575
1600
|
id: bigint;
|
|
1576
1601
|
marketAddr: Address;
|
|
@@ -1650,7 +1675,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1650
1675
|
isRefetching: boolean;
|
|
1651
1676
|
isStale: boolean;
|
|
1652
1677
|
isEnabled: boolean;
|
|
1653
|
-
refetch: (options?:
|
|
1678
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1654
1679
|
id: bigint;
|
|
1655
1680
|
marketAddr: Address;
|
|
1656
1681
|
optionType: "CALL" | "PUT";
|
|
@@ -1678,7 +1703,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1678
1703
|
transactionHash: string;
|
|
1679
1704
|
} | null;
|
|
1680
1705
|
}[] | undefined, Error>>;
|
|
1681
|
-
fetchStatus:
|
|
1706
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1682
1707
|
promise: Promise<{
|
|
1683
1708
|
id: bigint;
|
|
1684
1709
|
marketAddr: Address;
|
|
@@ -1758,7 +1783,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1758
1783
|
isRefetching: boolean;
|
|
1759
1784
|
isStale: boolean;
|
|
1760
1785
|
isEnabled: boolean;
|
|
1761
|
-
refetch: (options?:
|
|
1786
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1762
1787
|
id: bigint;
|
|
1763
1788
|
marketAddr: Address;
|
|
1764
1789
|
optionType: "CALL" | "PUT";
|
|
@@ -1786,7 +1811,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1786
1811
|
transactionHash: string;
|
|
1787
1812
|
} | null;
|
|
1788
1813
|
}[] | undefined, Error>>;
|
|
1789
|
-
fetchStatus:
|
|
1814
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1790
1815
|
promise: Promise<{
|
|
1791
1816
|
id: bigint;
|
|
1792
1817
|
marketAddr: Address;
|
|
@@ -1866,7 +1891,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1866
1891
|
isRefetching: boolean;
|
|
1867
1892
|
isStale: boolean;
|
|
1868
1893
|
isEnabled: boolean;
|
|
1869
|
-
refetch: (options?:
|
|
1894
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1870
1895
|
id: bigint;
|
|
1871
1896
|
marketAddr: Address;
|
|
1872
1897
|
optionType: "CALL" | "PUT";
|
|
@@ -1894,7 +1919,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1894
1919
|
transactionHash: string;
|
|
1895
1920
|
} | null;
|
|
1896
1921
|
}[] | undefined, Error>>;
|
|
1897
|
-
fetchStatus:
|
|
1922
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
1898
1923
|
promise: Promise<{
|
|
1899
1924
|
id: bigint;
|
|
1900
1925
|
marketAddr: Address;
|
|
@@ -1974,7 +1999,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1974
1999
|
isRefetching: boolean;
|
|
1975
2000
|
isStale: boolean;
|
|
1976
2001
|
isEnabled: boolean;
|
|
1977
|
-
refetch: (options?:
|
|
2002
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
1978
2003
|
id: bigint;
|
|
1979
2004
|
marketAddr: Address;
|
|
1980
2005
|
optionType: "CALL" | "PUT";
|
|
@@ -2002,7 +2027,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2002
2027
|
transactionHash: string;
|
|
2003
2028
|
} | null;
|
|
2004
2029
|
}[] | undefined, Error>>;
|
|
2005
|
-
fetchStatus:
|
|
2030
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
2006
2031
|
promise: Promise<{
|
|
2007
2032
|
id: bigint;
|
|
2008
2033
|
marketAddr: Address;
|
|
@@ -2082,7 +2107,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2082
2107
|
isRefetching: boolean;
|
|
2083
2108
|
isStale: boolean;
|
|
2084
2109
|
isEnabled: boolean;
|
|
2085
|
-
refetch: (options?:
|
|
2110
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<{
|
|
2086
2111
|
id: bigint;
|
|
2087
2112
|
marketAddr: Address;
|
|
2088
2113
|
optionType: "CALL" | "PUT";
|
|
@@ -2110,7 +2135,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2110
2135
|
transactionHash: string;
|
|
2111
2136
|
} | null;
|
|
2112
2137
|
}[] | undefined, Error>>;
|
|
2113
|
-
fetchStatus:
|
|
2138
|
+
fetchStatus: _tanstack_query_core1.FetchStatus;
|
|
2114
2139
|
promise: Promise<{
|
|
2115
2140
|
id: bigint;
|
|
2116
2141
|
marketAddr: Address;
|
|
@@ -2220,7 +2245,7 @@ declare const useBurnLiquidity: (vault?: Address | TimelockVault) => {
|
|
|
2220
2245
|
isPending: boolean;
|
|
2221
2246
|
isConfirming: boolean;
|
|
2222
2247
|
isSuccess: boolean;
|
|
2223
|
-
error:
|
|
2248
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2224
2249
|
isLoading: boolean;
|
|
2225
2250
|
};
|
|
2226
2251
|
//#endregion
|
|
@@ -2243,7 +2268,7 @@ declare const useLiquidityBlocks: (vault?: Address | TimelockVault) => {
|
|
|
2243
2268
|
totalAmount1: Amount | undefined;
|
|
2244
2269
|
borrowedAmount0: Amount | undefined;
|
|
2245
2270
|
borrowedAmount1: Amount | undefined;
|
|
2246
|
-
refetch: (options?:
|
|
2271
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<readonly {
|
|
2247
2272
|
tickLower: number;
|
|
2248
2273
|
tickUpper: number;
|
|
2249
2274
|
prevTickLower: number;
|
|
@@ -2275,7 +2300,7 @@ declare const useMintLiquidity: (vault?: Address | TimelockVault) => {
|
|
|
2275
2300
|
isPending: boolean;
|
|
2276
2301
|
isConfirming: boolean;
|
|
2277
2302
|
isSuccess: boolean;
|
|
2278
|
-
error:
|
|
2303
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
2279
2304
|
isLoading: boolean;
|
|
2280
2305
|
};
|
|
2281
2306
|
//#endregion
|
|
@@ -2292,7 +2317,7 @@ declare const useVaultTVL: (vault?: Address | TimelockVault) => {
|
|
|
2292
2317
|
totalAmount1: Amount | undefined;
|
|
2293
2318
|
borrowedAmount0: Amount | undefined;
|
|
2294
2319
|
borrowedAmount1: Amount | undefined;
|
|
2295
|
-
refetch: (options?:
|
|
2320
|
+
refetch: (options?: _tanstack_query_core1.RefetchOptions) => Promise<_tanstack_query_core1.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint], viem382.ReadContractErrorType>>;
|
|
2296
2321
|
};
|
|
2297
2322
|
//#endregion
|
|
2298
2323
|
//#region src/hooks/useLens.d.ts
|
|
@@ -29014,5 +29039,5 @@ declare const useLens: () => {
|
|
|
29014
29039
|
} | undefined;
|
|
29015
29040
|
};
|
|
29016
29041
|
//#endregion
|
|
29017
|
-
export { LiquidityBlockData, OptionData,
|
|
29042
|
+
export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, getCurrentTick, useActiveUserOptions, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, useTimelockConfig, useVaultData, useVaultTVL };
|
|
29018
29043
|
//# sourceMappingURL=client.d.cts.map
|