timelock-sdk 0.0.73 → 0.0.75
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 +109 -72
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +144 -144
- package/dist/client.d.ts +131 -131
- package/dist/client.js +109 -73
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import "graphql";
|
|
|
7
7
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
8
8
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
9
9
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
10
|
-
import * as
|
|
10
|
+
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
11
11
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
12
12
|
|
|
13
13
|
//#region src/generated/graphql.d.ts
|
|
@@ -54,91 +54,80 @@ type Scalars = {
|
|
|
54
54
|
output: any;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
+
type UserOptionFieldsFragment = {
|
|
58
|
+
__typename: 'UserOption';
|
|
59
|
+
id: string;
|
|
60
|
+
optionId: any;
|
|
61
|
+
optionType: any;
|
|
62
|
+
strikeTick: number;
|
|
63
|
+
entryTick: number;
|
|
64
|
+
startTick: number;
|
|
65
|
+
strikePrice: any;
|
|
66
|
+
entryPrice: any;
|
|
67
|
+
expiresAt: any;
|
|
68
|
+
createdAt: any;
|
|
69
|
+
premium: any;
|
|
70
|
+
protocolFee: any;
|
|
71
|
+
realizedPayout: any;
|
|
72
|
+
liquiditiesAtOpen: Array<string>;
|
|
73
|
+
liquiditiesCurrent: Array<string>;
|
|
74
|
+
positionSizeAtOpen: any;
|
|
75
|
+
positionSizeCurrent: any;
|
|
76
|
+
fullyExercised: boolean;
|
|
77
|
+
owner?: {
|
|
78
|
+
__typename: 'TimelockMarketUser';
|
|
79
|
+
address: string;
|
|
80
|
+
} | null;
|
|
81
|
+
market?: {
|
|
82
|
+
__typename: 'TimelockMarket';
|
|
83
|
+
address: string;
|
|
84
|
+
} | null;
|
|
85
|
+
exerciseEvents: Array<{
|
|
86
|
+
__typename: 'ExerciseOptionEvent';
|
|
87
|
+
transactionHash: string;
|
|
88
|
+
}>;
|
|
89
|
+
mintEvent?: {
|
|
90
|
+
__typename: 'MintOptionEvent';
|
|
91
|
+
transactionHash: string;
|
|
92
|
+
} | null;
|
|
93
|
+
};
|
|
57
94
|
type GetActiveUserOptionsQueryVariables = Exact<{
|
|
58
|
-
|
|
95
|
+
userAddr: Scalars['String']['input'];
|
|
59
96
|
}>;
|
|
60
97
|
type GetActiveUserOptionsQuery = {
|
|
61
98
|
__typename: 'query_root';
|
|
62
99
|
UserOption: Array<{
|
|
63
100
|
__typename: 'UserOption';
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
protocolFee: any;
|
|
76
|
-
realizedPayout: any;
|
|
77
|
-
liquiditiesAtOpen: Array<string>;
|
|
78
|
-
liquiditiesCurrent: Array<string>;
|
|
79
|
-
positionSizeAtOpen: any;
|
|
80
|
-
positionSizeCurrent: any;
|
|
81
|
-
fullyExercised: boolean;
|
|
82
|
-
owner?: {
|
|
83
|
-
__typename: 'TimelockMarketUser';
|
|
84
|
-
address: string;
|
|
85
|
-
} | null;
|
|
86
|
-
market?: {
|
|
87
|
-
__typename: 'TimelockMarket';
|
|
88
|
-
address: string;
|
|
89
|
-
} | null;
|
|
90
|
-
exerciseEvents: Array<{
|
|
91
|
-
__typename: 'ExerciseOptionEvent';
|
|
92
|
-
transactionHash: string;
|
|
93
|
-
}>;
|
|
94
|
-
mintEvent?: {
|
|
95
|
-
__typename: 'MintOptionEvent';
|
|
96
|
-
transactionHash: string;
|
|
97
|
-
} | null;
|
|
98
|
-
}>;
|
|
101
|
+
} & UserOptionFieldsFragment>;
|
|
102
|
+
};
|
|
103
|
+
type GetActiveUserOptionsByMarketQueryVariables = Exact<{
|
|
104
|
+
userAddr: Scalars['String']['input'];
|
|
105
|
+
marketAddr: Scalars['String']['input'];
|
|
106
|
+
}>;
|
|
107
|
+
type GetActiveUserOptionsByMarketQuery = {
|
|
108
|
+
__typename: 'query_root';
|
|
109
|
+
UserOption: Array<{
|
|
110
|
+
__typename: 'UserOption';
|
|
111
|
+
} & UserOptionFieldsFragment>;
|
|
99
112
|
};
|
|
100
113
|
type GetClosedUserOptionsQueryVariables = Exact<{
|
|
101
|
-
|
|
114
|
+
userAddr: Scalars['String']['input'];
|
|
102
115
|
}>;
|
|
103
116
|
type GetClosedUserOptionsQuery = {
|
|
104
117
|
__typename: 'query_root';
|
|
105
118
|
UserOption: Array<{
|
|
106
119
|
__typename: 'UserOption';
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
protocolFee: any;
|
|
119
|
-
realizedPayout: any;
|
|
120
|
-
liquiditiesAtOpen: Array<string>;
|
|
121
|
-
liquiditiesCurrent: Array<string>;
|
|
122
|
-
positionSizeAtOpen: any;
|
|
123
|
-
positionSizeCurrent: any;
|
|
124
|
-
fullyExercised: boolean;
|
|
125
|
-
owner?: {
|
|
126
|
-
__typename: 'TimelockMarketUser';
|
|
127
|
-
address: string;
|
|
128
|
-
} | null;
|
|
129
|
-
market?: {
|
|
130
|
-
__typename: 'TimelockMarket';
|
|
131
|
-
address: string;
|
|
132
|
-
} | null;
|
|
133
|
-
exerciseEvents: Array<{
|
|
134
|
-
__typename: 'ExerciseOptionEvent';
|
|
135
|
-
transactionHash: string;
|
|
136
|
-
}>;
|
|
137
|
-
mintEvent?: {
|
|
138
|
-
__typename: 'MintOptionEvent';
|
|
139
|
-
transactionHash: string;
|
|
140
|
-
} | null;
|
|
141
|
-
}>;
|
|
120
|
+
} & UserOptionFieldsFragment>;
|
|
121
|
+
};
|
|
122
|
+
type GetClosedUserOptionsByMarketQueryVariables = Exact<{
|
|
123
|
+
userAddr: Scalars['String']['input'];
|
|
124
|
+
marketAddr: Scalars['String']['input'];
|
|
125
|
+
}>;
|
|
126
|
+
type GetClosedUserOptionsByMarketQuery = {
|
|
127
|
+
__typename: 'query_root';
|
|
128
|
+
UserOption: Array<{
|
|
129
|
+
__typename: 'UserOption';
|
|
130
|
+
} & UserOptionFieldsFragment>;
|
|
142
131
|
};
|
|
143
132
|
type GetMarketDataQueryVariables = Exact<{
|
|
144
133
|
marketAddr: Scalars['String']['input'];
|
|
@@ -188,7 +177,9 @@ type GetUserMarketOperatorsQuery = {
|
|
|
188
177
|
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
189
178
|
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
190
179
|
GetActiveUserOptions(variables: GetActiveUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsQuery>;
|
|
180
|
+
GetActiveUserOptionsByMarket(variables: GetActiveUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsByMarketQuery>;
|
|
191
181
|
GetClosedUserOptions(variables: GetClosedUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsQuery>;
|
|
182
|
+
GetClosedUserOptionsByMarket(variables: GetClosedUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsByMarketQuery>;
|
|
192
183
|
GetMarketData(variables: GetMarketDataQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMarketDataQuery>;
|
|
193
184
|
GetUserMarketOperators(variables: GetUserMarketOperatorsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUserMarketOperatorsQuery>;
|
|
194
185
|
};
|
|
@@ -215,7 +206,7 @@ declare const useTimelockConfig: () => TimelockMarketContextValue;
|
|
|
215
206
|
//#endregion
|
|
216
207
|
//#region src/hooks/market/useUserOptions.d.ts
|
|
217
208
|
type OptionData = ReturnType<typeof useUserOptions>['data'][0];
|
|
218
|
-
declare const useUserOptions: (
|
|
209
|
+
declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", active?: boolean) => {
|
|
219
210
|
error: Error;
|
|
220
211
|
isError: true;
|
|
221
212
|
isPending: false;
|
|
@@ -238,7 +229,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
238
229
|
isRefetching: boolean;
|
|
239
230
|
isStale: boolean;
|
|
240
231
|
isEnabled: boolean;
|
|
241
|
-
refetch: (options?:
|
|
232
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
242
233
|
optionId: bigint;
|
|
243
234
|
marketAddr: Address;
|
|
244
235
|
ownerAddr: Address;
|
|
@@ -277,7 +268,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
277
268
|
transactionHash: string;
|
|
278
269
|
} | null;
|
|
279
270
|
}[], Error>>;
|
|
280
|
-
fetchStatus:
|
|
271
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
281
272
|
promise: Promise<{
|
|
282
273
|
optionId: bigint;
|
|
283
274
|
marketAddr: Address;
|
|
@@ -379,7 +370,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
379
370
|
isRefetching: boolean;
|
|
380
371
|
isStale: boolean;
|
|
381
372
|
isEnabled: boolean;
|
|
382
|
-
refetch: (options?:
|
|
373
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
383
374
|
optionId: bigint;
|
|
384
375
|
marketAddr: Address;
|
|
385
376
|
ownerAddr: Address;
|
|
@@ -418,7 +409,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
418
409
|
transactionHash: string;
|
|
419
410
|
} | null;
|
|
420
411
|
}[], Error>>;
|
|
421
|
-
fetchStatus:
|
|
412
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
422
413
|
promise: Promise<{
|
|
423
414
|
optionId: bigint;
|
|
424
415
|
marketAddr: Address;
|
|
@@ -520,7 +511,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
520
511
|
isRefetching: boolean;
|
|
521
512
|
isStale: boolean;
|
|
522
513
|
isEnabled: boolean;
|
|
523
|
-
refetch: (options?:
|
|
514
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
524
515
|
optionId: bigint;
|
|
525
516
|
marketAddr: Address;
|
|
526
517
|
ownerAddr: Address;
|
|
@@ -559,7 +550,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
559
550
|
transactionHash: string;
|
|
560
551
|
} | null;
|
|
561
552
|
}[], Error>>;
|
|
562
|
-
fetchStatus:
|
|
553
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
563
554
|
promise: Promise<{
|
|
564
555
|
optionId: bigint;
|
|
565
556
|
marketAddr: Address;
|
|
@@ -661,7 +652,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
661
652
|
isRefetching: boolean;
|
|
662
653
|
isStale: boolean;
|
|
663
654
|
isEnabled: boolean;
|
|
664
|
-
refetch: (options?:
|
|
655
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
665
656
|
optionId: bigint;
|
|
666
657
|
marketAddr: Address;
|
|
667
658
|
ownerAddr: Address;
|
|
@@ -700,7 +691,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
700
691
|
transactionHash: string;
|
|
701
692
|
} | null;
|
|
702
693
|
}[], Error>>;
|
|
703
|
-
fetchStatus:
|
|
694
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
704
695
|
promise: Promise<{
|
|
705
696
|
optionId: bigint;
|
|
706
697
|
marketAddr: Address;
|
|
@@ -802,7 +793,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
802
793
|
isRefetching: boolean;
|
|
803
794
|
isStale: boolean;
|
|
804
795
|
isEnabled: boolean;
|
|
805
|
-
refetch: (options?:
|
|
796
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
806
797
|
optionId: bigint;
|
|
807
798
|
marketAddr: Address;
|
|
808
799
|
ownerAddr: Address;
|
|
@@ -841,7 +832,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
841
832
|
transactionHash: string;
|
|
842
833
|
} | null;
|
|
843
834
|
}[], Error>>;
|
|
844
|
-
fetchStatus:
|
|
835
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
845
836
|
promise: Promise<{
|
|
846
837
|
optionId: bigint;
|
|
847
838
|
marketAddr: Address;
|
|
@@ -943,7 +934,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
943
934
|
isRefetching: boolean;
|
|
944
935
|
isStale: boolean;
|
|
945
936
|
isEnabled: boolean;
|
|
946
|
-
refetch: (options?:
|
|
937
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
947
938
|
optionId: bigint;
|
|
948
939
|
marketAddr: Address;
|
|
949
940
|
ownerAddr: Address;
|
|
@@ -982,7 +973,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
982
973
|
transactionHash: string;
|
|
983
974
|
} | null;
|
|
984
975
|
}[], Error>>;
|
|
985
|
-
fetchStatus:
|
|
976
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
986
977
|
promise: Promise<{
|
|
987
978
|
optionId: bigint;
|
|
988
979
|
marketAddr: Address;
|
|
@@ -1062,7 +1053,7 @@ declare const useUserOptions: (user?: Address, active?: boolean) => {
|
|
|
1062
1053
|
} | null;
|
|
1063
1054
|
}[];
|
|
1064
1055
|
};
|
|
1065
|
-
declare const useActiveUserOptions: (
|
|
1056
|
+
declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => {
|
|
1066
1057
|
error: Error;
|
|
1067
1058
|
isError: true;
|
|
1068
1059
|
isPending: false;
|
|
@@ -1085,7 +1076,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1085
1076
|
isRefetching: boolean;
|
|
1086
1077
|
isStale: boolean;
|
|
1087
1078
|
isEnabled: boolean;
|
|
1088
|
-
refetch: (options?:
|
|
1079
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1089
1080
|
optionId: bigint;
|
|
1090
1081
|
marketAddr: Address;
|
|
1091
1082
|
ownerAddr: Address;
|
|
@@ -1124,7 +1115,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1124
1115
|
transactionHash: string;
|
|
1125
1116
|
} | null;
|
|
1126
1117
|
}[], Error>>;
|
|
1127
|
-
fetchStatus:
|
|
1118
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1128
1119
|
promise: Promise<{
|
|
1129
1120
|
optionId: bigint;
|
|
1130
1121
|
marketAddr: Address;
|
|
@@ -1226,7 +1217,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1226
1217
|
isRefetching: boolean;
|
|
1227
1218
|
isStale: boolean;
|
|
1228
1219
|
isEnabled: boolean;
|
|
1229
|
-
refetch: (options?:
|
|
1220
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1230
1221
|
optionId: bigint;
|
|
1231
1222
|
marketAddr: Address;
|
|
1232
1223
|
ownerAddr: Address;
|
|
@@ -1265,7 +1256,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1265
1256
|
transactionHash: string;
|
|
1266
1257
|
} | null;
|
|
1267
1258
|
}[], Error>>;
|
|
1268
|
-
fetchStatus:
|
|
1259
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1269
1260
|
promise: Promise<{
|
|
1270
1261
|
optionId: bigint;
|
|
1271
1262
|
marketAddr: Address;
|
|
@@ -1367,7 +1358,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1367
1358
|
isRefetching: boolean;
|
|
1368
1359
|
isStale: boolean;
|
|
1369
1360
|
isEnabled: boolean;
|
|
1370
|
-
refetch: (options?:
|
|
1361
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1371
1362
|
optionId: bigint;
|
|
1372
1363
|
marketAddr: Address;
|
|
1373
1364
|
ownerAddr: Address;
|
|
@@ -1406,7 +1397,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1406
1397
|
transactionHash: string;
|
|
1407
1398
|
} | null;
|
|
1408
1399
|
}[], Error>>;
|
|
1409
|
-
fetchStatus:
|
|
1400
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1410
1401
|
promise: Promise<{
|
|
1411
1402
|
optionId: bigint;
|
|
1412
1403
|
marketAddr: Address;
|
|
@@ -1508,7 +1499,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1508
1499
|
isRefetching: boolean;
|
|
1509
1500
|
isStale: boolean;
|
|
1510
1501
|
isEnabled: boolean;
|
|
1511
|
-
refetch: (options?:
|
|
1502
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1512
1503
|
optionId: bigint;
|
|
1513
1504
|
marketAddr: Address;
|
|
1514
1505
|
ownerAddr: Address;
|
|
@@ -1547,7 +1538,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1547
1538
|
transactionHash: string;
|
|
1548
1539
|
} | null;
|
|
1549
1540
|
}[], Error>>;
|
|
1550
|
-
fetchStatus:
|
|
1541
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1551
1542
|
promise: Promise<{
|
|
1552
1543
|
optionId: bigint;
|
|
1553
1544
|
marketAddr: Address;
|
|
@@ -1649,7 +1640,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1649
1640
|
isRefetching: boolean;
|
|
1650
1641
|
isStale: boolean;
|
|
1651
1642
|
isEnabled: boolean;
|
|
1652
|
-
refetch: (options?:
|
|
1643
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1653
1644
|
optionId: bigint;
|
|
1654
1645
|
marketAddr: Address;
|
|
1655
1646
|
ownerAddr: Address;
|
|
@@ -1688,7 +1679,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1688
1679
|
transactionHash: string;
|
|
1689
1680
|
} | null;
|
|
1690
1681
|
}[], Error>>;
|
|
1691
|
-
fetchStatus:
|
|
1682
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1692
1683
|
promise: Promise<{
|
|
1693
1684
|
optionId: bigint;
|
|
1694
1685
|
marketAddr: Address;
|
|
@@ -1790,7 +1781,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1790
1781
|
isRefetching: boolean;
|
|
1791
1782
|
isStale: boolean;
|
|
1792
1783
|
isEnabled: boolean;
|
|
1793
|
-
refetch: (options?:
|
|
1784
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1794
1785
|
optionId: bigint;
|
|
1795
1786
|
marketAddr: Address;
|
|
1796
1787
|
ownerAddr: Address;
|
|
@@ -1829,7 +1820,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1829
1820
|
transactionHash: string;
|
|
1830
1821
|
} | null;
|
|
1831
1822
|
}[], Error>>;
|
|
1832
|
-
fetchStatus:
|
|
1823
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1833
1824
|
promise: Promise<{
|
|
1834
1825
|
optionId: bigint;
|
|
1835
1826
|
marketAddr: Address;
|
|
@@ -1909,7 +1900,7 @@ declare const useActiveUserOptions: (user?: Address) => {
|
|
|
1909
1900
|
} | null;
|
|
1910
1901
|
}[];
|
|
1911
1902
|
};
|
|
1912
|
-
declare const useClosedUserOptions: (
|
|
1903
|
+
declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address | "*") => {
|
|
1913
1904
|
error: Error;
|
|
1914
1905
|
isError: true;
|
|
1915
1906
|
isPending: false;
|
|
@@ -1932,7 +1923,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
1932
1923
|
isRefetching: boolean;
|
|
1933
1924
|
isStale: boolean;
|
|
1934
1925
|
isEnabled: boolean;
|
|
1935
|
-
refetch: (options?:
|
|
1926
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
1936
1927
|
optionId: bigint;
|
|
1937
1928
|
marketAddr: Address;
|
|
1938
1929
|
ownerAddr: Address;
|
|
@@ -1971,7 +1962,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
1971
1962
|
transactionHash: string;
|
|
1972
1963
|
} | null;
|
|
1973
1964
|
}[], Error>>;
|
|
1974
|
-
fetchStatus:
|
|
1965
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
1975
1966
|
promise: Promise<{
|
|
1976
1967
|
optionId: bigint;
|
|
1977
1968
|
marketAddr: Address;
|
|
@@ -2073,7 +2064,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2073
2064
|
isRefetching: boolean;
|
|
2074
2065
|
isStale: boolean;
|
|
2075
2066
|
isEnabled: boolean;
|
|
2076
|
-
refetch: (options?:
|
|
2067
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2077
2068
|
optionId: bigint;
|
|
2078
2069
|
marketAddr: Address;
|
|
2079
2070
|
ownerAddr: Address;
|
|
@@ -2112,7 +2103,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2112
2103
|
transactionHash: string;
|
|
2113
2104
|
} | null;
|
|
2114
2105
|
}[], Error>>;
|
|
2115
|
-
fetchStatus:
|
|
2106
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2116
2107
|
promise: Promise<{
|
|
2117
2108
|
optionId: bigint;
|
|
2118
2109
|
marketAddr: Address;
|
|
@@ -2214,7 +2205,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2214
2205
|
isRefetching: boolean;
|
|
2215
2206
|
isStale: boolean;
|
|
2216
2207
|
isEnabled: boolean;
|
|
2217
|
-
refetch: (options?:
|
|
2208
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2218
2209
|
optionId: bigint;
|
|
2219
2210
|
marketAddr: Address;
|
|
2220
2211
|
ownerAddr: Address;
|
|
@@ -2253,7 +2244,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2253
2244
|
transactionHash: string;
|
|
2254
2245
|
} | null;
|
|
2255
2246
|
}[], Error>>;
|
|
2256
|
-
fetchStatus:
|
|
2247
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2257
2248
|
promise: Promise<{
|
|
2258
2249
|
optionId: bigint;
|
|
2259
2250
|
marketAddr: Address;
|
|
@@ -2355,7 +2346,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2355
2346
|
isRefetching: boolean;
|
|
2356
2347
|
isStale: boolean;
|
|
2357
2348
|
isEnabled: boolean;
|
|
2358
|
-
refetch: (options?:
|
|
2349
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2359
2350
|
optionId: bigint;
|
|
2360
2351
|
marketAddr: Address;
|
|
2361
2352
|
ownerAddr: Address;
|
|
@@ -2394,7 +2385,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2394
2385
|
transactionHash: string;
|
|
2395
2386
|
} | null;
|
|
2396
2387
|
}[], Error>>;
|
|
2397
|
-
fetchStatus:
|
|
2388
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2398
2389
|
promise: Promise<{
|
|
2399
2390
|
optionId: bigint;
|
|
2400
2391
|
marketAddr: Address;
|
|
@@ -2496,7 +2487,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2496
2487
|
isRefetching: boolean;
|
|
2497
2488
|
isStale: boolean;
|
|
2498
2489
|
isEnabled: boolean;
|
|
2499
|
-
refetch: (options?:
|
|
2490
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2500
2491
|
optionId: bigint;
|
|
2501
2492
|
marketAddr: Address;
|
|
2502
2493
|
ownerAddr: Address;
|
|
@@ -2535,7 +2526,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2535
2526
|
transactionHash: string;
|
|
2536
2527
|
} | null;
|
|
2537
2528
|
}[], Error>>;
|
|
2538
|
-
fetchStatus:
|
|
2529
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2539
2530
|
promise: Promise<{
|
|
2540
2531
|
optionId: bigint;
|
|
2541
2532
|
marketAddr: Address;
|
|
@@ -2637,7 +2628,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2637
2628
|
isRefetching: boolean;
|
|
2638
2629
|
isStale: boolean;
|
|
2639
2630
|
isEnabled: boolean;
|
|
2640
|
-
refetch: (options?:
|
|
2631
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2641
2632
|
optionId: bigint;
|
|
2642
2633
|
marketAddr: Address;
|
|
2643
2634
|
ownerAddr: Address;
|
|
@@ -2676,7 +2667,7 @@ declare const useClosedUserOptions: (user?: Address) => {
|
|
|
2676
2667
|
transactionHash: string;
|
|
2677
2668
|
} | null;
|
|
2678
2669
|
}[], Error>>;
|
|
2679
|
-
fetchStatus:
|
|
2670
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2680
2671
|
promise: Promise<{
|
|
2681
2672
|
optionId: bigint;
|
|
2682
2673
|
marketAddr: Address;
|
|
@@ -2860,7 +2851,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
2860
2851
|
isRefetching: boolean;
|
|
2861
2852
|
isStale: boolean;
|
|
2862
2853
|
isEnabled: boolean;
|
|
2863
|
-
refetch: (options?:
|
|
2854
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2864
2855
|
spendingApproval: bigint;
|
|
2865
2856
|
operatorAddr: string;
|
|
2866
2857
|
__typename: "UserMarketOperator";
|
|
@@ -2874,7 +2865,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
2874
2865
|
address: string;
|
|
2875
2866
|
} | null;
|
|
2876
2867
|
}[] | undefined, Error>>;
|
|
2877
|
-
fetchStatus:
|
|
2868
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2878
2869
|
promise: Promise<{
|
|
2879
2870
|
spendingApproval: bigint;
|
|
2880
2871
|
operatorAddr: string;
|
|
@@ -2926,7 +2917,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
2926
2917
|
isRefetching: boolean;
|
|
2927
2918
|
isStale: boolean;
|
|
2928
2919
|
isEnabled: boolean;
|
|
2929
|
-
refetch: (options?:
|
|
2920
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2930
2921
|
spendingApproval: bigint;
|
|
2931
2922
|
operatorAddr: string;
|
|
2932
2923
|
__typename: "UserMarketOperator";
|
|
@@ -2940,7 +2931,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
2940
2931
|
address: string;
|
|
2941
2932
|
} | null;
|
|
2942
2933
|
}[] | undefined, Error>>;
|
|
2943
|
-
fetchStatus:
|
|
2934
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
2944
2935
|
promise: Promise<{
|
|
2945
2936
|
spendingApproval: bigint;
|
|
2946
2937
|
operatorAddr: string;
|
|
@@ -2992,7 +2983,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
2992
2983
|
isRefetching: boolean;
|
|
2993
2984
|
isStale: boolean;
|
|
2994
2985
|
isEnabled: boolean;
|
|
2995
|
-
refetch: (options?:
|
|
2986
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
2996
2987
|
spendingApproval: bigint;
|
|
2997
2988
|
operatorAddr: string;
|
|
2998
2989
|
__typename: "UserMarketOperator";
|
|
@@ -3006,7 +2997,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3006
2997
|
address: string;
|
|
3007
2998
|
} | null;
|
|
3008
2999
|
}[] | undefined, Error>>;
|
|
3009
|
-
fetchStatus:
|
|
3000
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3010
3001
|
promise: Promise<{
|
|
3011
3002
|
spendingApproval: bigint;
|
|
3012
3003
|
operatorAddr: string;
|
|
@@ -3058,7 +3049,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3058
3049
|
isRefetching: boolean;
|
|
3059
3050
|
isStale: boolean;
|
|
3060
3051
|
isEnabled: boolean;
|
|
3061
|
-
refetch: (options?:
|
|
3052
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
3062
3053
|
spendingApproval: bigint;
|
|
3063
3054
|
operatorAddr: string;
|
|
3064
3055
|
__typename: "UserMarketOperator";
|
|
@@ -3072,7 +3063,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3072
3063
|
address: string;
|
|
3073
3064
|
} | null;
|
|
3074
3065
|
}[] | undefined, Error>>;
|
|
3075
|
-
fetchStatus:
|
|
3066
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3076
3067
|
promise: Promise<{
|
|
3077
3068
|
spendingApproval: bigint;
|
|
3078
3069
|
operatorAddr: string;
|
|
@@ -3124,7 +3115,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3124
3115
|
isRefetching: boolean;
|
|
3125
3116
|
isStale: boolean;
|
|
3126
3117
|
isEnabled: boolean;
|
|
3127
|
-
refetch: (options?:
|
|
3118
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
3128
3119
|
spendingApproval: bigint;
|
|
3129
3120
|
operatorAddr: string;
|
|
3130
3121
|
__typename: "UserMarketOperator";
|
|
@@ -3138,7 +3129,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3138
3129
|
address: string;
|
|
3139
3130
|
} | null;
|
|
3140
3131
|
}[] | undefined, Error>>;
|
|
3141
|
-
fetchStatus:
|
|
3132
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3142
3133
|
promise: Promise<{
|
|
3143
3134
|
spendingApproval: bigint;
|
|
3144
3135
|
operatorAddr: string;
|
|
@@ -3190,7 +3181,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3190
3181
|
isRefetching: boolean;
|
|
3191
3182
|
isStale: boolean;
|
|
3192
3183
|
isEnabled: boolean;
|
|
3193
|
-
refetch: (options?:
|
|
3184
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
3194
3185
|
spendingApproval: bigint;
|
|
3195
3186
|
operatorAddr: string;
|
|
3196
3187
|
__typename: "UserMarketOperator";
|
|
@@ -3204,7 +3195,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
3204
3195
|
address: string;
|
|
3205
3196
|
} | null;
|
|
3206
3197
|
}[] | undefined, Error>>;
|
|
3207
|
-
fetchStatus:
|
|
3198
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3208
3199
|
promise: Promise<{
|
|
3209
3200
|
spendingApproval: bigint;
|
|
3210
3201
|
operatorAddr: string;
|
|
@@ -3317,7 +3308,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3317
3308
|
isRefetching: boolean;
|
|
3318
3309
|
isStale: boolean;
|
|
3319
3310
|
isEnabled: boolean;
|
|
3320
|
-
refetch: (options?:
|
|
3311
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3321
3312
|
tickLower: number;
|
|
3322
3313
|
tickUpper: number;
|
|
3323
3314
|
prevTickLower: number;
|
|
@@ -3328,7 +3319,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3328
3319
|
borrowedAmount0: bigint;
|
|
3329
3320
|
borrowedAmount1: bigint;
|
|
3330
3321
|
}[], viem249.ReadContractErrorType>>;
|
|
3331
|
-
fetchStatus:
|
|
3322
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3332
3323
|
promise: Promise<readonly {
|
|
3333
3324
|
tickLower: number;
|
|
3334
3325
|
tickUpper: number;
|
|
@@ -3340,7 +3331,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3340
3331
|
borrowedAmount0: bigint;
|
|
3341
3332
|
borrowedAmount1: bigint;
|
|
3342
3333
|
}[]>;
|
|
3343
|
-
queryKey:
|
|
3334
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3344
3335
|
data: readonly {
|
|
3345
3336
|
tickLower: number;
|
|
3346
3337
|
tickUpper: number;
|
|
@@ -3375,7 +3366,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3375
3366
|
isRefetching: boolean;
|
|
3376
3367
|
isStale: boolean;
|
|
3377
3368
|
isEnabled: boolean;
|
|
3378
|
-
refetch: (options?:
|
|
3369
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3379
3370
|
tickLower: number;
|
|
3380
3371
|
tickUpper: number;
|
|
3381
3372
|
prevTickLower: number;
|
|
@@ -3386,7 +3377,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3386
3377
|
borrowedAmount0: bigint;
|
|
3387
3378
|
borrowedAmount1: bigint;
|
|
3388
3379
|
}[], viem249.ReadContractErrorType>>;
|
|
3389
|
-
fetchStatus:
|
|
3380
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3390
3381
|
promise: Promise<readonly {
|
|
3391
3382
|
tickLower: number;
|
|
3392
3383
|
tickUpper: number;
|
|
@@ -3398,7 +3389,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3398
3389
|
borrowedAmount0: bigint;
|
|
3399
3390
|
borrowedAmount1: bigint;
|
|
3400
3391
|
}[]>;
|
|
3401
|
-
queryKey:
|
|
3392
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3402
3393
|
data: readonly {
|
|
3403
3394
|
tickLower: number;
|
|
3404
3395
|
tickUpper: number;
|
|
@@ -3433,7 +3424,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3433
3424
|
isRefetching: boolean;
|
|
3434
3425
|
isStale: boolean;
|
|
3435
3426
|
isEnabled: boolean;
|
|
3436
|
-
refetch: (options?:
|
|
3427
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3437
3428
|
tickLower: number;
|
|
3438
3429
|
tickUpper: number;
|
|
3439
3430
|
prevTickLower: number;
|
|
@@ -3444,7 +3435,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3444
3435
|
borrowedAmount0: bigint;
|
|
3445
3436
|
borrowedAmount1: bigint;
|
|
3446
3437
|
}[], viem249.ReadContractErrorType>>;
|
|
3447
|
-
fetchStatus:
|
|
3438
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3448
3439
|
promise: Promise<readonly {
|
|
3449
3440
|
tickLower: number;
|
|
3450
3441
|
tickUpper: number;
|
|
@@ -3456,7 +3447,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3456
3447
|
borrowedAmount0: bigint;
|
|
3457
3448
|
borrowedAmount1: bigint;
|
|
3458
3449
|
}[]>;
|
|
3459
|
-
queryKey:
|
|
3450
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3460
3451
|
data: readonly {
|
|
3461
3452
|
tickLower: number;
|
|
3462
3453
|
tickUpper: number;
|
|
@@ -3491,7 +3482,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3491
3482
|
isRefetching: boolean;
|
|
3492
3483
|
isStale: boolean;
|
|
3493
3484
|
isEnabled: boolean;
|
|
3494
|
-
refetch: (options?:
|
|
3485
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3495
3486
|
tickLower: number;
|
|
3496
3487
|
tickUpper: number;
|
|
3497
3488
|
prevTickLower: number;
|
|
@@ -3502,7 +3493,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3502
3493
|
borrowedAmount0: bigint;
|
|
3503
3494
|
borrowedAmount1: bigint;
|
|
3504
3495
|
}[], viem249.ReadContractErrorType>>;
|
|
3505
|
-
fetchStatus:
|
|
3496
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3506
3497
|
promise: Promise<readonly {
|
|
3507
3498
|
tickLower: number;
|
|
3508
3499
|
tickUpper: number;
|
|
@@ -3514,7 +3505,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3514
3505
|
borrowedAmount0: bigint;
|
|
3515
3506
|
borrowedAmount1: bigint;
|
|
3516
3507
|
}[]>;
|
|
3517
|
-
queryKey:
|
|
3508
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3518
3509
|
data: readonly {
|
|
3519
3510
|
tickLower: number;
|
|
3520
3511
|
tickUpper: number;
|
|
@@ -3549,7 +3540,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3549
3540
|
isRefetching: boolean;
|
|
3550
3541
|
isStale: boolean;
|
|
3551
3542
|
isEnabled: boolean;
|
|
3552
|
-
refetch: (options?:
|
|
3543
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3553
3544
|
tickLower: number;
|
|
3554
3545
|
tickUpper: number;
|
|
3555
3546
|
prevTickLower: number;
|
|
@@ -3560,7 +3551,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3560
3551
|
borrowedAmount0: bigint;
|
|
3561
3552
|
borrowedAmount1: bigint;
|
|
3562
3553
|
}[], viem249.ReadContractErrorType>>;
|
|
3563
|
-
fetchStatus:
|
|
3554
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3564
3555
|
promise: Promise<readonly {
|
|
3565
3556
|
tickLower: number;
|
|
3566
3557
|
tickUpper: number;
|
|
@@ -3572,7 +3563,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3572
3563
|
borrowedAmount0: bigint;
|
|
3573
3564
|
borrowedAmount1: bigint;
|
|
3574
3565
|
}[]>;
|
|
3575
|
-
queryKey:
|
|
3566
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3576
3567
|
data: readonly {
|
|
3577
3568
|
tickLower: number;
|
|
3578
3569
|
tickUpper: number;
|
|
@@ -3607,7 +3598,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3607
3598
|
isRefetching: boolean;
|
|
3608
3599
|
isStale: boolean;
|
|
3609
3600
|
isEnabled: boolean;
|
|
3610
|
-
refetch: (options?:
|
|
3601
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
3611
3602
|
tickLower: number;
|
|
3612
3603
|
tickUpper: number;
|
|
3613
3604
|
prevTickLower: number;
|
|
@@ -3618,7 +3609,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3618
3609
|
borrowedAmount0: bigint;
|
|
3619
3610
|
borrowedAmount1: bigint;
|
|
3620
3611
|
}[], viem249.ReadContractErrorType>>;
|
|
3621
|
-
fetchStatus:
|
|
3612
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
3622
3613
|
promise: Promise<readonly {
|
|
3623
3614
|
tickLower: number;
|
|
3624
3615
|
tickUpper: number;
|
|
@@ -3630,7 +3621,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
3630
3621
|
borrowedAmount0: bigint;
|
|
3631
3622
|
borrowedAmount1: bigint;
|
|
3632
3623
|
}[]>;
|
|
3633
|
-
queryKey:
|
|
3624
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
3634
3625
|
data: readonly {
|
|
3635
3626
|
tickLower: number;
|
|
3636
3627
|
tickUpper: number;
|
|
@@ -3690,7 +3681,7 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
3690
3681
|
borrowedAmount0: Amount;
|
|
3691
3682
|
borrowedAmount1: Amount;
|
|
3692
3683
|
blocksCount: bigint;
|
|
3693
|
-
refetch: (options?:
|
|
3684
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem249.ReadContractErrorType>>;
|
|
3694
3685
|
};
|
|
3695
3686
|
//#endregion
|
|
3696
3687
|
//#region src/hooks/useLens.d.ts
|
|
@@ -30012,5 +30003,14 @@ declare const useLens: () => {
|
|
|
30012
30003
|
} | undefined;
|
|
30013
30004
|
};
|
|
30014
30005
|
//#endregion
|
|
30015
|
-
|
|
30006
|
+
//#region src/hooks/useApproval.d.ts
|
|
30007
|
+
declare const useApproval: () => {
|
|
30008
|
+
askForApproval: (tokenAddress: Address, spenderAddress: Address, amount: bigint) => Promise<void>;
|
|
30009
|
+
hash: `0x${string}` | undefined;
|
|
30010
|
+
isPending: boolean;
|
|
30011
|
+
error: _wagmi_core0.WriteContractErrorType | null;
|
|
30012
|
+
reset: () => void;
|
|
30013
|
+
};
|
|
30014
|
+
//#endregion
|
|
30015
|
+
export { LiquidityBlockData, OptionData, TimelockMarketProvider, UniswapPoolData, batchGetAmountsFromLiquidity, useActiveUserOptions, useApproval, useBurnLiquidity, useClosedUserOptions, useCurrentMarket, useCurrentPrice, useCurrentTick, useExerciseOption, useExtendOption, useLens, useLiquidityBlocks, useMarketData, useMaxPositionSize, useMintLiquidity, useMintOption, useOptionPnl, useOptionPremium, usePoolData, usePriceAtTick, usePriceHistory, useSetOperatorPerms, useTimelockConfig, useUserOperators, useVaultData, useVaultTVL };
|
|
30016
30016
|
//# sourceMappingURL=client.d.cts.map
|