@crypticdot/defituna-api 1.9.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 CHANGED
@@ -1,4 +1,1184 @@
1
- import { z } from 'zod';
1
+ import z$1, { z } from 'zod';
2
+
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>;
18
+ declare const PoolProvider: {
19
+ readonly ORCA: "orca";
20
+ readonly FUSION: "fusion";
21
+ };
22
+ declare const PoolProviderSchema: z.ZodEnum<{
23
+ orca: "orca";
24
+ fusion: "fusion";
25
+ }>;
26
+
27
+ declare const LimitOrderState: {
28
+ readonly OPEN: "open";
29
+ readonly PARTIALLY_FILLED: "partially_filled";
30
+ readonly FILLED: "filled";
31
+ readonly COMPLETE: "complete";
32
+ readonly CANCELLED: "cancelled";
33
+ };
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
+
69
+ declare const LpPositionLimitOrderSwap: {
70
+ readonly NO_SWAP: "no_swap";
71
+ readonly SWAP_TO_TOKEN_A: "swap_to_token_a";
72
+ readonly SWAP_TO_TOKEN_B: "swap_to_token_b";
73
+ };
74
+ declare const LpPositionAutoCompound: {
75
+ readonly NO_AUTO_COMPOUND: "no_auto_compound";
76
+ readonly AUTO_COMPOUND: "auto_compound";
77
+ readonly AUTO_COMPOUND_WITH_LEVERAGE: "auto_compound_with_leverage";
78
+ };
79
+ declare const LpPositionRebalance: {
80
+ readonly NO_REBALANCE: "no_rebalance";
81
+ readonly AUTO_REBALANCE: "auto_rebalance";
82
+ };
83
+ declare const LpPositionsActionType: {
84
+ readonly OPEN_POSITION: "open_position";
85
+ readonly CLOSE_POSITION: "close_position";
86
+ readonly INCREASE_LIQUIDITY: "increase_liquidity";
87
+ readonly DECREASE_LIQUIDITY: "decrease_liquidity";
88
+ readonly REPAY_DEBT: "repay_debt";
89
+ readonly LIQUIDATE: "liquidate";
90
+ readonly EXECUTE_LIMIT_ORDER: "execute_limit_order";
91
+ readonly COLLECT_FEES: "collect_fees";
92
+ readonly COLLECT_REWARDS: "collect_rewards";
93
+ readonly COLLECT_AND_COMPOUND_FEES: "collect_and_compound_fees";
94
+ readonly REBALANCE_POSITION: "rebalance_position";
95
+ readonly SET_LIMIT_ORDERS: "set_limit_orders";
96
+ readonly SET_FLAGS: "set_flags";
97
+ readonly SET_REBALANCE_THRESHOLD: "set_rebalance_threshold";
98
+ };
99
+ declare const LpPositionLimitOrderSwapSchema: z$1.ZodEnum<{
100
+ [x: string]: string;
101
+ }>;
102
+ declare const LpPositionAutoCompoundSchema: z$1.ZodEnum<{
103
+ [x: string]: string;
104
+ }>;
105
+ declare const LpPositionRebalanceSchema: z$1.ZodEnum<{
106
+ [x: string]: string;
107
+ }>;
108
+ declare const LpPositionsActionTypeSchema: z$1.ZodEnum<{
109
+ [x: string]: string;
110
+ }>;
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<{
118
+ open: "open";
119
+ liquidated: "liquidated";
120
+ closed_by_limit_order: "closed_by_limit_order";
121
+ closed: "closed";
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
+ };
840
+ declare const TunaSpotPositionStateSchema: z.ZodEnum<{
841
+ open: "open";
842
+ closed: "closed";
843
+ }>;
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>;
2
1182
 
3
1183
  declare const NotificationEntity: {
4
1184
  readonly POOL_SWAP: "pool_swap";
@@ -17,27 +1197,6 @@ declare const NotificationAction: {
17
1197
  readonly CREATE: "create";
18
1198
  readonly UPDATE: "update";
19
1199
  };
20
- declare const PoolProvider: {
21
- readonly ORCA: "orca";
22
- readonly FUSION: "fusion";
23
- };
24
- declare const TunaPositionState: {
25
- readonly OPEN: "open";
26
- readonly LIQUIDATED: "liquidated";
27
- readonly CLOSED_BY_LIMIT_ORDER: "closed_by_limit_order";
28
- readonly CLOSED: "closed";
29
- };
30
- declare const TunaSpotPositionState: {
31
- readonly OPEN: "open";
32
- readonly CLOSED: "closed";
33
- };
34
- declare const LimitOrderState: {
35
- readonly OPEN: "open";
36
- readonly PARTIALLY_FILLED: "partially_filled";
37
- readonly FILLED: "filled";
38
- readonly COMPLETE: "complete";
39
- readonly CANCELLED: "cancelled";
40
- };
41
1200
  declare const TradeHistoryAction: {
42
1201
  readonly SWAP: "swap";
43
1202
  readonly LIMIT_ORDER_FILL: "limit_order_fill";
@@ -114,27 +1273,6 @@ declare const NotificationActionSchema: z.ZodEnum<{
114
1273
  create: "create";
115
1274
  update: "update";
116
1275
  }>;
117
- declare const PoolProviderSchema: z.ZodEnum<{
118
- orca: "orca";
119
- fusion: "fusion";
120
- }>;
121
- declare const TunaPositionStateSchema: z.ZodEnum<{
122
- open: "open";
123
- liquidated: "liquidated";
124
- closed_by_limit_order: "closed_by_limit_order";
125
- closed: "closed";
126
- }>;
127
- declare const TunaSpotPositionStateSchema: z.ZodEnum<{
128
- open: "open";
129
- closed: "closed";
130
- }>;
131
- declare const LimitOrderStateSchema: z.ZodEnum<{
132
- open: "open";
133
- partially_filled: "partially_filled";
134
- filled: "filled";
135
- complete: "complete";
136
- cancelled: "cancelled";
137
- }>;
138
1276
  declare const TradeHistoryActionSchema: z.ZodEnum<{
139
1277
  swap: "swap";
140
1278
  limit_order_fill: "limit_order_fill";
@@ -220,7 +1358,6 @@ declare const Market$1: z.ZodObject<{
220
1358
  liquidationFee: z.ZodNumber;
221
1359
  liquidationThreshold: z.ZodNumber;
222
1360
  oraclePriceDeviationThreshold: z.ZodNumber;
223
- limitOrderExecutionFee: z.ZodNumber;
224
1361
  maxSpotPositionSizeA: z.ZodObject<{
225
1362
  amount: z.ZodCoercedBigInt<unknown>;
226
1363
  usd: z.ZodNumber;
@@ -365,143 +1502,6 @@ declare const LendingPosition$1: z.ZodObject<{
365
1502
  usd: z.ZodNumber;
366
1503
  }, z.core.$strip>;
367
1504
  }, z.core.$strip>;
368
- declare const TunaPosition$1: z.ZodObject<{
369
- address: z.ZodString;
370
- authority: z.ZodString;
371
- version: z.ZodNumber;
372
- state: z.ZodEnum<{
373
- open: "open";
374
- liquidated: "liquidated";
375
- closed_by_limit_order: "closed_by_limit_order";
376
- closed: "closed";
377
- }>;
378
- positionMint: z.ZodString;
379
- liquidity: z.ZodCoercedBigInt<unknown>;
380
- tickLowerIndex: z.ZodNumber;
381
- tickUpperIndex: z.ZodNumber;
382
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
383
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
384
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
385
- flags: z.ZodNumber;
386
- pool: z.ZodString;
387
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
388
- depositedCollateralA: z.ZodObject<{
389
- amount: z.ZodCoercedBigInt<unknown>;
390
- }, z.core.$strip>;
391
- depositedCollateralB: z.ZodObject<{
392
- amount: z.ZodCoercedBigInt<unknown>;
393
- }, z.core.$strip>;
394
- depositedCollateralUsd: z.ZodObject<{
395
- amount: z.ZodNumber;
396
- }, z.core.$strip>;
397
- loanFundsA: z.ZodObject<{
398
- amount: z.ZodCoercedBigInt<unknown>;
399
- usd: z.ZodNumber;
400
- }, z.core.$strip>;
401
- loanFundsB: z.ZodObject<{
402
- amount: z.ZodCoercedBigInt<unknown>;
403
- usd: z.ZodNumber;
404
- }, z.core.$strip>;
405
- currentLoanA: z.ZodObject<{
406
- amount: z.ZodCoercedBigInt<unknown>;
407
- usd: z.ZodNumber;
408
- }, z.core.$strip>;
409
- currentLoanB: z.ZodObject<{
410
- amount: z.ZodCoercedBigInt<unknown>;
411
- usd: z.ZodNumber;
412
- }, z.core.$strip>;
413
- leftoversA: z.ZodObject<{
414
- amount: z.ZodCoercedBigInt<unknown>;
415
- usd: z.ZodNumber;
416
- }, z.core.$strip>;
417
- leftoversB: z.ZodObject<{
418
- amount: z.ZodCoercedBigInt<unknown>;
419
- usd: z.ZodNumber;
420
- }, z.core.$strip>;
421
- yieldA: z.ZodObject<{
422
- amount: z.ZodCoercedBigInt<unknown>;
423
- usd: z.ZodNumber;
424
- }, z.core.$strip>;
425
- yieldB: z.ZodObject<{
426
- amount: z.ZodCoercedBigInt<unknown>;
427
- usd: z.ZodNumber;
428
- }, z.core.$strip>;
429
- compoundedYieldA: z.ZodObject<{
430
- amount: z.ZodCoercedBigInt<unknown>;
431
- usd: z.ZodNumber;
432
- }, z.core.$strip>;
433
- compoundedYieldB: z.ZodObject<{
434
- amount: z.ZodCoercedBigInt<unknown>;
435
- usd: z.ZodNumber;
436
- }, z.core.$strip>;
437
- totalA: z.ZodObject<{
438
- amount: z.ZodCoercedBigInt<unknown>;
439
- usd: z.ZodNumber;
440
- }, z.core.$strip>;
441
- totalB: z.ZodObject<{
442
- amount: z.ZodCoercedBigInt<unknown>;
443
- usd: z.ZodNumber;
444
- }, z.core.$strip>;
445
- pnlA: z.ZodObject<{
446
- amount: z.ZodCoercedBigInt<unknown>;
447
- bps: z.ZodNumber;
448
- }, z.core.$strip>;
449
- pnlB: z.ZodObject<{
450
- amount: z.ZodCoercedBigInt<unknown>;
451
- bps: z.ZodNumber;
452
- }, z.core.$strip>;
453
- pnlUsd: z.ZodObject<{
454
- amount: z.ZodNumber;
455
- bps: z.ZodNumber;
456
- }, z.core.$strip>;
457
- openedAt: z.ZodCoercedDate<unknown>;
458
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
459
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
460
- }, z.core.$strip>;
461
- declare const TunaSpotPosition$1: z.ZodObject<{
462
- address: z.ZodString;
463
- authority: z.ZodString;
464
- version: z.ZodNumber;
465
- state: z.ZodEnum<{
466
- open: "open";
467
- closed: "closed";
468
- }>;
469
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
470
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
471
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
472
- flags: z.ZodNumber;
473
- pool: z.ZodString;
474
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
475
- collateralToken: z.ZodString;
476
- borrowToken: z.ZodString;
477
- positionToken: z.ZodString;
478
- collateral: z.ZodObject<{
479
- amount: z.ZodCoercedBigInt<unknown>;
480
- usd: z.ZodNumber;
481
- }, z.core.$strip>;
482
- loanFunds: z.ZodObject<{
483
- amount: z.ZodCoercedBigInt<unknown>;
484
- usd: z.ZodNumber;
485
- }, z.core.$strip>;
486
- currentLoan: z.ZodObject<{
487
- amount: z.ZodCoercedBigInt<unknown>;
488
- usd: z.ZodNumber;
489
- }, z.core.$strip>;
490
- total: z.ZodObject<{
491
- amount: z.ZodCoercedBigInt<unknown>;
492
- usd: z.ZodNumber;
493
- }, z.core.$strip>;
494
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
495
- pnlUsd: z.ZodObject<{
496
- amount: z.ZodNumber;
497
- bps: z.ZodNumber;
498
- }, z.core.$strip>;
499
- leverage: z.ZodNumber;
500
- openedAt: z.ZodCoercedDate<unknown>;
501
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
502
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
503
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
504
- }, z.core.$strip>;
505
1505
  declare const PoolSwap$1: z.ZodObject<{
506
1506
  id: z.ZodString;
507
1507
  amountIn: z.ZodCoercedBigInt<unknown>;
@@ -523,12 +1523,6 @@ declare const OrderBookEntry$1: z.ZodObject<{
523
1523
  price: z.ZodNumber;
524
1524
  askSide: z.ZodBoolean;
525
1525
  }, z.core.$strip>;
526
- declare const PoolPriceUpdate$1: z.ZodObject<{
527
- pool: z.ZodString;
528
- price: z.ZodNumber;
529
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
530
- time: z.ZodCoercedDate<unknown>;
531
- }, z.core.$strip>;
532
1526
  declare const OrderBook$1: z.ZodObject<{
533
1527
  entries: z.ZodArray<z.ZodObject<{
534
1528
  concentratedAmount: z.ZodCoercedBigInt<unknown>;
@@ -540,36 +1534,9 @@ declare const OrderBook$1: z.ZodObject<{
540
1534
  limitTotal: z.ZodCoercedBigInt<unknown>;
541
1535
  limitTotalQuote: z.ZodCoercedBigInt<unknown>;
542
1536
  price: z.ZodNumber;
543
- askSide: z.ZodBoolean;
544
- }, z.core.$strip>>;
545
- poolPrice: z.ZodNumber;
546
- }, z.core.$strip>;
547
- declare const LimitOrder$1: z.ZodObject<{
548
- address: z.ZodString;
549
- mint: z.ZodString;
550
- pool: z.ZodString;
551
- state: z.ZodEnum<{
552
- open: "open";
553
- partially_filled: "partially_filled";
554
- filled: "filled";
555
- complete: "complete";
556
- cancelled: "cancelled";
557
- }>;
558
- aToB: z.ZodBoolean;
559
- tickIndex: z.ZodNumber;
560
- fillRatio: z.ZodNumber;
561
- openTxSignature: z.ZodString;
562
- closeTxSignature: z.ZodNullable<z.ZodString>;
563
- amountIn: z.ZodObject<{
564
- amount: z.ZodCoercedBigInt<unknown>;
565
- usd: z.ZodNumber;
566
- }, z.core.$strip>;
567
- amountOut: z.ZodObject<{
568
- amount: z.ZodCoercedBigInt<unknown>;
569
- usd: z.ZodNumber;
570
- }, z.core.$strip>;
571
- openedAt: z.ZodCoercedDate<unknown>;
572
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1537
+ askSide: z.ZodBoolean;
1538
+ }, z.core.$strip>>;
1539
+ poolPrice: z.ZodNumber;
573
1540
  }, z.core.$strip>;
574
1541
  declare const TradeHistoryEntry$1: z.ZodObject<{
575
1542
  id: z.ZodString;
@@ -803,31 +1770,6 @@ declare const StakingRevenueStatsGroup$1: z.ZodObject<{
803
1770
  runningTotalDepositsUsd: z.ZodNumber;
804
1771
  runningTotalDepositsSol: z.ZodCoercedBigInt<unknown>;
805
1772
  }, z.core.$strip>;
806
- declare const IncreaseSpotPositionQuote$1: z.ZodObject<{
807
- collateralAmount: z.ZodCoercedBigInt<unknown>;
808
- borrowAmount: z.ZodCoercedBigInt<unknown>;
809
- estimatedAmount: z.ZodCoercedBigInt<unknown>;
810
- swapInputAmount: z.ZodCoercedBigInt<unknown>;
811
- minSwapOutputAmount: z.ZodCoercedBigInt<unknown>;
812
- protocolFeeA: z.ZodCoercedBigInt<unknown>;
813
- protocolFeeB: z.ZodCoercedBigInt<unknown>;
814
- priceImpact: z.ZodNumber;
815
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
816
- }, z.core.$strip>;
817
- declare const DecreaseSpotPositionQuote$1: z.ZodObject<{
818
- decreasePercent: z.ZodNumber;
819
- requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
820
- estimatedAmount: z.ZodCoercedBigInt<unknown>;
821
- estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
822
- priceImpact: z.ZodNumber;
823
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
824
- }, z.core.$strip>;
825
- declare const CloseSpotPositionQuote$1: z.ZodObject<{
826
- decreasePercent: z.ZodNumber;
827
- requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
828
- estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
829
- priceImpact: z.ZodNumber;
830
- }, z.core.$strip>;
831
1773
  declare const SwapQuoteByInput$1: z.ZodObject<{
832
1774
  estimatedAmountOut: z.ZodCoercedBigInt<unknown>;
833
1775
  minAmountOut: z.ZodCoercedBigInt<unknown>;
@@ -842,180 +1784,6 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
842
1784
  feeUsd: z.ZodNumber;
843
1785
  priceImpact: z.ZodNumber;
844
1786
  }, z.core.$strip>;
845
- declare const StateSnapshot$1: z.ZodObject<{
846
- slot: z.ZodCoercedBigInt<unknown>;
847
- blockTime: z.ZodCoercedDate<unknown>;
848
- poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
849
- pool: z.ZodString;
850
- price: z.ZodNumber;
851
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
852
- time: z.ZodCoercedDate<unknown>;
853
- }, z.core.$strip>>>;
854
- tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
855
- address: z.ZodString;
856
- authority: z.ZodString;
857
- version: z.ZodNumber;
858
- state: z.ZodEnum<{
859
- open: "open";
860
- closed: "closed";
861
- }>;
862
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
863
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
864
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
865
- flags: z.ZodNumber;
866
- pool: z.ZodString;
867
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
868
- collateralToken: z.ZodString;
869
- borrowToken: z.ZodString;
870
- positionToken: z.ZodString;
871
- collateral: z.ZodObject<{
872
- amount: z.ZodCoercedBigInt<unknown>;
873
- usd: z.ZodNumber;
874
- }, z.core.$strip>;
875
- loanFunds: z.ZodObject<{
876
- amount: z.ZodCoercedBigInt<unknown>;
877
- usd: z.ZodNumber;
878
- }, z.core.$strip>;
879
- currentLoan: z.ZodObject<{
880
- amount: z.ZodCoercedBigInt<unknown>;
881
- usd: z.ZodNumber;
882
- }, z.core.$strip>;
883
- total: z.ZodObject<{
884
- amount: z.ZodCoercedBigInt<unknown>;
885
- usd: z.ZodNumber;
886
- }, z.core.$strip>;
887
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
888
- pnlUsd: z.ZodObject<{
889
- amount: z.ZodNumber;
890
- bps: z.ZodNumber;
891
- }, z.core.$strip>;
892
- leverage: z.ZodNumber;
893
- openedAt: z.ZodCoercedDate<unknown>;
894
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
895
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
896
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
897
- }, z.core.$strip>>>;
898
- tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
899
- address: z.ZodString;
900
- authority: z.ZodString;
901
- version: z.ZodNumber;
902
- state: z.ZodEnum<{
903
- open: "open";
904
- liquidated: "liquidated";
905
- closed_by_limit_order: "closed_by_limit_order";
906
- closed: "closed";
907
- }>;
908
- positionMint: z.ZodString;
909
- liquidity: z.ZodCoercedBigInt<unknown>;
910
- tickLowerIndex: z.ZodNumber;
911
- tickUpperIndex: z.ZodNumber;
912
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
913
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
914
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
915
- flags: z.ZodNumber;
916
- pool: z.ZodString;
917
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
918
- depositedCollateralA: z.ZodObject<{
919
- amount: z.ZodCoercedBigInt<unknown>;
920
- }, z.core.$strip>;
921
- depositedCollateralB: z.ZodObject<{
922
- amount: z.ZodCoercedBigInt<unknown>;
923
- }, z.core.$strip>;
924
- depositedCollateralUsd: z.ZodObject<{
925
- amount: z.ZodNumber;
926
- }, z.core.$strip>;
927
- loanFundsA: z.ZodObject<{
928
- amount: z.ZodCoercedBigInt<unknown>;
929
- usd: z.ZodNumber;
930
- }, z.core.$strip>;
931
- loanFundsB: z.ZodObject<{
932
- amount: z.ZodCoercedBigInt<unknown>;
933
- usd: z.ZodNumber;
934
- }, z.core.$strip>;
935
- currentLoanA: z.ZodObject<{
936
- amount: z.ZodCoercedBigInt<unknown>;
937
- usd: z.ZodNumber;
938
- }, z.core.$strip>;
939
- currentLoanB: z.ZodObject<{
940
- amount: z.ZodCoercedBigInt<unknown>;
941
- usd: z.ZodNumber;
942
- }, z.core.$strip>;
943
- leftoversA: z.ZodObject<{
944
- amount: z.ZodCoercedBigInt<unknown>;
945
- usd: z.ZodNumber;
946
- }, z.core.$strip>;
947
- leftoversB: z.ZodObject<{
948
- amount: z.ZodCoercedBigInt<unknown>;
949
- usd: z.ZodNumber;
950
- }, z.core.$strip>;
951
- yieldA: z.ZodObject<{
952
- amount: z.ZodCoercedBigInt<unknown>;
953
- usd: z.ZodNumber;
954
- }, z.core.$strip>;
955
- yieldB: z.ZodObject<{
956
- amount: z.ZodCoercedBigInt<unknown>;
957
- usd: z.ZodNumber;
958
- }, z.core.$strip>;
959
- compoundedYieldA: z.ZodObject<{
960
- amount: z.ZodCoercedBigInt<unknown>;
961
- usd: z.ZodNumber;
962
- }, z.core.$strip>;
963
- compoundedYieldB: z.ZodObject<{
964
- amount: z.ZodCoercedBigInt<unknown>;
965
- usd: z.ZodNumber;
966
- }, z.core.$strip>;
967
- totalA: z.ZodObject<{
968
- amount: z.ZodCoercedBigInt<unknown>;
969
- usd: z.ZodNumber;
970
- }, z.core.$strip>;
971
- totalB: z.ZodObject<{
972
- amount: z.ZodCoercedBigInt<unknown>;
973
- usd: z.ZodNumber;
974
- }, z.core.$strip>;
975
- pnlA: z.ZodObject<{
976
- amount: z.ZodCoercedBigInt<unknown>;
977
- bps: z.ZodNumber;
978
- }, z.core.$strip>;
979
- pnlB: z.ZodObject<{
980
- amount: z.ZodCoercedBigInt<unknown>;
981
- bps: z.ZodNumber;
982
- }, z.core.$strip>;
983
- pnlUsd: z.ZodObject<{
984
- amount: z.ZodNumber;
985
- bps: z.ZodNumber;
986
- }, z.core.$strip>;
987
- openedAt: z.ZodCoercedDate<unknown>;
988
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
989
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
990
- }, z.core.$strip>>>;
991
- fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
992
- address: z.ZodString;
993
- mint: z.ZodString;
994
- pool: z.ZodString;
995
- state: z.ZodEnum<{
996
- open: "open";
997
- partially_filled: "partially_filled";
998
- filled: "filled";
999
- complete: "complete";
1000
- cancelled: "cancelled";
1001
- }>;
1002
- aToB: z.ZodBoolean;
1003
- tickIndex: z.ZodNumber;
1004
- fillRatio: z.ZodNumber;
1005
- openTxSignature: z.ZodString;
1006
- closeTxSignature: z.ZodNullable<z.ZodString>;
1007
- amountIn: z.ZodObject<{
1008
- amount: z.ZodCoercedBigInt<unknown>;
1009
- usd: z.ZodNumber;
1010
- }, z.core.$strip>;
1011
- amountOut: z.ZodObject<{
1012
- amount: z.ZodCoercedBigInt<unknown>;
1013
- usd: z.ZodNumber;
1014
- }, z.core.$strip>;
1015
- openedAt: z.ZodCoercedDate<unknown>;
1016
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1017
- }, z.core.$strip>>>;
1018
- }, z.core.$strip>;
1019
1787
  declare const LimitOrderQuoteByInput$1: z.ZodObject<{
1020
1788
  amountOut: z.ZodCoercedBigInt<unknown>;
1021
1789
  }, z.core.$strip>;
@@ -1325,15 +2093,15 @@ declare const TunaPositionNotification: z.ZodObject<{
1325
2093
  }, z.core.$strip>;
1326
2094
  pnlA: z.ZodObject<{
1327
2095
  amount: z.ZodCoercedBigInt<unknown>;
1328
- bps: z.ZodNumber;
2096
+ rate: z.ZodNumber;
1329
2097
  }, z.core.$strip>;
1330
2098
  pnlB: z.ZodObject<{
1331
2099
  amount: z.ZodCoercedBigInt<unknown>;
1332
- bps: z.ZodNumber;
2100
+ rate: z.ZodNumber;
1333
2101
  }, z.core.$strip>;
1334
2102
  pnlUsd: z.ZodObject<{
1335
2103
  amount: z.ZodNumber;
1336
- bps: z.ZodNumber;
2104
+ rate: z.ZodNumber;
1337
2105
  }, z.core.$strip>;
1338
2106
  openedAt: z.ZodCoercedDate<unknown>;
1339
2107
  updatedAtSlot: z.ZodCoercedBigInt<unknown>;
@@ -1439,15 +2207,15 @@ declare const TunaPositionNotification: z.ZodObject<{
1439
2207
  }, z.core.$strip>;
1440
2208
  pnlA: z.ZodObject<{
1441
2209
  amount: z.ZodCoercedBigInt<unknown>;
1442
- bps: z.ZodNumber;
2210
+ rate: z.ZodNumber;
1443
2211
  }, z.core.$strip>;
1444
2212
  pnlB: z.ZodObject<{
1445
2213
  amount: z.ZodCoercedBigInt<unknown>;
1446
- bps: z.ZodNumber;
2214
+ rate: z.ZodNumber;
1447
2215
  }, z.core.$strip>;
1448
2216
  pnlUsd: z.ZodObject<{
1449
2217
  amount: z.ZodNumber;
1450
- bps: z.ZodNumber;
2218
+ rate: z.ZodNumber;
1451
2219
  }, z.core.$strip>;
1452
2220
  openedAt: z.ZodCoercedDate<unknown>;
1453
2221
  updatedAtSlot: z.ZodCoercedBigInt<unknown>;
@@ -1483,24 +2251,45 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
1483
2251
  open: "open";
1484
2252
  closed: "closed";
1485
2253
  }>;
1486
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
1487
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
1488
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
1489
- flags: z.ZodNumber;
1490
- pool: z.ZodString;
1491
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
1492
- collateralToken: z.ZodString;
1493
- borrowToken: z.ZodString;
1494
- positionToken: z.ZodString;
1495
- collateral: z.ZodObject<{
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<{
1496
2285
  amount: z.ZodCoercedBigInt<unknown>;
1497
2286
  usd: z.ZodNumber;
1498
2287
  }, z.core.$strip>;
1499
- loanFunds: z.ZodObject<{
2288
+ initialDebt: z.ZodObject<{
1500
2289
  amount: z.ZodCoercedBigInt<unknown>;
1501
2290
  usd: z.ZodNumber;
1502
2291
  }, z.core.$strip>;
1503
- currentLoan: z.ZodObject<{
2292
+ currentDebt: z.ZodObject<{
1504
2293
  amount: z.ZodCoercedBigInt<unknown>;
1505
2294
  usd: z.ZodNumber;
1506
2295
  }, z.core.$strip>;
@@ -1508,15 +2297,14 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
1508
2297
  amount: z.ZodCoercedBigInt<unknown>;
1509
2298
  usd: z.ZodNumber;
1510
2299
  }, z.core.$strip>;
1511
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
2300
+ leverage: z.ZodNumber;
2301
+ maxLeverage: z.ZodNumber;
2302
+ liquidationPrice: z.ZodNumber;
1512
2303
  pnlUsd: z.ZodObject<{
1513
2304
  amount: z.ZodNumber;
1514
- bps: z.ZodNumber;
2305
+ rate: z.ZodNumber;
1515
2306
  }, z.core.$strip>;
1516
- leverage: z.ZodNumber;
1517
2307
  openedAt: z.ZodCoercedDate<unknown>;
1518
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
1519
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
1520
2308
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1521
2309
  }, z.core.$strip>;
1522
2310
  id: z.ZodString;
@@ -1548,24 +2336,45 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
1548
2336
  open: "open";
1549
2337
  closed: "closed";
1550
2338
  }>;
1551
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
1552
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
1553
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
1554
- flags: z.ZodNumber;
1555
- pool: z.ZodString;
1556
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
1557
- collateralToken: z.ZodString;
1558
- borrowToken: z.ZodString;
1559
- positionToken: z.ZodString;
1560
- collateral: z.ZodObject<{
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<{
1561
2370
  amount: z.ZodCoercedBigInt<unknown>;
1562
2371
  usd: z.ZodNumber;
1563
2372
  }, z.core.$strip>;
1564
- loanFunds: z.ZodObject<{
2373
+ initialDebt: z.ZodObject<{
1565
2374
  amount: z.ZodCoercedBigInt<unknown>;
1566
2375
  usd: z.ZodNumber;
1567
2376
  }, z.core.$strip>;
1568
- currentLoan: z.ZodObject<{
2377
+ currentDebt: z.ZodObject<{
1569
2378
  amount: z.ZodCoercedBigInt<unknown>;
1570
2379
  usd: z.ZodNumber;
1571
2380
  }, z.core.$strip>;
@@ -1573,15 +2382,14 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
1573
2382
  amount: z.ZodCoercedBigInt<unknown>;
1574
2383
  usd: z.ZodNumber;
1575
2384
  }, z.core.$strip>;
1576
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
2385
+ leverage: z.ZodNumber;
2386
+ maxLeverage: z.ZodNumber;
2387
+ liquidationPrice: z.ZodNumber;
1577
2388
  pnlUsd: z.ZodObject<{
1578
2389
  amount: z.ZodNumber;
1579
- bps: z.ZodNumber;
2390
+ rate: z.ZodNumber;
1580
2391
  }, z.core.$strip>;
1581
- leverage: z.ZodNumber;
1582
2392
  openedAt: z.ZodCoercedDate<unknown>;
1583
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
1584
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
1585
2393
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1586
2394
  }, z.core.$strip>;
1587
2395
  id: z.ZodString;
@@ -2184,24 +2992,45 @@ declare const StateSnapshotNotification: z.ZodObject<{
2184
2992
  open: "open";
2185
2993
  closed: "closed";
2186
2994
  }>;
2187
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
2188
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2189
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2190
- flags: z.ZodNumber;
2191
- pool: z.ZodString;
2192
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
2193
- collateralToken: z.ZodString;
2194
- borrowToken: z.ZodString;
2195
- positionToken: z.ZodString;
2196
- collateral: z.ZodObject<{
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<{
2197
3026
  amount: z.ZodCoercedBigInt<unknown>;
2198
3027
  usd: z.ZodNumber;
2199
3028
  }, z.core.$strip>;
2200
- loanFunds: z.ZodObject<{
3029
+ initialDebt: z.ZodObject<{
2201
3030
  amount: z.ZodCoercedBigInt<unknown>;
2202
3031
  usd: z.ZodNumber;
2203
3032
  }, z.core.$strip>;
2204
- currentLoan: z.ZodObject<{
3033
+ currentDebt: z.ZodObject<{
2205
3034
  amount: z.ZodCoercedBigInt<unknown>;
2206
3035
  usd: z.ZodNumber;
2207
3036
  }, z.core.$strip>;
@@ -2209,15 +3038,14 @@ declare const StateSnapshotNotification: z.ZodObject<{
2209
3038
  amount: z.ZodCoercedBigInt<unknown>;
2210
3039
  usd: z.ZodNumber;
2211
3040
  }, z.core.$strip>;
2212
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
3041
+ leverage: z.ZodNumber;
3042
+ maxLeverage: z.ZodNumber;
3043
+ liquidationPrice: z.ZodNumber;
2213
3044
  pnlUsd: z.ZodObject<{
2214
3045
  amount: z.ZodNumber;
2215
- bps: z.ZodNumber;
3046
+ rate: z.ZodNumber;
2216
3047
  }, z.core.$strip>;
2217
- leverage: z.ZodNumber;
2218
3048
  openedAt: z.ZodCoercedDate<unknown>;
2219
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
2220
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
2221
3049
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2222
3050
  }, z.core.$strip>>>;
2223
3051
  tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2232,36 +3060,67 @@ declare const StateSnapshotNotification: z.ZodObject<{
2232
3060
  }>;
2233
3061
  positionMint: z.ZodString;
2234
3062
  liquidity: z.ZodCoercedBigInt<unknown>;
2235
- tickLowerIndex: z.ZodNumber;
2236
- tickUpperIndex: z.ZodNumber;
2237
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
2238
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2239
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2240
- flags: z.ZodNumber;
2241
- pool: z.ZodString;
2242
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
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
+ }>;
2243
3099
  depositedCollateralA: z.ZodObject<{
2244
3100
  amount: z.ZodCoercedBigInt<unknown>;
3101
+ usd: z.ZodNumber;
2245
3102
  }, z.core.$strip>;
2246
3103
  depositedCollateralB: z.ZodObject<{
2247
3104
  amount: z.ZodCoercedBigInt<unknown>;
3105
+ usd: z.ZodNumber;
2248
3106
  }, z.core.$strip>;
2249
- depositedCollateralUsd: z.ZodObject<{
2250
- amount: z.ZodNumber;
2251
- }, z.core.$strip>;
2252
- loanFundsA: z.ZodObject<{
3107
+ leverage: z.ZodNumber;
3108
+ maxLeverage: z.ZodNumber;
3109
+ liquidationPriceLower: z.ZodNumber;
3110
+ liquidationPriceUpper: z.ZodNumber;
3111
+ initialDebtA: z.ZodObject<{
2253
3112
  amount: z.ZodCoercedBigInt<unknown>;
2254
3113
  usd: z.ZodNumber;
2255
3114
  }, z.core.$strip>;
2256
- loanFundsB: z.ZodObject<{
3115
+ initialDebtB: z.ZodObject<{
2257
3116
  amount: z.ZodCoercedBigInt<unknown>;
2258
3117
  usd: z.ZodNumber;
2259
3118
  }, z.core.$strip>;
2260
- currentLoanA: z.ZodObject<{
3119
+ currentDebtA: z.ZodObject<{
2261
3120
  amount: z.ZodCoercedBigInt<unknown>;
2262
3121
  usd: z.ZodNumber;
2263
3122
  }, z.core.$strip>;
2264
- currentLoanB: z.ZodObject<{
3123
+ currentDebtB: z.ZodObject<{
2265
3124
  amount: z.ZodCoercedBigInt<unknown>;
2266
3125
  usd: z.ZodNumber;
2267
3126
  }, z.core.$strip>;
@@ -2299,18 +3158,17 @@ declare const StateSnapshotNotification: z.ZodObject<{
2299
3158
  }, z.core.$strip>;
2300
3159
  pnlA: z.ZodObject<{
2301
3160
  amount: z.ZodCoercedBigInt<unknown>;
2302
- bps: z.ZodNumber;
3161
+ rate: z.ZodNumber;
2303
3162
  }, z.core.$strip>;
2304
3163
  pnlB: z.ZodObject<{
2305
3164
  amount: z.ZodCoercedBigInt<unknown>;
2306
- bps: z.ZodNumber;
3165
+ rate: z.ZodNumber;
2307
3166
  }, z.core.$strip>;
2308
3167
  pnlUsd: z.ZodObject<{
2309
3168
  amount: z.ZodNumber;
2310
- bps: z.ZodNumber;
3169
+ rate: z.ZodNumber;
2311
3170
  }, z.core.$strip>;
2312
3171
  openedAt: z.ZodCoercedDate<unknown>;
2313
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
2314
3172
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2315
3173
  }, z.core.$strip>>>;
2316
3174
  fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2379,24 +3237,45 @@ declare const StateSnapshotNotification: z.ZodObject<{
2379
3237
  open: "open";
2380
3238
  closed: "closed";
2381
3239
  }>;
2382
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
2383
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2384
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2385
- flags: z.ZodNumber;
2386
- pool: z.ZodString;
2387
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
2388
- collateralToken: z.ZodString;
2389
- borrowToken: z.ZodString;
2390
- positionToken: z.ZodString;
2391
- collateral: z.ZodObject<{
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<{
2392
3271
  amount: z.ZodCoercedBigInt<unknown>;
2393
3272
  usd: z.ZodNumber;
2394
3273
  }, z.core.$strip>;
2395
- loanFunds: z.ZodObject<{
3274
+ initialDebt: z.ZodObject<{
2396
3275
  amount: z.ZodCoercedBigInt<unknown>;
2397
3276
  usd: z.ZodNumber;
2398
3277
  }, z.core.$strip>;
2399
- currentLoan: z.ZodObject<{
3278
+ currentDebt: z.ZodObject<{
2400
3279
  amount: z.ZodCoercedBigInt<unknown>;
2401
3280
  usd: z.ZodNumber;
2402
3281
  }, z.core.$strip>;
@@ -2404,15 +3283,14 @@ declare const StateSnapshotNotification: z.ZodObject<{
2404
3283
  amount: z.ZodCoercedBigInt<unknown>;
2405
3284
  usd: z.ZodNumber;
2406
3285
  }, z.core.$strip>;
2407
- uiLiquidationPrice: z.ZodNullable<z.ZodNumber>;
3286
+ leverage: z.ZodNumber;
3287
+ maxLeverage: z.ZodNumber;
3288
+ liquidationPrice: z.ZodNumber;
2408
3289
  pnlUsd: z.ZodObject<{
2409
3290
  amount: z.ZodNumber;
2410
- bps: z.ZodNumber;
3291
+ rate: z.ZodNumber;
2411
3292
  }, z.core.$strip>;
2412
- leverage: z.ZodNumber;
2413
3293
  openedAt: z.ZodCoercedDate<unknown>;
2414
- openedAtSlot: z.ZodCoercedBigInt<unknown>;
2415
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
2416
3294
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2417
3295
  }, z.core.$strip>>>;
2418
3296
  tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2427,36 +3305,67 @@ declare const StateSnapshotNotification: z.ZodObject<{
2427
3305
  }>;
2428
3306
  positionMint: z.ZodString;
2429
3307
  liquidity: z.ZodCoercedBigInt<unknown>;
2430
- tickLowerIndex: z.ZodNumber;
2431
- tickUpperIndex: z.ZodNumber;
2432
- entrySqrtPrice: z.ZodCoercedBigInt<unknown>;
2433
- lowerLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2434
- upperLimitOrderSqrtPrice: z.ZodCoercedBigInt<unknown>;
2435
- flags: z.ZodNumber;
2436
- pool: z.ZodString;
2437
- poolSqrtPrice: z.ZodCoercedBigInt<unknown>;
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
+ }>;
2438
3344
  depositedCollateralA: z.ZodObject<{
2439
3345
  amount: z.ZodCoercedBigInt<unknown>;
3346
+ usd: z.ZodNumber;
2440
3347
  }, z.core.$strip>;
2441
3348
  depositedCollateralB: z.ZodObject<{
2442
3349
  amount: z.ZodCoercedBigInt<unknown>;
3350
+ usd: z.ZodNumber;
2443
3351
  }, z.core.$strip>;
2444
- depositedCollateralUsd: z.ZodObject<{
2445
- amount: z.ZodNumber;
2446
- }, z.core.$strip>;
2447
- loanFundsA: z.ZodObject<{
3352
+ leverage: z.ZodNumber;
3353
+ maxLeverage: z.ZodNumber;
3354
+ liquidationPriceLower: z.ZodNumber;
3355
+ liquidationPriceUpper: z.ZodNumber;
3356
+ initialDebtA: z.ZodObject<{
2448
3357
  amount: z.ZodCoercedBigInt<unknown>;
2449
3358
  usd: z.ZodNumber;
2450
3359
  }, z.core.$strip>;
2451
- loanFundsB: z.ZodObject<{
3360
+ initialDebtB: z.ZodObject<{
2452
3361
  amount: z.ZodCoercedBigInt<unknown>;
2453
3362
  usd: z.ZodNumber;
2454
3363
  }, z.core.$strip>;
2455
- currentLoanA: z.ZodObject<{
3364
+ currentDebtA: z.ZodObject<{
2456
3365
  amount: z.ZodCoercedBigInt<unknown>;
2457
3366
  usd: z.ZodNumber;
2458
3367
  }, z.core.$strip>;
2459
- currentLoanB: z.ZodObject<{
3368
+ currentDebtB: z.ZodObject<{
2460
3369
  amount: z.ZodCoercedBigInt<unknown>;
2461
3370
  usd: z.ZodNumber;
2462
3371
  }, z.core.$strip>;
@@ -2494,18 +3403,17 @@ declare const StateSnapshotNotification: z.ZodObject<{
2494
3403
  }, z.core.$strip>;
2495
3404
  pnlA: z.ZodObject<{
2496
3405
  amount: z.ZodCoercedBigInt<unknown>;
2497
- bps: z.ZodNumber;
3406
+ rate: z.ZodNumber;
2498
3407
  }, z.core.$strip>;
2499
3408
  pnlB: z.ZodObject<{
2500
3409
  amount: z.ZodCoercedBigInt<unknown>;
2501
- bps: z.ZodNumber;
3410
+ rate: z.ZodNumber;
2502
3411
  }, z.core.$strip>;
2503
3412
  pnlUsd: z.ZodObject<{
2504
3413
  amount: z.ZodNumber;
2505
- bps: z.ZodNumber;
3414
+ rate: z.ZodNumber;
2506
3415
  }, z.core.$strip>;
2507
3416
  openedAt: z.ZodCoercedDate<unknown>;
2508
- updatedAtSlot: z.ZodCoercedBigInt<unknown>;
2509
3417
  closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2510
3418
  }, z.core.$strip>>>;
2511
3419
  fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2540,10 +3448,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
2540
3448
  authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2541
3449
  }, z.core.$strip>;
2542
3450
 
3451
+ declare const schemas_AmountWithUsdSchema: typeof AmountWithUsdSchema;
3452
+ declare const schemas_AmountWithoutUsdSchema: typeof AmountWithoutUsdSchema;
2543
3453
  declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
2544
3454
  declare const schemas_LimitOrderNotification: typeof LimitOrderNotification;
2545
3455
  declare const schemas_LimitOrderState: typeof LimitOrderState;
2546
3456
  declare const schemas_LimitOrderStateSchema: typeof LimitOrderStateSchema;
3457
+ declare const schemas_LpPositionAutoCompound: typeof LpPositionAutoCompound;
3458
+ declare const schemas_LpPositionAutoCompoundSchema: typeof LpPositionAutoCompoundSchema;
3459
+ declare const schemas_LpPositionLimitOrderSwap: typeof LpPositionLimitOrderSwap;
3460
+ declare const schemas_LpPositionLimitOrderSwapSchema: typeof LpPositionLimitOrderSwapSchema;
3461
+ declare const schemas_LpPositionRebalance: typeof LpPositionRebalance;
3462
+ declare const schemas_LpPositionRebalanceSchema: typeof LpPositionRebalanceSchema;
3463
+ declare const schemas_LpPositionsActionType: typeof LpPositionsActionType;
3464
+ declare const schemas_LpPositionsActionTypeSchema: typeof LpPositionsActionTypeSchema;
2547
3465
  declare const schemas_NotificationAction: typeof NotificationAction;
2548
3466
  declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
2549
3467
  declare const schemas_NotificationEntity: typeof NotificationEntity;
@@ -2565,22 +3483,48 @@ declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
2565
3483
  declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
2566
3484
  declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
2567
3485
  declare const schemas_StateSnapshotNotification: typeof StateSnapshotNotification;
3486
+ declare const schemas_TokensPnlSchema: typeof TokensPnlSchema;
2568
3487
  declare const schemas_TradeHistoryAction: typeof TradeHistoryAction;
2569
3488
  declare const schemas_TradeHistoryActionSchema: typeof TradeHistoryActionSchema;
2570
3489
  declare const schemas_TradeHistoryEntryNotification: typeof TradeHistoryEntryNotification;
2571
3490
  declare const schemas_TradeHistoryUIDirection: typeof TradeHistoryUIDirection;
2572
3491
  declare const schemas_TradeHistoryUIDirectionSchema: typeof TradeHistoryUIDirectionSchema;
3492
+ declare const schemas_TunaLpPositionActionClose: typeof TunaLpPositionActionClose;
3493
+ declare const schemas_TunaLpPositionActionCollectAndCompoundFees: typeof TunaLpPositionActionCollectAndCompoundFees;
3494
+ declare const schemas_TunaLpPositionActionCollectFees: typeof TunaLpPositionActionCollectFees;
3495
+ declare const schemas_TunaLpPositionActionDecreaseLiquidity: typeof TunaLpPositionActionDecreaseLiquidity;
3496
+ declare const schemas_TunaLpPositionActionIncreaseLiquidity: typeof TunaLpPositionActionIncreaseLiquidity;
3497
+ declare const schemas_TunaLpPositionActionLiquidate: typeof TunaLpPositionActionLiquidate;
3498
+ declare const schemas_TunaLpPositionActionOpen: typeof TunaLpPositionActionOpen;
3499
+ declare const schemas_TunaLpPositionActionParametersUpdate: typeof TunaLpPositionActionParametersUpdate;
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;
3506
+ declare const schemas_TunaLpPositionParameters: typeof TunaLpPositionParameters;
3507
+ declare const schemas_TunaLpPositionTokenPrices: typeof TunaLpPositionTokenPrices;
3508
+ declare const schemas_TunaLpPositionTransfer: typeof TunaLpPositionTransfer;
3509
+ declare const schemas_TunaLpPositionValue: typeof TunaLpPositionValue;
3510
+ declare const schemas_TunaPositionLegacy: typeof TunaPositionLegacy;
3511
+ declare const schemas_TunaPositionMintSchema: typeof TunaPositionMintSchema;
2573
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;
2574
3516
  declare const schemas_TunaPositionState: typeof TunaPositionState;
2575
3517
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
3518
+ declare const schemas_TunaPositionTokenPnlSchema: typeof TunaPositionTokenPnlSchema;
2576
3519
  declare const schemas_TunaSpotPositionNotification: typeof TunaSpotPositionNotification;
2577
3520
  declare const schemas_TunaSpotPositionState: typeof TunaSpotPositionState;
2578
3521
  declare const schemas_TunaSpotPositionStateSchema: typeof TunaSpotPositionStateSchema;
2579
3522
  declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscriptionResult;
3523
+ declare const schemas_UsdPnlSchema: typeof UsdPnlSchema;
2580
3524
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
2581
3525
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
2582
3526
  declare namespace schemas {
2583
- 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, 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, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
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 };
2584
3528
  }
2585
3529
 
2586
3530
  type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
@@ -2610,7 +3554,10 @@ type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
2610
3554
  type OrderBook = z.infer<typeof OrderBook$1>;
2611
3555
  type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
2612
3556
  type LendingPosition = z.infer<typeof LendingPosition$1>;
2613
- type TunaPosition = z.infer<typeof TunaPosition$1>;
3557
+ type TunaPosition = z.infer<typeof TunaPositionLegacy>;
3558
+ type TunaLpPosition = z.infer<typeof TunaLpPositionHistorical>;
3559
+ type TunaLpPositionV2 = z.infer<typeof TunaLpPositionDtoSchema>;
3560
+ type TunaLpPositionAction = z.infer<typeof TunaLpPositionAction$1>;
2614
3561
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
2615
3562
  type LimitOrder = z.infer<typeof LimitOrder$1>;
2616
3563
  type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
@@ -2734,6 +3681,18 @@ type GetUserOrderHistoryOptions = {
2734
3681
  limit?: number;
2735
3682
  desc?: boolean;
2736
3683
  };
3684
+ type GetLpPositionsOptions = {
3685
+ filter?: "all" | "opened" | "closed";
3686
+ afterPosition?: string;
3687
+ openedAt?: {
3688
+ from?: Date;
3689
+ to?: Date;
3690
+ };
3691
+ closedAt?: {
3692
+ from?: Date;
3693
+ to?: Date;
3694
+ };
3695
+ };
2737
3696
  type DurationInMs = number;
2738
3697
  declare enum ProviderFilter {
2739
3698
  ORCA = "orca",
@@ -2799,8 +3758,10 @@ declare class TunaApiClient {
2799
3758
  getStakingLeaderboard(page: number, pageSize: number, search?: string): Promise<StakingLeaderboardPage>;
2800
3759
  getUserLendingPositions(userAddress: string): Promise<LendingPosition[]>;
2801
3760
  getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
2802
- getUserTunaPositions(userAddress: string): Promise<TunaPosition[]>;
2803
- getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaPosition>;
3761
+ getUserTunaPositions(userAddress: string): Promise<TunaLpPositionV2[]>;
3762
+ getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaLpPositionV2>;
3763
+ getUserLpPositions(userAddress: string, options?: GetLpPositionsOptions): Promise<TunaLpPosition[]>;
3764
+ getUserLpPositionActions(userAddress: string, positionAddress: string): Promise<TunaLpPositionAction[]>;
2804
3765
  getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
2805
3766
  getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
2806
3767
  getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
@@ -2841,4 +3802,4 @@ declare class TunaApiClient {
2841
3802
  private appendUrlSearchParams;
2842
3803
  }
2843
3804
 
2844
- export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, 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 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 };