timelock-sdk 0.0.9 → 0.0.11
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 +94 -82
- package/dist/client.d.ts +90 -78
- package/dist/client.js +23 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-sG69Fv-T.d.ts → index-CnVjbZPl.d.ts} +124 -121
- package/dist/{index-DDAsERk2.d.cts → index-tyVRQhLR.d.cts} +17 -14
- 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-tyVRQhLR.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_core2 from "@wagmi/core";
|
|
8
|
+
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
|
+
import * as _tanstack_query_core3 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,22 +156,7 @@ declare const TimelockMarketProvider: ({
|
|
|
150
156
|
marketData?: Partial<TimelockMarketData>;
|
|
151
157
|
envioGraphqlUrl?: string;
|
|
152
158
|
}) => React.JSX.Element;
|
|
153
|
-
declare const useCurrentMarket: () => Partial<
|
|
154
|
-
optionAssetIsToken0: boolean;
|
|
155
|
-
vault: `0x${string}`;
|
|
156
|
-
pool: `0x${string}`;
|
|
157
|
-
optionAsset: `0x${string}`;
|
|
158
|
-
payoutAsset: `0x${string}`;
|
|
159
|
-
optionAssetDecimals: number;
|
|
160
|
-
payoutAssetDecimals: number;
|
|
161
|
-
optionAssetSymbol: string;
|
|
162
|
-
payoutAssetSymbol: string;
|
|
163
|
-
optionAssetName: string;
|
|
164
|
-
payoutAssetName: string;
|
|
165
|
-
optionsCount: bigint;
|
|
166
|
-
} & {
|
|
167
|
-
address: Address;
|
|
168
|
-
}>>>;
|
|
159
|
+
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
169
160
|
declare const useTimelockConfig: () => {
|
|
170
161
|
lensAddr: `0x${string}` | undefined;
|
|
171
162
|
uniswapMathLensAddr: `0x${string}` | undefined;
|
|
@@ -173,6 +164,7 @@ declare const useTimelockConfig: () => {
|
|
|
173
164
|
graphqlClient: {
|
|
174
165
|
GetActiveUserOptions(variables: GetActiveUserOptionsQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsQuery>;
|
|
175
166
|
GetClosedUserOptions(variables: GetClosedUserOptionsQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsQuery>;
|
|
167
|
+
GetMarketData(variables: GetMarketDataQueryVariables, requestHeaders?: any, signal?: RequestInit["signal"]): Promise<GetMarketDataQuery>;
|
|
176
168
|
} | undefined;
|
|
177
169
|
};
|
|
178
170
|
//#endregion
|
|
@@ -183,10 +175,30 @@ declare const useExerciseOption: (market?: Address | TimelockMarket) => {
|
|
|
183
175
|
isPending: boolean;
|
|
184
176
|
isConfirming: boolean;
|
|
185
177
|
isSuccess: boolean;
|
|
186
|
-
error:
|
|
178
|
+
error: _wagmi_core2.WriteContractErrorType | null;
|
|
187
179
|
isLoading: boolean;
|
|
188
180
|
};
|
|
189
181
|
//#endregion
|
|
182
|
+
//#region src/hooks/market/useMarketData.d.ts
|
|
183
|
+
declare const useMarketData: (market?: Address | TimelockMarket) => Partial<NonUndefinedGuard<{
|
|
184
|
+
pool: Address;
|
|
185
|
+
vault: Address;
|
|
186
|
+
optionAsset: Address;
|
|
187
|
+
payoutAsset: Address;
|
|
188
|
+
optionsCount: bigint;
|
|
189
|
+
tradersCount: bigint;
|
|
190
|
+
__typename: "TimelockMarket";
|
|
191
|
+
id: string;
|
|
192
|
+
tickSpacing: number;
|
|
193
|
+
optionAssetIsToken0: boolean;
|
|
194
|
+
optionAssetDecimals: number;
|
|
195
|
+
payoutAssetDecimals: number;
|
|
196
|
+
optionAssetSymbol: string;
|
|
197
|
+
payoutAssetSymbol: string;
|
|
198
|
+
optionAssetName: string;
|
|
199
|
+
payoutAssetName: string;
|
|
200
|
+
} | undefined>>;
|
|
201
|
+
//#endregion
|
|
190
202
|
//#region src/hooks/market/useMaxPositionSize.d.ts
|
|
191
203
|
declare const useMaxPositionSize: (market: Address | TimelockMarket | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
192
204
|
maxCallSize: Amount | undefined;
|
|
@@ -201,11 +213,11 @@ declare const useMintOption: (market?: Address | TimelockMarket) => {
|
|
|
201
213
|
isPending: boolean;
|
|
202
214
|
isConfirming: boolean;
|
|
203
215
|
isSuccess: boolean;
|
|
204
|
-
error:
|
|
216
|
+
error: _wagmi_core2.WriteContractErrorType | null;
|
|
205
217
|
isLoading: boolean;
|
|
206
218
|
};
|
|
207
219
|
//#endregion
|
|
208
|
-
//#region src/hooks/market/
|
|
220
|
+
//#region src/hooks/market/useOptionPnl.d.ts
|
|
209
221
|
declare const useOptionPnl: (optionData: {
|
|
210
222
|
marketAddr: Address;
|
|
211
223
|
optionType: "CALL" | "PUT";
|
|
@@ -244,7 +256,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
244
256
|
isRefetching: boolean;
|
|
245
257
|
isStale: boolean;
|
|
246
258
|
isEnabled: boolean;
|
|
247
|
-
refetch: (options?:
|
|
259
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
248
260
|
id: bigint;
|
|
249
261
|
marketAddr: Address;
|
|
250
262
|
optionType: "CALL" | "PUT";
|
|
@@ -272,7 +284,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
272
284
|
transactionHash: string;
|
|
273
285
|
} | null;
|
|
274
286
|
}[] | undefined, Error>>;
|
|
275
|
-
fetchStatus:
|
|
287
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
276
288
|
promise: Promise<{
|
|
277
289
|
id: bigint;
|
|
278
290
|
marketAddr: Address;
|
|
@@ -352,7 +364,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
352
364
|
isRefetching: boolean;
|
|
353
365
|
isStale: boolean;
|
|
354
366
|
isEnabled: boolean;
|
|
355
|
-
refetch: (options?:
|
|
367
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
356
368
|
id: bigint;
|
|
357
369
|
marketAddr: Address;
|
|
358
370
|
optionType: "CALL" | "PUT";
|
|
@@ -380,7 +392,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
380
392
|
transactionHash: string;
|
|
381
393
|
} | null;
|
|
382
394
|
}[] | undefined, Error>>;
|
|
383
|
-
fetchStatus:
|
|
395
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
384
396
|
promise: Promise<{
|
|
385
397
|
id: bigint;
|
|
386
398
|
marketAddr: Address;
|
|
@@ -460,7 +472,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
460
472
|
isRefetching: boolean;
|
|
461
473
|
isStale: boolean;
|
|
462
474
|
isEnabled: boolean;
|
|
463
|
-
refetch: (options?:
|
|
475
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
464
476
|
id: bigint;
|
|
465
477
|
marketAddr: Address;
|
|
466
478
|
optionType: "CALL" | "PUT";
|
|
@@ -488,7 +500,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
488
500
|
transactionHash: string;
|
|
489
501
|
} | null;
|
|
490
502
|
}[] | undefined, Error>>;
|
|
491
|
-
fetchStatus:
|
|
503
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
492
504
|
promise: Promise<{
|
|
493
505
|
id: bigint;
|
|
494
506
|
marketAddr: Address;
|
|
@@ -568,7 +580,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
568
580
|
isRefetching: boolean;
|
|
569
581
|
isStale: boolean;
|
|
570
582
|
isEnabled: boolean;
|
|
571
|
-
refetch: (options?:
|
|
583
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
572
584
|
id: bigint;
|
|
573
585
|
marketAddr: Address;
|
|
574
586
|
optionType: "CALL" | "PUT";
|
|
@@ -596,7 +608,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
596
608
|
transactionHash: string;
|
|
597
609
|
} | null;
|
|
598
610
|
}[] | undefined, Error>>;
|
|
599
|
-
fetchStatus:
|
|
611
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
600
612
|
promise: Promise<{
|
|
601
613
|
id: bigint;
|
|
602
614
|
marketAddr: Address;
|
|
@@ -676,7 +688,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
676
688
|
isRefetching: boolean;
|
|
677
689
|
isStale: boolean;
|
|
678
690
|
isEnabled: boolean;
|
|
679
|
-
refetch: (options?:
|
|
691
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
680
692
|
id: bigint;
|
|
681
693
|
marketAddr: Address;
|
|
682
694
|
optionType: "CALL" | "PUT";
|
|
@@ -704,7 +716,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
704
716
|
transactionHash: string;
|
|
705
717
|
} | null;
|
|
706
718
|
}[] | undefined, Error>>;
|
|
707
|
-
fetchStatus:
|
|
719
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
708
720
|
promise: Promise<{
|
|
709
721
|
id: bigint;
|
|
710
722
|
marketAddr: Address;
|
|
@@ -784,7 +796,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
784
796
|
isRefetching: boolean;
|
|
785
797
|
isStale: boolean;
|
|
786
798
|
isEnabled: boolean;
|
|
787
|
-
refetch: (options?:
|
|
799
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
788
800
|
id: bigint;
|
|
789
801
|
marketAddr: Address;
|
|
790
802
|
optionType: "CALL" | "PUT";
|
|
@@ -812,7 +824,7 @@ declare const useUserOptions: (user?: string, active?: boolean) => {
|
|
|
812
824
|
transactionHash: string;
|
|
813
825
|
} | null;
|
|
814
826
|
}[] | undefined, Error>>;
|
|
815
|
-
fetchStatus:
|
|
827
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
816
828
|
promise: Promise<{
|
|
817
829
|
id: bigint;
|
|
818
830
|
marketAddr: Address;
|
|
@@ -893,7 +905,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
893
905
|
isRefetching: boolean;
|
|
894
906
|
isStale: boolean;
|
|
895
907
|
isEnabled: boolean;
|
|
896
|
-
refetch: (options?:
|
|
908
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
897
909
|
id: bigint;
|
|
898
910
|
marketAddr: Address;
|
|
899
911
|
optionType: "CALL" | "PUT";
|
|
@@ -921,7 +933,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
921
933
|
transactionHash: string;
|
|
922
934
|
} | null;
|
|
923
935
|
}[] | undefined, Error>>;
|
|
924
|
-
fetchStatus:
|
|
936
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
925
937
|
promise: Promise<{
|
|
926
938
|
id: bigint;
|
|
927
939
|
marketAddr: Address;
|
|
@@ -1001,7 +1013,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1001
1013
|
isRefetching: boolean;
|
|
1002
1014
|
isStale: boolean;
|
|
1003
1015
|
isEnabled: boolean;
|
|
1004
|
-
refetch: (options?:
|
|
1016
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1005
1017
|
id: bigint;
|
|
1006
1018
|
marketAddr: Address;
|
|
1007
1019
|
optionType: "CALL" | "PUT";
|
|
@@ -1029,7 +1041,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1029
1041
|
transactionHash: string;
|
|
1030
1042
|
} | null;
|
|
1031
1043
|
}[] | undefined, Error>>;
|
|
1032
|
-
fetchStatus:
|
|
1044
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1033
1045
|
promise: Promise<{
|
|
1034
1046
|
id: bigint;
|
|
1035
1047
|
marketAddr: Address;
|
|
@@ -1109,7 +1121,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1109
1121
|
isRefetching: boolean;
|
|
1110
1122
|
isStale: boolean;
|
|
1111
1123
|
isEnabled: boolean;
|
|
1112
|
-
refetch: (options?:
|
|
1124
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1113
1125
|
id: bigint;
|
|
1114
1126
|
marketAddr: Address;
|
|
1115
1127
|
optionType: "CALL" | "PUT";
|
|
@@ -1137,7 +1149,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1137
1149
|
transactionHash: string;
|
|
1138
1150
|
} | null;
|
|
1139
1151
|
}[] | undefined, Error>>;
|
|
1140
|
-
fetchStatus:
|
|
1152
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1141
1153
|
promise: Promise<{
|
|
1142
1154
|
id: bigint;
|
|
1143
1155
|
marketAddr: Address;
|
|
@@ -1217,7 +1229,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1217
1229
|
isRefetching: boolean;
|
|
1218
1230
|
isStale: boolean;
|
|
1219
1231
|
isEnabled: boolean;
|
|
1220
|
-
refetch: (options?:
|
|
1232
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1221
1233
|
id: bigint;
|
|
1222
1234
|
marketAddr: Address;
|
|
1223
1235
|
optionType: "CALL" | "PUT";
|
|
@@ -1245,7 +1257,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1245
1257
|
transactionHash: string;
|
|
1246
1258
|
} | null;
|
|
1247
1259
|
}[] | undefined, Error>>;
|
|
1248
|
-
fetchStatus:
|
|
1260
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1249
1261
|
promise: Promise<{
|
|
1250
1262
|
id: bigint;
|
|
1251
1263
|
marketAddr: Address;
|
|
@@ -1325,7 +1337,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1325
1337
|
isRefetching: boolean;
|
|
1326
1338
|
isStale: boolean;
|
|
1327
1339
|
isEnabled: boolean;
|
|
1328
|
-
refetch: (options?:
|
|
1340
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1329
1341
|
id: bigint;
|
|
1330
1342
|
marketAddr: Address;
|
|
1331
1343
|
optionType: "CALL" | "PUT";
|
|
@@ -1353,7 +1365,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1353
1365
|
transactionHash: string;
|
|
1354
1366
|
} | null;
|
|
1355
1367
|
}[] | undefined, Error>>;
|
|
1356
|
-
fetchStatus:
|
|
1368
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1357
1369
|
promise: Promise<{
|
|
1358
1370
|
id: bigint;
|
|
1359
1371
|
marketAddr: Address;
|
|
@@ -1433,7 +1445,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1433
1445
|
isRefetching: boolean;
|
|
1434
1446
|
isStale: boolean;
|
|
1435
1447
|
isEnabled: boolean;
|
|
1436
|
-
refetch: (options?:
|
|
1448
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1437
1449
|
id: bigint;
|
|
1438
1450
|
marketAddr: Address;
|
|
1439
1451
|
optionType: "CALL" | "PUT";
|
|
@@ -1461,7 +1473,7 @@ declare const useActiveUserOptions: (user?: string) => {
|
|
|
1461
1473
|
transactionHash: string;
|
|
1462
1474
|
} | null;
|
|
1463
1475
|
}[] | undefined, Error>>;
|
|
1464
|
-
fetchStatus:
|
|
1476
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1465
1477
|
promise: Promise<{
|
|
1466
1478
|
id: bigint;
|
|
1467
1479
|
marketAddr: Address;
|
|
@@ -1542,7 +1554,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1542
1554
|
isRefetching: boolean;
|
|
1543
1555
|
isStale: boolean;
|
|
1544
1556
|
isEnabled: boolean;
|
|
1545
|
-
refetch: (options?:
|
|
1557
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1546
1558
|
id: bigint;
|
|
1547
1559
|
marketAddr: Address;
|
|
1548
1560
|
optionType: "CALL" | "PUT";
|
|
@@ -1570,7 +1582,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1570
1582
|
transactionHash: string;
|
|
1571
1583
|
} | null;
|
|
1572
1584
|
}[] | undefined, Error>>;
|
|
1573
|
-
fetchStatus:
|
|
1585
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1574
1586
|
promise: Promise<{
|
|
1575
1587
|
id: bigint;
|
|
1576
1588
|
marketAddr: Address;
|
|
@@ -1650,7 +1662,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1650
1662
|
isRefetching: boolean;
|
|
1651
1663
|
isStale: boolean;
|
|
1652
1664
|
isEnabled: boolean;
|
|
1653
|
-
refetch: (options?:
|
|
1665
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1654
1666
|
id: bigint;
|
|
1655
1667
|
marketAddr: Address;
|
|
1656
1668
|
optionType: "CALL" | "PUT";
|
|
@@ -1678,7 +1690,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1678
1690
|
transactionHash: string;
|
|
1679
1691
|
} | null;
|
|
1680
1692
|
}[] | undefined, Error>>;
|
|
1681
|
-
fetchStatus:
|
|
1693
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1682
1694
|
promise: Promise<{
|
|
1683
1695
|
id: bigint;
|
|
1684
1696
|
marketAddr: Address;
|
|
@@ -1758,7 +1770,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1758
1770
|
isRefetching: boolean;
|
|
1759
1771
|
isStale: boolean;
|
|
1760
1772
|
isEnabled: boolean;
|
|
1761
|
-
refetch: (options?:
|
|
1773
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1762
1774
|
id: bigint;
|
|
1763
1775
|
marketAddr: Address;
|
|
1764
1776
|
optionType: "CALL" | "PUT";
|
|
@@ -1786,7 +1798,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1786
1798
|
transactionHash: string;
|
|
1787
1799
|
} | null;
|
|
1788
1800
|
}[] | undefined, Error>>;
|
|
1789
|
-
fetchStatus:
|
|
1801
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1790
1802
|
promise: Promise<{
|
|
1791
1803
|
id: bigint;
|
|
1792
1804
|
marketAddr: Address;
|
|
@@ -1866,7 +1878,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1866
1878
|
isRefetching: boolean;
|
|
1867
1879
|
isStale: boolean;
|
|
1868
1880
|
isEnabled: boolean;
|
|
1869
|
-
refetch: (options?:
|
|
1881
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1870
1882
|
id: bigint;
|
|
1871
1883
|
marketAddr: Address;
|
|
1872
1884
|
optionType: "CALL" | "PUT";
|
|
@@ -1894,7 +1906,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1894
1906
|
transactionHash: string;
|
|
1895
1907
|
} | null;
|
|
1896
1908
|
}[] | undefined, Error>>;
|
|
1897
|
-
fetchStatus:
|
|
1909
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
1898
1910
|
promise: Promise<{
|
|
1899
1911
|
id: bigint;
|
|
1900
1912
|
marketAddr: Address;
|
|
@@ -1974,7 +1986,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
1974
1986
|
isRefetching: boolean;
|
|
1975
1987
|
isStale: boolean;
|
|
1976
1988
|
isEnabled: boolean;
|
|
1977
|
-
refetch: (options?:
|
|
1989
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
1978
1990
|
id: bigint;
|
|
1979
1991
|
marketAddr: Address;
|
|
1980
1992
|
optionType: "CALL" | "PUT";
|
|
@@ -2002,7 +2014,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2002
2014
|
transactionHash: string;
|
|
2003
2015
|
} | null;
|
|
2004
2016
|
}[] | undefined, Error>>;
|
|
2005
|
-
fetchStatus:
|
|
2017
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
2006
2018
|
promise: Promise<{
|
|
2007
2019
|
id: bigint;
|
|
2008
2020
|
marketAddr: Address;
|
|
@@ -2082,7 +2094,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2082
2094
|
isRefetching: boolean;
|
|
2083
2095
|
isStale: boolean;
|
|
2084
2096
|
isEnabled: boolean;
|
|
2085
|
-
refetch: (options?:
|
|
2097
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<{
|
|
2086
2098
|
id: bigint;
|
|
2087
2099
|
marketAddr: Address;
|
|
2088
2100
|
optionType: "CALL" | "PUT";
|
|
@@ -2110,7 +2122,7 @@ declare const useClosedUserOptions: (user?: string) => {
|
|
|
2110
2122
|
transactionHash: string;
|
|
2111
2123
|
} | null;
|
|
2112
2124
|
}[] | undefined, Error>>;
|
|
2113
|
-
fetchStatus:
|
|
2125
|
+
fetchStatus: _tanstack_query_core3.FetchStatus;
|
|
2114
2126
|
promise: Promise<{
|
|
2115
2127
|
id: bigint;
|
|
2116
2128
|
marketAddr: Address;
|
|
@@ -2220,7 +2232,7 @@ declare const useBurnLiquidity: (vault?: Address | TimelockVault) => {
|
|
|
2220
2232
|
isPending: boolean;
|
|
2221
2233
|
isConfirming: boolean;
|
|
2222
2234
|
isSuccess: boolean;
|
|
2223
|
-
error:
|
|
2235
|
+
error: _wagmi_core2.WriteContractErrorType | null;
|
|
2224
2236
|
isLoading: boolean;
|
|
2225
2237
|
};
|
|
2226
2238
|
//#endregion
|
|
@@ -2243,7 +2255,7 @@ declare const useLiquidityBlocks: (vault?: Address | TimelockVault) => {
|
|
|
2243
2255
|
totalAmount1: Amount | undefined;
|
|
2244
2256
|
borrowedAmount0: Amount | undefined;
|
|
2245
2257
|
borrowedAmount1: Amount | undefined;
|
|
2246
|
-
refetch: (options?:
|
|
2258
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<readonly {
|
|
2247
2259
|
tickLower: number;
|
|
2248
2260
|
tickUpper: number;
|
|
2249
2261
|
prevTickLower: number;
|
|
@@ -2275,7 +2287,7 @@ declare const useMintLiquidity: (vault?: Address | TimelockVault) => {
|
|
|
2275
2287
|
isPending: boolean;
|
|
2276
2288
|
isConfirming: boolean;
|
|
2277
2289
|
isSuccess: boolean;
|
|
2278
|
-
error:
|
|
2290
|
+
error: _wagmi_core2.WriteContractErrorType | null;
|
|
2279
2291
|
isLoading: boolean;
|
|
2280
2292
|
};
|
|
2281
2293
|
//#endregion
|
|
@@ -2292,7 +2304,7 @@ declare const useVaultTVL: (vault?: Address | TimelockVault) => {
|
|
|
2292
2304
|
totalAmount1: Amount | undefined;
|
|
2293
2305
|
borrowedAmount0: Amount | undefined;
|
|
2294
2306
|
borrowedAmount1: Amount | undefined;
|
|
2295
|
-
refetch: (options?:
|
|
2307
|
+
refetch: (options?: _tanstack_query_core3.RefetchOptions) => Promise<_tanstack_query_core3.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint], viem382.ReadContractErrorType>>;
|
|
2296
2308
|
};
|
|
2297
2309
|
//#endregion
|
|
2298
2310
|
//#region src/hooks/useLens.d.ts
|
|
@@ -29014,5 +29026,5 @@ declare const useLens: () => {
|
|
|
29014
29026
|
} | undefined;
|
|
29015
29027
|
};
|
|
29016
29028
|
//#endregion
|
|
29017
|
-
export { LiquidityBlockData, OptionData,
|
|
29029
|
+
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
29030
|
//# sourceMappingURL=client.d.cts.map
|