timelock-sdk 0.0.104 → 0.0.106
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-DnAemTJq.d.cts → client-DlkfUDwU.d.cts} +1033 -112
- package/dist/{client-BV_X9Rk7.d.ts → client-cOGBr2Ca.d.ts} +1084 -163
- package/dist/client.cjs +34 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +36 -6
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import { Address, Client, GetContractReturnType, Hex, PublicClient } from "viem"
|
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
5
5
|
import "graphql";
|
|
6
6
|
import { GraphQLClient, RequestOptions } from "graphql-request";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
8
8
|
import { NonUndefinedGuard } from "@tanstack/react-query";
|
|
9
|
-
import * as
|
|
9
|
+
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
10
10
|
import Big from "big.js";
|
|
11
11
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
12
12
|
|
|
@@ -31872,7 +31872,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31872
31872
|
isRefetching: boolean;
|
|
31873
31873
|
isStale: boolean;
|
|
31874
31874
|
isEnabled: boolean;
|
|
31875
|
-
refetch: (options?:
|
|
31875
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
31876
31876
|
optionId: bigint;
|
|
31877
31877
|
marketAddr: Address;
|
|
31878
31878
|
ownerAddr: Address;
|
|
@@ -31903,7 +31903,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31903
31903
|
address: string;
|
|
31904
31904
|
} | null;
|
|
31905
31905
|
}[], Error>>;
|
|
31906
|
-
fetchStatus:
|
|
31906
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
31907
31907
|
promise: Promise<{
|
|
31908
31908
|
optionId: bigint;
|
|
31909
31909
|
marketAddr: Address;
|
|
@@ -31989,7 +31989,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
31989
31989
|
isRefetching: boolean;
|
|
31990
31990
|
isStale: boolean;
|
|
31991
31991
|
isEnabled: boolean;
|
|
31992
|
-
refetch: (options?:
|
|
31992
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
31993
31993
|
optionId: bigint;
|
|
31994
31994
|
marketAddr: Address;
|
|
31995
31995
|
ownerAddr: Address;
|
|
@@ -32020,7 +32020,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32020
32020
|
address: string;
|
|
32021
32021
|
} | null;
|
|
32022
32022
|
}[], Error>>;
|
|
32023
|
-
fetchStatus:
|
|
32023
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32024
32024
|
promise: Promise<{
|
|
32025
32025
|
optionId: bigint;
|
|
32026
32026
|
marketAddr: Address;
|
|
@@ -32106,7 +32106,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32106
32106
|
isRefetching: boolean;
|
|
32107
32107
|
isStale: boolean;
|
|
32108
32108
|
isEnabled: boolean;
|
|
32109
|
-
refetch: (options?:
|
|
32109
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32110
32110
|
optionId: bigint;
|
|
32111
32111
|
marketAddr: Address;
|
|
32112
32112
|
ownerAddr: Address;
|
|
@@ -32137,7 +32137,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32137
32137
|
address: string;
|
|
32138
32138
|
} | null;
|
|
32139
32139
|
}[], Error>>;
|
|
32140
|
-
fetchStatus:
|
|
32140
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32141
32141
|
promise: Promise<{
|
|
32142
32142
|
optionId: bigint;
|
|
32143
32143
|
marketAddr: Address;
|
|
@@ -32223,7 +32223,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32223
32223
|
isRefetching: boolean;
|
|
32224
32224
|
isStale: boolean;
|
|
32225
32225
|
isEnabled: boolean;
|
|
32226
|
-
refetch: (options?:
|
|
32226
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32227
32227
|
optionId: bigint;
|
|
32228
32228
|
marketAddr: Address;
|
|
32229
32229
|
ownerAddr: Address;
|
|
@@ -32254,7 +32254,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32254
32254
|
address: string;
|
|
32255
32255
|
} | null;
|
|
32256
32256
|
}[], Error>>;
|
|
32257
|
-
fetchStatus:
|
|
32257
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32258
32258
|
promise: Promise<{
|
|
32259
32259
|
optionId: bigint;
|
|
32260
32260
|
marketAddr: Address;
|
|
@@ -32340,7 +32340,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32340
32340
|
isRefetching: boolean;
|
|
32341
32341
|
isStale: boolean;
|
|
32342
32342
|
isEnabled: boolean;
|
|
32343
|
-
refetch: (options?:
|
|
32343
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32344
32344
|
optionId: bigint;
|
|
32345
32345
|
marketAddr: Address;
|
|
32346
32346
|
ownerAddr: Address;
|
|
@@ -32371,7 +32371,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32371
32371
|
address: string;
|
|
32372
32372
|
} | null;
|
|
32373
32373
|
}[], Error>>;
|
|
32374
|
-
fetchStatus:
|
|
32374
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32375
32375
|
promise: Promise<{
|
|
32376
32376
|
optionId: bigint;
|
|
32377
32377
|
marketAddr: Address;
|
|
@@ -32457,7 +32457,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32457
32457
|
isRefetching: boolean;
|
|
32458
32458
|
isStale: boolean;
|
|
32459
32459
|
isEnabled: boolean;
|
|
32460
|
-
refetch: (options?:
|
|
32460
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32461
32461
|
optionId: bigint;
|
|
32462
32462
|
marketAddr: Address;
|
|
32463
32463
|
ownerAddr: Address;
|
|
@@ -32488,7 +32488,7 @@ declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", a
|
|
|
32488
32488
|
address: string;
|
|
32489
32489
|
} | null;
|
|
32490
32490
|
}[], Error>>;
|
|
32491
|
-
fetchStatus:
|
|
32491
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32492
32492
|
promise: Promise<{
|
|
32493
32493
|
optionId: bigint;
|
|
32494
32494
|
marketAddr: Address;
|
|
@@ -32575,7 +32575,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32575
32575
|
isRefetching: boolean;
|
|
32576
32576
|
isStale: boolean;
|
|
32577
32577
|
isEnabled: boolean;
|
|
32578
|
-
refetch: (options?:
|
|
32578
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32579
32579
|
optionId: bigint;
|
|
32580
32580
|
marketAddr: Address;
|
|
32581
32581
|
ownerAddr: Address;
|
|
@@ -32606,7 +32606,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32606
32606
|
address: string;
|
|
32607
32607
|
} | null;
|
|
32608
32608
|
}[], Error>>;
|
|
32609
|
-
fetchStatus:
|
|
32609
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32610
32610
|
promise: Promise<{
|
|
32611
32611
|
optionId: bigint;
|
|
32612
32612
|
marketAddr: Address;
|
|
@@ -32692,7 +32692,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32692
32692
|
isRefetching: boolean;
|
|
32693
32693
|
isStale: boolean;
|
|
32694
32694
|
isEnabled: boolean;
|
|
32695
|
-
refetch: (options?:
|
|
32695
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32696
32696
|
optionId: bigint;
|
|
32697
32697
|
marketAddr: Address;
|
|
32698
32698
|
ownerAddr: Address;
|
|
@@ -32723,7 +32723,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32723
32723
|
address: string;
|
|
32724
32724
|
} | null;
|
|
32725
32725
|
}[], Error>>;
|
|
32726
|
-
fetchStatus:
|
|
32726
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32727
32727
|
promise: Promise<{
|
|
32728
32728
|
optionId: bigint;
|
|
32729
32729
|
marketAddr: Address;
|
|
@@ -32809,7 +32809,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32809
32809
|
isRefetching: boolean;
|
|
32810
32810
|
isStale: boolean;
|
|
32811
32811
|
isEnabled: boolean;
|
|
32812
|
-
refetch: (options?:
|
|
32812
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32813
32813
|
optionId: bigint;
|
|
32814
32814
|
marketAddr: Address;
|
|
32815
32815
|
ownerAddr: Address;
|
|
@@ -32840,7 +32840,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32840
32840
|
address: string;
|
|
32841
32841
|
} | null;
|
|
32842
32842
|
}[], Error>>;
|
|
32843
|
-
fetchStatus:
|
|
32843
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32844
32844
|
promise: Promise<{
|
|
32845
32845
|
optionId: bigint;
|
|
32846
32846
|
marketAddr: Address;
|
|
@@ -32926,7 +32926,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32926
32926
|
isRefetching: boolean;
|
|
32927
32927
|
isStale: boolean;
|
|
32928
32928
|
isEnabled: boolean;
|
|
32929
|
-
refetch: (options?:
|
|
32929
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
32930
32930
|
optionId: bigint;
|
|
32931
32931
|
marketAddr: Address;
|
|
32932
32932
|
ownerAddr: Address;
|
|
@@ -32957,7 +32957,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
32957
32957
|
address: string;
|
|
32958
32958
|
} | null;
|
|
32959
32959
|
}[], Error>>;
|
|
32960
|
-
fetchStatus:
|
|
32960
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
32961
32961
|
promise: Promise<{
|
|
32962
32962
|
optionId: bigint;
|
|
32963
32963
|
marketAddr: Address;
|
|
@@ -33043,7 +33043,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33043
33043
|
isRefetching: boolean;
|
|
33044
33044
|
isStale: boolean;
|
|
33045
33045
|
isEnabled: boolean;
|
|
33046
|
-
refetch: (options?:
|
|
33046
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33047
33047
|
optionId: bigint;
|
|
33048
33048
|
marketAddr: Address;
|
|
33049
33049
|
ownerAddr: Address;
|
|
@@ -33074,7 +33074,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33074
33074
|
address: string;
|
|
33075
33075
|
} | null;
|
|
33076
33076
|
}[], Error>>;
|
|
33077
|
-
fetchStatus:
|
|
33077
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33078
33078
|
promise: Promise<{
|
|
33079
33079
|
optionId: bigint;
|
|
33080
33080
|
marketAddr: Address;
|
|
@@ -33160,7 +33160,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33160
33160
|
isRefetching: boolean;
|
|
33161
33161
|
isStale: boolean;
|
|
33162
33162
|
isEnabled: boolean;
|
|
33163
|
-
refetch: (options?:
|
|
33163
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33164
33164
|
optionId: bigint;
|
|
33165
33165
|
marketAddr: Address;
|
|
33166
33166
|
ownerAddr: Address;
|
|
@@ -33191,7 +33191,7 @@ declare const useActiveUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33191
33191
|
address: string;
|
|
33192
33192
|
} | null;
|
|
33193
33193
|
}[], Error>>;
|
|
33194
|
-
fetchStatus:
|
|
33194
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33195
33195
|
promise: Promise<{
|
|
33196
33196
|
optionId: bigint;
|
|
33197
33197
|
marketAddr: Address;
|
|
@@ -33278,7 +33278,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33278
33278
|
isRefetching: boolean;
|
|
33279
33279
|
isStale: boolean;
|
|
33280
33280
|
isEnabled: boolean;
|
|
33281
|
-
refetch: (options?:
|
|
33281
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33282
33282
|
optionId: bigint;
|
|
33283
33283
|
marketAddr: Address;
|
|
33284
33284
|
ownerAddr: Address;
|
|
@@ -33309,7 +33309,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33309
33309
|
address: string;
|
|
33310
33310
|
} | null;
|
|
33311
33311
|
}[], Error>>;
|
|
33312
|
-
fetchStatus:
|
|
33312
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33313
33313
|
promise: Promise<{
|
|
33314
33314
|
optionId: bigint;
|
|
33315
33315
|
marketAddr: Address;
|
|
@@ -33395,7 +33395,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33395
33395
|
isRefetching: boolean;
|
|
33396
33396
|
isStale: boolean;
|
|
33397
33397
|
isEnabled: boolean;
|
|
33398
|
-
refetch: (options?:
|
|
33398
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33399
33399
|
optionId: bigint;
|
|
33400
33400
|
marketAddr: Address;
|
|
33401
33401
|
ownerAddr: Address;
|
|
@@ -33426,7 +33426,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33426
33426
|
address: string;
|
|
33427
33427
|
} | null;
|
|
33428
33428
|
}[], Error>>;
|
|
33429
|
-
fetchStatus:
|
|
33429
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33430
33430
|
promise: Promise<{
|
|
33431
33431
|
optionId: bigint;
|
|
33432
33432
|
marketAddr: Address;
|
|
@@ -33512,7 +33512,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33512
33512
|
isRefetching: boolean;
|
|
33513
33513
|
isStale: boolean;
|
|
33514
33514
|
isEnabled: boolean;
|
|
33515
|
-
refetch: (options?:
|
|
33515
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33516
33516
|
optionId: bigint;
|
|
33517
33517
|
marketAddr: Address;
|
|
33518
33518
|
ownerAddr: Address;
|
|
@@ -33543,7 +33543,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33543
33543
|
address: string;
|
|
33544
33544
|
} | null;
|
|
33545
33545
|
}[], Error>>;
|
|
33546
|
-
fetchStatus:
|
|
33546
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33547
33547
|
promise: Promise<{
|
|
33548
33548
|
optionId: bigint;
|
|
33549
33549
|
marketAddr: Address;
|
|
@@ -33629,7 +33629,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33629
33629
|
isRefetching: boolean;
|
|
33630
33630
|
isStale: boolean;
|
|
33631
33631
|
isEnabled: boolean;
|
|
33632
|
-
refetch: (options?:
|
|
33632
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33633
33633
|
optionId: bigint;
|
|
33634
33634
|
marketAddr: Address;
|
|
33635
33635
|
ownerAddr: Address;
|
|
@@ -33660,7 +33660,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33660
33660
|
address: string;
|
|
33661
33661
|
} | null;
|
|
33662
33662
|
}[], Error>>;
|
|
33663
|
-
fetchStatus:
|
|
33663
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33664
33664
|
promise: Promise<{
|
|
33665
33665
|
optionId: bigint;
|
|
33666
33666
|
marketAddr: Address;
|
|
@@ -33746,7 +33746,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33746
33746
|
isRefetching: boolean;
|
|
33747
33747
|
isStale: boolean;
|
|
33748
33748
|
isEnabled: boolean;
|
|
33749
|
-
refetch: (options?:
|
|
33749
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33750
33750
|
optionId: bigint;
|
|
33751
33751
|
marketAddr: Address;
|
|
33752
33752
|
ownerAddr: Address;
|
|
@@ -33777,7 +33777,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33777
33777
|
address: string;
|
|
33778
33778
|
} | null;
|
|
33779
33779
|
}[], Error>>;
|
|
33780
|
-
fetchStatus:
|
|
33780
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33781
33781
|
promise: Promise<{
|
|
33782
33782
|
optionId: bigint;
|
|
33783
33783
|
marketAddr: Address;
|
|
@@ -33863,7 +33863,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33863
33863
|
isRefetching: boolean;
|
|
33864
33864
|
isStale: boolean;
|
|
33865
33865
|
isEnabled: boolean;
|
|
33866
|
-
refetch: (options?:
|
|
33866
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
33867
33867
|
optionId: bigint;
|
|
33868
33868
|
marketAddr: Address;
|
|
33869
33869
|
ownerAddr: Address;
|
|
@@ -33894,7 +33894,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33894
33894
|
address: string;
|
|
33895
33895
|
} | null;
|
|
33896
33896
|
}[], Error>>;
|
|
33897
|
-
fetchStatus:
|
|
33897
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
33898
33898
|
promise: Promise<{
|
|
33899
33899
|
optionId: bigint;
|
|
33900
33900
|
marketAddr: Address;
|
|
@@ -33960,7 +33960,7 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
33960
33960
|
};
|
|
33961
33961
|
//#endregion
|
|
33962
33962
|
//#region src/hooks/options/useExerciseOption.d.ts
|
|
33963
|
-
declare const useExerciseOption: (marketAddr?: Address) =>
|
|
33963
|
+
declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
33964
33964
|
option: OptionData;
|
|
33965
33965
|
liquidities: readonly bigint[];
|
|
33966
33966
|
}, unknown>;
|
|
@@ -34016,7 +34016,7 @@ declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?:
|
|
|
34016
34016
|
};
|
|
34017
34017
|
//#endregion
|
|
34018
34018
|
//#region src/hooks/options/useMintOption.d.ts
|
|
34019
|
-
declare const useMintOption: (marketAddr?: Address) =>
|
|
34019
|
+
declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34020
34020
|
optionType: "CALL" | "PUT";
|
|
34021
34021
|
amount: bigint;
|
|
34022
34022
|
duration: number;
|
|
@@ -34041,7 +34041,7 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
|
|
|
34041
34041
|
};
|
|
34042
34042
|
//#endregion
|
|
34043
34043
|
//#region src/hooks/options/useExtendOption.d.ts
|
|
34044
|
-
declare const useExtendOption: (marketAddr?: Address) =>
|
|
34044
|
+
declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34045
34045
|
option: OptionData;
|
|
34046
34046
|
duration: number;
|
|
34047
34047
|
}, unknown>;
|
|
@@ -34071,7 +34071,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34071
34071
|
isRefetching: boolean;
|
|
34072
34072
|
isStale: boolean;
|
|
34073
34073
|
isEnabled: boolean;
|
|
34074
|
-
refetch: (options?:
|
|
34074
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34075
34075
|
type: "mint";
|
|
34076
34076
|
data: {
|
|
34077
34077
|
id: string;
|
|
@@ -34110,7 +34110,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34110
34110
|
transactionHash: string;
|
|
34111
34111
|
};
|
|
34112
34112
|
})[], Error>>;
|
|
34113
|
-
fetchStatus:
|
|
34113
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34114
34114
|
promise: Promise<({
|
|
34115
34115
|
type: "mint";
|
|
34116
34116
|
data: {
|
|
@@ -34212,7 +34212,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34212
34212
|
isRefetching: boolean;
|
|
34213
34213
|
isStale: boolean;
|
|
34214
34214
|
isEnabled: boolean;
|
|
34215
|
-
refetch: (options?:
|
|
34215
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34216
34216
|
type: "mint";
|
|
34217
34217
|
data: {
|
|
34218
34218
|
id: string;
|
|
@@ -34251,7 +34251,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34251
34251
|
transactionHash: string;
|
|
34252
34252
|
};
|
|
34253
34253
|
})[], Error>>;
|
|
34254
|
-
fetchStatus:
|
|
34254
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34255
34255
|
promise: Promise<({
|
|
34256
34256
|
type: "mint";
|
|
34257
34257
|
data: {
|
|
@@ -34353,7 +34353,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34353
34353
|
isRefetching: boolean;
|
|
34354
34354
|
isStale: boolean;
|
|
34355
34355
|
isEnabled: boolean;
|
|
34356
|
-
refetch: (options?:
|
|
34356
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34357
34357
|
type: "mint";
|
|
34358
34358
|
data: {
|
|
34359
34359
|
id: string;
|
|
@@ -34392,7 +34392,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34392
34392
|
transactionHash: string;
|
|
34393
34393
|
};
|
|
34394
34394
|
})[], Error>>;
|
|
34395
|
-
fetchStatus:
|
|
34395
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34396
34396
|
promise: Promise<({
|
|
34397
34397
|
type: "mint";
|
|
34398
34398
|
data: {
|
|
@@ -34494,7 +34494,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34494
34494
|
isRefetching: boolean;
|
|
34495
34495
|
isStale: boolean;
|
|
34496
34496
|
isEnabled: boolean;
|
|
34497
|
-
refetch: (options?:
|
|
34497
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34498
34498
|
type: "mint";
|
|
34499
34499
|
data: {
|
|
34500
34500
|
id: string;
|
|
@@ -34533,7 +34533,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34533
34533
|
transactionHash: string;
|
|
34534
34534
|
};
|
|
34535
34535
|
})[], Error>>;
|
|
34536
|
-
fetchStatus:
|
|
34536
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34537
34537
|
promise: Promise<({
|
|
34538
34538
|
type: "mint";
|
|
34539
34539
|
data: {
|
|
@@ -34635,7 +34635,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34635
34635
|
isRefetching: boolean;
|
|
34636
34636
|
isStale: boolean;
|
|
34637
34637
|
isEnabled: boolean;
|
|
34638
|
-
refetch: (options?:
|
|
34638
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34639
34639
|
type: "mint";
|
|
34640
34640
|
data: {
|
|
34641
34641
|
id: string;
|
|
@@ -34674,7 +34674,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34674
34674
|
transactionHash: string;
|
|
34675
34675
|
};
|
|
34676
34676
|
})[], Error>>;
|
|
34677
|
-
fetchStatus:
|
|
34677
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34678
34678
|
promise: Promise<({
|
|
34679
34679
|
type: "mint";
|
|
34680
34680
|
data: {
|
|
@@ -34776,7 +34776,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34776
34776
|
isRefetching: boolean;
|
|
34777
34777
|
isStale: boolean;
|
|
34778
34778
|
isEnabled: boolean;
|
|
34779
|
-
refetch: (options?:
|
|
34779
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<({
|
|
34780
34780
|
type: "mint";
|
|
34781
34781
|
data: {
|
|
34782
34782
|
id: string;
|
|
@@ -34815,7 +34815,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34815
34815
|
transactionHash: string;
|
|
34816
34816
|
};
|
|
34817
34817
|
})[], Error>>;
|
|
34818
|
-
fetchStatus:
|
|
34818
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34819
34819
|
promise: Promise<({
|
|
34820
34820
|
type: "mint";
|
|
34821
34821
|
data: {
|
|
@@ -34897,7 +34897,7 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
34897
34897
|
};
|
|
34898
34898
|
//#endregion
|
|
34899
34899
|
//#region src/hooks/perps/useMintPerp.d.ts
|
|
34900
|
-
declare const useMintPerp: (marketAddr?: Address) =>
|
|
34900
|
+
declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, {
|
|
34901
34901
|
optionType: "CALL" | "PUT";
|
|
34902
34902
|
amount: bigint;
|
|
34903
34903
|
duration: number;
|
|
@@ -34907,14 +34907,12 @@ declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query1.UseM
|
|
|
34907
34907
|
//#region src/lib/perpsOperator.d.ts
|
|
34908
34908
|
type MintPerpBody = {
|
|
34909
34909
|
marketAddr: Address;
|
|
34910
|
-
userAddr: Address;
|
|
34911
34910
|
optionType: 'CALL' | 'PUT';
|
|
34912
34911
|
amount: bigint;
|
|
34913
34912
|
duration: number;
|
|
34914
34913
|
strikeTick: number;
|
|
34915
34914
|
};
|
|
34916
34915
|
type ExercisePerpBody = {
|
|
34917
|
-
userAddr: Address;
|
|
34918
34916
|
marketAddr: Address;
|
|
34919
34917
|
optionId: bigint;
|
|
34920
34918
|
liquidities: bigint[];
|
|
@@ -34954,7 +34952,7 @@ declare class PerpsOperator {
|
|
|
34954
34952
|
}
|
|
34955
34953
|
//#endregion
|
|
34956
34954
|
//#region src/hooks/perps/useClosePerp.d.ts
|
|
34957
|
-
declare const useClosePerp: () =>
|
|
34955
|
+
declare const useClosePerp: () => _tanstack_react_query0.UseMutationResult<{
|
|
34958
34956
|
txHash: string;
|
|
34959
34957
|
optionId: bigint;
|
|
34960
34958
|
}, Error, ExercisePerpBody, unknown>;
|
|
@@ -34963,7 +34961,930 @@ declare const useClosePerp: () => _tanstack_react_query1.UseMutationResult<{
|
|
|
34963
34961
|
declare const usePerpsOperator: () => {
|
|
34964
34962
|
operator: PerpsOperator | undefined;
|
|
34965
34963
|
address: `0x${string}` | undefined;
|
|
34966
|
-
signMessage:
|
|
34964
|
+
signMessage: _tanstack_react_query0.UseMutationResult<void, Error, void, unknown>;
|
|
34965
|
+
};
|
|
34966
|
+
//#endregion
|
|
34967
|
+
//#region src/hooks/perps/useUserPerps.d.ts
|
|
34968
|
+
declare const useUserPerps: (marketAddr?: Address, userAddr?: Address, type?: "active" | "closed") => {
|
|
34969
|
+
error: Error;
|
|
34970
|
+
isError: true;
|
|
34971
|
+
isPending: false;
|
|
34972
|
+
isLoading: false;
|
|
34973
|
+
isLoadingError: false;
|
|
34974
|
+
isRefetchError: true;
|
|
34975
|
+
isSuccess: false;
|
|
34976
|
+
isPlaceholderData: false;
|
|
34977
|
+
status: "error";
|
|
34978
|
+
dataUpdatedAt: number;
|
|
34979
|
+
errorUpdatedAt: number;
|
|
34980
|
+
failureCount: number;
|
|
34981
|
+
failureReason: Error | null;
|
|
34982
|
+
errorUpdateCount: number;
|
|
34983
|
+
isFetched: boolean;
|
|
34984
|
+
isFetchedAfterMount: boolean;
|
|
34985
|
+
isFetching: boolean;
|
|
34986
|
+
isInitialLoading: boolean;
|
|
34987
|
+
isPaused: boolean;
|
|
34988
|
+
isRefetching: boolean;
|
|
34989
|
+
isStale: boolean;
|
|
34990
|
+
isEnabled: boolean;
|
|
34991
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34992
|
+
optionId: bigint;
|
|
34993
|
+
id: string;
|
|
34994
|
+
ownerAddr: Address;
|
|
34995
|
+
marketAddr: Address;
|
|
34996
|
+
perpDuration: number;
|
|
34997
|
+
expiresAt: number;
|
|
34998
|
+
closed: boolean;
|
|
34999
|
+
}[] | undefined, Error>>;
|
|
35000
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35001
|
+
promise: Promise<{
|
|
35002
|
+
optionId: bigint;
|
|
35003
|
+
id: string;
|
|
35004
|
+
ownerAddr: Address;
|
|
35005
|
+
marketAddr: Address;
|
|
35006
|
+
perpDuration: number;
|
|
35007
|
+
expiresAt: number;
|
|
35008
|
+
closed: boolean;
|
|
35009
|
+
}[] | undefined>;
|
|
35010
|
+
data: {
|
|
35011
|
+
optionId: bigint;
|
|
35012
|
+
id: string;
|
|
35013
|
+
ownerAddr: Address;
|
|
35014
|
+
marketAddr: Address;
|
|
35015
|
+
perpDuration: number;
|
|
35016
|
+
expiresAt: number;
|
|
35017
|
+
closed: boolean;
|
|
35018
|
+
}[];
|
|
35019
|
+
} | {
|
|
35020
|
+
error: null;
|
|
35021
|
+
isError: false;
|
|
35022
|
+
isPending: false;
|
|
35023
|
+
isLoading: false;
|
|
35024
|
+
isLoadingError: false;
|
|
35025
|
+
isRefetchError: false;
|
|
35026
|
+
isSuccess: true;
|
|
35027
|
+
isPlaceholderData: false;
|
|
35028
|
+
status: "success";
|
|
35029
|
+
dataUpdatedAt: number;
|
|
35030
|
+
errorUpdatedAt: number;
|
|
35031
|
+
failureCount: number;
|
|
35032
|
+
failureReason: Error | null;
|
|
35033
|
+
errorUpdateCount: number;
|
|
35034
|
+
isFetched: boolean;
|
|
35035
|
+
isFetchedAfterMount: boolean;
|
|
35036
|
+
isFetching: boolean;
|
|
35037
|
+
isInitialLoading: boolean;
|
|
35038
|
+
isPaused: boolean;
|
|
35039
|
+
isRefetching: boolean;
|
|
35040
|
+
isStale: boolean;
|
|
35041
|
+
isEnabled: boolean;
|
|
35042
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35043
|
+
optionId: bigint;
|
|
35044
|
+
id: string;
|
|
35045
|
+
ownerAddr: Address;
|
|
35046
|
+
marketAddr: Address;
|
|
35047
|
+
perpDuration: number;
|
|
35048
|
+
expiresAt: number;
|
|
35049
|
+
closed: boolean;
|
|
35050
|
+
}[] | undefined, Error>>;
|
|
35051
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35052
|
+
promise: Promise<{
|
|
35053
|
+
optionId: bigint;
|
|
35054
|
+
id: string;
|
|
35055
|
+
ownerAddr: Address;
|
|
35056
|
+
marketAddr: Address;
|
|
35057
|
+
perpDuration: number;
|
|
35058
|
+
expiresAt: number;
|
|
35059
|
+
closed: boolean;
|
|
35060
|
+
}[] | undefined>;
|
|
35061
|
+
data: {
|
|
35062
|
+
optionId: bigint;
|
|
35063
|
+
id: string;
|
|
35064
|
+
ownerAddr: Address;
|
|
35065
|
+
marketAddr: Address;
|
|
35066
|
+
perpDuration: number;
|
|
35067
|
+
expiresAt: number;
|
|
35068
|
+
closed: boolean;
|
|
35069
|
+
}[];
|
|
35070
|
+
} | {
|
|
35071
|
+
error: Error;
|
|
35072
|
+
isError: true;
|
|
35073
|
+
isPending: false;
|
|
35074
|
+
isLoading: false;
|
|
35075
|
+
isLoadingError: true;
|
|
35076
|
+
isRefetchError: false;
|
|
35077
|
+
isSuccess: false;
|
|
35078
|
+
isPlaceholderData: false;
|
|
35079
|
+
status: "error";
|
|
35080
|
+
dataUpdatedAt: number;
|
|
35081
|
+
errorUpdatedAt: number;
|
|
35082
|
+
failureCount: number;
|
|
35083
|
+
failureReason: Error | null;
|
|
35084
|
+
errorUpdateCount: number;
|
|
35085
|
+
isFetched: boolean;
|
|
35086
|
+
isFetchedAfterMount: boolean;
|
|
35087
|
+
isFetching: boolean;
|
|
35088
|
+
isInitialLoading: boolean;
|
|
35089
|
+
isPaused: boolean;
|
|
35090
|
+
isRefetching: boolean;
|
|
35091
|
+
isStale: boolean;
|
|
35092
|
+
isEnabled: boolean;
|
|
35093
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35094
|
+
optionId: bigint;
|
|
35095
|
+
id: string;
|
|
35096
|
+
ownerAddr: Address;
|
|
35097
|
+
marketAddr: Address;
|
|
35098
|
+
perpDuration: number;
|
|
35099
|
+
expiresAt: number;
|
|
35100
|
+
closed: boolean;
|
|
35101
|
+
}[] | undefined, Error>>;
|
|
35102
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35103
|
+
promise: Promise<{
|
|
35104
|
+
optionId: bigint;
|
|
35105
|
+
id: string;
|
|
35106
|
+
ownerAddr: Address;
|
|
35107
|
+
marketAddr: Address;
|
|
35108
|
+
perpDuration: number;
|
|
35109
|
+
expiresAt: number;
|
|
35110
|
+
closed: boolean;
|
|
35111
|
+
}[] | undefined>;
|
|
35112
|
+
data: {
|
|
35113
|
+
optionId: bigint;
|
|
35114
|
+
id: string;
|
|
35115
|
+
ownerAddr: Address;
|
|
35116
|
+
marketAddr: Address;
|
|
35117
|
+
perpDuration: number;
|
|
35118
|
+
expiresAt: number;
|
|
35119
|
+
closed: boolean;
|
|
35120
|
+
}[];
|
|
35121
|
+
} | {
|
|
35122
|
+
error: null;
|
|
35123
|
+
isError: false;
|
|
35124
|
+
isPending: true;
|
|
35125
|
+
isLoading: true;
|
|
35126
|
+
isLoadingError: false;
|
|
35127
|
+
isRefetchError: false;
|
|
35128
|
+
isSuccess: false;
|
|
35129
|
+
isPlaceholderData: false;
|
|
35130
|
+
status: "pending";
|
|
35131
|
+
dataUpdatedAt: number;
|
|
35132
|
+
errorUpdatedAt: number;
|
|
35133
|
+
failureCount: number;
|
|
35134
|
+
failureReason: Error | null;
|
|
35135
|
+
errorUpdateCount: number;
|
|
35136
|
+
isFetched: boolean;
|
|
35137
|
+
isFetchedAfterMount: boolean;
|
|
35138
|
+
isFetching: boolean;
|
|
35139
|
+
isInitialLoading: boolean;
|
|
35140
|
+
isPaused: boolean;
|
|
35141
|
+
isRefetching: boolean;
|
|
35142
|
+
isStale: boolean;
|
|
35143
|
+
isEnabled: boolean;
|
|
35144
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35145
|
+
optionId: bigint;
|
|
35146
|
+
id: string;
|
|
35147
|
+
ownerAddr: Address;
|
|
35148
|
+
marketAddr: Address;
|
|
35149
|
+
perpDuration: number;
|
|
35150
|
+
expiresAt: number;
|
|
35151
|
+
closed: boolean;
|
|
35152
|
+
}[] | undefined, Error>>;
|
|
35153
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35154
|
+
promise: Promise<{
|
|
35155
|
+
optionId: bigint;
|
|
35156
|
+
id: string;
|
|
35157
|
+
ownerAddr: Address;
|
|
35158
|
+
marketAddr: Address;
|
|
35159
|
+
perpDuration: number;
|
|
35160
|
+
expiresAt: number;
|
|
35161
|
+
closed: boolean;
|
|
35162
|
+
}[] | undefined>;
|
|
35163
|
+
data: {
|
|
35164
|
+
optionId: bigint;
|
|
35165
|
+
id: string;
|
|
35166
|
+
ownerAddr: Address;
|
|
35167
|
+
marketAddr: Address;
|
|
35168
|
+
perpDuration: number;
|
|
35169
|
+
expiresAt: number;
|
|
35170
|
+
closed: boolean;
|
|
35171
|
+
}[];
|
|
35172
|
+
} | {
|
|
35173
|
+
error: null;
|
|
35174
|
+
isError: false;
|
|
35175
|
+
isPending: true;
|
|
35176
|
+
isLoadingError: false;
|
|
35177
|
+
isRefetchError: false;
|
|
35178
|
+
isSuccess: false;
|
|
35179
|
+
isPlaceholderData: false;
|
|
35180
|
+
status: "pending";
|
|
35181
|
+
dataUpdatedAt: number;
|
|
35182
|
+
errorUpdatedAt: number;
|
|
35183
|
+
failureCount: number;
|
|
35184
|
+
failureReason: Error | null;
|
|
35185
|
+
errorUpdateCount: number;
|
|
35186
|
+
isFetched: boolean;
|
|
35187
|
+
isFetchedAfterMount: boolean;
|
|
35188
|
+
isFetching: boolean;
|
|
35189
|
+
isLoading: boolean;
|
|
35190
|
+
isInitialLoading: boolean;
|
|
35191
|
+
isPaused: boolean;
|
|
35192
|
+
isRefetching: boolean;
|
|
35193
|
+
isStale: boolean;
|
|
35194
|
+
isEnabled: boolean;
|
|
35195
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35196
|
+
optionId: bigint;
|
|
35197
|
+
id: string;
|
|
35198
|
+
ownerAddr: Address;
|
|
35199
|
+
marketAddr: Address;
|
|
35200
|
+
perpDuration: number;
|
|
35201
|
+
expiresAt: number;
|
|
35202
|
+
closed: boolean;
|
|
35203
|
+
}[] | undefined, Error>>;
|
|
35204
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35205
|
+
promise: Promise<{
|
|
35206
|
+
optionId: bigint;
|
|
35207
|
+
id: string;
|
|
35208
|
+
ownerAddr: Address;
|
|
35209
|
+
marketAddr: Address;
|
|
35210
|
+
perpDuration: number;
|
|
35211
|
+
expiresAt: number;
|
|
35212
|
+
closed: boolean;
|
|
35213
|
+
}[] | undefined>;
|
|
35214
|
+
data: {
|
|
35215
|
+
optionId: bigint;
|
|
35216
|
+
id: string;
|
|
35217
|
+
ownerAddr: Address;
|
|
35218
|
+
marketAddr: Address;
|
|
35219
|
+
perpDuration: number;
|
|
35220
|
+
expiresAt: number;
|
|
35221
|
+
closed: boolean;
|
|
35222
|
+
}[];
|
|
35223
|
+
} | {
|
|
35224
|
+
isError: false;
|
|
35225
|
+
error: null;
|
|
35226
|
+
isPending: false;
|
|
35227
|
+
isLoading: false;
|
|
35228
|
+
isLoadingError: false;
|
|
35229
|
+
isRefetchError: false;
|
|
35230
|
+
isSuccess: true;
|
|
35231
|
+
isPlaceholderData: true;
|
|
35232
|
+
status: "success";
|
|
35233
|
+
dataUpdatedAt: number;
|
|
35234
|
+
errorUpdatedAt: number;
|
|
35235
|
+
failureCount: number;
|
|
35236
|
+
failureReason: Error | null;
|
|
35237
|
+
errorUpdateCount: number;
|
|
35238
|
+
isFetched: boolean;
|
|
35239
|
+
isFetchedAfterMount: boolean;
|
|
35240
|
+
isFetching: boolean;
|
|
35241
|
+
isInitialLoading: boolean;
|
|
35242
|
+
isPaused: boolean;
|
|
35243
|
+
isRefetching: boolean;
|
|
35244
|
+
isStale: boolean;
|
|
35245
|
+
isEnabled: boolean;
|
|
35246
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35247
|
+
optionId: bigint;
|
|
35248
|
+
id: string;
|
|
35249
|
+
ownerAddr: Address;
|
|
35250
|
+
marketAddr: Address;
|
|
35251
|
+
perpDuration: number;
|
|
35252
|
+
expiresAt: number;
|
|
35253
|
+
closed: boolean;
|
|
35254
|
+
}[] | undefined, Error>>;
|
|
35255
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35256
|
+
promise: Promise<{
|
|
35257
|
+
optionId: bigint;
|
|
35258
|
+
id: string;
|
|
35259
|
+
ownerAddr: Address;
|
|
35260
|
+
marketAddr: Address;
|
|
35261
|
+
perpDuration: number;
|
|
35262
|
+
expiresAt: number;
|
|
35263
|
+
closed: boolean;
|
|
35264
|
+
}[] | undefined>;
|
|
35265
|
+
data: {
|
|
35266
|
+
optionId: bigint;
|
|
35267
|
+
id: string;
|
|
35268
|
+
ownerAddr: Address;
|
|
35269
|
+
marketAddr: Address;
|
|
35270
|
+
perpDuration: number;
|
|
35271
|
+
expiresAt: number;
|
|
35272
|
+
closed: boolean;
|
|
35273
|
+
}[];
|
|
35274
|
+
};
|
|
35275
|
+
declare const useActiveUserPerps: (marketAddr?: Address, userAddr?: Address) => {
|
|
35276
|
+
error: Error;
|
|
35277
|
+
isError: true;
|
|
35278
|
+
isPending: false;
|
|
35279
|
+
isLoading: false;
|
|
35280
|
+
isLoadingError: false;
|
|
35281
|
+
isRefetchError: true;
|
|
35282
|
+
isSuccess: false;
|
|
35283
|
+
isPlaceholderData: false;
|
|
35284
|
+
status: "error";
|
|
35285
|
+
dataUpdatedAt: number;
|
|
35286
|
+
errorUpdatedAt: number;
|
|
35287
|
+
failureCount: number;
|
|
35288
|
+
failureReason: Error | null;
|
|
35289
|
+
errorUpdateCount: number;
|
|
35290
|
+
isFetched: boolean;
|
|
35291
|
+
isFetchedAfterMount: boolean;
|
|
35292
|
+
isFetching: boolean;
|
|
35293
|
+
isInitialLoading: boolean;
|
|
35294
|
+
isPaused: boolean;
|
|
35295
|
+
isRefetching: boolean;
|
|
35296
|
+
isStale: boolean;
|
|
35297
|
+
isEnabled: boolean;
|
|
35298
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35299
|
+
optionId: bigint;
|
|
35300
|
+
id: string;
|
|
35301
|
+
ownerAddr: Address;
|
|
35302
|
+
marketAddr: Address;
|
|
35303
|
+
perpDuration: number;
|
|
35304
|
+
expiresAt: number;
|
|
35305
|
+
closed: boolean;
|
|
35306
|
+
}[] | undefined, Error>>;
|
|
35307
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35308
|
+
promise: Promise<{
|
|
35309
|
+
optionId: bigint;
|
|
35310
|
+
id: string;
|
|
35311
|
+
ownerAddr: Address;
|
|
35312
|
+
marketAddr: Address;
|
|
35313
|
+
perpDuration: number;
|
|
35314
|
+
expiresAt: number;
|
|
35315
|
+
closed: boolean;
|
|
35316
|
+
}[] | undefined>;
|
|
35317
|
+
data: {
|
|
35318
|
+
optionId: bigint;
|
|
35319
|
+
id: string;
|
|
35320
|
+
ownerAddr: Address;
|
|
35321
|
+
marketAddr: Address;
|
|
35322
|
+
perpDuration: number;
|
|
35323
|
+
expiresAt: number;
|
|
35324
|
+
closed: boolean;
|
|
35325
|
+
}[];
|
|
35326
|
+
} | {
|
|
35327
|
+
error: null;
|
|
35328
|
+
isError: false;
|
|
35329
|
+
isPending: false;
|
|
35330
|
+
isLoading: false;
|
|
35331
|
+
isLoadingError: false;
|
|
35332
|
+
isRefetchError: false;
|
|
35333
|
+
isSuccess: true;
|
|
35334
|
+
isPlaceholderData: false;
|
|
35335
|
+
status: "success";
|
|
35336
|
+
dataUpdatedAt: number;
|
|
35337
|
+
errorUpdatedAt: number;
|
|
35338
|
+
failureCount: number;
|
|
35339
|
+
failureReason: Error | null;
|
|
35340
|
+
errorUpdateCount: number;
|
|
35341
|
+
isFetched: boolean;
|
|
35342
|
+
isFetchedAfterMount: boolean;
|
|
35343
|
+
isFetching: boolean;
|
|
35344
|
+
isInitialLoading: boolean;
|
|
35345
|
+
isPaused: boolean;
|
|
35346
|
+
isRefetching: boolean;
|
|
35347
|
+
isStale: boolean;
|
|
35348
|
+
isEnabled: boolean;
|
|
35349
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35350
|
+
optionId: bigint;
|
|
35351
|
+
id: string;
|
|
35352
|
+
ownerAddr: Address;
|
|
35353
|
+
marketAddr: Address;
|
|
35354
|
+
perpDuration: number;
|
|
35355
|
+
expiresAt: number;
|
|
35356
|
+
closed: boolean;
|
|
35357
|
+
}[] | undefined, Error>>;
|
|
35358
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35359
|
+
promise: Promise<{
|
|
35360
|
+
optionId: bigint;
|
|
35361
|
+
id: string;
|
|
35362
|
+
ownerAddr: Address;
|
|
35363
|
+
marketAddr: Address;
|
|
35364
|
+
perpDuration: number;
|
|
35365
|
+
expiresAt: number;
|
|
35366
|
+
closed: boolean;
|
|
35367
|
+
}[] | undefined>;
|
|
35368
|
+
data: {
|
|
35369
|
+
optionId: bigint;
|
|
35370
|
+
id: string;
|
|
35371
|
+
ownerAddr: Address;
|
|
35372
|
+
marketAddr: Address;
|
|
35373
|
+
perpDuration: number;
|
|
35374
|
+
expiresAt: number;
|
|
35375
|
+
closed: boolean;
|
|
35376
|
+
}[];
|
|
35377
|
+
} | {
|
|
35378
|
+
error: Error;
|
|
35379
|
+
isError: true;
|
|
35380
|
+
isPending: false;
|
|
35381
|
+
isLoading: false;
|
|
35382
|
+
isLoadingError: true;
|
|
35383
|
+
isRefetchError: false;
|
|
35384
|
+
isSuccess: false;
|
|
35385
|
+
isPlaceholderData: false;
|
|
35386
|
+
status: "error";
|
|
35387
|
+
dataUpdatedAt: number;
|
|
35388
|
+
errorUpdatedAt: number;
|
|
35389
|
+
failureCount: number;
|
|
35390
|
+
failureReason: Error | null;
|
|
35391
|
+
errorUpdateCount: number;
|
|
35392
|
+
isFetched: boolean;
|
|
35393
|
+
isFetchedAfterMount: boolean;
|
|
35394
|
+
isFetching: boolean;
|
|
35395
|
+
isInitialLoading: boolean;
|
|
35396
|
+
isPaused: boolean;
|
|
35397
|
+
isRefetching: boolean;
|
|
35398
|
+
isStale: boolean;
|
|
35399
|
+
isEnabled: boolean;
|
|
35400
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35401
|
+
optionId: bigint;
|
|
35402
|
+
id: string;
|
|
35403
|
+
ownerAddr: Address;
|
|
35404
|
+
marketAddr: Address;
|
|
35405
|
+
perpDuration: number;
|
|
35406
|
+
expiresAt: number;
|
|
35407
|
+
closed: boolean;
|
|
35408
|
+
}[] | undefined, Error>>;
|
|
35409
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35410
|
+
promise: Promise<{
|
|
35411
|
+
optionId: bigint;
|
|
35412
|
+
id: string;
|
|
35413
|
+
ownerAddr: Address;
|
|
35414
|
+
marketAddr: Address;
|
|
35415
|
+
perpDuration: number;
|
|
35416
|
+
expiresAt: number;
|
|
35417
|
+
closed: boolean;
|
|
35418
|
+
}[] | undefined>;
|
|
35419
|
+
data: {
|
|
35420
|
+
optionId: bigint;
|
|
35421
|
+
id: string;
|
|
35422
|
+
ownerAddr: Address;
|
|
35423
|
+
marketAddr: Address;
|
|
35424
|
+
perpDuration: number;
|
|
35425
|
+
expiresAt: number;
|
|
35426
|
+
closed: boolean;
|
|
35427
|
+
}[];
|
|
35428
|
+
} | {
|
|
35429
|
+
error: null;
|
|
35430
|
+
isError: false;
|
|
35431
|
+
isPending: true;
|
|
35432
|
+
isLoading: true;
|
|
35433
|
+
isLoadingError: false;
|
|
35434
|
+
isRefetchError: false;
|
|
35435
|
+
isSuccess: false;
|
|
35436
|
+
isPlaceholderData: false;
|
|
35437
|
+
status: "pending";
|
|
35438
|
+
dataUpdatedAt: number;
|
|
35439
|
+
errorUpdatedAt: number;
|
|
35440
|
+
failureCount: number;
|
|
35441
|
+
failureReason: Error | null;
|
|
35442
|
+
errorUpdateCount: number;
|
|
35443
|
+
isFetched: boolean;
|
|
35444
|
+
isFetchedAfterMount: boolean;
|
|
35445
|
+
isFetching: boolean;
|
|
35446
|
+
isInitialLoading: boolean;
|
|
35447
|
+
isPaused: boolean;
|
|
35448
|
+
isRefetching: boolean;
|
|
35449
|
+
isStale: boolean;
|
|
35450
|
+
isEnabled: boolean;
|
|
35451
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35452
|
+
optionId: bigint;
|
|
35453
|
+
id: string;
|
|
35454
|
+
ownerAddr: Address;
|
|
35455
|
+
marketAddr: Address;
|
|
35456
|
+
perpDuration: number;
|
|
35457
|
+
expiresAt: number;
|
|
35458
|
+
closed: boolean;
|
|
35459
|
+
}[] | undefined, Error>>;
|
|
35460
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35461
|
+
promise: Promise<{
|
|
35462
|
+
optionId: bigint;
|
|
35463
|
+
id: string;
|
|
35464
|
+
ownerAddr: Address;
|
|
35465
|
+
marketAddr: Address;
|
|
35466
|
+
perpDuration: number;
|
|
35467
|
+
expiresAt: number;
|
|
35468
|
+
closed: boolean;
|
|
35469
|
+
}[] | undefined>;
|
|
35470
|
+
data: {
|
|
35471
|
+
optionId: bigint;
|
|
35472
|
+
id: string;
|
|
35473
|
+
ownerAddr: Address;
|
|
35474
|
+
marketAddr: Address;
|
|
35475
|
+
perpDuration: number;
|
|
35476
|
+
expiresAt: number;
|
|
35477
|
+
closed: boolean;
|
|
35478
|
+
}[];
|
|
35479
|
+
} | {
|
|
35480
|
+
error: null;
|
|
35481
|
+
isError: false;
|
|
35482
|
+
isPending: true;
|
|
35483
|
+
isLoadingError: false;
|
|
35484
|
+
isRefetchError: false;
|
|
35485
|
+
isSuccess: false;
|
|
35486
|
+
isPlaceholderData: false;
|
|
35487
|
+
status: "pending";
|
|
35488
|
+
dataUpdatedAt: number;
|
|
35489
|
+
errorUpdatedAt: number;
|
|
35490
|
+
failureCount: number;
|
|
35491
|
+
failureReason: Error | null;
|
|
35492
|
+
errorUpdateCount: number;
|
|
35493
|
+
isFetched: boolean;
|
|
35494
|
+
isFetchedAfterMount: boolean;
|
|
35495
|
+
isFetching: boolean;
|
|
35496
|
+
isLoading: boolean;
|
|
35497
|
+
isInitialLoading: boolean;
|
|
35498
|
+
isPaused: boolean;
|
|
35499
|
+
isRefetching: boolean;
|
|
35500
|
+
isStale: boolean;
|
|
35501
|
+
isEnabled: boolean;
|
|
35502
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35503
|
+
optionId: bigint;
|
|
35504
|
+
id: string;
|
|
35505
|
+
ownerAddr: Address;
|
|
35506
|
+
marketAddr: Address;
|
|
35507
|
+
perpDuration: number;
|
|
35508
|
+
expiresAt: number;
|
|
35509
|
+
closed: boolean;
|
|
35510
|
+
}[] | undefined, Error>>;
|
|
35511
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35512
|
+
promise: Promise<{
|
|
35513
|
+
optionId: bigint;
|
|
35514
|
+
id: string;
|
|
35515
|
+
ownerAddr: Address;
|
|
35516
|
+
marketAddr: Address;
|
|
35517
|
+
perpDuration: number;
|
|
35518
|
+
expiresAt: number;
|
|
35519
|
+
closed: boolean;
|
|
35520
|
+
}[] | undefined>;
|
|
35521
|
+
data: {
|
|
35522
|
+
optionId: bigint;
|
|
35523
|
+
id: string;
|
|
35524
|
+
ownerAddr: Address;
|
|
35525
|
+
marketAddr: Address;
|
|
35526
|
+
perpDuration: number;
|
|
35527
|
+
expiresAt: number;
|
|
35528
|
+
closed: boolean;
|
|
35529
|
+
}[];
|
|
35530
|
+
} | {
|
|
35531
|
+
isError: false;
|
|
35532
|
+
error: null;
|
|
35533
|
+
isPending: false;
|
|
35534
|
+
isLoading: false;
|
|
35535
|
+
isLoadingError: false;
|
|
35536
|
+
isRefetchError: false;
|
|
35537
|
+
isSuccess: true;
|
|
35538
|
+
isPlaceholderData: true;
|
|
35539
|
+
status: "success";
|
|
35540
|
+
dataUpdatedAt: number;
|
|
35541
|
+
errorUpdatedAt: number;
|
|
35542
|
+
failureCount: number;
|
|
35543
|
+
failureReason: Error | null;
|
|
35544
|
+
errorUpdateCount: number;
|
|
35545
|
+
isFetched: boolean;
|
|
35546
|
+
isFetchedAfterMount: boolean;
|
|
35547
|
+
isFetching: boolean;
|
|
35548
|
+
isInitialLoading: boolean;
|
|
35549
|
+
isPaused: boolean;
|
|
35550
|
+
isRefetching: boolean;
|
|
35551
|
+
isStale: boolean;
|
|
35552
|
+
isEnabled: boolean;
|
|
35553
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35554
|
+
optionId: bigint;
|
|
35555
|
+
id: string;
|
|
35556
|
+
ownerAddr: Address;
|
|
35557
|
+
marketAddr: Address;
|
|
35558
|
+
perpDuration: number;
|
|
35559
|
+
expiresAt: number;
|
|
35560
|
+
closed: boolean;
|
|
35561
|
+
}[] | undefined, Error>>;
|
|
35562
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35563
|
+
promise: Promise<{
|
|
35564
|
+
optionId: bigint;
|
|
35565
|
+
id: string;
|
|
35566
|
+
ownerAddr: Address;
|
|
35567
|
+
marketAddr: Address;
|
|
35568
|
+
perpDuration: number;
|
|
35569
|
+
expiresAt: number;
|
|
35570
|
+
closed: boolean;
|
|
35571
|
+
}[] | undefined>;
|
|
35572
|
+
data: {
|
|
35573
|
+
optionId: bigint;
|
|
35574
|
+
id: string;
|
|
35575
|
+
ownerAddr: Address;
|
|
35576
|
+
marketAddr: Address;
|
|
35577
|
+
perpDuration: number;
|
|
35578
|
+
expiresAt: number;
|
|
35579
|
+
closed: boolean;
|
|
35580
|
+
}[];
|
|
35581
|
+
};
|
|
35582
|
+
declare const useClosedUserPerps: (marketAddr?: Address, userAddr?: Address) => {
|
|
35583
|
+
error: Error;
|
|
35584
|
+
isError: true;
|
|
35585
|
+
isPending: false;
|
|
35586
|
+
isLoading: false;
|
|
35587
|
+
isLoadingError: false;
|
|
35588
|
+
isRefetchError: true;
|
|
35589
|
+
isSuccess: false;
|
|
35590
|
+
isPlaceholderData: false;
|
|
35591
|
+
status: "error";
|
|
35592
|
+
dataUpdatedAt: number;
|
|
35593
|
+
errorUpdatedAt: number;
|
|
35594
|
+
failureCount: number;
|
|
35595
|
+
failureReason: Error | null;
|
|
35596
|
+
errorUpdateCount: number;
|
|
35597
|
+
isFetched: boolean;
|
|
35598
|
+
isFetchedAfterMount: boolean;
|
|
35599
|
+
isFetching: boolean;
|
|
35600
|
+
isInitialLoading: boolean;
|
|
35601
|
+
isPaused: boolean;
|
|
35602
|
+
isRefetching: boolean;
|
|
35603
|
+
isStale: boolean;
|
|
35604
|
+
isEnabled: boolean;
|
|
35605
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35606
|
+
optionId: bigint;
|
|
35607
|
+
id: string;
|
|
35608
|
+
ownerAddr: Address;
|
|
35609
|
+
marketAddr: Address;
|
|
35610
|
+
perpDuration: number;
|
|
35611
|
+
expiresAt: number;
|
|
35612
|
+
closed: boolean;
|
|
35613
|
+
}[] | undefined, Error>>;
|
|
35614
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35615
|
+
promise: Promise<{
|
|
35616
|
+
optionId: bigint;
|
|
35617
|
+
id: string;
|
|
35618
|
+
ownerAddr: Address;
|
|
35619
|
+
marketAddr: Address;
|
|
35620
|
+
perpDuration: number;
|
|
35621
|
+
expiresAt: number;
|
|
35622
|
+
closed: boolean;
|
|
35623
|
+
}[] | undefined>;
|
|
35624
|
+
data: {
|
|
35625
|
+
optionId: bigint;
|
|
35626
|
+
id: string;
|
|
35627
|
+
ownerAddr: Address;
|
|
35628
|
+
marketAddr: Address;
|
|
35629
|
+
perpDuration: number;
|
|
35630
|
+
expiresAt: number;
|
|
35631
|
+
closed: boolean;
|
|
35632
|
+
}[];
|
|
35633
|
+
} | {
|
|
35634
|
+
error: null;
|
|
35635
|
+
isError: false;
|
|
35636
|
+
isPending: false;
|
|
35637
|
+
isLoading: false;
|
|
35638
|
+
isLoadingError: false;
|
|
35639
|
+
isRefetchError: false;
|
|
35640
|
+
isSuccess: true;
|
|
35641
|
+
isPlaceholderData: false;
|
|
35642
|
+
status: "success";
|
|
35643
|
+
dataUpdatedAt: number;
|
|
35644
|
+
errorUpdatedAt: number;
|
|
35645
|
+
failureCount: number;
|
|
35646
|
+
failureReason: Error | null;
|
|
35647
|
+
errorUpdateCount: number;
|
|
35648
|
+
isFetched: boolean;
|
|
35649
|
+
isFetchedAfterMount: boolean;
|
|
35650
|
+
isFetching: boolean;
|
|
35651
|
+
isInitialLoading: boolean;
|
|
35652
|
+
isPaused: boolean;
|
|
35653
|
+
isRefetching: boolean;
|
|
35654
|
+
isStale: boolean;
|
|
35655
|
+
isEnabled: boolean;
|
|
35656
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35657
|
+
optionId: bigint;
|
|
35658
|
+
id: string;
|
|
35659
|
+
ownerAddr: Address;
|
|
35660
|
+
marketAddr: Address;
|
|
35661
|
+
perpDuration: number;
|
|
35662
|
+
expiresAt: number;
|
|
35663
|
+
closed: boolean;
|
|
35664
|
+
}[] | undefined, Error>>;
|
|
35665
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35666
|
+
promise: Promise<{
|
|
35667
|
+
optionId: bigint;
|
|
35668
|
+
id: string;
|
|
35669
|
+
ownerAddr: Address;
|
|
35670
|
+
marketAddr: Address;
|
|
35671
|
+
perpDuration: number;
|
|
35672
|
+
expiresAt: number;
|
|
35673
|
+
closed: boolean;
|
|
35674
|
+
}[] | undefined>;
|
|
35675
|
+
data: {
|
|
35676
|
+
optionId: bigint;
|
|
35677
|
+
id: string;
|
|
35678
|
+
ownerAddr: Address;
|
|
35679
|
+
marketAddr: Address;
|
|
35680
|
+
perpDuration: number;
|
|
35681
|
+
expiresAt: number;
|
|
35682
|
+
closed: boolean;
|
|
35683
|
+
}[];
|
|
35684
|
+
} | {
|
|
35685
|
+
error: Error;
|
|
35686
|
+
isError: true;
|
|
35687
|
+
isPending: false;
|
|
35688
|
+
isLoading: false;
|
|
35689
|
+
isLoadingError: true;
|
|
35690
|
+
isRefetchError: false;
|
|
35691
|
+
isSuccess: false;
|
|
35692
|
+
isPlaceholderData: false;
|
|
35693
|
+
status: "error";
|
|
35694
|
+
dataUpdatedAt: number;
|
|
35695
|
+
errorUpdatedAt: number;
|
|
35696
|
+
failureCount: number;
|
|
35697
|
+
failureReason: Error | null;
|
|
35698
|
+
errorUpdateCount: number;
|
|
35699
|
+
isFetched: boolean;
|
|
35700
|
+
isFetchedAfterMount: boolean;
|
|
35701
|
+
isFetching: boolean;
|
|
35702
|
+
isInitialLoading: boolean;
|
|
35703
|
+
isPaused: boolean;
|
|
35704
|
+
isRefetching: boolean;
|
|
35705
|
+
isStale: boolean;
|
|
35706
|
+
isEnabled: boolean;
|
|
35707
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35708
|
+
optionId: bigint;
|
|
35709
|
+
id: string;
|
|
35710
|
+
ownerAddr: Address;
|
|
35711
|
+
marketAddr: Address;
|
|
35712
|
+
perpDuration: number;
|
|
35713
|
+
expiresAt: number;
|
|
35714
|
+
closed: boolean;
|
|
35715
|
+
}[] | undefined, Error>>;
|
|
35716
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35717
|
+
promise: Promise<{
|
|
35718
|
+
optionId: bigint;
|
|
35719
|
+
id: string;
|
|
35720
|
+
ownerAddr: Address;
|
|
35721
|
+
marketAddr: Address;
|
|
35722
|
+
perpDuration: number;
|
|
35723
|
+
expiresAt: number;
|
|
35724
|
+
closed: boolean;
|
|
35725
|
+
}[] | undefined>;
|
|
35726
|
+
data: {
|
|
35727
|
+
optionId: bigint;
|
|
35728
|
+
id: string;
|
|
35729
|
+
ownerAddr: Address;
|
|
35730
|
+
marketAddr: Address;
|
|
35731
|
+
perpDuration: number;
|
|
35732
|
+
expiresAt: number;
|
|
35733
|
+
closed: boolean;
|
|
35734
|
+
}[];
|
|
35735
|
+
} | {
|
|
35736
|
+
error: null;
|
|
35737
|
+
isError: false;
|
|
35738
|
+
isPending: true;
|
|
35739
|
+
isLoading: true;
|
|
35740
|
+
isLoadingError: false;
|
|
35741
|
+
isRefetchError: false;
|
|
35742
|
+
isSuccess: false;
|
|
35743
|
+
isPlaceholderData: false;
|
|
35744
|
+
status: "pending";
|
|
35745
|
+
dataUpdatedAt: number;
|
|
35746
|
+
errorUpdatedAt: number;
|
|
35747
|
+
failureCount: number;
|
|
35748
|
+
failureReason: Error | null;
|
|
35749
|
+
errorUpdateCount: number;
|
|
35750
|
+
isFetched: boolean;
|
|
35751
|
+
isFetchedAfterMount: boolean;
|
|
35752
|
+
isFetching: boolean;
|
|
35753
|
+
isInitialLoading: boolean;
|
|
35754
|
+
isPaused: boolean;
|
|
35755
|
+
isRefetching: boolean;
|
|
35756
|
+
isStale: boolean;
|
|
35757
|
+
isEnabled: boolean;
|
|
35758
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35759
|
+
optionId: bigint;
|
|
35760
|
+
id: string;
|
|
35761
|
+
ownerAddr: Address;
|
|
35762
|
+
marketAddr: Address;
|
|
35763
|
+
perpDuration: number;
|
|
35764
|
+
expiresAt: number;
|
|
35765
|
+
closed: boolean;
|
|
35766
|
+
}[] | undefined, Error>>;
|
|
35767
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35768
|
+
promise: Promise<{
|
|
35769
|
+
optionId: bigint;
|
|
35770
|
+
id: string;
|
|
35771
|
+
ownerAddr: Address;
|
|
35772
|
+
marketAddr: Address;
|
|
35773
|
+
perpDuration: number;
|
|
35774
|
+
expiresAt: number;
|
|
35775
|
+
closed: boolean;
|
|
35776
|
+
}[] | undefined>;
|
|
35777
|
+
data: {
|
|
35778
|
+
optionId: bigint;
|
|
35779
|
+
id: string;
|
|
35780
|
+
ownerAddr: Address;
|
|
35781
|
+
marketAddr: Address;
|
|
35782
|
+
perpDuration: number;
|
|
35783
|
+
expiresAt: number;
|
|
35784
|
+
closed: boolean;
|
|
35785
|
+
}[];
|
|
35786
|
+
} | {
|
|
35787
|
+
error: null;
|
|
35788
|
+
isError: false;
|
|
35789
|
+
isPending: true;
|
|
35790
|
+
isLoadingError: false;
|
|
35791
|
+
isRefetchError: false;
|
|
35792
|
+
isSuccess: false;
|
|
35793
|
+
isPlaceholderData: false;
|
|
35794
|
+
status: "pending";
|
|
35795
|
+
dataUpdatedAt: number;
|
|
35796
|
+
errorUpdatedAt: number;
|
|
35797
|
+
failureCount: number;
|
|
35798
|
+
failureReason: Error | null;
|
|
35799
|
+
errorUpdateCount: number;
|
|
35800
|
+
isFetched: boolean;
|
|
35801
|
+
isFetchedAfterMount: boolean;
|
|
35802
|
+
isFetching: boolean;
|
|
35803
|
+
isLoading: boolean;
|
|
35804
|
+
isInitialLoading: boolean;
|
|
35805
|
+
isPaused: boolean;
|
|
35806
|
+
isRefetching: boolean;
|
|
35807
|
+
isStale: boolean;
|
|
35808
|
+
isEnabled: boolean;
|
|
35809
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35810
|
+
optionId: bigint;
|
|
35811
|
+
id: string;
|
|
35812
|
+
ownerAddr: Address;
|
|
35813
|
+
marketAddr: Address;
|
|
35814
|
+
perpDuration: number;
|
|
35815
|
+
expiresAt: number;
|
|
35816
|
+
closed: boolean;
|
|
35817
|
+
}[] | undefined, Error>>;
|
|
35818
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35819
|
+
promise: Promise<{
|
|
35820
|
+
optionId: bigint;
|
|
35821
|
+
id: string;
|
|
35822
|
+
ownerAddr: Address;
|
|
35823
|
+
marketAddr: Address;
|
|
35824
|
+
perpDuration: number;
|
|
35825
|
+
expiresAt: number;
|
|
35826
|
+
closed: boolean;
|
|
35827
|
+
}[] | undefined>;
|
|
35828
|
+
data: {
|
|
35829
|
+
optionId: bigint;
|
|
35830
|
+
id: string;
|
|
35831
|
+
ownerAddr: Address;
|
|
35832
|
+
marketAddr: Address;
|
|
35833
|
+
perpDuration: number;
|
|
35834
|
+
expiresAt: number;
|
|
35835
|
+
closed: boolean;
|
|
35836
|
+
}[];
|
|
35837
|
+
} | {
|
|
35838
|
+
isError: false;
|
|
35839
|
+
error: null;
|
|
35840
|
+
isPending: false;
|
|
35841
|
+
isLoading: false;
|
|
35842
|
+
isLoadingError: false;
|
|
35843
|
+
isRefetchError: false;
|
|
35844
|
+
isSuccess: true;
|
|
35845
|
+
isPlaceholderData: true;
|
|
35846
|
+
status: "success";
|
|
35847
|
+
dataUpdatedAt: number;
|
|
35848
|
+
errorUpdatedAt: number;
|
|
35849
|
+
failureCount: number;
|
|
35850
|
+
failureReason: Error | null;
|
|
35851
|
+
errorUpdateCount: number;
|
|
35852
|
+
isFetched: boolean;
|
|
35853
|
+
isFetchedAfterMount: boolean;
|
|
35854
|
+
isFetching: boolean;
|
|
35855
|
+
isInitialLoading: boolean;
|
|
35856
|
+
isPaused: boolean;
|
|
35857
|
+
isRefetching: boolean;
|
|
35858
|
+
isStale: boolean;
|
|
35859
|
+
isEnabled: boolean;
|
|
35860
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35861
|
+
optionId: bigint;
|
|
35862
|
+
id: string;
|
|
35863
|
+
ownerAddr: Address;
|
|
35864
|
+
marketAddr: Address;
|
|
35865
|
+
perpDuration: number;
|
|
35866
|
+
expiresAt: number;
|
|
35867
|
+
closed: boolean;
|
|
35868
|
+
}[] | undefined, Error>>;
|
|
35869
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35870
|
+
promise: Promise<{
|
|
35871
|
+
optionId: bigint;
|
|
35872
|
+
id: string;
|
|
35873
|
+
ownerAddr: Address;
|
|
35874
|
+
marketAddr: Address;
|
|
35875
|
+
perpDuration: number;
|
|
35876
|
+
expiresAt: number;
|
|
35877
|
+
closed: boolean;
|
|
35878
|
+
}[] | undefined>;
|
|
35879
|
+
data: {
|
|
35880
|
+
optionId: bigint;
|
|
35881
|
+
id: string;
|
|
35882
|
+
ownerAddr: Address;
|
|
35883
|
+
marketAddr: Address;
|
|
35884
|
+
perpDuration: number;
|
|
35885
|
+
expiresAt: number;
|
|
35886
|
+
closed: boolean;
|
|
35887
|
+
}[];
|
|
34967
35888
|
};
|
|
34968
35889
|
//#endregion
|
|
34969
35890
|
//#region src/hooks/operators/useOperatorPerms.d.ts
|
|
@@ -34990,10 +35911,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
34990
35911
|
isRefetching: boolean;
|
|
34991
35912
|
isStale: boolean;
|
|
34992
35913
|
isEnabled: boolean;
|
|
34993
|
-
refetch: (options?:
|
|
34994
|
-
fetchStatus:
|
|
35914
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35915
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34995
35916
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
34996
|
-
queryKey:
|
|
35917
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
34997
35918
|
data: {
|
|
34998
35919
|
canExtend: boolean;
|
|
34999
35920
|
canExercise: boolean;
|
|
@@ -35024,10 +35945,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35024
35945
|
isRefetching: boolean;
|
|
35025
35946
|
isStale: boolean;
|
|
35026
35947
|
isEnabled: boolean;
|
|
35027
|
-
refetch: (options?:
|
|
35028
|
-
fetchStatus:
|
|
35948
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35949
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35029
35950
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35030
|
-
queryKey:
|
|
35951
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35031
35952
|
data: {
|
|
35032
35953
|
canExtend: boolean;
|
|
35033
35954
|
canExercise: boolean;
|
|
@@ -35058,10 +35979,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35058
35979
|
isRefetching: boolean;
|
|
35059
35980
|
isStale: boolean;
|
|
35060
35981
|
isEnabled: boolean;
|
|
35061
|
-
refetch: (options?:
|
|
35062
|
-
fetchStatus:
|
|
35982
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35983
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35063
35984
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35064
|
-
queryKey:
|
|
35985
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35065
35986
|
data: {
|
|
35066
35987
|
canExtend: boolean;
|
|
35067
35988
|
canExercise: boolean;
|
|
@@ -35092,10 +36013,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35092
36013
|
isRefetching: boolean;
|
|
35093
36014
|
isStale: boolean;
|
|
35094
36015
|
isEnabled: boolean;
|
|
35095
|
-
refetch: (options?:
|
|
35096
|
-
fetchStatus:
|
|
36016
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
36017
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35097
36018
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35098
|
-
queryKey:
|
|
36019
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35099
36020
|
data: {
|
|
35100
36021
|
canExtend: boolean;
|
|
35101
36022
|
canExercise: boolean;
|
|
@@ -35126,10 +36047,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35126
36047
|
isRefetching: boolean;
|
|
35127
36048
|
isStale: boolean;
|
|
35128
36049
|
isEnabled: boolean;
|
|
35129
|
-
refetch: (options?:
|
|
35130
|
-
fetchStatus:
|
|
36050
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
36051
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35131
36052
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35132
|
-
queryKey:
|
|
36053
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35133
36054
|
data: {
|
|
35134
36055
|
canExtend: boolean;
|
|
35135
36056
|
canExercise: boolean;
|
|
@@ -35160,10 +36081,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35160
36081
|
isRefetching: boolean;
|
|
35161
36082
|
isStale: boolean;
|
|
35162
36083
|
isEnabled: boolean;
|
|
35163
|
-
refetch: (options?:
|
|
35164
|
-
fetchStatus:
|
|
36084
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
36085
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35165
36086
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35166
|
-
queryKey:
|
|
36087
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35167
36088
|
data: {
|
|
35168
36089
|
canExtend: boolean;
|
|
35169
36090
|
canExercise: boolean;
|
|
@@ -35211,7 +36132,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35211
36132
|
isRefetching: boolean;
|
|
35212
36133
|
isStale: boolean;
|
|
35213
36134
|
isEnabled: boolean;
|
|
35214
|
-
refetch: (options?:
|
|
36135
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35215
36136
|
spendingApproval: bigint;
|
|
35216
36137
|
operatorAddr: string;
|
|
35217
36138
|
__typename: "UserMarketOperator";
|
|
@@ -35225,7 +36146,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35225
36146
|
address: string;
|
|
35226
36147
|
} | null;
|
|
35227
36148
|
}[] | undefined, Error>>;
|
|
35228
|
-
fetchStatus:
|
|
36149
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35229
36150
|
promise: Promise<{
|
|
35230
36151
|
spendingApproval: bigint;
|
|
35231
36152
|
operatorAddr: string;
|
|
@@ -35277,7 +36198,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35277
36198
|
isRefetching: boolean;
|
|
35278
36199
|
isStale: boolean;
|
|
35279
36200
|
isEnabled: boolean;
|
|
35280
|
-
refetch: (options?:
|
|
36201
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35281
36202
|
spendingApproval: bigint;
|
|
35282
36203
|
operatorAddr: string;
|
|
35283
36204
|
__typename: "UserMarketOperator";
|
|
@@ -35291,7 +36212,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35291
36212
|
address: string;
|
|
35292
36213
|
} | null;
|
|
35293
36214
|
}[] | undefined, Error>>;
|
|
35294
|
-
fetchStatus:
|
|
36215
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35295
36216
|
promise: Promise<{
|
|
35296
36217
|
spendingApproval: bigint;
|
|
35297
36218
|
operatorAddr: string;
|
|
@@ -35343,7 +36264,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35343
36264
|
isRefetching: boolean;
|
|
35344
36265
|
isStale: boolean;
|
|
35345
36266
|
isEnabled: boolean;
|
|
35346
|
-
refetch: (options?:
|
|
36267
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35347
36268
|
spendingApproval: bigint;
|
|
35348
36269
|
operatorAddr: string;
|
|
35349
36270
|
__typename: "UserMarketOperator";
|
|
@@ -35357,7 +36278,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35357
36278
|
address: string;
|
|
35358
36279
|
} | null;
|
|
35359
36280
|
}[] | undefined, Error>>;
|
|
35360
|
-
fetchStatus:
|
|
36281
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35361
36282
|
promise: Promise<{
|
|
35362
36283
|
spendingApproval: bigint;
|
|
35363
36284
|
operatorAddr: string;
|
|
@@ -35409,7 +36330,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35409
36330
|
isRefetching: boolean;
|
|
35410
36331
|
isStale: boolean;
|
|
35411
36332
|
isEnabled: boolean;
|
|
35412
|
-
refetch: (options?:
|
|
36333
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35413
36334
|
spendingApproval: bigint;
|
|
35414
36335
|
operatorAddr: string;
|
|
35415
36336
|
__typename: "UserMarketOperator";
|
|
@@ -35423,7 +36344,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35423
36344
|
address: string;
|
|
35424
36345
|
} | null;
|
|
35425
36346
|
}[] | undefined, Error>>;
|
|
35426
|
-
fetchStatus:
|
|
36347
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35427
36348
|
promise: Promise<{
|
|
35428
36349
|
spendingApproval: bigint;
|
|
35429
36350
|
operatorAddr: string;
|
|
@@ -35475,7 +36396,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35475
36396
|
isRefetching: boolean;
|
|
35476
36397
|
isStale: boolean;
|
|
35477
36398
|
isEnabled: boolean;
|
|
35478
|
-
refetch: (options?:
|
|
36399
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35479
36400
|
spendingApproval: bigint;
|
|
35480
36401
|
operatorAddr: string;
|
|
35481
36402
|
__typename: "UserMarketOperator";
|
|
@@ -35489,7 +36410,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35489
36410
|
address: string;
|
|
35490
36411
|
} | null;
|
|
35491
36412
|
}[] | undefined, Error>>;
|
|
35492
|
-
fetchStatus:
|
|
36413
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35493
36414
|
promise: Promise<{
|
|
35494
36415
|
spendingApproval: bigint;
|
|
35495
36416
|
operatorAddr: string;
|
|
@@ -35541,7 +36462,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35541
36462
|
isRefetching: boolean;
|
|
35542
36463
|
isStale: boolean;
|
|
35543
36464
|
isEnabled: boolean;
|
|
35544
|
-
refetch: (options?:
|
|
36465
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35545
36466
|
spendingApproval: bigint;
|
|
35546
36467
|
operatorAddr: string;
|
|
35547
36468
|
__typename: "UserMarketOperator";
|
|
@@ -35555,7 +36476,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35555
36476
|
address: string;
|
|
35556
36477
|
} | null;
|
|
35557
36478
|
}[] | undefined, Error>>;
|
|
35558
|
-
fetchStatus:
|
|
36479
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35559
36480
|
promise: Promise<{
|
|
35560
36481
|
spendingApproval: bigint;
|
|
35561
36482
|
operatorAddr: string;
|
|
@@ -35573,7 +36494,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35573
36494
|
};
|
|
35574
36495
|
//#endregion
|
|
35575
36496
|
//#region src/hooks/operators/useSetOperatorPerms.d.ts
|
|
35576
|
-
declare const useSetOperatorPerms: (marketAddr?: Address) =>
|
|
36497
|
+
declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
35577
36498
|
operator: Address;
|
|
35578
36499
|
canExtend: boolean;
|
|
35579
36500
|
canExercise: boolean;
|
|
@@ -35649,7 +36570,7 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
35649
36570
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
35650
36571
|
//#endregion
|
|
35651
36572
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
35652
|
-
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
36573
|
+
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
35653
36574
|
//#endregion
|
|
35654
36575
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
35655
36576
|
interface BurnPosition {
|
|
@@ -35693,7 +36614,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35693
36614
|
isRefetching: boolean;
|
|
35694
36615
|
isStale: boolean;
|
|
35695
36616
|
isEnabled: boolean;
|
|
35696
|
-
refetch: (options?:
|
|
36617
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35697
36618
|
tickLower: number;
|
|
35698
36619
|
tickUpper: number;
|
|
35699
36620
|
prevTickLower: number;
|
|
@@ -35704,7 +36625,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35704
36625
|
borrowedAmount0: bigint;
|
|
35705
36626
|
borrowedAmount1: bigint;
|
|
35706
36627
|
}[], viem145.ReadContractErrorType>>;
|
|
35707
|
-
fetchStatus:
|
|
36628
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35708
36629
|
promise: Promise<readonly {
|
|
35709
36630
|
tickLower: number;
|
|
35710
36631
|
tickUpper: number;
|
|
@@ -35716,7 +36637,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35716
36637
|
borrowedAmount0: bigint;
|
|
35717
36638
|
borrowedAmount1: bigint;
|
|
35718
36639
|
}[]>;
|
|
35719
|
-
queryKey:
|
|
36640
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35720
36641
|
data: readonly {
|
|
35721
36642
|
tickLower: number;
|
|
35722
36643
|
tickUpper: number;
|
|
@@ -35751,7 +36672,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35751
36672
|
isRefetching: boolean;
|
|
35752
36673
|
isStale: boolean;
|
|
35753
36674
|
isEnabled: boolean;
|
|
35754
|
-
refetch: (options?:
|
|
36675
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35755
36676
|
tickLower: number;
|
|
35756
36677
|
tickUpper: number;
|
|
35757
36678
|
prevTickLower: number;
|
|
@@ -35762,7 +36683,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35762
36683
|
borrowedAmount0: bigint;
|
|
35763
36684
|
borrowedAmount1: bigint;
|
|
35764
36685
|
}[], viem145.ReadContractErrorType>>;
|
|
35765
|
-
fetchStatus:
|
|
36686
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35766
36687
|
promise: Promise<readonly {
|
|
35767
36688
|
tickLower: number;
|
|
35768
36689
|
tickUpper: number;
|
|
@@ -35774,7 +36695,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35774
36695
|
borrowedAmount0: bigint;
|
|
35775
36696
|
borrowedAmount1: bigint;
|
|
35776
36697
|
}[]>;
|
|
35777
|
-
queryKey:
|
|
36698
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35778
36699
|
data: readonly {
|
|
35779
36700
|
tickLower: number;
|
|
35780
36701
|
tickUpper: number;
|
|
@@ -35809,7 +36730,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35809
36730
|
isRefetching: boolean;
|
|
35810
36731
|
isStale: boolean;
|
|
35811
36732
|
isEnabled: boolean;
|
|
35812
|
-
refetch: (options?:
|
|
36733
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35813
36734
|
tickLower: number;
|
|
35814
36735
|
tickUpper: number;
|
|
35815
36736
|
prevTickLower: number;
|
|
@@ -35820,7 +36741,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35820
36741
|
borrowedAmount0: bigint;
|
|
35821
36742
|
borrowedAmount1: bigint;
|
|
35822
36743
|
}[], viem145.ReadContractErrorType>>;
|
|
35823
|
-
fetchStatus:
|
|
36744
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35824
36745
|
promise: Promise<readonly {
|
|
35825
36746
|
tickLower: number;
|
|
35826
36747
|
tickUpper: number;
|
|
@@ -35832,7 +36753,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35832
36753
|
borrowedAmount0: bigint;
|
|
35833
36754
|
borrowedAmount1: bigint;
|
|
35834
36755
|
}[]>;
|
|
35835
|
-
queryKey:
|
|
36756
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35836
36757
|
data: readonly {
|
|
35837
36758
|
tickLower: number;
|
|
35838
36759
|
tickUpper: number;
|
|
@@ -35867,7 +36788,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35867
36788
|
isRefetching: boolean;
|
|
35868
36789
|
isStale: boolean;
|
|
35869
36790
|
isEnabled: boolean;
|
|
35870
|
-
refetch: (options?:
|
|
36791
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35871
36792
|
tickLower: number;
|
|
35872
36793
|
tickUpper: number;
|
|
35873
36794
|
prevTickLower: number;
|
|
@@ -35878,7 +36799,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35878
36799
|
borrowedAmount0: bigint;
|
|
35879
36800
|
borrowedAmount1: bigint;
|
|
35880
36801
|
}[], viem145.ReadContractErrorType>>;
|
|
35881
|
-
fetchStatus:
|
|
36802
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35882
36803
|
promise: Promise<readonly {
|
|
35883
36804
|
tickLower: number;
|
|
35884
36805
|
tickUpper: number;
|
|
@@ -35890,7 +36811,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35890
36811
|
borrowedAmount0: bigint;
|
|
35891
36812
|
borrowedAmount1: bigint;
|
|
35892
36813
|
}[]>;
|
|
35893
|
-
queryKey:
|
|
36814
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35894
36815
|
data: readonly {
|
|
35895
36816
|
tickLower: number;
|
|
35896
36817
|
tickUpper: number;
|
|
@@ -35925,7 +36846,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35925
36846
|
isRefetching: boolean;
|
|
35926
36847
|
isStale: boolean;
|
|
35927
36848
|
isEnabled: boolean;
|
|
35928
|
-
refetch: (options?:
|
|
36849
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35929
36850
|
tickLower: number;
|
|
35930
36851
|
tickUpper: number;
|
|
35931
36852
|
prevTickLower: number;
|
|
@@ -35936,7 +36857,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35936
36857
|
borrowedAmount0: bigint;
|
|
35937
36858
|
borrowedAmount1: bigint;
|
|
35938
36859
|
}[], viem145.ReadContractErrorType>>;
|
|
35939
|
-
fetchStatus:
|
|
36860
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35940
36861
|
promise: Promise<readonly {
|
|
35941
36862
|
tickLower: number;
|
|
35942
36863
|
tickUpper: number;
|
|
@@ -35948,7 +36869,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35948
36869
|
borrowedAmount0: bigint;
|
|
35949
36870
|
borrowedAmount1: bigint;
|
|
35950
36871
|
}[]>;
|
|
35951
|
-
queryKey:
|
|
36872
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
35952
36873
|
data: readonly {
|
|
35953
36874
|
tickLower: number;
|
|
35954
36875
|
tickUpper: number;
|
|
@@ -35983,7 +36904,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35983
36904
|
isRefetching: boolean;
|
|
35984
36905
|
isStale: boolean;
|
|
35985
36906
|
isEnabled: boolean;
|
|
35986
|
-
refetch: (options?:
|
|
36907
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly {
|
|
35987
36908
|
tickLower: number;
|
|
35988
36909
|
tickUpper: number;
|
|
35989
36910
|
prevTickLower: number;
|
|
@@ -35994,7 +36915,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35994
36915
|
borrowedAmount0: bigint;
|
|
35995
36916
|
borrowedAmount1: bigint;
|
|
35996
36917
|
}[], viem145.ReadContractErrorType>>;
|
|
35997
|
-
fetchStatus:
|
|
36918
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35998
36919
|
promise: Promise<readonly {
|
|
35999
36920
|
tickLower: number;
|
|
36000
36921
|
tickUpper: number;
|
|
@@ -36006,7 +36927,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36006
36927
|
borrowedAmount0: bigint;
|
|
36007
36928
|
borrowedAmount1: bigint;
|
|
36008
36929
|
}[]>;
|
|
36009
|
-
queryKey:
|
|
36930
|
+
queryKey: _tanstack_query_core0.QueryKey;
|
|
36010
36931
|
data: readonly {
|
|
36011
36932
|
tickLower: number;
|
|
36012
36933
|
tickUpper: number;
|
|
@@ -36032,7 +36953,7 @@ interface MintPositionParams {
|
|
|
36032
36953
|
tickUpper: number;
|
|
36033
36954
|
liquidity: bigint;
|
|
36034
36955
|
}
|
|
36035
|
-
declare const useMintLiquidity: (vaultAddr?: Address) =>
|
|
36956
|
+
declare const useMintLiquidity: (vaultAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
|
|
36036
36957
|
//#endregion
|
|
36037
36958
|
//#region src/hooks/vault/useVaultData.d.ts
|
|
36038
36959
|
declare const useVaultData: (vaultAddr?: Address) => {
|
|
@@ -36057,7 +36978,7 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
36057
36978
|
borrowedAmount0: Amount;
|
|
36058
36979
|
borrowedAmount1: Amount;
|
|
36059
36980
|
blocksCount: bigint;
|
|
36060
|
-
refetch: (options?:
|
|
36981
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem145.ReadContractErrorType>>;
|
|
36061
36982
|
};
|
|
36062
36983
|
//#endregion
|
|
36063
36984
|
//#region src/hooks/useLens.d.ts
|
|
@@ -61932,5 +62853,5 @@ declare const useApproval: () => {
|
|
|
61932
62853
|
reset: () => void;
|
|
61933
62854
|
};
|
|
61934
62855
|
//#endregion
|
|
61935
|
-
export {
|
|
61936
|
-
//# sourceMappingURL=client-
|
|
62856
|
+
export { formatCondensed as $, PriceDataPoint as A, usePerpsOperator as B, liquiditiesToAmount1 as C, getErc20 as Ct, token0ToToken1 as D, timelockLenses as Dt, roundTickUp as E, getUniswapMathLens as Et, useUserOperators as F, useExtendOption as G, useMintPerp as H, useOperatorPerms as I, useMintOption as J, useOptionPremium as K, useActiveUserPerps as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, uniswapMathLenses as Ot, useSetOperatorPerms as P, formatAmount as Q, useClosedUserPerps as R, liquiditiesToAmount0 as S, UniswapMathLens as St, roundTickDown as T, getTimelockMarket as Tt, OptionTimelineData as U, useClosePerp as V, useOptionTimeline as W, Amount as X, useMaxPositionSize as Y, EMPTY_ARRAY as Z, PRICE_PRECISION as _, useCurrentMarket as _t, batchGetAmountsFromLiquidity as a, unscalePrice as at, getPriceAtTick as b, TimelockMarket as bt, useLiquidityBlocks as c, wrapPrice as ct, usePriceAtTick as d, useMarketData as dt, formatUSD as et, UniswapPoolData as f, useExerciseOption as ft, getPayoutAtTick as g, TimelockProvider as gt, useCurrentPrice as h, useClosedUserOptions as ht, useVaultData as i, unscaleAmount as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, wrapPriceUnscaled as lt, useCurrentTick as m, useActiveUserOptions as mt, useLens as n, scaleAmount as nt, useMintLiquidity as o, wrapAmount as ot, usePoolData as p, OptionData as pt, useOptionPnl as q, useVaultTVL as r, scalePrice as rt, LiquidityBlockData as s, wrapAmountUnscaled as st, useApproval as t, formatVagueAmount as tt, usePriceHistory as u, zero as ut, getAmountsFromLiquidity as v, useTimelockConfig as vt, liquiditiesToAmounts as w, getTimelockLens as wt, getTickAtPrice as x, TimelockMarketData as xt, getNearestValidStrikeTick as y, TimelockLens as yt, useUserPerps as z };
|
|
62857
|
+
//# sourceMappingURL=client-DlkfUDwU.d.cts.map
|