@crypticdot/defituna-api 1.10.0 → 1.10.1
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/index.d.mts +1617 -1208
- package/dist/index.d.ts +1617 -1208
- package/dist/index.js +740 -634
- package/dist/index.mjs +729 -623
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly UPDATE: "update";
|
|
19
|
-
};
|
|
3
|
+
declare const AmountWithUsdSchema: z.ZodObject<{
|
|
4
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
5
|
+
usd: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const AmountWithoutUsdSchema: z.ZodObject<{
|
|
8
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const TokensPnlSchema: z.ZodObject<{
|
|
11
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
12
|
+
rate: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const UsdPnlSchema: z.ZodObject<{
|
|
15
|
+
amount: z.ZodNumber;
|
|
16
|
+
rate: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
20
18
|
declare const PoolProvider: {
|
|
21
19
|
readonly ORCA: "orca";
|
|
22
20
|
readonly FUSION: "fusion";
|
|
23
21
|
};
|
|
24
|
-
declare const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
declare const TunaSpotPositionState: {
|
|
31
|
-
readonly OPEN: "open";
|
|
32
|
-
readonly CLOSED: "closed";
|
|
33
|
-
};
|
|
22
|
+
declare const PoolProviderSchema: z.ZodEnum<{
|
|
23
|
+
orca: "orca";
|
|
24
|
+
fusion: "fusion";
|
|
25
|
+
}>;
|
|
26
|
+
|
|
34
27
|
declare const LimitOrderState: {
|
|
35
28
|
readonly OPEN: "open";
|
|
36
29
|
readonly PARTIALLY_FILLED: "partially_filled";
|
|
@@ -38,65 +31,41 @@ declare const LimitOrderState: {
|
|
|
38
31
|
readonly COMPLETE: "complete";
|
|
39
32
|
readonly CANCELLED: "cancelled";
|
|
40
33
|
};
|
|
41
|
-
declare const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
readonly LONG: "long";
|
|
77
|
-
readonly SHORT: "short";
|
|
78
|
-
};
|
|
79
|
-
declare const StakingPositionHistoryActionType$1: {
|
|
80
|
-
readonly STAKE: "stake";
|
|
81
|
-
readonly UNSTAKE: "unstake";
|
|
82
|
-
readonly WITHDRAW: "withdraw";
|
|
83
|
-
readonly CLAIM_REWARDS: "claim_rewards";
|
|
84
|
-
readonly COMPOUND_REWARDS: "compound_rewards";
|
|
85
|
-
};
|
|
86
|
-
declare const PoolSubscriptionTopic: {
|
|
87
|
-
readonly ORDER_BOOK: "order_book";
|
|
88
|
-
readonly POOL_PRICES: "pool_prices";
|
|
89
|
-
readonly POOL_SWAPS: "pool_swaps";
|
|
90
|
-
};
|
|
91
|
-
declare const WalletSubscriptionTopic: {
|
|
92
|
-
readonly TUNA_POSITIONS: "tuna_positions";
|
|
93
|
-
readonly TUNA_SPOT_POSITIONS: "tuna_spot_positions";
|
|
94
|
-
readonly LENDING_POSITIONS: "lending_positions";
|
|
95
|
-
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
96
|
-
readonly STAKING_POSITION: "staking_position";
|
|
97
|
-
readonly TRADE_HISTORY: "trade_history";
|
|
98
|
-
readonly ORDER_HISTORY: "order_history";
|
|
99
|
-
};
|
|
34
|
+
declare const LimitOrderStateSchema: z.ZodEnum<{
|
|
35
|
+
open: "open";
|
|
36
|
+
partially_filled: "partially_filled";
|
|
37
|
+
filled: "filled";
|
|
38
|
+
complete: "complete";
|
|
39
|
+
cancelled: "cancelled";
|
|
40
|
+
}>;
|
|
41
|
+
declare const LimitOrder$1: z.ZodObject<{
|
|
42
|
+
address: z.ZodString;
|
|
43
|
+
mint: z.ZodString;
|
|
44
|
+
pool: z.ZodString;
|
|
45
|
+
state: z.ZodEnum<{
|
|
46
|
+
open: "open";
|
|
47
|
+
partially_filled: "partially_filled";
|
|
48
|
+
filled: "filled";
|
|
49
|
+
complete: "complete";
|
|
50
|
+
cancelled: "cancelled";
|
|
51
|
+
}>;
|
|
52
|
+
aToB: z.ZodBoolean;
|
|
53
|
+
tickIndex: z.ZodNumber;
|
|
54
|
+
fillRatio: z.ZodNumber;
|
|
55
|
+
openTxSignature: z.ZodString;
|
|
56
|
+
closeTxSignature: z.ZodNullable<z.ZodString>;
|
|
57
|
+
amountIn: z.ZodObject<{
|
|
58
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
59
|
+
usd: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
amountOut: z.ZodObject<{
|
|
62
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
63
|
+
usd: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
openedAt: z.ZodCoercedDate<unknown>;
|
|
66
|
+
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
|
|
100
69
|
declare const LpPositionLimitOrderSwap: {
|
|
101
70
|
readonly NO_SWAP: "no_swap";
|
|
102
71
|
readonly SWAP_TO_TOKEN_A: "swap_to_token_a";
|
|
@@ -127,43 +96,1182 @@ declare const LpPositionsActionType: {
|
|
|
127
96
|
readonly SET_FLAGS: "set_flags";
|
|
128
97
|
readonly SET_REBALANCE_THRESHOLD: "set_rebalance_threshold";
|
|
129
98
|
};
|
|
130
|
-
declare const
|
|
131
|
-
|
|
132
|
-
pool_price: "pool_price";
|
|
133
|
-
order_book: "order_book";
|
|
134
|
-
tuna_position: "tuna_position";
|
|
135
|
-
tuna_spot_position: "tuna_spot_position";
|
|
136
|
-
lending_position: "lending_position";
|
|
137
|
-
staking_position: "staking_position";
|
|
138
|
-
fusion_limit_order: "fusion_limit_order";
|
|
139
|
-
trade_history_entry: "trade_history_entry";
|
|
140
|
-
order_history_entry: "order_history_entry";
|
|
141
|
-
state_snapshot: "state_snapshot";
|
|
99
|
+
declare const LpPositionLimitOrderSwapSchema: z$1.ZodEnum<{
|
|
100
|
+
[x: string]: string;
|
|
142
101
|
}>;
|
|
143
|
-
declare const
|
|
144
|
-
|
|
145
|
-
update: "update";
|
|
102
|
+
declare const LpPositionAutoCompoundSchema: z$1.ZodEnum<{
|
|
103
|
+
[x: string]: string;
|
|
146
104
|
}>;
|
|
147
|
-
declare const
|
|
148
|
-
|
|
149
|
-
|
|
105
|
+
declare const LpPositionRebalanceSchema: z$1.ZodEnum<{
|
|
106
|
+
[x: string]: string;
|
|
107
|
+
}>;
|
|
108
|
+
declare const LpPositionsActionTypeSchema: z$1.ZodEnum<{
|
|
109
|
+
[x: string]: string;
|
|
150
110
|
}>;
|
|
151
|
-
declare const
|
|
111
|
+
declare const TunaPositionState: {
|
|
112
|
+
readonly OPEN: "open";
|
|
113
|
+
readonly LIQUIDATED: "liquidated";
|
|
114
|
+
readonly CLOSED_BY_LIMIT_ORDER: "closed_by_limit_order";
|
|
115
|
+
readonly CLOSED: "closed";
|
|
116
|
+
};
|
|
117
|
+
declare const TunaPositionStateSchema: z$1.ZodEnum<{
|
|
152
118
|
open: "open";
|
|
153
119
|
liquidated: "liquidated";
|
|
154
120
|
closed_by_limit_order: "closed_by_limit_order";
|
|
155
121
|
closed: "closed";
|
|
156
122
|
}>;
|
|
123
|
+
declare const TunaLpPositionAutoCompounding: {
|
|
124
|
+
readonly WITH_LEVERAGE: "with_leverage";
|
|
125
|
+
readonly WITHOUT_LEVERAGE: "without_leverage";
|
|
126
|
+
};
|
|
127
|
+
declare const TunaLpPositionAutoCompoundingSchema: z$1.ZodEnum<{
|
|
128
|
+
[x: string]: string;
|
|
129
|
+
}>;
|
|
130
|
+
declare const TunaPositionTokenPnlSchema: z$1.ZodObject<{
|
|
131
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
132
|
+
bps: z$1.ZodNumber;
|
|
133
|
+
}, z$1.core.$strip>;
|
|
134
|
+
declare const TunaLpPositionFlagsSchema: z$1.ZodObject<{
|
|
135
|
+
lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
136
|
+
[x: string]: string;
|
|
137
|
+
}>>;
|
|
138
|
+
upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
139
|
+
[x: string]: string;
|
|
140
|
+
}>>;
|
|
141
|
+
autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
|
|
142
|
+
[x: string]: string;
|
|
143
|
+
}>>;
|
|
144
|
+
autoRebalancing: z$1.ZodBoolean;
|
|
145
|
+
}, z$1.core.$strip>;
|
|
146
|
+
declare const TunaLpPositionDtoSchema: z$1.ZodObject<{
|
|
147
|
+
address: z$1.ZodString;
|
|
148
|
+
authority: z$1.ZodString;
|
|
149
|
+
version: z$1.ZodNumber;
|
|
150
|
+
state: z$1.ZodEnum<{
|
|
151
|
+
open: "open";
|
|
152
|
+
liquidated: "liquidated";
|
|
153
|
+
closed_by_limit_order: "closed_by_limit_order";
|
|
154
|
+
closed: "closed";
|
|
155
|
+
}>;
|
|
156
|
+
positionMint: z$1.ZodString;
|
|
157
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
158
|
+
lowerPrice: z$1.ZodNumber;
|
|
159
|
+
upperPrice: z$1.ZodNumber;
|
|
160
|
+
lowerLimitOrderPrice: z$1.ZodNumber;
|
|
161
|
+
upperLimitOrderPrice: z$1.ZodNumber;
|
|
162
|
+
entryPrice: z$1.ZodNumber;
|
|
163
|
+
flags: z$1.ZodObject<{
|
|
164
|
+
lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
165
|
+
[x: string]: string;
|
|
166
|
+
}>>;
|
|
167
|
+
upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
168
|
+
[x: string]: string;
|
|
169
|
+
}>>;
|
|
170
|
+
autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
|
|
171
|
+
[x: string]: string;
|
|
172
|
+
}>>;
|
|
173
|
+
autoRebalancing: z$1.ZodBoolean;
|
|
174
|
+
}, z$1.core.$strip>;
|
|
175
|
+
mintA: z$1.ZodObject<{
|
|
176
|
+
addr: z$1.ZodString;
|
|
177
|
+
symbol: z$1.ZodString;
|
|
178
|
+
decimals: z$1.ZodNumber;
|
|
179
|
+
}, z$1.core.$strip>;
|
|
180
|
+
mintB: z$1.ZodObject<{
|
|
181
|
+
addr: z$1.ZodString;
|
|
182
|
+
symbol: z$1.ZodString;
|
|
183
|
+
decimals: z$1.ZodNumber;
|
|
184
|
+
}, z$1.core.$strip>;
|
|
185
|
+
pool: z$1.ZodObject<{
|
|
186
|
+
addr: z$1.ZodString;
|
|
187
|
+
price: z$1.ZodNumber;
|
|
188
|
+
tickSpacing: z$1.ZodNumber;
|
|
189
|
+
}, z$1.core.$strip>;
|
|
190
|
+
marketMaker: z$1.ZodEnum<{
|
|
191
|
+
orca: "orca";
|
|
192
|
+
fusion: "fusion";
|
|
193
|
+
}>;
|
|
194
|
+
depositedCollateralA: z$1.ZodObject<{
|
|
195
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
196
|
+
usd: z$1.ZodNumber;
|
|
197
|
+
}, z$1.core.$strip>;
|
|
198
|
+
depositedCollateralB: z$1.ZodObject<{
|
|
199
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
200
|
+
usd: z$1.ZodNumber;
|
|
201
|
+
}, z$1.core.$strip>;
|
|
202
|
+
leverage: z$1.ZodNumber;
|
|
203
|
+
maxLeverage: z$1.ZodNumber;
|
|
204
|
+
liquidationPriceLower: z$1.ZodNumber;
|
|
205
|
+
liquidationPriceUpper: z$1.ZodNumber;
|
|
206
|
+
initialDebtA: z$1.ZodObject<{
|
|
207
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
208
|
+
usd: z$1.ZodNumber;
|
|
209
|
+
}, z$1.core.$strip>;
|
|
210
|
+
initialDebtB: z$1.ZodObject<{
|
|
211
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
212
|
+
usd: z$1.ZodNumber;
|
|
213
|
+
}, z$1.core.$strip>;
|
|
214
|
+
currentDebtA: z$1.ZodObject<{
|
|
215
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
216
|
+
usd: z$1.ZodNumber;
|
|
217
|
+
}, z$1.core.$strip>;
|
|
218
|
+
currentDebtB: z$1.ZodObject<{
|
|
219
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
220
|
+
usd: z$1.ZodNumber;
|
|
221
|
+
}, z$1.core.$strip>;
|
|
222
|
+
leftoversA: z$1.ZodObject<{
|
|
223
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
224
|
+
usd: z$1.ZodNumber;
|
|
225
|
+
}, z$1.core.$strip>;
|
|
226
|
+
leftoversB: z$1.ZodObject<{
|
|
227
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
228
|
+
usd: z$1.ZodNumber;
|
|
229
|
+
}, z$1.core.$strip>;
|
|
230
|
+
yieldA: z$1.ZodObject<{
|
|
231
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
232
|
+
usd: z$1.ZodNumber;
|
|
233
|
+
}, z$1.core.$strip>;
|
|
234
|
+
yieldB: z$1.ZodObject<{
|
|
235
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
236
|
+
usd: z$1.ZodNumber;
|
|
237
|
+
}, z$1.core.$strip>;
|
|
238
|
+
compoundedYieldA: z$1.ZodObject<{
|
|
239
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
240
|
+
usd: z$1.ZodNumber;
|
|
241
|
+
}, z$1.core.$strip>;
|
|
242
|
+
compoundedYieldB: z$1.ZodObject<{
|
|
243
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
244
|
+
usd: z$1.ZodNumber;
|
|
245
|
+
}, z$1.core.$strip>;
|
|
246
|
+
totalA: z$1.ZodObject<{
|
|
247
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
248
|
+
usd: z$1.ZodNumber;
|
|
249
|
+
}, z$1.core.$strip>;
|
|
250
|
+
totalB: z$1.ZodObject<{
|
|
251
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
252
|
+
usd: z$1.ZodNumber;
|
|
253
|
+
}, z$1.core.$strip>;
|
|
254
|
+
pnlA: z$1.ZodObject<{
|
|
255
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
256
|
+
rate: z$1.ZodNumber;
|
|
257
|
+
}, z$1.core.$strip>;
|
|
258
|
+
pnlB: z$1.ZodObject<{
|
|
259
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
260
|
+
rate: z$1.ZodNumber;
|
|
261
|
+
}, z$1.core.$strip>;
|
|
262
|
+
pnlUsd: z$1.ZodObject<{
|
|
263
|
+
amount: z$1.ZodNumber;
|
|
264
|
+
rate: z$1.ZodNumber;
|
|
265
|
+
}, z$1.core.$strip>;
|
|
266
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
267
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
268
|
+
}, z$1.core.$strip>;
|
|
269
|
+
declare const TunaLpPositionHistorical: z$1.ZodObject<{
|
|
270
|
+
positionAddress: z$1.ZodString;
|
|
271
|
+
authority: z$1.ZodString;
|
|
272
|
+
pool: z$1.ZodString;
|
|
273
|
+
state: z$1.ZodEnum<{
|
|
274
|
+
open: "open";
|
|
275
|
+
liquidated: "liquidated";
|
|
276
|
+
closed_by_limit_order: "closed_by_limit_order";
|
|
277
|
+
closed: "closed";
|
|
278
|
+
}>;
|
|
279
|
+
lowerPrice: z$1.ZodNumber;
|
|
280
|
+
upperPrice: z$1.ZodNumber;
|
|
281
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
282
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
283
|
+
marketMaker: z$1.ZodEnum<{
|
|
284
|
+
orca: "orca";
|
|
285
|
+
fusion: "fusion";
|
|
286
|
+
}>;
|
|
287
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
288
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
289
|
+
totalValueUsd: z$1.ZodNumber;
|
|
290
|
+
leverage: z$1.ZodNumber;
|
|
291
|
+
initialLeverage: z$1.ZodNumber;
|
|
292
|
+
totalDepositUsd: z$1.ZodNumber;
|
|
293
|
+
totalWithdrawnUsd: z$1.ZodNumber;
|
|
294
|
+
feesSumUsd: z$1.ZodNumber;
|
|
295
|
+
closedPnlSumUsd: z$1.ZodNumber;
|
|
296
|
+
entryPrice: z$1.ZodNumber;
|
|
297
|
+
exitPrice: z$1.ZodNullable<z$1.ZodNumber>;
|
|
298
|
+
}, z$1.core.$strip>;
|
|
299
|
+
declare const TunaPositionLegacy: z$1.ZodObject<{
|
|
300
|
+
address: z$1.ZodString;
|
|
301
|
+
authority: z$1.ZodString;
|
|
302
|
+
version: z$1.ZodNumber;
|
|
303
|
+
state: z$1.ZodEnum<{
|
|
304
|
+
open: "open";
|
|
305
|
+
liquidated: "liquidated";
|
|
306
|
+
closed_by_limit_order: "closed_by_limit_order";
|
|
307
|
+
closed: "closed";
|
|
308
|
+
}>;
|
|
309
|
+
positionMint: z$1.ZodString;
|
|
310
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
311
|
+
tickLowerIndex: z$1.ZodNumber;
|
|
312
|
+
tickUpperIndex: z$1.ZodNumber;
|
|
313
|
+
entrySqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
314
|
+
lowerLimitOrderSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
315
|
+
upperLimitOrderSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
316
|
+
flags: z$1.ZodNumber;
|
|
317
|
+
pool: z$1.ZodString;
|
|
318
|
+
poolSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
319
|
+
depositedCollateralA: z$1.ZodObject<{
|
|
320
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
321
|
+
}, z$1.core.$strip>;
|
|
322
|
+
depositedCollateralB: z$1.ZodObject<{
|
|
323
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
324
|
+
}, z$1.core.$strip>;
|
|
325
|
+
depositedCollateralUsd: z$1.ZodObject<{
|
|
326
|
+
amount: z$1.ZodNumber;
|
|
327
|
+
}, z$1.core.$strip>;
|
|
328
|
+
loanFundsA: z$1.ZodObject<{
|
|
329
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
330
|
+
usd: z$1.ZodNumber;
|
|
331
|
+
}, z$1.core.$strip>;
|
|
332
|
+
loanFundsB: z$1.ZodObject<{
|
|
333
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
334
|
+
usd: z$1.ZodNumber;
|
|
335
|
+
}, z$1.core.$strip>;
|
|
336
|
+
currentLoanA: z$1.ZodObject<{
|
|
337
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
338
|
+
usd: z$1.ZodNumber;
|
|
339
|
+
}, z$1.core.$strip>;
|
|
340
|
+
currentLoanB: z$1.ZodObject<{
|
|
341
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
342
|
+
usd: z$1.ZodNumber;
|
|
343
|
+
}, z$1.core.$strip>;
|
|
344
|
+
leftoversA: z$1.ZodObject<{
|
|
345
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
346
|
+
usd: z$1.ZodNumber;
|
|
347
|
+
}, z$1.core.$strip>;
|
|
348
|
+
leftoversB: z$1.ZodObject<{
|
|
349
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
350
|
+
usd: z$1.ZodNumber;
|
|
351
|
+
}, z$1.core.$strip>;
|
|
352
|
+
yieldA: z$1.ZodObject<{
|
|
353
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
354
|
+
usd: z$1.ZodNumber;
|
|
355
|
+
}, z$1.core.$strip>;
|
|
356
|
+
yieldB: z$1.ZodObject<{
|
|
357
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
358
|
+
usd: z$1.ZodNumber;
|
|
359
|
+
}, z$1.core.$strip>;
|
|
360
|
+
compoundedYieldA: z$1.ZodObject<{
|
|
361
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
362
|
+
usd: z$1.ZodNumber;
|
|
363
|
+
}, z$1.core.$strip>;
|
|
364
|
+
compoundedYieldB: z$1.ZodObject<{
|
|
365
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
366
|
+
usd: z$1.ZodNumber;
|
|
367
|
+
}, z$1.core.$strip>;
|
|
368
|
+
totalA: z$1.ZodObject<{
|
|
369
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
370
|
+
usd: z$1.ZodNumber;
|
|
371
|
+
}, z$1.core.$strip>;
|
|
372
|
+
totalB: z$1.ZodObject<{
|
|
373
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
374
|
+
usd: z$1.ZodNumber;
|
|
375
|
+
}, z$1.core.$strip>;
|
|
376
|
+
pnlA: z$1.ZodObject<{
|
|
377
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
378
|
+
rate: z$1.ZodNumber;
|
|
379
|
+
}, z$1.core.$strip>;
|
|
380
|
+
pnlB: z$1.ZodObject<{
|
|
381
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
382
|
+
rate: z$1.ZodNumber;
|
|
383
|
+
}, z$1.core.$strip>;
|
|
384
|
+
pnlUsd: z$1.ZodObject<{
|
|
385
|
+
amount: z$1.ZodNumber;
|
|
386
|
+
rate: z$1.ZodNumber;
|
|
387
|
+
}, z$1.core.$strip>;
|
|
388
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
389
|
+
updatedAtSlot: z$1.ZodCoercedBigInt<unknown>;
|
|
390
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
391
|
+
}, z$1.core.$strip>;
|
|
392
|
+
declare const TunaLpPositionParameters: z$1.ZodObject<{
|
|
393
|
+
lowerPrice: z$1.ZodNumber;
|
|
394
|
+
upperPrice: z$1.ZodNumber;
|
|
395
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
396
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
397
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
398
|
+
[x: string]: string;
|
|
399
|
+
}>;
|
|
400
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
401
|
+
[x: string]: string;
|
|
402
|
+
}>;
|
|
403
|
+
autoCompound: z$1.ZodEnum<{
|
|
404
|
+
[x: string]: string;
|
|
405
|
+
}>;
|
|
406
|
+
rebalance: z$1.ZodEnum<{
|
|
407
|
+
[x: string]: string;
|
|
408
|
+
}>;
|
|
409
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
410
|
+
}, z$1.core.$strip>;
|
|
411
|
+
declare const TunaLpPositionValue: z$1.ZodObject<{
|
|
412
|
+
totalValueA: z$1.ZodNumber;
|
|
413
|
+
totalValueB: z$1.ZodNumber;
|
|
414
|
+
totalValueUsd: z$1.ZodNumber;
|
|
415
|
+
loanFundsA: z$1.ZodNumber;
|
|
416
|
+
loanFundsB: z$1.ZodNumber;
|
|
417
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
418
|
+
leverage: z$1.ZodNumber;
|
|
419
|
+
}, z$1.core.$strip>;
|
|
420
|
+
declare const TunaLpPositionTransfer: z$1.ZodObject<{
|
|
421
|
+
amountA: z$1.ZodNumber;
|
|
422
|
+
amountB: z$1.ZodNumber;
|
|
423
|
+
amountUsd: z$1.ZodNumber;
|
|
424
|
+
}, z$1.core.$strip>;
|
|
425
|
+
declare const TunaLpPositionTokenPrices: z$1.ZodObject<{
|
|
426
|
+
tokenPriceA: z$1.ZodNumber;
|
|
427
|
+
tokenPriceB: z$1.ZodNumber;
|
|
428
|
+
}, z$1.core.$strip>;
|
|
429
|
+
declare const TunaLpPositionActionOpen: z$1.ZodObject<{
|
|
430
|
+
parameters: z$1.ZodObject<{
|
|
431
|
+
lowerPrice: z$1.ZodNumber;
|
|
432
|
+
upperPrice: z$1.ZodNumber;
|
|
433
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
434
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
435
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
436
|
+
[x: string]: string;
|
|
437
|
+
}>;
|
|
438
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
439
|
+
[x: string]: string;
|
|
440
|
+
}>;
|
|
441
|
+
autoCompound: z$1.ZodEnum<{
|
|
442
|
+
[x: string]: string;
|
|
443
|
+
}>;
|
|
444
|
+
rebalance: z$1.ZodEnum<{
|
|
445
|
+
[x: string]: string;
|
|
446
|
+
}>;
|
|
447
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
448
|
+
}, z$1.core.$strip>;
|
|
449
|
+
}, z$1.core.$strip>;
|
|
450
|
+
declare const TunaLpPositionActionClose: z$1.ZodObject<{
|
|
451
|
+
toOwner: z$1.ZodNullable<z$1.ZodObject<{
|
|
452
|
+
amountA: z$1.ZodNumber;
|
|
453
|
+
amountB: z$1.ZodNumber;
|
|
454
|
+
amountUsd: z$1.ZodNumber;
|
|
455
|
+
}, z$1.core.$strip>>;
|
|
456
|
+
prices: z$1.ZodNullable<z$1.ZodObject<{
|
|
457
|
+
tokenPriceA: z$1.ZodNumber;
|
|
458
|
+
tokenPriceB: z$1.ZodNumber;
|
|
459
|
+
}, z$1.core.$strip>>;
|
|
460
|
+
}, z$1.core.$strip>;
|
|
461
|
+
declare const TunaLpPositionActionIncreaseLiquidity: z$1.ZodObject<{
|
|
462
|
+
fromPosition: z$1.ZodNullable<z$1.ZodObject<{
|
|
463
|
+
totalValueA: z$1.ZodNumber;
|
|
464
|
+
totalValueB: z$1.ZodNumber;
|
|
465
|
+
totalValueUsd: z$1.ZodNumber;
|
|
466
|
+
loanFundsA: z$1.ZodNumber;
|
|
467
|
+
loanFundsB: z$1.ZodNumber;
|
|
468
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
469
|
+
leverage: z$1.ZodNumber;
|
|
470
|
+
}, z$1.core.$strip>>;
|
|
471
|
+
toPosition: z$1.ZodObject<{
|
|
472
|
+
totalValueA: z$1.ZodNumber;
|
|
473
|
+
totalValueB: z$1.ZodNumber;
|
|
474
|
+
totalValueUsd: z$1.ZodNumber;
|
|
475
|
+
loanFundsA: z$1.ZodNumber;
|
|
476
|
+
loanFundsB: z$1.ZodNumber;
|
|
477
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
478
|
+
leverage: z$1.ZodNumber;
|
|
479
|
+
}, z$1.core.$strip>;
|
|
480
|
+
fromOwner: z$1.ZodObject<{
|
|
481
|
+
amountA: z$1.ZodNumber;
|
|
482
|
+
amountB: z$1.ZodNumber;
|
|
483
|
+
amountUsd: z$1.ZodNumber;
|
|
484
|
+
}, z$1.core.$strip>;
|
|
485
|
+
fromLending: z$1.ZodObject<{
|
|
486
|
+
amountA: z$1.ZodNumber;
|
|
487
|
+
amountB: z$1.ZodNumber;
|
|
488
|
+
amountUsd: z$1.ZodNumber;
|
|
489
|
+
}, z$1.core.$strip>;
|
|
490
|
+
protocolFees: z$1.ZodObject<{
|
|
491
|
+
amountA: z$1.ZodNumber;
|
|
492
|
+
amountB: z$1.ZodNumber;
|
|
493
|
+
amountUsd: z$1.ZodNumber;
|
|
494
|
+
}, z$1.core.$strip>;
|
|
495
|
+
prices: z$1.ZodObject<{
|
|
496
|
+
tokenPriceA: z$1.ZodNumber;
|
|
497
|
+
tokenPriceB: z$1.ZodNumber;
|
|
498
|
+
}, z$1.core.$strip>;
|
|
499
|
+
}, z$1.core.$strip>;
|
|
500
|
+
declare const TunaLpPositionActionDecreaseLiquidity: z$1.ZodObject<{
|
|
501
|
+
withdrawPercent: z$1.ZodNumber;
|
|
502
|
+
closedPnlUsd: z$1.ZodNumber;
|
|
503
|
+
fromPosition: z$1.ZodObject<{
|
|
504
|
+
totalValueA: z$1.ZodNumber;
|
|
505
|
+
totalValueB: z$1.ZodNumber;
|
|
506
|
+
totalValueUsd: z$1.ZodNumber;
|
|
507
|
+
loanFundsA: z$1.ZodNumber;
|
|
508
|
+
loanFundsB: z$1.ZodNumber;
|
|
509
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
510
|
+
leverage: z$1.ZodNumber;
|
|
511
|
+
}, z$1.core.$strip>;
|
|
512
|
+
toPosition: z$1.ZodNullable<z$1.ZodObject<{
|
|
513
|
+
totalValueA: z$1.ZodNumber;
|
|
514
|
+
totalValueB: z$1.ZodNumber;
|
|
515
|
+
totalValueUsd: z$1.ZodNumber;
|
|
516
|
+
loanFundsA: z$1.ZodNumber;
|
|
517
|
+
loanFundsB: z$1.ZodNumber;
|
|
518
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
519
|
+
leverage: z$1.ZodNumber;
|
|
520
|
+
}, z$1.core.$strip>>;
|
|
521
|
+
toOwner: z$1.ZodObject<{
|
|
522
|
+
amountA: z$1.ZodNumber;
|
|
523
|
+
amountB: z$1.ZodNumber;
|
|
524
|
+
amountUsd: z$1.ZodNumber;
|
|
525
|
+
}, z$1.core.$strip>;
|
|
526
|
+
toLending: z$1.ZodObject<{
|
|
527
|
+
amountA: z$1.ZodNumber;
|
|
528
|
+
amountB: z$1.ZodNumber;
|
|
529
|
+
amountUsd: z$1.ZodNumber;
|
|
530
|
+
}, z$1.core.$strip>;
|
|
531
|
+
collectedFees: z$1.ZodObject<{
|
|
532
|
+
amountA: z$1.ZodNumber;
|
|
533
|
+
amountB: z$1.ZodNumber;
|
|
534
|
+
amountUsd: z$1.ZodNumber;
|
|
535
|
+
}, z$1.core.$strip>;
|
|
536
|
+
prices: z$1.ZodObject<{
|
|
537
|
+
tokenPriceA: z$1.ZodNumber;
|
|
538
|
+
tokenPriceB: z$1.ZodNumber;
|
|
539
|
+
}, z$1.core.$strip>;
|
|
540
|
+
}, z$1.core.$strip>;
|
|
541
|
+
declare const TunaLpPositionActionLiquidate: z$1.ZodObject<{
|
|
542
|
+
withdrawPercent: z$1.ZodNumber;
|
|
543
|
+
fromPosition: z$1.ZodObject<{
|
|
544
|
+
totalValueA: z$1.ZodNumber;
|
|
545
|
+
totalValueB: z$1.ZodNumber;
|
|
546
|
+
totalValueUsd: z$1.ZodNumber;
|
|
547
|
+
loanFundsA: z$1.ZodNumber;
|
|
548
|
+
loanFundsB: z$1.ZodNumber;
|
|
549
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
550
|
+
leverage: z$1.ZodNumber;
|
|
551
|
+
}, z$1.core.$strip>;
|
|
552
|
+
toLending: z$1.ZodObject<{
|
|
553
|
+
amountA: z$1.ZodNumber;
|
|
554
|
+
amountB: z$1.ZodNumber;
|
|
555
|
+
amountUsd: z$1.ZodNumber;
|
|
556
|
+
}, z$1.core.$strip>;
|
|
557
|
+
protocolFees: z$1.ZodObject<{
|
|
558
|
+
amountA: z$1.ZodNumber;
|
|
559
|
+
amountB: z$1.ZodNumber;
|
|
560
|
+
amountUsd: z$1.ZodNumber;
|
|
561
|
+
}, z$1.core.$strip>;
|
|
562
|
+
prices: z$1.ZodObject<{
|
|
563
|
+
tokenPriceA: z$1.ZodNumber;
|
|
564
|
+
tokenPriceB: z$1.ZodNumber;
|
|
565
|
+
}, z$1.core.$strip>;
|
|
566
|
+
}, z$1.core.$strip>;
|
|
567
|
+
declare const TunaLpPositionActionRepayDebt: z$1.ZodObject<{
|
|
568
|
+
fromPosition: z$1.ZodObject<{
|
|
569
|
+
totalValueA: z$1.ZodNumber;
|
|
570
|
+
totalValueB: z$1.ZodNumber;
|
|
571
|
+
totalValueUsd: z$1.ZodNumber;
|
|
572
|
+
loanFundsA: z$1.ZodNumber;
|
|
573
|
+
loanFundsB: z$1.ZodNumber;
|
|
574
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
575
|
+
leverage: z$1.ZodNumber;
|
|
576
|
+
}, z$1.core.$strip>;
|
|
577
|
+
toPosition: z$1.ZodObject<{
|
|
578
|
+
totalValueA: z$1.ZodNumber;
|
|
579
|
+
totalValueB: z$1.ZodNumber;
|
|
580
|
+
totalValueUsd: z$1.ZodNumber;
|
|
581
|
+
loanFundsA: z$1.ZodNumber;
|
|
582
|
+
loanFundsB: z$1.ZodNumber;
|
|
583
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
584
|
+
leverage: z$1.ZodNumber;
|
|
585
|
+
}, z$1.core.$strip>;
|
|
586
|
+
fromOwner: z$1.ZodObject<{
|
|
587
|
+
amountA: z$1.ZodNumber;
|
|
588
|
+
amountB: z$1.ZodNumber;
|
|
589
|
+
amountUsd: z$1.ZodNumber;
|
|
590
|
+
}, z$1.core.$strip>;
|
|
591
|
+
toLending: z$1.ZodObject<{
|
|
592
|
+
amountA: z$1.ZodNumber;
|
|
593
|
+
amountB: z$1.ZodNumber;
|
|
594
|
+
amountUsd: z$1.ZodNumber;
|
|
595
|
+
}, z$1.core.$strip>;
|
|
596
|
+
prices: z$1.ZodObject<{
|
|
597
|
+
tokenPriceA: z$1.ZodNumber;
|
|
598
|
+
tokenPriceB: z$1.ZodNumber;
|
|
599
|
+
}, z$1.core.$strip>;
|
|
600
|
+
}, z$1.core.$strip>;
|
|
601
|
+
declare const TunaLpPositionActionCollectFees: z$1.ZodObject<{
|
|
602
|
+
closedPnlUsd: z$1.ZodNumber;
|
|
603
|
+
position: z$1.ZodObject<{
|
|
604
|
+
totalValueA: z$1.ZodNumber;
|
|
605
|
+
totalValueB: z$1.ZodNumber;
|
|
606
|
+
totalValueUsd: z$1.ZodNumber;
|
|
607
|
+
loanFundsA: z$1.ZodNumber;
|
|
608
|
+
loanFundsB: z$1.ZodNumber;
|
|
609
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
610
|
+
leverage: z$1.ZodNumber;
|
|
611
|
+
}, z$1.core.$strip>;
|
|
612
|
+
collectedFees: z$1.ZodObject<{
|
|
613
|
+
amountA: z$1.ZodNumber;
|
|
614
|
+
amountB: z$1.ZodNumber;
|
|
615
|
+
amountUsd: z$1.ZodNumber;
|
|
616
|
+
}, z$1.core.$strip>;
|
|
617
|
+
toOwner: z$1.ZodObject<{
|
|
618
|
+
amountA: z$1.ZodNumber;
|
|
619
|
+
amountB: z$1.ZodNumber;
|
|
620
|
+
amountUsd: z$1.ZodNumber;
|
|
621
|
+
}, z$1.core.$strip>;
|
|
622
|
+
prices: z$1.ZodObject<{
|
|
623
|
+
tokenPriceA: z$1.ZodNumber;
|
|
624
|
+
tokenPriceB: z$1.ZodNumber;
|
|
625
|
+
}, z$1.core.$strip>;
|
|
626
|
+
}, z$1.core.$strip>;
|
|
627
|
+
declare const TunaLpPositionActionCollectAndCompoundFees: z$1.ZodObject<{
|
|
628
|
+
fromPosition: z$1.ZodObject<{
|
|
629
|
+
totalValueA: z$1.ZodNumber;
|
|
630
|
+
totalValueB: z$1.ZodNumber;
|
|
631
|
+
totalValueUsd: z$1.ZodNumber;
|
|
632
|
+
loanFundsA: z$1.ZodNumber;
|
|
633
|
+
loanFundsB: z$1.ZodNumber;
|
|
634
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
635
|
+
leverage: z$1.ZodNumber;
|
|
636
|
+
}, z$1.core.$strip>;
|
|
637
|
+
toPosition: z$1.ZodObject<{
|
|
638
|
+
totalValueA: z$1.ZodNumber;
|
|
639
|
+
totalValueB: z$1.ZodNumber;
|
|
640
|
+
totalValueUsd: z$1.ZodNumber;
|
|
641
|
+
loanFundsA: z$1.ZodNumber;
|
|
642
|
+
loanFundsB: z$1.ZodNumber;
|
|
643
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
644
|
+
leverage: z$1.ZodNumber;
|
|
645
|
+
}, z$1.core.$strip>;
|
|
646
|
+
collectedFees: z$1.ZodObject<{
|
|
647
|
+
amountA: z$1.ZodNumber;
|
|
648
|
+
amountB: z$1.ZodNumber;
|
|
649
|
+
amountUsd: z$1.ZodNumber;
|
|
650
|
+
}, z$1.core.$strip>;
|
|
651
|
+
fromLending: z$1.ZodObject<{
|
|
652
|
+
amountA: z$1.ZodNumber;
|
|
653
|
+
amountB: z$1.ZodNumber;
|
|
654
|
+
amountUsd: z$1.ZodNumber;
|
|
655
|
+
}, z$1.core.$strip>;
|
|
656
|
+
protocolFees: z$1.ZodObject<{
|
|
657
|
+
amountA: z$1.ZodNumber;
|
|
658
|
+
amountB: z$1.ZodNumber;
|
|
659
|
+
amountUsd: z$1.ZodNumber;
|
|
660
|
+
}, z$1.core.$strip>;
|
|
661
|
+
prices: z$1.ZodObject<{
|
|
662
|
+
tokenPriceA: z$1.ZodNumber;
|
|
663
|
+
tokenPriceB: z$1.ZodNumber;
|
|
664
|
+
}, z$1.core.$strip>;
|
|
665
|
+
}, z$1.core.$strip>;
|
|
666
|
+
declare const TunaLpPositionActionParametersUpdate: z$1.ZodObject<{
|
|
667
|
+
fromParameters: z$1.ZodObject<{
|
|
668
|
+
lowerPrice: z$1.ZodNumber;
|
|
669
|
+
upperPrice: z$1.ZodNumber;
|
|
670
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
671
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
672
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
673
|
+
[x: string]: string;
|
|
674
|
+
}>;
|
|
675
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
676
|
+
[x: string]: string;
|
|
677
|
+
}>;
|
|
678
|
+
autoCompound: z$1.ZodEnum<{
|
|
679
|
+
[x: string]: string;
|
|
680
|
+
}>;
|
|
681
|
+
rebalance: z$1.ZodEnum<{
|
|
682
|
+
[x: string]: string;
|
|
683
|
+
}>;
|
|
684
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
685
|
+
}, z$1.core.$strip>;
|
|
686
|
+
toParameters: z$1.ZodObject<{
|
|
687
|
+
lowerPrice: z$1.ZodNumber;
|
|
688
|
+
upperPrice: z$1.ZodNumber;
|
|
689
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
690
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
691
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
692
|
+
[x: string]: string;
|
|
693
|
+
}>;
|
|
694
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
695
|
+
[x: string]: string;
|
|
696
|
+
}>;
|
|
697
|
+
autoCompound: z$1.ZodEnum<{
|
|
698
|
+
[x: string]: string;
|
|
699
|
+
}>;
|
|
700
|
+
rebalance: z$1.ZodEnum<{
|
|
701
|
+
[x: string]: string;
|
|
702
|
+
}>;
|
|
703
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
704
|
+
}, z$1.core.$strip>;
|
|
705
|
+
}, z$1.core.$strip>;
|
|
706
|
+
declare const TunaLpPositionAction$1: z$1.ZodObject<{
|
|
707
|
+
action: z$1.ZodEnum<{
|
|
708
|
+
[x: string]: string;
|
|
709
|
+
}>;
|
|
710
|
+
txSignature: z$1.ZodString;
|
|
711
|
+
txTimestamp: z$1.ZodCoercedDate<unknown>;
|
|
712
|
+
data: z$1.ZodObject<{
|
|
713
|
+
fromPosition: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
|
|
714
|
+
totalValueA: z$1.ZodNumber;
|
|
715
|
+
totalValueB: z$1.ZodNumber;
|
|
716
|
+
totalValueUsd: z$1.ZodNumber;
|
|
717
|
+
loanFundsA: z$1.ZodNumber;
|
|
718
|
+
loanFundsB: z$1.ZodNumber;
|
|
719
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
720
|
+
leverage: z$1.ZodNumber;
|
|
721
|
+
}, z$1.core.$strip>>>;
|
|
722
|
+
toPosition: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
|
|
723
|
+
totalValueA: z$1.ZodNumber;
|
|
724
|
+
totalValueB: z$1.ZodNumber;
|
|
725
|
+
totalValueUsd: z$1.ZodNumber;
|
|
726
|
+
loanFundsA: z$1.ZodNumber;
|
|
727
|
+
loanFundsB: z$1.ZodNumber;
|
|
728
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
729
|
+
leverage: z$1.ZodNumber;
|
|
730
|
+
}, z$1.core.$strip>>>;
|
|
731
|
+
position: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
|
|
732
|
+
totalValueA: z$1.ZodNumber;
|
|
733
|
+
totalValueB: z$1.ZodNumber;
|
|
734
|
+
totalValueUsd: z$1.ZodNumber;
|
|
735
|
+
loanFundsA: z$1.ZodNumber;
|
|
736
|
+
loanFundsB: z$1.ZodNumber;
|
|
737
|
+
loanFundsUsd: z$1.ZodNumber;
|
|
738
|
+
leverage: z$1.ZodNumber;
|
|
739
|
+
}, z$1.core.$strip>>>;
|
|
740
|
+
fromOwner: z$1.ZodOptional<z$1.ZodObject<{
|
|
741
|
+
amountA: z$1.ZodNumber;
|
|
742
|
+
amountB: z$1.ZodNumber;
|
|
743
|
+
amountUsd: z$1.ZodNumber;
|
|
744
|
+
}, z$1.core.$strip>>;
|
|
745
|
+
toOwner: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
|
|
746
|
+
amountA: z$1.ZodNumber;
|
|
747
|
+
amountB: z$1.ZodNumber;
|
|
748
|
+
amountUsd: z$1.ZodNumber;
|
|
749
|
+
}, z$1.core.$strip>>>;
|
|
750
|
+
fromLending: z$1.ZodOptional<z$1.ZodObject<{
|
|
751
|
+
amountA: z$1.ZodNumber;
|
|
752
|
+
amountB: z$1.ZodNumber;
|
|
753
|
+
amountUsd: z$1.ZodNumber;
|
|
754
|
+
}, z$1.core.$strip>>;
|
|
755
|
+
toLending: z$1.ZodOptional<z$1.ZodObject<{
|
|
756
|
+
amountA: z$1.ZodNumber;
|
|
757
|
+
amountB: z$1.ZodNumber;
|
|
758
|
+
amountUsd: z$1.ZodNumber;
|
|
759
|
+
}, z$1.core.$strip>>;
|
|
760
|
+
collectedFees: z$1.ZodOptional<z$1.ZodObject<{
|
|
761
|
+
amountA: z$1.ZodNumber;
|
|
762
|
+
amountB: z$1.ZodNumber;
|
|
763
|
+
amountUsd: z$1.ZodNumber;
|
|
764
|
+
}, z$1.core.$strip>>;
|
|
765
|
+
protocolFees: z$1.ZodOptional<z$1.ZodObject<{
|
|
766
|
+
amountA: z$1.ZodNumber;
|
|
767
|
+
amountB: z$1.ZodNumber;
|
|
768
|
+
amountUsd: z$1.ZodNumber;
|
|
769
|
+
}, z$1.core.$strip>>;
|
|
770
|
+
prices: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
|
|
771
|
+
tokenPriceA: z$1.ZodNumber;
|
|
772
|
+
tokenPriceB: z$1.ZodNumber;
|
|
773
|
+
}, z$1.core.$strip>>>;
|
|
774
|
+
parameters: z$1.ZodOptional<z$1.ZodObject<{
|
|
775
|
+
lowerPrice: z$1.ZodNumber;
|
|
776
|
+
upperPrice: z$1.ZodNumber;
|
|
777
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
778
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
779
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
780
|
+
[x: string]: string;
|
|
781
|
+
}>;
|
|
782
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
783
|
+
[x: string]: string;
|
|
784
|
+
}>;
|
|
785
|
+
autoCompound: z$1.ZodEnum<{
|
|
786
|
+
[x: string]: string;
|
|
787
|
+
}>;
|
|
788
|
+
rebalance: z$1.ZodEnum<{
|
|
789
|
+
[x: string]: string;
|
|
790
|
+
}>;
|
|
791
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
792
|
+
}, z$1.core.$strip>>;
|
|
793
|
+
fromParameters: z$1.ZodOptional<z$1.ZodObject<{
|
|
794
|
+
lowerPrice: z$1.ZodNumber;
|
|
795
|
+
upperPrice: z$1.ZodNumber;
|
|
796
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
797
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
798
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
799
|
+
[x: string]: string;
|
|
800
|
+
}>;
|
|
801
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
802
|
+
[x: string]: string;
|
|
803
|
+
}>;
|
|
804
|
+
autoCompound: z$1.ZodEnum<{
|
|
805
|
+
[x: string]: string;
|
|
806
|
+
}>;
|
|
807
|
+
rebalance: z$1.ZodEnum<{
|
|
808
|
+
[x: string]: string;
|
|
809
|
+
}>;
|
|
810
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
811
|
+
}, z$1.core.$strip>>;
|
|
812
|
+
toParameters: z$1.ZodOptional<z$1.ZodObject<{
|
|
813
|
+
lowerPrice: z$1.ZodNumber;
|
|
814
|
+
upperPrice: z$1.ZodNumber;
|
|
815
|
+
lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
816
|
+
upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
|
|
817
|
+
lowerLimitOrderSwap: z$1.ZodEnum<{
|
|
818
|
+
[x: string]: string;
|
|
819
|
+
}>;
|
|
820
|
+
upperLimitOrderSwap: z$1.ZodEnum<{
|
|
821
|
+
[x: string]: string;
|
|
822
|
+
}>;
|
|
823
|
+
autoCompound: z$1.ZodEnum<{
|
|
824
|
+
[x: string]: string;
|
|
825
|
+
}>;
|
|
826
|
+
rebalance: z$1.ZodEnum<{
|
|
827
|
+
[x: string]: string;
|
|
828
|
+
}>;
|
|
829
|
+
rebalanceThresholdTicks: z$1.ZodNumber;
|
|
830
|
+
}, z$1.core.$strip>>;
|
|
831
|
+
withdrawPercent: z$1.ZodOptional<z$1.ZodNumber>;
|
|
832
|
+
closedPnlUsd: z$1.ZodOptional<z$1.ZodNumber>;
|
|
833
|
+
}, z$1.core.$strip>;
|
|
834
|
+
}, z$1.core.$strip>;
|
|
835
|
+
|
|
836
|
+
declare const TunaSpotPositionState: {
|
|
837
|
+
readonly OPEN: "open";
|
|
838
|
+
readonly CLOSED: "closed";
|
|
839
|
+
};
|
|
157
840
|
declare const TunaSpotPositionStateSchema: z.ZodEnum<{
|
|
158
841
|
open: "open";
|
|
159
842
|
closed: "closed";
|
|
160
843
|
}>;
|
|
161
|
-
declare const
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
844
|
+
declare const TunaSpotPosition$1: z.ZodObject<{
|
|
845
|
+
address: z.ZodString;
|
|
846
|
+
authority: z.ZodString;
|
|
847
|
+
version: z.ZodNumber;
|
|
848
|
+
state: z.ZodEnum<{
|
|
849
|
+
open: "open";
|
|
850
|
+
closed: "closed";
|
|
851
|
+
}>;
|
|
852
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
853
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
854
|
+
entryPrice: z.ZodNumber;
|
|
855
|
+
mintA: z.ZodObject<{
|
|
856
|
+
addr: z.ZodString;
|
|
857
|
+
symbol: z.ZodString;
|
|
858
|
+
decimals: z.ZodNumber;
|
|
859
|
+
}, z.core.$strip>;
|
|
860
|
+
mintB: z.ZodObject<{
|
|
861
|
+
addr: z.ZodString;
|
|
862
|
+
symbol: z.ZodString;
|
|
863
|
+
decimals: z.ZodNumber;
|
|
864
|
+
}, z.core.$strip>;
|
|
865
|
+
pool: z.ZodObject<{
|
|
866
|
+
addr: z.ZodString;
|
|
867
|
+
price: z.ZodNumber;
|
|
868
|
+
tickSpacing: z.ZodNumber;
|
|
869
|
+
}, z.core.$strip>;
|
|
870
|
+
positionToken: {
|
|
871
|
+
readonly A: "a";
|
|
872
|
+
readonly B: "b";
|
|
873
|
+
};
|
|
874
|
+
collateralToken: {
|
|
875
|
+
readonly A: "a";
|
|
876
|
+
readonly B: "b";
|
|
877
|
+
};
|
|
878
|
+
marketMaker: z.ZodEnum<{
|
|
879
|
+
orca: "orca";
|
|
880
|
+
fusion: "fusion";
|
|
881
|
+
}>;
|
|
882
|
+
depositedCollateral: z.ZodObject<{
|
|
883
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
884
|
+
usd: z.ZodNumber;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
initialDebt: z.ZodObject<{
|
|
887
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
888
|
+
usd: z.ZodNumber;
|
|
889
|
+
}, z.core.$strip>;
|
|
890
|
+
currentDebt: z.ZodObject<{
|
|
891
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
892
|
+
usd: z.ZodNumber;
|
|
893
|
+
}, z.core.$strip>;
|
|
894
|
+
total: z.ZodObject<{
|
|
895
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
896
|
+
usd: z.ZodNumber;
|
|
897
|
+
}, z.core.$strip>;
|
|
898
|
+
leverage: z.ZodNumber;
|
|
899
|
+
maxLeverage: z.ZodNumber;
|
|
900
|
+
liquidationPrice: z.ZodNumber;
|
|
901
|
+
pnlUsd: z.ZodObject<{
|
|
902
|
+
amount: z.ZodNumber;
|
|
903
|
+
rate: z.ZodNumber;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
openedAt: z.ZodCoercedDate<unknown>;
|
|
906
|
+
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
907
|
+
}, z.core.$strip>;
|
|
908
|
+
declare const IncreaseSpotPositionQuote$1: z.ZodObject<{
|
|
909
|
+
collateralAmount: z.ZodCoercedBigInt<unknown>;
|
|
910
|
+
borrowAmount: z.ZodCoercedBigInt<unknown>;
|
|
911
|
+
estimatedAmount: z.ZodCoercedBigInt<unknown>;
|
|
912
|
+
swapInputAmount: z.ZodCoercedBigInt<unknown>;
|
|
913
|
+
minSwapOutputAmount: z.ZodCoercedBigInt<unknown>;
|
|
914
|
+
protocolFeeA: z.ZodCoercedBigInt<unknown>;
|
|
915
|
+
protocolFeeB: z.ZodCoercedBigInt<unknown>;
|
|
916
|
+
priceImpact: z.ZodNumber;
|
|
917
|
+
liquidationPrice: z.ZodNumber;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
declare const DecreaseSpotPositionQuote$1: z.ZodObject<{
|
|
920
|
+
decreasePercent: z.ZodNumber;
|
|
921
|
+
requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
|
|
922
|
+
estimatedAmount: z.ZodCoercedBigInt<unknown>;
|
|
923
|
+
estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
|
|
924
|
+
priceImpact: z.ZodNumber;
|
|
925
|
+
liquidationPrice: z.ZodNumber;
|
|
926
|
+
}, z.core.$strip>;
|
|
927
|
+
declare const CloseSpotPositionQuote$1: z.ZodObject<{
|
|
928
|
+
decreasePercent: z.ZodNumber;
|
|
929
|
+
requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
|
|
930
|
+
estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
|
|
931
|
+
priceImpact: z.ZodNumber;
|
|
932
|
+
}, z.core.$strip>;
|
|
933
|
+
|
|
934
|
+
declare const TunaPositionMintSchema: z$1.ZodObject<{
|
|
935
|
+
addr: z$1.ZodString;
|
|
936
|
+
symbol: z$1.ZodString;
|
|
937
|
+
decimals: z$1.ZodNumber;
|
|
938
|
+
}, z$1.core.$strip>;
|
|
939
|
+
declare const TunaPositionPoolSchema: z$1.ZodObject<{
|
|
940
|
+
addr: z$1.ZodString;
|
|
941
|
+
price: z$1.ZodNumber;
|
|
942
|
+
tickSpacing: z$1.ZodNumber;
|
|
943
|
+
}, z$1.core.$strip>;
|
|
944
|
+
declare const TunaPositionPoolToken: {
|
|
945
|
+
readonly A: "a";
|
|
946
|
+
readonly B: "b";
|
|
947
|
+
};
|
|
948
|
+
declare const TunaPositionPoolTokenSchema: z$1.ZodEnum<{
|
|
949
|
+
[x: string]: string;
|
|
950
|
+
}>;
|
|
951
|
+
|
|
952
|
+
declare const PoolPriceUpdate$1: z$1.ZodObject<{
|
|
953
|
+
pool: z$1.ZodString;
|
|
954
|
+
price: z$1.ZodNumber;
|
|
955
|
+
sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
956
|
+
time: z$1.ZodCoercedDate<unknown>;
|
|
957
|
+
}, z$1.core.$strip>;
|
|
958
|
+
declare const StateSnapshot$1: z$1.ZodObject<{
|
|
959
|
+
slot: z$1.ZodCoercedBigInt<unknown>;
|
|
960
|
+
blockTime: z$1.ZodCoercedDate<unknown>;
|
|
961
|
+
poolPrices: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
962
|
+
pool: z$1.ZodString;
|
|
963
|
+
price: z$1.ZodNumber;
|
|
964
|
+
sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
965
|
+
time: z$1.ZodCoercedDate<unknown>;
|
|
966
|
+
}, z$1.core.$strip>>>;
|
|
967
|
+
tunaSpotPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
968
|
+
address: z$1.ZodString;
|
|
969
|
+
authority: z$1.ZodString;
|
|
970
|
+
version: z$1.ZodNumber;
|
|
971
|
+
state: z$1.ZodEnum<{
|
|
972
|
+
open: "open";
|
|
973
|
+
closed: "closed";
|
|
974
|
+
}>;
|
|
975
|
+
lowerLimitOrderPrice: z$1.ZodNumber;
|
|
976
|
+
upperLimitOrderPrice: z$1.ZodNumber;
|
|
977
|
+
entryPrice: z$1.ZodNumber;
|
|
978
|
+
mintA: z$1.ZodObject<{
|
|
979
|
+
addr: z$1.ZodString;
|
|
980
|
+
symbol: z$1.ZodString;
|
|
981
|
+
decimals: z$1.ZodNumber;
|
|
982
|
+
}, z$1.core.$strip>;
|
|
983
|
+
mintB: z$1.ZodObject<{
|
|
984
|
+
addr: z$1.ZodString;
|
|
985
|
+
symbol: z$1.ZodString;
|
|
986
|
+
decimals: z$1.ZodNumber;
|
|
987
|
+
}, z$1.core.$strip>;
|
|
988
|
+
pool: z$1.ZodObject<{
|
|
989
|
+
addr: z$1.ZodString;
|
|
990
|
+
price: z$1.ZodNumber;
|
|
991
|
+
tickSpacing: z$1.ZodNumber;
|
|
992
|
+
}, z$1.core.$strip>;
|
|
993
|
+
positionToken: {
|
|
994
|
+
readonly A: "a";
|
|
995
|
+
readonly B: "b";
|
|
996
|
+
};
|
|
997
|
+
collateralToken: {
|
|
998
|
+
readonly A: "a";
|
|
999
|
+
readonly B: "b";
|
|
1000
|
+
};
|
|
1001
|
+
marketMaker: z$1.ZodEnum<{
|
|
1002
|
+
orca: "orca";
|
|
1003
|
+
fusion: "fusion";
|
|
1004
|
+
}>;
|
|
1005
|
+
depositedCollateral: z$1.ZodObject<{
|
|
1006
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1007
|
+
usd: z$1.ZodNumber;
|
|
1008
|
+
}, z$1.core.$strip>;
|
|
1009
|
+
initialDebt: z$1.ZodObject<{
|
|
1010
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1011
|
+
usd: z$1.ZodNumber;
|
|
1012
|
+
}, z$1.core.$strip>;
|
|
1013
|
+
currentDebt: z$1.ZodObject<{
|
|
1014
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1015
|
+
usd: z$1.ZodNumber;
|
|
1016
|
+
}, z$1.core.$strip>;
|
|
1017
|
+
total: z$1.ZodObject<{
|
|
1018
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1019
|
+
usd: z$1.ZodNumber;
|
|
1020
|
+
}, z$1.core.$strip>;
|
|
1021
|
+
leverage: z$1.ZodNumber;
|
|
1022
|
+
maxLeverage: z$1.ZodNumber;
|
|
1023
|
+
liquidationPrice: z$1.ZodNumber;
|
|
1024
|
+
pnlUsd: z$1.ZodObject<{
|
|
1025
|
+
amount: z$1.ZodNumber;
|
|
1026
|
+
rate: z$1.ZodNumber;
|
|
1027
|
+
}, z$1.core.$strip>;
|
|
1028
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
1029
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
1030
|
+
}, z$1.core.$strip>>>;
|
|
1031
|
+
tunaLpPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1032
|
+
address: z$1.ZodString;
|
|
1033
|
+
authority: z$1.ZodString;
|
|
1034
|
+
version: z$1.ZodNumber;
|
|
1035
|
+
state: z$1.ZodEnum<{
|
|
1036
|
+
open: "open";
|
|
1037
|
+
liquidated: "liquidated";
|
|
1038
|
+
closed_by_limit_order: "closed_by_limit_order";
|
|
1039
|
+
closed: "closed";
|
|
1040
|
+
}>;
|
|
1041
|
+
positionMint: z$1.ZodString;
|
|
1042
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
1043
|
+
lowerPrice: z$1.ZodNumber;
|
|
1044
|
+
upperPrice: z$1.ZodNumber;
|
|
1045
|
+
lowerLimitOrderPrice: z$1.ZodNumber;
|
|
1046
|
+
upperLimitOrderPrice: z$1.ZodNumber;
|
|
1047
|
+
entryPrice: z$1.ZodNumber;
|
|
1048
|
+
flags: z$1.ZodObject<{
|
|
1049
|
+
lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
1050
|
+
[x: string]: string;
|
|
1051
|
+
}>>;
|
|
1052
|
+
upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
|
|
1053
|
+
[x: string]: string;
|
|
1054
|
+
}>>;
|
|
1055
|
+
autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
|
|
1056
|
+
[x: string]: string;
|
|
1057
|
+
}>>;
|
|
1058
|
+
autoRebalancing: z$1.ZodBoolean;
|
|
1059
|
+
}, z$1.core.$strip>;
|
|
1060
|
+
mintA: z$1.ZodObject<{
|
|
1061
|
+
addr: z$1.ZodString;
|
|
1062
|
+
symbol: z$1.ZodString;
|
|
1063
|
+
decimals: z$1.ZodNumber;
|
|
1064
|
+
}, z$1.core.$strip>;
|
|
1065
|
+
mintB: z$1.ZodObject<{
|
|
1066
|
+
addr: z$1.ZodString;
|
|
1067
|
+
symbol: z$1.ZodString;
|
|
1068
|
+
decimals: z$1.ZodNumber;
|
|
1069
|
+
}, z$1.core.$strip>;
|
|
1070
|
+
pool: z$1.ZodObject<{
|
|
1071
|
+
addr: z$1.ZodString;
|
|
1072
|
+
price: z$1.ZodNumber;
|
|
1073
|
+
tickSpacing: z$1.ZodNumber;
|
|
1074
|
+
}, z$1.core.$strip>;
|
|
1075
|
+
marketMaker: z$1.ZodEnum<{
|
|
1076
|
+
orca: "orca";
|
|
1077
|
+
fusion: "fusion";
|
|
1078
|
+
}>;
|
|
1079
|
+
depositedCollateralA: z$1.ZodObject<{
|
|
1080
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1081
|
+
usd: z$1.ZodNumber;
|
|
1082
|
+
}, z$1.core.$strip>;
|
|
1083
|
+
depositedCollateralB: z$1.ZodObject<{
|
|
1084
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1085
|
+
usd: z$1.ZodNumber;
|
|
1086
|
+
}, z$1.core.$strip>;
|
|
1087
|
+
leverage: z$1.ZodNumber;
|
|
1088
|
+
maxLeverage: z$1.ZodNumber;
|
|
1089
|
+
liquidationPriceLower: z$1.ZodNumber;
|
|
1090
|
+
liquidationPriceUpper: z$1.ZodNumber;
|
|
1091
|
+
initialDebtA: z$1.ZodObject<{
|
|
1092
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1093
|
+
usd: z$1.ZodNumber;
|
|
1094
|
+
}, z$1.core.$strip>;
|
|
1095
|
+
initialDebtB: z$1.ZodObject<{
|
|
1096
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1097
|
+
usd: z$1.ZodNumber;
|
|
1098
|
+
}, z$1.core.$strip>;
|
|
1099
|
+
currentDebtA: z$1.ZodObject<{
|
|
1100
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1101
|
+
usd: z$1.ZodNumber;
|
|
1102
|
+
}, z$1.core.$strip>;
|
|
1103
|
+
currentDebtB: z$1.ZodObject<{
|
|
1104
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1105
|
+
usd: z$1.ZodNumber;
|
|
1106
|
+
}, z$1.core.$strip>;
|
|
1107
|
+
leftoversA: z$1.ZodObject<{
|
|
1108
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1109
|
+
usd: z$1.ZodNumber;
|
|
1110
|
+
}, z$1.core.$strip>;
|
|
1111
|
+
leftoversB: z$1.ZodObject<{
|
|
1112
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1113
|
+
usd: z$1.ZodNumber;
|
|
1114
|
+
}, z$1.core.$strip>;
|
|
1115
|
+
yieldA: z$1.ZodObject<{
|
|
1116
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1117
|
+
usd: z$1.ZodNumber;
|
|
1118
|
+
}, z$1.core.$strip>;
|
|
1119
|
+
yieldB: z$1.ZodObject<{
|
|
1120
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1121
|
+
usd: z$1.ZodNumber;
|
|
1122
|
+
}, z$1.core.$strip>;
|
|
1123
|
+
compoundedYieldA: z$1.ZodObject<{
|
|
1124
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1125
|
+
usd: z$1.ZodNumber;
|
|
1126
|
+
}, z$1.core.$strip>;
|
|
1127
|
+
compoundedYieldB: z$1.ZodObject<{
|
|
1128
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1129
|
+
usd: z$1.ZodNumber;
|
|
1130
|
+
}, z$1.core.$strip>;
|
|
1131
|
+
totalA: z$1.ZodObject<{
|
|
1132
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1133
|
+
usd: z$1.ZodNumber;
|
|
1134
|
+
}, z$1.core.$strip>;
|
|
1135
|
+
totalB: z$1.ZodObject<{
|
|
1136
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1137
|
+
usd: z$1.ZodNumber;
|
|
1138
|
+
}, z$1.core.$strip>;
|
|
1139
|
+
pnlA: z$1.ZodObject<{
|
|
1140
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1141
|
+
rate: z$1.ZodNumber;
|
|
1142
|
+
}, z$1.core.$strip>;
|
|
1143
|
+
pnlB: z$1.ZodObject<{
|
|
1144
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1145
|
+
rate: z$1.ZodNumber;
|
|
1146
|
+
}, z$1.core.$strip>;
|
|
1147
|
+
pnlUsd: z$1.ZodObject<{
|
|
1148
|
+
amount: z$1.ZodNumber;
|
|
1149
|
+
rate: z$1.ZodNumber;
|
|
1150
|
+
}, z$1.core.$strip>;
|
|
1151
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
1152
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
1153
|
+
}, z$1.core.$strip>>>;
|
|
1154
|
+
fusionLimitOrders: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1155
|
+
address: z$1.ZodString;
|
|
1156
|
+
mint: z$1.ZodString;
|
|
1157
|
+
pool: z$1.ZodString;
|
|
1158
|
+
state: z$1.ZodEnum<{
|
|
1159
|
+
open: "open";
|
|
1160
|
+
partially_filled: "partially_filled";
|
|
1161
|
+
filled: "filled";
|
|
1162
|
+
complete: "complete";
|
|
1163
|
+
cancelled: "cancelled";
|
|
1164
|
+
}>;
|
|
1165
|
+
aToB: z$1.ZodBoolean;
|
|
1166
|
+
tickIndex: z$1.ZodNumber;
|
|
1167
|
+
fillRatio: z$1.ZodNumber;
|
|
1168
|
+
openTxSignature: z$1.ZodString;
|
|
1169
|
+
closeTxSignature: z$1.ZodNullable<z$1.ZodString>;
|
|
1170
|
+
amountIn: z$1.ZodObject<{
|
|
1171
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1172
|
+
usd: z$1.ZodNumber;
|
|
1173
|
+
}, z$1.core.$strip>;
|
|
1174
|
+
amountOut: z$1.ZodObject<{
|
|
1175
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1176
|
+
usd: z$1.ZodNumber;
|
|
1177
|
+
}, z$1.core.$strip>;
|
|
1178
|
+
openedAt: z$1.ZodCoercedDate<unknown>;
|
|
1179
|
+
closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
|
|
1180
|
+
}, z$1.core.$strip>>>;
|
|
1181
|
+
}, z$1.core.$strip>;
|
|
1182
|
+
|
|
1183
|
+
declare const NotificationEntity: {
|
|
1184
|
+
readonly POOL_SWAP: "pool_swap";
|
|
1185
|
+
readonly POOL_PRICE: "pool_price";
|
|
1186
|
+
readonly ORDER_BOOK: "order_book";
|
|
1187
|
+
readonly TUNA_POSITION: "tuna_position";
|
|
1188
|
+
readonly TUNA_SPOT_POSITION: "tuna_spot_position";
|
|
1189
|
+
readonly LENDING_POSITION: "lending_position";
|
|
1190
|
+
readonly STAKING_POSITION: "staking_position";
|
|
1191
|
+
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
1192
|
+
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
1193
|
+
readonly ORDER_HISTORY_ENTRY: "order_history_entry";
|
|
1194
|
+
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
1195
|
+
};
|
|
1196
|
+
declare const NotificationAction: {
|
|
1197
|
+
readonly CREATE: "create";
|
|
1198
|
+
readonly UPDATE: "update";
|
|
1199
|
+
};
|
|
1200
|
+
declare const TradeHistoryAction: {
|
|
1201
|
+
readonly SWAP: "swap";
|
|
1202
|
+
readonly LIMIT_ORDER_FILL: "limit_order_fill";
|
|
1203
|
+
readonly POSITION_INCREASE: "position_increase";
|
|
1204
|
+
readonly POSITION_DECREASE: "position_decrease";
|
|
1205
|
+
readonly TAKE_PROFIT: "take_profit";
|
|
1206
|
+
readonly STOP_LOSS: "stop_loss";
|
|
1207
|
+
readonly LIQUIDATION: "liquidation";
|
|
1208
|
+
};
|
|
1209
|
+
declare const TradeHistoryUIDirection: {
|
|
1210
|
+
readonly BUY: "buy";
|
|
1211
|
+
readonly SELL: "sell";
|
|
1212
|
+
readonly OPEN_LONG: "open_long";
|
|
1213
|
+
readonly CLOSE_LONG: "close_long";
|
|
1214
|
+
readonly OPEN_SHORT: "open_short";
|
|
1215
|
+
readonly CLOSE_SHORT: "close_short";
|
|
1216
|
+
};
|
|
1217
|
+
declare const OrderHistoryOrderType: {
|
|
1218
|
+
readonly MARKET: "market";
|
|
1219
|
+
readonly LIMIT: "limit";
|
|
1220
|
+
readonly TAKE_PROFIT_MARKET: "take_profit_market";
|
|
1221
|
+
readonly STOP_LOSS_MARKET: "stop_loss_market";
|
|
1222
|
+
readonly LIQUIDATION_MARKET: "liquidation_market";
|
|
1223
|
+
};
|
|
1224
|
+
declare const OrderHistoryStatus: {
|
|
1225
|
+
readonly OPEN: "open";
|
|
1226
|
+
readonly PARTIALLY_FILLED: "partially_filled";
|
|
1227
|
+
readonly FILLED: "filled";
|
|
1228
|
+
readonly CANCELLED: "cancelled";
|
|
1229
|
+
readonly CLAIMED: "claimed";
|
|
1230
|
+
readonly REJECTED: "rejected";
|
|
1231
|
+
};
|
|
1232
|
+
declare const OrderHistoryUIDirection: {
|
|
1233
|
+
readonly BUY: "buy";
|
|
1234
|
+
readonly SELL: "sell";
|
|
1235
|
+
readonly LONG: "long";
|
|
1236
|
+
readonly SHORT: "short";
|
|
1237
|
+
};
|
|
1238
|
+
declare const StakingPositionHistoryActionType$1: {
|
|
1239
|
+
readonly STAKE: "stake";
|
|
1240
|
+
readonly UNSTAKE: "unstake";
|
|
1241
|
+
readonly WITHDRAW: "withdraw";
|
|
1242
|
+
readonly CLAIM_REWARDS: "claim_rewards";
|
|
1243
|
+
readonly COMPOUND_REWARDS: "compound_rewards";
|
|
1244
|
+
};
|
|
1245
|
+
declare const PoolSubscriptionTopic: {
|
|
1246
|
+
readonly ORDER_BOOK: "order_book";
|
|
1247
|
+
readonly POOL_PRICES: "pool_prices";
|
|
1248
|
+
readonly POOL_SWAPS: "pool_swaps";
|
|
1249
|
+
};
|
|
1250
|
+
declare const WalletSubscriptionTopic: {
|
|
1251
|
+
readonly TUNA_POSITIONS: "tuna_positions";
|
|
1252
|
+
readonly TUNA_SPOT_POSITIONS: "tuna_spot_positions";
|
|
1253
|
+
readonly LENDING_POSITIONS: "lending_positions";
|
|
1254
|
+
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
1255
|
+
readonly STAKING_POSITION: "staking_position";
|
|
1256
|
+
readonly TRADE_HISTORY: "trade_history";
|
|
1257
|
+
readonly ORDER_HISTORY: "order_history";
|
|
1258
|
+
};
|
|
1259
|
+
declare const NotificationEntitySchema: z.ZodEnum<{
|
|
1260
|
+
pool_swap: "pool_swap";
|
|
1261
|
+
pool_price: "pool_price";
|
|
1262
|
+
order_book: "order_book";
|
|
1263
|
+
tuna_position: "tuna_position";
|
|
1264
|
+
tuna_spot_position: "tuna_spot_position";
|
|
1265
|
+
lending_position: "lending_position";
|
|
1266
|
+
staking_position: "staking_position";
|
|
1267
|
+
fusion_limit_order: "fusion_limit_order";
|
|
1268
|
+
trade_history_entry: "trade_history_entry";
|
|
1269
|
+
order_history_entry: "order_history_entry";
|
|
1270
|
+
state_snapshot: "state_snapshot";
|
|
1271
|
+
}>;
|
|
1272
|
+
declare const NotificationActionSchema: z.ZodEnum<{
|
|
1273
|
+
create: "create";
|
|
1274
|
+
update: "update";
|
|
167
1275
|
}>;
|
|
168
1276
|
declare const TradeHistoryActionSchema: z.ZodEnum<{
|
|
169
1277
|
swap: "swap";
|
|
@@ -224,18 +1332,6 @@ declare const WalletSubscriptionTopicSchema: z.ZodEnum<{
|
|
|
224
1332
|
trade_history: "trade_history";
|
|
225
1333
|
order_history: "order_history";
|
|
226
1334
|
}>;
|
|
227
|
-
declare const LpPositionLimitOrderSwapSchema: z.ZodEnum<{
|
|
228
|
-
[x: string]: string;
|
|
229
|
-
}>;
|
|
230
|
-
declare const LpPositionAutoCompoundSchema: z.ZodEnum<{
|
|
231
|
-
[x: string]: string;
|
|
232
|
-
}>;
|
|
233
|
-
declare const LpPositionRebalanceSchema: z.ZodEnum<{
|
|
234
|
-
[x: string]: string;
|
|
235
|
-
}>;
|
|
236
|
-
declare const LpPositionsActionTypeSchema: z.ZodEnum<{
|
|
237
|
-
[x: string]: string;
|
|
238
|
-
}>;
|
|
239
1335
|
declare const PaginationMeta$1: z.ZodObject<{
|
|
240
1336
|
total: z.ZodNumber;
|
|
241
1337
|
}, z.core.$strip>;
|
|
@@ -262,760 +1358,149 @@ declare const Market$1: z.ZodObject<{
|
|
|
262
1358
|
liquidationFee: z.ZodNumber;
|
|
263
1359
|
liquidationThreshold: z.ZodNumber;
|
|
264
1360
|
oraclePriceDeviationThreshold: z.ZodNumber;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
usd: z.ZodNumber;
|
|
269
|
-
}, z.core.$strip>;
|
|
270
|
-
maxSpotPositionSizeB: z.ZodObject<{
|
|
271
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
272
|
-
usd: z.ZodNumber;
|
|
273
|
-
}, z.core.$strip>;
|
|
274
|
-
borrowedFundsA: z.ZodObject<{
|
|
275
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
276
|
-
usd: z.ZodNumber;
|
|
277
|
-
}, z.core.$strip>;
|
|
278
|
-
borrowedFundsB: z.ZodObject<{
|
|
279
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
280
|
-
usd: z.ZodNumber;
|
|
281
|
-
}, z.core.$strip>;
|
|
282
|
-
availableBorrowA: z.ZodObject<{
|
|
283
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
284
|
-
usd: z.ZodNumber;
|
|
285
|
-
}, z.core.$strip>;
|
|
286
|
-
availableBorrowB: z.ZodObject<{
|
|
287
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
288
|
-
usd: z.ZodNumber;
|
|
289
|
-
}, z.core.$strip>;
|
|
290
|
-
borrowLimitA: z.ZodObject<{
|
|
291
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
292
|
-
usd: z.ZodNumber;
|
|
293
|
-
}, z.core.$strip>;
|
|
294
|
-
borrowLimitB: z.ZodObject<{
|
|
295
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
296
|
-
usd: z.ZodNumber;
|
|
297
|
-
}, z.core.$strip>;
|
|
298
|
-
disabled: z.ZodBoolean;
|
|
299
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
300
|
-
}, z.core.$strip>;
|
|
301
|
-
declare const TokenOraclePrice$1: z.ZodObject<{
|
|
302
|
-
mint: z.ZodString;
|
|
303
|
-
price: z.ZodCoercedBigInt<unknown>;
|
|
304
|
-
decimals: z.ZodNumber;
|
|
305
|
-
time: z.ZodCoercedDate<unknown>;
|
|
306
|
-
}, z.core.$strip>;
|
|
307
|
-
declare const Vault$1: z.ZodObject<{
|
|
308
|
-
address: z.ZodString;
|
|
309
|
-
mint: z.ZodString;
|
|
310
|
-
depositedFunds: z.ZodObject<{
|
|
311
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
312
|
-
usd: z.ZodNumber;
|
|
313
|
-
}, z.core.$strip>;
|
|
314
|
-
borrowedFunds: z.ZodObject<{
|
|
315
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
316
|
-
usd: z.ZodNumber;
|
|
317
|
-
}, z.core.$strip>;
|
|
318
|
-
supplyLimit: z.ZodObject<{
|
|
319
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
320
|
-
usd: z.ZodNumber;
|
|
321
|
-
}, z.core.$strip>;
|
|
322
|
-
borrowedShares: z.ZodCoercedBigInt<unknown>;
|
|
323
|
-
depositedShares: z.ZodCoercedBigInt<unknown>;
|
|
324
|
-
supplyApy: z.ZodNumber;
|
|
325
|
-
borrowApy: z.ZodNumber;
|
|
326
|
-
interestRate: z.ZodCoercedBigInt<unknown>;
|
|
327
|
-
utilization: z.ZodNumber;
|
|
328
|
-
pythOracleFeedId: z.ZodString;
|
|
329
|
-
pythOraclePriceUpdate: z.ZodString;
|
|
330
|
-
}, z.core.$strip>;
|
|
331
|
-
declare const VaultHistoricalStats$1: z.ZodObject<{
|
|
332
|
-
date: z.ZodPipe<z.ZodTransform<Date, unknown>, z.ZodDate>;
|
|
333
|
-
supply: z.ZodObject<{
|
|
334
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
335
|
-
usd: z.ZodNumber;
|
|
336
|
-
}, z.core.$strip>;
|
|
337
|
-
borrow: z.ZodObject<{
|
|
338
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
339
|
-
usd: z.ZodNumber;
|
|
340
|
-
}, z.core.$strip>;
|
|
341
|
-
supplyApy: z.ZodNumber;
|
|
342
|
-
borrowApr: z.ZodNumber;
|
|
343
|
-
}, z.core.$strip>;
|
|
344
|
-
declare const Pool$1: z.ZodObject<{
|
|
345
|
-
address: z.ZodString;
|
|
346
|
-
provider: z.ZodEnum<{
|
|
347
|
-
orca: "orca";
|
|
348
|
-
fusion: "fusion";
|
|
349
|
-
}>;
|
|
350
|
-
tokenAMint: z.ZodString;
|
|
351
|
-
tokenBMint: z.ZodString;
|
|
352
|
-
tokenAVault: z.ZodString;
|
|
353
|
-
tokenBVault: z.ZodString;
|
|
354
|
-
tvlUsdc: z.ZodCoercedNumber<unknown>;
|
|
355
|
-
priceChange24H: z.ZodNumber;
|
|
356
|
-
tickSpacing: z.ZodNumber;
|
|
357
|
-
feeRate: z.ZodNumber;
|
|
358
|
-
olpFeeRate: z.ZodNullable<z.ZodNumber>;
|
|
359
|
-
protocolFeeRate: z.ZodNumber;
|
|
360
|
-
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
361
|
-
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
362
|
-
tickCurrentIndex: z.ZodNumber;
|
|
363
|
-
stats: z.ZodObject<{
|
|
364
|
-
"24h": z.ZodObject<{
|
|
365
|
-
volume: z.ZodCoercedNumber<unknown>;
|
|
366
|
-
fees: z.ZodCoercedNumber<unknown>;
|
|
367
|
-
rewards: z.ZodCoercedNumber<unknown>;
|
|
368
|
-
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
369
|
-
}, z.core.$strip>;
|
|
370
|
-
"7d": z.ZodObject<{
|
|
371
|
-
volume: z.ZodCoercedNumber<unknown>;
|
|
372
|
-
fees: z.ZodCoercedNumber<unknown>;
|
|
373
|
-
rewards: z.ZodCoercedNumber<unknown>;
|
|
374
|
-
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
375
|
-
}, z.core.$strip>;
|
|
376
|
-
"30d": z.ZodObject<{
|
|
377
|
-
volume: z.ZodCoercedNumber<unknown>;
|
|
378
|
-
fees: z.ZodCoercedNumber<unknown>;
|
|
379
|
-
rewards: z.ZodCoercedNumber<unknown>;
|
|
380
|
-
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
}, z.core.$strip>;
|
|
383
|
-
}, z.core.$strip>;
|
|
384
|
-
declare const Tick$1: z.ZodObject<{
|
|
385
|
-
index: z.ZodNumber;
|
|
386
|
-
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
declare const PoolTicks$1: z.ZodObject<{
|
|
389
|
-
tickSpacing: z.ZodNumber;
|
|
390
|
-
ticks: z.ZodArray<z.ZodObject<{
|
|
391
|
-
index: z.ZodNumber;
|
|
392
|
-
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
393
|
-
}, z.core.$strip>>;
|
|
394
|
-
}, z.core.$strip>;
|
|
395
|
-
declare const LendingPosition$1: z.ZodObject<{
|
|
396
|
-
address: z.ZodString;
|
|
397
|
-
authority: z.ZodString;
|
|
398
|
-
mint: z.ZodString;
|
|
399
|
-
vault: z.ZodString;
|
|
400
|
-
shares: z.ZodCoercedBigInt<unknown>;
|
|
401
|
-
funds: z.ZodObject<{
|
|
402
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
403
|
-
usd: z.ZodNumber;
|
|
404
|
-
}, z.core.$strip>;
|
|
405
|
-
earned: z.ZodObject<{
|
|
406
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
407
|
-
usd: z.ZodNumber;
|
|
408
|
-
}, z.core.$strip>;
|
|
409
|
-
}, z.core.$strip>;
|
|
410
|
-
declare const TunaPosition$1: z.ZodObject<{
|
|
411
|
-
address: z.ZodString;
|
|
412
|
-
authority: z.ZodString;
|
|
413
|
-
version: z.ZodNumber;
|
|
414
|
-
state: z.ZodEnum<{
|
|
415
|
-
open: "open";
|
|
416
|
-
liquidated: "liquidated";
|
|
417
|
-
closed_by_limit_order: "closed_by_limit_order";
|
|
418
|
-
closed: "closed";
|
|
419
|
-
}>;
|
|
420
|
-
positionMint: z.ZodString;
|
|
421
|
-
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
422
|
-
tickLowerIndex: z.ZodNumber;
|
|
423
|
-
tickUpperIndex: z.ZodNumber;
|
|
424
|
-
entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
425
|
-
lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
426
|
-
upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
427
|
-
flags: z.ZodNumber;
|
|
428
|
-
pool: z.ZodString;
|
|
429
|
-
poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
430
|
-
depositedCollateralA: z.ZodObject<{
|
|
431
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
432
|
-
}, z.core.$strip>;
|
|
433
|
-
depositedCollateralB: z.ZodObject<{
|
|
434
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
435
|
-
}, z.core.$strip>;
|
|
436
|
-
depositedCollateralUsd: z.ZodObject<{
|
|
437
|
-
amount: z.ZodNumber;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
loanFundsA: z.ZodObject<{
|
|
440
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
441
|
-
usd: z.ZodNumber;
|
|
442
|
-
}, z.core.$strip>;
|
|
443
|
-
loanFundsB: z.ZodObject<{
|
|
444
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
445
|
-
usd: z.ZodNumber;
|
|
446
|
-
}, z.core.$strip>;
|
|
447
|
-
currentLoanA: z.ZodObject<{
|
|
448
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
449
|
-
usd: z.ZodNumber;
|
|
450
|
-
}, z.core.$strip>;
|
|
451
|
-
currentLoanB: z.ZodObject<{
|
|
452
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
453
|
-
usd: z.ZodNumber;
|
|
454
|
-
}, z.core.$strip>;
|
|
455
|
-
leftoversA: z.ZodObject<{
|
|
456
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
457
|
-
usd: z.ZodNumber;
|
|
458
|
-
}, z.core.$strip>;
|
|
459
|
-
leftoversB: z.ZodObject<{
|
|
460
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
461
|
-
usd: z.ZodNumber;
|
|
462
|
-
}, z.core.$strip>;
|
|
463
|
-
yieldA: z.ZodObject<{
|
|
464
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
465
|
-
usd: z.ZodNumber;
|
|
466
|
-
}, z.core.$strip>;
|
|
467
|
-
yieldB: z.ZodObject<{
|
|
468
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
469
|
-
usd: z.ZodNumber;
|
|
470
|
-
}, z.core.$strip>;
|
|
471
|
-
compoundedYieldA: z.ZodObject<{
|
|
472
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
473
|
-
usd: z.ZodNumber;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
compoundedYieldB: z.ZodObject<{
|
|
476
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
477
|
-
usd: z.ZodNumber;
|
|
478
|
-
}, z.core.$strip>;
|
|
479
|
-
totalA: z.ZodObject<{
|
|
480
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
481
|
-
usd: z.ZodNumber;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
totalB: z.ZodObject<{
|
|
484
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
485
|
-
usd: z.ZodNumber;
|
|
486
|
-
}, z.core.$strip>;
|
|
487
|
-
pnlA: z.ZodObject<{
|
|
488
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
489
|
-
bps: z.ZodNumber;
|
|
490
|
-
}, z.core.$strip>;
|
|
491
|
-
pnlB: z.ZodObject<{
|
|
492
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
493
|
-
bps: z.ZodNumber;
|
|
494
|
-
}, z.core.$strip>;
|
|
495
|
-
pnlUsd: z.ZodObject<{
|
|
496
|
-
amount: z.ZodNumber;
|
|
497
|
-
bps: z.ZodNumber;
|
|
498
|
-
}, z.core.$strip>;
|
|
499
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
500
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
501
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
502
|
-
}, z.core.$strip>;
|
|
503
|
-
declare const TunaLpPosition$1: z.ZodObject<{
|
|
504
|
-
positionAddress: z.ZodString;
|
|
505
|
-
authority: z.ZodString;
|
|
506
|
-
pool: z.ZodString;
|
|
507
|
-
state: z.ZodEnum<{
|
|
508
|
-
open: "open";
|
|
509
|
-
liquidated: "liquidated";
|
|
510
|
-
closed_by_limit_order: "closed_by_limit_order";
|
|
511
|
-
closed: "closed";
|
|
512
|
-
}>;
|
|
513
|
-
lowerPrice: z.ZodNumber;
|
|
514
|
-
upperPrice: z.ZodNumber;
|
|
515
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
516
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
517
|
-
marketMaker: z.ZodEnum<{
|
|
518
|
-
orca: "orca";
|
|
519
|
-
fusion: "fusion";
|
|
520
|
-
}>;
|
|
521
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
522
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
523
|
-
totalValueUsd: z.ZodNumber;
|
|
524
|
-
leverage: z.ZodNumber;
|
|
525
|
-
initialLeverage: z.ZodNumber;
|
|
526
|
-
totalDepositUsd: z.ZodNumber;
|
|
527
|
-
totalWithdrawnUsd: z.ZodNumber;
|
|
528
|
-
feesSumUsd: z.ZodNumber;
|
|
529
|
-
closedPnlSumUsd: z.ZodNumber;
|
|
530
|
-
entryPrice: z.ZodNumber;
|
|
531
|
-
exitPrice: z.ZodNullable<z.ZodNumber>;
|
|
532
|
-
}, z.core.$strip>;
|
|
533
|
-
declare const TunaLpPositionParameters: z.ZodObject<{
|
|
534
|
-
lowerPrice: z.ZodNumber;
|
|
535
|
-
upperPrice: z.ZodNumber;
|
|
536
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
537
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
538
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
539
|
-
[x: string]: string;
|
|
540
|
-
}>;
|
|
541
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
542
|
-
[x: string]: string;
|
|
543
|
-
}>;
|
|
544
|
-
autoCompound: z.ZodEnum<{
|
|
545
|
-
[x: string]: string;
|
|
546
|
-
}>;
|
|
547
|
-
rebalance: z.ZodEnum<{
|
|
548
|
-
[x: string]: string;
|
|
549
|
-
}>;
|
|
550
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
551
|
-
}, z.core.$strip>;
|
|
552
|
-
declare const TunaLpPositionValue: z.ZodObject<{
|
|
553
|
-
totalValueA: z.ZodNumber;
|
|
554
|
-
totalValueB: z.ZodNumber;
|
|
555
|
-
totalValueUsd: z.ZodNumber;
|
|
556
|
-
loanFundsA: z.ZodNumber;
|
|
557
|
-
loanFundsB: z.ZodNumber;
|
|
558
|
-
loanFundsUsd: z.ZodNumber;
|
|
559
|
-
leverage: z.ZodNumber;
|
|
560
|
-
}, z.core.$strip>;
|
|
561
|
-
declare const TunaLpPositionTransfer: z.ZodObject<{
|
|
562
|
-
amountA: z.ZodNumber;
|
|
563
|
-
amountB: z.ZodNumber;
|
|
564
|
-
amountUsd: z.ZodNumber;
|
|
565
|
-
}, z.core.$strip>;
|
|
566
|
-
declare const TunaLpPositionTokenPrices: z.ZodObject<{
|
|
567
|
-
tokenPriceA: z.ZodNumber;
|
|
568
|
-
tokenPriceB: z.ZodNumber;
|
|
569
|
-
}, z.core.$strip>;
|
|
570
|
-
declare const TunaLpPositionActionOpen: z.ZodObject<{
|
|
571
|
-
parameters: z.ZodObject<{
|
|
572
|
-
lowerPrice: z.ZodNumber;
|
|
573
|
-
upperPrice: z.ZodNumber;
|
|
574
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
575
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
576
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
577
|
-
[x: string]: string;
|
|
578
|
-
}>;
|
|
579
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
580
|
-
[x: string]: string;
|
|
581
|
-
}>;
|
|
582
|
-
autoCompound: z.ZodEnum<{
|
|
583
|
-
[x: string]: string;
|
|
584
|
-
}>;
|
|
585
|
-
rebalance: z.ZodEnum<{
|
|
586
|
-
[x: string]: string;
|
|
587
|
-
}>;
|
|
588
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
}, z.core.$strip>;
|
|
591
|
-
declare const TunaLpPositionActionClose: z.ZodObject<{
|
|
592
|
-
toOwner: z.ZodNullable<z.ZodObject<{
|
|
593
|
-
amountA: z.ZodNumber;
|
|
594
|
-
amountB: z.ZodNumber;
|
|
595
|
-
amountUsd: z.ZodNumber;
|
|
596
|
-
}, z.core.$strip>>;
|
|
597
|
-
prices: z.ZodNullable<z.ZodObject<{
|
|
598
|
-
tokenPriceA: z.ZodNumber;
|
|
599
|
-
tokenPriceB: z.ZodNumber;
|
|
600
|
-
}, z.core.$strip>>;
|
|
601
|
-
}, z.core.$strip>;
|
|
602
|
-
declare const TunaLpPositionActionIncreaseLiquidity: z.ZodObject<{
|
|
603
|
-
fromPosition: z.ZodNullable<z.ZodObject<{
|
|
604
|
-
totalValueA: z.ZodNumber;
|
|
605
|
-
totalValueB: z.ZodNumber;
|
|
606
|
-
totalValueUsd: z.ZodNumber;
|
|
607
|
-
loanFundsA: z.ZodNumber;
|
|
608
|
-
loanFundsB: z.ZodNumber;
|
|
609
|
-
loanFundsUsd: z.ZodNumber;
|
|
610
|
-
leverage: z.ZodNumber;
|
|
611
|
-
}, z.core.$strip>>;
|
|
612
|
-
toPosition: z.ZodObject<{
|
|
613
|
-
totalValueA: z.ZodNumber;
|
|
614
|
-
totalValueB: z.ZodNumber;
|
|
615
|
-
totalValueUsd: z.ZodNumber;
|
|
616
|
-
loanFundsA: z.ZodNumber;
|
|
617
|
-
loanFundsB: z.ZodNumber;
|
|
618
|
-
loanFundsUsd: z.ZodNumber;
|
|
619
|
-
leverage: z.ZodNumber;
|
|
620
|
-
}, z.core.$strip>;
|
|
621
|
-
fromOwner: z.ZodObject<{
|
|
622
|
-
amountA: z.ZodNumber;
|
|
623
|
-
amountB: z.ZodNumber;
|
|
624
|
-
amountUsd: z.ZodNumber;
|
|
625
|
-
}, z.core.$strip>;
|
|
626
|
-
fromLending: z.ZodObject<{
|
|
627
|
-
amountA: z.ZodNumber;
|
|
628
|
-
amountB: z.ZodNumber;
|
|
629
|
-
amountUsd: z.ZodNumber;
|
|
630
|
-
}, z.core.$strip>;
|
|
631
|
-
protocolFees: z.ZodObject<{
|
|
632
|
-
amountA: z.ZodNumber;
|
|
633
|
-
amountB: z.ZodNumber;
|
|
634
|
-
amountUsd: z.ZodNumber;
|
|
635
|
-
}, z.core.$strip>;
|
|
636
|
-
prices: z.ZodObject<{
|
|
637
|
-
tokenPriceA: z.ZodNumber;
|
|
638
|
-
tokenPriceB: z.ZodNumber;
|
|
639
|
-
}, z.core.$strip>;
|
|
640
|
-
}, z.core.$strip>;
|
|
641
|
-
declare const TunaLpPositionActionDecreaseLiquidity: z.ZodObject<{
|
|
642
|
-
withdrawPercent: z.ZodNumber;
|
|
643
|
-
closedPnlUsd: z.ZodNumber;
|
|
644
|
-
fromPosition: z.ZodObject<{
|
|
645
|
-
totalValueA: z.ZodNumber;
|
|
646
|
-
totalValueB: z.ZodNumber;
|
|
647
|
-
totalValueUsd: z.ZodNumber;
|
|
648
|
-
loanFundsA: z.ZodNumber;
|
|
649
|
-
loanFundsB: z.ZodNumber;
|
|
650
|
-
loanFundsUsd: z.ZodNumber;
|
|
651
|
-
leverage: z.ZodNumber;
|
|
652
|
-
}, z.core.$strip>;
|
|
653
|
-
toPosition: z.ZodNullable<z.ZodObject<{
|
|
654
|
-
totalValueA: z.ZodNumber;
|
|
655
|
-
totalValueB: z.ZodNumber;
|
|
656
|
-
totalValueUsd: z.ZodNumber;
|
|
657
|
-
loanFundsA: z.ZodNumber;
|
|
658
|
-
loanFundsB: z.ZodNumber;
|
|
659
|
-
loanFundsUsd: z.ZodNumber;
|
|
660
|
-
leverage: z.ZodNumber;
|
|
661
|
-
}, z.core.$strip>>;
|
|
662
|
-
toOwner: z.ZodObject<{
|
|
663
|
-
amountA: z.ZodNumber;
|
|
664
|
-
amountB: z.ZodNumber;
|
|
665
|
-
amountUsd: z.ZodNumber;
|
|
666
|
-
}, z.core.$strip>;
|
|
667
|
-
toLending: z.ZodObject<{
|
|
668
|
-
amountA: z.ZodNumber;
|
|
669
|
-
amountB: z.ZodNumber;
|
|
670
|
-
amountUsd: z.ZodNumber;
|
|
671
|
-
}, z.core.$strip>;
|
|
672
|
-
collectedFees: z.ZodObject<{
|
|
673
|
-
amountA: z.ZodNumber;
|
|
674
|
-
amountB: z.ZodNumber;
|
|
675
|
-
amountUsd: z.ZodNumber;
|
|
676
|
-
}, z.core.$strip>;
|
|
677
|
-
prices: z.ZodObject<{
|
|
678
|
-
tokenPriceA: z.ZodNumber;
|
|
679
|
-
tokenPriceB: z.ZodNumber;
|
|
680
|
-
}, z.core.$strip>;
|
|
681
|
-
}, z.core.$strip>;
|
|
682
|
-
declare const TunaLpPositionActionLiquidate: z.ZodObject<{
|
|
683
|
-
withdrawPercent: z.ZodNumber;
|
|
684
|
-
fromPosition: z.ZodObject<{
|
|
685
|
-
totalValueA: z.ZodNumber;
|
|
686
|
-
totalValueB: z.ZodNumber;
|
|
687
|
-
totalValueUsd: z.ZodNumber;
|
|
688
|
-
loanFundsA: z.ZodNumber;
|
|
689
|
-
loanFundsB: z.ZodNumber;
|
|
690
|
-
loanFundsUsd: z.ZodNumber;
|
|
691
|
-
leverage: z.ZodNumber;
|
|
692
|
-
}, z.core.$strip>;
|
|
693
|
-
toLending: z.ZodObject<{
|
|
694
|
-
amountA: z.ZodNumber;
|
|
695
|
-
amountB: z.ZodNumber;
|
|
696
|
-
amountUsd: z.ZodNumber;
|
|
697
|
-
}, z.core.$strip>;
|
|
698
|
-
protocolFees: z.ZodObject<{
|
|
699
|
-
amountA: z.ZodNumber;
|
|
700
|
-
amountB: z.ZodNumber;
|
|
701
|
-
amountUsd: z.ZodNumber;
|
|
702
|
-
}, z.core.$strip>;
|
|
703
|
-
prices: z.ZodObject<{
|
|
704
|
-
tokenPriceA: z.ZodNumber;
|
|
705
|
-
tokenPriceB: z.ZodNumber;
|
|
706
|
-
}, z.core.$strip>;
|
|
707
|
-
}, z.core.$strip>;
|
|
708
|
-
declare const TunaLpPositionActionRepayDebt: z.ZodObject<{
|
|
709
|
-
fromPosition: z.ZodObject<{
|
|
710
|
-
totalValueA: z.ZodNumber;
|
|
711
|
-
totalValueB: z.ZodNumber;
|
|
712
|
-
totalValueUsd: z.ZodNumber;
|
|
713
|
-
loanFundsA: z.ZodNumber;
|
|
714
|
-
loanFundsB: z.ZodNumber;
|
|
715
|
-
loanFundsUsd: z.ZodNumber;
|
|
716
|
-
leverage: z.ZodNumber;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
|
-
toPosition: z.ZodObject<{
|
|
719
|
-
totalValueA: z.ZodNumber;
|
|
720
|
-
totalValueB: z.ZodNumber;
|
|
721
|
-
totalValueUsd: z.ZodNumber;
|
|
722
|
-
loanFundsA: z.ZodNumber;
|
|
723
|
-
loanFundsB: z.ZodNumber;
|
|
724
|
-
loanFundsUsd: z.ZodNumber;
|
|
725
|
-
leverage: z.ZodNumber;
|
|
1361
|
+
maxSpotPositionSizeA: z.ZodObject<{
|
|
1362
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1363
|
+
usd: z.ZodNumber;
|
|
726
1364
|
}, z.core.$strip>;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
amountUsd: z.ZodNumber;
|
|
1365
|
+
maxSpotPositionSizeB: z.ZodObject<{
|
|
1366
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1367
|
+
usd: z.ZodNumber;
|
|
731
1368
|
}, z.core.$strip>;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
amountUsd: z.ZodNumber;
|
|
1369
|
+
borrowedFundsA: z.ZodObject<{
|
|
1370
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1371
|
+
usd: z.ZodNumber;
|
|
736
1372
|
}, z.core.$strip>;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1373
|
+
borrowedFundsB: z.ZodObject<{
|
|
1374
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1375
|
+
usd: z.ZodNumber;
|
|
740
1376
|
}, z.core.$strip>;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
position: z.ZodObject<{
|
|
745
|
-
totalValueA: z.ZodNumber;
|
|
746
|
-
totalValueB: z.ZodNumber;
|
|
747
|
-
totalValueUsd: z.ZodNumber;
|
|
748
|
-
loanFundsA: z.ZodNumber;
|
|
749
|
-
loanFundsB: z.ZodNumber;
|
|
750
|
-
loanFundsUsd: z.ZodNumber;
|
|
751
|
-
leverage: z.ZodNumber;
|
|
1377
|
+
availableBorrowA: z.ZodObject<{
|
|
1378
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1379
|
+
usd: z.ZodNumber;
|
|
752
1380
|
}, z.core.$strip>;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
amountUsd: z.ZodNumber;
|
|
1381
|
+
availableBorrowB: z.ZodObject<{
|
|
1382
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1383
|
+
usd: z.ZodNumber;
|
|
757
1384
|
}, z.core.$strip>;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
amountUsd: z.ZodNumber;
|
|
1385
|
+
borrowLimitA: z.ZodObject<{
|
|
1386
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1387
|
+
usd: z.ZodNumber;
|
|
762
1388
|
}, z.core.$strip>;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
1389
|
+
borrowLimitB: z.ZodObject<{
|
|
1390
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1391
|
+
usd: z.ZodNumber;
|
|
766
1392
|
}, z.core.$strip>;
|
|
1393
|
+
disabled: z.ZodBoolean;
|
|
1394
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
767
1395
|
}, z.core.$strip>;
|
|
768
|
-
declare const
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
totalValueB: z.ZodNumber;
|
|
781
|
-
totalValueUsd: z.ZodNumber;
|
|
782
|
-
loanFundsA: z.ZodNumber;
|
|
783
|
-
loanFundsB: z.ZodNumber;
|
|
784
|
-
loanFundsUsd: z.ZodNumber;
|
|
785
|
-
leverage: z.ZodNumber;
|
|
786
|
-
}, z.core.$strip>;
|
|
787
|
-
collectedFees: z.ZodObject<{
|
|
788
|
-
amountA: z.ZodNumber;
|
|
789
|
-
amountB: z.ZodNumber;
|
|
790
|
-
amountUsd: z.ZodNumber;
|
|
791
|
-
}, z.core.$strip>;
|
|
792
|
-
fromLending: z.ZodObject<{
|
|
793
|
-
amountA: z.ZodNumber;
|
|
794
|
-
amountB: z.ZodNumber;
|
|
795
|
-
amountUsd: z.ZodNumber;
|
|
1396
|
+
declare const TokenOraclePrice$1: z.ZodObject<{
|
|
1397
|
+
mint: z.ZodString;
|
|
1398
|
+
price: z.ZodCoercedBigInt<unknown>;
|
|
1399
|
+
decimals: z.ZodNumber;
|
|
1400
|
+
time: z.ZodCoercedDate<unknown>;
|
|
1401
|
+
}, z.core.$strip>;
|
|
1402
|
+
declare const Vault$1: z.ZodObject<{
|
|
1403
|
+
address: z.ZodString;
|
|
1404
|
+
mint: z.ZodString;
|
|
1405
|
+
depositedFunds: z.ZodObject<{
|
|
1406
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1407
|
+
usd: z.ZodNumber;
|
|
796
1408
|
}, z.core.$strip>;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
amountUsd: z.ZodNumber;
|
|
1409
|
+
borrowedFunds: z.ZodObject<{
|
|
1410
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1411
|
+
usd: z.ZodNumber;
|
|
801
1412
|
}, z.core.$strip>;
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1413
|
+
supplyLimit: z.ZodObject<{
|
|
1414
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1415
|
+
usd: z.ZodNumber;
|
|
805
1416
|
}, z.core.$strip>;
|
|
1417
|
+
borrowedShares: z.ZodCoercedBigInt<unknown>;
|
|
1418
|
+
depositedShares: z.ZodCoercedBigInt<unknown>;
|
|
1419
|
+
supplyApy: z.ZodNumber;
|
|
1420
|
+
borrowApy: z.ZodNumber;
|
|
1421
|
+
interestRate: z.ZodCoercedBigInt<unknown>;
|
|
1422
|
+
utilization: z.ZodNumber;
|
|
1423
|
+
pythOracleFeedId: z.ZodString;
|
|
1424
|
+
pythOraclePriceUpdate: z.ZodString;
|
|
806
1425
|
}, z.core.$strip>;
|
|
807
|
-
declare const
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
813
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
814
|
-
[x: string]: string;
|
|
815
|
-
}>;
|
|
816
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
817
|
-
[x: string]: string;
|
|
818
|
-
}>;
|
|
819
|
-
autoCompound: z.ZodEnum<{
|
|
820
|
-
[x: string]: string;
|
|
821
|
-
}>;
|
|
822
|
-
rebalance: z.ZodEnum<{
|
|
823
|
-
[x: string]: string;
|
|
824
|
-
}>;
|
|
825
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
1426
|
+
declare const VaultHistoricalStats$1: z.ZodObject<{
|
|
1427
|
+
date: z.ZodPipe<z.ZodTransform<Date, unknown>, z.ZodDate>;
|
|
1428
|
+
supply: z.ZodObject<{
|
|
1429
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1430
|
+
usd: z.ZodNumber;
|
|
826
1431
|
}, z.core.$strip>;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
831
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
832
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
833
|
-
[x: string]: string;
|
|
834
|
-
}>;
|
|
835
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
836
|
-
[x: string]: string;
|
|
837
|
-
}>;
|
|
838
|
-
autoCompound: z.ZodEnum<{
|
|
839
|
-
[x: string]: string;
|
|
840
|
-
}>;
|
|
841
|
-
rebalance: z.ZodEnum<{
|
|
842
|
-
[x: string]: string;
|
|
843
|
-
}>;
|
|
844
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
1432
|
+
borrow: z.ZodObject<{
|
|
1433
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
1434
|
+
usd: z.ZodNumber;
|
|
845
1435
|
}, z.core.$strip>;
|
|
1436
|
+
supplyApy: z.ZodNumber;
|
|
1437
|
+
borrowApr: z.ZodNumber;
|
|
846
1438
|
}, z.core.$strip>;
|
|
847
|
-
declare const
|
|
848
|
-
|
|
849
|
-
|
|
1439
|
+
declare const Pool$1: z.ZodObject<{
|
|
1440
|
+
address: z.ZodString;
|
|
1441
|
+
provider: z.ZodEnum<{
|
|
1442
|
+
orca: "orca";
|
|
1443
|
+
fusion: "fusion";
|
|
850
1444
|
}>;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
amountB: z.ZodNumber;
|
|
884
|
-
amountUsd: z.ZodNumber;
|
|
885
|
-
}, z.core.$strip>>;
|
|
886
|
-
toOwner: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
887
|
-
amountA: z.ZodNumber;
|
|
888
|
-
amountB: z.ZodNumber;
|
|
889
|
-
amountUsd: z.ZodNumber;
|
|
890
|
-
}, z.core.$strip>>>;
|
|
891
|
-
fromLending: z.ZodOptional<z.ZodObject<{
|
|
892
|
-
amountA: z.ZodNumber;
|
|
893
|
-
amountB: z.ZodNumber;
|
|
894
|
-
amountUsd: z.ZodNumber;
|
|
895
|
-
}, z.core.$strip>>;
|
|
896
|
-
toLending: z.ZodOptional<z.ZodObject<{
|
|
897
|
-
amountA: z.ZodNumber;
|
|
898
|
-
amountB: z.ZodNumber;
|
|
899
|
-
amountUsd: z.ZodNumber;
|
|
900
|
-
}, z.core.$strip>>;
|
|
901
|
-
collectedFees: z.ZodOptional<z.ZodObject<{
|
|
902
|
-
amountA: z.ZodNumber;
|
|
903
|
-
amountB: z.ZodNumber;
|
|
904
|
-
amountUsd: z.ZodNumber;
|
|
905
|
-
}, z.core.$strip>>;
|
|
906
|
-
protocolFees: z.ZodOptional<z.ZodObject<{
|
|
907
|
-
amountA: z.ZodNumber;
|
|
908
|
-
amountB: z.ZodNumber;
|
|
909
|
-
amountUsd: z.ZodNumber;
|
|
910
|
-
}, z.core.$strip>>;
|
|
911
|
-
prices: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
912
|
-
tokenPriceA: z.ZodNumber;
|
|
913
|
-
tokenPriceB: z.ZodNumber;
|
|
914
|
-
}, z.core.$strip>>>;
|
|
915
|
-
parameters: z.ZodOptional<z.ZodObject<{
|
|
916
|
-
lowerPrice: z.ZodNumber;
|
|
917
|
-
upperPrice: z.ZodNumber;
|
|
918
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
919
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
920
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
921
|
-
[x: string]: string;
|
|
922
|
-
}>;
|
|
923
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
924
|
-
[x: string]: string;
|
|
925
|
-
}>;
|
|
926
|
-
autoCompound: z.ZodEnum<{
|
|
927
|
-
[x: string]: string;
|
|
928
|
-
}>;
|
|
929
|
-
rebalance: z.ZodEnum<{
|
|
930
|
-
[x: string]: string;
|
|
931
|
-
}>;
|
|
932
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
933
|
-
}, z.core.$strip>>;
|
|
934
|
-
fromParameters: z.ZodOptional<z.ZodObject<{
|
|
935
|
-
lowerPrice: z.ZodNumber;
|
|
936
|
-
upperPrice: z.ZodNumber;
|
|
937
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
938
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
939
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
940
|
-
[x: string]: string;
|
|
941
|
-
}>;
|
|
942
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
943
|
-
[x: string]: string;
|
|
944
|
-
}>;
|
|
945
|
-
autoCompound: z.ZodEnum<{
|
|
946
|
-
[x: string]: string;
|
|
947
|
-
}>;
|
|
948
|
-
rebalance: z.ZodEnum<{
|
|
949
|
-
[x: string]: string;
|
|
950
|
-
}>;
|
|
951
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
952
|
-
}, z.core.$strip>>;
|
|
953
|
-
toParameters: z.ZodOptional<z.ZodObject<{
|
|
954
|
-
lowerPrice: z.ZodNumber;
|
|
955
|
-
upperPrice: z.ZodNumber;
|
|
956
|
-
lowerLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
957
|
-
upperLimitOrder: z.ZodNullable<z.ZodNumber>;
|
|
958
|
-
lowerLimitOrderSwap: z.ZodEnum<{
|
|
959
|
-
[x: string]: string;
|
|
960
|
-
}>;
|
|
961
|
-
upperLimitOrderSwap: z.ZodEnum<{
|
|
962
|
-
[x: string]: string;
|
|
963
|
-
}>;
|
|
964
|
-
autoCompound: z.ZodEnum<{
|
|
965
|
-
[x: string]: string;
|
|
966
|
-
}>;
|
|
967
|
-
rebalance: z.ZodEnum<{
|
|
968
|
-
[x: string]: string;
|
|
969
|
-
}>;
|
|
970
|
-
rebalanceThresholdTicks: z.ZodNumber;
|
|
971
|
-
}, z.core.$strip>>;
|
|
972
|
-
withdrawPercent: z.ZodOptional<z.ZodNumber>;
|
|
973
|
-
closedPnlUsd: z.ZodOptional<z.ZodNumber>;
|
|
1445
|
+
tokenAMint: z.ZodString;
|
|
1446
|
+
tokenBMint: z.ZodString;
|
|
1447
|
+
tokenAVault: z.ZodString;
|
|
1448
|
+
tokenBVault: z.ZodString;
|
|
1449
|
+
tvlUsdc: z.ZodCoercedNumber<unknown>;
|
|
1450
|
+
priceChange24H: z.ZodNumber;
|
|
1451
|
+
tickSpacing: z.ZodNumber;
|
|
1452
|
+
feeRate: z.ZodNumber;
|
|
1453
|
+
olpFeeRate: z.ZodNullable<z.ZodNumber>;
|
|
1454
|
+
protocolFeeRate: z.ZodNumber;
|
|
1455
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
1456
|
+
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1457
|
+
tickCurrentIndex: z.ZodNumber;
|
|
1458
|
+
stats: z.ZodObject<{
|
|
1459
|
+
"24h": z.ZodObject<{
|
|
1460
|
+
volume: z.ZodCoercedNumber<unknown>;
|
|
1461
|
+
fees: z.ZodCoercedNumber<unknown>;
|
|
1462
|
+
rewards: z.ZodCoercedNumber<unknown>;
|
|
1463
|
+
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
1464
|
+
}, z.core.$strip>;
|
|
1465
|
+
"7d": z.ZodObject<{
|
|
1466
|
+
volume: z.ZodCoercedNumber<unknown>;
|
|
1467
|
+
fees: z.ZodCoercedNumber<unknown>;
|
|
1468
|
+
rewards: z.ZodCoercedNumber<unknown>;
|
|
1469
|
+
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
}, z.core.$strip>;
|
|
1471
|
+
"30d": z.ZodObject<{
|
|
1472
|
+
volume: z.ZodCoercedNumber<unknown>;
|
|
1473
|
+
fees: z.ZodCoercedNumber<unknown>;
|
|
1474
|
+
rewards: z.ZodCoercedNumber<unknown>;
|
|
1475
|
+
yieldOverTvl: z.ZodCoercedNumber<unknown>;
|
|
1476
|
+
}, z.core.$strip>;
|
|
974
1477
|
}, z.core.$strip>;
|
|
975
1478
|
}, z.core.$strip>;
|
|
976
|
-
declare const
|
|
1479
|
+
declare const Tick$1: z.ZodObject<{
|
|
1480
|
+
index: z.ZodNumber;
|
|
1481
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
1482
|
+
}, z.core.$strip>;
|
|
1483
|
+
declare const PoolTicks$1: z.ZodObject<{
|
|
1484
|
+
tickSpacing: z.ZodNumber;
|
|
1485
|
+
ticks: z.ZodArray<z.ZodObject<{
|
|
1486
|
+
index: z.ZodNumber;
|
|
1487
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
1488
|
+
}, z.core.$strip>>;
|
|
1489
|
+
}, z.core.$strip>;
|
|
1490
|
+
declare const LendingPosition$1: z.ZodObject<{
|
|
977
1491
|
address: z.ZodString;
|
|
978
1492
|
authority: z.ZodString;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
}>;
|
|
984
|
-
entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
985
|
-
lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
986
|
-
upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
987
|
-
flags: z.ZodNumber;
|
|
988
|
-
pool: z.ZodString;
|
|
989
|
-
poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
990
|
-
collateralToken: z.ZodString;
|
|
991
|
-
borrowToken: z.ZodString;
|
|
992
|
-
positionToken: z.ZodString;
|
|
993
|
-
collateral: z.ZodObject<{
|
|
994
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
995
|
-
usd: z.ZodNumber;
|
|
996
|
-
}, z.core.$strip>;
|
|
997
|
-
loanFunds: z.ZodObject<{
|
|
998
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
999
|
-
usd: z.ZodNumber;
|
|
1000
|
-
}, z.core.$strip>;
|
|
1001
|
-
currentLoan: z.ZodObject<{
|
|
1493
|
+
mint: z.ZodString;
|
|
1494
|
+
vault: z.ZodString;
|
|
1495
|
+
shares: z.ZodCoercedBigInt<unknown>;
|
|
1496
|
+
funds: z.ZodObject<{
|
|
1002
1497
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1003
1498
|
usd: z.ZodNumber;
|
|
1004
1499
|
}, z.core.$strip>;
|
|
1005
|
-
|
|
1500
|
+
earned: z.ZodObject<{
|
|
1006
1501
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1007
1502
|
usd: z.ZodNumber;
|
|
1008
1503
|
}, z.core.$strip>;
|
|
1009
|
-
uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
|
|
1010
|
-
pnlUsd: z.ZodObject<{
|
|
1011
|
-
amount: z.ZodNumber;
|
|
1012
|
-
bps: z.ZodNumber;
|
|
1013
|
-
}, z.core.$strip>;
|
|
1014
|
-
leverage: z.ZodNumber;
|
|
1015
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
1016
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
1017
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
1018
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1019
1504
|
}, z.core.$strip>;
|
|
1020
1505
|
declare const PoolSwap$1: z.ZodObject<{
|
|
1021
1506
|
id: z.ZodString;
|
|
@@ -1038,12 +1523,6 @@ declare const OrderBookEntry$1: z.ZodObject<{
|
|
|
1038
1523
|
price: z.ZodNumber;
|
|
1039
1524
|
askSide: z.ZodBoolean;
|
|
1040
1525
|
}, z.core.$strip>;
|
|
1041
|
-
declare const PoolPriceUpdate$1: z.ZodObject<{
|
|
1042
|
-
pool: z.ZodString;
|
|
1043
|
-
price: z.ZodNumber;
|
|
1044
|
-
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1045
|
-
time: z.ZodCoercedDate<unknown>;
|
|
1046
|
-
}, z.core.$strip>;
|
|
1047
1526
|
declare const OrderBook$1: z.ZodObject<{
|
|
1048
1527
|
entries: z.ZodArray<z.ZodObject<{
|
|
1049
1528
|
concentratedAmount: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1051,40 +1530,13 @@ declare const OrderBook$1: z.ZodObject<{
|
|
|
1051
1530
|
concentratedTotal: z.ZodCoercedBigInt<unknown>;
|
|
1052
1531
|
concentratedTotalQuote: z.ZodCoercedBigInt<unknown>;
|
|
1053
1532
|
limitAmount: z.ZodCoercedBigInt<unknown>;
|
|
1054
|
-
limitAmountQuote: z.ZodCoercedBigInt<unknown>;
|
|
1055
|
-
limitTotal: z.ZodCoercedBigInt<unknown>;
|
|
1056
|
-
limitTotalQuote: z.ZodCoercedBigInt<unknown>;
|
|
1057
|
-
price: z.ZodNumber;
|
|
1058
|
-
askSide: z.ZodBoolean;
|
|
1059
|
-
}, z.core.$strip>>;
|
|
1060
|
-
poolPrice: z.ZodNumber;
|
|
1061
|
-
}, z.core.$strip>;
|
|
1062
|
-
declare const LimitOrder$1: z.ZodObject<{
|
|
1063
|
-
address: z.ZodString;
|
|
1064
|
-
mint: z.ZodString;
|
|
1065
|
-
pool: z.ZodString;
|
|
1066
|
-
state: z.ZodEnum<{
|
|
1067
|
-
open: "open";
|
|
1068
|
-
partially_filled: "partially_filled";
|
|
1069
|
-
filled: "filled";
|
|
1070
|
-
complete: "complete";
|
|
1071
|
-
cancelled: "cancelled";
|
|
1072
|
-
}>;
|
|
1073
|
-
aToB: z.ZodBoolean;
|
|
1074
|
-
tickIndex: z.ZodNumber;
|
|
1075
|
-
fillRatio: z.ZodNumber;
|
|
1076
|
-
openTxSignature: z.ZodString;
|
|
1077
|
-
closeTxSignature: z.ZodNullable<z.ZodString>;
|
|
1078
|
-
amountIn: z.ZodObject<{
|
|
1079
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1080
|
-
usd: z.ZodNumber;
|
|
1081
|
-
}, z.core.$strip>;
|
|
1082
|
-
amountOut: z.ZodObject<{
|
|
1083
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1084
|
-
usd: z.ZodNumber;
|
|
1085
|
-
}, z.core.$strip>;
|
|
1086
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
1087
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1533
|
+
limitAmountQuote: z.ZodCoercedBigInt<unknown>;
|
|
1534
|
+
limitTotal: z.ZodCoercedBigInt<unknown>;
|
|
1535
|
+
limitTotalQuote: z.ZodCoercedBigInt<unknown>;
|
|
1536
|
+
price: z.ZodNumber;
|
|
1537
|
+
askSide: z.ZodBoolean;
|
|
1538
|
+
}, z.core.$strip>>;
|
|
1539
|
+
poolPrice: z.ZodNumber;
|
|
1088
1540
|
}, z.core.$strip>;
|
|
1089
1541
|
declare const TradeHistoryEntry$1: z.ZodObject<{
|
|
1090
1542
|
id: z.ZodString;
|
|
@@ -1318,31 +1770,6 @@ declare const StakingRevenueStatsGroup$1: z.ZodObject<{
|
|
|
1318
1770
|
runningTotalDepositsUsd: z.ZodNumber;
|
|
1319
1771
|
runningTotalDepositsSol: z.ZodCoercedBigInt<unknown>;
|
|
1320
1772
|
}, z.core.$strip>;
|
|
1321
|
-
declare const IncreaseSpotPositionQuote$1: z.ZodObject<{
|
|
1322
|
-
collateralAmount: z.ZodCoercedBigInt<unknown>;
|
|
1323
|
-
borrowAmount: z.ZodCoercedBigInt<unknown>;
|
|
1324
|
-
estimatedAmount: z.ZodCoercedBigInt<unknown>;
|
|
1325
|
-
swapInputAmount: z.ZodCoercedBigInt<unknown>;
|
|
1326
|
-
minSwapOutputAmount: z.ZodCoercedBigInt<unknown>;
|
|
1327
|
-
protocolFeeA: z.ZodCoercedBigInt<unknown>;
|
|
1328
|
-
protocolFeeB: z.ZodCoercedBigInt<unknown>;
|
|
1329
|
-
priceImpact: z.ZodNumber;
|
|
1330
|
-
uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
|
|
1331
|
-
}, z.core.$strip>;
|
|
1332
|
-
declare const DecreaseSpotPositionQuote$1: z.ZodObject<{
|
|
1333
|
-
decreasePercent: z.ZodNumber;
|
|
1334
|
-
requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
|
|
1335
|
-
estimatedAmount: z.ZodCoercedBigInt<unknown>;
|
|
1336
|
-
estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
|
|
1337
|
-
priceImpact: z.ZodNumber;
|
|
1338
|
-
uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
|
|
1339
|
-
}, z.core.$strip>;
|
|
1340
|
-
declare const CloseSpotPositionQuote$1: z.ZodObject<{
|
|
1341
|
-
decreasePercent: z.ZodNumber;
|
|
1342
|
-
requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
|
|
1343
|
-
estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
|
|
1344
|
-
priceImpact: z.ZodNumber;
|
|
1345
|
-
}, z.core.$strip>;
|
|
1346
1773
|
declare const SwapQuoteByInput$1: z.ZodObject<{
|
|
1347
1774
|
estimatedAmountOut: z.ZodCoercedBigInt<unknown>;
|
|
1348
1775
|
minAmountOut: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1357,180 +1784,6 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
|
|
|
1357
1784
|
feeUsd: z.ZodNumber;
|
|
1358
1785
|
priceImpact: z.ZodNumber;
|
|
1359
1786
|
}, z.core.$strip>;
|
|
1360
|
-
declare const StateSnapshot$1: z.ZodObject<{
|
|
1361
|
-
slot: z.ZodCoercedBigInt<unknown>;
|
|
1362
|
-
blockTime: z.ZodCoercedDate<unknown>;
|
|
1363
|
-
poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1364
|
-
pool: z.ZodString;
|
|
1365
|
-
price: z.ZodNumber;
|
|
1366
|
-
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1367
|
-
time: z.ZodCoercedDate<unknown>;
|
|
1368
|
-
}, z.core.$strip>>>;
|
|
1369
|
-
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1370
|
-
address: z.ZodString;
|
|
1371
|
-
authority: z.ZodString;
|
|
1372
|
-
version: z.ZodNumber;
|
|
1373
|
-
state: z.ZodEnum<{
|
|
1374
|
-
open: "open";
|
|
1375
|
-
closed: "closed";
|
|
1376
|
-
}>;
|
|
1377
|
-
entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1378
|
-
lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1379
|
-
upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1380
|
-
flags: z.ZodNumber;
|
|
1381
|
-
pool: z.ZodString;
|
|
1382
|
-
poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1383
|
-
collateralToken: z.ZodString;
|
|
1384
|
-
borrowToken: z.ZodString;
|
|
1385
|
-
positionToken: z.ZodString;
|
|
1386
|
-
collateral: z.ZodObject<{
|
|
1387
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1388
|
-
usd: z.ZodNumber;
|
|
1389
|
-
}, z.core.$strip>;
|
|
1390
|
-
loanFunds: z.ZodObject<{
|
|
1391
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1392
|
-
usd: z.ZodNumber;
|
|
1393
|
-
}, z.core.$strip>;
|
|
1394
|
-
currentLoan: z.ZodObject<{
|
|
1395
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1396
|
-
usd: z.ZodNumber;
|
|
1397
|
-
}, z.core.$strip>;
|
|
1398
|
-
total: z.ZodObject<{
|
|
1399
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1400
|
-
usd: z.ZodNumber;
|
|
1401
|
-
}, z.core.$strip>;
|
|
1402
|
-
uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
|
|
1403
|
-
pnlUsd: z.ZodObject<{
|
|
1404
|
-
amount: z.ZodNumber;
|
|
1405
|
-
bps: z.ZodNumber;
|
|
1406
|
-
}, z.core.$strip>;
|
|
1407
|
-
leverage: z.ZodNumber;
|
|
1408
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
1409
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
1410
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
1411
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1412
|
-
}, z.core.$strip>>>;
|
|
1413
|
-
tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1414
|
-
address: z.ZodString;
|
|
1415
|
-
authority: z.ZodString;
|
|
1416
|
-
version: z.ZodNumber;
|
|
1417
|
-
state: z.ZodEnum<{
|
|
1418
|
-
open: "open";
|
|
1419
|
-
liquidated: "liquidated";
|
|
1420
|
-
closed_by_limit_order: "closed_by_limit_order";
|
|
1421
|
-
closed: "closed";
|
|
1422
|
-
}>;
|
|
1423
|
-
positionMint: z.ZodString;
|
|
1424
|
-
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
1425
|
-
tickLowerIndex: z.ZodNumber;
|
|
1426
|
-
tickUpperIndex: z.ZodNumber;
|
|
1427
|
-
entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1428
|
-
lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1429
|
-
upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1430
|
-
flags: z.ZodNumber;
|
|
1431
|
-
pool: z.ZodString;
|
|
1432
|
-
poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
1433
|
-
depositedCollateralA: z.ZodObject<{
|
|
1434
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1435
|
-
}, z.core.$strip>;
|
|
1436
|
-
depositedCollateralB: z.ZodObject<{
|
|
1437
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1438
|
-
}, z.core.$strip>;
|
|
1439
|
-
depositedCollateralUsd: z.ZodObject<{
|
|
1440
|
-
amount: z.ZodNumber;
|
|
1441
|
-
}, z.core.$strip>;
|
|
1442
|
-
loanFundsA: z.ZodObject<{
|
|
1443
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1444
|
-
usd: z.ZodNumber;
|
|
1445
|
-
}, z.core.$strip>;
|
|
1446
|
-
loanFundsB: z.ZodObject<{
|
|
1447
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1448
|
-
usd: z.ZodNumber;
|
|
1449
|
-
}, z.core.$strip>;
|
|
1450
|
-
currentLoanA: z.ZodObject<{
|
|
1451
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1452
|
-
usd: z.ZodNumber;
|
|
1453
|
-
}, z.core.$strip>;
|
|
1454
|
-
currentLoanB: z.ZodObject<{
|
|
1455
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1456
|
-
usd: z.ZodNumber;
|
|
1457
|
-
}, z.core.$strip>;
|
|
1458
|
-
leftoversA: z.ZodObject<{
|
|
1459
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1460
|
-
usd: z.ZodNumber;
|
|
1461
|
-
}, z.core.$strip>;
|
|
1462
|
-
leftoversB: z.ZodObject<{
|
|
1463
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1464
|
-
usd: z.ZodNumber;
|
|
1465
|
-
}, z.core.$strip>;
|
|
1466
|
-
yieldA: z.ZodObject<{
|
|
1467
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1468
|
-
usd: z.ZodNumber;
|
|
1469
|
-
}, z.core.$strip>;
|
|
1470
|
-
yieldB: z.ZodObject<{
|
|
1471
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1472
|
-
usd: z.ZodNumber;
|
|
1473
|
-
}, z.core.$strip>;
|
|
1474
|
-
compoundedYieldA: z.ZodObject<{
|
|
1475
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1476
|
-
usd: z.ZodNumber;
|
|
1477
|
-
}, z.core.$strip>;
|
|
1478
|
-
compoundedYieldB: z.ZodObject<{
|
|
1479
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1480
|
-
usd: z.ZodNumber;
|
|
1481
|
-
}, z.core.$strip>;
|
|
1482
|
-
totalA: z.ZodObject<{
|
|
1483
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1484
|
-
usd: z.ZodNumber;
|
|
1485
|
-
}, z.core.$strip>;
|
|
1486
|
-
totalB: z.ZodObject<{
|
|
1487
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1488
|
-
usd: z.ZodNumber;
|
|
1489
|
-
}, z.core.$strip>;
|
|
1490
|
-
pnlA: z.ZodObject<{
|
|
1491
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1492
|
-
bps: z.ZodNumber;
|
|
1493
|
-
}, z.core.$strip>;
|
|
1494
|
-
pnlB: z.ZodObject<{
|
|
1495
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1496
|
-
bps: z.ZodNumber;
|
|
1497
|
-
}, z.core.$strip>;
|
|
1498
|
-
pnlUsd: z.ZodObject<{
|
|
1499
|
-
amount: z.ZodNumber;
|
|
1500
|
-
bps: z.ZodNumber;
|
|
1501
|
-
}, z.core.$strip>;
|
|
1502
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
1503
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
1504
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1505
|
-
}, z.core.$strip>>>;
|
|
1506
|
-
fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1507
|
-
address: z.ZodString;
|
|
1508
|
-
mint: z.ZodString;
|
|
1509
|
-
pool: z.ZodString;
|
|
1510
|
-
state: z.ZodEnum<{
|
|
1511
|
-
open: "open";
|
|
1512
|
-
partially_filled: "partially_filled";
|
|
1513
|
-
filled: "filled";
|
|
1514
|
-
complete: "complete";
|
|
1515
|
-
cancelled: "cancelled";
|
|
1516
|
-
}>;
|
|
1517
|
-
aToB: z.ZodBoolean;
|
|
1518
|
-
tickIndex: z.ZodNumber;
|
|
1519
|
-
fillRatio: z.ZodNumber;
|
|
1520
|
-
openTxSignature: z.ZodString;
|
|
1521
|
-
closeTxSignature: z.ZodNullable<z.ZodString>;
|
|
1522
|
-
amountIn: z.ZodObject<{
|
|
1523
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1524
|
-
usd: z.ZodNumber;
|
|
1525
|
-
}, z.core.$strip>;
|
|
1526
|
-
amountOut: z.ZodObject<{
|
|
1527
|
-
amount: z.ZodCoercedBigInt<unknown>;
|
|
1528
|
-
usd: z.ZodNumber;
|
|
1529
|
-
}, z.core.$strip>;
|
|
1530
|
-
openedAt: z.ZodCoercedDate<unknown>;
|
|
1531
|
-
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1532
|
-
}, z.core.$strip>>>;
|
|
1533
|
-
}, z.core.$strip>;
|
|
1534
1787
|
declare const LimitOrderQuoteByInput$1: z.ZodObject<{
|
|
1535
1788
|
amountOut: z.ZodCoercedBigInt<unknown>;
|
|
1536
1789
|
}, z.core.$strip>;
|
|
@@ -1840,15 +2093,15 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
1840
2093
|
}, z.core.$strip>;
|
|
1841
2094
|
pnlA: z.ZodObject<{
|
|
1842
2095
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1843
|
-
|
|
2096
|
+
rate: z.ZodNumber;
|
|
1844
2097
|
}, z.core.$strip>;
|
|
1845
2098
|
pnlB: z.ZodObject<{
|
|
1846
2099
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1847
|
-
|
|
2100
|
+
rate: z.ZodNumber;
|
|
1848
2101
|
}, z.core.$strip>;
|
|
1849
2102
|
pnlUsd: z.ZodObject<{
|
|
1850
2103
|
amount: z.ZodNumber;
|
|
1851
|
-
|
|
2104
|
+
rate: z.ZodNumber;
|
|
1852
2105
|
}, z.core.$strip>;
|
|
1853
2106
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
1854
2107
|
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1954,15 +2207,15 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
1954
2207
|
}, z.core.$strip>;
|
|
1955
2208
|
pnlA: z.ZodObject<{
|
|
1956
2209
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1957
|
-
|
|
2210
|
+
rate: z.ZodNumber;
|
|
1958
2211
|
}, z.core.$strip>;
|
|
1959
2212
|
pnlB: z.ZodObject<{
|
|
1960
2213
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
1961
|
-
|
|
2214
|
+
rate: z.ZodNumber;
|
|
1962
2215
|
}, z.core.$strip>;
|
|
1963
2216
|
pnlUsd: z.ZodObject<{
|
|
1964
2217
|
amount: z.ZodNumber;
|
|
1965
|
-
|
|
2218
|
+
rate: z.ZodNumber;
|
|
1966
2219
|
}, z.core.$strip>;
|
|
1967
2220
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
1968
2221
|
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1998,24 +2251,45 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
1998
2251
|
open: "open";
|
|
1999
2252
|
closed: "closed";
|
|
2000
2253
|
}>;
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2254
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
2255
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
2256
|
+
entryPrice: z.ZodNumber;
|
|
2257
|
+
mintA: z.ZodObject<{
|
|
2258
|
+
addr: z.ZodString;
|
|
2259
|
+
symbol: z.ZodString;
|
|
2260
|
+
decimals: z.ZodNumber;
|
|
2261
|
+
}, z.core.$strip>;
|
|
2262
|
+
mintB: z.ZodObject<{
|
|
2263
|
+
addr: z.ZodString;
|
|
2264
|
+
symbol: z.ZodString;
|
|
2265
|
+
decimals: z.ZodNumber;
|
|
2266
|
+
}, z.core.$strip>;
|
|
2267
|
+
pool: z.ZodObject<{
|
|
2268
|
+
addr: z.ZodString;
|
|
2269
|
+
price: z.ZodNumber;
|
|
2270
|
+
tickSpacing: z.ZodNumber;
|
|
2271
|
+
}, z.core.$strip>;
|
|
2272
|
+
positionToken: {
|
|
2273
|
+
readonly A: "a";
|
|
2274
|
+
readonly B: "b";
|
|
2275
|
+
};
|
|
2276
|
+
collateralToken: {
|
|
2277
|
+
readonly A: "a";
|
|
2278
|
+
readonly B: "b";
|
|
2279
|
+
};
|
|
2280
|
+
marketMaker: z.ZodEnum<{
|
|
2281
|
+
orca: "orca";
|
|
2282
|
+
fusion: "fusion";
|
|
2283
|
+
}>;
|
|
2284
|
+
depositedCollateral: z.ZodObject<{
|
|
2011
2285
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2012
2286
|
usd: z.ZodNumber;
|
|
2013
2287
|
}, z.core.$strip>;
|
|
2014
|
-
|
|
2288
|
+
initialDebt: z.ZodObject<{
|
|
2015
2289
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2016
2290
|
usd: z.ZodNumber;
|
|
2017
2291
|
}, z.core.$strip>;
|
|
2018
|
-
|
|
2292
|
+
currentDebt: z.ZodObject<{
|
|
2019
2293
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2020
2294
|
usd: z.ZodNumber;
|
|
2021
2295
|
}, z.core.$strip>;
|
|
@@ -2023,15 +2297,14 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
2023
2297
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2024
2298
|
usd: z.ZodNumber;
|
|
2025
2299
|
}, z.core.$strip>;
|
|
2026
|
-
|
|
2300
|
+
leverage: z.ZodNumber;
|
|
2301
|
+
maxLeverage: z.ZodNumber;
|
|
2302
|
+
liquidationPrice: z.ZodNumber;
|
|
2027
2303
|
pnlUsd: z.ZodObject<{
|
|
2028
2304
|
amount: z.ZodNumber;
|
|
2029
|
-
|
|
2305
|
+
rate: z.ZodNumber;
|
|
2030
2306
|
}, z.core.$strip>;
|
|
2031
|
-
leverage: z.ZodNumber;
|
|
2032
2307
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
2033
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2034
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2035
2308
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2036
2309
|
}, z.core.$strip>;
|
|
2037
2310
|
id: z.ZodString;
|
|
@@ -2063,24 +2336,45 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
2063
2336
|
open: "open";
|
|
2064
2337
|
closed: "closed";
|
|
2065
2338
|
}>;
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2339
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
2340
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
2341
|
+
entryPrice: z.ZodNumber;
|
|
2342
|
+
mintA: z.ZodObject<{
|
|
2343
|
+
addr: z.ZodString;
|
|
2344
|
+
symbol: z.ZodString;
|
|
2345
|
+
decimals: z.ZodNumber;
|
|
2346
|
+
}, z.core.$strip>;
|
|
2347
|
+
mintB: z.ZodObject<{
|
|
2348
|
+
addr: z.ZodString;
|
|
2349
|
+
symbol: z.ZodString;
|
|
2350
|
+
decimals: z.ZodNumber;
|
|
2351
|
+
}, z.core.$strip>;
|
|
2352
|
+
pool: z.ZodObject<{
|
|
2353
|
+
addr: z.ZodString;
|
|
2354
|
+
price: z.ZodNumber;
|
|
2355
|
+
tickSpacing: z.ZodNumber;
|
|
2356
|
+
}, z.core.$strip>;
|
|
2357
|
+
positionToken: {
|
|
2358
|
+
readonly A: "a";
|
|
2359
|
+
readonly B: "b";
|
|
2360
|
+
};
|
|
2361
|
+
collateralToken: {
|
|
2362
|
+
readonly A: "a";
|
|
2363
|
+
readonly B: "b";
|
|
2364
|
+
};
|
|
2365
|
+
marketMaker: z.ZodEnum<{
|
|
2366
|
+
orca: "orca";
|
|
2367
|
+
fusion: "fusion";
|
|
2368
|
+
}>;
|
|
2369
|
+
depositedCollateral: z.ZodObject<{
|
|
2076
2370
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2077
2371
|
usd: z.ZodNumber;
|
|
2078
2372
|
}, z.core.$strip>;
|
|
2079
|
-
|
|
2373
|
+
initialDebt: z.ZodObject<{
|
|
2080
2374
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2081
2375
|
usd: z.ZodNumber;
|
|
2082
2376
|
}, z.core.$strip>;
|
|
2083
|
-
|
|
2377
|
+
currentDebt: z.ZodObject<{
|
|
2084
2378
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2085
2379
|
usd: z.ZodNumber;
|
|
2086
2380
|
}, z.core.$strip>;
|
|
@@ -2088,15 +2382,14 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
2088
2382
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2089
2383
|
usd: z.ZodNumber;
|
|
2090
2384
|
}, z.core.$strip>;
|
|
2091
|
-
|
|
2385
|
+
leverage: z.ZodNumber;
|
|
2386
|
+
maxLeverage: z.ZodNumber;
|
|
2387
|
+
liquidationPrice: z.ZodNumber;
|
|
2092
2388
|
pnlUsd: z.ZodObject<{
|
|
2093
2389
|
amount: z.ZodNumber;
|
|
2094
|
-
|
|
2390
|
+
rate: z.ZodNumber;
|
|
2095
2391
|
}, z.core.$strip>;
|
|
2096
|
-
leverage: z.ZodNumber;
|
|
2097
2392
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
2098
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2099
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2100
2393
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2101
2394
|
}, z.core.$strip>;
|
|
2102
2395
|
id: z.ZodString;
|
|
@@ -2699,24 +2992,45 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2699
2992
|
open: "open";
|
|
2700
2993
|
closed: "closed";
|
|
2701
2994
|
}>;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2995
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
2996
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
2997
|
+
entryPrice: z.ZodNumber;
|
|
2998
|
+
mintA: z.ZodObject<{
|
|
2999
|
+
addr: z.ZodString;
|
|
3000
|
+
symbol: z.ZodString;
|
|
3001
|
+
decimals: z.ZodNumber;
|
|
3002
|
+
}, z.core.$strip>;
|
|
3003
|
+
mintB: z.ZodObject<{
|
|
3004
|
+
addr: z.ZodString;
|
|
3005
|
+
symbol: z.ZodString;
|
|
3006
|
+
decimals: z.ZodNumber;
|
|
3007
|
+
}, z.core.$strip>;
|
|
3008
|
+
pool: z.ZodObject<{
|
|
3009
|
+
addr: z.ZodString;
|
|
3010
|
+
price: z.ZodNumber;
|
|
3011
|
+
tickSpacing: z.ZodNumber;
|
|
3012
|
+
}, z.core.$strip>;
|
|
3013
|
+
positionToken: {
|
|
3014
|
+
readonly A: "a";
|
|
3015
|
+
readonly B: "b";
|
|
3016
|
+
};
|
|
3017
|
+
collateralToken: {
|
|
3018
|
+
readonly A: "a";
|
|
3019
|
+
readonly B: "b";
|
|
3020
|
+
};
|
|
3021
|
+
marketMaker: z.ZodEnum<{
|
|
3022
|
+
orca: "orca";
|
|
3023
|
+
fusion: "fusion";
|
|
3024
|
+
}>;
|
|
3025
|
+
depositedCollateral: z.ZodObject<{
|
|
2712
3026
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2713
3027
|
usd: z.ZodNumber;
|
|
2714
3028
|
}, z.core.$strip>;
|
|
2715
|
-
|
|
3029
|
+
initialDebt: z.ZodObject<{
|
|
2716
3030
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2717
3031
|
usd: z.ZodNumber;
|
|
2718
3032
|
}, z.core.$strip>;
|
|
2719
|
-
|
|
3033
|
+
currentDebt: z.ZodObject<{
|
|
2720
3034
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2721
3035
|
usd: z.ZodNumber;
|
|
2722
3036
|
}, z.core.$strip>;
|
|
@@ -2724,15 +3038,14 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2724
3038
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2725
3039
|
usd: z.ZodNumber;
|
|
2726
3040
|
}, z.core.$strip>;
|
|
2727
|
-
|
|
3041
|
+
leverage: z.ZodNumber;
|
|
3042
|
+
maxLeverage: z.ZodNumber;
|
|
3043
|
+
liquidationPrice: z.ZodNumber;
|
|
2728
3044
|
pnlUsd: z.ZodObject<{
|
|
2729
3045
|
amount: z.ZodNumber;
|
|
2730
|
-
|
|
3046
|
+
rate: z.ZodNumber;
|
|
2731
3047
|
}, z.core.$strip>;
|
|
2732
|
-
leverage: z.ZodNumber;
|
|
2733
3048
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
2734
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2735
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2736
3049
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2737
3050
|
}, z.core.$strip>>>;
|
|
2738
3051
|
tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2747,36 +3060,67 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2747
3060
|
}>;
|
|
2748
3061
|
positionMint: z.ZodString;
|
|
2749
3062
|
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
flags: z.
|
|
2756
|
-
|
|
2757
|
-
|
|
3063
|
+
lowerPrice: z.ZodNumber;
|
|
3064
|
+
upperPrice: z.ZodNumber;
|
|
3065
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
3066
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
3067
|
+
entryPrice: z.ZodNumber;
|
|
3068
|
+
flags: z.ZodObject<{
|
|
3069
|
+
lowerLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
|
|
3070
|
+
[x: string]: string;
|
|
3071
|
+
}>>;
|
|
3072
|
+
upperLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
|
|
3073
|
+
[x: string]: string;
|
|
3074
|
+
}>>;
|
|
3075
|
+
autoCompounding: z.ZodNullable<z.ZodEnum<{
|
|
3076
|
+
[x: string]: string;
|
|
3077
|
+
}>>;
|
|
3078
|
+
autoRebalancing: z.ZodBoolean;
|
|
3079
|
+
}, z.core.$strip>;
|
|
3080
|
+
mintA: z.ZodObject<{
|
|
3081
|
+
addr: z.ZodString;
|
|
3082
|
+
symbol: z.ZodString;
|
|
3083
|
+
decimals: z.ZodNumber;
|
|
3084
|
+
}, z.core.$strip>;
|
|
3085
|
+
mintB: z.ZodObject<{
|
|
3086
|
+
addr: z.ZodString;
|
|
3087
|
+
symbol: z.ZodString;
|
|
3088
|
+
decimals: z.ZodNumber;
|
|
3089
|
+
}, z.core.$strip>;
|
|
3090
|
+
pool: z.ZodObject<{
|
|
3091
|
+
addr: z.ZodString;
|
|
3092
|
+
price: z.ZodNumber;
|
|
3093
|
+
tickSpacing: z.ZodNumber;
|
|
3094
|
+
}, z.core.$strip>;
|
|
3095
|
+
marketMaker: z.ZodEnum<{
|
|
3096
|
+
orca: "orca";
|
|
3097
|
+
fusion: "fusion";
|
|
3098
|
+
}>;
|
|
2758
3099
|
depositedCollateralA: z.ZodObject<{
|
|
2759
3100
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3101
|
+
usd: z.ZodNumber;
|
|
2760
3102
|
}, z.core.$strip>;
|
|
2761
3103
|
depositedCollateralB: z.ZodObject<{
|
|
2762
3104
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3105
|
+
usd: z.ZodNumber;
|
|
2763
3106
|
}, z.core.$strip>;
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
3107
|
+
leverage: z.ZodNumber;
|
|
3108
|
+
maxLeverage: z.ZodNumber;
|
|
3109
|
+
liquidationPriceLower: z.ZodNumber;
|
|
3110
|
+
liquidationPriceUpper: z.ZodNumber;
|
|
3111
|
+
initialDebtA: z.ZodObject<{
|
|
2768
3112
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2769
3113
|
usd: z.ZodNumber;
|
|
2770
3114
|
}, z.core.$strip>;
|
|
2771
|
-
|
|
3115
|
+
initialDebtB: z.ZodObject<{
|
|
2772
3116
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2773
3117
|
usd: z.ZodNumber;
|
|
2774
3118
|
}, z.core.$strip>;
|
|
2775
|
-
|
|
3119
|
+
currentDebtA: z.ZodObject<{
|
|
2776
3120
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2777
3121
|
usd: z.ZodNumber;
|
|
2778
3122
|
}, z.core.$strip>;
|
|
2779
|
-
|
|
3123
|
+
currentDebtB: z.ZodObject<{
|
|
2780
3124
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2781
3125
|
usd: z.ZodNumber;
|
|
2782
3126
|
}, z.core.$strip>;
|
|
@@ -2814,18 +3158,17 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2814
3158
|
}, z.core.$strip>;
|
|
2815
3159
|
pnlA: z.ZodObject<{
|
|
2816
3160
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2817
|
-
|
|
3161
|
+
rate: z.ZodNumber;
|
|
2818
3162
|
}, z.core.$strip>;
|
|
2819
3163
|
pnlB: z.ZodObject<{
|
|
2820
3164
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2821
|
-
|
|
3165
|
+
rate: z.ZodNumber;
|
|
2822
3166
|
}, z.core.$strip>;
|
|
2823
3167
|
pnlUsd: z.ZodObject<{
|
|
2824
3168
|
amount: z.ZodNumber;
|
|
2825
|
-
|
|
3169
|
+
rate: z.ZodNumber;
|
|
2826
3170
|
}, z.core.$strip>;
|
|
2827
3171
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
2828
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2829
3172
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2830
3173
|
}, z.core.$strip>>>;
|
|
2831
3174
|
fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2894,24 +3237,45 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2894
3237
|
open: "open";
|
|
2895
3238
|
closed: "closed";
|
|
2896
3239
|
}>;
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
3240
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
3241
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
3242
|
+
entryPrice: z.ZodNumber;
|
|
3243
|
+
mintA: z.ZodObject<{
|
|
3244
|
+
addr: z.ZodString;
|
|
3245
|
+
symbol: z.ZodString;
|
|
3246
|
+
decimals: z.ZodNumber;
|
|
3247
|
+
}, z.core.$strip>;
|
|
3248
|
+
mintB: z.ZodObject<{
|
|
3249
|
+
addr: z.ZodString;
|
|
3250
|
+
symbol: z.ZodString;
|
|
3251
|
+
decimals: z.ZodNumber;
|
|
3252
|
+
}, z.core.$strip>;
|
|
3253
|
+
pool: z.ZodObject<{
|
|
3254
|
+
addr: z.ZodString;
|
|
3255
|
+
price: z.ZodNumber;
|
|
3256
|
+
tickSpacing: z.ZodNumber;
|
|
3257
|
+
}, z.core.$strip>;
|
|
3258
|
+
positionToken: {
|
|
3259
|
+
readonly A: "a";
|
|
3260
|
+
readonly B: "b";
|
|
3261
|
+
};
|
|
3262
|
+
collateralToken: {
|
|
3263
|
+
readonly A: "a";
|
|
3264
|
+
readonly B: "b";
|
|
3265
|
+
};
|
|
3266
|
+
marketMaker: z.ZodEnum<{
|
|
3267
|
+
orca: "orca";
|
|
3268
|
+
fusion: "fusion";
|
|
3269
|
+
}>;
|
|
3270
|
+
depositedCollateral: z.ZodObject<{
|
|
2907
3271
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2908
3272
|
usd: z.ZodNumber;
|
|
2909
3273
|
}, z.core.$strip>;
|
|
2910
|
-
|
|
3274
|
+
initialDebt: z.ZodObject<{
|
|
2911
3275
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2912
3276
|
usd: z.ZodNumber;
|
|
2913
3277
|
}, z.core.$strip>;
|
|
2914
|
-
|
|
3278
|
+
currentDebt: z.ZodObject<{
|
|
2915
3279
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2916
3280
|
usd: z.ZodNumber;
|
|
2917
3281
|
}, z.core.$strip>;
|
|
@@ -2919,15 +3283,14 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2919
3283
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2920
3284
|
usd: z.ZodNumber;
|
|
2921
3285
|
}, z.core.$strip>;
|
|
2922
|
-
|
|
3286
|
+
leverage: z.ZodNumber;
|
|
3287
|
+
maxLeverage: z.ZodNumber;
|
|
3288
|
+
liquidationPrice: z.ZodNumber;
|
|
2923
3289
|
pnlUsd: z.ZodObject<{
|
|
2924
3290
|
amount: z.ZodNumber;
|
|
2925
|
-
|
|
3291
|
+
rate: z.ZodNumber;
|
|
2926
3292
|
}, z.core.$strip>;
|
|
2927
|
-
leverage: z.ZodNumber;
|
|
2928
3293
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
2929
|
-
openedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2930
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
2931
3294
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
2932
3295
|
}, z.core.$strip>>>;
|
|
2933
3296
|
tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2942,36 +3305,67 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2942
3305
|
}>;
|
|
2943
3306
|
positionMint: z.ZodString;
|
|
2944
3307
|
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
flags: z.
|
|
2951
|
-
|
|
2952
|
-
|
|
3308
|
+
lowerPrice: z.ZodNumber;
|
|
3309
|
+
upperPrice: z.ZodNumber;
|
|
3310
|
+
lowerLimitOrderPrice: z.ZodNumber;
|
|
3311
|
+
upperLimitOrderPrice: z.ZodNumber;
|
|
3312
|
+
entryPrice: z.ZodNumber;
|
|
3313
|
+
flags: z.ZodObject<{
|
|
3314
|
+
lowerLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
|
|
3315
|
+
[x: string]: string;
|
|
3316
|
+
}>>;
|
|
3317
|
+
upperLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
|
|
3318
|
+
[x: string]: string;
|
|
3319
|
+
}>>;
|
|
3320
|
+
autoCompounding: z.ZodNullable<z.ZodEnum<{
|
|
3321
|
+
[x: string]: string;
|
|
3322
|
+
}>>;
|
|
3323
|
+
autoRebalancing: z.ZodBoolean;
|
|
3324
|
+
}, z.core.$strip>;
|
|
3325
|
+
mintA: z.ZodObject<{
|
|
3326
|
+
addr: z.ZodString;
|
|
3327
|
+
symbol: z.ZodString;
|
|
3328
|
+
decimals: z.ZodNumber;
|
|
3329
|
+
}, z.core.$strip>;
|
|
3330
|
+
mintB: z.ZodObject<{
|
|
3331
|
+
addr: z.ZodString;
|
|
3332
|
+
symbol: z.ZodString;
|
|
3333
|
+
decimals: z.ZodNumber;
|
|
3334
|
+
}, z.core.$strip>;
|
|
3335
|
+
pool: z.ZodObject<{
|
|
3336
|
+
addr: z.ZodString;
|
|
3337
|
+
price: z.ZodNumber;
|
|
3338
|
+
tickSpacing: z.ZodNumber;
|
|
3339
|
+
}, z.core.$strip>;
|
|
3340
|
+
marketMaker: z.ZodEnum<{
|
|
3341
|
+
orca: "orca";
|
|
3342
|
+
fusion: "fusion";
|
|
3343
|
+
}>;
|
|
2953
3344
|
depositedCollateralA: z.ZodObject<{
|
|
2954
3345
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3346
|
+
usd: z.ZodNumber;
|
|
2955
3347
|
}, z.core.$strip>;
|
|
2956
3348
|
depositedCollateralB: z.ZodObject<{
|
|
2957
3349
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3350
|
+
usd: z.ZodNumber;
|
|
2958
3351
|
}, z.core.$strip>;
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
3352
|
+
leverage: z.ZodNumber;
|
|
3353
|
+
maxLeverage: z.ZodNumber;
|
|
3354
|
+
liquidationPriceLower: z.ZodNumber;
|
|
3355
|
+
liquidationPriceUpper: z.ZodNumber;
|
|
3356
|
+
initialDebtA: z.ZodObject<{
|
|
2963
3357
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2964
3358
|
usd: z.ZodNumber;
|
|
2965
3359
|
}, z.core.$strip>;
|
|
2966
|
-
|
|
3360
|
+
initialDebtB: z.ZodObject<{
|
|
2967
3361
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2968
3362
|
usd: z.ZodNumber;
|
|
2969
3363
|
}, z.core.$strip>;
|
|
2970
|
-
|
|
3364
|
+
currentDebtA: z.ZodObject<{
|
|
2971
3365
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2972
3366
|
usd: z.ZodNumber;
|
|
2973
3367
|
}, z.core.$strip>;
|
|
2974
|
-
|
|
3368
|
+
currentDebtB: z.ZodObject<{
|
|
2975
3369
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
2976
3370
|
usd: z.ZodNumber;
|
|
2977
3371
|
}, z.core.$strip>;
|
|
@@ -3009,18 +3403,17 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
3009
3403
|
}, z.core.$strip>;
|
|
3010
3404
|
pnlA: z.ZodObject<{
|
|
3011
3405
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3012
|
-
|
|
3406
|
+
rate: z.ZodNumber;
|
|
3013
3407
|
}, z.core.$strip>;
|
|
3014
3408
|
pnlB: z.ZodObject<{
|
|
3015
3409
|
amount: z.ZodCoercedBigInt<unknown>;
|
|
3016
|
-
|
|
3410
|
+
rate: z.ZodNumber;
|
|
3017
3411
|
}, z.core.$strip>;
|
|
3018
3412
|
pnlUsd: z.ZodObject<{
|
|
3019
3413
|
amount: z.ZodNumber;
|
|
3020
|
-
|
|
3414
|
+
rate: z.ZodNumber;
|
|
3021
3415
|
}, z.core.$strip>;
|
|
3022
3416
|
openedAt: z.ZodCoercedDate<unknown>;
|
|
3023
|
-
updatedAtSlot: z.ZodCoercedBigInt<unknown>;
|
|
3024
3417
|
closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
3025
3418
|
}, z.core.$strip>>>;
|
|
3026
3419
|
fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3055,6 +3448,8 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
3055
3448
|
authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3056
3449
|
}, z.core.$strip>;
|
|
3057
3450
|
|
|
3451
|
+
declare const schemas_AmountWithUsdSchema: typeof AmountWithUsdSchema;
|
|
3452
|
+
declare const schemas_AmountWithoutUsdSchema: typeof AmountWithoutUsdSchema;
|
|
3058
3453
|
declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
|
|
3059
3454
|
declare const schemas_LimitOrderNotification: typeof LimitOrderNotification;
|
|
3060
3455
|
declare const schemas_LimitOrderState: typeof LimitOrderState;
|
|
@@ -3088,6 +3483,7 @@ declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
|
|
|
3088
3483
|
declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
|
|
3089
3484
|
declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
|
|
3090
3485
|
declare const schemas_StateSnapshotNotification: typeof StateSnapshotNotification;
|
|
3486
|
+
declare const schemas_TokensPnlSchema: typeof TokensPnlSchema;
|
|
3091
3487
|
declare const schemas_TradeHistoryAction: typeof TradeHistoryAction;
|
|
3092
3488
|
declare const schemas_TradeHistoryActionSchema: typeof TradeHistoryActionSchema;
|
|
3093
3489
|
declare const schemas_TradeHistoryEntryNotification: typeof TradeHistoryEntryNotification;
|
|
@@ -3102,21 +3498,33 @@ declare const schemas_TunaLpPositionActionLiquidate: typeof TunaLpPositionAction
|
|
|
3102
3498
|
declare const schemas_TunaLpPositionActionOpen: typeof TunaLpPositionActionOpen;
|
|
3103
3499
|
declare const schemas_TunaLpPositionActionParametersUpdate: typeof TunaLpPositionActionParametersUpdate;
|
|
3104
3500
|
declare const schemas_TunaLpPositionActionRepayDebt: typeof TunaLpPositionActionRepayDebt;
|
|
3501
|
+
declare const schemas_TunaLpPositionAutoCompounding: typeof TunaLpPositionAutoCompounding;
|
|
3502
|
+
declare const schemas_TunaLpPositionAutoCompoundingSchema: typeof TunaLpPositionAutoCompoundingSchema;
|
|
3503
|
+
declare const schemas_TunaLpPositionDtoSchema: typeof TunaLpPositionDtoSchema;
|
|
3504
|
+
declare const schemas_TunaLpPositionFlagsSchema: typeof TunaLpPositionFlagsSchema;
|
|
3505
|
+
declare const schemas_TunaLpPositionHistorical: typeof TunaLpPositionHistorical;
|
|
3105
3506
|
declare const schemas_TunaLpPositionParameters: typeof TunaLpPositionParameters;
|
|
3106
3507
|
declare const schemas_TunaLpPositionTokenPrices: typeof TunaLpPositionTokenPrices;
|
|
3107
3508
|
declare const schemas_TunaLpPositionTransfer: typeof TunaLpPositionTransfer;
|
|
3108
3509
|
declare const schemas_TunaLpPositionValue: typeof TunaLpPositionValue;
|
|
3510
|
+
declare const schemas_TunaPositionLegacy: typeof TunaPositionLegacy;
|
|
3511
|
+
declare const schemas_TunaPositionMintSchema: typeof TunaPositionMintSchema;
|
|
3109
3512
|
declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
|
|
3513
|
+
declare const schemas_TunaPositionPoolSchema: typeof TunaPositionPoolSchema;
|
|
3514
|
+
declare const schemas_TunaPositionPoolToken: typeof TunaPositionPoolToken;
|
|
3515
|
+
declare const schemas_TunaPositionPoolTokenSchema: typeof TunaPositionPoolTokenSchema;
|
|
3110
3516
|
declare const schemas_TunaPositionState: typeof TunaPositionState;
|
|
3111
3517
|
declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
|
|
3518
|
+
declare const schemas_TunaPositionTokenPnlSchema: typeof TunaPositionTokenPnlSchema;
|
|
3112
3519
|
declare const schemas_TunaSpotPositionNotification: typeof TunaSpotPositionNotification;
|
|
3113
3520
|
declare const schemas_TunaSpotPositionState: typeof TunaSpotPositionState;
|
|
3114
3521
|
declare const schemas_TunaSpotPositionStateSchema: typeof TunaSpotPositionStateSchema;
|
|
3115
3522
|
declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscriptionResult;
|
|
3523
|
+
declare const schemas_UsdPnlSchema: typeof UsdPnlSchema;
|
|
3116
3524
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
3117
3525
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
3118
3526
|
declare namespace schemas {
|
|
3119
|
-
export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema,
|
|
3527
|
+
export { schemas_AmountWithUsdSchema as AmountWithUsdSchema, schemas_AmountWithoutUsdSchema as AmountWithoutUsdSchema, CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TokensPnlSchema as TokensPnlSchema, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaLpPositionAction$1 as TunaLpPositionAction, schemas_TunaLpPositionActionClose as TunaLpPositionActionClose, schemas_TunaLpPositionActionCollectAndCompoundFees as TunaLpPositionActionCollectAndCompoundFees, schemas_TunaLpPositionActionCollectFees as TunaLpPositionActionCollectFees, schemas_TunaLpPositionActionDecreaseLiquidity as TunaLpPositionActionDecreaseLiquidity, schemas_TunaLpPositionActionIncreaseLiquidity as TunaLpPositionActionIncreaseLiquidity, schemas_TunaLpPositionActionLiquidate as TunaLpPositionActionLiquidate, schemas_TunaLpPositionActionOpen as TunaLpPositionActionOpen, schemas_TunaLpPositionActionParametersUpdate as TunaLpPositionActionParametersUpdate, schemas_TunaLpPositionActionRepayDebt as TunaLpPositionActionRepayDebt, schemas_TunaLpPositionAutoCompounding as TunaLpPositionAutoCompounding, schemas_TunaLpPositionAutoCompoundingSchema as TunaLpPositionAutoCompoundingSchema, schemas_TunaLpPositionDtoSchema as TunaLpPositionDtoSchema, schemas_TunaLpPositionFlagsSchema as TunaLpPositionFlagsSchema, schemas_TunaLpPositionHistorical as TunaLpPositionHistorical, schemas_TunaLpPositionParameters as TunaLpPositionParameters, schemas_TunaLpPositionTokenPrices as TunaLpPositionTokenPrices, schemas_TunaLpPositionTransfer as TunaLpPositionTransfer, schemas_TunaLpPositionValue as TunaLpPositionValue, schemas_TunaPositionLegacy as TunaPositionLegacy, schemas_TunaPositionMintSchema as TunaPositionMintSchema, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionPoolSchema as TunaPositionPoolSchema, schemas_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, schemas_UsdPnlSchema as UsdPnlSchema, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
3120
3528
|
}
|
|
3121
3529
|
|
|
3122
3530
|
type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
|
|
@@ -3146,8 +3554,9 @@ type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
|
|
|
3146
3554
|
type OrderBook = z.infer<typeof OrderBook$1>;
|
|
3147
3555
|
type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
|
|
3148
3556
|
type LendingPosition = z.infer<typeof LendingPosition$1>;
|
|
3149
|
-
type TunaPosition = z.infer<typeof
|
|
3150
|
-
type TunaLpPosition = z.infer<typeof
|
|
3557
|
+
type TunaPosition = z.infer<typeof TunaPositionLegacy>;
|
|
3558
|
+
type TunaLpPosition = z.infer<typeof TunaLpPositionHistorical>;
|
|
3559
|
+
type TunaLpPositionV2 = z.infer<typeof TunaLpPositionDtoSchema>;
|
|
3151
3560
|
type TunaLpPositionAction = z.infer<typeof TunaLpPositionAction$1>;
|
|
3152
3561
|
type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
|
|
3153
3562
|
type LimitOrder = z.infer<typeof LimitOrder$1>;
|
|
@@ -3349,8 +3758,8 @@ declare class TunaApiClient {
|
|
|
3349
3758
|
getStakingLeaderboard(page: number, pageSize: number, search?: string): Promise<StakingLeaderboardPage>;
|
|
3350
3759
|
getUserLendingPositions(userAddress: string): Promise<LendingPosition[]>;
|
|
3351
3760
|
getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
|
|
3352
|
-
getUserTunaPositions(userAddress: string): Promise<
|
|
3353
|
-
getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<
|
|
3761
|
+
getUserTunaPositions(userAddress: string): Promise<TunaLpPositionV2[]>;
|
|
3762
|
+
getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaLpPositionV2>;
|
|
3354
3763
|
getUserLpPositions(userAddress: string, options?: GetLpPositionsOptions): Promise<TunaLpPosition[]>;
|
|
3355
3764
|
getUserLpPositionActions(userAddress: string, positionAddress: string): Promise<TunaLpPositionAction[]>;
|
|
3356
3765
|
getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
|
|
@@ -3393,4 +3802,4 @@ declare class TunaApiClient {
|
|
|
3393
3802
|
private appendUrlSearchParams;
|
|
3394
3803
|
}
|
|
3395
3804
|
|
|
3396
|
-
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetLpPositionsOptions, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaLpPosition, type TunaLpPositionAction, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
|
|
3805
|
+
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetLpPositionsOptions, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaLpPosition, type TunaLpPositionAction, type TunaLpPositionV2, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
|