@crypticdot/defituna-api 1.10.0 → 1.10.2

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