timelock-sdk 0.0.95 → 0.0.96
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-BanYHaNs.d.cts → client-CCZ_Mj39.d.ts} +173 -166
- package/dist/{client-BSZsqyLp.d.ts → client-CLDy2ktP.d.cts} +121 -114
- package/dist/client.cjs +88 -5
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +89 -7
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-
|
|
1
|
+
import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-B_cHjOOB.cjs";
|
|
2
2
|
import * as viem145 from "viem";
|
|
3
|
-
import { Address, Client, GetContractReturnType, PublicClient } from "viem";
|
|
4
|
-
import Big from "big.js";
|
|
3
|
+
import { Address, Client, GetContractReturnType, Hex, PublicClient } from "viem";
|
|
5
4
|
import React, { ReactNode } from "react";
|
|
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 "
|
|
10
|
-
import
|
|
9
|
+
import * as _tanstack_query_core17 from "@tanstack/query-core";
|
|
10
|
+
import Big from "big.js";
|
|
11
11
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
12
12
|
|
|
13
13
|
//#region src/generated/graphql.d.ts
|
|
@@ -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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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_core17.RefetchOptions) => Promise<_tanstack_query_core17.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_core17.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;
|
|
@@ -34921,9 +34921,15 @@ type ExercisePerpBody = {
|
|
|
34921
34921
|
};
|
|
34922
34922
|
declare class PerpsOperator {
|
|
34923
34923
|
#private;
|
|
34924
|
-
private baseUrl;
|
|
34925
34924
|
constructor(baseUrl: string);
|
|
34926
34925
|
getOperatorAddr(): Promise<Address>;
|
|
34926
|
+
genAuthMessage(userAddr: Address): Promise<string>;
|
|
34927
|
+
validateAuthMessage(authMessage: string, signature: Hex): Promise<{
|
|
34928
|
+
address: `0x${string}`;
|
|
34929
|
+
createdAt: number;
|
|
34930
|
+
validUntil: number;
|
|
34931
|
+
}>;
|
|
34932
|
+
setAuth(authMessage: string, signature: Hex): void;
|
|
34927
34933
|
getUserPerps(userAddr: Address, marketAddr?: Address, type?: 'active' | 'closed', offset?: number, limit?: number): Promise<{
|
|
34928
34934
|
optionId: bigint;
|
|
34929
34935
|
id: string;
|
|
@@ -34944,7 +34950,7 @@ declare class PerpsOperator {
|
|
|
34944
34950
|
}
|
|
34945
34951
|
//#endregion
|
|
34946
34952
|
//#region src/hooks/perps/useClosePerp.d.ts
|
|
34947
|
-
declare const useClosePerp: () =>
|
|
34953
|
+
declare const useClosePerp: () => _tanstack_react_query0.UseMutationResult<{
|
|
34948
34954
|
txHash: string;
|
|
34949
34955
|
optionId: bigint;
|
|
34950
34956
|
}, Error, ExercisePerpBody, unknown>;
|
|
@@ -34953,9 +34959,10 @@ declare const useClosePerp: () => _tanstack_react_query6.UseMutationResult<{
|
|
|
34953
34959
|
declare const usePerpsOperator: () => {
|
|
34954
34960
|
operator: PerpsOperator | undefined;
|
|
34955
34961
|
address: `0x${string}` | undefined;
|
|
34962
|
+
signMessage: _tanstack_react_query0.UseMutationResult<void, Error, void, unknown>;
|
|
34956
34963
|
};
|
|
34957
34964
|
//#endregion
|
|
34958
|
-
//#region src/hooks/operators/
|
|
34965
|
+
//#region src/hooks/operators/useOperatorPerms.d.ts
|
|
34959
34966
|
declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, operatorAddr?: Address) => {
|
|
34960
34967
|
error: viem145.ReadContractErrorType;
|
|
34961
34968
|
isError: true;
|
|
@@ -34979,10 +34986,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
34979
34986
|
isRefetching: boolean;
|
|
34980
34987
|
isStale: boolean;
|
|
34981
34988
|
isEnabled: boolean;
|
|
34982
|
-
refetch: (options?:
|
|
34983
|
-
fetchStatus:
|
|
34989
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
34990
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
34984
34991
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
34985
|
-
queryKey:
|
|
34992
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
34986
34993
|
data: {
|
|
34987
34994
|
canExtend: boolean;
|
|
34988
34995
|
canExercise: boolean;
|
|
@@ -35013,10 +35020,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35013
35020
|
isRefetching: boolean;
|
|
35014
35021
|
isStale: boolean;
|
|
35015
35022
|
isEnabled: boolean;
|
|
35016
|
-
refetch: (options?:
|
|
35017
|
-
fetchStatus:
|
|
35023
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35024
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35018
35025
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35019
|
-
queryKey:
|
|
35026
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35020
35027
|
data: {
|
|
35021
35028
|
canExtend: boolean;
|
|
35022
35029
|
canExercise: boolean;
|
|
@@ -35047,10 +35054,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35047
35054
|
isRefetching: boolean;
|
|
35048
35055
|
isStale: boolean;
|
|
35049
35056
|
isEnabled: boolean;
|
|
35050
|
-
refetch: (options?:
|
|
35051
|
-
fetchStatus:
|
|
35057
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35058
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35052
35059
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35053
|
-
queryKey:
|
|
35060
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35054
35061
|
data: {
|
|
35055
35062
|
canExtend: boolean;
|
|
35056
35063
|
canExercise: boolean;
|
|
@@ -35081,10 +35088,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35081
35088
|
isRefetching: boolean;
|
|
35082
35089
|
isStale: boolean;
|
|
35083
35090
|
isEnabled: boolean;
|
|
35084
|
-
refetch: (options?:
|
|
35085
|
-
fetchStatus:
|
|
35091
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35092
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35086
35093
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35087
|
-
queryKey:
|
|
35094
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35088
35095
|
data: {
|
|
35089
35096
|
canExtend: boolean;
|
|
35090
35097
|
canExercise: boolean;
|
|
@@ -35115,10 +35122,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35115
35122
|
isRefetching: boolean;
|
|
35116
35123
|
isStale: boolean;
|
|
35117
35124
|
isEnabled: boolean;
|
|
35118
|
-
refetch: (options?:
|
|
35119
|
-
fetchStatus:
|
|
35125
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35126
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35120
35127
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35121
|
-
queryKey:
|
|
35128
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35122
35129
|
data: {
|
|
35123
35130
|
canExtend: boolean;
|
|
35124
35131
|
canExercise: boolean;
|
|
@@ -35149,10 +35156,10 @@ declare const useOperatorPerms: (marketAddr?: Address, userAddr?: Address, opera
|
|
|
35149
35156
|
isRefetching: boolean;
|
|
35150
35157
|
isStale: boolean;
|
|
35151
35158
|
isEnabled: boolean;
|
|
35152
|
-
refetch: (options?:
|
|
35153
|
-
fetchStatus:
|
|
35159
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [boolean, boolean, boolean, boolean, bigint], viem145.ReadContractErrorType>>;
|
|
35160
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35154
35161
|
promise: Promise<readonly [boolean, boolean, boolean, boolean, bigint]>;
|
|
35155
|
-
queryKey:
|
|
35162
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35156
35163
|
data: {
|
|
35157
35164
|
canExtend: boolean;
|
|
35158
35165
|
canExercise: boolean;
|
|
@@ -35200,7 +35207,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35200
35207
|
isRefetching: boolean;
|
|
35201
35208
|
isStale: boolean;
|
|
35202
35209
|
isEnabled: boolean;
|
|
35203
|
-
refetch: (options?:
|
|
35210
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35204
35211
|
spendingApproval: bigint;
|
|
35205
35212
|
operatorAddr: string;
|
|
35206
35213
|
__typename: "UserMarketOperator";
|
|
@@ -35214,7 +35221,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35214
35221
|
address: string;
|
|
35215
35222
|
} | null;
|
|
35216
35223
|
}[] | undefined, Error>>;
|
|
35217
|
-
fetchStatus:
|
|
35224
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35218
35225
|
promise: Promise<{
|
|
35219
35226
|
spendingApproval: bigint;
|
|
35220
35227
|
operatorAddr: string;
|
|
@@ -35266,7 +35273,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35266
35273
|
isRefetching: boolean;
|
|
35267
35274
|
isStale: boolean;
|
|
35268
35275
|
isEnabled: boolean;
|
|
35269
|
-
refetch: (options?:
|
|
35276
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35270
35277
|
spendingApproval: bigint;
|
|
35271
35278
|
operatorAddr: string;
|
|
35272
35279
|
__typename: "UserMarketOperator";
|
|
@@ -35280,7 +35287,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35280
35287
|
address: string;
|
|
35281
35288
|
} | null;
|
|
35282
35289
|
}[] | undefined, Error>>;
|
|
35283
|
-
fetchStatus:
|
|
35290
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35284
35291
|
promise: Promise<{
|
|
35285
35292
|
spendingApproval: bigint;
|
|
35286
35293
|
operatorAddr: string;
|
|
@@ -35332,7 +35339,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35332
35339
|
isRefetching: boolean;
|
|
35333
35340
|
isStale: boolean;
|
|
35334
35341
|
isEnabled: boolean;
|
|
35335
|
-
refetch: (options?:
|
|
35342
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35336
35343
|
spendingApproval: bigint;
|
|
35337
35344
|
operatorAddr: string;
|
|
35338
35345
|
__typename: "UserMarketOperator";
|
|
@@ -35346,7 +35353,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35346
35353
|
address: string;
|
|
35347
35354
|
} | null;
|
|
35348
35355
|
}[] | undefined, Error>>;
|
|
35349
|
-
fetchStatus:
|
|
35356
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35350
35357
|
promise: Promise<{
|
|
35351
35358
|
spendingApproval: bigint;
|
|
35352
35359
|
operatorAddr: string;
|
|
@@ -35398,7 +35405,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35398
35405
|
isRefetching: boolean;
|
|
35399
35406
|
isStale: boolean;
|
|
35400
35407
|
isEnabled: boolean;
|
|
35401
|
-
refetch: (options?:
|
|
35408
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35402
35409
|
spendingApproval: bigint;
|
|
35403
35410
|
operatorAddr: string;
|
|
35404
35411
|
__typename: "UserMarketOperator";
|
|
@@ -35412,7 +35419,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35412
35419
|
address: string;
|
|
35413
35420
|
} | null;
|
|
35414
35421
|
}[] | undefined, Error>>;
|
|
35415
|
-
fetchStatus:
|
|
35422
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35416
35423
|
promise: Promise<{
|
|
35417
35424
|
spendingApproval: bigint;
|
|
35418
35425
|
operatorAddr: string;
|
|
@@ -35464,7 +35471,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35464
35471
|
isRefetching: boolean;
|
|
35465
35472
|
isStale: boolean;
|
|
35466
35473
|
isEnabled: boolean;
|
|
35467
|
-
refetch: (options?:
|
|
35474
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35468
35475
|
spendingApproval: bigint;
|
|
35469
35476
|
operatorAddr: string;
|
|
35470
35477
|
__typename: "UserMarketOperator";
|
|
@@ -35478,7 +35485,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35478
35485
|
address: string;
|
|
35479
35486
|
} | null;
|
|
35480
35487
|
}[] | undefined, Error>>;
|
|
35481
|
-
fetchStatus:
|
|
35488
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35482
35489
|
promise: Promise<{
|
|
35483
35490
|
spendingApproval: bigint;
|
|
35484
35491
|
operatorAddr: string;
|
|
@@ -35530,7 +35537,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35530
35537
|
isRefetching: boolean;
|
|
35531
35538
|
isStale: boolean;
|
|
35532
35539
|
isEnabled: boolean;
|
|
35533
|
-
refetch: (options?:
|
|
35540
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<{
|
|
35534
35541
|
spendingApproval: bigint;
|
|
35535
35542
|
operatorAddr: string;
|
|
35536
35543
|
__typename: "UserMarketOperator";
|
|
@@ -35544,7 +35551,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35544
35551
|
address: string;
|
|
35545
35552
|
} | null;
|
|
35546
35553
|
}[] | undefined, Error>>;
|
|
35547
|
-
fetchStatus:
|
|
35554
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35548
35555
|
promise: Promise<{
|
|
35549
35556
|
spendingApproval: bigint;
|
|
35550
35557
|
operatorAddr: string;
|
|
@@ -35562,7 +35569,7 @@ declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
|
35562
35569
|
};
|
|
35563
35570
|
//#endregion
|
|
35564
35571
|
//#region src/hooks/operators/useSetOperatorPerms.d.ts
|
|
35565
|
-
declare const useSetOperatorPerms: (marketAddr?: Address) =>
|
|
35572
|
+
declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
35566
35573
|
operator: Address;
|
|
35567
35574
|
canExtend: boolean;
|
|
35568
35575
|
canExercise: boolean;
|
|
@@ -35638,7 +35645,7 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
35638
35645
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
35639
35646
|
//#endregion
|
|
35640
35647
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
35641
|
-
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) =>
|
|
35648
|
+
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
35642
35649
|
//#endregion
|
|
35643
35650
|
//#region src/hooks/vault/useBurnLiquidity.d.ts
|
|
35644
35651
|
interface BurnPosition {
|
|
@@ -35682,7 +35689,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35682
35689
|
isRefetching: boolean;
|
|
35683
35690
|
isStale: boolean;
|
|
35684
35691
|
isEnabled: boolean;
|
|
35685
|
-
refetch: (options?:
|
|
35692
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35686
35693
|
tickLower: number;
|
|
35687
35694
|
tickUpper: number;
|
|
35688
35695
|
prevTickLower: number;
|
|
@@ -35693,7 +35700,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35693
35700
|
borrowedAmount0: bigint;
|
|
35694
35701
|
borrowedAmount1: bigint;
|
|
35695
35702
|
}[], viem145.ReadContractErrorType>>;
|
|
35696
|
-
fetchStatus:
|
|
35703
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35697
35704
|
promise: Promise<readonly {
|
|
35698
35705
|
tickLower: number;
|
|
35699
35706
|
tickUpper: number;
|
|
@@ -35705,7 +35712,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35705
35712
|
borrowedAmount0: bigint;
|
|
35706
35713
|
borrowedAmount1: bigint;
|
|
35707
35714
|
}[]>;
|
|
35708
|
-
queryKey:
|
|
35715
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35709
35716
|
data: readonly {
|
|
35710
35717
|
tickLower: number;
|
|
35711
35718
|
tickUpper: number;
|
|
@@ -35740,7 +35747,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35740
35747
|
isRefetching: boolean;
|
|
35741
35748
|
isStale: boolean;
|
|
35742
35749
|
isEnabled: boolean;
|
|
35743
|
-
refetch: (options?:
|
|
35750
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35744
35751
|
tickLower: number;
|
|
35745
35752
|
tickUpper: number;
|
|
35746
35753
|
prevTickLower: number;
|
|
@@ -35751,7 +35758,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35751
35758
|
borrowedAmount0: bigint;
|
|
35752
35759
|
borrowedAmount1: bigint;
|
|
35753
35760
|
}[], viem145.ReadContractErrorType>>;
|
|
35754
|
-
fetchStatus:
|
|
35761
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35755
35762
|
promise: Promise<readonly {
|
|
35756
35763
|
tickLower: number;
|
|
35757
35764
|
tickUpper: number;
|
|
@@ -35763,7 +35770,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35763
35770
|
borrowedAmount0: bigint;
|
|
35764
35771
|
borrowedAmount1: bigint;
|
|
35765
35772
|
}[]>;
|
|
35766
|
-
queryKey:
|
|
35773
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35767
35774
|
data: readonly {
|
|
35768
35775
|
tickLower: number;
|
|
35769
35776
|
tickUpper: number;
|
|
@@ -35798,7 +35805,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35798
35805
|
isRefetching: boolean;
|
|
35799
35806
|
isStale: boolean;
|
|
35800
35807
|
isEnabled: boolean;
|
|
35801
|
-
refetch: (options?:
|
|
35808
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35802
35809
|
tickLower: number;
|
|
35803
35810
|
tickUpper: number;
|
|
35804
35811
|
prevTickLower: number;
|
|
@@ -35809,7 +35816,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35809
35816
|
borrowedAmount0: bigint;
|
|
35810
35817
|
borrowedAmount1: bigint;
|
|
35811
35818
|
}[], viem145.ReadContractErrorType>>;
|
|
35812
|
-
fetchStatus:
|
|
35819
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35813
35820
|
promise: Promise<readonly {
|
|
35814
35821
|
tickLower: number;
|
|
35815
35822
|
tickUpper: number;
|
|
@@ -35821,7 +35828,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35821
35828
|
borrowedAmount0: bigint;
|
|
35822
35829
|
borrowedAmount1: bigint;
|
|
35823
35830
|
}[]>;
|
|
35824
|
-
queryKey:
|
|
35831
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35825
35832
|
data: readonly {
|
|
35826
35833
|
tickLower: number;
|
|
35827
35834
|
tickUpper: number;
|
|
@@ -35856,7 +35863,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35856
35863
|
isRefetching: boolean;
|
|
35857
35864
|
isStale: boolean;
|
|
35858
35865
|
isEnabled: boolean;
|
|
35859
|
-
refetch: (options?:
|
|
35866
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35860
35867
|
tickLower: number;
|
|
35861
35868
|
tickUpper: number;
|
|
35862
35869
|
prevTickLower: number;
|
|
@@ -35867,7 +35874,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35867
35874
|
borrowedAmount0: bigint;
|
|
35868
35875
|
borrowedAmount1: bigint;
|
|
35869
35876
|
}[], viem145.ReadContractErrorType>>;
|
|
35870
|
-
fetchStatus:
|
|
35877
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35871
35878
|
promise: Promise<readonly {
|
|
35872
35879
|
tickLower: number;
|
|
35873
35880
|
tickUpper: number;
|
|
@@ -35879,7 +35886,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35879
35886
|
borrowedAmount0: bigint;
|
|
35880
35887
|
borrowedAmount1: bigint;
|
|
35881
35888
|
}[]>;
|
|
35882
|
-
queryKey:
|
|
35889
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35883
35890
|
data: readonly {
|
|
35884
35891
|
tickLower: number;
|
|
35885
35892
|
tickUpper: number;
|
|
@@ -35914,7 +35921,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35914
35921
|
isRefetching: boolean;
|
|
35915
35922
|
isStale: boolean;
|
|
35916
35923
|
isEnabled: boolean;
|
|
35917
|
-
refetch: (options?:
|
|
35924
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35918
35925
|
tickLower: number;
|
|
35919
35926
|
tickUpper: number;
|
|
35920
35927
|
prevTickLower: number;
|
|
@@ -35925,7 +35932,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35925
35932
|
borrowedAmount0: bigint;
|
|
35926
35933
|
borrowedAmount1: bigint;
|
|
35927
35934
|
}[], viem145.ReadContractErrorType>>;
|
|
35928
|
-
fetchStatus:
|
|
35935
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35929
35936
|
promise: Promise<readonly {
|
|
35930
35937
|
tickLower: number;
|
|
35931
35938
|
tickUpper: number;
|
|
@@ -35937,7 +35944,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35937
35944
|
borrowedAmount0: bigint;
|
|
35938
35945
|
borrowedAmount1: bigint;
|
|
35939
35946
|
}[]>;
|
|
35940
|
-
queryKey:
|
|
35947
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35941
35948
|
data: readonly {
|
|
35942
35949
|
tickLower: number;
|
|
35943
35950
|
tickUpper: number;
|
|
@@ -35972,7 +35979,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35972
35979
|
isRefetching: boolean;
|
|
35973
35980
|
isStale: boolean;
|
|
35974
35981
|
isEnabled: boolean;
|
|
35975
|
-
refetch: (options?:
|
|
35982
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly {
|
|
35976
35983
|
tickLower: number;
|
|
35977
35984
|
tickUpper: number;
|
|
35978
35985
|
prevTickLower: number;
|
|
@@ -35983,7 +35990,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35983
35990
|
borrowedAmount0: bigint;
|
|
35984
35991
|
borrowedAmount1: bigint;
|
|
35985
35992
|
}[], viem145.ReadContractErrorType>>;
|
|
35986
|
-
fetchStatus:
|
|
35993
|
+
fetchStatus: _tanstack_query_core17.FetchStatus;
|
|
35987
35994
|
promise: Promise<readonly {
|
|
35988
35995
|
tickLower: number;
|
|
35989
35996
|
tickUpper: number;
|
|
@@ -35995,7 +36002,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35995
36002
|
borrowedAmount0: bigint;
|
|
35996
36003
|
borrowedAmount1: bigint;
|
|
35997
36004
|
}[]>;
|
|
35998
|
-
queryKey:
|
|
36005
|
+
queryKey: _tanstack_query_core17.QueryKey;
|
|
35999
36006
|
data: readonly {
|
|
36000
36007
|
tickLower: number;
|
|
36001
36008
|
tickUpper: number;
|
|
@@ -36021,7 +36028,7 @@ interface MintPositionParams {
|
|
|
36021
36028
|
tickUpper: number;
|
|
36022
36029
|
liquidity: bigint;
|
|
36023
36030
|
}
|
|
36024
|
-
declare const useMintLiquidity: (vaultAddr?: Address) =>
|
|
36031
|
+
declare const useMintLiquidity: (vaultAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, MintPositionParams | MintPositionParams[], unknown>;
|
|
36025
36032
|
//#endregion
|
|
36026
36033
|
//#region src/hooks/vault/useVaultData.d.ts
|
|
36027
36034
|
declare const useVaultData: (vaultAddr?: Address) => {
|
|
@@ -36046,7 +36053,7 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
36046
36053
|
borrowedAmount0: Amount;
|
|
36047
36054
|
borrowedAmount1: Amount;
|
|
36048
36055
|
blocksCount: bigint;
|
|
36049
|
-
refetch: (options?:
|
|
36056
|
+
refetch: (options?: _tanstack_query_core17.RefetchOptions) => Promise<_tanstack_query_core17.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem145.ReadContractErrorType>>;
|
|
36050
36057
|
};
|
|
36051
36058
|
//#endregion
|
|
36052
36059
|
//#region src/hooks/useLens.d.ts
|
|
@@ -61922,4 +61929,4 @@ declare const useApproval: () => {
|
|
|
61922
61929
|
};
|
|
61923
61930
|
//#endregion
|
|
61924
61931
|
export { scaleAmount as $, PriceDataPoint as A, OptionTimelineData as B, liquiditiesToAmount1 as C, getUniswapMathLens as Ct, token0ToToken1 as D, roundTickUp as E, useUserOperators as F, useMintOption as G, useExtendOption as H, useOperatorPerms as I, EMPTY_ARRAY as J, useMaxPositionSize as K, usePerpsOperator as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, useSetOperatorPerms as P, formatVagueAmount as Q, useClosePerp as R, liquiditiesToAmount0 as S, getTimelockMarket as St, roundTickDown as T, uniswapMathLenses as Tt, useOptionPremium as U, useOptionTimeline as V, useOptionPnl as W, formatCondensed as X, formatAmount as Y, formatUSD as Z, PRICE_PRECISION as _, TimelockMarket as _t, batchGetAmountsFromLiquidity as a, wrapPrice as at, getPriceAtTick as b, getErc20 as bt, useLiquidityBlocks as c, useMarketData as ct, usePriceAtTick as d, useActiveUserOptions as dt, scalePrice as et, UniswapPoolData as f, useClosedUserOptions as ft, getPayoutAtTick as g, TimelockLens as gt, useCurrentPrice as h, useTimelockConfig as ht, useVaultData as i, wrapAmountUnscaled as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, useExerciseOption as lt, useCurrentTick as m, useCurrentMarket as mt, useLens as n, unscalePrice as nt, useMintLiquidity as o, wrapPriceUnscaled as ot, usePoolData as p, TimelockProvider as pt, Amount as q, useVaultTVL as r, wrapAmount as rt, LiquidityBlockData as s, zero as st, useApproval as t, unscaleAmount as tt, usePriceHistory as u, OptionData as ut, getAmountsFromLiquidity as v, TimelockMarketData as vt, liquiditiesToAmounts as w, timelockLenses as wt, getTickAtPrice as x, getTimelockLens as xt, getNearestValidStrikeTick as y, UniswapMathLens as yt, useMintPerp as z };
|
|
61925
|
-
//# sourceMappingURL=client-
|
|
61932
|
+
//# sourceMappingURL=client-CLDy2ktP.d.cts.map
|