timelock-sdk 0.0.79 → 0.0.81
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-h7lO3ik2.d.cts → client-CPNANzx8.d.cts} +711 -641
- package/dist/{client-D9QtRxOF.d.ts → client-DSnOWcqf.d.ts} +856 -786
- package/dist/client.cjs +245 -160
- 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 +242 -162
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-CI-AZi8X.js → optionUtils-CoIk8zAr.js} +97 -2
- package/dist/optionUtils-CoIk8zAr.js.map +1 -0
- package/dist/{optionUtils-CDD_7qmy.cjs → optionUtils-DAjhbiQ5.cjs} +108 -1
- package/dist/optionUtils-DAjhbiQ5.cjs.map +1 -0
- package/dist/package.cjs +3 -1
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/package.json +1 -1
- package/dist/optionUtils-CDD_7qmy.cjs.map +0 -1
- package/dist/optionUtils-CI-AZi8X.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-C54iWXpi.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem131 from "viem";
|
|
3
3
|
import { Address, Client, GetContractReturnType, PublicClient } from "viem";
|
|
4
4
|
import Big from "big.js";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
@@ -10,6 +10,215 @@ import "graphql";
|
|
|
10
10
|
import * as _tanstack_query_core0 from "@tanstack/query-core";
|
|
11
11
|
import * as _wagmi_core0 from "@wagmi/core";
|
|
12
12
|
|
|
13
|
+
//#region src/generated/graphql.d.ts
|
|
14
|
+
type Exact<T$1 extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}> = { [K in keyof T$1]: T$1[K] };
|
|
17
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
18
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
19
|
+
type Scalars = {
|
|
20
|
+
ID: {
|
|
21
|
+
input: string;
|
|
22
|
+
output: string;
|
|
23
|
+
};
|
|
24
|
+
String: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
Boolean: {
|
|
29
|
+
input: boolean;
|
|
30
|
+
output: boolean;
|
|
31
|
+
};
|
|
32
|
+
Int: {
|
|
33
|
+
input: number;
|
|
34
|
+
output: number;
|
|
35
|
+
};
|
|
36
|
+
Float: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
jsonb: {
|
|
41
|
+
input: any;
|
|
42
|
+
output: any;
|
|
43
|
+
};
|
|
44
|
+
numeric: {
|
|
45
|
+
input: any;
|
|
46
|
+
output: any;
|
|
47
|
+
};
|
|
48
|
+
optiontype: {
|
|
49
|
+
input: any;
|
|
50
|
+
output: any;
|
|
51
|
+
};
|
|
52
|
+
timestamptz: {
|
|
53
|
+
input: any;
|
|
54
|
+
output: any;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type UserOptionFieldsFragment = {
|
|
58
|
+
__typename: 'UserOption';
|
|
59
|
+
id: string;
|
|
60
|
+
optionId: any;
|
|
61
|
+
optionType: any;
|
|
62
|
+
strikeTick: number;
|
|
63
|
+
entryTick: number;
|
|
64
|
+
startTick: number;
|
|
65
|
+
strikePrice: any;
|
|
66
|
+
entryPrice: any;
|
|
67
|
+
expiresAt: any;
|
|
68
|
+
createdAt: any;
|
|
69
|
+
premium: any;
|
|
70
|
+
protocolFee: any;
|
|
71
|
+
realizedPayout: any;
|
|
72
|
+
liquiditiesAtOpen: Array<string>;
|
|
73
|
+
liquiditiesCurrent: Array<string>;
|
|
74
|
+
positionSizeAtOpen: any;
|
|
75
|
+
positionSizeCurrent: any;
|
|
76
|
+
fullyExercised: boolean;
|
|
77
|
+
owner?: {
|
|
78
|
+
__typename: 'TimelockMarketUser';
|
|
79
|
+
address: string;
|
|
80
|
+
} | null;
|
|
81
|
+
market?: {
|
|
82
|
+
__typename: 'TimelockMarket';
|
|
83
|
+
address: string;
|
|
84
|
+
} | null;
|
|
85
|
+
};
|
|
86
|
+
type GetActiveUserOptionsQueryVariables = Exact<{
|
|
87
|
+
userAddr: Scalars['String']['input'];
|
|
88
|
+
}>;
|
|
89
|
+
type GetActiveUserOptionsQuery = {
|
|
90
|
+
__typename: 'query_root';
|
|
91
|
+
UserOption: Array<{
|
|
92
|
+
__typename: 'UserOption';
|
|
93
|
+
} & UserOptionFieldsFragment>;
|
|
94
|
+
};
|
|
95
|
+
type GetActiveUserOptionsByMarketQueryVariables = Exact<{
|
|
96
|
+
userAddr: Scalars['String']['input'];
|
|
97
|
+
marketAddr: Scalars['String']['input'];
|
|
98
|
+
}>;
|
|
99
|
+
type GetActiveUserOptionsByMarketQuery = {
|
|
100
|
+
__typename: 'query_root';
|
|
101
|
+
UserOption: Array<{
|
|
102
|
+
__typename: 'UserOption';
|
|
103
|
+
} & UserOptionFieldsFragment>;
|
|
104
|
+
};
|
|
105
|
+
type GetClosedUserOptionsQueryVariables = Exact<{
|
|
106
|
+
userAddr: Scalars['String']['input'];
|
|
107
|
+
}>;
|
|
108
|
+
type GetClosedUserOptionsQuery = {
|
|
109
|
+
__typename: 'query_root';
|
|
110
|
+
UserOption: Array<{
|
|
111
|
+
__typename: 'UserOption';
|
|
112
|
+
} & UserOptionFieldsFragment>;
|
|
113
|
+
};
|
|
114
|
+
type GetClosedUserOptionsByMarketQueryVariables = Exact<{
|
|
115
|
+
userAddr: Scalars['String']['input'];
|
|
116
|
+
marketAddr: Scalars['String']['input'];
|
|
117
|
+
}>;
|
|
118
|
+
type GetClosedUserOptionsByMarketQuery = {
|
|
119
|
+
__typename: 'query_root';
|
|
120
|
+
UserOption: Array<{
|
|
121
|
+
__typename: 'UserOption';
|
|
122
|
+
} & UserOptionFieldsFragment>;
|
|
123
|
+
};
|
|
124
|
+
type GetMarketDataQueryVariables = Exact<{
|
|
125
|
+
marketAddr: Scalars['String']['input'];
|
|
126
|
+
}>;
|
|
127
|
+
type GetMarketDataQuery = {
|
|
128
|
+
__typename: 'query_root';
|
|
129
|
+
TimelockMarket: Array<{
|
|
130
|
+
__typename: 'TimelockMarket';
|
|
131
|
+
id: string;
|
|
132
|
+
address: string;
|
|
133
|
+
optionsCount: any;
|
|
134
|
+
tradersCount: any;
|
|
135
|
+
vault: string;
|
|
136
|
+
pool: string;
|
|
137
|
+
tickSpacing: number;
|
|
138
|
+
optionAssetIsToken0: boolean;
|
|
139
|
+
optionAsset: string;
|
|
140
|
+
payoutAsset: string;
|
|
141
|
+
optionAssetDecimals: number;
|
|
142
|
+
payoutAssetDecimals: number;
|
|
143
|
+
optionAssetSymbol: string;
|
|
144
|
+
payoutAssetSymbol: string;
|
|
145
|
+
optionAssetName: string;
|
|
146
|
+
payoutAssetName: string;
|
|
147
|
+
}>;
|
|
148
|
+
};
|
|
149
|
+
type GetUserMarketOperatorsQueryVariables = Exact<{
|
|
150
|
+
userAddr: Scalars['String']['input'];
|
|
151
|
+
marketAddr: Scalars['String']['input'];
|
|
152
|
+
}>;
|
|
153
|
+
type GetUserMarketOperatorsQuery = {
|
|
154
|
+
__typename: 'query_root';
|
|
155
|
+
UserMarketOperator: Array<{
|
|
156
|
+
__typename: 'UserMarketOperator';
|
|
157
|
+
id: string;
|
|
158
|
+
canExtend: boolean;
|
|
159
|
+
canExercise: boolean;
|
|
160
|
+
canTransfer: boolean;
|
|
161
|
+
canMint: boolean;
|
|
162
|
+
spendingApproval: any;
|
|
163
|
+
operator?: {
|
|
164
|
+
__typename: 'MarketOperator';
|
|
165
|
+
address: string;
|
|
166
|
+
} | null;
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
169
|
+
type GetOptionEventsQueryVariables = Exact<{
|
|
170
|
+
marketAddr: Scalars['String']['input'];
|
|
171
|
+
optionId: Scalars['numeric']['input'];
|
|
172
|
+
}>;
|
|
173
|
+
type GetOptionEventsQuery = {
|
|
174
|
+
__typename: 'query_root';
|
|
175
|
+
MintOptionEvent: Array<{
|
|
176
|
+
__typename: 'MintOptionEvent';
|
|
177
|
+
id: string;
|
|
178
|
+
optionType: number;
|
|
179
|
+
strikeTick: number;
|
|
180
|
+
currentTick: number;
|
|
181
|
+
expiresAt: any;
|
|
182
|
+
premium: any;
|
|
183
|
+
protocolFee: any;
|
|
184
|
+
liquidities: Array<string>;
|
|
185
|
+
timestamp: any;
|
|
186
|
+
blockNumber: any;
|
|
187
|
+
transactionHash: string;
|
|
188
|
+
}>;
|
|
189
|
+
ExerciseOptionEvent: Array<{
|
|
190
|
+
__typename: 'ExerciseOptionEvent';
|
|
191
|
+
id: string;
|
|
192
|
+
liquidities: Array<string>;
|
|
193
|
+
currentTick: number;
|
|
194
|
+
payout: any;
|
|
195
|
+
timestamp: any;
|
|
196
|
+
blockNumber: any;
|
|
197
|
+
transactionHash: string;
|
|
198
|
+
}>;
|
|
199
|
+
ExtendOptionEvent: Array<{
|
|
200
|
+
__typename: 'ExtendOptionEvent';
|
|
201
|
+
id: string;
|
|
202
|
+
premium: any;
|
|
203
|
+
protocolFee: any;
|
|
204
|
+
currentTick: number;
|
|
205
|
+
addedDuration: any;
|
|
206
|
+
timestamp: any;
|
|
207
|
+
blockNumber: any;
|
|
208
|
+
transactionHash: string;
|
|
209
|
+
}>;
|
|
210
|
+
};
|
|
211
|
+
type SdkFunctionWrapper = <T$1>(action: (requestHeaders?: Record<string, string>) => Promise<T$1>, operationName: string, operationType?: string, variables?: any) => Promise<T$1>;
|
|
212
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
213
|
+
GetActiveUserOptions(variables: GetActiveUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsQuery>;
|
|
214
|
+
GetActiveUserOptionsByMarket(variables: GetActiveUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsByMarketQuery>;
|
|
215
|
+
GetClosedUserOptions(variables: GetClosedUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsQuery>;
|
|
216
|
+
GetClosedUserOptionsByMarket(variables: GetClosedUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsByMarketQuery>;
|
|
217
|
+
GetMarketData(variables: GetMarketDataQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMarketDataQuery>;
|
|
218
|
+
GetUserMarketOperators(variables: GetUserMarketOperatorsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUserMarketOperatorsQuery>;
|
|
219
|
+
GetOptionEvents(variables: GetOptionEventsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOptionEventsQuery>;
|
|
220
|
+
};
|
|
221
|
+
//#endregion
|
|
13
222
|
//#region src/lib/contracts.d.ts
|
|
14
223
|
type TimelockMarket = GetContractReturnType<typeof optionsMarketAbi, Client, Address>;
|
|
15
224
|
type TimelockLens = GetContractReturnType<typeof lensAbi, Client, Address>;
|
|
@@ -19,7 +228,7 @@ type TimelockMarketData = Awaited<ReturnType<TimelockLens['read']['getMarketData
|
|
|
19
228
|
};
|
|
20
229
|
declare const getErc20: (address: Address, client: Client) => {
|
|
21
230
|
read: {
|
|
22
|
-
symbol: (options?:
|
|
231
|
+
symbol: (options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
23
232
|
readonly type: "constructor";
|
|
24
233
|
readonly inputs: readonly [{
|
|
25
234
|
readonly name: "name_";
|
|
@@ -198,7 +407,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
198
407
|
}];
|
|
199
408
|
readonly stateMutability: "nonpayable";
|
|
200
409
|
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
201
|
-
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?:
|
|
410
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
202
411
|
readonly type: "constructor";
|
|
203
412
|
readonly inputs: readonly [{
|
|
204
413
|
readonly name: "name_";
|
|
@@ -377,7 +586,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
377
586
|
}];
|
|
378
587
|
readonly stateMutability: "nonpayable";
|
|
379
588
|
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
380
|
-
balanceOf: (args: readonly [`0x${string}`], options?:
|
|
589
|
+
balanceOf: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
381
590
|
readonly type: "constructor";
|
|
382
591
|
readonly inputs: readonly [{
|
|
383
592
|
readonly name: "name_";
|
|
@@ -556,7 +765,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
556
765
|
}];
|
|
557
766
|
readonly stateMutability: "nonpayable";
|
|
558
767
|
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
559
|
-
decimals: (options?:
|
|
768
|
+
decimals: (options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
560
769
|
readonly type: "constructor";
|
|
561
770
|
readonly inputs: readonly [{
|
|
562
771
|
readonly name: "name_";
|
|
@@ -735,7 +944,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
735
944
|
}];
|
|
736
945
|
readonly stateMutability: "nonpayable";
|
|
737
946
|
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
738
|
-
name: (options?:
|
|
947
|
+
name: (options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
739
948
|
readonly type: "constructor";
|
|
740
949
|
readonly inputs: readonly [{
|
|
741
950
|
readonly name: "name_";
|
|
@@ -914,7 +1123,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
914
1123
|
}];
|
|
915
1124
|
readonly stateMutability: "nonpayable";
|
|
916
1125
|
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
917
|
-
totalSupply: (options?:
|
|
1126
|
+
totalSupply: (options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
918
1127
|
readonly type: "constructor";
|
|
919
1128
|
readonly inputs: readonly [{
|
|
920
1129
|
readonly name: "name_";
|
|
@@ -1095,7 +1304,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1095
1304
|
}], "totalSupply", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
1096
1305
|
};
|
|
1097
1306
|
estimateGas: {
|
|
1098
|
-
approve: (args: readonly [`0x${string}`, bigint], options:
|
|
1307
|
+
approve: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1099
1308
|
readonly type: "constructor";
|
|
1100
1309
|
readonly inputs: readonly [{
|
|
1101
1310
|
readonly name: "name_";
|
|
@@ -1273,8 +1482,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1273
1482
|
readonly internalType: "bool";
|
|
1274
1483
|
}];
|
|
1275
1484
|
readonly stateMutability: "nonpayable";
|
|
1276
|
-
}], "approve", readonly [`0x${string}`, bigint],
|
|
1277
|
-
decreaseAllowance: (args: readonly [`0x${string}`, bigint], options:
|
|
1485
|
+
}], "approve", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
1486
|
+
decreaseAllowance: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1278
1487
|
readonly type: "constructor";
|
|
1279
1488
|
readonly inputs: readonly [{
|
|
1280
1489
|
readonly name: "name_";
|
|
@@ -1452,8 +1661,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1452
1661
|
readonly internalType: "bool";
|
|
1453
1662
|
}];
|
|
1454
1663
|
readonly stateMutability: "nonpayable";
|
|
1455
|
-
}], "decreaseAllowance", readonly [`0x${string}`, bigint],
|
|
1456
|
-
increaseAllowance: (args: readonly [`0x${string}`, bigint], options:
|
|
1664
|
+
}], "decreaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
1665
|
+
increaseAllowance: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1457
1666
|
readonly type: "constructor";
|
|
1458
1667
|
readonly inputs: readonly [{
|
|
1459
1668
|
readonly name: "name_";
|
|
@@ -1631,8 +1840,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1631
1840
|
readonly internalType: "bool";
|
|
1632
1841
|
}];
|
|
1633
1842
|
readonly stateMutability: "nonpayable";
|
|
1634
|
-
}], "increaseAllowance", readonly [`0x${string}`, bigint],
|
|
1635
|
-
transfer: (args: readonly [`0x${string}`, bigint], options:
|
|
1843
|
+
}], "increaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
1844
|
+
transfer: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1636
1845
|
readonly type: "constructor";
|
|
1637
1846
|
readonly inputs: readonly [{
|
|
1638
1847
|
readonly name: "name_";
|
|
@@ -1810,8 +2019,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1810
2019
|
readonly internalType: "bool";
|
|
1811
2020
|
}];
|
|
1812
2021
|
readonly stateMutability: "nonpayable";
|
|
1813
|
-
}], "transfer", readonly [`0x${string}`, bigint],
|
|
1814
|
-
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options:
|
|
2022
|
+
}], "transfer", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2023
|
+
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1815
2024
|
readonly type: "constructor";
|
|
1816
2025
|
readonly inputs: readonly [{
|
|
1817
2026
|
readonly name: "name_";
|
|
@@ -1989,9 +2198,9 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1989
2198
|
readonly internalType: "bool";
|
|
1990
2199
|
}];
|
|
1991
2200
|
readonly stateMutability: "nonpayable";
|
|
1992
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint],
|
|
2201
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
1993
2202
|
} & {
|
|
1994
|
-
approve: (args: readonly [`0x${string}`, bigint], options:
|
|
2203
|
+
approve: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
1995
2204
|
readonly type: "constructor";
|
|
1996
2205
|
readonly inputs: readonly [{
|
|
1997
2206
|
readonly name: "name_";
|
|
@@ -2169,8 +2378,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
2169
2378
|
readonly internalType: "bool";
|
|
2170
2379
|
}];
|
|
2171
2380
|
readonly stateMutability: "nonpayable";
|
|
2172
|
-
}], "approve", readonly [`0x${string}`, bigint],
|
|
2173
|
-
decreaseAllowance: (args: readonly [`0x${string}`, bigint], options:
|
|
2381
|
+
}], "approve", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2382
|
+
decreaseAllowance: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
2174
2383
|
readonly type: "constructor";
|
|
2175
2384
|
readonly inputs: readonly [{
|
|
2176
2385
|
readonly name: "name_";
|
|
@@ -2348,8 +2557,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
2348
2557
|
readonly internalType: "bool";
|
|
2349
2558
|
}];
|
|
2350
2559
|
readonly stateMutability: "nonpayable";
|
|
2351
|
-
}], "decreaseAllowance", readonly [`0x${string}`, bigint],
|
|
2352
|
-
increaseAllowance: (args: readonly [`0x${string}`, bigint], options:
|
|
2560
|
+
}], "decreaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2561
|
+
increaseAllowance: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
2353
2562
|
readonly type: "constructor";
|
|
2354
2563
|
readonly inputs: readonly [{
|
|
2355
2564
|
readonly name: "name_";
|
|
@@ -2527,8 +2736,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
2527
2736
|
readonly internalType: "bool";
|
|
2528
2737
|
}];
|
|
2529
2738
|
readonly stateMutability: "nonpayable";
|
|
2530
|
-
}], "increaseAllowance", readonly [`0x${string}`, bigint],
|
|
2531
|
-
transfer: (args: readonly [`0x${string}`, bigint], options:
|
|
2739
|
+
}], "increaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2740
|
+
transfer: (args: readonly [`0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
2532
2741
|
readonly type: "constructor";
|
|
2533
2742
|
readonly inputs: readonly [{
|
|
2534
2743
|
readonly name: "name_";
|
|
@@ -2706,8 +2915,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
2706
2915
|
readonly internalType: "bool";
|
|
2707
2916
|
}];
|
|
2708
2917
|
readonly stateMutability: "nonpayable";
|
|
2709
|
-
}], "transfer", readonly [`0x${string}`, bigint],
|
|
2710
|
-
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options:
|
|
2918
|
+
}], "transfer", readonly [`0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2919
|
+
transferFrom: (args: readonly [`0x${string}`, `0x${string}`, bigint], options: viem131.Prettify<viem131.UnionOmit<viem131.EstimateContractGasParameters<readonly [{
|
|
2711
2920
|
readonly type: "constructor";
|
|
2712
2921
|
readonly inputs: readonly [{
|
|
2713
2922
|
readonly name: "name_";
|
|
@@ -2885,10 +3094,10 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
2885
3094
|
readonly internalType: "bool";
|
|
2886
3095
|
}];
|
|
2887
3096
|
readonly stateMutability: "nonpayable";
|
|
2888
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint],
|
|
3097
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], viem131.Chain | undefined>, "address" | "abi" | "args" | "functionName">>) => Promise<viem131.EstimateContractGasReturnType>;
|
|
2889
3098
|
};
|
|
2890
3099
|
simulate: {
|
|
2891
|
-
approve: <chainOverride extends
|
|
3100
|
+
approve: <chainOverride extends viem131.Chain | undefined = undefined, accountOverride extends viem131.Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<viem131.SimulateContractParameters<readonly [{
|
|
2892
3101
|
readonly type: "constructor";
|
|
2893
3102
|
readonly inputs: readonly [{
|
|
2894
3103
|
readonly name: "name_";
|
|
@@ -3066,7 +3275,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3066
3275
|
readonly internalType: "bool";
|
|
3067
3276
|
}];
|
|
3068
3277
|
readonly stateMutability: "nonpayable";
|
|
3069
|
-
}], "approve", readonly [`0x${string}`, bigint],
|
|
3278
|
+
}], "approve", readonly [`0x${string}`, bigint], viem131.Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<viem131.SimulateContractReturnType<readonly [{
|
|
3070
3279
|
readonly type: "constructor";
|
|
3071
3280
|
readonly inputs: readonly [{
|
|
3072
3281
|
readonly name: "name_";
|
|
@@ -3244,8 +3453,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3244
3453
|
readonly internalType: "bool";
|
|
3245
3454
|
}];
|
|
3246
3455
|
readonly stateMutability: "nonpayable";
|
|
3247
|
-
}], "approve", readonly [`0x${string}`, bigint],
|
|
3248
|
-
decreaseAllowance: <chainOverride extends
|
|
3456
|
+
}], "approve", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride, accountOverride>>;
|
|
3457
|
+
decreaseAllowance: <chainOverride extends viem131.Chain | undefined = undefined, accountOverride extends viem131.Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<viem131.SimulateContractParameters<readonly [{
|
|
3249
3458
|
readonly type: "constructor";
|
|
3250
3459
|
readonly inputs: readonly [{
|
|
3251
3460
|
readonly name: "name_";
|
|
@@ -3423,7 +3632,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3423
3632
|
readonly internalType: "bool";
|
|
3424
3633
|
}];
|
|
3425
3634
|
readonly stateMutability: "nonpayable";
|
|
3426
|
-
}], "decreaseAllowance", readonly [`0x${string}`, bigint],
|
|
3635
|
+
}], "decreaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<viem131.SimulateContractReturnType<readonly [{
|
|
3427
3636
|
readonly type: "constructor";
|
|
3428
3637
|
readonly inputs: readonly [{
|
|
3429
3638
|
readonly name: "name_";
|
|
@@ -3601,8 +3810,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3601
3810
|
readonly internalType: "bool";
|
|
3602
3811
|
}];
|
|
3603
3812
|
readonly stateMutability: "nonpayable";
|
|
3604
|
-
}], "decreaseAllowance", readonly [`0x${string}`, bigint],
|
|
3605
|
-
increaseAllowance: <chainOverride extends
|
|
3813
|
+
}], "decreaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride, accountOverride>>;
|
|
3814
|
+
increaseAllowance: <chainOverride extends viem131.Chain | undefined = undefined, accountOverride extends viem131.Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<viem131.SimulateContractParameters<readonly [{
|
|
3606
3815
|
readonly type: "constructor";
|
|
3607
3816
|
readonly inputs: readonly [{
|
|
3608
3817
|
readonly name: "name_";
|
|
@@ -3780,7 +3989,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3780
3989
|
readonly internalType: "bool";
|
|
3781
3990
|
}];
|
|
3782
3991
|
readonly stateMutability: "nonpayable";
|
|
3783
|
-
}], "increaseAllowance", readonly [`0x${string}`, bigint],
|
|
3992
|
+
}], "increaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<viem131.SimulateContractReturnType<readonly [{
|
|
3784
3993
|
readonly type: "constructor";
|
|
3785
3994
|
readonly inputs: readonly [{
|
|
3786
3995
|
readonly name: "name_";
|
|
@@ -3958,8 +4167,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
3958
4167
|
readonly internalType: "bool";
|
|
3959
4168
|
}];
|
|
3960
4169
|
readonly stateMutability: "nonpayable";
|
|
3961
|
-
}], "increaseAllowance", readonly [`0x${string}`, bigint],
|
|
3962
|
-
transfer: <chainOverride extends
|
|
4170
|
+
}], "increaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride, accountOverride>>;
|
|
4171
|
+
transfer: <chainOverride extends viem131.Chain | undefined = undefined, accountOverride extends viem131.Account | Address | undefined = undefined>(args: readonly [`0x${string}`, bigint], options?: Omit<viem131.SimulateContractParameters<readonly [{
|
|
3963
4172
|
readonly type: "constructor";
|
|
3964
4173
|
readonly inputs: readonly [{
|
|
3965
4174
|
readonly name: "name_";
|
|
@@ -4137,7 +4346,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
4137
4346
|
readonly internalType: "bool";
|
|
4138
4347
|
}];
|
|
4139
4348
|
readonly stateMutability: "nonpayable";
|
|
4140
|
-
}], "transfer", readonly [`0x${string}`, bigint],
|
|
4349
|
+
}], "transfer", readonly [`0x${string}`, bigint], viem131.Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<viem131.SimulateContractReturnType<readonly [{
|
|
4141
4350
|
readonly type: "constructor";
|
|
4142
4351
|
readonly inputs: readonly [{
|
|
4143
4352
|
readonly name: "name_";
|
|
@@ -4315,8 +4524,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
4315
4524
|
readonly internalType: "bool";
|
|
4316
4525
|
}];
|
|
4317
4526
|
readonly stateMutability: "nonpayable";
|
|
4318
|
-
}], "transfer", readonly [`0x${string}`, bigint],
|
|
4319
|
-
transferFrom: <chainOverride extends
|
|
4527
|
+
}], "transfer", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride, accountOverride>>;
|
|
4528
|
+
transferFrom: <chainOverride extends viem131.Chain | undefined = undefined, accountOverride extends viem131.Account | Address | undefined = undefined>(args: readonly [`0x${string}`, `0x${string}`, bigint], options?: Omit<viem131.SimulateContractParameters<readonly [{
|
|
4320
4529
|
readonly type: "constructor";
|
|
4321
4530
|
readonly inputs: readonly [{
|
|
4322
4531
|
readonly name: "name_";
|
|
@@ -4494,7 +4703,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
4494
4703
|
readonly internalType: "bool";
|
|
4495
4704
|
}];
|
|
4496
4705
|
readonly stateMutability: "nonpayable";
|
|
4497
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint],
|
|
4706
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], viem131.Chain | undefined, chainOverride, accountOverride>, "address" | "abi" | "args" | "functionName"> | undefined) => Promise<viem131.SimulateContractReturnType<readonly [{
|
|
4498
4707
|
readonly type: "constructor";
|
|
4499
4708
|
readonly inputs: readonly [{
|
|
4500
4709
|
readonly name: "name_";
|
|
@@ -4672,10 +4881,10 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
4672
4881
|
readonly internalType: "bool";
|
|
4673
4882
|
}];
|
|
4674
4883
|
readonly stateMutability: "nonpayable";
|
|
4675
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint],
|
|
4884
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride, accountOverride>>;
|
|
4676
4885
|
};
|
|
4677
4886
|
write: {
|
|
4678
|
-
approve: <chainOverride extends
|
|
4887
|
+
approve: <chainOverride extends viem131.Chain | undefined, options extends (viem131.UnionOmit<viem131.WriteContractParameters<readonly [{
|
|
4679
4888
|
readonly type: "constructor";
|
|
4680
4889
|
readonly inputs: readonly [{
|
|
4681
4890
|
readonly name: "name_";
|
|
@@ -4853,8 +5062,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
4853
5062
|
readonly internalType: "bool";
|
|
4854
5063
|
}];
|
|
4855
5064
|
readonly stateMutability: "nonpayable";
|
|
4856
|
-
}], "approve", readonly [`0x${string}`, bigint],
|
|
4857
|
-
decreaseAllowance: <chainOverride extends
|
|
5065
|
+
}], "approve", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K] } : never)>(args: readonly [`0x${string}`, bigint], options: options) => Promise<viem131.WriteContractReturnType>;
|
|
5066
|
+
decreaseAllowance: <chainOverride extends viem131.Chain | undefined, options extends (viem131.UnionOmit<viem131.WriteContractParameters<readonly [{
|
|
4858
5067
|
readonly type: "constructor";
|
|
4859
5068
|
readonly inputs: readonly [{
|
|
4860
5069
|
readonly name: "name_";
|
|
@@ -5032,8 +5241,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
5032
5241
|
readonly internalType: "bool";
|
|
5033
5242
|
}];
|
|
5034
5243
|
readonly stateMutability: "nonpayable";
|
|
5035
|
-
}], "decreaseAllowance", readonly [`0x${string}`, bigint],
|
|
5036
|
-
increaseAllowance: <chainOverride extends
|
|
5244
|
+
}], "decreaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K] } : never)>(args: readonly [`0x${string}`, bigint], options: options) => Promise<viem131.WriteContractReturnType>;
|
|
5245
|
+
increaseAllowance: <chainOverride extends viem131.Chain | undefined, options extends (viem131.UnionOmit<viem131.WriteContractParameters<readonly [{
|
|
5037
5246
|
readonly type: "constructor";
|
|
5038
5247
|
readonly inputs: readonly [{
|
|
5039
5248
|
readonly name: "name_";
|
|
@@ -5211,8 +5420,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
5211
5420
|
readonly internalType: "bool";
|
|
5212
5421
|
}];
|
|
5213
5422
|
readonly stateMutability: "nonpayable";
|
|
5214
|
-
}], "increaseAllowance", readonly [`0x${string}`, bigint],
|
|
5215
|
-
transfer: <chainOverride extends
|
|
5423
|
+
}], "increaseAllowance", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K] } : never)>(args: readonly [`0x${string}`, bigint], options: options) => Promise<viem131.WriteContractReturnType>;
|
|
5424
|
+
transfer: <chainOverride extends viem131.Chain | undefined, options extends (viem131.UnionOmit<viem131.WriteContractParameters<readonly [{
|
|
5216
5425
|
readonly type: "constructor";
|
|
5217
5426
|
readonly inputs: readonly [{
|
|
5218
5427
|
readonly name: "name_";
|
|
@@ -5390,8 +5599,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
5390
5599
|
readonly internalType: "bool";
|
|
5391
5600
|
}];
|
|
5392
5601
|
readonly stateMutability: "nonpayable";
|
|
5393
|
-
}], "transfer", readonly [`0x${string}`, bigint],
|
|
5394
|
-
transferFrom: <chainOverride extends
|
|
5602
|
+
}], "transfer", readonly [`0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K] } : never)>(args: readonly [`0x${string}`, bigint], options: options) => Promise<viem131.WriteContractReturnType>;
|
|
5603
|
+
transferFrom: <chainOverride extends viem131.Chain | undefined, options extends (viem131.UnionOmit<viem131.WriteContractParameters<readonly [{
|
|
5395
5604
|
readonly type: "constructor";
|
|
5396
5605
|
readonly inputs: readonly [{
|
|
5397
5606
|
readonly name: "name_";
|
|
@@ -5569,7 +5778,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
5569
5778
|
readonly internalType: "bool";
|
|
5570
5779
|
}];
|
|
5571
5780
|
readonly stateMutability: "nonpayable";
|
|
5572
|
-
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint],
|
|
5781
|
+
}], "transferFrom", readonly [`0x${string}`, `0x${string}`, bigint], viem131.Chain | undefined, viem131.Account | undefined, chainOverride>, "address" | "abi" | "args" | "functionName"> extends infer T ? { [K in keyof T]: T[K] } : never)>(args: readonly [`0x${string}`, `0x${string}`, bigint], options: options) => Promise<viem131.WriteContractReturnType>;
|
|
5573
5782
|
};
|
|
5574
5783
|
address: `0x${string}`;
|
|
5575
5784
|
abi: readonly [{
|
|
@@ -5755,7 +5964,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
5755
5964
|
declare const getTimelockMarket: (address: Address, client: Client) => TimelockMarket;
|
|
5756
5965
|
declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
5757
5966
|
read: {
|
|
5758
|
-
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
5967
|
+
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
5759
5968
|
readonly type: "function";
|
|
5760
5969
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
5761
5970
|
readonly inputs: readonly [{
|
|
@@ -6376,7 +6585,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
6376
6585
|
}];
|
|
6377
6586
|
readonly stateMutability: "pure";
|
|
6378
6587
|
}], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
6379
|
-
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
6588
|
+
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
6380
6589
|
readonly type: "function";
|
|
6381
6590
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
6382
6591
|
readonly inputs: readonly [{
|
|
@@ -6997,7 +7206,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
6997
7206
|
}];
|
|
6998
7207
|
readonly stateMutability: "pure";
|
|
6999
7208
|
}], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
7000
|
-
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
7209
|
+
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
7001
7210
|
readonly type: "function";
|
|
7002
7211
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
7003
7212
|
readonly inputs: readonly [{
|
|
@@ -7618,7 +7827,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
7618
7827
|
}];
|
|
7619
7828
|
readonly stateMutability: "pure";
|
|
7620
7829
|
}], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
7621
|
-
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
7830
|
+
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
7622
7831
|
readonly type: "function";
|
|
7623
7832
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
7624
7833
|
readonly inputs: readonly [{
|
|
@@ -8239,7 +8448,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
8239
8448
|
}];
|
|
8240
8449
|
readonly stateMutability: "pure";
|
|
8241
8450
|
}], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
8242
|
-
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
8451
|
+
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
8243
8452
|
readonly type: "function";
|
|
8244
8453
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
8245
8454
|
readonly inputs: readonly [{
|
|
@@ -8860,7 +9069,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
8860
9069
|
}];
|
|
8861
9070
|
readonly stateMutability: "pure";
|
|
8862
9071
|
}], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
8863
|
-
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?:
|
|
9072
|
+
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
8864
9073
|
readonly type: "function";
|
|
8865
9074
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
8866
9075
|
readonly inputs: readonly [{
|
|
@@ -9481,7 +9690,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
9481
9690
|
}];
|
|
9482
9691
|
readonly stateMutability: "pure";
|
|
9483
9692
|
}], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
9484
|
-
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
9693
|
+
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
9485
9694
|
readonly type: "function";
|
|
9486
9695
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
9487
9696
|
readonly inputs: readonly [{
|
|
@@ -10102,7 +10311,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
10102
10311
|
}];
|
|
10103
10312
|
readonly stateMutability: "pure";
|
|
10104
10313
|
}], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
10105
|
-
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
10314
|
+
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
10106
10315
|
readonly type: "function";
|
|
10107
10316
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
10108
10317
|
readonly inputs: readonly [{
|
|
@@ -10723,7 +10932,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
10723
10932
|
}];
|
|
10724
10933
|
readonly stateMutability: "pure";
|
|
10725
10934
|
}], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
10726
|
-
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
10935
|
+
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
10727
10936
|
readonly type: "function";
|
|
10728
10937
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
10729
10938
|
readonly inputs: readonly [{
|
|
@@ -11344,7 +11553,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
11344
11553
|
}];
|
|
11345
11554
|
readonly stateMutability: "pure";
|
|
11346
11555
|
}], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
11347
|
-
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
11556
|
+
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
11348
11557
|
readonly type: "function";
|
|
11349
11558
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
11350
11559
|
readonly inputs: readonly [{
|
|
@@ -11965,7 +12174,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
11965
12174
|
}];
|
|
11966
12175
|
readonly stateMutability: "pure";
|
|
11967
12176
|
}], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
11968
|
-
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
12177
|
+
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
11969
12178
|
readonly type: "function";
|
|
11970
12179
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
11971
12180
|
readonly inputs: readonly [{
|
|
@@ -12586,7 +12795,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
12586
12795
|
}];
|
|
12587
12796
|
readonly stateMutability: "pure";
|
|
12588
12797
|
}], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
12589
|
-
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?:
|
|
12798
|
+
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
12590
12799
|
readonly type: "function";
|
|
12591
12800
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
12592
12801
|
readonly inputs: readonly [{
|
|
@@ -13207,7 +13416,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
13207
13416
|
}];
|
|
13208
13417
|
readonly stateMutability: "pure";
|
|
13209
13418
|
}], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
13210
|
-
batchGetPriceAtTick: (args: readonly [readonly number[]], options?:
|
|
13419
|
+
batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
13211
13420
|
readonly type: "function";
|
|
13212
13421
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
13213
13422
|
readonly inputs: readonly [{
|
|
@@ -13828,7 +14037,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
13828
14037
|
}];
|
|
13829
14038
|
readonly stateMutability: "pure";
|
|
13830
14039
|
}], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
13831
|
-
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
14040
|
+
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
13832
14041
|
readonly type: "function";
|
|
13833
14042
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
13834
14043
|
readonly inputs: readonly [{
|
|
@@ -14449,7 +14658,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
14449
14658
|
}];
|
|
14450
14659
|
readonly stateMutability: "pure";
|
|
14451
14660
|
}], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
14452
|
-
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
14661
|
+
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
14453
14662
|
readonly type: "function";
|
|
14454
14663
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
14455
14664
|
readonly inputs: readonly [{
|
|
@@ -15070,7 +15279,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
15070
15279
|
}];
|
|
15071
15280
|
readonly stateMutability: "pure";
|
|
15072
15281
|
}], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
15073
|
-
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
15282
|
+
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
15074
15283
|
readonly type: "function";
|
|
15075
15284
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15076
15285
|
readonly inputs: readonly [{
|
|
@@ -15691,7 +15900,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
15691
15900
|
}];
|
|
15692
15901
|
readonly stateMutability: "pure";
|
|
15693
15902
|
}], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
15694
|
-
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
15903
|
+
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
15695
15904
|
readonly type: "function";
|
|
15696
15905
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
15697
15906
|
readonly inputs: readonly [{
|
|
@@ -16312,7 +16521,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
16312
16521
|
}];
|
|
16313
16522
|
readonly stateMutability: "pure";
|
|
16314
16523
|
}], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
16315
|
-
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?:
|
|
16524
|
+
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
16316
16525
|
readonly type: "function";
|
|
16317
16526
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
16318
16527
|
readonly inputs: readonly [{
|
|
@@ -16933,7 +17142,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
16933
17142
|
}];
|
|
16934
17143
|
readonly stateMutability: "pure";
|
|
16935
17144
|
}], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
16936
|
-
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?:
|
|
17145
|
+
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
16937
17146
|
readonly type: "function";
|
|
16938
17147
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
16939
17148
|
readonly inputs: readonly [{
|
|
@@ -17554,7 +17763,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
17554
17763
|
}];
|
|
17555
17764
|
readonly stateMutability: "pure";
|
|
17556
17765
|
}], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
17557
|
-
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?:
|
|
17766
|
+
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
17558
17767
|
readonly type: "function";
|
|
17559
17768
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
17560
17769
|
readonly inputs: readonly [{
|
|
@@ -18175,7 +18384,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
18175
18384
|
}];
|
|
18176
18385
|
readonly stateMutability: "pure";
|
|
18177
18386
|
}], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
18178
|
-
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?:
|
|
18387
|
+
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
18179
18388
|
readonly type: "function";
|
|
18180
18389
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18181
18390
|
readonly inputs: readonly [{
|
|
@@ -18796,7 +19005,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
18796
19005
|
}];
|
|
18797
19006
|
readonly stateMutability: "pure";
|
|
18798
19007
|
}], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
18799
|
-
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?:
|
|
19008
|
+
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
18800
19009
|
readonly type: "function";
|
|
18801
19010
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
18802
19011
|
readonly inputs: readonly [{
|
|
@@ -19417,7 +19626,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
19417
19626
|
}];
|
|
19418
19627
|
readonly stateMutability: "pure";
|
|
19419
19628
|
}], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
19420
|
-
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?:
|
|
19629
|
+
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
19421
19630
|
readonly type: "function";
|
|
19422
19631
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
19423
19632
|
readonly inputs: readonly [{
|
|
@@ -20038,7 +20247,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
20038
20247
|
}];
|
|
20039
20248
|
readonly stateMutability: "pure";
|
|
20040
20249
|
}], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
20041
|
-
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?:
|
|
20250
|
+
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
20042
20251
|
readonly type: "function";
|
|
20043
20252
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20044
20253
|
readonly inputs: readonly [{
|
|
@@ -20659,7 +20868,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
20659
20868
|
}];
|
|
20660
20869
|
readonly stateMutability: "pure";
|
|
20661
20870
|
}], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
20662
|
-
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?:
|
|
20871
|
+
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
20663
20872
|
readonly type: "function";
|
|
20664
20873
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
20665
20874
|
readonly inputs: readonly [{
|
|
@@ -21280,7 +21489,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
21280
21489
|
}];
|
|
21281
21490
|
readonly stateMutability: "pure";
|
|
21282
21491
|
}], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
21283
|
-
getPriceAtTick: (args: readonly [number], options?:
|
|
21492
|
+
getPriceAtTick: (args: readonly [number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
21284
21493
|
readonly type: "function";
|
|
21285
21494
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
21286
21495
|
readonly inputs: readonly [{
|
|
@@ -22527,7 +22736,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
22527
22736
|
};
|
|
22528
22737
|
declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
22529
22738
|
read: {
|
|
22530
|
-
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?:
|
|
22739
|
+
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
22531
22740
|
readonly type: "function";
|
|
22532
22741
|
readonly name: "batchGetRefTick";
|
|
22533
22742
|
readonly inputs: readonly [{
|
|
@@ -23201,7 +23410,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
23201
23410
|
}];
|
|
23202
23411
|
readonly stateMutability: "view";
|
|
23203
23412
|
}], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
|
|
23204
|
-
getAllBlocks: (args: readonly [`0x${string}`], options?:
|
|
23413
|
+
getAllBlocks: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
23205
23414
|
readonly type: "function";
|
|
23206
23415
|
readonly name: "batchGetRefTick";
|
|
23207
23416
|
readonly inputs: readonly [{
|
|
@@ -23885,7 +24094,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
23885
24094
|
borrowedAmount0: bigint;
|
|
23886
24095
|
borrowedAmount1: bigint;
|
|
23887
24096
|
}[]>;
|
|
23888
|
-
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?:
|
|
24097
|
+
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
23889
24098
|
readonly type: "function";
|
|
23890
24099
|
readonly name: "batchGetRefTick";
|
|
23891
24100
|
readonly inputs: readonly [{
|
|
@@ -24576,7 +24785,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
24576
24785
|
expiresAt: number;
|
|
24577
24786
|
liquidities: readonly bigint[];
|
|
24578
24787
|
}[], bigint, boolean]>;
|
|
24579
|
-
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?:
|
|
24788
|
+
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
24580
24789
|
readonly type: "function";
|
|
24581
24790
|
readonly name: "batchGetRefTick";
|
|
24582
24791
|
readonly inputs: readonly [{
|
|
@@ -25250,7 +25459,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
25250
25459
|
}];
|
|
25251
25460
|
readonly stateMutability: "view";
|
|
25252
25461
|
}], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
25253
|
-
getMarketData: (args: readonly [`0x${string}`], options?:
|
|
25462
|
+
getMarketData: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
25254
25463
|
readonly type: "function";
|
|
25255
25464
|
readonly name: "batchGetRefTick";
|
|
25256
25465
|
readonly inputs: readonly [{
|
|
@@ -25937,7 +26146,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
25937
26146
|
payoutAssetName: string;
|
|
25938
26147
|
optionsCount: bigint;
|
|
25939
26148
|
}>;
|
|
25940
|
-
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?:
|
|
26149
|
+
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
25941
26150
|
readonly type: "function";
|
|
25942
26151
|
readonly name: "batchGetRefTick";
|
|
25943
26152
|
readonly inputs: readonly [{
|
|
@@ -26611,7 +26820,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
26611
26820
|
}];
|
|
26612
26821
|
readonly stateMutability: "view";
|
|
26613
26822
|
}], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
26614
|
-
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?:
|
|
26823
|
+
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
26615
26824
|
readonly type: "function";
|
|
26616
26825
|
readonly name: "batchGetRefTick";
|
|
26617
26826
|
readonly inputs: readonly [{
|
|
@@ -27285,7 +27494,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
27285
27494
|
}];
|
|
27286
27495
|
readonly stateMutability: "view";
|
|
27287
27496
|
}], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
27288
|
-
getOptionData: (args: readonly [`0x${string}`, bigint], options?:
|
|
27497
|
+
getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
27289
27498
|
readonly type: "function";
|
|
27290
27499
|
readonly name: "batchGetRefTick";
|
|
27291
27500
|
readonly inputs: readonly [{
|
|
@@ -27976,7 +28185,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
27976
28185
|
expiresAt: number;
|
|
27977
28186
|
liquidities: readonly bigint[];
|
|
27978
28187
|
}>;
|
|
27979
|
-
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?:
|
|
28188
|
+
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
27980
28189
|
readonly type: "function";
|
|
27981
28190
|
readonly name: "batchGetRefTick";
|
|
27982
28191
|
readonly inputs: readonly [{
|
|
@@ -28667,7 +28876,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
28667
28876
|
expiresAt: number;
|
|
28668
28877
|
liquidities: readonly bigint[];
|
|
28669
28878
|
}[]>;
|
|
28670
|
-
getPoolData: (args: readonly [`0x${string}`], options?:
|
|
28879
|
+
getPoolData: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
28671
28880
|
readonly type: "function";
|
|
28672
28881
|
readonly name: "batchGetRefTick";
|
|
28673
28882
|
readonly inputs: readonly [{
|
|
@@ -29352,7 +29561,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
29352
29561
|
tickSpacing: number;
|
|
29353
29562
|
fee: number;
|
|
29354
29563
|
}>;
|
|
29355
|
-
getRefTick: (args: readonly [`0x${string}`, number], options?:
|
|
29564
|
+
getRefTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
29356
29565
|
readonly type: "function";
|
|
29357
29566
|
readonly name: "batchGetRefTick";
|
|
29358
29567
|
readonly inputs: readonly [{
|
|
@@ -30026,7 +30235,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
30026
30235
|
}];
|
|
30027
30236
|
readonly stateMutability: "view";
|
|
30028
30237
|
}], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
30029
|
-
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?:
|
|
30238
|
+
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
30030
30239
|
readonly type: "function";
|
|
30031
30240
|
readonly name: "batchGetRefTick";
|
|
30032
30241
|
readonly inputs: readonly [{
|
|
@@ -30717,7 +30926,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
30717
30926
|
expiresAt: number;
|
|
30718
30927
|
liquidities: readonly bigint[];
|
|
30719
30928
|
}[], bigint, boolean]>;
|
|
30720
|
-
getVaultTVL: (args: readonly [`0x${string}`], options?:
|
|
30929
|
+
getVaultTVL: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
30721
30930
|
readonly type: "function";
|
|
30722
30931
|
readonly name: "batchGetRefTick";
|
|
30723
30932
|
readonly inputs: readonly [{
|
|
@@ -32071,236 +32280,30 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
32071
32280
|
declare const timelockLenses: Record<number, Address>;
|
|
32072
32281
|
declare const uniswapMathLenses: Record<number, Address>;
|
|
32073
32282
|
//#endregion
|
|
32074
|
-
//#region src/
|
|
32075
|
-
type
|
|
32076
|
-
[key: string]: unknown;
|
|
32077
|
-
}> = { [K in keyof T$1]: T$1[K] };
|
|
32078
|
-
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
32079
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
32080
|
-
type Scalars = {
|
|
32081
|
-
ID: {
|
|
32082
|
-
input: string;
|
|
32083
|
-
output: string;
|
|
32084
|
-
};
|
|
32085
|
-
String: {
|
|
32086
|
-
input: string;
|
|
32087
|
-
output: string;
|
|
32088
|
-
};
|
|
32089
|
-
Boolean: {
|
|
32090
|
-
input: boolean;
|
|
32091
|
-
output: boolean;
|
|
32092
|
-
};
|
|
32093
|
-
Int: {
|
|
32094
|
-
input: number;
|
|
32095
|
-
output: number;
|
|
32096
|
-
};
|
|
32097
|
-
Float: {
|
|
32098
|
-
input: number;
|
|
32099
|
-
output: number;
|
|
32100
|
-
};
|
|
32101
|
-
jsonb: {
|
|
32102
|
-
input: any;
|
|
32103
|
-
output: any;
|
|
32104
|
-
};
|
|
32105
|
-
numeric: {
|
|
32106
|
-
input: any;
|
|
32107
|
-
output: any;
|
|
32108
|
-
};
|
|
32109
|
-
optiontype: {
|
|
32110
|
-
input: any;
|
|
32111
|
-
output: any;
|
|
32112
|
-
};
|
|
32113
|
-
timestamptz: {
|
|
32114
|
-
input: any;
|
|
32115
|
-
output: any;
|
|
32116
|
-
};
|
|
32117
|
-
};
|
|
32118
|
-
type UserOptionFieldsFragment = {
|
|
32119
|
-
__typename: 'UserOption';
|
|
32120
|
-
id: string;
|
|
32121
|
-
optionId: any;
|
|
32122
|
-
optionType: any;
|
|
32123
|
-
strikeTick: number;
|
|
32124
|
-
entryTick: number;
|
|
32125
|
-
startTick: number;
|
|
32126
|
-
strikePrice: any;
|
|
32127
|
-
entryPrice: any;
|
|
32128
|
-
expiresAt: any;
|
|
32129
|
-
createdAt: any;
|
|
32130
|
-
premium: any;
|
|
32131
|
-
protocolFee: any;
|
|
32132
|
-
realizedPayout: any;
|
|
32133
|
-
liquiditiesAtOpen: Array<string>;
|
|
32134
|
-
liquiditiesCurrent: Array<string>;
|
|
32135
|
-
positionSizeAtOpen: any;
|
|
32136
|
-
positionSizeCurrent: any;
|
|
32137
|
-
fullyExercised: boolean;
|
|
32138
|
-
owner?: {
|
|
32139
|
-
__typename: 'TimelockMarketUser';
|
|
32140
|
-
address: string;
|
|
32141
|
-
} | null;
|
|
32142
|
-
market?: {
|
|
32143
|
-
__typename: 'TimelockMarket';
|
|
32144
|
-
address: string;
|
|
32145
|
-
} | null;
|
|
32146
|
-
};
|
|
32147
|
-
type GetActiveUserOptionsQueryVariables = Exact<{
|
|
32148
|
-
userAddr: Scalars['String']['input'];
|
|
32149
|
-
}>;
|
|
32150
|
-
type GetActiveUserOptionsQuery = {
|
|
32151
|
-
__typename: 'query_root';
|
|
32152
|
-
UserOption: Array<{
|
|
32153
|
-
__typename: 'UserOption';
|
|
32154
|
-
} & UserOptionFieldsFragment>;
|
|
32155
|
-
};
|
|
32156
|
-
type GetActiveUserOptionsByMarketQueryVariables = Exact<{
|
|
32157
|
-
userAddr: Scalars['String']['input'];
|
|
32158
|
-
marketAddr: Scalars['String']['input'];
|
|
32159
|
-
}>;
|
|
32160
|
-
type GetActiveUserOptionsByMarketQuery = {
|
|
32161
|
-
__typename: 'query_root';
|
|
32162
|
-
UserOption: Array<{
|
|
32163
|
-
__typename: 'UserOption';
|
|
32164
|
-
} & UserOptionFieldsFragment>;
|
|
32165
|
-
};
|
|
32166
|
-
type GetClosedUserOptionsQueryVariables = Exact<{
|
|
32167
|
-
userAddr: Scalars['String']['input'];
|
|
32168
|
-
}>;
|
|
32169
|
-
type GetClosedUserOptionsQuery = {
|
|
32170
|
-
__typename: 'query_root';
|
|
32171
|
-
UserOption: Array<{
|
|
32172
|
-
__typename: 'UserOption';
|
|
32173
|
-
} & UserOptionFieldsFragment>;
|
|
32174
|
-
};
|
|
32175
|
-
type GetClosedUserOptionsByMarketQueryVariables = Exact<{
|
|
32176
|
-
userAddr: Scalars['String']['input'];
|
|
32177
|
-
marketAddr: Scalars['String']['input'];
|
|
32178
|
-
}>;
|
|
32179
|
-
type GetClosedUserOptionsByMarketQuery = {
|
|
32180
|
-
__typename: 'query_root';
|
|
32181
|
-
UserOption: Array<{
|
|
32182
|
-
__typename: 'UserOption';
|
|
32183
|
-
} & UserOptionFieldsFragment>;
|
|
32184
|
-
};
|
|
32185
|
-
type GetMarketDataQueryVariables = Exact<{
|
|
32186
|
-
marketAddr: Scalars['String']['input'];
|
|
32187
|
-
}>;
|
|
32188
|
-
type GetMarketDataQuery = {
|
|
32189
|
-
__typename: 'query_root';
|
|
32190
|
-
TimelockMarket: Array<{
|
|
32191
|
-
__typename: 'TimelockMarket';
|
|
32192
|
-
id: string;
|
|
32193
|
-
address: string;
|
|
32194
|
-
optionsCount: any;
|
|
32195
|
-
tradersCount: any;
|
|
32196
|
-
vault: string;
|
|
32197
|
-
pool: string;
|
|
32198
|
-
tickSpacing: number;
|
|
32199
|
-
optionAssetIsToken0: boolean;
|
|
32200
|
-
optionAsset: string;
|
|
32201
|
-
payoutAsset: string;
|
|
32202
|
-
optionAssetDecimals: number;
|
|
32203
|
-
payoutAssetDecimals: number;
|
|
32204
|
-
optionAssetSymbol: string;
|
|
32205
|
-
payoutAssetSymbol: string;
|
|
32206
|
-
optionAssetName: string;
|
|
32207
|
-
payoutAssetName: string;
|
|
32208
|
-
}>;
|
|
32209
|
-
};
|
|
32210
|
-
type GetUserMarketOperatorsQueryVariables = Exact<{
|
|
32211
|
-
userAddr: Scalars['String']['input'];
|
|
32212
|
-
marketAddr: Scalars['String']['input'];
|
|
32213
|
-
}>;
|
|
32214
|
-
type GetUserMarketOperatorsQuery = {
|
|
32215
|
-
__typename: 'query_root';
|
|
32216
|
-
UserMarketOperator: Array<{
|
|
32217
|
-
__typename: 'UserMarketOperator';
|
|
32218
|
-
id: string;
|
|
32219
|
-
canExtend: boolean;
|
|
32220
|
-
canExercise: boolean;
|
|
32221
|
-
canTransfer: boolean;
|
|
32222
|
-
canMint: boolean;
|
|
32223
|
-
spendingApproval: any;
|
|
32224
|
-
operator?: {
|
|
32225
|
-
__typename: 'MarketOperator';
|
|
32226
|
-
address: string;
|
|
32227
|
-
} | null;
|
|
32228
|
-
}>;
|
|
32229
|
-
};
|
|
32230
|
-
type GetOptionEventsQueryVariables = Exact<{
|
|
32231
|
-
marketAddr: Scalars['String']['input'];
|
|
32232
|
-
optionId: Scalars['numeric']['input'];
|
|
32233
|
-
}>;
|
|
32234
|
-
type GetOptionEventsQuery = {
|
|
32235
|
-
__typename: 'query_root';
|
|
32236
|
-
MintOptionEvent: Array<{
|
|
32237
|
-
__typename: 'MintOptionEvent';
|
|
32238
|
-
id: string;
|
|
32239
|
-
optionType: number;
|
|
32240
|
-
strikeTick: number;
|
|
32241
|
-
currentTick: number;
|
|
32242
|
-
expiresAt: any;
|
|
32243
|
-
premium: any;
|
|
32244
|
-
protocolFee: any;
|
|
32245
|
-
liquidities: Array<string>;
|
|
32246
|
-
timestamp: any;
|
|
32247
|
-
blockNumber: any;
|
|
32248
|
-
transactionHash: string;
|
|
32249
|
-
}>;
|
|
32250
|
-
ExerciseOptionEvent: Array<{
|
|
32251
|
-
__typename: 'ExerciseOptionEvent';
|
|
32252
|
-
id: string;
|
|
32253
|
-
liquidities: Array<string>;
|
|
32254
|
-
currentTick: number;
|
|
32255
|
-
payout: any;
|
|
32256
|
-
timestamp: any;
|
|
32257
|
-
blockNumber: any;
|
|
32258
|
-
transactionHash: string;
|
|
32259
|
-
}>;
|
|
32260
|
-
ExtendOptionEvent: Array<{
|
|
32261
|
-
__typename: 'ExtendOptionEvent';
|
|
32262
|
-
id: string;
|
|
32263
|
-
premium: any;
|
|
32264
|
-
protocolFee: any;
|
|
32265
|
-
currentTick: number;
|
|
32266
|
-
addedDuration: any;
|
|
32267
|
-
timestamp: any;
|
|
32268
|
-
blockNumber: any;
|
|
32269
|
-
transactionHash: string;
|
|
32270
|
-
}>;
|
|
32271
|
-
};
|
|
32272
|
-
type SdkFunctionWrapper = <T$1>(action: (requestHeaders?: Record<string, string>) => Promise<T$1>, operationName: string, operationType?: string, variables?: any) => Promise<T$1>;
|
|
32273
|
-
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
32274
|
-
GetActiveUserOptions(variables: GetActiveUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsQuery>;
|
|
32275
|
-
GetActiveUserOptionsByMarket(variables: GetActiveUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveUserOptionsByMarketQuery>;
|
|
32276
|
-
GetClosedUserOptions(variables: GetClosedUserOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsQuery>;
|
|
32277
|
-
GetClosedUserOptionsByMarket(variables: GetClosedUserOptionsByMarketQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClosedUserOptionsByMarketQuery>;
|
|
32278
|
-
GetMarketData(variables: GetMarketDataQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMarketDataQuery>;
|
|
32279
|
-
GetUserMarketOperators(variables: GetUserMarketOperatorsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUserMarketOperatorsQuery>;
|
|
32280
|
-
GetOptionEvents(variables: GetOptionEventsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOptionEventsQuery>;
|
|
32281
|
-
};
|
|
32282
|
-
//#endregion
|
|
32283
|
-
//#region src/providers/TimelockMarketProvider.d.ts
|
|
32284
|
-
type TimelockMarketContextValue = {
|
|
32283
|
+
//#region src/providers/TimelockProvider.d.ts
|
|
32284
|
+
type TimelockContextValue = {
|
|
32285
32285
|
marketData: Partial<TimelockMarketData>;
|
|
32286
32286
|
lensAddr?: Address;
|
|
32287
32287
|
uniswapMathLensAddr?: Address;
|
|
32288
32288
|
envioGraphqlUrl?: string;
|
|
32289
32289
|
graphqlClient?: ReturnType<typeof getSdk>;
|
|
32290
|
+
perpsOperatorUrl?: string;
|
|
32290
32291
|
};
|
|
32291
|
-
declare const
|
|
32292
|
+
declare const TimelockProvider: ({
|
|
32292
32293
|
children,
|
|
32293
32294
|
marketData,
|
|
32294
|
-
envioGraphqlUrl
|
|
32295
|
+
envioGraphqlUrl,
|
|
32296
|
+
perpsOperatorUrl
|
|
32295
32297
|
}: {
|
|
32296
32298
|
children: ReactNode;
|
|
32297
32299
|
marketData?: Partial<TimelockMarketData>;
|
|
32298
32300
|
envioGraphqlUrl?: string;
|
|
32301
|
+
perpsOperatorUrl?: string;
|
|
32299
32302
|
}) => React.JSX.Element;
|
|
32300
32303
|
declare const useCurrentMarket: () => Partial<TimelockMarketData>;
|
|
32301
|
-
declare const useTimelockConfig: () =>
|
|
32304
|
+
declare const useTimelockConfig: () => TimelockContextValue;
|
|
32302
32305
|
//#endregion
|
|
32303
|
-
//#region src/hooks/
|
|
32306
|
+
//#region src/hooks/options/useUserOptions.d.ts
|
|
32304
32307
|
type OptionData = ReturnType<typeof useUserOptions>['data'][0];
|
|
32305
32308
|
declare const useUserOptions: (userAddr?: Address, marketAddr?: Address | "*", active?: boolean) => {
|
|
32306
32309
|
error: Error;
|
|
@@ -34412,13 +34415,13 @@ declare const useClosedUserOptions: (userAddr?: Address, marketAddr?: Address |
|
|
|
34412
34415
|
}[];
|
|
34413
34416
|
};
|
|
34414
34417
|
//#endregion
|
|
34415
|
-
//#region src/hooks/
|
|
34418
|
+
//#region src/hooks/options/useExerciseOption.d.ts
|
|
34416
34419
|
declare const useExerciseOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34417
34420
|
option: OptionData;
|
|
34418
34421
|
liquidities: readonly bigint[];
|
|
34419
34422
|
}, unknown>;
|
|
34420
34423
|
//#endregion
|
|
34421
|
-
//#region src/hooks/
|
|
34424
|
+
//#region src/hooks/options/useMarketData.d.ts
|
|
34422
34425
|
declare const useMarketData: (marketAddr?: Address) => Partial<NonUndefinedGuard<{
|
|
34423
34426
|
pool: Address;
|
|
34424
34427
|
vault: Address;
|
|
@@ -34461,14 +34464,14 @@ declare const formatVagueAmount: (value: number | bigint) => string;
|
|
|
34461
34464
|
declare const formatCondensed: (input: string | number, decimals?: number) => string;
|
|
34462
34465
|
declare const formatUSD: (value: Big | string | number) => string;
|
|
34463
34466
|
//#endregion
|
|
34464
|
-
//#region src/hooks/
|
|
34467
|
+
//#region src/hooks/options/useMaxPositionSize.d.ts
|
|
34465
34468
|
declare const useMaxPositionSize: (marketAddr: Address | undefined, strikeTick?: number, maxBorrowableRange?: number) => {
|
|
34466
34469
|
maxCallSize: Amount | undefined;
|
|
34467
34470
|
maxPutSize: Amount | undefined;
|
|
34468
34471
|
refetch: () => void;
|
|
34469
34472
|
};
|
|
34470
34473
|
//#endregion
|
|
34471
|
-
//#region src/hooks/
|
|
34474
|
+
//#region src/hooks/options/useMintOption.d.ts
|
|
34472
34475
|
declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34473
34476
|
optionType: "CALL" | "PUT";
|
|
34474
34477
|
amount: bigint;
|
|
@@ -34476,13 +34479,13 @@ declare const useMintOption: (marketAddr?: Address) => _tanstack_react_query0.Us
|
|
|
34476
34479
|
strikeTick?: number;
|
|
34477
34480
|
}, unknown>;
|
|
34478
34481
|
//#endregion
|
|
34479
|
-
//#region src/hooks/
|
|
34482
|
+
//#region src/hooks/options/useOptionPnl.d.ts
|
|
34480
34483
|
declare const useOptionPnl: (option: OptionData) => {
|
|
34481
34484
|
unrealizedPayout: Amount | undefined;
|
|
34482
34485
|
displayPnl: Amount | undefined;
|
|
34483
34486
|
};
|
|
34484
34487
|
//#endregion
|
|
34485
|
-
//#region src/hooks/
|
|
34488
|
+
//#region src/hooks/options/useOptionPremium.d.ts
|
|
34486
34489
|
declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "CALL" | "PUT", optionAmount: bigint, addedDuration: number, remainingDuration?: number, strikeTick?: number) => {
|
|
34487
34490
|
premium?: undefined;
|
|
34488
34491
|
protocolFee?: undefined;
|
|
@@ -34493,422 +34496,13 @@ declare const useOptionPremium: (marketAddr: Address | undefined, optionType: "C
|
|
|
34493
34496
|
totalPremium: Amount;
|
|
34494
34497
|
};
|
|
34495
34498
|
//#endregion
|
|
34496
|
-
//#region src/hooks/
|
|
34499
|
+
//#region src/hooks/options/useExtendOption.d.ts
|
|
34497
34500
|
declare const useExtendOption: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34498
34501
|
option: OptionData;
|
|
34499
34502
|
duration: number;
|
|
34500
34503
|
}, unknown>;
|
|
34501
34504
|
//#endregion
|
|
34502
|
-
//#region src/hooks/
|
|
34503
|
-
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
34504
|
-
data: {
|
|
34505
|
-
spendingApproval: bigint;
|
|
34506
|
-
operatorAddr: string;
|
|
34507
|
-
__typename: "UserMarketOperator";
|
|
34508
|
-
id: string;
|
|
34509
|
-
canExtend: boolean;
|
|
34510
|
-
canExercise: boolean;
|
|
34511
|
-
canTransfer: boolean;
|
|
34512
|
-
canMint: boolean;
|
|
34513
|
-
operator?: {
|
|
34514
|
-
__typename: "MarketOperator";
|
|
34515
|
-
address: string;
|
|
34516
|
-
} | null;
|
|
34517
|
-
}[];
|
|
34518
|
-
error: Error;
|
|
34519
|
-
isError: true;
|
|
34520
|
-
isPending: false;
|
|
34521
|
-
isLoading: false;
|
|
34522
|
-
isLoadingError: false;
|
|
34523
|
-
isRefetchError: true;
|
|
34524
|
-
isSuccess: false;
|
|
34525
|
-
isPlaceholderData: false;
|
|
34526
|
-
status: "error";
|
|
34527
|
-
dataUpdatedAt: number;
|
|
34528
|
-
errorUpdatedAt: number;
|
|
34529
|
-
failureCount: number;
|
|
34530
|
-
failureReason: Error | null;
|
|
34531
|
-
errorUpdateCount: number;
|
|
34532
|
-
isFetched: boolean;
|
|
34533
|
-
isFetchedAfterMount: boolean;
|
|
34534
|
-
isFetching: boolean;
|
|
34535
|
-
isInitialLoading: boolean;
|
|
34536
|
-
isPaused: boolean;
|
|
34537
|
-
isRefetching: boolean;
|
|
34538
|
-
isStale: boolean;
|
|
34539
|
-
isEnabled: boolean;
|
|
34540
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34541
|
-
spendingApproval: bigint;
|
|
34542
|
-
operatorAddr: string;
|
|
34543
|
-
__typename: "UserMarketOperator";
|
|
34544
|
-
id: string;
|
|
34545
|
-
canExtend: boolean;
|
|
34546
|
-
canExercise: boolean;
|
|
34547
|
-
canTransfer: boolean;
|
|
34548
|
-
canMint: boolean;
|
|
34549
|
-
operator?: {
|
|
34550
|
-
__typename: "MarketOperator";
|
|
34551
|
-
address: string;
|
|
34552
|
-
} | null;
|
|
34553
|
-
}[] | undefined, Error>>;
|
|
34554
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34555
|
-
promise: Promise<{
|
|
34556
|
-
spendingApproval: bigint;
|
|
34557
|
-
operatorAddr: string;
|
|
34558
|
-
__typename: "UserMarketOperator";
|
|
34559
|
-
id: string;
|
|
34560
|
-
canExtend: boolean;
|
|
34561
|
-
canExercise: boolean;
|
|
34562
|
-
canTransfer: boolean;
|
|
34563
|
-
canMint: boolean;
|
|
34564
|
-
operator?: {
|
|
34565
|
-
__typename: "MarketOperator";
|
|
34566
|
-
address: string;
|
|
34567
|
-
} | null;
|
|
34568
|
-
}[] | undefined>;
|
|
34569
|
-
} | {
|
|
34570
|
-
data: {
|
|
34571
|
-
spendingApproval: bigint;
|
|
34572
|
-
operatorAddr: string;
|
|
34573
|
-
__typename: "UserMarketOperator";
|
|
34574
|
-
id: string;
|
|
34575
|
-
canExtend: boolean;
|
|
34576
|
-
canExercise: boolean;
|
|
34577
|
-
canTransfer: boolean;
|
|
34578
|
-
canMint: boolean;
|
|
34579
|
-
operator?: {
|
|
34580
|
-
__typename: "MarketOperator";
|
|
34581
|
-
address: string;
|
|
34582
|
-
} | null;
|
|
34583
|
-
}[];
|
|
34584
|
-
error: null;
|
|
34585
|
-
isError: false;
|
|
34586
|
-
isPending: false;
|
|
34587
|
-
isLoading: false;
|
|
34588
|
-
isLoadingError: false;
|
|
34589
|
-
isRefetchError: false;
|
|
34590
|
-
isSuccess: true;
|
|
34591
|
-
isPlaceholderData: false;
|
|
34592
|
-
status: "success";
|
|
34593
|
-
dataUpdatedAt: number;
|
|
34594
|
-
errorUpdatedAt: number;
|
|
34595
|
-
failureCount: number;
|
|
34596
|
-
failureReason: Error | null;
|
|
34597
|
-
errorUpdateCount: number;
|
|
34598
|
-
isFetched: boolean;
|
|
34599
|
-
isFetchedAfterMount: boolean;
|
|
34600
|
-
isFetching: boolean;
|
|
34601
|
-
isInitialLoading: boolean;
|
|
34602
|
-
isPaused: boolean;
|
|
34603
|
-
isRefetching: boolean;
|
|
34604
|
-
isStale: boolean;
|
|
34605
|
-
isEnabled: boolean;
|
|
34606
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34607
|
-
spendingApproval: bigint;
|
|
34608
|
-
operatorAddr: string;
|
|
34609
|
-
__typename: "UserMarketOperator";
|
|
34610
|
-
id: string;
|
|
34611
|
-
canExtend: boolean;
|
|
34612
|
-
canExercise: boolean;
|
|
34613
|
-
canTransfer: boolean;
|
|
34614
|
-
canMint: boolean;
|
|
34615
|
-
operator?: {
|
|
34616
|
-
__typename: "MarketOperator";
|
|
34617
|
-
address: string;
|
|
34618
|
-
} | null;
|
|
34619
|
-
}[] | undefined, Error>>;
|
|
34620
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34621
|
-
promise: Promise<{
|
|
34622
|
-
spendingApproval: bigint;
|
|
34623
|
-
operatorAddr: string;
|
|
34624
|
-
__typename: "UserMarketOperator";
|
|
34625
|
-
id: string;
|
|
34626
|
-
canExtend: boolean;
|
|
34627
|
-
canExercise: boolean;
|
|
34628
|
-
canTransfer: boolean;
|
|
34629
|
-
canMint: boolean;
|
|
34630
|
-
operator?: {
|
|
34631
|
-
__typename: "MarketOperator";
|
|
34632
|
-
address: string;
|
|
34633
|
-
} | null;
|
|
34634
|
-
}[] | undefined>;
|
|
34635
|
-
} | {
|
|
34636
|
-
data: {
|
|
34637
|
-
spendingApproval: bigint;
|
|
34638
|
-
operatorAddr: string;
|
|
34639
|
-
__typename: "UserMarketOperator";
|
|
34640
|
-
id: string;
|
|
34641
|
-
canExtend: boolean;
|
|
34642
|
-
canExercise: boolean;
|
|
34643
|
-
canTransfer: boolean;
|
|
34644
|
-
canMint: boolean;
|
|
34645
|
-
operator?: {
|
|
34646
|
-
__typename: "MarketOperator";
|
|
34647
|
-
address: string;
|
|
34648
|
-
} | null;
|
|
34649
|
-
}[];
|
|
34650
|
-
error: Error;
|
|
34651
|
-
isError: true;
|
|
34652
|
-
isPending: false;
|
|
34653
|
-
isLoading: false;
|
|
34654
|
-
isLoadingError: true;
|
|
34655
|
-
isRefetchError: false;
|
|
34656
|
-
isSuccess: false;
|
|
34657
|
-
isPlaceholderData: false;
|
|
34658
|
-
status: "error";
|
|
34659
|
-
dataUpdatedAt: number;
|
|
34660
|
-
errorUpdatedAt: number;
|
|
34661
|
-
failureCount: number;
|
|
34662
|
-
failureReason: Error | null;
|
|
34663
|
-
errorUpdateCount: number;
|
|
34664
|
-
isFetched: boolean;
|
|
34665
|
-
isFetchedAfterMount: boolean;
|
|
34666
|
-
isFetching: boolean;
|
|
34667
|
-
isInitialLoading: boolean;
|
|
34668
|
-
isPaused: boolean;
|
|
34669
|
-
isRefetching: boolean;
|
|
34670
|
-
isStale: boolean;
|
|
34671
|
-
isEnabled: boolean;
|
|
34672
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34673
|
-
spendingApproval: bigint;
|
|
34674
|
-
operatorAddr: string;
|
|
34675
|
-
__typename: "UserMarketOperator";
|
|
34676
|
-
id: string;
|
|
34677
|
-
canExtend: boolean;
|
|
34678
|
-
canExercise: boolean;
|
|
34679
|
-
canTransfer: boolean;
|
|
34680
|
-
canMint: boolean;
|
|
34681
|
-
operator?: {
|
|
34682
|
-
__typename: "MarketOperator";
|
|
34683
|
-
address: string;
|
|
34684
|
-
} | null;
|
|
34685
|
-
}[] | undefined, Error>>;
|
|
34686
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34687
|
-
promise: Promise<{
|
|
34688
|
-
spendingApproval: bigint;
|
|
34689
|
-
operatorAddr: string;
|
|
34690
|
-
__typename: "UserMarketOperator";
|
|
34691
|
-
id: string;
|
|
34692
|
-
canExtend: boolean;
|
|
34693
|
-
canExercise: boolean;
|
|
34694
|
-
canTransfer: boolean;
|
|
34695
|
-
canMint: boolean;
|
|
34696
|
-
operator?: {
|
|
34697
|
-
__typename: "MarketOperator";
|
|
34698
|
-
address: string;
|
|
34699
|
-
} | null;
|
|
34700
|
-
}[] | undefined>;
|
|
34701
|
-
} | {
|
|
34702
|
-
data: {
|
|
34703
|
-
spendingApproval: bigint;
|
|
34704
|
-
operatorAddr: string;
|
|
34705
|
-
__typename: "UserMarketOperator";
|
|
34706
|
-
id: string;
|
|
34707
|
-
canExtend: boolean;
|
|
34708
|
-
canExercise: boolean;
|
|
34709
|
-
canTransfer: boolean;
|
|
34710
|
-
canMint: boolean;
|
|
34711
|
-
operator?: {
|
|
34712
|
-
__typename: "MarketOperator";
|
|
34713
|
-
address: string;
|
|
34714
|
-
} | null;
|
|
34715
|
-
}[];
|
|
34716
|
-
error: null;
|
|
34717
|
-
isError: false;
|
|
34718
|
-
isPending: true;
|
|
34719
|
-
isLoading: true;
|
|
34720
|
-
isLoadingError: false;
|
|
34721
|
-
isRefetchError: false;
|
|
34722
|
-
isSuccess: false;
|
|
34723
|
-
isPlaceholderData: false;
|
|
34724
|
-
status: "pending";
|
|
34725
|
-
dataUpdatedAt: number;
|
|
34726
|
-
errorUpdatedAt: number;
|
|
34727
|
-
failureCount: number;
|
|
34728
|
-
failureReason: Error | null;
|
|
34729
|
-
errorUpdateCount: number;
|
|
34730
|
-
isFetched: boolean;
|
|
34731
|
-
isFetchedAfterMount: boolean;
|
|
34732
|
-
isFetching: boolean;
|
|
34733
|
-
isInitialLoading: boolean;
|
|
34734
|
-
isPaused: boolean;
|
|
34735
|
-
isRefetching: boolean;
|
|
34736
|
-
isStale: boolean;
|
|
34737
|
-
isEnabled: boolean;
|
|
34738
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34739
|
-
spendingApproval: bigint;
|
|
34740
|
-
operatorAddr: string;
|
|
34741
|
-
__typename: "UserMarketOperator";
|
|
34742
|
-
id: string;
|
|
34743
|
-
canExtend: boolean;
|
|
34744
|
-
canExercise: boolean;
|
|
34745
|
-
canTransfer: boolean;
|
|
34746
|
-
canMint: boolean;
|
|
34747
|
-
operator?: {
|
|
34748
|
-
__typename: "MarketOperator";
|
|
34749
|
-
address: string;
|
|
34750
|
-
} | null;
|
|
34751
|
-
}[] | undefined, Error>>;
|
|
34752
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34753
|
-
promise: Promise<{
|
|
34754
|
-
spendingApproval: bigint;
|
|
34755
|
-
operatorAddr: string;
|
|
34756
|
-
__typename: "UserMarketOperator";
|
|
34757
|
-
id: string;
|
|
34758
|
-
canExtend: boolean;
|
|
34759
|
-
canExercise: boolean;
|
|
34760
|
-
canTransfer: boolean;
|
|
34761
|
-
canMint: boolean;
|
|
34762
|
-
operator?: {
|
|
34763
|
-
__typename: "MarketOperator";
|
|
34764
|
-
address: string;
|
|
34765
|
-
} | null;
|
|
34766
|
-
}[] | undefined>;
|
|
34767
|
-
} | {
|
|
34768
|
-
data: {
|
|
34769
|
-
spendingApproval: bigint;
|
|
34770
|
-
operatorAddr: string;
|
|
34771
|
-
__typename: "UserMarketOperator";
|
|
34772
|
-
id: string;
|
|
34773
|
-
canExtend: boolean;
|
|
34774
|
-
canExercise: boolean;
|
|
34775
|
-
canTransfer: boolean;
|
|
34776
|
-
canMint: boolean;
|
|
34777
|
-
operator?: {
|
|
34778
|
-
__typename: "MarketOperator";
|
|
34779
|
-
address: string;
|
|
34780
|
-
} | null;
|
|
34781
|
-
}[];
|
|
34782
|
-
error: null;
|
|
34783
|
-
isError: false;
|
|
34784
|
-
isPending: true;
|
|
34785
|
-
isLoadingError: false;
|
|
34786
|
-
isRefetchError: false;
|
|
34787
|
-
isSuccess: false;
|
|
34788
|
-
isPlaceholderData: false;
|
|
34789
|
-
status: "pending";
|
|
34790
|
-
dataUpdatedAt: number;
|
|
34791
|
-
errorUpdatedAt: number;
|
|
34792
|
-
failureCount: number;
|
|
34793
|
-
failureReason: Error | null;
|
|
34794
|
-
errorUpdateCount: number;
|
|
34795
|
-
isFetched: boolean;
|
|
34796
|
-
isFetchedAfterMount: boolean;
|
|
34797
|
-
isFetching: boolean;
|
|
34798
|
-
isLoading: boolean;
|
|
34799
|
-
isInitialLoading: boolean;
|
|
34800
|
-
isPaused: boolean;
|
|
34801
|
-
isRefetching: boolean;
|
|
34802
|
-
isStale: boolean;
|
|
34803
|
-
isEnabled: boolean;
|
|
34804
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34805
|
-
spendingApproval: bigint;
|
|
34806
|
-
operatorAddr: string;
|
|
34807
|
-
__typename: "UserMarketOperator";
|
|
34808
|
-
id: string;
|
|
34809
|
-
canExtend: boolean;
|
|
34810
|
-
canExercise: boolean;
|
|
34811
|
-
canTransfer: boolean;
|
|
34812
|
-
canMint: boolean;
|
|
34813
|
-
operator?: {
|
|
34814
|
-
__typename: "MarketOperator";
|
|
34815
|
-
address: string;
|
|
34816
|
-
} | null;
|
|
34817
|
-
}[] | undefined, Error>>;
|
|
34818
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34819
|
-
promise: Promise<{
|
|
34820
|
-
spendingApproval: bigint;
|
|
34821
|
-
operatorAddr: string;
|
|
34822
|
-
__typename: "UserMarketOperator";
|
|
34823
|
-
id: string;
|
|
34824
|
-
canExtend: boolean;
|
|
34825
|
-
canExercise: boolean;
|
|
34826
|
-
canTransfer: boolean;
|
|
34827
|
-
canMint: boolean;
|
|
34828
|
-
operator?: {
|
|
34829
|
-
__typename: "MarketOperator";
|
|
34830
|
-
address: string;
|
|
34831
|
-
} | null;
|
|
34832
|
-
}[] | undefined>;
|
|
34833
|
-
} | {
|
|
34834
|
-
data: {
|
|
34835
|
-
spendingApproval: bigint;
|
|
34836
|
-
operatorAddr: string;
|
|
34837
|
-
__typename: "UserMarketOperator";
|
|
34838
|
-
id: string;
|
|
34839
|
-
canExtend: boolean;
|
|
34840
|
-
canExercise: boolean;
|
|
34841
|
-
canTransfer: boolean;
|
|
34842
|
-
canMint: boolean;
|
|
34843
|
-
operator?: {
|
|
34844
|
-
__typename: "MarketOperator";
|
|
34845
|
-
address: string;
|
|
34846
|
-
} | null;
|
|
34847
|
-
}[];
|
|
34848
|
-
isError: false;
|
|
34849
|
-
error: null;
|
|
34850
|
-
isPending: false;
|
|
34851
|
-
isLoading: false;
|
|
34852
|
-
isLoadingError: false;
|
|
34853
|
-
isRefetchError: false;
|
|
34854
|
-
isSuccess: true;
|
|
34855
|
-
isPlaceholderData: true;
|
|
34856
|
-
status: "success";
|
|
34857
|
-
dataUpdatedAt: number;
|
|
34858
|
-
errorUpdatedAt: number;
|
|
34859
|
-
failureCount: number;
|
|
34860
|
-
failureReason: Error | null;
|
|
34861
|
-
errorUpdateCount: number;
|
|
34862
|
-
isFetched: boolean;
|
|
34863
|
-
isFetchedAfterMount: boolean;
|
|
34864
|
-
isFetching: boolean;
|
|
34865
|
-
isInitialLoading: boolean;
|
|
34866
|
-
isPaused: boolean;
|
|
34867
|
-
isRefetching: boolean;
|
|
34868
|
-
isStale: boolean;
|
|
34869
|
-
isEnabled: boolean;
|
|
34870
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
34871
|
-
spendingApproval: bigint;
|
|
34872
|
-
operatorAddr: string;
|
|
34873
|
-
__typename: "UserMarketOperator";
|
|
34874
|
-
id: string;
|
|
34875
|
-
canExtend: boolean;
|
|
34876
|
-
canExercise: boolean;
|
|
34877
|
-
canTransfer: boolean;
|
|
34878
|
-
canMint: boolean;
|
|
34879
|
-
operator?: {
|
|
34880
|
-
__typename: "MarketOperator";
|
|
34881
|
-
address: string;
|
|
34882
|
-
} | null;
|
|
34883
|
-
}[] | undefined, Error>>;
|
|
34884
|
-
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
34885
|
-
promise: Promise<{
|
|
34886
|
-
spendingApproval: bigint;
|
|
34887
|
-
operatorAddr: string;
|
|
34888
|
-
__typename: "UserMarketOperator";
|
|
34889
|
-
id: string;
|
|
34890
|
-
canExtend: boolean;
|
|
34891
|
-
canExercise: boolean;
|
|
34892
|
-
canTransfer: boolean;
|
|
34893
|
-
canMint: boolean;
|
|
34894
|
-
operator?: {
|
|
34895
|
-
__typename: "MarketOperator";
|
|
34896
|
-
address: string;
|
|
34897
|
-
} | null;
|
|
34898
|
-
}[] | undefined>;
|
|
34899
|
-
};
|
|
34900
|
-
//#endregion
|
|
34901
|
-
//#region src/hooks/market/useSetOperatorPerms.d.ts
|
|
34902
|
-
declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
34903
|
-
operator: Address;
|
|
34904
|
-
canExtend: boolean;
|
|
34905
|
-
canExercise: boolean;
|
|
34906
|
-
canTransfer: boolean;
|
|
34907
|
-
canMint: boolean;
|
|
34908
|
-
spendingApproval: bigint;
|
|
34909
|
-
}, unknown>;
|
|
34910
|
-
//#endregion
|
|
34911
|
-
//#region src/hooks/market/useOptionTimeline.d.ts
|
|
34505
|
+
//#region src/hooks/options/useOptionTimeline.d.ts
|
|
34912
34506
|
type OptionTimelineData = ReturnType<typeof useOptionTimeline>['data'];
|
|
34913
34507
|
declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
34914
34508
|
error: Error;
|
|
@@ -35758,6 +35352,489 @@ declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
|
|
|
35758
35352
|
})[];
|
|
35759
35353
|
};
|
|
35760
35354
|
//#endregion
|
|
35355
|
+
//#region src/hooks/perps/useMintPerp.d.ts
|
|
35356
|
+
declare const useMintPerp: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<void, Error, {
|
|
35357
|
+
optionType: "CALL" | "PUT";
|
|
35358
|
+
amount: bigint;
|
|
35359
|
+
duration: number;
|
|
35360
|
+
strikeTick?: number;
|
|
35361
|
+
}, unknown>;
|
|
35362
|
+
//#endregion
|
|
35363
|
+
//#region src/lib/perpsOperator.d.ts
|
|
35364
|
+
type MintPerpBody = {
|
|
35365
|
+
marketAddr: Address;
|
|
35366
|
+
userAddr: Address;
|
|
35367
|
+
optionType: 'CALL' | 'PUT';
|
|
35368
|
+
amount: bigint;
|
|
35369
|
+
duration: number;
|
|
35370
|
+
strikeTick: number;
|
|
35371
|
+
};
|
|
35372
|
+
type ExercisePerpBody = {
|
|
35373
|
+
userAddr: Address;
|
|
35374
|
+
marketAddr: Address;
|
|
35375
|
+
optionId: bigint;
|
|
35376
|
+
liquidities: bigint[];
|
|
35377
|
+
};
|
|
35378
|
+
declare class PerpsOperator {
|
|
35379
|
+
#private;
|
|
35380
|
+
private baseUrl;
|
|
35381
|
+
constructor(baseUrl: string);
|
|
35382
|
+
getOperatorAddr(): Promise<Address>;
|
|
35383
|
+
getUserPerps(userAddr: Address, marketAddr?: Address, type?: 'active' | 'closed', offset?: number, limit?: number): Promise<{
|
|
35384
|
+
optionId: bigint;
|
|
35385
|
+
id: string;
|
|
35386
|
+
ownerAddr: Address;
|
|
35387
|
+
marketAddr: Address;
|
|
35388
|
+
perpDuration: number;
|
|
35389
|
+
expiresAt: number;
|
|
35390
|
+
closed: boolean;
|
|
35391
|
+
}[]>;
|
|
35392
|
+
mintPerp(body: MintPerpBody): Promise<{
|
|
35393
|
+
txHash: string;
|
|
35394
|
+
optionId: bigint;
|
|
35395
|
+
}>;
|
|
35396
|
+
exercisePerp(body: ExercisePerpBody): Promise<{
|
|
35397
|
+
txHash: string;
|
|
35398
|
+
optionId: bigint;
|
|
35399
|
+
}>;
|
|
35400
|
+
}
|
|
35401
|
+
//#endregion
|
|
35402
|
+
//#region src/hooks/perps/useClosePerp.d.ts
|
|
35403
|
+
declare const useClosePerp: () => _tanstack_react_query0.UseMutationResult<{
|
|
35404
|
+
txHash: string;
|
|
35405
|
+
optionId: bigint;
|
|
35406
|
+
}, Error, ExercisePerpBody, unknown>;
|
|
35407
|
+
//#endregion
|
|
35408
|
+
//#region src/hooks/perps/usePerpsOperator.d.ts
|
|
35409
|
+
declare const usePerpsOperator: () => {
|
|
35410
|
+
operator: PerpsOperator | undefined;
|
|
35411
|
+
address: `0x${string}` | undefined;
|
|
35412
|
+
};
|
|
35413
|
+
//#endregion
|
|
35414
|
+
//#region src/hooks/operators/useUserOperators.d.ts
|
|
35415
|
+
declare const useUserOperators: (userAddr?: Address, marketAddr?: Address) => {
|
|
35416
|
+
data: {
|
|
35417
|
+
spendingApproval: bigint;
|
|
35418
|
+
operatorAddr: string;
|
|
35419
|
+
__typename: "UserMarketOperator";
|
|
35420
|
+
id: string;
|
|
35421
|
+
canExtend: boolean;
|
|
35422
|
+
canExercise: boolean;
|
|
35423
|
+
canTransfer: boolean;
|
|
35424
|
+
canMint: boolean;
|
|
35425
|
+
operator?: {
|
|
35426
|
+
__typename: "MarketOperator";
|
|
35427
|
+
address: string;
|
|
35428
|
+
} | null;
|
|
35429
|
+
}[];
|
|
35430
|
+
error: Error;
|
|
35431
|
+
isError: true;
|
|
35432
|
+
isPending: false;
|
|
35433
|
+
isLoading: false;
|
|
35434
|
+
isLoadingError: false;
|
|
35435
|
+
isRefetchError: true;
|
|
35436
|
+
isSuccess: false;
|
|
35437
|
+
isPlaceholderData: false;
|
|
35438
|
+
status: "error";
|
|
35439
|
+
dataUpdatedAt: number;
|
|
35440
|
+
errorUpdatedAt: number;
|
|
35441
|
+
failureCount: number;
|
|
35442
|
+
failureReason: Error | null;
|
|
35443
|
+
errorUpdateCount: number;
|
|
35444
|
+
isFetched: boolean;
|
|
35445
|
+
isFetchedAfterMount: boolean;
|
|
35446
|
+
isFetching: boolean;
|
|
35447
|
+
isInitialLoading: boolean;
|
|
35448
|
+
isPaused: boolean;
|
|
35449
|
+
isRefetching: boolean;
|
|
35450
|
+
isStale: boolean;
|
|
35451
|
+
isEnabled: boolean;
|
|
35452
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35453
|
+
spendingApproval: bigint;
|
|
35454
|
+
operatorAddr: string;
|
|
35455
|
+
__typename: "UserMarketOperator";
|
|
35456
|
+
id: string;
|
|
35457
|
+
canExtend: boolean;
|
|
35458
|
+
canExercise: boolean;
|
|
35459
|
+
canTransfer: boolean;
|
|
35460
|
+
canMint: boolean;
|
|
35461
|
+
operator?: {
|
|
35462
|
+
__typename: "MarketOperator";
|
|
35463
|
+
address: string;
|
|
35464
|
+
} | null;
|
|
35465
|
+
}[] | undefined, Error>>;
|
|
35466
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35467
|
+
promise: Promise<{
|
|
35468
|
+
spendingApproval: bigint;
|
|
35469
|
+
operatorAddr: string;
|
|
35470
|
+
__typename: "UserMarketOperator";
|
|
35471
|
+
id: string;
|
|
35472
|
+
canExtend: boolean;
|
|
35473
|
+
canExercise: boolean;
|
|
35474
|
+
canTransfer: boolean;
|
|
35475
|
+
canMint: boolean;
|
|
35476
|
+
operator?: {
|
|
35477
|
+
__typename: "MarketOperator";
|
|
35478
|
+
address: string;
|
|
35479
|
+
} | null;
|
|
35480
|
+
}[] | undefined>;
|
|
35481
|
+
} | {
|
|
35482
|
+
data: {
|
|
35483
|
+
spendingApproval: bigint;
|
|
35484
|
+
operatorAddr: string;
|
|
35485
|
+
__typename: "UserMarketOperator";
|
|
35486
|
+
id: string;
|
|
35487
|
+
canExtend: boolean;
|
|
35488
|
+
canExercise: boolean;
|
|
35489
|
+
canTransfer: boolean;
|
|
35490
|
+
canMint: boolean;
|
|
35491
|
+
operator?: {
|
|
35492
|
+
__typename: "MarketOperator";
|
|
35493
|
+
address: string;
|
|
35494
|
+
} | null;
|
|
35495
|
+
}[];
|
|
35496
|
+
error: null;
|
|
35497
|
+
isError: false;
|
|
35498
|
+
isPending: false;
|
|
35499
|
+
isLoading: false;
|
|
35500
|
+
isLoadingError: false;
|
|
35501
|
+
isRefetchError: false;
|
|
35502
|
+
isSuccess: true;
|
|
35503
|
+
isPlaceholderData: false;
|
|
35504
|
+
status: "success";
|
|
35505
|
+
dataUpdatedAt: number;
|
|
35506
|
+
errorUpdatedAt: number;
|
|
35507
|
+
failureCount: number;
|
|
35508
|
+
failureReason: Error | null;
|
|
35509
|
+
errorUpdateCount: number;
|
|
35510
|
+
isFetched: boolean;
|
|
35511
|
+
isFetchedAfterMount: boolean;
|
|
35512
|
+
isFetching: boolean;
|
|
35513
|
+
isInitialLoading: boolean;
|
|
35514
|
+
isPaused: boolean;
|
|
35515
|
+
isRefetching: boolean;
|
|
35516
|
+
isStale: boolean;
|
|
35517
|
+
isEnabled: boolean;
|
|
35518
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35519
|
+
spendingApproval: bigint;
|
|
35520
|
+
operatorAddr: string;
|
|
35521
|
+
__typename: "UserMarketOperator";
|
|
35522
|
+
id: string;
|
|
35523
|
+
canExtend: boolean;
|
|
35524
|
+
canExercise: boolean;
|
|
35525
|
+
canTransfer: boolean;
|
|
35526
|
+
canMint: boolean;
|
|
35527
|
+
operator?: {
|
|
35528
|
+
__typename: "MarketOperator";
|
|
35529
|
+
address: string;
|
|
35530
|
+
} | null;
|
|
35531
|
+
}[] | undefined, Error>>;
|
|
35532
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35533
|
+
promise: Promise<{
|
|
35534
|
+
spendingApproval: bigint;
|
|
35535
|
+
operatorAddr: string;
|
|
35536
|
+
__typename: "UserMarketOperator";
|
|
35537
|
+
id: string;
|
|
35538
|
+
canExtend: boolean;
|
|
35539
|
+
canExercise: boolean;
|
|
35540
|
+
canTransfer: boolean;
|
|
35541
|
+
canMint: boolean;
|
|
35542
|
+
operator?: {
|
|
35543
|
+
__typename: "MarketOperator";
|
|
35544
|
+
address: string;
|
|
35545
|
+
} | null;
|
|
35546
|
+
}[] | undefined>;
|
|
35547
|
+
} | {
|
|
35548
|
+
data: {
|
|
35549
|
+
spendingApproval: bigint;
|
|
35550
|
+
operatorAddr: string;
|
|
35551
|
+
__typename: "UserMarketOperator";
|
|
35552
|
+
id: string;
|
|
35553
|
+
canExtend: boolean;
|
|
35554
|
+
canExercise: boolean;
|
|
35555
|
+
canTransfer: boolean;
|
|
35556
|
+
canMint: boolean;
|
|
35557
|
+
operator?: {
|
|
35558
|
+
__typename: "MarketOperator";
|
|
35559
|
+
address: string;
|
|
35560
|
+
} | null;
|
|
35561
|
+
}[];
|
|
35562
|
+
error: Error;
|
|
35563
|
+
isError: true;
|
|
35564
|
+
isPending: false;
|
|
35565
|
+
isLoading: false;
|
|
35566
|
+
isLoadingError: true;
|
|
35567
|
+
isRefetchError: false;
|
|
35568
|
+
isSuccess: false;
|
|
35569
|
+
isPlaceholderData: false;
|
|
35570
|
+
status: "error";
|
|
35571
|
+
dataUpdatedAt: number;
|
|
35572
|
+
errorUpdatedAt: number;
|
|
35573
|
+
failureCount: number;
|
|
35574
|
+
failureReason: Error | null;
|
|
35575
|
+
errorUpdateCount: number;
|
|
35576
|
+
isFetched: boolean;
|
|
35577
|
+
isFetchedAfterMount: boolean;
|
|
35578
|
+
isFetching: boolean;
|
|
35579
|
+
isInitialLoading: boolean;
|
|
35580
|
+
isPaused: boolean;
|
|
35581
|
+
isRefetching: boolean;
|
|
35582
|
+
isStale: boolean;
|
|
35583
|
+
isEnabled: boolean;
|
|
35584
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35585
|
+
spendingApproval: bigint;
|
|
35586
|
+
operatorAddr: string;
|
|
35587
|
+
__typename: "UserMarketOperator";
|
|
35588
|
+
id: string;
|
|
35589
|
+
canExtend: boolean;
|
|
35590
|
+
canExercise: boolean;
|
|
35591
|
+
canTransfer: boolean;
|
|
35592
|
+
canMint: boolean;
|
|
35593
|
+
operator?: {
|
|
35594
|
+
__typename: "MarketOperator";
|
|
35595
|
+
address: string;
|
|
35596
|
+
} | null;
|
|
35597
|
+
}[] | undefined, Error>>;
|
|
35598
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35599
|
+
promise: Promise<{
|
|
35600
|
+
spendingApproval: bigint;
|
|
35601
|
+
operatorAddr: string;
|
|
35602
|
+
__typename: "UserMarketOperator";
|
|
35603
|
+
id: string;
|
|
35604
|
+
canExtend: boolean;
|
|
35605
|
+
canExercise: boolean;
|
|
35606
|
+
canTransfer: boolean;
|
|
35607
|
+
canMint: boolean;
|
|
35608
|
+
operator?: {
|
|
35609
|
+
__typename: "MarketOperator";
|
|
35610
|
+
address: string;
|
|
35611
|
+
} | null;
|
|
35612
|
+
}[] | undefined>;
|
|
35613
|
+
} | {
|
|
35614
|
+
data: {
|
|
35615
|
+
spendingApproval: bigint;
|
|
35616
|
+
operatorAddr: string;
|
|
35617
|
+
__typename: "UserMarketOperator";
|
|
35618
|
+
id: string;
|
|
35619
|
+
canExtend: boolean;
|
|
35620
|
+
canExercise: boolean;
|
|
35621
|
+
canTransfer: boolean;
|
|
35622
|
+
canMint: boolean;
|
|
35623
|
+
operator?: {
|
|
35624
|
+
__typename: "MarketOperator";
|
|
35625
|
+
address: string;
|
|
35626
|
+
} | null;
|
|
35627
|
+
}[];
|
|
35628
|
+
error: null;
|
|
35629
|
+
isError: false;
|
|
35630
|
+
isPending: true;
|
|
35631
|
+
isLoading: true;
|
|
35632
|
+
isLoadingError: false;
|
|
35633
|
+
isRefetchError: false;
|
|
35634
|
+
isSuccess: false;
|
|
35635
|
+
isPlaceholderData: false;
|
|
35636
|
+
status: "pending";
|
|
35637
|
+
dataUpdatedAt: number;
|
|
35638
|
+
errorUpdatedAt: number;
|
|
35639
|
+
failureCount: number;
|
|
35640
|
+
failureReason: Error | null;
|
|
35641
|
+
errorUpdateCount: number;
|
|
35642
|
+
isFetched: boolean;
|
|
35643
|
+
isFetchedAfterMount: boolean;
|
|
35644
|
+
isFetching: boolean;
|
|
35645
|
+
isInitialLoading: boolean;
|
|
35646
|
+
isPaused: boolean;
|
|
35647
|
+
isRefetching: boolean;
|
|
35648
|
+
isStale: boolean;
|
|
35649
|
+
isEnabled: boolean;
|
|
35650
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35651
|
+
spendingApproval: bigint;
|
|
35652
|
+
operatorAddr: string;
|
|
35653
|
+
__typename: "UserMarketOperator";
|
|
35654
|
+
id: string;
|
|
35655
|
+
canExtend: boolean;
|
|
35656
|
+
canExercise: boolean;
|
|
35657
|
+
canTransfer: boolean;
|
|
35658
|
+
canMint: boolean;
|
|
35659
|
+
operator?: {
|
|
35660
|
+
__typename: "MarketOperator";
|
|
35661
|
+
address: string;
|
|
35662
|
+
} | null;
|
|
35663
|
+
}[] | undefined, Error>>;
|
|
35664
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35665
|
+
promise: Promise<{
|
|
35666
|
+
spendingApproval: bigint;
|
|
35667
|
+
operatorAddr: string;
|
|
35668
|
+
__typename: "UserMarketOperator";
|
|
35669
|
+
id: string;
|
|
35670
|
+
canExtend: boolean;
|
|
35671
|
+
canExercise: boolean;
|
|
35672
|
+
canTransfer: boolean;
|
|
35673
|
+
canMint: boolean;
|
|
35674
|
+
operator?: {
|
|
35675
|
+
__typename: "MarketOperator";
|
|
35676
|
+
address: string;
|
|
35677
|
+
} | null;
|
|
35678
|
+
}[] | undefined>;
|
|
35679
|
+
} | {
|
|
35680
|
+
data: {
|
|
35681
|
+
spendingApproval: bigint;
|
|
35682
|
+
operatorAddr: string;
|
|
35683
|
+
__typename: "UserMarketOperator";
|
|
35684
|
+
id: string;
|
|
35685
|
+
canExtend: boolean;
|
|
35686
|
+
canExercise: boolean;
|
|
35687
|
+
canTransfer: boolean;
|
|
35688
|
+
canMint: boolean;
|
|
35689
|
+
operator?: {
|
|
35690
|
+
__typename: "MarketOperator";
|
|
35691
|
+
address: string;
|
|
35692
|
+
} | null;
|
|
35693
|
+
}[];
|
|
35694
|
+
error: null;
|
|
35695
|
+
isError: false;
|
|
35696
|
+
isPending: true;
|
|
35697
|
+
isLoadingError: false;
|
|
35698
|
+
isRefetchError: false;
|
|
35699
|
+
isSuccess: false;
|
|
35700
|
+
isPlaceholderData: false;
|
|
35701
|
+
status: "pending";
|
|
35702
|
+
dataUpdatedAt: number;
|
|
35703
|
+
errorUpdatedAt: number;
|
|
35704
|
+
failureCount: number;
|
|
35705
|
+
failureReason: Error | null;
|
|
35706
|
+
errorUpdateCount: number;
|
|
35707
|
+
isFetched: boolean;
|
|
35708
|
+
isFetchedAfterMount: boolean;
|
|
35709
|
+
isFetching: boolean;
|
|
35710
|
+
isLoading: boolean;
|
|
35711
|
+
isInitialLoading: boolean;
|
|
35712
|
+
isPaused: boolean;
|
|
35713
|
+
isRefetching: boolean;
|
|
35714
|
+
isStale: boolean;
|
|
35715
|
+
isEnabled: boolean;
|
|
35716
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35717
|
+
spendingApproval: bigint;
|
|
35718
|
+
operatorAddr: string;
|
|
35719
|
+
__typename: "UserMarketOperator";
|
|
35720
|
+
id: string;
|
|
35721
|
+
canExtend: boolean;
|
|
35722
|
+
canExercise: boolean;
|
|
35723
|
+
canTransfer: boolean;
|
|
35724
|
+
canMint: boolean;
|
|
35725
|
+
operator?: {
|
|
35726
|
+
__typename: "MarketOperator";
|
|
35727
|
+
address: string;
|
|
35728
|
+
} | null;
|
|
35729
|
+
}[] | undefined, Error>>;
|
|
35730
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35731
|
+
promise: Promise<{
|
|
35732
|
+
spendingApproval: bigint;
|
|
35733
|
+
operatorAddr: string;
|
|
35734
|
+
__typename: "UserMarketOperator";
|
|
35735
|
+
id: string;
|
|
35736
|
+
canExtend: boolean;
|
|
35737
|
+
canExercise: boolean;
|
|
35738
|
+
canTransfer: boolean;
|
|
35739
|
+
canMint: boolean;
|
|
35740
|
+
operator?: {
|
|
35741
|
+
__typename: "MarketOperator";
|
|
35742
|
+
address: string;
|
|
35743
|
+
} | null;
|
|
35744
|
+
}[] | undefined>;
|
|
35745
|
+
} | {
|
|
35746
|
+
data: {
|
|
35747
|
+
spendingApproval: bigint;
|
|
35748
|
+
operatorAddr: string;
|
|
35749
|
+
__typename: "UserMarketOperator";
|
|
35750
|
+
id: string;
|
|
35751
|
+
canExtend: boolean;
|
|
35752
|
+
canExercise: boolean;
|
|
35753
|
+
canTransfer: boolean;
|
|
35754
|
+
canMint: boolean;
|
|
35755
|
+
operator?: {
|
|
35756
|
+
__typename: "MarketOperator";
|
|
35757
|
+
address: string;
|
|
35758
|
+
} | null;
|
|
35759
|
+
}[];
|
|
35760
|
+
isError: false;
|
|
35761
|
+
error: null;
|
|
35762
|
+
isPending: false;
|
|
35763
|
+
isLoading: false;
|
|
35764
|
+
isLoadingError: false;
|
|
35765
|
+
isRefetchError: false;
|
|
35766
|
+
isSuccess: true;
|
|
35767
|
+
isPlaceholderData: true;
|
|
35768
|
+
status: "success";
|
|
35769
|
+
dataUpdatedAt: number;
|
|
35770
|
+
errorUpdatedAt: number;
|
|
35771
|
+
failureCount: number;
|
|
35772
|
+
failureReason: Error | null;
|
|
35773
|
+
errorUpdateCount: number;
|
|
35774
|
+
isFetched: boolean;
|
|
35775
|
+
isFetchedAfterMount: boolean;
|
|
35776
|
+
isFetching: boolean;
|
|
35777
|
+
isInitialLoading: boolean;
|
|
35778
|
+
isPaused: boolean;
|
|
35779
|
+
isRefetching: boolean;
|
|
35780
|
+
isStale: boolean;
|
|
35781
|
+
isEnabled: boolean;
|
|
35782
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<{
|
|
35783
|
+
spendingApproval: bigint;
|
|
35784
|
+
operatorAddr: string;
|
|
35785
|
+
__typename: "UserMarketOperator";
|
|
35786
|
+
id: string;
|
|
35787
|
+
canExtend: boolean;
|
|
35788
|
+
canExercise: boolean;
|
|
35789
|
+
canTransfer: boolean;
|
|
35790
|
+
canMint: boolean;
|
|
35791
|
+
operator?: {
|
|
35792
|
+
__typename: "MarketOperator";
|
|
35793
|
+
address: string;
|
|
35794
|
+
} | null;
|
|
35795
|
+
}[] | undefined, Error>>;
|
|
35796
|
+
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35797
|
+
promise: Promise<{
|
|
35798
|
+
spendingApproval: bigint;
|
|
35799
|
+
operatorAddr: string;
|
|
35800
|
+
__typename: "UserMarketOperator";
|
|
35801
|
+
id: string;
|
|
35802
|
+
canExtend: boolean;
|
|
35803
|
+
canExercise: boolean;
|
|
35804
|
+
canTransfer: boolean;
|
|
35805
|
+
canMint: boolean;
|
|
35806
|
+
operator?: {
|
|
35807
|
+
__typename: "MarketOperator";
|
|
35808
|
+
address: string;
|
|
35809
|
+
} | null;
|
|
35810
|
+
}[] | undefined>;
|
|
35811
|
+
};
|
|
35812
|
+
//#endregion
|
|
35813
|
+
//#region src/hooks/operators/useSetOperatorPerms.d.ts
|
|
35814
|
+
declare const useSetOperatorPerms: (marketAddr?: Address) => _tanstack_react_query0.UseMutationResult<`0x${string}`, Error, {
|
|
35815
|
+
operator: Address;
|
|
35816
|
+
canExtend: boolean;
|
|
35817
|
+
canExercise: boolean;
|
|
35818
|
+
canTransfer: boolean;
|
|
35819
|
+
canMint: boolean;
|
|
35820
|
+
spendingApproval: bigint;
|
|
35821
|
+
}, unknown>;
|
|
35822
|
+
//#endregion
|
|
35823
|
+
//#region src/lib/price.d.ts
|
|
35824
|
+
interface PriceData {
|
|
35825
|
+
currentPrice: number;
|
|
35826
|
+
percentChange: number;
|
|
35827
|
+
poolAddress: string;
|
|
35828
|
+
timestamp: number;
|
|
35829
|
+
}
|
|
35830
|
+
interface PriceDataPoint {
|
|
35831
|
+
timestamp: Date;
|
|
35832
|
+
price: number;
|
|
35833
|
+
}
|
|
35834
|
+
type PriceResolution = '1m' | '5m' | '15m' | '1h' | '4h' | '1d';
|
|
35835
|
+
declare const getPriceHistory: (poolAddress: string, resolution: PriceResolution, start: Date, end: Date) => Promise<PriceDataPoint[]>;
|
|
35836
|
+
declare const getCurrentPrice: (poolAddress: string) => Promise<PriceData>;
|
|
35837
|
+
//#endregion
|
|
35761
35838
|
//#region src/lib/liquidityUtils.d.ts
|
|
35762
35839
|
declare const PRICE_PRECISION: bigint;
|
|
35763
35840
|
declare const getPriceAtTick: (tick: number) => bigint;
|
|
@@ -35809,13 +35886,6 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
35809
35886
|
//#region src/hooks/pool/usePriceAtTick.d.ts
|
|
35810
35887
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
35811
35888
|
//#endregion
|
|
35812
|
-
//#region src/lib/price.d.ts
|
|
35813
|
-
interface PriceDataPoint {
|
|
35814
|
-
timestamp: Date;
|
|
35815
|
-
price: number;
|
|
35816
|
-
}
|
|
35817
|
-
type PriceResolution = '1m' | '5m' | '15m' | '1h' | '4h' | '1d';
|
|
35818
|
-
//#endregion
|
|
35819
35889
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
35820
35890
|
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
35821
35891
|
//#endregion
|
|
@@ -35839,7 +35909,7 @@ declare const useBurnLiquidity: (vaultAddr?: Address) => {
|
|
|
35839
35909
|
//#region src/hooks/vault/useLiquidityBlocks.d.ts
|
|
35840
35910
|
type LiquidityBlockData = ReturnType<typeof useLiquidityBlocks>['data'][0];
|
|
35841
35911
|
declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
35842
|
-
error:
|
|
35912
|
+
error: viem131.ReadContractErrorType;
|
|
35843
35913
|
isError: true;
|
|
35844
35914
|
isPending: false;
|
|
35845
35915
|
isLoading: false;
|
|
@@ -35851,7 +35921,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35851
35921
|
dataUpdatedAt: number;
|
|
35852
35922
|
errorUpdatedAt: number;
|
|
35853
35923
|
failureCount: number;
|
|
35854
|
-
failureReason:
|
|
35924
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
35855
35925
|
errorUpdateCount: number;
|
|
35856
35926
|
isFetched: boolean;
|
|
35857
35927
|
isFetchedAfterMount: boolean;
|
|
@@ -35871,7 +35941,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35871
35941
|
totalAmount1: bigint;
|
|
35872
35942
|
borrowedAmount0: bigint;
|
|
35873
35943
|
borrowedAmount1: bigint;
|
|
35874
|
-
}[],
|
|
35944
|
+
}[], viem131.ReadContractErrorType>>;
|
|
35875
35945
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35876
35946
|
promise: Promise<readonly {
|
|
35877
35947
|
tickLower: number;
|
|
@@ -35909,7 +35979,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35909
35979
|
dataUpdatedAt: number;
|
|
35910
35980
|
errorUpdatedAt: number;
|
|
35911
35981
|
failureCount: number;
|
|
35912
|
-
failureReason:
|
|
35982
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
35913
35983
|
errorUpdateCount: number;
|
|
35914
35984
|
isFetched: boolean;
|
|
35915
35985
|
isFetchedAfterMount: boolean;
|
|
@@ -35929,7 +35999,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35929
35999
|
totalAmount1: bigint;
|
|
35930
36000
|
borrowedAmount0: bigint;
|
|
35931
36001
|
borrowedAmount1: bigint;
|
|
35932
|
-
}[],
|
|
36002
|
+
}[], viem131.ReadContractErrorType>>;
|
|
35933
36003
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35934
36004
|
promise: Promise<readonly {
|
|
35935
36005
|
tickLower: number;
|
|
@@ -35955,7 +36025,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35955
36025
|
borrowedAmount1: bigint;
|
|
35956
36026
|
}[];
|
|
35957
36027
|
} | {
|
|
35958
|
-
error:
|
|
36028
|
+
error: viem131.ReadContractErrorType;
|
|
35959
36029
|
isError: true;
|
|
35960
36030
|
isPending: false;
|
|
35961
36031
|
isLoading: false;
|
|
@@ -35967,7 +36037,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35967
36037
|
dataUpdatedAt: number;
|
|
35968
36038
|
errorUpdatedAt: number;
|
|
35969
36039
|
failureCount: number;
|
|
35970
|
-
failureReason:
|
|
36040
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
35971
36041
|
errorUpdateCount: number;
|
|
35972
36042
|
isFetched: boolean;
|
|
35973
36043
|
isFetchedAfterMount: boolean;
|
|
@@ -35987,7 +36057,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
35987
36057
|
totalAmount1: bigint;
|
|
35988
36058
|
borrowedAmount0: bigint;
|
|
35989
36059
|
borrowedAmount1: bigint;
|
|
35990
|
-
}[],
|
|
36060
|
+
}[], viem131.ReadContractErrorType>>;
|
|
35991
36061
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
35992
36062
|
promise: Promise<readonly {
|
|
35993
36063
|
tickLower: number;
|
|
@@ -36025,7 +36095,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36025
36095
|
dataUpdatedAt: number;
|
|
36026
36096
|
errorUpdatedAt: number;
|
|
36027
36097
|
failureCount: number;
|
|
36028
|
-
failureReason:
|
|
36098
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
36029
36099
|
errorUpdateCount: number;
|
|
36030
36100
|
isFetched: boolean;
|
|
36031
36101
|
isFetchedAfterMount: boolean;
|
|
@@ -36045,7 +36115,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36045
36115
|
totalAmount1: bigint;
|
|
36046
36116
|
borrowedAmount0: bigint;
|
|
36047
36117
|
borrowedAmount1: bigint;
|
|
36048
|
-
}[],
|
|
36118
|
+
}[], viem131.ReadContractErrorType>>;
|
|
36049
36119
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
36050
36120
|
promise: Promise<readonly {
|
|
36051
36121
|
tickLower: number;
|
|
@@ -36082,7 +36152,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36082
36152
|
dataUpdatedAt: number;
|
|
36083
36153
|
errorUpdatedAt: number;
|
|
36084
36154
|
failureCount: number;
|
|
36085
|
-
failureReason:
|
|
36155
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
36086
36156
|
errorUpdateCount: number;
|
|
36087
36157
|
isFetched: boolean;
|
|
36088
36158
|
isFetchedAfterMount: boolean;
|
|
@@ -36103,7 +36173,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36103
36173
|
totalAmount1: bigint;
|
|
36104
36174
|
borrowedAmount0: bigint;
|
|
36105
36175
|
borrowedAmount1: bigint;
|
|
36106
|
-
}[],
|
|
36176
|
+
}[], viem131.ReadContractErrorType>>;
|
|
36107
36177
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
36108
36178
|
promise: Promise<readonly {
|
|
36109
36179
|
tickLower: number;
|
|
@@ -36141,7 +36211,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36141
36211
|
dataUpdatedAt: number;
|
|
36142
36212
|
errorUpdatedAt: number;
|
|
36143
36213
|
failureCount: number;
|
|
36144
|
-
failureReason:
|
|
36214
|
+
failureReason: viem131.ReadContractErrorType | null;
|
|
36145
36215
|
errorUpdateCount: number;
|
|
36146
36216
|
isFetched: boolean;
|
|
36147
36217
|
isFetchedAfterMount: boolean;
|
|
@@ -36161,7 +36231,7 @@ declare const useLiquidityBlocks: (vaultAddr?: Address) => {
|
|
|
36161
36231
|
totalAmount1: bigint;
|
|
36162
36232
|
borrowedAmount0: bigint;
|
|
36163
36233
|
borrowedAmount1: bigint;
|
|
36164
|
-
}[],
|
|
36234
|
+
}[], viem131.ReadContractErrorType>>;
|
|
36165
36235
|
fetchStatus: _tanstack_query_core0.FetchStatus;
|
|
36166
36236
|
promise: Promise<readonly {
|
|
36167
36237
|
tickLower: number;
|
|
@@ -36234,14 +36304,14 @@ declare const useVaultTVL: (vaultAddr?: Address) => {
|
|
|
36234
36304
|
borrowedAmount0: Amount;
|
|
36235
36305
|
borrowedAmount1: Amount;
|
|
36236
36306
|
blocksCount: bigint;
|
|
36237
|
-
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint],
|
|
36307
|
+
refetch: (options?: _tanstack_query_core0.RefetchOptions) => Promise<_tanstack_query_core0.QueryObserverResult<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint], viem131.ReadContractErrorType>>;
|
|
36238
36308
|
};
|
|
36239
36309
|
//#endregion
|
|
36240
36310
|
//#region src/hooks/useLens.d.ts
|
|
36241
36311
|
declare const useLens: () => {
|
|
36242
36312
|
timelockLens: {
|
|
36243
36313
|
read: {
|
|
36244
|
-
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?:
|
|
36314
|
+
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
36245
36315
|
readonly type: "function";
|
|
36246
36316
|
readonly name: "batchGetRefTick";
|
|
36247
36317
|
readonly inputs: readonly [{
|
|
@@ -36915,7 +36985,7 @@ declare const useLens: () => {
|
|
|
36915
36985
|
}];
|
|
36916
36986
|
readonly stateMutability: "view";
|
|
36917
36987
|
}], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
|
|
36918
|
-
getAllBlocks: (args: readonly [`0x${string}`], options?:
|
|
36988
|
+
getAllBlocks: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
36919
36989
|
readonly type: "function";
|
|
36920
36990
|
readonly name: "batchGetRefTick";
|
|
36921
36991
|
readonly inputs: readonly [{
|
|
@@ -37599,7 +37669,7 @@ declare const useLens: () => {
|
|
|
37599
37669
|
borrowedAmount0: bigint;
|
|
37600
37670
|
borrowedAmount1: bigint;
|
|
37601
37671
|
}[]>;
|
|
37602
|
-
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?:
|
|
37672
|
+
getExpiredOptions: (args: readonly [`0x${string}`, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
37603
37673
|
readonly type: "function";
|
|
37604
37674
|
readonly name: "batchGetRefTick";
|
|
37605
37675
|
readonly inputs: readonly [{
|
|
@@ -38290,7 +38360,7 @@ declare const useLens: () => {
|
|
|
38290
38360
|
expiresAt: number;
|
|
38291
38361
|
liquidities: readonly bigint[];
|
|
38292
38362
|
}[], bigint, boolean]>;
|
|
38293
|
-
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?:
|
|
38363
|
+
getLiquidityAtTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
38294
38364
|
readonly type: "function";
|
|
38295
38365
|
readonly name: "batchGetRefTick";
|
|
38296
38366
|
readonly inputs: readonly [{
|
|
@@ -38964,7 +39034,7 @@ declare const useLens: () => {
|
|
|
38964
39034
|
}];
|
|
38965
39035
|
readonly stateMutability: "view";
|
|
38966
39036
|
}], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
38967
|
-
getMarketData: (args: readonly [`0x${string}`], options?:
|
|
39037
|
+
getMarketData: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
38968
39038
|
readonly type: "function";
|
|
38969
39039
|
readonly name: "batchGetRefTick";
|
|
38970
39040
|
readonly inputs: readonly [{
|
|
@@ -39651,7 +39721,7 @@ declare const useLens: () => {
|
|
|
39651
39721
|
payoutAssetName: string;
|
|
39652
39722
|
optionsCount: bigint;
|
|
39653
39723
|
}>;
|
|
39654
|
-
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?:
|
|
39724
|
+
getMaxPositionSize: (args: readonly [`0x${string}`, number, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
39655
39725
|
readonly type: "function";
|
|
39656
39726
|
readonly name: "batchGetRefTick";
|
|
39657
39727
|
readonly inputs: readonly [{
|
|
@@ -40325,7 +40395,7 @@ declare const useLens: () => {
|
|
|
40325
40395
|
}];
|
|
40326
40396
|
readonly stateMutability: "view";
|
|
40327
40397
|
}], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
40328
|
-
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?:
|
|
40398
|
+
getMaxPositionSizeAtCurrentTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
40329
40399
|
readonly type: "function";
|
|
40330
40400
|
readonly name: "batchGetRefTick";
|
|
40331
40401
|
readonly inputs: readonly [{
|
|
@@ -40999,7 +41069,7 @@ declare const useLens: () => {
|
|
|
40999
41069
|
}];
|
|
41000
41070
|
readonly stateMutability: "view";
|
|
41001
41071
|
}], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
41002
|
-
getOptionData: (args: readonly [`0x${string}`, bigint], options?:
|
|
41072
|
+
getOptionData: (args: readonly [`0x${string}`, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
41003
41073
|
readonly type: "function";
|
|
41004
41074
|
readonly name: "batchGetRefTick";
|
|
41005
41075
|
readonly inputs: readonly [{
|
|
@@ -41690,7 +41760,7 @@ declare const useLens: () => {
|
|
|
41690
41760
|
expiresAt: number;
|
|
41691
41761
|
liquidities: readonly bigint[];
|
|
41692
41762
|
}>;
|
|
41693
|
-
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?:
|
|
41763
|
+
getOptionsData: (args: readonly [`0x${string}`, readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
41694
41764
|
readonly type: "function";
|
|
41695
41765
|
readonly name: "batchGetRefTick";
|
|
41696
41766
|
readonly inputs: readonly [{
|
|
@@ -42381,7 +42451,7 @@ declare const useLens: () => {
|
|
|
42381
42451
|
expiresAt: number;
|
|
42382
42452
|
liquidities: readonly bigint[];
|
|
42383
42453
|
}[]>;
|
|
42384
|
-
getPoolData: (args: readonly [`0x${string}`], options?:
|
|
42454
|
+
getPoolData: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
42385
42455
|
readonly type: "function";
|
|
42386
42456
|
readonly name: "batchGetRefTick";
|
|
42387
42457
|
readonly inputs: readonly [{
|
|
@@ -43066,7 +43136,7 @@ declare const useLens: () => {
|
|
|
43066
43136
|
tickSpacing: number;
|
|
43067
43137
|
fee: number;
|
|
43068
43138
|
}>;
|
|
43069
|
-
getRefTick: (args: readonly [`0x${string}`, number], options?:
|
|
43139
|
+
getRefTick: (args: readonly [`0x${string}`, number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
43070
43140
|
readonly type: "function";
|
|
43071
43141
|
readonly name: "batchGetRefTick";
|
|
43072
43142
|
readonly inputs: readonly [{
|
|
@@ -43740,7 +43810,7 @@ declare const useLens: () => {
|
|
|
43740
43810
|
}];
|
|
43741
43811
|
readonly stateMutability: "view";
|
|
43742
43812
|
}], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
43743
|
-
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?:
|
|
43813
|
+
getUserOptions: (args: readonly [`0x${string}`, `0x${string}`, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
43744
43814
|
readonly type: "function";
|
|
43745
43815
|
readonly name: "batchGetRefTick";
|
|
43746
43816
|
readonly inputs: readonly [{
|
|
@@ -44431,7 +44501,7 @@ declare const useLens: () => {
|
|
|
44431
44501
|
expiresAt: number;
|
|
44432
44502
|
liquidities: readonly bigint[];
|
|
44433
44503
|
}[], bigint, boolean]>;
|
|
44434
|
-
getVaultTVL: (args: readonly [`0x${string}`], options?:
|
|
44504
|
+
getVaultTVL: (args: readonly [`0x${string}`], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
44435
44505
|
readonly type: "function";
|
|
44436
44506
|
readonly name: "batchGetRefTick";
|
|
44437
44507
|
readonly inputs: readonly [{
|
|
@@ -45784,7 +45854,7 @@ declare const useLens: () => {
|
|
|
45784
45854
|
} | undefined;
|
|
45785
45855
|
uniswapLens: {
|
|
45786
45856
|
read: {
|
|
45787
|
-
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
45857
|
+
batchGetAmount0ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
45788
45858
|
readonly type: "function";
|
|
45789
45859
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
45790
45860
|
readonly inputs: readonly [{
|
|
@@ -46405,7 +46475,7 @@ declare const useLens: () => {
|
|
|
46405
46475
|
}];
|
|
46406
46476
|
readonly stateMutability: "pure";
|
|
46407
46477
|
}], "batchGetAmount0ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
46408
|
-
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
46478
|
+
batchGetAmount0ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
46409
46479
|
readonly type: "function";
|
|
46410
46480
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
46411
46481
|
readonly inputs: readonly [{
|
|
@@ -47026,7 +47096,7 @@ declare const useLens: () => {
|
|
|
47026
47096
|
}];
|
|
47027
47097
|
readonly stateMutability: "pure";
|
|
47028
47098
|
}], "batchGetAmount0ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
47029
|
-
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
47099
|
+
batchGetAmount1ForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
47030
47100
|
readonly type: "function";
|
|
47031
47101
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
47032
47102
|
readonly inputs: readonly [{
|
|
@@ -47647,7 +47717,7 @@ declare const useLens: () => {
|
|
|
47647
47717
|
}];
|
|
47648
47718
|
readonly stateMutability: "pure";
|
|
47649
47719
|
}], "batchGetAmount1ForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
47650
|
-
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
47720
|
+
batchGetAmount1ForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
47651
47721
|
readonly type: "function";
|
|
47652
47722
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
47653
47723
|
readonly inputs: readonly [{
|
|
@@ -48268,7 +48338,7 @@ declare const useLens: () => {
|
|
|
48268
48338
|
}];
|
|
48269
48339
|
readonly stateMutability: "pure";
|
|
48270
48340
|
}], "batchGetAmount1ForLiquidityTicks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
48271
|
-
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
48341
|
+
batchGetAmountsForLiquidity: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
48272
48342
|
readonly type: "function";
|
|
48273
48343
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
48274
48344
|
readonly inputs: readonly [{
|
|
@@ -48889,7 +48959,7 @@ declare const useLens: () => {
|
|
|
48889
48959
|
}];
|
|
48890
48960
|
readonly stateMutability: "pure";
|
|
48891
48961
|
}], "batchGetAmountsForLiquidity", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
48892
|
-
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?:
|
|
48962
|
+
batchGetAmountsForLiquidityTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
48893
48963
|
readonly type: "function";
|
|
48894
48964
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
48895
48965
|
readonly inputs: readonly [{
|
|
@@ -49510,7 +49580,7 @@ declare const useLens: () => {
|
|
|
49510
49580
|
}];
|
|
49511
49581
|
readonly stateMutability: "pure";
|
|
49512
49582
|
}], "batchGetAmountsForLiquidityTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly bigint[], readonly bigint[]]>;
|
|
49513
|
-
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
49583
|
+
batchGetLiquidityForAmount0: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
49514
49584
|
readonly type: "function";
|
|
49515
49585
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
49516
49586
|
readonly inputs: readonly [{
|
|
@@ -50131,7 +50201,7 @@ declare const useLens: () => {
|
|
|
50131
50201
|
}];
|
|
50132
50202
|
readonly stateMutability: "pure";
|
|
50133
50203
|
}], "batchGetLiquidityForAmount0", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
50134
|
-
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
50204
|
+
batchGetLiquidityForAmount0Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
50135
50205
|
readonly type: "function";
|
|
50136
50206
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
50137
50207
|
readonly inputs: readonly [{
|
|
@@ -50752,7 +50822,7 @@ declare const useLens: () => {
|
|
|
50752
50822
|
}];
|
|
50753
50823
|
readonly stateMutability: "pure";
|
|
50754
50824
|
}], "batchGetLiquidityForAmount0Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
50755
|
-
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
50825
|
+
batchGetLiquidityForAmount1: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
50756
50826
|
readonly type: "function";
|
|
50757
50827
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
50758
50828
|
readonly inputs: readonly [{
|
|
@@ -51373,7 +51443,7 @@ declare const useLens: () => {
|
|
|
51373
51443
|
}];
|
|
51374
51444
|
readonly stateMutability: "pure";
|
|
51375
51445
|
}], "batchGetLiquidityForAmount1", readonly [readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
51376
|
-
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?:
|
|
51446
|
+
batchGetLiquidityForAmount1Ticks: (args: readonly [readonly number[], readonly number[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
51377
51447
|
readonly type: "function";
|
|
51378
51448
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
51379
51449
|
readonly inputs: readonly [{
|
|
@@ -51994,7 +52064,7 @@ declare const useLens: () => {
|
|
|
51994
52064
|
}];
|
|
51995
52065
|
readonly stateMutability: "pure";
|
|
51996
52066
|
}], "batchGetLiquidityForAmount1Ticks", readonly [readonly number[], readonly number[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
51997
|
-
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?:
|
|
52067
|
+
batchGetLiquidityForAmounts: (args: readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
51998
52068
|
readonly type: "function";
|
|
51999
52069
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
52000
52070
|
readonly inputs: readonly [{
|
|
@@ -52615,7 +52685,7 @@ declare const useLens: () => {
|
|
|
52615
52685
|
}];
|
|
52616
52686
|
readonly stateMutability: "pure";
|
|
52617
52687
|
}], "batchGetLiquidityForAmounts", readonly [readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
52618
|
-
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?:
|
|
52688
|
+
batchGetLiquidityForAmountsTicks: (args: readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
52619
52689
|
readonly type: "function";
|
|
52620
52690
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
52621
52691
|
readonly inputs: readonly [{
|
|
@@ -53236,7 +53306,7 @@ declare const useLens: () => {
|
|
|
53236
53306
|
}];
|
|
53237
53307
|
readonly stateMutability: "pure";
|
|
53238
53308
|
}], "batchGetLiquidityForAmountsTicks", readonly [readonly number[], readonly number[], readonly number[], readonly bigint[], readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
53239
|
-
batchGetPriceAtTick: (args: readonly [readonly number[]], options?:
|
|
53309
|
+
batchGetPriceAtTick: (args: readonly [readonly number[]], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
53240
53310
|
readonly type: "function";
|
|
53241
53311
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
53242
53312
|
readonly inputs: readonly [{
|
|
@@ -53857,7 +53927,7 @@ declare const useLens: () => {
|
|
|
53857
53927
|
}];
|
|
53858
53928
|
readonly stateMutability: "pure";
|
|
53859
53929
|
}], "batchGetPriceAtTick", readonly [readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly bigint[]>;
|
|
53860
|
-
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
53930
|
+
getAmount0ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
53861
53931
|
readonly type: "function";
|
|
53862
53932
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
53863
53933
|
readonly inputs: readonly [{
|
|
@@ -54478,7 +54548,7 @@ declare const useLens: () => {
|
|
|
54478
54548
|
}];
|
|
54479
54549
|
readonly stateMutability: "pure";
|
|
54480
54550
|
}], "getAmount0ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
54481
|
-
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
54551
|
+
getAmount0ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
54482
54552
|
readonly type: "function";
|
|
54483
54553
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
54484
54554
|
readonly inputs: readonly [{
|
|
@@ -55099,7 +55169,7 @@ declare const useLens: () => {
|
|
|
55099
55169
|
}];
|
|
55100
55170
|
readonly stateMutability: "pure";
|
|
55101
55171
|
}], "getAmount0ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
55102
|
-
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?:
|
|
55172
|
+
getAmount1ForLiquidity: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
55103
55173
|
readonly type: "function";
|
|
55104
55174
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
55105
55175
|
readonly inputs: readonly [{
|
|
@@ -55720,7 +55790,7 @@ declare const useLens: () => {
|
|
|
55720
55790
|
}];
|
|
55721
55791
|
readonly stateMutability: "pure";
|
|
55722
55792
|
}], "getAmount1ForLiquidity", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
55723
|
-
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?:
|
|
55793
|
+
getAmount1ForLiquidityTicks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
55724
55794
|
readonly type: "function";
|
|
55725
55795
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
55726
55796
|
readonly inputs: readonly [{
|
|
@@ -56341,7 +56411,7 @@ declare const useLens: () => {
|
|
|
56341
56411
|
}];
|
|
56342
56412
|
readonly stateMutability: "pure";
|
|
56343
56413
|
}], "getAmount1ForLiquidityTicks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
56344
|
-
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?:
|
|
56414
|
+
getAmountsForLiquidity: (args: readonly [bigint, bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
56345
56415
|
readonly type: "function";
|
|
56346
56416
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
56347
56417
|
readonly inputs: readonly [{
|
|
@@ -56962,7 +57032,7 @@ declare const useLens: () => {
|
|
|
56962
57032
|
}];
|
|
56963
57033
|
readonly stateMutability: "pure";
|
|
56964
57034
|
}], "getAmountsForLiquidity", readonly [bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
56965
|
-
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?:
|
|
57035
|
+
getAmountsForLiquidityTicks: (args: readonly [number, number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
56966
57036
|
readonly type: "function";
|
|
56967
57037
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
56968
57038
|
readonly inputs: readonly [{
|
|
@@ -57583,7 +57653,7 @@ declare const useLens: () => {
|
|
|
57583
57653
|
}];
|
|
57584
57654
|
readonly stateMutability: "pure";
|
|
57585
57655
|
}], "getAmountsForLiquidityTicks", readonly [number, number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
57586
|
-
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?:
|
|
57656
|
+
getLiquidityForAmount0: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
57587
57657
|
readonly type: "function";
|
|
57588
57658
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
57589
57659
|
readonly inputs: readonly [{
|
|
@@ -58204,7 +58274,7 @@ declare const useLens: () => {
|
|
|
58204
58274
|
}];
|
|
58205
58275
|
readonly stateMutability: "pure";
|
|
58206
58276
|
}], "getLiquidityForAmount0", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
58207
|
-
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?:
|
|
58277
|
+
getLiquidityForAmount0Ticks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
58208
58278
|
readonly type: "function";
|
|
58209
58279
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
58210
58280
|
readonly inputs: readonly [{
|
|
@@ -58825,7 +58895,7 @@ declare const useLens: () => {
|
|
|
58825
58895
|
}];
|
|
58826
58896
|
readonly stateMutability: "pure";
|
|
58827
58897
|
}], "getLiquidityForAmount0Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
58828
|
-
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?:
|
|
58898
|
+
getLiquidityForAmount1: (args: readonly [bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
58829
58899
|
readonly type: "function";
|
|
58830
58900
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
58831
58901
|
readonly inputs: readonly [{
|
|
@@ -59446,7 +59516,7 @@ declare const useLens: () => {
|
|
|
59446
59516
|
}];
|
|
59447
59517
|
readonly stateMutability: "pure";
|
|
59448
59518
|
}], "getLiquidityForAmount1", readonly [bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
59449
|
-
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?:
|
|
59519
|
+
getLiquidityForAmount1Ticks: (args: readonly [number, number, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
59450
59520
|
readonly type: "function";
|
|
59451
59521
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
59452
59522
|
readonly inputs: readonly [{
|
|
@@ -60067,7 +60137,7 @@ declare const useLens: () => {
|
|
|
60067
60137
|
}];
|
|
60068
60138
|
readonly stateMutability: "pure";
|
|
60069
60139
|
}], "getLiquidityForAmount1Ticks", readonly [number, number, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
60070
|
-
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?:
|
|
60140
|
+
getLiquidityForAmounts: (args: readonly [bigint, bigint, bigint, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
60071
60141
|
readonly type: "function";
|
|
60072
60142
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
60073
60143
|
readonly inputs: readonly [{
|
|
@@ -60688,7 +60758,7 @@ declare const useLens: () => {
|
|
|
60688
60758
|
}];
|
|
60689
60759
|
readonly stateMutability: "pure";
|
|
60690
60760
|
}], "getLiquidityForAmounts", readonly [bigint, bigint, bigint, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
60691
|
-
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?:
|
|
60761
|
+
getLiquidityForAmountsTicks: (args: readonly [number, number, number, bigint, bigint], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
60692
60762
|
readonly type: "function";
|
|
60693
60763
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
60694
60764
|
readonly inputs: readonly [{
|
|
@@ -61309,7 +61379,7 @@ declare const useLens: () => {
|
|
|
61309
61379
|
}];
|
|
61310
61380
|
readonly stateMutability: "pure";
|
|
61311
61381
|
}], "getLiquidityForAmountsTicks", readonly [number, number, number, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
61312
|
-
getPriceAtTick: (args: readonly [number], options?:
|
|
61382
|
+
getPriceAtTick: (args: readonly [number], options?: viem131.Prettify<viem131.UnionOmit<viem131.ReadContractParameters<readonly [{
|
|
61313
61383
|
readonly type: "function";
|
|
61314
61384
|
readonly name: "batchGetAmount0ForLiquidity";
|
|
61315
61385
|
readonly inputs: readonly [{
|
|
@@ -62565,5 +62635,5 @@ declare const useApproval: () => {
|
|
|
62565
62635
|
reset: () => void;
|
|
62566
62636
|
};
|
|
62567
62637
|
//#endregion
|
|
62568
|
-
export {
|
|
62569
|
-
//# sourceMappingURL=client-
|
|
62638
|
+
export { scalePrice as $, PriceDataPoint as A, useOptionTimeline as B, liquiditiesToAmount1 as C, timelockLenses as Ct, token0ToToken1 as D, roundTickUp as E, useUserOperators as F, useMaxPositionSize as G, useOptionPremium as H, usePerpsOperator as I, formatAmount as J, Amount as K, useClosePerp as L, getCurrentPrice as M, getPriceHistory as N, token1ToToken0 as O, useSetOperatorPerms as P, scaleAmount as Q, useMintPerp as R, liquiditiesToAmount0 as S, getUniswapMathLens as St, roundTickDown as T, useOptionPnl as U, useExtendOption as V, useMintOption as W, formatUSD as X, formatCondensed as Y, formatVagueAmount as Z, PRICE_PRECISION as _, TimelockMarketData as _t, batchGetAmountsFromLiquidity as a, wrapPriceUnscaled as at, getPriceAtTick as b, getTimelockLens as bt, useLiquidityBlocks as c, useExerciseOption as ct, usePriceAtTick as d, useClosedUserOptions as dt, unscaleAmount as et, UniswapPoolData as f, TimelockProvider as ft, getPayoutAtTick as g, TimelockMarket as gt, useCurrentPrice as h, TimelockLens as ht, useVaultData as i, wrapPrice as it, PriceResolution as j, PriceData as k, useBurnLiquidity as l, OptionData as lt, useCurrentTick as m, useTimelockConfig as mt, useLens as n, wrapAmount as nt, useMintLiquidity as o, zero as ot, usePoolData as p, useCurrentMarket as pt, EMPTY_ARRAY as q, useVaultTVL as r, wrapAmountUnscaled as rt, LiquidityBlockData as s, useMarketData as st, useApproval as t, unscalePrice as tt, usePriceHistory as u, useActiveUserOptions as ut, getAmountsFromLiquidity as v, UniswapMathLens as vt, liquiditiesToAmounts as w, uniswapMathLenses as wt, getTickAtPrice as x, getTimelockMarket as xt, getNearestValidStrikeTick as y, getErc20 as yt, OptionTimelineData as z };
|
|
62639
|
+
//# sourceMappingURL=client-DSnOWcqf.d.ts.map
|