@crypticdot/defituna-api 1.10.16 → 3.0.0

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 DELETED
@@ -1,3994 +0,0 @@
1
- import z$1, { z } from 'zod';
2
-
3
- declare const AmountWithUsdSchema: z.ZodObject<{
4
- amount: z.ZodCoercedBigInt<unknown>;
5
- usd: z.ZodNumber;
6
- }, z.core.$strip>;
7
- declare const AmountWithoutUsdSchema: z.ZodObject<{
8
- amount: z.ZodCoercedBigInt<unknown>;
9
- }, z.core.$strip>;
10
- declare const TokensPnlSchema: z.ZodObject<{
11
- amount: z.ZodCoercedBigInt<unknown>;
12
- rate: z.ZodNumber;
13
- }, z.core.$strip>;
14
- declare const UsdPnlSchema: z.ZodObject<{
15
- amount: z.ZodNumber;
16
- rate: z.ZodNumber;
17
- }, z.core.$strip>;
18
-
19
- declare const PoolProvider: {
20
- readonly ORCA: "orca";
21
- readonly FUSION: "fusion";
22
- };
23
- declare const PoolProviderSchema: z$1.ZodEnum<{
24
- orca: "orca";
25
- fusion: "fusion";
26
- }>;
27
- declare const Pool$1: z$1.ZodObject<{
28
- address: z$1.ZodString;
29
- provider: z$1.ZodEnum<{
30
- orca: "orca";
31
- fusion: "fusion";
32
- }>;
33
- mintA: z$1.ZodObject<{
34
- address: z$1.ZodString;
35
- symbol: z$1.ZodString;
36
- name: z$1.ZodString;
37
- logo: z$1.ZodString;
38
- decimals: z$1.ZodNumber;
39
- }, z$1.core.$strip>;
40
- mintB: z$1.ZodObject<{
41
- address: z$1.ZodString;
42
- symbol: z$1.ZodString;
43
- name: z$1.ZodString;
44
- logo: z$1.ZodString;
45
- decimals: z$1.ZodNumber;
46
- }, z$1.core.$strip>;
47
- tokenAVault: z$1.ZodString;
48
- tokenBVault: z$1.ZodString;
49
- tickSpacing: z$1.ZodNumber;
50
- feeRate: z$1.ZodNumber;
51
- protocolFeeRate: z$1.ZodNumber;
52
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
53
- liquidity: z$1.ZodCoercedBigInt<unknown>;
54
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
55
- price: z$1.ZodNumber;
56
- tickCurrentIndex: z$1.ZodNumber;
57
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
58
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
59
- groups: z$1.ZodObject<{
60
- "24h": z$1.ZodObject<{
61
- volumeUsd: z$1.ZodNumber;
62
- feesUsd: z$1.ZodNumber;
63
- priceChange: z$1.ZodNumber;
64
- }, z$1.core.$strip>;
65
- }, z$1.core.$strip>;
66
- }, z$1.core.$strip>>>;
67
- }, z$1.core.$strip>;
68
-
69
- declare const Market$1: z.ZodObject<{
70
- address: z.ZodString;
71
- addressLookupTable: z.ZodString;
72
- maxLeverage: z.ZodNumber;
73
- maxSwapSlippage: z.ZodNumber;
74
- protocolFee: z.ZodNumber;
75
- protocolFeeOnCollateral: z.ZodNumber;
76
- liquidationFee: z.ZodNumber;
77
- liquidationThreshold: z.ZodNumber;
78
- oraclePriceDeviationThreshold: z.ZodNumber;
79
- rebalanceProtocolFee: z.ZodNumber;
80
- borrowedFundsA: z.ZodObject<{
81
- amount: z.ZodCoercedBigInt<unknown>;
82
- usd: z.ZodNumber;
83
- }, z.core.$strip>;
84
- borrowedFundsB: z.ZodObject<{
85
- amount: z.ZodCoercedBigInt<unknown>;
86
- usd: z.ZodNumber;
87
- }, z.core.$strip>;
88
- borrowLimitA: z.ZodObject<{
89
- amount: z.ZodCoercedBigInt<unknown>;
90
- usd: z.ZodNumber;
91
- }, z.core.$strip>;
92
- borrowLimitB: z.ZodObject<{
93
- amount: z.ZodCoercedBigInt<unknown>;
94
- usd: z.ZodNumber;
95
- }, z.core.$strip>;
96
- maxSpotPositionSizeA: z.ZodObject<{
97
- amount: z.ZodCoercedBigInt<unknown>;
98
- usd: z.ZodNumber;
99
- }, z.core.$strip>;
100
- maxSpotPositionSizeB: z.ZodObject<{
101
- amount: z.ZodCoercedBigInt<unknown>;
102
- usd: z.ZodNumber;
103
- }, z.core.$strip>;
104
- pool: z.ZodObject<{
105
- address: z.ZodString;
106
- provider: z.ZodEnum<{
107
- orca: "orca";
108
- fusion: "fusion";
109
- }>;
110
- mintA: z.ZodObject<{
111
- address: z.ZodString;
112
- symbol: z.ZodString;
113
- name: z.ZodString;
114
- logo: z.ZodString;
115
- decimals: z.ZodNumber;
116
- }, z.core.$strip>;
117
- mintB: z.ZodObject<{
118
- address: z.ZodString;
119
- symbol: z.ZodString;
120
- name: z.ZodString;
121
- logo: z.ZodString;
122
- decimals: z.ZodNumber;
123
- }, z.core.$strip>;
124
- tokenAVault: z.ZodString;
125
- tokenBVault: z.ZodString;
126
- tickSpacing: z.ZodNumber;
127
- feeRate: z.ZodNumber;
128
- protocolFeeRate: z.ZodNumber;
129
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
130
- liquidity: z.ZodCoercedBigInt<unknown>;
131
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
132
- price: z.ZodNumber;
133
- tickCurrentIndex: z.ZodNumber;
134
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
135
- tvlUsd: z.ZodCoercedNumber<unknown>;
136
- groups: z.ZodObject<{
137
- "24h": z.ZodObject<{
138
- volumeUsd: z.ZodNumber;
139
- feesUsd: z.ZodNumber;
140
- priceChange: z.ZodNumber;
141
- }, z.core.$strip>;
142
- }, z.core.$strip>;
143
- }, z.core.$strip>>>;
144
- }, z.core.$strip>;
145
- disabled: z.ZodBoolean;
146
- createdAt: z.ZodCoercedDate<unknown>;
147
- }, z.core.$strip>;
148
-
149
- declare const LimitOrderState: {
150
- readonly OPEN: "open";
151
- readonly PARTIALLY_FILLED: "partially_filled";
152
- readonly FILLED: "filled";
153
- readonly COMPLETE: "complete";
154
- readonly CANCELLED: "cancelled";
155
- };
156
- declare const LimitOrderStateSchema: z.ZodEnum<{
157
- open: "open";
158
- partially_filled: "partially_filled";
159
- filled: "filled";
160
- complete: "complete";
161
- cancelled: "cancelled";
162
- }>;
163
- declare const LimitOrder$1: z.ZodObject<{
164
- address: z.ZodString;
165
- orderMint: z.ZodString;
166
- authority: z.ZodString;
167
- pool: z.ZodObject<{
168
- address: z.ZodString;
169
- provider: z.ZodEnum<{
170
- orca: "orca";
171
- fusion: "fusion";
172
- }>;
173
- mintA: z.ZodObject<{
174
- address: z.ZodString;
175
- symbol: z.ZodString;
176
- name: z.ZodString;
177
- logo: z.ZodString;
178
- decimals: z.ZodNumber;
179
- }, z.core.$strip>;
180
- mintB: z.ZodObject<{
181
- address: z.ZodString;
182
- symbol: z.ZodString;
183
- name: z.ZodString;
184
- logo: z.ZodString;
185
- decimals: z.ZodNumber;
186
- }, z.core.$strip>;
187
- tokenAVault: z.ZodString;
188
- tokenBVault: z.ZodString;
189
- tickSpacing: z.ZodNumber;
190
- feeRate: z.ZodNumber;
191
- protocolFeeRate: z.ZodNumber;
192
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
193
- liquidity: z.ZodCoercedBigInt<unknown>;
194
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
195
- price: z.ZodNumber;
196
- tickCurrentIndex: z.ZodNumber;
197
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
198
- tvlUsd: z.ZodCoercedNumber<unknown>;
199
- groups: z.ZodObject<{
200
- "24h": z.ZodObject<{
201
- volumeUsd: z.ZodNumber;
202
- feesUsd: z.ZodNumber;
203
- priceChange: z.ZodNumber;
204
- }, z.core.$strip>;
205
- }, z.core.$strip>;
206
- }, z.core.$strip>>>;
207
- }, z.core.$strip>;
208
- state: z.ZodEnum<{
209
- open: "open";
210
- partially_filled: "partially_filled";
211
- filled: "filled";
212
- complete: "complete";
213
- cancelled: "cancelled";
214
- }>;
215
- aToB: z.ZodBoolean;
216
- tickIndex: z.ZodNumber;
217
- fillRatio: z.ZodNumber;
218
- openTxSignature: z.ZodString;
219
- closeTxSignature: z.ZodNullable<z.ZodString>;
220
- amountIn: z.ZodObject<{
221
- amount: z.ZodCoercedBigInt<unknown>;
222
- usd: z.ZodNumber;
223
- }, z.core.$strip>;
224
- amountOut: z.ZodObject<{
225
- amount: z.ZodCoercedBigInt<unknown>;
226
- usd: z.ZodNumber;
227
- }, z.core.$strip>;
228
- openedAt: z.ZodCoercedDate<unknown>;
229
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
230
- }, z.core.$strip>;
231
-
232
- declare const LpPositionLimitOrderSwap: {
233
- readonly NO_SWAP: "no_swap";
234
- readonly SWAP_TO_TOKEN_A: "swap_to_token_a";
235
- readonly SWAP_TO_TOKEN_B: "swap_to_token_b";
236
- };
237
- declare const LpPositionAutoCompound: {
238
- readonly NO_AUTO_COMPOUND: "no_auto_compound";
239
- readonly AUTO_COMPOUND: "auto_compound";
240
- readonly AUTO_COMPOUND_WITH_LEVERAGE: "auto_compound_with_leverage";
241
- };
242
- declare const LpPositionRebalance: {
243
- readonly NO_REBALANCE: "no_rebalance";
244
- readonly AUTO_REBALANCE: "auto_rebalance";
245
- };
246
- declare const LpPositionsActionType: {
247
- readonly OPEN_POSITION: "open_position";
248
- readonly CLOSE_POSITION: "close_position";
249
- readonly INCREASE_LIQUIDITY: "increase_liquidity";
250
- readonly DECREASE_LIQUIDITY: "decrease_liquidity";
251
- readonly REPAY_DEBT: "repay_debt";
252
- readonly LIQUIDATE: "liquidate";
253
- readonly EXECUTE_LIMIT_ORDER: "execute_limit_order";
254
- readonly COLLECT_FEES: "collect_fees";
255
- readonly COLLECT_REWARDS: "collect_rewards";
256
- readonly COLLECT_AND_COMPOUND_FEES: "collect_and_compound_fees";
257
- readonly REBALANCE_POSITION: "rebalance_position";
258
- readonly SET_LIMIT_ORDERS: "set_limit_orders";
259
- readonly SET_FLAGS: "set_flags";
260
- readonly SET_REBALANCE_THRESHOLD: "set_rebalance_threshold";
261
- };
262
- declare const LpPositionLimitOrderSwapSchema: z$1.ZodEnum<{
263
- [x: string]: string;
264
- }>;
265
- declare const LpPositionAutoCompoundSchema: z$1.ZodEnum<{
266
- [x: string]: string;
267
- }>;
268
- declare const LpPositionRebalanceSchema: z$1.ZodEnum<{
269
- [x: string]: string;
270
- }>;
271
- declare const LpPositionsActionTypeSchema: z$1.ZodEnum<{
272
- [x: string]: string;
273
- }>;
274
- declare const TunaPositionState: {
275
- readonly OPEN: "open";
276
- readonly LIQUIDATED: "liquidated";
277
- readonly CLOSED_BY_LIMIT_ORDER: "closed_by_limit_order";
278
- readonly CLOSED: "closed";
279
- };
280
- declare const TunaPositionStateSchema: z$1.ZodEnum<{
281
- open: "open";
282
- liquidated: "liquidated";
283
- closed_by_limit_order: "closed_by_limit_order";
284
- closed: "closed";
285
- }>;
286
- declare const TunaLpPositionAutoCompounding: {
287
- readonly WITH_LEVERAGE: "with_leverage";
288
- readonly WITHOUT_LEVERAGE: "without_leverage";
289
- };
290
- declare const TunaLpPositionAutoCompoundingSchema: z$1.ZodEnum<{
291
- [x: string]: string;
292
- }>;
293
- declare const TunaPositionTokenPnlSchema: z$1.ZodObject<{
294
- amount: z$1.ZodCoercedBigInt<unknown>;
295
- bps: z$1.ZodNumber;
296
- }, z$1.core.$strip>;
297
- declare const TunaLpPositionFlagsSchema: z$1.ZodObject<{
298
- lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
299
- [x: string]: string;
300
- }>>;
301
- upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
302
- [x: string]: string;
303
- }>>;
304
- autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
305
- [x: string]: string;
306
- }>>;
307
- autoRebalancing: z$1.ZodBoolean;
308
- }, z$1.core.$strip>;
309
- declare const TunaLpPositionDtoSchema: z$1.ZodObject<{
310
- address: z$1.ZodString;
311
- authority: z$1.ZodString;
312
- version: z$1.ZodNumber;
313
- state: z$1.ZodEnum<{
314
- open: "open";
315
- liquidated: "liquidated";
316
- closed_by_limit_order: "closed_by_limit_order";
317
- closed: "closed";
318
- }>;
319
- positionMint: z$1.ZodString;
320
- liquidity: z$1.ZodCoercedBigInt<unknown>;
321
- tickLowerIndex: z$1.ZodNumber;
322
- tickUpperIndex: z$1.ZodNumber;
323
- lowerLimitOrderPrice: z$1.ZodNumber;
324
- upperLimitOrderPrice: z$1.ZodNumber;
325
- entryPrice: z$1.ZodNumber;
326
- flags: z$1.ZodObject<{
327
- lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
328
- [x: string]: string;
329
- }>>;
330
- upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
331
- [x: string]: string;
332
- }>>;
333
- autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
334
- [x: string]: string;
335
- }>>;
336
- autoRebalancing: z$1.ZodBoolean;
337
- }, z$1.core.$strip>;
338
- pool: z$1.ZodObject<{
339
- address: z$1.ZodString;
340
- provider: z$1.ZodEnum<{
341
- orca: "orca";
342
- fusion: "fusion";
343
- }>;
344
- mintA: z$1.ZodObject<{
345
- address: z$1.ZodString;
346
- symbol: z$1.ZodString;
347
- name: z$1.ZodString;
348
- logo: z$1.ZodString;
349
- decimals: z$1.ZodNumber;
350
- }, z$1.core.$strip>;
351
- mintB: z$1.ZodObject<{
352
- address: z$1.ZodString;
353
- symbol: z$1.ZodString;
354
- name: z$1.ZodString;
355
- logo: z$1.ZodString;
356
- decimals: z$1.ZodNumber;
357
- }, z$1.core.$strip>;
358
- tokenAVault: z$1.ZodString;
359
- tokenBVault: z$1.ZodString;
360
- tickSpacing: z$1.ZodNumber;
361
- feeRate: z$1.ZodNumber;
362
- protocolFeeRate: z$1.ZodNumber;
363
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
364
- liquidity: z$1.ZodCoercedBigInt<unknown>;
365
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
366
- price: z$1.ZodNumber;
367
- tickCurrentIndex: z$1.ZodNumber;
368
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
369
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
370
- groups: z$1.ZodObject<{
371
- "24h": z$1.ZodObject<{
372
- volumeUsd: z$1.ZodNumber;
373
- feesUsd: z$1.ZodNumber;
374
- priceChange: z$1.ZodNumber;
375
- }, z$1.core.$strip>;
376
- }, z$1.core.$strip>;
377
- }, z$1.core.$strip>>>;
378
- }, z$1.core.$strip>;
379
- marketMaker: z$1.ZodEnum<{
380
- orca: "orca";
381
- fusion: "fusion";
382
- }>;
383
- depositedCollateralA: z$1.ZodObject<{
384
- amount: z$1.ZodCoercedBigInt<unknown>;
385
- usd: z$1.ZodNumber;
386
- }, z$1.core.$strip>;
387
- depositedCollateralB: z$1.ZodObject<{
388
- amount: z$1.ZodCoercedBigInt<unknown>;
389
- usd: z$1.ZodNumber;
390
- }, z$1.core.$strip>;
391
- leverage: z$1.ZodNumber;
392
- maxLeverage: z$1.ZodNumber;
393
- liquidationPriceLower: z$1.ZodNumber;
394
- liquidationPriceUpper: z$1.ZodNumber;
395
- initialDebtA: z$1.ZodObject<{
396
- amount: z$1.ZodCoercedBigInt<unknown>;
397
- usd: z$1.ZodNumber;
398
- }, z$1.core.$strip>;
399
- initialDebtB: z$1.ZodObject<{
400
- amount: z$1.ZodCoercedBigInt<unknown>;
401
- usd: z$1.ZodNumber;
402
- }, z$1.core.$strip>;
403
- currentDebtA: z$1.ZodObject<{
404
- amount: z$1.ZodCoercedBigInt<unknown>;
405
- usd: z$1.ZodNumber;
406
- }, z$1.core.$strip>;
407
- currentDebtB: z$1.ZodObject<{
408
- amount: z$1.ZodCoercedBigInt<unknown>;
409
- usd: z$1.ZodNumber;
410
- }, z$1.core.$strip>;
411
- leftoversA: z$1.ZodObject<{
412
- amount: z$1.ZodCoercedBigInt<unknown>;
413
- usd: z$1.ZodNumber;
414
- }, z$1.core.$strip>;
415
- leftoversB: z$1.ZodObject<{
416
- amount: z$1.ZodCoercedBigInt<unknown>;
417
- usd: z$1.ZodNumber;
418
- }, z$1.core.$strip>;
419
- yieldA: z$1.ZodObject<{
420
- amount: z$1.ZodCoercedBigInt<unknown>;
421
- usd: z$1.ZodNumber;
422
- }, z$1.core.$strip>;
423
- yieldB: z$1.ZodObject<{
424
- amount: z$1.ZodCoercedBigInt<unknown>;
425
- usd: z$1.ZodNumber;
426
- }, z$1.core.$strip>;
427
- compoundedYieldA: z$1.ZodObject<{
428
- amount: z$1.ZodCoercedBigInt<unknown>;
429
- usd: z$1.ZodNumber;
430
- }, z$1.core.$strip>;
431
- compoundedYieldB: z$1.ZodObject<{
432
- amount: z$1.ZodCoercedBigInt<unknown>;
433
- usd: z$1.ZodNumber;
434
- }, z$1.core.$strip>;
435
- totalA: z$1.ZodObject<{
436
- amount: z$1.ZodCoercedBigInt<unknown>;
437
- usd: z$1.ZodNumber;
438
- }, z$1.core.$strip>;
439
- totalB: z$1.ZodObject<{
440
- amount: z$1.ZodCoercedBigInt<unknown>;
441
- usd: z$1.ZodNumber;
442
- }, z$1.core.$strip>;
443
- pnlA: z$1.ZodObject<{
444
- amount: z$1.ZodCoercedBigInt<unknown>;
445
- rate: z$1.ZodNumber;
446
- }, z$1.core.$strip>;
447
- pnlB: z$1.ZodObject<{
448
- amount: z$1.ZodCoercedBigInt<unknown>;
449
- rate: z$1.ZodNumber;
450
- }, z$1.core.$strip>;
451
- pnlUsd: z$1.ZodObject<{
452
- amount: z$1.ZodNumber;
453
- rate: z$1.ZodNumber;
454
- }, z$1.core.$strip>;
455
- openedAt: z$1.ZodCoercedDate<unknown>;
456
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
457
- }, z$1.core.$strip>;
458
- declare const TunaLpPositionHistorical: z$1.ZodObject<{
459
- positionAddress: z$1.ZodString;
460
- authority: z$1.ZodString;
461
- pool: z$1.ZodString;
462
- state: z$1.ZodEnum<{
463
- open: "open";
464
- liquidated: "liquidated";
465
- closed_by_limit_order: "closed_by_limit_order";
466
- closed: "closed";
467
- }>;
468
- lowerPrice: z$1.ZodNumber;
469
- upperPrice: z$1.ZodNumber;
470
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
471
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
472
- marketMaker: z$1.ZodEnum<{
473
- orca: "orca";
474
- fusion: "fusion";
475
- }>;
476
- openedAt: z$1.ZodCoercedDate<unknown>;
477
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
478
- totalValueUsd: z$1.ZodNumber;
479
- leverage: z$1.ZodNumber;
480
- initialLeverage: z$1.ZodNumber;
481
- totalDepositUsd: z$1.ZodNumber;
482
- totalWithdrawnUsd: z$1.ZodNumber;
483
- feesSumUsd: z$1.ZodNumber;
484
- closedPnlSumUsd: z$1.ZodNumber;
485
- entryPrice: z$1.ZodNumber;
486
- exitPrice: z$1.ZodNullable<z$1.ZodNumber>;
487
- }, z$1.core.$strip>;
488
- declare const TunaPositionLegacy: z$1.ZodObject<{
489
- address: z$1.ZodString;
490
- authority: z$1.ZodString;
491
- version: z$1.ZodNumber;
492
- state: z$1.ZodEnum<{
493
- open: "open";
494
- liquidated: "liquidated";
495
- closed_by_limit_order: "closed_by_limit_order";
496
- closed: "closed";
497
- }>;
498
- positionMint: z$1.ZodString;
499
- liquidity: z$1.ZodCoercedBigInt<unknown>;
500
- tickLowerIndex: z$1.ZodNumber;
501
- tickUpperIndex: z$1.ZodNumber;
502
- entrySqrtPrice: z$1.ZodCoercedBigInt<unknown>;
503
- lowerLimitOrderSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
504
- upperLimitOrderSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
505
- flags: z$1.ZodNumber;
506
- pool: z$1.ZodString;
507
- poolSqrtPrice: z$1.ZodCoercedBigInt<unknown>;
508
- depositedCollateralA: z$1.ZodObject<{
509
- amount: z$1.ZodCoercedBigInt<unknown>;
510
- }, z$1.core.$strip>;
511
- depositedCollateralB: z$1.ZodObject<{
512
- amount: z$1.ZodCoercedBigInt<unknown>;
513
- }, z$1.core.$strip>;
514
- depositedCollateralUsd: z$1.ZodObject<{
515
- amount: z$1.ZodNumber;
516
- }, z$1.core.$strip>;
517
- loanFundsA: z$1.ZodObject<{
518
- amount: z$1.ZodCoercedBigInt<unknown>;
519
- usd: z$1.ZodNumber;
520
- }, z$1.core.$strip>;
521
- loanFundsB: z$1.ZodObject<{
522
- amount: z$1.ZodCoercedBigInt<unknown>;
523
- usd: z$1.ZodNumber;
524
- }, z$1.core.$strip>;
525
- currentLoanA: z$1.ZodObject<{
526
- amount: z$1.ZodCoercedBigInt<unknown>;
527
- usd: z$1.ZodNumber;
528
- }, z$1.core.$strip>;
529
- currentLoanB: z$1.ZodObject<{
530
- amount: z$1.ZodCoercedBigInt<unknown>;
531
- usd: z$1.ZodNumber;
532
- }, z$1.core.$strip>;
533
- leftoversA: z$1.ZodObject<{
534
- amount: z$1.ZodCoercedBigInt<unknown>;
535
- usd: z$1.ZodNumber;
536
- }, z$1.core.$strip>;
537
- leftoversB: z$1.ZodObject<{
538
- amount: z$1.ZodCoercedBigInt<unknown>;
539
- usd: z$1.ZodNumber;
540
- }, z$1.core.$strip>;
541
- yieldA: z$1.ZodObject<{
542
- amount: z$1.ZodCoercedBigInt<unknown>;
543
- usd: z$1.ZodNumber;
544
- }, z$1.core.$strip>;
545
- yieldB: z$1.ZodObject<{
546
- amount: z$1.ZodCoercedBigInt<unknown>;
547
- usd: z$1.ZodNumber;
548
- }, z$1.core.$strip>;
549
- compoundedYieldA: z$1.ZodObject<{
550
- amount: z$1.ZodCoercedBigInt<unknown>;
551
- usd: z$1.ZodNumber;
552
- }, z$1.core.$strip>;
553
- compoundedYieldB: z$1.ZodObject<{
554
- amount: z$1.ZodCoercedBigInt<unknown>;
555
- usd: z$1.ZodNumber;
556
- }, z$1.core.$strip>;
557
- totalA: z$1.ZodObject<{
558
- amount: z$1.ZodCoercedBigInt<unknown>;
559
- usd: z$1.ZodNumber;
560
- }, z$1.core.$strip>;
561
- totalB: z$1.ZodObject<{
562
- amount: z$1.ZodCoercedBigInt<unknown>;
563
- usd: z$1.ZodNumber;
564
- }, z$1.core.$strip>;
565
- pnlA: z$1.ZodObject<{
566
- amount: z$1.ZodCoercedBigInt<unknown>;
567
- rate: z$1.ZodNumber;
568
- }, z$1.core.$strip>;
569
- pnlB: z$1.ZodObject<{
570
- amount: z$1.ZodCoercedBigInt<unknown>;
571
- rate: z$1.ZodNumber;
572
- }, z$1.core.$strip>;
573
- pnlUsd: z$1.ZodObject<{
574
- amount: z$1.ZodNumber;
575
- rate: z$1.ZodNumber;
576
- }, z$1.core.$strip>;
577
- openedAt: z$1.ZodCoercedDate<unknown>;
578
- updatedAtSlot: z$1.ZodCoercedBigInt<unknown>;
579
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
580
- }, z$1.core.$strip>;
581
- declare const TunaLpPositionParameters: z$1.ZodObject<{
582
- lowerPrice: z$1.ZodNumber;
583
- upperPrice: z$1.ZodNumber;
584
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
585
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
586
- lowerLimitOrderSwap: z$1.ZodEnum<{
587
- [x: string]: string;
588
- }>;
589
- upperLimitOrderSwap: z$1.ZodEnum<{
590
- [x: string]: string;
591
- }>;
592
- autoCompound: z$1.ZodEnum<{
593
- [x: string]: string;
594
- }>;
595
- rebalance: z$1.ZodEnum<{
596
- [x: string]: string;
597
- }>;
598
- rebalanceThresholdTicks: z$1.ZodNumber;
599
- }, z$1.core.$strip>;
600
- declare const TunaLpPositionValue: z$1.ZodObject<{
601
- totalValueA: z$1.ZodNumber;
602
- totalValueB: z$1.ZodNumber;
603
- totalValueUsd: z$1.ZodNumber;
604
- loanFundsA: z$1.ZodNumber;
605
- loanFundsB: z$1.ZodNumber;
606
- loanFundsUsd: z$1.ZodNumber;
607
- leverage: z$1.ZodNumber;
608
- }, z$1.core.$strip>;
609
- declare const TunaLpPositionTransfer: z$1.ZodObject<{
610
- amountA: z$1.ZodNumber;
611
- amountB: z$1.ZodNumber;
612
- amountUsd: z$1.ZodNumber;
613
- }, z$1.core.$strip>;
614
- declare const TunaLpPositionTokenPrices: z$1.ZodObject<{
615
- tokenPriceA: z$1.ZodNumber;
616
- tokenPriceB: z$1.ZodNumber;
617
- }, z$1.core.$strip>;
618
- declare const TunaLpPositionActionOpen: z$1.ZodObject<{
619
- parameters: z$1.ZodObject<{
620
- lowerPrice: z$1.ZodNumber;
621
- upperPrice: z$1.ZodNumber;
622
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
623
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
624
- lowerLimitOrderSwap: z$1.ZodEnum<{
625
- [x: string]: string;
626
- }>;
627
- upperLimitOrderSwap: z$1.ZodEnum<{
628
- [x: string]: string;
629
- }>;
630
- autoCompound: z$1.ZodEnum<{
631
- [x: string]: string;
632
- }>;
633
- rebalance: z$1.ZodEnum<{
634
- [x: string]: string;
635
- }>;
636
- rebalanceThresholdTicks: z$1.ZodNumber;
637
- }, z$1.core.$strip>;
638
- }, z$1.core.$strip>;
639
- declare const TunaLpPositionActionClose: z$1.ZodObject<{
640
- toOwner: z$1.ZodNullable<z$1.ZodObject<{
641
- amountA: z$1.ZodNumber;
642
- amountB: z$1.ZodNumber;
643
- amountUsd: z$1.ZodNumber;
644
- }, z$1.core.$strip>>;
645
- prices: z$1.ZodNullable<z$1.ZodObject<{
646
- tokenPriceA: z$1.ZodNumber;
647
- tokenPriceB: z$1.ZodNumber;
648
- }, z$1.core.$strip>>;
649
- }, z$1.core.$strip>;
650
- declare const TunaLpPositionActionIncreaseLiquidity: z$1.ZodObject<{
651
- fromPosition: z$1.ZodNullable<z$1.ZodObject<{
652
- totalValueA: z$1.ZodNumber;
653
- totalValueB: z$1.ZodNumber;
654
- totalValueUsd: z$1.ZodNumber;
655
- loanFundsA: z$1.ZodNumber;
656
- loanFundsB: z$1.ZodNumber;
657
- loanFundsUsd: z$1.ZodNumber;
658
- leverage: z$1.ZodNumber;
659
- }, z$1.core.$strip>>;
660
- toPosition: z$1.ZodObject<{
661
- totalValueA: z$1.ZodNumber;
662
- totalValueB: z$1.ZodNumber;
663
- totalValueUsd: z$1.ZodNumber;
664
- loanFundsA: z$1.ZodNumber;
665
- loanFundsB: z$1.ZodNumber;
666
- loanFundsUsd: z$1.ZodNumber;
667
- leverage: z$1.ZodNumber;
668
- }, z$1.core.$strip>;
669
- fromOwner: z$1.ZodObject<{
670
- amountA: z$1.ZodNumber;
671
- amountB: z$1.ZodNumber;
672
- amountUsd: z$1.ZodNumber;
673
- }, z$1.core.$strip>;
674
- fromLending: z$1.ZodObject<{
675
- amountA: z$1.ZodNumber;
676
- amountB: z$1.ZodNumber;
677
- amountUsd: z$1.ZodNumber;
678
- }, z$1.core.$strip>;
679
- protocolFees: z$1.ZodObject<{
680
- amountA: z$1.ZodNumber;
681
- amountB: z$1.ZodNumber;
682
- amountUsd: z$1.ZodNumber;
683
- }, z$1.core.$strip>;
684
- prices: z$1.ZodObject<{
685
- tokenPriceA: z$1.ZodNumber;
686
- tokenPriceB: z$1.ZodNumber;
687
- }, z$1.core.$strip>;
688
- }, z$1.core.$strip>;
689
- declare const TunaLpPositionActionDecreaseLiquidity: z$1.ZodObject<{
690
- withdrawPercent: z$1.ZodNumber;
691
- closedPnlUsd: z$1.ZodNumber;
692
- fromPosition: z$1.ZodObject<{
693
- totalValueA: z$1.ZodNumber;
694
- totalValueB: z$1.ZodNumber;
695
- totalValueUsd: z$1.ZodNumber;
696
- loanFundsA: z$1.ZodNumber;
697
- loanFundsB: z$1.ZodNumber;
698
- loanFundsUsd: z$1.ZodNumber;
699
- leverage: z$1.ZodNumber;
700
- }, z$1.core.$strip>;
701
- toPosition: z$1.ZodNullable<z$1.ZodObject<{
702
- totalValueA: z$1.ZodNumber;
703
- totalValueB: z$1.ZodNumber;
704
- totalValueUsd: z$1.ZodNumber;
705
- loanFundsA: z$1.ZodNumber;
706
- loanFundsB: z$1.ZodNumber;
707
- loanFundsUsd: z$1.ZodNumber;
708
- leverage: z$1.ZodNumber;
709
- }, z$1.core.$strip>>;
710
- toOwner: z$1.ZodObject<{
711
- amountA: z$1.ZodNumber;
712
- amountB: z$1.ZodNumber;
713
- amountUsd: z$1.ZodNumber;
714
- }, z$1.core.$strip>;
715
- toLending: z$1.ZodObject<{
716
- amountA: z$1.ZodNumber;
717
- amountB: z$1.ZodNumber;
718
- amountUsd: z$1.ZodNumber;
719
- }, z$1.core.$strip>;
720
- collectedFees: z$1.ZodObject<{
721
- amountA: z$1.ZodNumber;
722
- amountB: z$1.ZodNumber;
723
- amountUsd: z$1.ZodNumber;
724
- }, z$1.core.$strip>;
725
- prices: z$1.ZodObject<{
726
- tokenPriceA: z$1.ZodNumber;
727
- tokenPriceB: z$1.ZodNumber;
728
- }, z$1.core.$strip>;
729
- }, z$1.core.$strip>;
730
- declare const TunaLpPositionActionLiquidate: z$1.ZodObject<{
731
- withdrawPercent: z$1.ZodNumber;
732
- fromPosition: z$1.ZodObject<{
733
- totalValueA: z$1.ZodNumber;
734
- totalValueB: z$1.ZodNumber;
735
- totalValueUsd: z$1.ZodNumber;
736
- loanFundsA: z$1.ZodNumber;
737
- loanFundsB: z$1.ZodNumber;
738
- loanFundsUsd: z$1.ZodNumber;
739
- leverage: z$1.ZodNumber;
740
- }, z$1.core.$strip>;
741
- toLending: z$1.ZodObject<{
742
- amountA: z$1.ZodNumber;
743
- amountB: z$1.ZodNumber;
744
- amountUsd: z$1.ZodNumber;
745
- }, z$1.core.$strip>;
746
- protocolFees: z$1.ZodObject<{
747
- amountA: z$1.ZodNumber;
748
- amountB: z$1.ZodNumber;
749
- amountUsd: z$1.ZodNumber;
750
- }, z$1.core.$strip>;
751
- prices: z$1.ZodObject<{
752
- tokenPriceA: z$1.ZodNumber;
753
- tokenPriceB: z$1.ZodNumber;
754
- }, z$1.core.$strip>;
755
- }, z$1.core.$strip>;
756
- declare const TunaLpPositionActionRepayDebt: z$1.ZodObject<{
757
- fromPosition: z$1.ZodObject<{
758
- totalValueA: z$1.ZodNumber;
759
- totalValueB: z$1.ZodNumber;
760
- totalValueUsd: z$1.ZodNumber;
761
- loanFundsA: z$1.ZodNumber;
762
- loanFundsB: z$1.ZodNumber;
763
- loanFundsUsd: z$1.ZodNumber;
764
- leverage: z$1.ZodNumber;
765
- }, z$1.core.$strip>;
766
- toPosition: z$1.ZodObject<{
767
- totalValueA: z$1.ZodNumber;
768
- totalValueB: z$1.ZodNumber;
769
- totalValueUsd: z$1.ZodNumber;
770
- loanFundsA: z$1.ZodNumber;
771
- loanFundsB: z$1.ZodNumber;
772
- loanFundsUsd: z$1.ZodNumber;
773
- leverage: z$1.ZodNumber;
774
- }, z$1.core.$strip>;
775
- fromOwner: z$1.ZodObject<{
776
- amountA: z$1.ZodNumber;
777
- amountB: z$1.ZodNumber;
778
- amountUsd: z$1.ZodNumber;
779
- }, z$1.core.$strip>;
780
- toLending: z$1.ZodObject<{
781
- amountA: z$1.ZodNumber;
782
- amountB: z$1.ZodNumber;
783
- amountUsd: z$1.ZodNumber;
784
- }, z$1.core.$strip>;
785
- prices: z$1.ZodObject<{
786
- tokenPriceA: z$1.ZodNumber;
787
- tokenPriceB: z$1.ZodNumber;
788
- }, z$1.core.$strip>;
789
- }, z$1.core.$strip>;
790
- declare const TunaLpPositionActionCollectFees: z$1.ZodObject<{
791
- closedPnlUsd: z$1.ZodNumber;
792
- position: z$1.ZodObject<{
793
- totalValueA: z$1.ZodNumber;
794
- totalValueB: z$1.ZodNumber;
795
- totalValueUsd: z$1.ZodNumber;
796
- loanFundsA: z$1.ZodNumber;
797
- loanFundsB: z$1.ZodNumber;
798
- loanFundsUsd: z$1.ZodNumber;
799
- leverage: z$1.ZodNumber;
800
- }, z$1.core.$strip>;
801
- collectedFees: z$1.ZodObject<{
802
- amountA: z$1.ZodNumber;
803
- amountB: z$1.ZodNumber;
804
- amountUsd: z$1.ZodNumber;
805
- }, z$1.core.$strip>;
806
- toOwner: z$1.ZodObject<{
807
- amountA: z$1.ZodNumber;
808
- amountB: z$1.ZodNumber;
809
- amountUsd: z$1.ZodNumber;
810
- }, z$1.core.$strip>;
811
- prices: z$1.ZodObject<{
812
- tokenPriceA: z$1.ZodNumber;
813
- tokenPriceB: z$1.ZodNumber;
814
- }, z$1.core.$strip>;
815
- }, z$1.core.$strip>;
816
- declare const TunaLpPositionActionCollectAndCompoundFees: z$1.ZodObject<{
817
- fromPosition: z$1.ZodObject<{
818
- totalValueA: z$1.ZodNumber;
819
- totalValueB: z$1.ZodNumber;
820
- totalValueUsd: z$1.ZodNumber;
821
- loanFundsA: z$1.ZodNumber;
822
- loanFundsB: z$1.ZodNumber;
823
- loanFundsUsd: z$1.ZodNumber;
824
- leverage: z$1.ZodNumber;
825
- }, z$1.core.$strip>;
826
- toPosition: z$1.ZodObject<{
827
- totalValueA: z$1.ZodNumber;
828
- totalValueB: z$1.ZodNumber;
829
- totalValueUsd: z$1.ZodNumber;
830
- loanFundsA: z$1.ZodNumber;
831
- loanFundsB: z$1.ZodNumber;
832
- loanFundsUsd: z$1.ZodNumber;
833
- leverage: z$1.ZodNumber;
834
- }, z$1.core.$strip>;
835
- collectedFees: z$1.ZodObject<{
836
- amountA: z$1.ZodNumber;
837
- amountB: z$1.ZodNumber;
838
- amountUsd: z$1.ZodNumber;
839
- }, z$1.core.$strip>;
840
- fromLending: z$1.ZodObject<{
841
- amountA: z$1.ZodNumber;
842
- amountB: z$1.ZodNumber;
843
- amountUsd: z$1.ZodNumber;
844
- }, z$1.core.$strip>;
845
- protocolFees: z$1.ZodObject<{
846
- amountA: z$1.ZodNumber;
847
- amountB: z$1.ZodNumber;
848
- amountUsd: z$1.ZodNumber;
849
- }, z$1.core.$strip>;
850
- prices: z$1.ZodObject<{
851
- tokenPriceA: z$1.ZodNumber;
852
- tokenPriceB: z$1.ZodNumber;
853
- }, z$1.core.$strip>;
854
- }, z$1.core.$strip>;
855
- declare const TunaLpPositionActionParametersUpdate: z$1.ZodObject<{
856
- fromParameters: z$1.ZodObject<{
857
- lowerPrice: z$1.ZodNumber;
858
- upperPrice: z$1.ZodNumber;
859
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
860
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
861
- lowerLimitOrderSwap: z$1.ZodEnum<{
862
- [x: string]: string;
863
- }>;
864
- upperLimitOrderSwap: z$1.ZodEnum<{
865
- [x: string]: string;
866
- }>;
867
- autoCompound: z$1.ZodEnum<{
868
- [x: string]: string;
869
- }>;
870
- rebalance: z$1.ZodEnum<{
871
- [x: string]: string;
872
- }>;
873
- rebalanceThresholdTicks: z$1.ZodNumber;
874
- }, z$1.core.$strip>;
875
- toParameters: z$1.ZodObject<{
876
- lowerPrice: z$1.ZodNumber;
877
- upperPrice: z$1.ZodNumber;
878
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
879
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
880
- lowerLimitOrderSwap: z$1.ZodEnum<{
881
- [x: string]: string;
882
- }>;
883
- upperLimitOrderSwap: z$1.ZodEnum<{
884
- [x: string]: string;
885
- }>;
886
- autoCompound: z$1.ZodEnum<{
887
- [x: string]: string;
888
- }>;
889
- rebalance: z$1.ZodEnum<{
890
- [x: string]: string;
891
- }>;
892
- rebalanceThresholdTicks: z$1.ZodNumber;
893
- }, z$1.core.$strip>;
894
- }, z$1.core.$strip>;
895
- declare const TunaLpPositionAction$1: z$1.ZodObject<{
896
- action: z$1.ZodEnum<{
897
- [x: string]: string;
898
- }>;
899
- txSignature: z$1.ZodString;
900
- txTimestamp: z$1.ZodCoercedDate<unknown>;
901
- data: z$1.ZodObject<{
902
- fromPosition: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
903
- totalValueA: z$1.ZodNumber;
904
- totalValueB: z$1.ZodNumber;
905
- totalValueUsd: z$1.ZodNumber;
906
- loanFundsA: z$1.ZodNumber;
907
- loanFundsB: z$1.ZodNumber;
908
- loanFundsUsd: z$1.ZodNumber;
909
- leverage: z$1.ZodNumber;
910
- }, z$1.core.$strip>>>;
911
- toPosition: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
912
- totalValueA: z$1.ZodNumber;
913
- totalValueB: z$1.ZodNumber;
914
- totalValueUsd: z$1.ZodNumber;
915
- loanFundsA: z$1.ZodNumber;
916
- loanFundsB: z$1.ZodNumber;
917
- loanFundsUsd: z$1.ZodNumber;
918
- leverage: z$1.ZodNumber;
919
- }, z$1.core.$strip>>>;
920
- position: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
921
- totalValueA: z$1.ZodNumber;
922
- totalValueB: z$1.ZodNumber;
923
- totalValueUsd: z$1.ZodNumber;
924
- loanFundsA: z$1.ZodNumber;
925
- loanFundsB: z$1.ZodNumber;
926
- loanFundsUsd: z$1.ZodNumber;
927
- leverage: z$1.ZodNumber;
928
- }, z$1.core.$strip>>>;
929
- fromOwner: z$1.ZodOptional<z$1.ZodObject<{
930
- amountA: z$1.ZodNumber;
931
- amountB: z$1.ZodNumber;
932
- amountUsd: z$1.ZodNumber;
933
- }, z$1.core.$strip>>;
934
- toOwner: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
935
- amountA: z$1.ZodNumber;
936
- amountB: z$1.ZodNumber;
937
- amountUsd: z$1.ZodNumber;
938
- }, z$1.core.$strip>>>;
939
- fromLending: z$1.ZodOptional<z$1.ZodObject<{
940
- amountA: z$1.ZodNumber;
941
- amountB: z$1.ZodNumber;
942
- amountUsd: z$1.ZodNumber;
943
- }, z$1.core.$strip>>;
944
- toLending: z$1.ZodOptional<z$1.ZodObject<{
945
- amountA: z$1.ZodNumber;
946
- amountB: z$1.ZodNumber;
947
- amountUsd: z$1.ZodNumber;
948
- }, z$1.core.$strip>>;
949
- collectedFees: z$1.ZodOptional<z$1.ZodObject<{
950
- amountA: z$1.ZodNumber;
951
- amountB: z$1.ZodNumber;
952
- amountUsd: z$1.ZodNumber;
953
- }, z$1.core.$strip>>;
954
- protocolFees: z$1.ZodOptional<z$1.ZodObject<{
955
- amountA: z$1.ZodNumber;
956
- amountB: z$1.ZodNumber;
957
- amountUsd: z$1.ZodNumber;
958
- }, z$1.core.$strip>>;
959
- prices: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodObject<{
960
- tokenPriceA: z$1.ZodNumber;
961
- tokenPriceB: z$1.ZodNumber;
962
- }, z$1.core.$strip>>>;
963
- parameters: z$1.ZodOptional<z$1.ZodObject<{
964
- lowerPrice: z$1.ZodNumber;
965
- upperPrice: z$1.ZodNumber;
966
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
967
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
968
- lowerLimitOrderSwap: z$1.ZodEnum<{
969
- [x: string]: string;
970
- }>;
971
- upperLimitOrderSwap: z$1.ZodEnum<{
972
- [x: string]: string;
973
- }>;
974
- autoCompound: z$1.ZodEnum<{
975
- [x: string]: string;
976
- }>;
977
- rebalance: z$1.ZodEnum<{
978
- [x: string]: string;
979
- }>;
980
- rebalanceThresholdTicks: z$1.ZodNumber;
981
- }, z$1.core.$strip>>;
982
- fromParameters: z$1.ZodOptional<z$1.ZodObject<{
983
- lowerPrice: z$1.ZodNumber;
984
- upperPrice: z$1.ZodNumber;
985
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
986
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
987
- lowerLimitOrderSwap: z$1.ZodEnum<{
988
- [x: string]: string;
989
- }>;
990
- upperLimitOrderSwap: z$1.ZodEnum<{
991
- [x: string]: string;
992
- }>;
993
- autoCompound: z$1.ZodEnum<{
994
- [x: string]: string;
995
- }>;
996
- rebalance: z$1.ZodEnum<{
997
- [x: string]: string;
998
- }>;
999
- rebalanceThresholdTicks: z$1.ZodNumber;
1000
- }, z$1.core.$strip>>;
1001
- toParameters: z$1.ZodOptional<z$1.ZodObject<{
1002
- lowerPrice: z$1.ZodNumber;
1003
- upperPrice: z$1.ZodNumber;
1004
- lowerLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
1005
- upperLimitOrder: z$1.ZodNullable<z$1.ZodNumber>;
1006
- lowerLimitOrderSwap: z$1.ZodEnum<{
1007
- [x: string]: string;
1008
- }>;
1009
- upperLimitOrderSwap: z$1.ZodEnum<{
1010
- [x: string]: string;
1011
- }>;
1012
- autoCompound: z$1.ZodEnum<{
1013
- [x: string]: string;
1014
- }>;
1015
- rebalance: z$1.ZodEnum<{
1016
- [x: string]: string;
1017
- }>;
1018
- rebalanceThresholdTicks: z$1.ZodNumber;
1019
- }, z$1.core.$strip>>;
1020
- withdrawPercent: z$1.ZodOptional<z$1.ZodNumber>;
1021
- closedPnlUsd: z$1.ZodOptional<z$1.ZodNumber>;
1022
- }, z$1.core.$strip>;
1023
- }, z$1.core.$strip>;
1024
-
1025
- declare const TunaSpotPositionState: {
1026
- readonly OPEN: "open";
1027
- readonly CLOSED: "closed";
1028
- };
1029
- declare const TunaSpotPositionStateSchema: z.ZodEnum<{
1030
- open: "open";
1031
- closed: "closed";
1032
- }>;
1033
- declare const TunaSpotPosition$1: z.ZodObject<{
1034
- address: z.ZodString;
1035
- authority: z.ZodString;
1036
- version: z.ZodNumber;
1037
- state: z.ZodEnum<{
1038
- open: "open";
1039
- closed: "closed";
1040
- }>;
1041
- lowerLimitOrderPrice: z.ZodNumber;
1042
- upperLimitOrderPrice: z.ZodNumber;
1043
- entryPrice: z.ZodNumber;
1044
- pool: z.ZodObject<{
1045
- address: z.ZodString;
1046
- provider: z.ZodEnum<{
1047
- orca: "orca";
1048
- fusion: "fusion";
1049
- }>;
1050
- mintA: z.ZodObject<{
1051
- address: z.ZodString;
1052
- symbol: z.ZodString;
1053
- name: z.ZodString;
1054
- logo: z.ZodString;
1055
- decimals: z.ZodNumber;
1056
- }, z.core.$strip>;
1057
- mintB: z.ZodObject<{
1058
- address: z.ZodString;
1059
- symbol: z.ZodString;
1060
- name: z.ZodString;
1061
- logo: z.ZodString;
1062
- decimals: z.ZodNumber;
1063
- }, z.core.$strip>;
1064
- tokenAVault: z.ZodString;
1065
- tokenBVault: z.ZodString;
1066
- tickSpacing: z.ZodNumber;
1067
- feeRate: z.ZodNumber;
1068
- protocolFeeRate: z.ZodNumber;
1069
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
1070
- liquidity: z.ZodCoercedBigInt<unknown>;
1071
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
1072
- price: z.ZodNumber;
1073
- tickCurrentIndex: z.ZodNumber;
1074
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1075
- tvlUsd: z.ZodCoercedNumber<unknown>;
1076
- groups: z.ZodObject<{
1077
- "24h": z.ZodObject<{
1078
- volumeUsd: z.ZodNumber;
1079
- feesUsd: z.ZodNumber;
1080
- priceChange: z.ZodNumber;
1081
- }, z.core.$strip>;
1082
- }, z.core.$strip>;
1083
- }, z.core.$strip>>>;
1084
- }, z.core.$strip>;
1085
- positionToken: z.ZodEnum<{
1086
- [x: string]: string;
1087
- }>;
1088
- collateralToken: z.ZodEnum<{
1089
- [x: string]: string;
1090
- }>;
1091
- marketMaker: z.ZodEnum<{
1092
- orca: "orca";
1093
- fusion: "fusion";
1094
- }>;
1095
- depositedCollateral: z.ZodObject<{
1096
- amount: z.ZodCoercedBigInt<unknown>;
1097
- usd: z.ZodNumber;
1098
- }, z.core.$strip>;
1099
- initialDebt: z.ZodObject<{
1100
- amount: z.ZodCoercedBigInt<unknown>;
1101
- usd: z.ZodNumber;
1102
- }, z.core.$strip>;
1103
- currentDebt: z.ZodObject<{
1104
- amount: z.ZodCoercedBigInt<unknown>;
1105
- usd: z.ZodNumber;
1106
- }, z.core.$strip>;
1107
- total: z.ZodObject<{
1108
- amount: z.ZodCoercedBigInt<unknown>;
1109
- usd: z.ZodNumber;
1110
- }, z.core.$strip>;
1111
- leverage: z.ZodNumber;
1112
- maxLeverage: z.ZodNumber;
1113
- liquidationPrice: z.ZodNumber;
1114
- pnlUsd: z.ZodObject<{
1115
- amount: z.ZodNumber;
1116
- rate: z.ZodNumber;
1117
- }, z.core.$strip>;
1118
- openedAt: z.ZodCoercedDate<unknown>;
1119
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1120
- }, z.core.$strip>;
1121
- declare const IncreaseSpotPositionQuote$1: z.ZodObject<{
1122
- collateralAmount: z.ZodCoercedBigInt<unknown>;
1123
- borrowAmount: z.ZodCoercedBigInt<unknown>;
1124
- estimatedAmount: z.ZodCoercedBigInt<unknown>;
1125
- swapInputAmount: z.ZodCoercedBigInt<unknown>;
1126
- minSwapOutputAmount: z.ZodCoercedBigInt<unknown>;
1127
- protocolFeeA: z.ZodCoercedBigInt<unknown>;
1128
- protocolFeeB: z.ZodCoercedBigInt<unknown>;
1129
- priceImpact: z.ZodNumber;
1130
- liquidationPrice: z.ZodNumber;
1131
- }, z.core.$strip>;
1132
- declare const DecreaseSpotPositionQuote$1: z.ZodObject<{
1133
- decreasePercent: z.ZodNumber;
1134
- requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
1135
- estimatedAmount: z.ZodCoercedBigInt<unknown>;
1136
- estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
1137
- priceImpact: z.ZodNumber;
1138
- liquidationPrice: z.ZodNumber;
1139
- }, z.core.$strip>;
1140
- declare const CloseSpotPositionQuote$1: z.ZodObject<{
1141
- decreasePercent: z.ZodNumber;
1142
- requiredSwapAmount: z.ZodCoercedBigInt<unknown>;
1143
- estimatedWithdrawnCollateral: z.ZodCoercedBigInt<unknown>;
1144
- priceImpact: z.ZodNumber;
1145
- }, z.core.$strip>;
1146
-
1147
- declare const TunaPositionPoolToken: {
1148
- readonly A: "a";
1149
- readonly B: "b";
1150
- };
1151
- declare const TunaPositionPoolTokenSchema: z$1.ZodEnum<{
1152
- [x: string]: string;
1153
- }>;
1154
-
1155
- declare const StateSnapshot$1: z$1.ZodObject<{
1156
- slot: z$1.ZodCoercedBigInt<unknown>;
1157
- blockTime: z$1.ZodCoercedDate<unknown>;
1158
- markets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1159
- address: z$1.ZodString;
1160
- addressLookupTable: z$1.ZodString;
1161
- maxLeverage: z$1.ZodNumber;
1162
- maxSwapSlippage: z$1.ZodNumber;
1163
- protocolFee: z$1.ZodNumber;
1164
- protocolFeeOnCollateral: z$1.ZodNumber;
1165
- liquidationFee: z$1.ZodNumber;
1166
- liquidationThreshold: z$1.ZodNumber;
1167
- oraclePriceDeviationThreshold: z$1.ZodNumber;
1168
- rebalanceProtocolFee: z$1.ZodNumber;
1169
- borrowedFundsA: z$1.ZodObject<{
1170
- amount: z$1.ZodCoercedBigInt<unknown>;
1171
- usd: z$1.ZodNumber;
1172
- }, z$1.core.$strip>;
1173
- borrowedFundsB: z$1.ZodObject<{
1174
- amount: z$1.ZodCoercedBigInt<unknown>;
1175
- usd: z$1.ZodNumber;
1176
- }, z$1.core.$strip>;
1177
- borrowLimitA: z$1.ZodObject<{
1178
- amount: z$1.ZodCoercedBigInt<unknown>;
1179
- usd: z$1.ZodNumber;
1180
- }, z$1.core.$strip>;
1181
- borrowLimitB: z$1.ZodObject<{
1182
- amount: z$1.ZodCoercedBigInt<unknown>;
1183
- usd: z$1.ZodNumber;
1184
- }, z$1.core.$strip>;
1185
- maxSpotPositionSizeA: z$1.ZodObject<{
1186
- amount: z$1.ZodCoercedBigInt<unknown>;
1187
- usd: z$1.ZodNumber;
1188
- }, z$1.core.$strip>;
1189
- maxSpotPositionSizeB: z$1.ZodObject<{
1190
- amount: z$1.ZodCoercedBigInt<unknown>;
1191
- usd: z$1.ZodNumber;
1192
- }, z$1.core.$strip>;
1193
- pool: z$1.ZodObject<{
1194
- address: z$1.ZodString;
1195
- provider: z$1.ZodEnum<{
1196
- orca: "orca";
1197
- fusion: "fusion";
1198
- }>;
1199
- mintA: z$1.ZodObject<{
1200
- address: z$1.ZodString;
1201
- symbol: z$1.ZodString;
1202
- name: z$1.ZodString;
1203
- logo: z$1.ZodString;
1204
- decimals: z$1.ZodNumber;
1205
- }, z$1.core.$strip>;
1206
- mintB: z$1.ZodObject<{
1207
- address: z$1.ZodString;
1208
- symbol: z$1.ZodString;
1209
- name: z$1.ZodString;
1210
- logo: z$1.ZodString;
1211
- decimals: z$1.ZodNumber;
1212
- }, z$1.core.$strip>;
1213
- tokenAVault: z$1.ZodString;
1214
- tokenBVault: z$1.ZodString;
1215
- tickSpacing: z$1.ZodNumber;
1216
- feeRate: z$1.ZodNumber;
1217
- protocolFeeRate: z$1.ZodNumber;
1218
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
1219
- liquidity: z$1.ZodCoercedBigInt<unknown>;
1220
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
1221
- price: z$1.ZodNumber;
1222
- tickCurrentIndex: z$1.ZodNumber;
1223
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1224
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
1225
- groups: z$1.ZodObject<{
1226
- "24h": z$1.ZodObject<{
1227
- volumeUsd: z$1.ZodNumber;
1228
- feesUsd: z$1.ZodNumber;
1229
- priceChange: z$1.ZodNumber;
1230
- }, z$1.core.$strip>;
1231
- }, z$1.core.$strip>;
1232
- }, z$1.core.$strip>>>;
1233
- }, z$1.core.$strip>;
1234
- disabled: z$1.ZodBoolean;
1235
- createdAt: z$1.ZodCoercedDate<unknown>;
1236
- }, z$1.core.$strip>>>;
1237
- tunaSpotPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1238
- address: z$1.ZodString;
1239
- authority: z$1.ZodString;
1240
- version: z$1.ZodNumber;
1241
- state: z$1.ZodEnum<{
1242
- open: "open";
1243
- closed: "closed";
1244
- }>;
1245
- lowerLimitOrderPrice: z$1.ZodNumber;
1246
- upperLimitOrderPrice: z$1.ZodNumber;
1247
- entryPrice: z$1.ZodNumber;
1248
- pool: z$1.ZodObject<{
1249
- address: z$1.ZodString;
1250
- provider: z$1.ZodEnum<{
1251
- orca: "orca";
1252
- fusion: "fusion";
1253
- }>;
1254
- mintA: z$1.ZodObject<{
1255
- address: z$1.ZodString;
1256
- symbol: z$1.ZodString;
1257
- name: z$1.ZodString;
1258
- logo: z$1.ZodString;
1259
- decimals: z$1.ZodNumber;
1260
- }, z$1.core.$strip>;
1261
- mintB: z$1.ZodObject<{
1262
- address: z$1.ZodString;
1263
- symbol: z$1.ZodString;
1264
- name: z$1.ZodString;
1265
- logo: z$1.ZodString;
1266
- decimals: z$1.ZodNumber;
1267
- }, z$1.core.$strip>;
1268
- tokenAVault: z$1.ZodString;
1269
- tokenBVault: z$1.ZodString;
1270
- tickSpacing: z$1.ZodNumber;
1271
- feeRate: z$1.ZodNumber;
1272
- protocolFeeRate: z$1.ZodNumber;
1273
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
1274
- liquidity: z$1.ZodCoercedBigInt<unknown>;
1275
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
1276
- price: z$1.ZodNumber;
1277
- tickCurrentIndex: z$1.ZodNumber;
1278
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1279
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
1280
- groups: z$1.ZodObject<{
1281
- "24h": z$1.ZodObject<{
1282
- volumeUsd: z$1.ZodNumber;
1283
- feesUsd: z$1.ZodNumber;
1284
- priceChange: z$1.ZodNumber;
1285
- }, z$1.core.$strip>;
1286
- }, z$1.core.$strip>;
1287
- }, z$1.core.$strip>>>;
1288
- }, z$1.core.$strip>;
1289
- positionToken: z$1.ZodEnum<{
1290
- [x: string]: string;
1291
- }>;
1292
- collateralToken: z$1.ZodEnum<{
1293
- [x: string]: string;
1294
- }>;
1295
- marketMaker: z$1.ZodEnum<{
1296
- orca: "orca";
1297
- fusion: "fusion";
1298
- }>;
1299
- depositedCollateral: z$1.ZodObject<{
1300
- amount: z$1.ZodCoercedBigInt<unknown>;
1301
- usd: z$1.ZodNumber;
1302
- }, z$1.core.$strip>;
1303
- initialDebt: z$1.ZodObject<{
1304
- amount: z$1.ZodCoercedBigInt<unknown>;
1305
- usd: z$1.ZodNumber;
1306
- }, z$1.core.$strip>;
1307
- currentDebt: z$1.ZodObject<{
1308
- amount: z$1.ZodCoercedBigInt<unknown>;
1309
- usd: z$1.ZodNumber;
1310
- }, z$1.core.$strip>;
1311
- total: z$1.ZodObject<{
1312
- amount: z$1.ZodCoercedBigInt<unknown>;
1313
- usd: z$1.ZodNumber;
1314
- }, z$1.core.$strip>;
1315
- leverage: z$1.ZodNumber;
1316
- maxLeverage: z$1.ZodNumber;
1317
- liquidationPrice: z$1.ZodNumber;
1318
- pnlUsd: z$1.ZodObject<{
1319
- amount: z$1.ZodNumber;
1320
- rate: z$1.ZodNumber;
1321
- }, z$1.core.$strip>;
1322
- openedAt: z$1.ZodCoercedDate<unknown>;
1323
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
1324
- }, z$1.core.$strip>>>;
1325
- tunaLpPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1326
- address: z$1.ZodString;
1327
- authority: z$1.ZodString;
1328
- version: z$1.ZodNumber;
1329
- state: z$1.ZodEnum<{
1330
- open: "open";
1331
- liquidated: "liquidated";
1332
- closed_by_limit_order: "closed_by_limit_order";
1333
- closed: "closed";
1334
- }>;
1335
- positionMint: z$1.ZodString;
1336
- liquidity: z$1.ZodCoercedBigInt<unknown>;
1337
- tickLowerIndex: z$1.ZodNumber;
1338
- tickUpperIndex: z$1.ZodNumber;
1339
- lowerLimitOrderPrice: z$1.ZodNumber;
1340
- upperLimitOrderPrice: z$1.ZodNumber;
1341
- entryPrice: z$1.ZodNumber;
1342
- flags: z$1.ZodObject<{
1343
- lowerLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
1344
- [x: string]: string;
1345
- }>>;
1346
- upperLimitOrderSwapToToken: z$1.ZodNullable<z$1.ZodEnum<{
1347
- [x: string]: string;
1348
- }>>;
1349
- autoCompounding: z$1.ZodNullable<z$1.ZodEnum<{
1350
- [x: string]: string;
1351
- }>>;
1352
- autoRebalancing: z$1.ZodBoolean;
1353
- }, z$1.core.$strip>;
1354
- pool: z$1.ZodObject<{
1355
- address: z$1.ZodString;
1356
- provider: z$1.ZodEnum<{
1357
- orca: "orca";
1358
- fusion: "fusion";
1359
- }>;
1360
- mintA: z$1.ZodObject<{
1361
- address: z$1.ZodString;
1362
- symbol: z$1.ZodString;
1363
- name: z$1.ZodString;
1364
- logo: z$1.ZodString;
1365
- decimals: z$1.ZodNumber;
1366
- }, z$1.core.$strip>;
1367
- mintB: z$1.ZodObject<{
1368
- address: z$1.ZodString;
1369
- symbol: z$1.ZodString;
1370
- name: z$1.ZodString;
1371
- logo: z$1.ZodString;
1372
- decimals: z$1.ZodNumber;
1373
- }, z$1.core.$strip>;
1374
- tokenAVault: z$1.ZodString;
1375
- tokenBVault: z$1.ZodString;
1376
- tickSpacing: z$1.ZodNumber;
1377
- feeRate: z$1.ZodNumber;
1378
- protocolFeeRate: z$1.ZodNumber;
1379
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
1380
- liquidity: z$1.ZodCoercedBigInt<unknown>;
1381
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
1382
- price: z$1.ZodNumber;
1383
- tickCurrentIndex: z$1.ZodNumber;
1384
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1385
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
1386
- groups: z$1.ZodObject<{
1387
- "24h": z$1.ZodObject<{
1388
- volumeUsd: z$1.ZodNumber;
1389
- feesUsd: z$1.ZodNumber;
1390
- priceChange: z$1.ZodNumber;
1391
- }, z$1.core.$strip>;
1392
- }, z$1.core.$strip>;
1393
- }, z$1.core.$strip>>>;
1394
- }, z$1.core.$strip>;
1395
- marketMaker: z$1.ZodEnum<{
1396
- orca: "orca";
1397
- fusion: "fusion";
1398
- }>;
1399
- depositedCollateralA: z$1.ZodObject<{
1400
- amount: z$1.ZodCoercedBigInt<unknown>;
1401
- usd: z$1.ZodNumber;
1402
- }, z$1.core.$strip>;
1403
- depositedCollateralB: z$1.ZodObject<{
1404
- amount: z$1.ZodCoercedBigInt<unknown>;
1405
- usd: z$1.ZodNumber;
1406
- }, z$1.core.$strip>;
1407
- leverage: z$1.ZodNumber;
1408
- maxLeverage: z$1.ZodNumber;
1409
- liquidationPriceLower: z$1.ZodNumber;
1410
- liquidationPriceUpper: z$1.ZodNumber;
1411
- initialDebtA: z$1.ZodObject<{
1412
- amount: z$1.ZodCoercedBigInt<unknown>;
1413
- usd: z$1.ZodNumber;
1414
- }, z$1.core.$strip>;
1415
- initialDebtB: z$1.ZodObject<{
1416
- amount: z$1.ZodCoercedBigInt<unknown>;
1417
- usd: z$1.ZodNumber;
1418
- }, z$1.core.$strip>;
1419
- currentDebtA: z$1.ZodObject<{
1420
- amount: z$1.ZodCoercedBigInt<unknown>;
1421
- usd: z$1.ZodNumber;
1422
- }, z$1.core.$strip>;
1423
- currentDebtB: z$1.ZodObject<{
1424
- amount: z$1.ZodCoercedBigInt<unknown>;
1425
- usd: z$1.ZodNumber;
1426
- }, z$1.core.$strip>;
1427
- leftoversA: z$1.ZodObject<{
1428
- amount: z$1.ZodCoercedBigInt<unknown>;
1429
- usd: z$1.ZodNumber;
1430
- }, z$1.core.$strip>;
1431
- leftoversB: z$1.ZodObject<{
1432
- amount: z$1.ZodCoercedBigInt<unknown>;
1433
- usd: z$1.ZodNumber;
1434
- }, z$1.core.$strip>;
1435
- yieldA: z$1.ZodObject<{
1436
- amount: z$1.ZodCoercedBigInt<unknown>;
1437
- usd: z$1.ZodNumber;
1438
- }, z$1.core.$strip>;
1439
- yieldB: z$1.ZodObject<{
1440
- amount: z$1.ZodCoercedBigInt<unknown>;
1441
- usd: z$1.ZodNumber;
1442
- }, z$1.core.$strip>;
1443
- compoundedYieldA: z$1.ZodObject<{
1444
- amount: z$1.ZodCoercedBigInt<unknown>;
1445
- usd: z$1.ZodNumber;
1446
- }, z$1.core.$strip>;
1447
- compoundedYieldB: z$1.ZodObject<{
1448
- amount: z$1.ZodCoercedBigInt<unknown>;
1449
- usd: z$1.ZodNumber;
1450
- }, z$1.core.$strip>;
1451
- totalA: z$1.ZodObject<{
1452
- amount: z$1.ZodCoercedBigInt<unknown>;
1453
- usd: z$1.ZodNumber;
1454
- }, z$1.core.$strip>;
1455
- totalB: z$1.ZodObject<{
1456
- amount: z$1.ZodCoercedBigInt<unknown>;
1457
- usd: z$1.ZodNumber;
1458
- }, z$1.core.$strip>;
1459
- pnlA: z$1.ZodObject<{
1460
- amount: z$1.ZodCoercedBigInt<unknown>;
1461
- rate: z$1.ZodNumber;
1462
- }, z$1.core.$strip>;
1463
- pnlB: z$1.ZodObject<{
1464
- amount: z$1.ZodCoercedBigInt<unknown>;
1465
- rate: z$1.ZodNumber;
1466
- }, z$1.core.$strip>;
1467
- pnlUsd: z$1.ZodObject<{
1468
- amount: z$1.ZodNumber;
1469
- rate: z$1.ZodNumber;
1470
- }, z$1.core.$strip>;
1471
- openedAt: z$1.ZodCoercedDate<unknown>;
1472
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
1473
- }, z$1.core.$strip>>>;
1474
- fusionLimitOrders: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1475
- address: z$1.ZodString;
1476
- orderMint: z$1.ZodString;
1477
- authority: z$1.ZodString;
1478
- pool: z$1.ZodObject<{
1479
- address: z$1.ZodString;
1480
- provider: z$1.ZodEnum<{
1481
- orca: "orca";
1482
- fusion: "fusion";
1483
- }>;
1484
- mintA: z$1.ZodObject<{
1485
- address: z$1.ZodString;
1486
- symbol: z$1.ZodString;
1487
- name: z$1.ZodString;
1488
- logo: z$1.ZodString;
1489
- decimals: z$1.ZodNumber;
1490
- }, z$1.core.$strip>;
1491
- mintB: z$1.ZodObject<{
1492
- address: z$1.ZodString;
1493
- symbol: z$1.ZodString;
1494
- name: z$1.ZodString;
1495
- logo: z$1.ZodString;
1496
- decimals: z$1.ZodNumber;
1497
- }, z$1.core.$strip>;
1498
- tokenAVault: z$1.ZodString;
1499
- tokenBVault: z$1.ZodString;
1500
- tickSpacing: z$1.ZodNumber;
1501
- feeRate: z$1.ZodNumber;
1502
- protocolFeeRate: z$1.ZodNumber;
1503
- olpFeeRate: z$1.ZodNullable<z$1.ZodNumber>;
1504
- liquidity: z$1.ZodCoercedBigInt<unknown>;
1505
- sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
1506
- price: z$1.ZodNumber;
1507
- tickCurrentIndex: z$1.ZodNumber;
1508
- stats: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1509
- tvlUsd: z$1.ZodCoercedNumber<unknown>;
1510
- groups: z$1.ZodObject<{
1511
- "24h": z$1.ZodObject<{
1512
- volumeUsd: z$1.ZodNumber;
1513
- feesUsd: z$1.ZodNumber;
1514
- priceChange: z$1.ZodNumber;
1515
- }, z$1.core.$strip>;
1516
- }, z$1.core.$strip>;
1517
- }, z$1.core.$strip>>>;
1518
- }, z$1.core.$strip>;
1519
- state: z$1.ZodEnum<{
1520
- open: "open";
1521
- partially_filled: "partially_filled";
1522
- filled: "filled";
1523
- complete: "complete";
1524
- cancelled: "cancelled";
1525
- }>;
1526
- aToB: z$1.ZodBoolean;
1527
- tickIndex: z$1.ZodNumber;
1528
- fillRatio: z$1.ZodNumber;
1529
- openTxSignature: z$1.ZodString;
1530
- closeTxSignature: z$1.ZodNullable<z$1.ZodString>;
1531
- amountIn: z$1.ZodObject<{
1532
- amount: z$1.ZodCoercedBigInt<unknown>;
1533
- usd: z$1.ZodNumber;
1534
- }, z$1.core.$strip>;
1535
- amountOut: z$1.ZodObject<{
1536
- amount: z$1.ZodCoercedBigInt<unknown>;
1537
- usd: z$1.ZodNumber;
1538
- }, z$1.core.$strip>;
1539
- openedAt: z$1.ZodCoercedDate<unknown>;
1540
- closedAt: z$1.ZodNullable<z$1.ZodCoercedDate<unknown>>;
1541
- }, z$1.core.$strip>>>;
1542
- orderBooks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1543
- entries: z$1.ZodArray<z$1.ZodObject<{
1544
- concentratedAmount: z$1.ZodCoercedBigInt<unknown>;
1545
- concentratedAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1546
- concentratedTotal: z$1.ZodCoercedBigInt<unknown>;
1547
- concentratedTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1548
- limitAmount: z$1.ZodCoercedBigInt<unknown>;
1549
- limitAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1550
- limitTotal: z$1.ZodCoercedBigInt<unknown>;
1551
- limitTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1552
- price: z$1.ZodNumber;
1553
- askSide: z$1.ZodBoolean;
1554
- }, z$1.core.$strip>>;
1555
- poolPrice: z$1.ZodNumber;
1556
- poolAddress: z$1.ZodString;
1557
- }, z$1.core.$strip>>>;
1558
- }, z$1.core.$strip>;
1559
-
1560
- declare const Mint$1: z.ZodObject<{
1561
- address: z.ZodString;
1562
- symbol: z.ZodString;
1563
- name: z.ZodString;
1564
- logo: z.ZodString;
1565
- decimals: z.ZodNumber;
1566
- }, z.core.$strip>;
1567
-
1568
- declare const OrderBookEntry$1: z$1.ZodObject<{
1569
- concentratedAmount: z$1.ZodCoercedBigInt<unknown>;
1570
- concentratedAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1571
- concentratedTotal: z$1.ZodCoercedBigInt<unknown>;
1572
- concentratedTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1573
- limitAmount: z$1.ZodCoercedBigInt<unknown>;
1574
- limitAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1575
- limitTotal: z$1.ZodCoercedBigInt<unknown>;
1576
- limitTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1577
- price: z$1.ZodNumber;
1578
- askSide: z$1.ZodBoolean;
1579
- }, z$1.core.$strip>;
1580
- declare const OrderBook$1: z$1.ZodObject<{
1581
- entries: z$1.ZodArray<z$1.ZodObject<{
1582
- concentratedAmount: z$1.ZodCoercedBigInt<unknown>;
1583
- concentratedAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1584
- concentratedTotal: z$1.ZodCoercedBigInt<unknown>;
1585
- concentratedTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1586
- limitAmount: z$1.ZodCoercedBigInt<unknown>;
1587
- limitAmountQuote: z$1.ZodCoercedBigInt<unknown>;
1588
- limitTotal: z$1.ZodCoercedBigInt<unknown>;
1589
- limitTotalQuote: z$1.ZodCoercedBigInt<unknown>;
1590
- price: z$1.ZodNumber;
1591
- askSide: z$1.ZodBoolean;
1592
- }, z$1.core.$strip>>;
1593
- poolPrice: z$1.ZodNumber;
1594
- poolAddress: z$1.ZodString;
1595
- }, z$1.core.$strip>;
1596
-
1597
- declare const NotificationEntity: {
1598
- readonly POOL_SWAP: "pool_swap";
1599
- readonly LENDING_POSITION: "lending_position";
1600
- readonly STAKING_POSITION: "staking_position";
1601
- readonly MARKET: "market";
1602
- readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
1603
- readonly ORDER_HISTORY_ENTRY: "order_history_entry";
1604
- readonly STATE_SNAPSHOT: "state_snapshot";
1605
- };
1606
- declare const NotificationAction: {
1607
- readonly CREATE: "create";
1608
- readonly UPDATE: "update";
1609
- };
1610
- declare const TradeHistoryAction: {
1611
- readonly SWAP: "swap";
1612
- readonly LIMIT_ORDER_FILL: "limit_order_fill";
1613
- readonly POSITION_INCREASE: "position_increase";
1614
- readonly POSITION_DECREASE: "position_decrease";
1615
- readonly TAKE_PROFIT: "take_profit";
1616
- readonly STOP_LOSS: "stop_loss";
1617
- readonly LIQUIDATION: "liquidation";
1618
- };
1619
- declare const TradeHistoryUIDirection: {
1620
- readonly BUY: "buy";
1621
- readonly SELL: "sell";
1622
- readonly OPEN_LONG: "open_long";
1623
- readonly CLOSE_LONG: "close_long";
1624
- readonly OPEN_SHORT: "open_short";
1625
- readonly CLOSE_SHORT: "close_short";
1626
- };
1627
- declare const OrderHistoryOrderType: {
1628
- readonly MARKET: "market";
1629
- readonly LIMIT: "limit";
1630
- readonly TAKE_PROFIT_MARKET: "take_profit_market";
1631
- readonly STOP_LOSS_MARKET: "stop_loss_market";
1632
- readonly LIQUIDATION_MARKET: "liquidation_market";
1633
- };
1634
- declare const OrderHistoryStatus: {
1635
- readonly OPEN: "open";
1636
- readonly PARTIALLY_FILLED: "partially_filled";
1637
- readonly FILLED: "filled";
1638
- readonly CANCELLED: "cancelled";
1639
- readonly CLAIMED: "claimed";
1640
- readonly REJECTED: "rejected";
1641
- };
1642
- declare const OrderHistoryUIDirection: {
1643
- readonly BUY: "buy";
1644
- readonly SELL: "sell";
1645
- readonly LONG: "long";
1646
- readonly SHORT: "short";
1647
- };
1648
- declare const StakingPositionHistoryActionType$1: {
1649
- readonly STAKE: "stake";
1650
- readonly UNSTAKE: "unstake";
1651
- readonly WITHDRAW: "withdraw";
1652
- readonly CLAIM_REWARDS: "claim_rewards";
1653
- readonly COMPOUND_REWARDS: "compound_rewards";
1654
- };
1655
- declare const PoolSubscriptionTopic: {
1656
- readonly ORDER_BOOK: "order_book";
1657
- readonly POOL_SWAPS: "pool_swaps";
1658
- };
1659
- declare const WalletSubscriptionTopic: {
1660
- readonly TUNA_POSITIONS: "tuna_positions";
1661
- readonly TUNA_SPOT_POSITIONS: "tuna_spot_positions";
1662
- readonly LENDING_POSITIONS: "lending_positions";
1663
- readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
1664
- readonly STAKING_POSITION: "staking_position";
1665
- readonly TRADE_HISTORY: "trade_history";
1666
- readonly ORDER_HISTORY: "order_history";
1667
- };
1668
- declare const NotificationEntitySchema: z.ZodEnum<{
1669
- pool_swap: "pool_swap";
1670
- lending_position: "lending_position";
1671
- staking_position: "staking_position";
1672
- market: "market";
1673
- trade_history_entry: "trade_history_entry";
1674
- order_history_entry: "order_history_entry";
1675
- state_snapshot: "state_snapshot";
1676
- }>;
1677
- declare const NotificationActionSchema: z.ZodEnum<{
1678
- create: "create";
1679
- update: "update";
1680
- }>;
1681
- declare const TradeHistoryActionSchema: z.ZodEnum<{
1682
- swap: "swap";
1683
- limit_order_fill: "limit_order_fill";
1684
- position_increase: "position_increase";
1685
- position_decrease: "position_decrease";
1686
- take_profit: "take_profit";
1687
- stop_loss: "stop_loss";
1688
- liquidation: "liquidation";
1689
- }>;
1690
- declare const TradeHistoryUIDirectionSchema: z.ZodEnum<{
1691
- buy: "buy";
1692
- sell: "sell";
1693
- open_long: "open_long";
1694
- close_long: "close_long";
1695
- open_short: "open_short";
1696
- close_short: "close_short";
1697
- }>;
1698
- declare const OrderHistoryOrderTypeSchema: z.ZodEnum<{
1699
- market: "market";
1700
- limit: "limit";
1701
- take_profit_market: "take_profit_market";
1702
- stop_loss_market: "stop_loss_market";
1703
- liquidation_market: "liquidation_market";
1704
- }>;
1705
- declare const OrderHistoryStatusSchema: z.ZodEnum<{
1706
- open: "open";
1707
- partially_filled: "partially_filled";
1708
- filled: "filled";
1709
- cancelled: "cancelled";
1710
- claimed: "claimed";
1711
- rejected: "rejected";
1712
- }>;
1713
- declare const OrderHistoryUIDirectionSchema: z.ZodEnum<{
1714
- buy: "buy";
1715
- sell: "sell";
1716
- long: "long";
1717
- short: "short";
1718
- }>;
1719
- declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<{
1720
- stake: "stake";
1721
- unstake: "unstake";
1722
- withdraw: "withdraw";
1723
- claim_rewards: "claim_rewards";
1724
- compound_rewards: "compound_rewards";
1725
- }>;
1726
- declare const PoolSubscriptionTopicSchema: z.ZodEnum<{
1727
- order_book: "order_book";
1728
- pool_swaps: "pool_swaps";
1729
- }>;
1730
- declare const WalletSubscriptionTopicSchema: z.ZodEnum<{
1731
- staking_position: "staking_position";
1732
- tuna_positions: "tuna_positions";
1733
- tuna_spot_positions: "tuna_spot_positions";
1734
- lending_positions: "lending_positions";
1735
- fusion_limit_orders: "fusion_limit_orders";
1736
- trade_history: "trade_history";
1737
- order_history: "order_history";
1738
- }>;
1739
- declare const PaginationMeta$1: z.ZodObject<{
1740
- total: z.ZodNumber;
1741
- }, z.core.$strip>;
1742
- declare const TokenOraclePrice$1: z.ZodObject<{
1743
- mint: z.ZodString;
1744
- price: z.ZodCoercedBigInt<unknown>;
1745
- decimals: z.ZodNumber;
1746
- time: z.ZodCoercedDate<unknown>;
1747
- }, z.core.$strip>;
1748
- declare const Vault$1: z.ZodObject<{
1749
- address: z.ZodString;
1750
- mint: z.ZodString;
1751
- depositedFunds: z.ZodObject<{
1752
- amount: z.ZodCoercedBigInt<unknown>;
1753
- usd: z.ZodNumber;
1754
- }, z.core.$strip>;
1755
- borrowedFunds: z.ZodObject<{
1756
- amount: z.ZodCoercedBigInt<unknown>;
1757
- usd: z.ZodNumber;
1758
- }, z.core.$strip>;
1759
- supplyLimit: z.ZodObject<{
1760
- amount: z.ZodCoercedBigInt<unknown>;
1761
- usd: z.ZodNumber;
1762
- }, z.core.$strip>;
1763
- borrowedShares: z.ZodCoercedBigInt<unknown>;
1764
- depositedShares: z.ZodCoercedBigInt<unknown>;
1765
- supplyApy: z.ZodNumber;
1766
- borrowApy: z.ZodNumber;
1767
- interestRate: z.ZodCoercedBigInt<unknown>;
1768
- utilization: z.ZodNumber;
1769
- pythOracleFeedId: z.ZodString;
1770
- pythOraclePriceUpdate: z.ZodString;
1771
- }, z.core.$strip>;
1772
- declare const VaultHistoricalStats$1: z.ZodObject<{
1773
- date: z.ZodPipe<z.ZodTransform<Date, unknown>, z.ZodDate>;
1774
- supply: z.ZodObject<{
1775
- amount: z.ZodCoercedBigInt<unknown>;
1776
- usd: z.ZodNumber;
1777
- }, z.core.$strip>;
1778
- borrow: z.ZodObject<{
1779
- amount: z.ZodCoercedBigInt<unknown>;
1780
- usd: z.ZodNumber;
1781
- }, z.core.$strip>;
1782
- supplyApy: z.ZodNumber;
1783
- borrowApr: z.ZodNumber;
1784
- }, z.core.$strip>;
1785
- declare const Tick$1: z.ZodObject<{
1786
- index: z.ZodNumber;
1787
- liquidity: z.ZodCoercedBigInt<unknown>;
1788
- }, z.core.$strip>;
1789
- declare const PoolTicks$1: z.ZodObject<{
1790
- tickSpacing: z.ZodNumber;
1791
- ticks: z.ZodArray<z.ZodObject<{
1792
- index: z.ZodNumber;
1793
- liquidity: z.ZodCoercedBigInt<unknown>;
1794
- }, z.core.$strip>>;
1795
- }, z.core.$strip>;
1796
- declare const LendingPosition$1: z.ZodObject<{
1797
- address: z.ZodString;
1798
- authority: z.ZodString;
1799
- mint: z.ZodString;
1800
- vault: z.ZodString;
1801
- shares: z.ZodCoercedBigInt<unknown>;
1802
- funds: z.ZodObject<{
1803
- amount: z.ZodCoercedBigInt<unknown>;
1804
- usd: z.ZodNumber;
1805
- }, z.core.$strip>;
1806
- earned: z.ZodObject<{
1807
- amount: z.ZodCoercedBigInt<unknown>;
1808
- usd: z.ZodNumber;
1809
- }, z.core.$strip>;
1810
- }, z.core.$strip>;
1811
- declare const PoolSwap$1: z.ZodObject<{
1812
- id: z.ZodString;
1813
- amountIn: z.ZodCoercedBigInt<unknown>;
1814
- amountOut: z.ZodCoercedBigInt<unknown>;
1815
- amountUsd: z.ZodNumber;
1816
- aToB: z.ZodBoolean;
1817
- pool: z.ZodString;
1818
- time: z.ZodCoercedDate<unknown>;
1819
- }, z.core.$strip>;
1820
- declare const TradeHistoryEntry$1: z.ZodObject<{
1821
- id: z.ZodString;
1822
- pool: z.ZodObject<{
1823
- address: z.ZodString;
1824
- provider: z.ZodEnum<{
1825
- orca: "orca";
1826
- fusion: "fusion";
1827
- }>;
1828
- mintA: z.ZodObject<{
1829
- address: z.ZodString;
1830
- symbol: z.ZodString;
1831
- name: z.ZodString;
1832
- logo: z.ZodString;
1833
- decimals: z.ZodNumber;
1834
- }, z.core.$strip>;
1835
- mintB: z.ZodObject<{
1836
- address: z.ZodString;
1837
- symbol: z.ZodString;
1838
- name: z.ZodString;
1839
- logo: z.ZodString;
1840
- decimals: z.ZodNumber;
1841
- }, z.core.$strip>;
1842
- tokenAVault: z.ZodString;
1843
- tokenBVault: z.ZodString;
1844
- tickSpacing: z.ZodNumber;
1845
- feeRate: z.ZodNumber;
1846
- protocolFeeRate: z.ZodNumber;
1847
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
1848
- liquidity: z.ZodCoercedBigInt<unknown>;
1849
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
1850
- price: z.ZodNumber;
1851
- tickCurrentIndex: z.ZodNumber;
1852
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1853
- tvlUsd: z.ZodCoercedNumber<unknown>;
1854
- groups: z.ZodObject<{
1855
- "24h": z.ZodObject<{
1856
- volumeUsd: z.ZodNumber;
1857
- feesUsd: z.ZodNumber;
1858
- priceChange: z.ZodNumber;
1859
- }, z.core.$strip>;
1860
- }, z.core.$strip>;
1861
- }, z.core.$strip>>>;
1862
- }, z.core.$strip>;
1863
- authority: z.ZodString;
1864
- aToB: z.ZodBoolean;
1865
- action: z.ZodEnum<{
1866
- swap: "swap";
1867
- limit_order_fill: "limit_order_fill";
1868
- position_increase: "position_increase";
1869
- position_decrease: "position_decrease";
1870
- take_profit: "take_profit";
1871
- stop_loss: "stop_loss";
1872
- liquidation: "liquidation";
1873
- }>;
1874
- uiDirection: z.ZodEnum<{
1875
- buy: "buy";
1876
- sell: "sell";
1877
- open_long: "open_long";
1878
- close_long: "close_long";
1879
- open_short: "open_short";
1880
- close_short: "close_short";
1881
- }>;
1882
- uiPrice: z.ZodNumber;
1883
- baseToken: z.ZodObject<{
1884
- amount: z.ZodCoercedBigInt<unknown>;
1885
- usd: z.ZodNumber;
1886
- }, z.core.$strip>;
1887
- quoteToken: z.ZodObject<{
1888
- amount: z.ZodCoercedBigInt<unknown>;
1889
- usd: z.ZodNumber;
1890
- }, z.core.$strip>;
1891
- fee: z.ZodObject<{
1892
- amount: z.ZodCoercedBigInt<unknown>;
1893
- usd: z.ZodNumber;
1894
- }, z.core.$strip>;
1895
- pnl: z.ZodNullable<z.ZodObject<{
1896
- usd: z.ZodNumber;
1897
- bps: z.ZodNumber;
1898
- }, z.core.$strip>>;
1899
- txSignature: z.ZodNullable<z.ZodString>;
1900
- positionAddress: z.ZodNullable<z.ZodString>;
1901
- slot: z.ZodCoercedBigInt<unknown>;
1902
- ts: z.ZodCoercedDate<unknown>;
1903
- }, z.core.$strip>;
1904
- declare const OrderHistoryEntry$1: z.ZodObject<{
1905
- id: z.ZodString;
1906
- pool: z.ZodObject<{
1907
- address: z.ZodString;
1908
- provider: z.ZodEnum<{
1909
- orca: "orca";
1910
- fusion: "fusion";
1911
- }>;
1912
- mintA: z.ZodObject<{
1913
- address: z.ZodString;
1914
- symbol: z.ZodString;
1915
- name: z.ZodString;
1916
- logo: z.ZodString;
1917
- decimals: z.ZodNumber;
1918
- }, z.core.$strip>;
1919
- mintB: z.ZodObject<{
1920
- address: z.ZodString;
1921
- symbol: z.ZodString;
1922
- name: z.ZodString;
1923
- logo: z.ZodString;
1924
- decimals: z.ZodNumber;
1925
- }, z.core.$strip>;
1926
- tokenAVault: z.ZodString;
1927
- tokenBVault: z.ZodString;
1928
- tickSpacing: z.ZodNumber;
1929
- feeRate: z.ZodNumber;
1930
- protocolFeeRate: z.ZodNumber;
1931
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
1932
- liquidity: z.ZodCoercedBigInt<unknown>;
1933
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
1934
- price: z.ZodNumber;
1935
- tickCurrentIndex: z.ZodNumber;
1936
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1937
- tvlUsd: z.ZodCoercedNumber<unknown>;
1938
- groups: z.ZodObject<{
1939
- "24h": z.ZodObject<{
1940
- volumeUsd: z.ZodNumber;
1941
- feesUsd: z.ZodNumber;
1942
- priceChange: z.ZodNumber;
1943
- }, z.core.$strip>;
1944
- }, z.core.$strip>;
1945
- }, z.core.$strip>>>;
1946
- }, z.core.$strip>;
1947
- authority: z.ZodString;
1948
- orderType: z.ZodEnum<{
1949
- market: "market";
1950
- limit: "limit";
1951
- take_profit_market: "take_profit_market";
1952
- stop_loss_market: "stop_loss_market";
1953
- liquidation_market: "liquidation_market";
1954
- }>;
1955
- isReduceOnly: z.ZodNullable<z.ZodBoolean>;
1956
- aToB: z.ZodBoolean;
1957
- uiDirection: z.ZodEnum<{
1958
- buy: "buy";
1959
- sell: "sell";
1960
- long: "long";
1961
- short: "short";
1962
- }>;
1963
- uiPrice: z.ZodNullable<z.ZodNumber>;
1964
- uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
1965
- status: z.ZodEnum<{
1966
- open: "open";
1967
- partially_filled: "partially_filled";
1968
- filled: "filled";
1969
- cancelled: "cancelled";
1970
- claimed: "claimed";
1971
- rejected: "rejected";
1972
- }>;
1973
- baseToken: z.ZodObject<{
1974
- amount: z.ZodCoercedBigInt<unknown>;
1975
- usd: z.ZodNumber;
1976
- }, z.core.$strip>;
1977
- quoteToken: z.ZodObject<{
1978
- amount: z.ZodCoercedBigInt<unknown>;
1979
- usd: z.ZodNumber;
1980
- }, z.core.$strip>;
1981
- baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
1982
- amount: z.ZodCoercedBigInt<unknown>;
1983
- usd: z.ZodNumber;
1984
- }, z.core.$strip>>;
1985
- quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
1986
- amount: z.ZodCoercedBigInt<unknown>;
1987
- usd: z.ZodNumber;
1988
- }, z.core.$strip>>;
1989
- txSignature: z.ZodNullable<z.ZodString>;
1990
- positionAddress: z.ZodNullable<z.ZodString>;
1991
- slot: z.ZodCoercedBigInt<unknown>;
1992
- ts: z.ZodCoercedDate<unknown>;
1993
- }, z.core.$strip>;
1994
- declare const StakingTreasury$1: z.ZodObject<{
1995
- address: z.ZodString;
1996
- stakedTokenMint: z.ZodString;
1997
- rewardTokenMint: z.ZodString;
1998
- apy: z.ZodNumber;
1999
- uniqueStakers: z.ZodNumber;
2000
- totalStaked: z.ZodObject<{
2001
- amount: z.ZodCoercedBigInt<unknown>;
2002
- usd: z.ZodNumber;
2003
- }, z.core.$strip>;
2004
- totalReward: z.ZodObject<{
2005
- amount: z.ZodCoercedBigInt<unknown>;
2006
- usd: z.ZodNumber;
2007
- }, z.core.$strip>;
2008
- unstakeCooldownSeconds: z.ZodNumber;
2009
- isStakingEnabled: z.ZodBoolean;
2010
- isUnstakingEnabled: z.ZodBoolean;
2011
- isWithdrawEnabled: z.ZodBoolean;
2012
- }, z.core.$strip>;
2013
- declare const StakingPosition$1: z.ZodObject<{
2014
- address: z.ZodString;
2015
- owner: z.ZodString;
2016
- staked: z.ZodObject<{
2017
- amount: z.ZodCoercedBigInt<unknown>;
2018
- usd: z.ZodNumber;
2019
- }, z.core.$strip>;
2020
- unstaked: z.ZodObject<{
2021
- amount: z.ZodCoercedBigInt<unknown>;
2022
- usd: z.ZodNumber;
2023
- }, z.core.$strip>;
2024
- claimedReward: z.ZodObject<{
2025
- amount: z.ZodCoercedBigInt<unknown>;
2026
- usd: z.ZodNumber;
2027
- }, z.core.$strip>;
2028
- unclaimedReward: z.ZodObject<{
2029
- amount: z.ZodCoercedBigInt<unknown>;
2030
- usd: z.ZodNumber;
2031
- }, z.core.$strip>;
2032
- rank: z.ZodNullable<z.ZodNumber>;
2033
- vesting: z.ZodObject<{
2034
- locked: z.ZodObject<{
2035
- amount: z.ZodCoercedBigInt<unknown>;
2036
- usd: z.ZodNumber;
2037
- }, z.core.$strip>;
2038
- unlocked: z.ZodObject<{
2039
- amount: z.ZodCoercedBigInt<unknown>;
2040
- usd: z.ZodNumber;
2041
- }, z.core.$strip>;
2042
- unlockRate: z.ZodCoercedBigInt<unknown>;
2043
- unlockEverySeconds: z.ZodNumber;
2044
- unlockCliffSeconds: z.ZodNumber;
2045
- lockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2046
- }, z.core.$strip>;
2047
- lastUnstakedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2048
- withdrawAvailableAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2049
- }, z.core.$strip>;
2050
- declare const StakingLeaderboardPosition$1: z.ZodObject<{
2051
- rank: z.ZodNumber;
2052
- address: z.ZodString;
2053
- owner: z.ZodString;
2054
- staked: z.ZodObject<{
2055
- amount: z.ZodCoercedBigInt<unknown>;
2056
- usd: z.ZodNumber;
2057
- }, z.core.$strip>;
2058
- }, z.core.$strip>;
2059
- declare const StakingLeaderboardPage$1: z.ZodObject<{
2060
- data: z.ZodArray<z.ZodObject<{
2061
- rank: z.ZodNumber;
2062
- address: z.ZodString;
2063
- owner: z.ZodString;
2064
- staked: z.ZodObject<{
2065
- amount: z.ZodCoercedBigInt<unknown>;
2066
- usd: z.ZodNumber;
2067
- }, z.core.$strip>;
2068
- }, z.core.$strip>>;
2069
- meta: z.ZodObject<{
2070
- total: z.ZodNumber;
2071
- }, z.core.$strip>;
2072
- }, z.core.$strip>;
2073
- declare const StakingPositionHistoryAction$1: z.ZodObject<{
2074
- position: z.ZodString;
2075
- action: z.ZodEnum<{
2076
- stake: "stake";
2077
- unstake: "unstake";
2078
- withdraw: "withdraw";
2079
- claim_rewards: "claim_rewards";
2080
- compound_rewards: "compound_rewards";
2081
- }>;
2082
- txSignature: z.ZodString;
2083
- amount: z.ZodCoercedBigInt<unknown>;
2084
- time: z.ZodCoercedDate<unknown>;
2085
- }, z.core.$strip>;
2086
- declare const PoolPriceCandle$1: z.ZodObject<{
2087
- time: z.ZodNumber;
2088
- open: z.ZodNumber;
2089
- close: z.ZodNumber;
2090
- high: z.ZodNumber;
2091
- low: z.ZodNumber;
2092
- volume: z.ZodNumber;
2093
- }, z.core.$strip>;
2094
- declare const FeesStatsGroup$1: z.ZodObject<{
2095
- time: z.ZodCoercedDate<unknown>;
2096
- addLiquidityFees: z.ZodNumber;
2097
- limitOrderFees: z.ZodNumber;
2098
- yieldCompoundingFees: z.ZodNumber;
2099
- liquidationFees: z.ZodNumber;
2100
- totalLiquidationsNetworkFees: z.ZodNumber;
2101
- totalLimitOrdersNetworkFees: z.ZodNumber;
2102
- totalYieldCompoundingNetworkFees: z.ZodNumber;
2103
- failedNetworkFees: z.ZodNumber;
2104
- processedNetworkFees: z.ZodNumber;
2105
- totalCollectedFees: z.ZodNumber;
2106
- totalNetworkFees: z.ZodNumber;
2107
- jitoLiquidationFees: z.ZodNumber;
2108
- jitoLimitOrderFees: z.ZodNumber;
2109
- jitoYieldCompoundingFees: z.ZodNumber;
2110
- runningAddLiquidityFees: z.ZodNumber;
2111
- runningLimitOrderFees: z.ZodNumber;
2112
- runningYieldCompoundingFees: z.ZodNumber;
2113
- runningLiquidationFees: z.ZodNumber;
2114
- runningTotalLiquidationsNetworkFees: z.ZodNumber;
2115
- runningTotalLimitOrdersNetworkFees: z.ZodNumber;
2116
- runningTotalYieldCompoundingNetworkFees: z.ZodNumber;
2117
- runningFailedNetworkFees: z.ZodNumber;
2118
- runningProcessedNetworkFees: z.ZodNumber;
2119
- runningJitoLiquidationFees: z.ZodNumber;
2120
- runningJitoLimitOrderFees: z.ZodNumber;
2121
- runningJitoYieldCompoundingFees: z.ZodNumber;
2122
- runningTotalCollectedFees: z.ZodNumber;
2123
- runningTotalNetworkFees: z.ZodNumber;
2124
- }, z.core.$strip>;
2125
- declare const StakingRevenueStatsGroup$1: z.ZodObject<{
2126
- time: z.ZodCoercedDate<unknown>;
2127
- totalDepositsUsd: z.ZodNumber;
2128
- totalDepositsSol: z.ZodCoercedBigInt<unknown>;
2129
- runningTotalDepositsUsd: z.ZodNumber;
2130
- runningTotalDepositsSol: z.ZodCoercedBigInt<unknown>;
2131
- }, z.core.$strip>;
2132
- declare const SwapQuoteByInput$1: z.ZodObject<{
2133
- estimatedAmountOut: z.ZodCoercedBigInt<unknown>;
2134
- minAmountOut: z.ZodCoercedBigInt<unknown>;
2135
- feeAmount: z.ZodCoercedBigInt<unknown>;
2136
- feeUsd: z.ZodNumber;
2137
- priceImpact: z.ZodNumber;
2138
- }, z.core.$strip>;
2139
- declare const SwapQuoteByOutput$1: z.ZodObject<{
2140
- estimatedAmountIn: z.ZodCoercedBigInt<unknown>;
2141
- maxAmountIn: z.ZodCoercedBigInt<unknown>;
2142
- feeAmount: z.ZodCoercedBigInt<unknown>;
2143
- feeUsd: z.ZodNumber;
2144
- priceImpact: z.ZodNumber;
2145
- }, z.core.$strip>;
2146
- declare const LimitOrderQuoteByInput$1: z.ZodObject<{
2147
- amountOut: z.ZodCoercedBigInt<unknown>;
2148
- }, z.core.$strip>;
2149
- declare const LimitOrderQuoteByOutput$1: z.ZodObject<{
2150
- amountIn: z.ZodCoercedBigInt<unknown>;
2151
- }, z.core.$strip>;
2152
- declare const TradableAmount$1: z.ZodObject<{
2153
- amount: z.ZodCoercedBigInt<unknown>;
2154
- usd: z.ZodNumber;
2155
- }, z.core.$strip>;
2156
- declare const UpdateStreamSubscriptionResult: z.ZodObject<{
2157
- status: z.ZodString;
2158
- }, z.core.$strip>;
2159
- declare const PoolSwapNotification: z.ZodObject<{
2160
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2161
- entity: z.ZodEnum<{
2162
- pool_swap: "pool_swap";
2163
- lending_position: "lending_position";
2164
- staking_position: "staking_position";
2165
- market: "market";
2166
- trade_history_entry: "trade_history_entry";
2167
- order_history_entry: "order_history_entry";
2168
- state_snapshot: "state_snapshot";
2169
- }>;
2170
- action: z.ZodEnum<{
2171
- create: "create";
2172
- update: "update";
2173
- }>;
2174
- data: z.ZodObject<{
2175
- id: z.ZodString;
2176
- amountIn: z.ZodCoercedBigInt<unknown>;
2177
- amountOut: z.ZodCoercedBigInt<unknown>;
2178
- amountUsd: z.ZodNumber;
2179
- aToB: z.ZodBoolean;
2180
- pool: z.ZodString;
2181
- time: z.ZodCoercedDate<unknown>;
2182
- }, z.core.$strip>;
2183
- id: z.ZodString;
2184
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2185
- } | {
2186
- meta: z.ZodNullable<z.ZodUndefined>;
2187
- entity: z.ZodEnum<{
2188
- pool_swap: "pool_swap";
2189
- lending_position: "lending_position";
2190
- staking_position: "staking_position";
2191
- market: "market";
2192
- trade_history_entry: "trade_history_entry";
2193
- order_history_entry: "order_history_entry";
2194
- state_snapshot: "state_snapshot";
2195
- }>;
2196
- action: z.ZodEnum<{
2197
- create: "create";
2198
- update: "update";
2199
- }>;
2200
- data: z.ZodObject<{
2201
- id: z.ZodString;
2202
- amountIn: z.ZodCoercedBigInt<unknown>;
2203
- amountOut: z.ZodCoercedBigInt<unknown>;
2204
- amountUsd: z.ZodNumber;
2205
- aToB: z.ZodBoolean;
2206
- pool: z.ZodString;
2207
- time: z.ZodCoercedDate<unknown>;
2208
- }, z.core.$strip>;
2209
- id: z.ZodString;
2210
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2211
- }, z.core.$strip>;
2212
- declare const LendingPositionNotification: z.ZodObject<{
2213
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2214
- entity: z.ZodEnum<{
2215
- pool_swap: "pool_swap";
2216
- lending_position: "lending_position";
2217
- staking_position: "staking_position";
2218
- market: "market";
2219
- trade_history_entry: "trade_history_entry";
2220
- order_history_entry: "order_history_entry";
2221
- state_snapshot: "state_snapshot";
2222
- }>;
2223
- action: z.ZodEnum<{
2224
- create: "create";
2225
- update: "update";
2226
- }>;
2227
- data: z.ZodObject<{
2228
- address: z.ZodString;
2229
- authority: z.ZodString;
2230
- mint: z.ZodString;
2231
- vault: z.ZodString;
2232
- shares: z.ZodCoercedBigInt<unknown>;
2233
- funds: z.ZodObject<{
2234
- amount: z.ZodCoercedBigInt<unknown>;
2235
- usd: z.ZodNumber;
2236
- }, z.core.$strip>;
2237
- earned: z.ZodObject<{
2238
- amount: z.ZodCoercedBigInt<unknown>;
2239
- usd: z.ZodNumber;
2240
- }, z.core.$strip>;
2241
- }, z.core.$strip>;
2242
- id: z.ZodString;
2243
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2244
- } | {
2245
- meta: z.ZodNullable<z.ZodUndefined>;
2246
- entity: z.ZodEnum<{
2247
- pool_swap: "pool_swap";
2248
- lending_position: "lending_position";
2249
- staking_position: "staking_position";
2250
- market: "market";
2251
- trade_history_entry: "trade_history_entry";
2252
- order_history_entry: "order_history_entry";
2253
- state_snapshot: "state_snapshot";
2254
- }>;
2255
- action: z.ZodEnum<{
2256
- create: "create";
2257
- update: "update";
2258
- }>;
2259
- data: z.ZodObject<{
2260
- address: z.ZodString;
2261
- authority: z.ZodString;
2262
- mint: z.ZodString;
2263
- vault: z.ZodString;
2264
- shares: z.ZodCoercedBigInt<unknown>;
2265
- funds: z.ZodObject<{
2266
- amount: z.ZodCoercedBigInt<unknown>;
2267
- usd: z.ZodNumber;
2268
- }, z.core.$strip>;
2269
- earned: z.ZodObject<{
2270
- amount: z.ZodCoercedBigInt<unknown>;
2271
- usd: z.ZodNumber;
2272
- }, z.core.$strip>;
2273
- }, z.core.$strip>;
2274
- id: z.ZodString;
2275
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2276
- }, z.core.$strip>;
2277
- declare const TradeHistoryEntryNotification: z.ZodObject<{
2278
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2279
- entity: z.ZodEnum<{
2280
- pool_swap: "pool_swap";
2281
- lending_position: "lending_position";
2282
- staking_position: "staking_position";
2283
- market: "market";
2284
- trade_history_entry: "trade_history_entry";
2285
- order_history_entry: "order_history_entry";
2286
- state_snapshot: "state_snapshot";
2287
- }>;
2288
- action: z.ZodEnum<{
2289
- create: "create";
2290
- update: "update";
2291
- }>;
2292
- data: z.ZodObject<{
2293
- id: z.ZodString;
2294
- pool: z.ZodObject<{
2295
- address: z.ZodString;
2296
- provider: z.ZodEnum<{
2297
- orca: "orca";
2298
- fusion: "fusion";
2299
- }>;
2300
- mintA: z.ZodObject<{
2301
- address: z.ZodString;
2302
- symbol: z.ZodString;
2303
- name: z.ZodString;
2304
- logo: z.ZodString;
2305
- decimals: z.ZodNumber;
2306
- }, z.core.$strip>;
2307
- mintB: z.ZodObject<{
2308
- address: z.ZodString;
2309
- symbol: z.ZodString;
2310
- name: z.ZodString;
2311
- logo: z.ZodString;
2312
- decimals: z.ZodNumber;
2313
- }, z.core.$strip>;
2314
- tokenAVault: z.ZodString;
2315
- tokenBVault: z.ZodString;
2316
- tickSpacing: z.ZodNumber;
2317
- feeRate: z.ZodNumber;
2318
- protocolFeeRate: z.ZodNumber;
2319
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2320
- liquidity: z.ZodCoercedBigInt<unknown>;
2321
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2322
- price: z.ZodNumber;
2323
- tickCurrentIndex: z.ZodNumber;
2324
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2325
- tvlUsd: z.ZodCoercedNumber<unknown>;
2326
- groups: z.ZodObject<{
2327
- "24h": z.ZodObject<{
2328
- volumeUsd: z.ZodNumber;
2329
- feesUsd: z.ZodNumber;
2330
- priceChange: z.ZodNumber;
2331
- }, z.core.$strip>;
2332
- }, z.core.$strip>;
2333
- }, z.core.$strip>>>;
2334
- }, z.core.$strip>;
2335
- authority: z.ZodString;
2336
- aToB: z.ZodBoolean;
2337
- action: z.ZodEnum<{
2338
- swap: "swap";
2339
- limit_order_fill: "limit_order_fill";
2340
- position_increase: "position_increase";
2341
- position_decrease: "position_decrease";
2342
- take_profit: "take_profit";
2343
- stop_loss: "stop_loss";
2344
- liquidation: "liquidation";
2345
- }>;
2346
- uiDirection: z.ZodEnum<{
2347
- buy: "buy";
2348
- sell: "sell";
2349
- open_long: "open_long";
2350
- close_long: "close_long";
2351
- open_short: "open_short";
2352
- close_short: "close_short";
2353
- }>;
2354
- uiPrice: z.ZodNumber;
2355
- baseToken: z.ZodObject<{
2356
- amount: z.ZodCoercedBigInt<unknown>;
2357
- usd: z.ZodNumber;
2358
- }, z.core.$strip>;
2359
- quoteToken: z.ZodObject<{
2360
- amount: z.ZodCoercedBigInt<unknown>;
2361
- usd: z.ZodNumber;
2362
- }, z.core.$strip>;
2363
- fee: z.ZodObject<{
2364
- amount: z.ZodCoercedBigInt<unknown>;
2365
- usd: z.ZodNumber;
2366
- }, z.core.$strip>;
2367
- pnl: z.ZodNullable<z.ZodObject<{
2368
- usd: z.ZodNumber;
2369
- bps: z.ZodNumber;
2370
- }, z.core.$strip>>;
2371
- txSignature: z.ZodNullable<z.ZodString>;
2372
- positionAddress: z.ZodNullable<z.ZodString>;
2373
- slot: z.ZodCoercedBigInt<unknown>;
2374
- ts: z.ZodCoercedDate<unknown>;
2375
- }, z.core.$strip>;
2376
- id: z.ZodString;
2377
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
- } | {
2379
- meta: z.ZodNullable<z.ZodUndefined>;
2380
- entity: z.ZodEnum<{
2381
- pool_swap: "pool_swap";
2382
- lending_position: "lending_position";
2383
- staking_position: "staking_position";
2384
- market: "market";
2385
- trade_history_entry: "trade_history_entry";
2386
- order_history_entry: "order_history_entry";
2387
- state_snapshot: "state_snapshot";
2388
- }>;
2389
- action: z.ZodEnum<{
2390
- create: "create";
2391
- update: "update";
2392
- }>;
2393
- data: z.ZodObject<{
2394
- id: z.ZodString;
2395
- pool: z.ZodObject<{
2396
- address: z.ZodString;
2397
- provider: z.ZodEnum<{
2398
- orca: "orca";
2399
- fusion: "fusion";
2400
- }>;
2401
- mintA: z.ZodObject<{
2402
- address: z.ZodString;
2403
- symbol: z.ZodString;
2404
- name: z.ZodString;
2405
- logo: z.ZodString;
2406
- decimals: z.ZodNumber;
2407
- }, z.core.$strip>;
2408
- mintB: z.ZodObject<{
2409
- address: z.ZodString;
2410
- symbol: z.ZodString;
2411
- name: z.ZodString;
2412
- logo: z.ZodString;
2413
- decimals: z.ZodNumber;
2414
- }, z.core.$strip>;
2415
- tokenAVault: z.ZodString;
2416
- tokenBVault: z.ZodString;
2417
- tickSpacing: z.ZodNumber;
2418
- feeRate: z.ZodNumber;
2419
- protocolFeeRate: z.ZodNumber;
2420
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2421
- liquidity: z.ZodCoercedBigInt<unknown>;
2422
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2423
- price: z.ZodNumber;
2424
- tickCurrentIndex: z.ZodNumber;
2425
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2426
- tvlUsd: z.ZodCoercedNumber<unknown>;
2427
- groups: z.ZodObject<{
2428
- "24h": z.ZodObject<{
2429
- volumeUsd: z.ZodNumber;
2430
- feesUsd: z.ZodNumber;
2431
- priceChange: z.ZodNumber;
2432
- }, z.core.$strip>;
2433
- }, z.core.$strip>;
2434
- }, z.core.$strip>>>;
2435
- }, z.core.$strip>;
2436
- authority: z.ZodString;
2437
- aToB: z.ZodBoolean;
2438
- action: z.ZodEnum<{
2439
- swap: "swap";
2440
- limit_order_fill: "limit_order_fill";
2441
- position_increase: "position_increase";
2442
- position_decrease: "position_decrease";
2443
- take_profit: "take_profit";
2444
- stop_loss: "stop_loss";
2445
- liquidation: "liquidation";
2446
- }>;
2447
- uiDirection: z.ZodEnum<{
2448
- buy: "buy";
2449
- sell: "sell";
2450
- open_long: "open_long";
2451
- close_long: "close_long";
2452
- open_short: "open_short";
2453
- close_short: "close_short";
2454
- }>;
2455
- uiPrice: z.ZodNumber;
2456
- baseToken: z.ZodObject<{
2457
- amount: z.ZodCoercedBigInt<unknown>;
2458
- usd: z.ZodNumber;
2459
- }, z.core.$strip>;
2460
- quoteToken: z.ZodObject<{
2461
- amount: z.ZodCoercedBigInt<unknown>;
2462
- usd: z.ZodNumber;
2463
- }, z.core.$strip>;
2464
- fee: z.ZodObject<{
2465
- amount: z.ZodCoercedBigInt<unknown>;
2466
- usd: z.ZodNumber;
2467
- }, z.core.$strip>;
2468
- pnl: z.ZodNullable<z.ZodObject<{
2469
- usd: z.ZodNumber;
2470
- bps: z.ZodNumber;
2471
- }, z.core.$strip>>;
2472
- txSignature: z.ZodNullable<z.ZodString>;
2473
- positionAddress: z.ZodNullable<z.ZodString>;
2474
- slot: z.ZodCoercedBigInt<unknown>;
2475
- ts: z.ZodCoercedDate<unknown>;
2476
- }, z.core.$strip>;
2477
- id: z.ZodString;
2478
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
- }, z.core.$strip>;
2480
- declare const OrderHistoryEntryNotification: z.ZodObject<{
2481
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2482
- entity: z.ZodEnum<{
2483
- pool_swap: "pool_swap";
2484
- lending_position: "lending_position";
2485
- staking_position: "staking_position";
2486
- market: "market";
2487
- trade_history_entry: "trade_history_entry";
2488
- order_history_entry: "order_history_entry";
2489
- state_snapshot: "state_snapshot";
2490
- }>;
2491
- action: z.ZodEnum<{
2492
- create: "create";
2493
- update: "update";
2494
- }>;
2495
- data: z.ZodObject<{
2496
- id: z.ZodString;
2497
- pool: z.ZodObject<{
2498
- address: z.ZodString;
2499
- provider: z.ZodEnum<{
2500
- orca: "orca";
2501
- fusion: "fusion";
2502
- }>;
2503
- mintA: z.ZodObject<{
2504
- address: z.ZodString;
2505
- symbol: z.ZodString;
2506
- name: z.ZodString;
2507
- logo: z.ZodString;
2508
- decimals: z.ZodNumber;
2509
- }, z.core.$strip>;
2510
- mintB: z.ZodObject<{
2511
- address: z.ZodString;
2512
- symbol: z.ZodString;
2513
- name: z.ZodString;
2514
- logo: z.ZodString;
2515
- decimals: z.ZodNumber;
2516
- }, z.core.$strip>;
2517
- tokenAVault: z.ZodString;
2518
- tokenBVault: z.ZodString;
2519
- tickSpacing: z.ZodNumber;
2520
- feeRate: z.ZodNumber;
2521
- protocolFeeRate: z.ZodNumber;
2522
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2523
- liquidity: z.ZodCoercedBigInt<unknown>;
2524
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2525
- price: z.ZodNumber;
2526
- tickCurrentIndex: z.ZodNumber;
2527
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2528
- tvlUsd: z.ZodCoercedNumber<unknown>;
2529
- groups: z.ZodObject<{
2530
- "24h": z.ZodObject<{
2531
- volumeUsd: z.ZodNumber;
2532
- feesUsd: z.ZodNumber;
2533
- priceChange: z.ZodNumber;
2534
- }, z.core.$strip>;
2535
- }, z.core.$strip>;
2536
- }, z.core.$strip>>>;
2537
- }, z.core.$strip>;
2538
- authority: z.ZodString;
2539
- orderType: z.ZodEnum<{
2540
- market: "market";
2541
- limit: "limit";
2542
- take_profit_market: "take_profit_market";
2543
- stop_loss_market: "stop_loss_market";
2544
- liquidation_market: "liquidation_market";
2545
- }>;
2546
- isReduceOnly: z.ZodNullable<z.ZodBoolean>;
2547
- aToB: z.ZodBoolean;
2548
- uiDirection: z.ZodEnum<{
2549
- buy: "buy";
2550
- sell: "sell";
2551
- long: "long";
2552
- short: "short";
2553
- }>;
2554
- uiPrice: z.ZodNullable<z.ZodNumber>;
2555
- uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
2556
- status: z.ZodEnum<{
2557
- open: "open";
2558
- partially_filled: "partially_filled";
2559
- filled: "filled";
2560
- cancelled: "cancelled";
2561
- claimed: "claimed";
2562
- rejected: "rejected";
2563
- }>;
2564
- baseToken: z.ZodObject<{
2565
- amount: z.ZodCoercedBigInt<unknown>;
2566
- usd: z.ZodNumber;
2567
- }, z.core.$strip>;
2568
- quoteToken: z.ZodObject<{
2569
- amount: z.ZodCoercedBigInt<unknown>;
2570
- usd: z.ZodNumber;
2571
- }, z.core.$strip>;
2572
- baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
2573
- amount: z.ZodCoercedBigInt<unknown>;
2574
- usd: z.ZodNumber;
2575
- }, z.core.$strip>>;
2576
- quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
2577
- amount: z.ZodCoercedBigInt<unknown>;
2578
- usd: z.ZodNumber;
2579
- }, z.core.$strip>>;
2580
- txSignature: z.ZodNullable<z.ZodString>;
2581
- positionAddress: z.ZodNullable<z.ZodString>;
2582
- slot: z.ZodCoercedBigInt<unknown>;
2583
- ts: z.ZodCoercedDate<unknown>;
2584
- }, z.core.$strip>;
2585
- id: z.ZodString;
2586
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2587
- } | {
2588
- meta: z.ZodNullable<z.ZodUndefined>;
2589
- entity: z.ZodEnum<{
2590
- pool_swap: "pool_swap";
2591
- lending_position: "lending_position";
2592
- staking_position: "staking_position";
2593
- market: "market";
2594
- trade_history_entry: "trade_history_entry";
2595
- order_history_entry: "order_history_entry";
2596
- state_snapshot: "state_snapshot";
2597
- }>;
2598
- action: z.ZodEnum<{
2599
- create: "create";
2600
- update: "update";
2601
- }>;
2602
- data: z.ZodObject<{
2603
- id: z.ZodString;
2604
- pool: z.ZodObject<{
2605
- address: z.ZodString;
2606
- provider: z.ZodEnum<{
2607
- orca: "orca";
2608
- fusion: "fusion";
2609
- }>;
2610
- mintA: z.ZodObject<{
2611
- address: z.ZodString;
2612
- symbol: z.ZodString;
2613
- name: z.ZodString;
2614
- logo: z.ZodString;
2615
- decimals: z.ZodNumber;
2616
- }, z.core.$strip>;
2617
- mintB: z.ZodObject<{
2618
- address: z.ZodString;
2619
- symbol: z.ZodString;
2620
- name: z.ZodString;
2621
- logo: z.ZodString;
2622
- decimals: z.ZodNumber;
2623
- }, z.core.$strip>;
2624
- tokenAVault: z.ZodString;
2625
- tokenBVault: z.ZodString;
2626
- tickSpacing: z.ZodNumber;
2627
- feeRate: z.ZodNumber;
2628
- protocolFeeRate: z.ZodNumber;
2629
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2630
- liquidity: z.ZodCoercedBigInt<unknown>;
2631
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2632
- price: z.ZodNumber;
2633
- tickCurrentIndex: z.ZodNumber;
2634
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2635
- tvlUsd: z.ZodCoercedNumber<unknown>;
2636
- groups: z.ZodObject<{
2637
- "24h": z.ZodObject<{
2638
- volumeUsd: z.ZodNumber;
2639
- feesUsd: z.ZodNumber;
2640
- priceChange: z.ZodNumber;
2641
- }, z.core.$strip>;
2642
- }, z.core.$strip>;
2643
- }, z.core.$strip>>>;
2644
- }, z.core.$strip>;
2645
- authority: z.ZodString;
2646
- orderType: z.ZodEnum<{
2647
- market: "market";
2648
- limit: "limit";
2649
- take_profit_market: "take_profit_market";
2650
- stop_loss_market: "stop_loss_market";
2651
- liquidation_market: "liquidation_market";
2652
- }>;
2653
- isReduceOnly: z.ZodNullable<z.ZodBoolean>;
2654
- aToB: z.ZodBoolean;
2655
- uiDirection: z.ZodEnum<{
2656
- buy: "buy";
2657
- sell: "sell";
2658
- long: "long";
2659
- short: "short";
2660
- }>;
2661
- uiPrice: z.ZodNullable<z.ZodNumber>;
2662
- uiExecutionPrice: z.ZodNullable<z.ZodNumber>;
2663
- status: z.ZodEnum<{
2664
- open: "open";
2665
- partially_filled: "partially_filled";
2666
- filled: "filled";
2667
- cancelled: "cancelled";
2668
- claimed: "claimed";
2669
- rejected: "rejected";
2670
- }>;
2671
- baseToken: z.ZodObject<{
2672
- amount: z.ZodCoercedBigInt<unknown>;
2673
- usd: z.ZodNumber;
2674
- }, z.core.$strip>;
2675
- quoteToken: z.ZodObject<{
2676
- amount: z.ZodCoercedBigInt<unknown>;
2677
- usd: z.ZodNumber;
2678
- }, z.core.$strip>;
2679
- baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
2680
- amount: z.ZodCoercedBigInt<unknown>;
2681
- usd: z.ZodNumber;
2682
- }, z.core.$strip>>;
2683
- quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
2684
- amount: z.ZodCoercedBigInt<unknown>;
2685
- usd: z.ZodNumber;
2686
- }, z.core.$strip>>;
2687
- txSignature: z.ZodNullable<z.ZodString>;
2688
- positionAddress: z.ZodNullable<z.ZodString>;
2689
- slot: z.ZodCoercedBigInt<unknown>;
2690
- ts: z.ZodCoercedDate<unknown>;
2691
- }, z.core.$strip>;
2692
- id: z.ZodString;
2693
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2694
- }, z.core.$strip>;
2695
- declare const StakingPositionNotification: z.ZodObject<{
2696
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2697
- entity: z.ZodEnum<{
2698
- pool_swap: "pool_swap";
2699
- lending_position: "lending_position";
2700
- staking_position: "staking_position";
2701
- market: "market";
2702
- trade_history_entry: "trade_history_entry";
2703
- order_history_entry: "order_history_entry";
2704
- state_snapshot: "state_snapshot";
2705
- }>;
2706
- action: z.ZodEnum<{
2707
- create: "create";
2708
- update: "update";
2709
- }>;
2710
- data: z.ZodObject<{
2711
- address: z.ZodString;
2712
- owner: z.ZodString;
2713
- staked: z.ZodObject<{
2714
- amount: z.ZodCoercedBigInt<unknown>;
2715
- usd: z.ZodNumber;
2716
- }, z.core.$strip>;
2717
- unstaked: z.ZodObject<{
2718
- amount: z.ZodCoercedBigInt<unknown>;
2719
- usd: z.ZodNumber;
2720
- }, z.core.$strip>;
2721
- claimedReward: z.ZodObject<{
2722
- amount: z.ZodCoercedBigInt<unknown>;
2723
- usd: z.ZodNumber;
2724
- }, z.core.$strip>;
2725
- unclaimedReward: z.ZodObject<{
2726
- amount: z.ZodCoercedBigInt<unknown>;
2727
- usd: z.ZodNumber;
2728
- }, z.core.$strip>;
2729
- rank: z.ZodNullable<z.ZodNumber>;
2730
- vesting: z.ZodObject<{
2731
- locked: z.ZodObject<{
2732
- amount: z.ZodCoercedBigInt<unknown>;
2733
- usd: z.ZodNumber;
2734
- }, z.core.$strip>;
2735
- unlocked: z.ZodObject<{
2736
- amount: z.ZodCoercedBigInt<unknown>;
2737
- usd: z.ZodNumber;
2738
- }, z.core.$strip>;
2739
- unlockRate: z.ZodCoercedBigInt<unknown>;
2740
- unlockEverySeconds: z.ZodNumber;
2741
- unlockCliffSeconds: z.ZodNumber;
2742
- lockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2743
- }, z.core.$strip>;
2744
- lastUnstakedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2745
- withdrawAvailableAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2746
- }, z.core.$strip>;
2747
- id: z.ZodString;
2748
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2749
- } | {
2750
- meta: z.ZodNullable<z.ZodUndefined>;
2751
- entity: z.ZodEnum<{
2752
- pool_swap: "pool_swap";
2753
- lending_position: "lending_position";
2754
- staking_position: "staking_position";
2755
- market: "market";
2756
- trade_history_entry: "trade_history_entry";
2757
- order_history_entry: "order_history_entry";
2758
- state_snapshot: "state_snapshot";
2759
- }>;
2760
- action: z.ZodEnum<{
2761
- create: "create";
2762
- update: "update";
2763
- }>;
2764
- data: z.ZodObject<{
2765
- address: z.ZodString;
2766
- owner: z.ZodString;
2767
- staked: z.ZodObject<{
2768
- amount: z.ZodCoercedBigInt<unknown>;
2769
- usd: z.ZodNumber;
2770
- }, z.core.$strip>;
2771
- unstaked: z.ZodObject<{
2772
- amount: z.ZodCoercedBigInt<unknown>;
2773
- usd: z.ZodNumber;
2774
- }, z.core.$strip>;
2775
- claimedReward: z.ZodObject<{
2776
- amount: z.ZodCoercedBigInt<unknown>;
2777
- usd: z.ZodNumber;
2778
- }, z.core.$strip>;
2779
- unclaimedReward: z.ZodObject<{
2780
- amount: z.ZodCoercedBigInt<unknown>;
2781
- usd: z.ZodNumber;
2782
- }, z.core.$strip>;
2783
- rank: z.ZodNullable<z.ZodNumber>;
2784
- vesting: z.ZodObject<{
2785
- locked: z.ZodObject<{
2786
- amount: z.ZodCoercedBigInt<unknown>;
2787
- usd: z.ZodNumber;
2788
- }, z.core.$strip>;
2789
- unlocked: z.ZodObject<{
2790
- amount: z.ZodCoercedBigInt<unknown>;
2791
- usd: z.ZodNumber;
2792
- }, z.core.$strip>;
2793
- unlockRate: z.ZodCoercedBigInt<unknown>;
2794
- unlockEverySeconds: z.ZodNumber;
2795
- unlockCliffSeconds: z.ZodNumber;
2796
- lockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2797
- }, z.core.$strip>;
2798
- lastUnstakedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2799
- withdrawAvailableAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2800
- }, z.core.$strip>;
2801
- id: z.ZodString;
2802
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2803
- }, z.core.$strip>;
2804
- declare const StateSnapshotNotification: z.ZodObject<{
2805
- meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2806
- entity: z.ZodEnum<{
2807
- pool_swap: "pool_swap";
2808
- lending_position: "lending_position";
2809
- staking_position: "staking_position";
2810
- market: "market";
2811
- trade_history_entry: "trade_history_entry";
2812
- order_history_entry: "order_history_entry";
2813
- state_snapshot: "state_snapshot";
2814
- }>;
2815
- action: z.ZodEnum<{
2816
- create: "create";
2817
- update: "update";
2818
- }>;
2819
- data: z.ZodObject<{
2820
- slot: z.ZodCoercedBigInt<unknown>;
2821
- blockTime: z.ZodCoercedDate<unknown>;
2822
- markets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2823
- address: z.ZodString;
2824
- addressLookupTable: z.ZodString;
2825
- maxLeverage: z.ZodNumber;
2826
- maxSwapSlippage: z.ZodNumber;
2827
- protocolFee: z.ZodNumber;
2828
- protocolFeeOnCollateral: z.ZodNumber;
2829
- liquidationFee: z.ZodNumber;
2830
- liquidationThreshold: z.ZodNumber;
2831
- oraclePriceDeviationThreshold: z.ZodNumber;
2832
- rebalanceProtocolFee: z.ZodNumber;
2833
- borrowedFundsA: z.ZodObject<{
2834
- amount: z.ZodCoercedBigInt<unknown>;
2835
- usd: z.ZodNumber;
2836
- }, z.core.$strip>;
2837
- borrowedFundsB: z.ZodObject<{
2838
- amount: z.ZodCoercedBigInt<unknown>;
2839
- usd: z.ZodNumber;
2840
- }, z.core.$strip>;
2841
- borrowLimitA: z.ZodObject<{
2842
- amount: z.ZodCoercedBigInt<unknown>;
2843
- usd: z.ZodNumber;
2844
- }, z.core.$strip>;
2845
- borrowLimitB: z.ZodObject<{
2846
- amount: z.ZodCoercedBigInt<unknown>;
2847
- usd: z.ZodNumber;
2848
- }, z.core.$strip>;
2849
- maxSpotPositionSizeA: z.ZodObject<{
2850
- amount: z.ZodCoercedBigInt<unknown>;
2851
- usd: z.ZodNumber;
2852
- }, z.core.$strip>;
2853
- maxSpotPositionSizeB: z.ZodObject<{
2854
- amount: z.ZodCoercedBigInt<unknown>;
2855
- usd: z.ZodNumber;
2856
- }, z.core.$strip>;
2857
- pool: z.ZodObject<{
2858
- address: z.ZodString;
2859
- provider: z.ZodEnum<{
2860
- orca: "orca";
2861
- fusion: "fusion";
2862
- }>;
2863
- mintA: z.ZodObject<{
2864
- address: z.ZodString;
2865
- symbol: z.ZodString;
2866
- name: z.ZodString;
2867
- logo: z.ZodString;
2868
- decimals: z.ZodNumber;
2869
- }, z.core.$strip>;
2870
- mintB: z.ZodObject<{
2871
- address: z.ZodString;
2872
- symbol: z.ZodString;
2873
- name: z.ZodString;
2874
- logo: z.ZodString;
2875
- decimals: z.ZodNumber;
2876
- }, z.core.$strip>;
2877
- tokenAVault: z.ZodString;
2878
- tokenBVault: z.ZodString;
2879
- tickSpacing: z.ZodNumber;
2880
- feeRate: z.ZodNumber;
2881
- protocolFeeRate: z.ZodNumber;
2882
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2883
- liquidity: z.ZodCoercedBigInt<unknown>;
2884
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2885
- price: z.ZodNumber;
2886
- tickCurrentIndex: z.ZodNumber;
2887
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2888
- tvlUsd: z.ZodCoercedNumber<unknown>;
2889
- groups: z.ZodObject<{
2890
- "24h": z.ZodObject<{
2891
- volumeUsd: z.ZodNumber;
2892
- feesUsd: z.ZodNumber;
2893
- priceChange: z.ZodNumber;
2894
- }, z.core.$strip>;
2895
- }, z.core.$strip>;
2896
- }, z.core.$strip>>>;
2897
- }, z.core.$strip>;
2898
- disabled: z.ZodBoolean;
2899
- createdAt: z.ZodCoercedDate<unknown>;
2900
- }, z.core.$strip>>>;
2901
- tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2902
- address: z.ZodString;
2903
- authority: z.ZodString;
2904
- version: z.ZodNumber;
2905
- state: z.ZodEnum<{
2906
- open: "open";
2907
- closed: "closed";
2908
- }>;
2909
- lowerLimitOrderPrice: z.ZodNumber;
2910
- upperLimitOrderPrice: z.ZodNumber;
2911
- entryPrice: z.ZodNumber;
2912
- pool: z.ZodObject<{
2913
- address: z.ZodString;
2914
- provider: z.ZodEnum<{
2915
- orca: "orca";
2916
- fusion: "fusion";
2917
- }>;
2918
- mintA: z.ZodObject<{
2919
- address: z.ZodString;
2920
- symbol: z.ZodString;
2921
- name: z.ZodString;
2922
- logo: z.ZodString;
2923
- decimals: z.ZodNumber;
2924
- }, z.core.$strip>;
2925
- mintB: z.ZodObject<{
2926
- address: z.ZodString;
2927
- symbol: z.ZodString;
2928
- name: z.ZodString;
2929
- logo: z.ZodString;
2930
- decimals: z.ZodNumber;
2931
- }, z.core.$strip>;
2932
- tokenAVault: z.ZodString;
2933
- tokenBVault: z.ZodString;
2934
- tickSpacing: z.ZodNumber;
2935
- feeRate: z.ZodNumber;
2936
- protocolFeeRate: z.ZodNumber;
2937
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
2938
- liquidity: z.ZodCoercedBigInt<unknown>;
2939
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
2940
- price: z.ZodNumber;
2941
- tickCurrentIndex: z.ZodNumber;
2942
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2943
- tvlUsd: z.ZodCoercedNumber<unknown>;
2944
- groups: z.ZodObject<{
2945
- "24h": z.ZodObject<{
2946
- volumeUsd: z.ZodNumber;
2947
- feesUsd: z.ZodNumber;
2948
- priceChange: z.ZodNumber;
2949
- }, z.core.$strip>;
2950
- }, z.core.$strip>;
2951
- }, z.core.$strip>>>;
2952
- }, z.core.$strip>;
2953
- positionToken: z.ZodEnum<{
2954
- [x: string]: string;
2955
- }>;
2956
- collateralToken: z.ZodEnum<{
2957
- [x: string]: string;
2958
- }>;
2959
- marketMaker: z.ZodEnum<{
2960
- orca: "orca";
2961
- fusion: "fusion";
2962
- }>;
2963
- depositedCollateral: z.ZodObject<{
2964
- amount: z.ZodCoercedBigInt<unknown>;
2965
- usd: z.ZodNumber;
2966
- }, z.core.$strip>;
2967
- initialDebt: z.ZodObject<{
2968
- amount: z.ZodCoercedBigInt<unknown>;
2969
- usd: z.ZodNumber;
2970
- }, z.core.$strip>;
2971
- currentDebt: z.ZodObject<{
2972
- amount: z.ZodCoercedBigInt<unknown>;
2973
- usd: z.ZodNumber;
2974
- }, z.core.$strip>;
2975
- total: z.ZodObject<{
2976
- amount: z.ZodCoercedBigInt<unknown>;
2977
- usd: z.ZodNumber;
2978
- }, z.core.$strip>;
2979
- leverage: z.ZodNumber;
2980
- maxLeverage: z.ZodNumber;
2981
- liquidationPrice: z.ZodNumber;
2982
- pnlUsd: z.ZodObject<{
2983
- amount: z.ZodNumber;
2984
- rate: z.ZodNumber;
2985
- }, z.core.$strip>;
2986
- openedAt: z.ZodCoercedDate<unknown>;
2987
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2988
- }, z.core.$strip>>>;
2989
- tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2990
- address: z.ZodString;
2991
- authority: z.ZodString;
2992
- version: z.ZodNumber;
2993
- state: z.ZodEnum<{
2994
- open: "open";
2995
- liquidated: "liquidated";
2996
- closed_by_limit_order: "closed_by_limit_order";
2997
- closed: "closed";
2998
- }>;
2999
- positionMint: z.ZodString;
3000
- liquidity: z.ZodCoercedBigInt<unknown>;
3001
- tickLowerIndex: z.ZodNumber;
3002
- tickUpperIndex: z.ZodNumber;
3003
- lowerLimitOrderPrice: z.ZodNumber;
3004
- upperLimitOrderPrice: z.ZodNumber;
3005
- entryPrice: z.ZodNumber;
3006
- flags: z.ZodObject<{
3007
- lowerLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
3008
- [x: string]: string;
3009
- }>>;
3010
- upperLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
3011
- [x: string]: string;
3012
- }>>;
3013
- autoCompounding: z.ZodNullable<z.ZodEnum<{
3014
- [x: string]: string;
3015
- }>>;
3016
- autoRebalancing: z.ZodBoolean;
3017
- }, z.core.$strip>;
3018
- pool: z.ZodObject<{
3019
- address: z.ZodString;
3020
- provider: z.ZodEnum<{
3021
- orca: "orca";
3022
- fusion: "fusion";
3023
- }>;
3024
- mintA: z.ZodObject<{
3025
- address: z.ZodString;
3026
- symbol: z.ZodString;
3027
- name: z.ZodString;
3028
- logo: z.ZodString;
3029
- decimals: z.ZodNumber;
3030
- }, z.core.$strip>;
3031
- mintB: z.ZodObject<{
3032
- address: z.ZodString;
3033
- symbol: z.ZodString;
3034
- name: z.ZodString;
3035
- logo: z.ZodString;
3036
- decimals: z.ZodNumber;
3037
- }, z.core.$strip>;
3038
- tokenAVault: z.ZodString;
3039
- tokenBVault: z.ZodString;
3040
- tickSpacing: z.ZodNumber;
3041
- feeRate: z.ZodNumber;
3042
- protocolFeeRate: z.ZodNumber;
3043
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3044
- liquidity: z.ZodCoercedBigInt<unknown>;
3045
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3046
- price: z.ZodNumber;
3047
- tickCurrentIndex: z.ZodNumber;
3048
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3049
- tvlUsd: z.ZodCoercedNumber<unknown>;
3050
- groups: z.ZodObject<{
3051
- "24h": z.ZodObject<{
3052
- volumeUsd: z.ZodNumber;
3053
- feesUsd: z.ZodNumber;
3054
- priceChange: z.ZodNumber;
3055
- }, z.core.$strip>;
3056
- }, z.core.$strip>;
3057
- }, z.core.$strip>>>;
3058
- }, z.core.$strip>;
3059
- marketMaker: z.ZodEnum<{
3060
- orca: "orca";
3061
- fusion: "fusion";
3062
- }>;
3063
- depositedCollateralA: z.ZodObject<{
3064
- amount: z.ZodCoercedBigInt<unknown>;
3065
- usd: z.ZodNumber;
3066
- }, z.core.$strip>;
3067
- depositedCollateralB: z.ZodObject<{
3068
- amount: z.ZodCoercedBigInt<unknown>;
3069
- usd: z.ZodNumber;
3070
- }, z.core.$strip>;
3071
- leverage: z.ZodNumber;
3072
- maxLeverage: z.ZodNumber;
3073
- liquidationPriceLower: z.ZodNumber;
3074
- liquidationPriceUpper: z.ZodNumber;
3075
- initialDebtA: z.ZodObject<{
3076
- amount: z.ZodCoercedBigInt<unknown>;
3077
- usd: z.ZodNumber;
3078
- }, z.core.$strip>;
3079
- initialDebtB: z.ZodObject<{
3080
- amount: z.ZodCoercedBigInt<unknown>;
3081
- usd: z.ZodNumber;
3082
- }, z.core.$strip>;
3083
- currentDebtA: z.ZodObject<{
3084
- amount: z.ZodCoercedBigInt<unknown>;
3085
- usd: z.ZodNumber;
3086
- }, z.core.$strip>;
3087
- currentDebtB: z.ZodObject<{
3088
- amount: z.ZodCoercedBigInt<unknown>;
3089
- usd: z.ZodNumber;
3090
- }, z.core.$strip>;
3091
- leftoversA: z.ZodObject<{
3092
- amount: z.ZodCoercedBigInt<unknown>;
3093
- usd: z.ZodNumber;
3094
- }, z.core.$strip>;
3095
- leftoversB: z.ZodObject<{
3096
- amount: z.ZodCoercedBigInt<unknown>;
3097
- usd: z.ZodNumber;
3098
- }, z.core.$strip>;
3099
- yieldA: z.ZodObject<{
3100
- amount: z.ZodCoercedBigInt<unknown>;
3101
- usd: z.ZodNumber;
3102
- }, z.core.$strip>;
3103
- yieldB: z.ZodObject<{
3104
- amount: z.ZodCoercedBigInt<unknown>;
3105
- usd: z.ZodNumber;
3106
- }, z.core.$strip>;
3107
- compoundedYieldA: z.ZodObject<{
3108
- amount: z.ZodCoercedBigInt<unknown>;
3109
- usd: z.ZodNumber;
3110
- }, z.core.$strip>;
3111
- compoundedYieldB: z.ZodObject<{
3112
- amount: z.ZodCoercedBigInt<unknown>;
3113
- usd: z.ZodNumber;
3114
- }, z.core.$strip>;
3115
- totalA: z.ZodObject<{
3116
- amount: z.ZodCoercedBigInt<unknown>;
3117
- usd: z.ZodNumber;
3118
- }, z.core.$strip>;
3119
- totalB: z.ZodObject<{
3120
- amount: z.ZodCoercedBigInt<unknown>;
3121
- usd: z.ZodNumber;
3122
- }, z.core.$strip>;
3123
- pnlA: z.ZodObject<{
3124
- amount: z.ZodCoercedBigInt<unknown>;
3125
- rate: z.ZodNumber;
3126
- }, z.core.$strip>;
3127
- pnlB: z.ZodObject<{
3128
- amount: z.ZodCoercedBigInt<unknown>;
3129
- rate: z.ZodNumber;
3130
- }, z.core.$strip>;
3131
- pnlUsd: z.ZodObject<{
3132
- amount: z.ZodNumber;
3133
- rate: z.ZodNumber;
3134
- }, z.core.$strip>;
3135
- openedAt: z.ZodCoercedDate<unknown>;
3136
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3137
- }, z.core.$strip>>>;
3138
- fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
3139
- address: z.ZodString;
3140
- orderMint: z.ZodString;
3141
- authority: z.ZodString;
3142
- pool: z.ZodObject<{
3143
- address: z.ZodString;
3144
- provider: z.ZodEnum<{
3145
- orca: "orca";
3146
- fusion: "fusion";
3147
- }>;
3148
- mintA: z.ZodObject<{
3149
- address: z.ZodString;
3150
- symbol: z.ZodString;
3151
- name: z.ZodString;
3152
- logo: z.ZodString;
3153
- decimals: z.ZodNumber;
3154
- }, z.core.$strip>;
3155
- mintB: z.ZodObject<{
3156
- address: z.ZodString;
3157
- symbol: z.ZodString;
3158
- name: z.ZodString;
3159
- logo: z.ZodString;
3160
- decimals: z.ZodNumber;
3161
- }, z.core.$strip>;
3162
- tokenAVault: z.ZodString;
3163
- tokenBVault: z.ZodString;
3164
- tickSpacing: z.ZodNumber;
3165
- feeRate: z.ZodNumber;
3166
- protocolFeeRate: z.ZodNumber;
3167
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3168
- liquidity: z.ZodCoercedBigInt<unknown>;
3169
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3170
- price: z.ZodNumber;
3171
- tickCurrentIndex: z.ZodNumber;
3172
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3173
- tvlUsd: z.ZodCoercedNumber<unknown>;
3174
- groups: z.ZodObject<{
3175
- "24h": z.ZodObject<{
3176
- volumeUsd: z.ZodNumber;
3177
- feesUsd: z.ZodNumber;
3178
- priceChange: z.ZodNumber;
3179
- }, z.core.$strip>;
3180
- }, z.core.$strip>;
3181
- }, z.core.$strip>>>;
3182
- }, z.core.$strip>;
3183
- state: z.ZodEnum<{
3184
- open: "open";
3185
- partially_filled: "partially_filled";
3186
- filled: "filled";
3187
- complete: "complete";
3188
- cancelled: "cancelled";
3189
- }>;
3190
- aToB: z.ZodBoolean;
3191
- tickIndex: z.ZodNumber;
3192
- fillRatio: z.ZodNumber;
3193
- openTxSignature: z.ZodString;
3194
- closeTxSignature: z.ZodNullable<z.ZodString>;
3195
- amountIn: z.ZodObject<{
3196
- amount: z.ZodCoercedBigInt<unknown>;
3197
- usd: z.ZodNumber;
3198
- }, z.core.$strip>;
3199
- amountOut: z.ZodObject<{
3200
- amount: z.ZodCoercedBigInt<unknown>;
3201
- usd: z.ZodNumber;
3202
- }, z.core.$strip>;
3203
- openedAt: z.ZodCoercedDate<unknown>;
3204
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3205
- }, z.core.$strip>>>;
3206
- orderBooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3207
- entries: z.ZodArray<z.ZodObject<{
3208
- concentratedAmount: z.ZodCoercedBigInt<unknown>;
3209
- concentratedAmountQuote: z.ZodCoercedBigInt<unknown>;
3210
- concentratedTotal: z.ZodCoercedBigInt<unknown>;
3211
- concentratedTotalQuote: z.ZodCoercedBigInt<unknown>;
3212
- limitAmount: z.ZodCoercedBigInt<unknown>;
3213
- limitAmountQuote: z.ZodCoercedBigInt<unknown>;
3214
- limitTotal: z.ZodCoercedBigInt<unknown>;
3215
- limitTotalQuote: z.ZodCoercedBigInt<unknown>;
3216
- price: z.ZodNumber;
3217
- askSide: z.ZodBoolean;
3218
- }, z.core.$strip>>;
3219
- poolPrice: z.ZodNumber;
3220
- poolAddress: z.ZodString;
3221
- }, z.core.$strip>>>;
3222
- }, z.core.$strip>;
3223
- id: z.ZodString;
3224
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3225
- } | {
3226
- meta: z.ZodNullable<z.ZodUndefined>;
3227
- entity: z.ZodEnum<{
3228
- pool_swap: "pool_swap";
3229
- lending_position: "lending_position";
3230
- staking_position: "staking_position";
3231
- market: "market";
3232
- trade_history_entry: "trade_history_entry";
3233
- order_history_entry: "order_history_entry";
3234
- state_snapshot: "state_snapshot";
3235
- }>;
3236
- action: z.ZodEnum<{
3237
- create: "create";
3238
- update: "update";
3239
- }>;
3240
- data: z.ZodObject<{
3241
- slot: z.ZodCoercedBigInt<unknown>;
3242
- blockTime: z.ZodCoercedDate<unknown>;
3243
- markets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3244
- address: z.ZodString;
3245
- addressLookupTable: z.ZodString;
3246
- maxLeverage: z.ZodNumber;
3247
- maxSwapSlippage: z.ZodNumber;
3248
- protocolFee: z.ZodNumber;
3249
- protocolFeeOnCollateral: z.ZodNumber;
3250
- liquidationFee: z.ZodNumber;
3251
- liquidationThreshold: z.ZodNumber;
3252
- oraclePriceDeviationThreshold: z.ZodNumber;
3253
- rebalanceProtocolFee: z.ZodNumber;
3254
- borrowedFundsA: z.ZodObject<{
3255
- amount: z.ZodCoercedBigInt<unknown>;
3256
- usd: z.ZodNumber;
3257
- }, z.core.$strip>;
3258
- borrowedFundsB: z.ZodObject<{
3259
- amount: z.ZodCoercedBigInt<unknown>;
3260
- usd: z.ZodNumber;
3261
- }, z.core.$strip>;
3262
- borrowLimitA: z.ZodObject<{
3263
- amount: z.ZodCoercedBigInt<unknown>;
3264
- usd: z.ZodNumber;
3265
- }, z.core.$strip>;
3266
- borrowLimitB: z.ZodObject<{
3267
- amount: z.ZodCoercedBigInt<unknown>;
3268
- usd: z.ZodNumber;
3269
- }, z.core.$strip>;
3270
- maxSpotPositionSizeA: z.ZodObject<{
3271
- amount: z.ZodCoercedBigInt<unknown>;
3272
- usd: z.ZodNumber;
3273
- }, z.core.$strip>;
3274
- maxSpotPositionSizeB: z.ZodObject<{
3275
- amount: z.ZodCoercedBigInt<unknown>;
3276
- usd: z.ZodNumber;
3277
- }, z.core.$strip>;
3278
- pool: z.ZodObject<{
3279
- address: z.ZodString;
3280
- provider: z.ZodEnum<{
3281
- orca: "orca";
3282
- fusion: "fusion";
3283
- }>;
3284
- mintA: z.ZodObject<{
3285
- address: z.ZodString;
3286
- symbol: z.ZodString;
3287
- name: z.ZodString;
3288
- logo: z.ZodString;
3289
- decimals: z.ZodNumber;
3290
- }, z.core.$strip>;
3291
- mintB: z.ZodObject<{
3292
- address: z.ZodString;
3293
- symbol: z.ZodString;
3294
- name: z.ZodString;
3295
- logo: z.ZodString;
3296
- decimals: z.ZodNumber;
3297
- }, z.core.$strip>;
3298
- tokenAVault: z.ZodString;
3299
- tokenBVault: z.ZodString;
3300
- tickSpacing: z.ZodNumber;
3301
- feeRate: z.ZodNumber;
3302
- protocolFeeRate: z.ZodNumber;
3303
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3304
- liquidity: z.ZodCoercedBigInt<unknown>;
3305
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3306
- price: z.ZodNumber;
3307
- tickCurrentIndex: z.ZodNumber;
3308
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3309
- tvlUsd: z.ZodCoercedNumber<unknown>;
3310
- groups: z.ZodObject<{
3311
- "24h": z.ZodObject<{
3312
- volumeUsd: z.ZodNumber;
3313
- feesUsd: z.ZodNumber;
3314
- priceChange: z.ZodNumber;
3315
- }, z.core.$strip>;
3316
- }, z.core.$strip>;
3317
- }, z.core.$strip>>>;
3318
- }, z.core.$strip>;
3319
- disabled: z.ZodBoolean;
3320
- createdAt: z.ZodCoercedDate<unknown>;
3321
- }, z.core.$strip>>>;
3322
- tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3323
- address: z.ZodString;
3324
- authority: z.ZodString;
3325
- version: z.ZodNumber;
3326
- state: z.ZodEnum<{
3327
- open: "open";
3328
- closed: "closed";
3329
- }>;
3330
- lowerLimitOrderPrice: z.ZodNumber;
3331
- upperLimitOrderPrice: z.ZodNumber;
3332
- entryPrice: z.ZodNumber;
3333
- pool: z.ZodObject<{
3334
- address: z.ZodString;
3335
- provider: z.ZodEnum<{
3336
- orca: "orca";
3337
- fusion: "fusion";
3338
- }>;
3339
- mintA: z.ZodObject<{
3340
- address: z.ZodString;
3341
- symbol: z.ZodString;
3342
- name: z.ZodString;
3343
- logo: z.ZodString;
3344
- decimals: z.ZodNumber;
3345
- }, z.core.$strip>;
3346
- mintB: z.ZodObject<{
3347
- address: z.ZodString;
3348
- symbol: z.ZodString;
3349
- name: z.ZodString;
3350
- logo: z.ZodString;
3351
- decimals: z.ZodNumber;
3352
- }, z.core.$strip>;
3353
- tokenAVault: z.ZodString;
3354
- tokenBVault: z.ZodString;
3355
- tickSpacing: z.ZodNumber;
3356
- feeRate: z.ZodNumber;
3357
- protocolFeeRate: z.ZodNumber;
3358
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3359
- liquidity: z.ZodCoercedBigInt<unknown>;
3360
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3361
- price: z.ZodNumber;
3362
- tickCurrentIndex: z.ZodNumber;
3363
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3364
- tvlUsd: z.ZodCoercedNumber<unknown>;
3365
- groups: z.ZodObject<{
3366
- "24h": z.ZodObject<{
3367
- volumeUsd: z.ZodNumber;
3368
- feesUsd: z.ZodNumber;
3369
- priceChange: z.ZodNumber;
3370
- }, z.core.$strip>;
3371
- }, z.core.$strip>;
3372
- }, z.core.$strip>>>;
3373
- }, z.core.$strip>;
3374
- positionToken: z.ZodEnum<{
3375
- [x: string]: string;
3376
- }>;
3377
- collateralToken: z.ZodEnum<{
3378
- [x: string]: string;
3379
- }>;
3380
- marketMaker: z.ZodEnum<{
3381
- orca: "orca";
3382
- fusion: "fusion";
3383
- }>;
3384
- depositedCollateral: z.ZodObject<{
3385
- amount: z.ZodCoercedBigInt<unknown>;
3386
- usd: z.ZodNumber;
3387
- }, z.core.$strip>;
3388
- initialDebt: z.ZodObject<{
3389
- amount: z.ZodCoercedBigInt<unknown>;
3390
- usd: z.ZodNumber;
3391
- }, z.core.$strip>;
3392
- currentDebt: z.ZodObject<{
3393
- amount: z.ZodCoercedBigInt<unknown>;
3394
- usd: z.ZodNumber;
3395
- }, z.core.$strip>;
3396
- total: z.ZodObject<{
3397
- amount: z.ZodCoercedBigInt<unknown>;
3398
- usd: z.ZodNumber;
3399
- }, z.core.$strip>;
3400
- leverage: z.ZodNumber;
3401
- maxLeverage: z.ZodNumber;
3402
- liquidationPrice: z.ZodNumber;
3403
- pnlUsd: z.ZodObject<{
3404
- amount: z.ZodNumber;
3405
- rate: z.ZodNumber;
3406
- }, z.core.$strip>;
3407
- openedAt: z.ZodCoercedDate<unknown>;
3408
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3409
- }, z.core.$strip>>>;
3410
- tunaLpPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3411
- address: z.ZodString;
3412
- authority: z.ZodString;
3413
- version: z.ZodNumber;
3414
- state: z.ZodEnum<{
3415
- open: "open";
3416
- liquidated: "liquidated";
3417
- closed_by_limit_order: "closed_by_limit_order";
3418
- closed: "closed";
3419
- }>;
3420
- positionMint: z.ZodString;
3421
- liquidity: z.ZodCoercedBigInt<unknown>;
3422
- tickLowerIndex: z.ZodNumber;
3423
- tickUpperIndex: z.ZodNumber;
3424
- lowerLimitOrderPrice: z.ZodNumber;
3425
- upperLimitOrderPrice: z.ZodNumber;
3426
- entryPrice: z.ZodNumber;
3427
- flags: z.ZodObject<{
3428
- lowerLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
3429
- [x: string]: string;
3430
- }>>;
3431
- upperLimitOrderSwapToToken: z.ZodNullable<z.ZodEnum<{
3432
- [x: string]: string;
3433
- }>>;
3434
- autoCompounding: z.ZodNullable<z.ZodEnum<{
3435
- [x: string]: string;
3436
- }>>;
3437
- autoRebalancing: z.ZodBoolean;
3438
- }, z.core.$strip>;
3439
- pool: z.ZodObject<{
3440
- address: z.ZodString;
3441
- provider: z.ZodEnum<{
3442
- orca: "orca";
3443
- fusion: "fusion";
3444
- }>;
3445
- mintA: z.ZodObject<{
3446
- address: z.ZodString;
3447
- symbol: z.ZodString;
3448
- name: z.ZodString;
3449
- logo: z.ZodString;
3450
- decimals: z.ZodNumber;
3451
- }, z.core.$strip>;
3452
- mintB: z.ZodObject<{
3453
- address: z.ZodString;
3454
- symbol: z.ZodString;
3455
- name: z.ZodString;
3456
- logo: z.ZodString;
3457
- decimals: z.ZodNumber;
3458
- }, z.core.$strip>;
3459
- tokenAVault: z.ZodString;
3460
- tokenBVault: z.ZodString;
3461
- tickSpacing: z.ZodNumber;
3462
- feeRate: z.ZodNumber;
3463
- protocolFeeRate: z.ZodNumber;
3464
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3465
- liquidity: z.ZodCoercedBigInt<unknown>;
3466
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3467
- price: z.ZodNumber;
3468
- tickCurrentIndex: z.ZodNumber;
3469
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3470
- tvlUsd: z.ZodCoercedNumber<unknown>;
3471
- groups: z.ZodObject<{
3472
- "24h": z.ZodObject<{
3473
- volumeUsd: z.ZodNumber;
3474
- feesUsd: z.ZodNumber;
3475
- priceChange: z.ZodNumber;
3476
- }, z.core.$strip>;
3477
- }, z.core.$strip>;
3478
- }, z.core.$strip>>>;
3479
- }, z.core.$strip>;
3480
- marketMaker: z.ZodEnum<{
3481
- orca: "orca";
3482
- fusion: "fusion";
3483
- }>;
3484
- depositedCollateralA: z.ZodObject<{
3485
- amount: z.ZodCoercedBigInt<unknown>;
3486
- usd: z.ZodNumber;
3487
- }, z.core.$strip>;
3488
- depositedCollateralB: z.ZodObject<{
3489
- amount: z.ZodCoercedBigInt<unknown>;
3490
- usd: z.ZodNumber;
3491
- }, z.core.$strip>;
3492
- leverage: z.ZodNumber;
3493
- maxLeverage: z.ZodNumber;
3494
- liquidationPriceLower: z.ZodNumber;
3495
- liquidationPriceUpper: z.ZodNumber;
3496
- initialDebtA: z.ZodObject<{
3497
- amount: z.ZodCoercedBigInt<unknown>;
3498
- usd: z.ZodNumber;
3499
- }, z.core.$strip>;
3500
- initialDebtB: z.ZodObject<{
3501
- amount: z.ZodCoercedBigInt<unknown>;
3502
- usd: z.ZodNumber;
3503
- }, z.core.$strip>;
3504
- currentDebtA: z.ZodObject<{
3505
- amount: z.ZodCoercedBigInt<unknown>;
3506
- usd: z.ZodNumber;
3507
- }, z.core.$strip>;
3508
- currentDebtB: z.ZodObject<{
3509
- amount: z.ZodCoercedBigInt<unknown>;
3510
- usd: z.ZodNumber;
3511
- }, z.core.$strip>;
3512
- leftoversA: z.ZodObject<{
3513
- amount: z.ZodCoercedBigInt<unknown>;
3514
- usd: z.ZodNumber;
3515
- }, z.core.$strip>;
3516
- leftoversB: z.ZodObject<{
3517
- amount: z.ZodCoercedBigInt<unknown>;
3518
- usd: z.ZodNumber;
3519
- }, z.core.$strip>;
3520
- yieldA: z.ZodObject<{
3521
- amount: z.ZodCoercedBigInt<unknown>;
3522
- usd: z.ZodNumber;
3523
- }, z.core.$strip>;
3524
- yieldB: z.ZodObject<{
3525
- amount: z.ZodCoercedBigInt<unknown>;
3526
- usd: z.ZodNumber;
3527
- }, z.core.$strip>;
3528
- compoundedYieldA: z.ZodObject<{
3529
- amount: z.ZodCoercedBigInt<unknown>;
3530
- usd: z.ZodNumber;
3531
- }, z.core.$strip>;
3532
- compoundedYieldB: z.ZodObject<{
3533
- amount: z.ZodCoercedBigInt<unknown>;
3534
- usd: z.ZodNumber;
3535
- }, z.core.$strip>;
3536
- totalA: z.ZodObject<{
3537
- amount: z.ZodCoercedBigInt<unknown>;
3538
- usd: z.ZodNumber;
3539
- }, z.core.$strip>;
3540
- totalB: z.ZodObject<{
3541
- amount: z.ZodCoercedBigInt<unknown>;
3542
- usd: z.ZodNumber;
3543
- }, z.core.$strip>;
3544
- pnlA: z.ZodObject<{
3545
- amount: z.ZodCoercedBigInt<unknown>;
3546
- rate: z.ZodNumber;
3547
- }, z.core.$strip>;
3548
- pnlB: z.ZodObject<{
3549
- amount: z.ZodCoercedBigInt<unknown>;
3550
- rate: z.ZodNumber;
3551
- }, z.core.$strip>;
3552
- pnlUsd: z.ZodObject<{
3553
- amount: z.ZodNumber;
3554
- rate: z.ZodNumber;
3555
- }, z.core.$strip>;
3556
- openedAt: z.ZodCoercedDate<unknown>;
3557
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3558
- }, z.core.$strip>>>;
3559
- fusionLimitOrders: z.ZodOptional<z.ZodArray<z.ZodObject<{
3560
- address: z.ZodString;
3561
- orderMint: z.ZodString;
3562
- authority: z.ZodString;
3563
- pool: z.ZodObject<{
3564
- address: z.ZodString;
3565
- provider: z.ZodEnum<{
3566
- orca: "orca";
3567
- fusion: "fusion";
3568
- }>;
3569
- mintA: z.ZodObject<{
3570
- address: z.ZodString;
3571
- symbol: z.ZodString;
3572
- name: z.ZodString;
3573
- logo: z.ZodString;
3574
- decimals: z.ZodNumber;
3575
- }, z.core.$strip>;
3576
- mintB: z.ZodObject<{
3577
- address: z.ZodString;
3578
- symbol: z.ZodString;
3579
- name: z.ZodString;
3580
- logo: z.ZodString;
3581
- decimals: z.ZodNumber;
3582
- }, z.core.$strip>;
3583
- tokenAVault: z.ZodString;
3584
- tokenBVault: z.ZodString;
3585
- tickSpacing: z.ZodNumber;
3586
- feeRate: z.ZodNumber;
3587
- protocolFeeRate: z.ZodNumber;
3588
- olpFeeRate: z.ZodNullable<z.ZodNumber>;
3589
- liquidity: z.ZodCoercedBigInt<unknown>;
3590
- sqrtPrice: z.ZodCoercedBigInt<unknown>;
3591
- price: z.ZodNumber;
3592
- tickCurrentIndex: z.ZodNumber;
3593
- stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3594
- tvlUsd: z.ZodCoercedNumber<unknown>;
3595
- groups: z.ZodObject<{
3596
- "24h": z.ZodObject<{
3597
- volumeUsd: z.ZodNumber;
3598
- feesUsd: z.ZodNumber;
3599
- priceChange: z.ZodNumber;
3600
- }, z.core.$strip>;
3601
- }, z.core.$strip>;
3602
- }, z.core.$strip>>>;
3603
- }, z.core.$strip>;
3604
- state: z.ZodEnum<{
3605
- open: "open";
3606
- partially_filled: "partially_filled";
3607
- filled: "filled";
3608
- complete: "complete";
3609
- cancelled: "cancelled";
3610
- }>;
3611
- aToB: z.ZodBoolean;
3612
- tickIndex: z.ZodNumber;
3613
- fillRatio: z.ZodNumber;
3614
- openTxSignature: z.ZodString;
3615
- closeTxSignature: z.ZodNullable<z.ZodString>;
3616
- amountIn: z.ZodObject<{
3617
- amount: z.ZodCoercedBigInt<unknown>;
3618
- usd: z.ZodNumber;
3619
- }, z.core.$strip>;
3620
- amountOut: z.ZodObject<{
3621
- amount: z.ZodCoercedBigInt<unknown>;
3622
- usd: z.ZodNumber;
3623
- }, z.core.$strip>;
3624
- openedAt: z.ZodCoercedDate<unknown>;
3625
- closedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
3626
- }, z.core.$strip>>>;
3627
- orderBooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3628
- entries: z.ZodArray<z.ZodObject<{
3629
- concentratedAmount: z.ZodCoercedBigInt<unknown>;
3630
- concentratedAmountQuote: z.ZodCoercedBigInt<unknown>;
3631
- concentratedTotal: z.ZodCoercedBigInt<unknown>;
3632
- concentratedTotalQuote: z.ZodCoercedBigInt<unknown>;
3633
- limitAmount: z.ZodCoercedBigInt<unknown>;
3634
- limitAmountQuote: z.ZodCoercedBigInt<unknown>;
3635
- limitTotal: z.ZodCoercedBigInt<unknown>;
3636
- limitTotalQuote: z.ZodCoercedBigInt<unknown>;
3637
- price: z.ZodNumber;
3638
- askSide: z.ZodBoolean;
3639
- }, z.core.$strip>>;
3640
- poolPrice: z.ZodNumber;
3641
- poolAddress: z.ZodString;
3642
- }, z.core.$strip>>>;
3643
- }, z.core.$strip>;
3644
- id: z.ZodString;
3645
- authority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3646
- }, z.core.$strip>;
3647
-
3648
- declare const schemas_AmountWithUsdSchema: typeof AmountWithUsdSchema;
3649
- declare const schemas_AmountWithoutUsdSchema: typeof AmountWithoutUsdSchema;
3650
- declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
3651
- declare const schemas_LimitOrderState: typeof LimitOrderState;
3652
- declare const schemas_LimitOrderStateSchema: typeof LimitOrderStateSchema;
3653
- declare const schemas_LpPositionAutoCompound: typeof LpPositionAutoCompound;
3654
- declare const schemas_LpPositionAutoCompoundSchema: typeof LpPositionAutoCompoundSchema;
3655
- declare const schemas_LpPositionLimitOrderSwap: typeof LpPositionLimitOrderSwap;
3656
- declare const schemas_LpPositionLimitOrderSwapSchema: typeof LpPositionLimitOrderSwapSchema;
3657
- declare const schemas_LpPositionRebalance: typeof LpPositionRebalance;
3658
- declare const schemas_LpPositionRebalanceSchema: typeof LpPositionRebalanceSchema;
3659
- declare const schemas_LpPositionsActionType: typeof LpPositionsActionType;
3660
- declare const schemas_LpPositionsActionTypeSchema: typeof LpPositionsActionTypeSchema;
3661
- declare const schemas_NotificationAction: typeof NotificationAction;
3662
- declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
3663
- declare const schemas_NotificationEntity: typeof NotificationEntity;
3664
- declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
3665
- declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
3666
- declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
3667
- declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
3668
- declare const schemas_OrderHistoryStatus: typeof OrderHistoryStatus;
3669
- declare const schemas_OrderHistoryStatusSchema: typeof OrderHistoryStatusSchema;
3670
- declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
3671
- declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
3672
- declare const schemas_PoolProvider: typeof PoolProvider;
3673
- declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
3674
- declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
3675
- declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
3676
- declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
3677
- declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
3678
- declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
3679
- declare const schemas_StateSnapshotNotification: typeof StateSnapshotNotification;
3680
- declare const schemas_TokensPnlSchema: typeof TokensPnlSchema;
3681
- declare const schemas_TradeHistoryAction: typeof TradeHistoryAction;
3682
- declare const schemas_TradeHistoryActionSchema: typeof TradeHistoryActionSchema;
3683
- declare const schemas_TradeHistoryEntryNotification: typeof TradeHistoryEntryNotification;
3684
- declare const schemas_TradeHistoryUIDirection: typeof TradeHistoryUIDirection;
3685
- declare const schemas_TradeHistoryUIDirectionSchema: typeof TradeHistoryUIDirectionSchema;
3686
- declare const schemas_TunaLpPositionActionClose: typeof TunaLpPositionActionClose;
3687
- declare const schemas_TunaLpPositionActionCollectAndCompoundFees: typeof TunaLpPositionActionCollectAndCompoundFees;
3688
- declare const schemas_TunaLpPositionActionCollectFees: typeof TunaLpPositionActionCollectFees;
3689
- declare const schemas_TunaLpPositionActionDecreaseLiquidity: typeof TunaLpPositionActionDecreaseLiquidity;
3690
- declare const schemas_TunaLpPositionActionIncreaseLiquidity: typeof TunaLpPositionActionIncreaseLiquidity;
3691
- declare const schemas_TunaLpPositionActionLiquidate: typeof TunaLpPositionActionLiquidate;
3692
- declare const schemas_TunaLpPositionActionOpen: typeof TunaLpPositionActionOpen;
3693
- declare const schemas_TunaLpPositionActionParametersUpdate: typeof TunaLpPositionActionParametersUpdate;
3694
- declare const schemas_TunaLpPositionActionRepayDebt: typeof TunaLpPositionActionRepayDebt;
3695
- declare const schemas_TunaLpPositionAutoCompounding: typeof TunaLpPositionAutoCompounding;
3696
- declare const schemas_TunaLpPositionAutoCompoundingSchema: typeof TunaLpPositionAutoCompoundingSchema;
3697
- declare const schemas_TunaLpPositionDtoSchema: typeof TunaLpPositionDtoSchema;
3698
- declare const schemas_TunaLpPositionFlagsSchema: typeof TunaLpPositionFlagsSchema;
3699
- declare const schemas_TunaLpPositionHistorical: typeof TunaLpPositionHistorical;
3700
- declare const schemas_TunaLpPositionParameters: typeof TunaLpPositionParameters;
3701
- declare const schemas_TunaLpPositionTokenPrices: typeof TunaLpPositionTokenPrices;
3702
- declare const schemas_TunaLpPositionTransfer: typeof TunaLpPositionTransfer;
3703
- declare const schemas_TunaLpPositionValue: typeof TunaLpPositionValue;
3704
- declare const schemas_TunaPositionLegacy: typeof TunaPositionLegacy;
3705
- declare const schemas_TunaPositionPoolToken: typeof TunaPositionPoolToken;
3706
- declare const schemas_TunaPositionPoolTokenSchema: typeof TunaPositionPoolTokenSchema;
3707
- declare const schemas_TunaPositionState: typeof TunaPositionState;
3708
- declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
3709
- declare const schemas_TunaPositionTokenPnlSchema: typeof TunaPositionTokenPnlSchema;
3710
- declare const schemas_TunaSpotPositionState: typeof TunaSpotPositionState;
3711
- declare const schemas_TunaSpotPositionStateSchema: typeof TunaSpotPositionStateSchema;
3712
- declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscriptionResult;
3713
- declare const schemas_UsdPnlSchema: typeof UsdPnlSchema;
3714
- declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
3715
- declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
3716
- declare namespace schemas {
3717
- 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, 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, 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, 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_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, 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 };
3718
- }
3719
-
3720
- type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
3721
- type PoolProviderType = z.infer<typeof PoolProviderSchema>;
3722
- type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
3723
- type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
3724
- type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
3725
- type TradeHistoryActionType = z.infer<typeof TradeHistoryActionSchema>;
3726
- type TradeHistoryUIDirectionType = z.infer<typeof TradeHistoryUIDirectionSchema>;
3727
- type OrderHistoryOrderTypeType = z.infer<typeof OrderHistoryOrderTypeSchema>;
3728
- type OrderHistoryStatusType = z.infer<typeof OrderHistoryStatusSchema>;
3729
- type OrderHistoryUIDirectionType = z.infer<typeof OrderHistoryUIDirectionSchema>;
3730
- type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
3731
- type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
3732
- type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
3733
- type PaginationMeta = z.infer<typeof PaginationMeta$1>;
3734
- type Mint = z.infer<typeof Mint$1>;
3735
- type Market = z.infer<typeof Market$1>;
3736
- type TokenOraclePrice = z.infer<typeof TokenOraclePrice$1>;
3737
- type Vault = z.infer<typeof Vault$1>;
3738
- type VaultHistoricalStats = z.infer<typeof VaultHistoricalStats$1>;
3739
- type Pool = z.infer<typeof Pool$1>;
3740
- type Tick = z.infer<typeof Tick$1>;
3741
- type PoolTicks = z.infer<typeof PoolTicks$1>;
3742
- type PoolSwap = z.infer<typeof PoolSwap$1>;
3743
- type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
3744
- type OrderBook = z.infer<typeof OrderBook$1>;
3745
- type LendingPosition = z.infer<typeof LendingPosition$1>;
3746
- type TunaPosition = z.infer<typeof TunaPositionLegacy>;
3747
- type TunaLpPosition = z.infer<typeof TunaLpPositionHistorical>;
3748
- type TunaLpPositionV2 = z.infer<typeof TunaLpPositionDtoSchema>;
3749
- type TunaLpPositionAction = z.infer<typeof TunaLpPositionAction$1>;
3750
- type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
3751
- type LimitOrder = z.infer<typeof LimitOrder$1>;
3752
- type TradeHistoryEntry = z.infer<typeof TradeHistoryEntry$1>;
3753
- type OrderHistoryEntry = z.infer<typeof OrderHistoryEntry$1>;
3754
- type StakingPosition = z.infer<typeof StakingPosition$1>;
3755
- type StakingTreasury = z.infer<typeof StakingTreasury$1>;
3756
- type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
3757
- type StakingLeaderboardPosition = z.infer<typeof StakingLeaderboardPosition$1>;
3758
- type StakingPositionHistoryAction = z.infer<typeof StakingPositionHistoryAction$1>;
3759
- type PoolPriceCandle = z.infer<typeof PoolPriceCandle$1>;
3760
- type FeesStatsGroup = z.infer<typeof FeesStatsGroup$1>;
3761
- type StakingRevenueStatsGroup = z.infer<typeof StakingRevenueStatsGroup$1>;
3762
- type LimitOrderQuoteByInput = z.infer<typeof LimitOrderQuoteByInput$1>;
3763
- type LimitOrderQuoteByOutput = z.infer<typeof LimitOrderQuoteByOutput$1>;
3764
- type SwapQuoteByInput = z.infer<typeof SwapQuoteByInput$1>;
3765
- type SwapQuoteByOutput = z.infer<typeof SwapQuoteByOutput$1>;
3766
- type IncreaseSpotPositionQuote = z.infer<typeof IncreaseSpotPositionQuote$1>;
3767
- type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
3768
- type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
3769
- type TradableAmount = z.infer<typeof TradableAmount$1>;
3770
- type StateSnapshot = z.infer<typeof StateSnapshot$1>;
3771
- type SubscriptionPayload = {
3772
- pools?: {
3773
- address: string;
3774
- topics: PoolSubscriptionTopicType[];
3775
- orderBookPriceStep?: number;
3776
- isInverted?: boolean;
3777
- }[];
3778
- markets?: string[];
3779
- wallet?: {
3780
- address: string;
3781
- topics: WalletSubscriptionTopicType[];
3782
- };
3783
- };
3784
- type GetLimitOrderQuoteByInputArgs = {
3785
- pool: string;
3786
- amountIn: bigint;
3787
- aToB: boolean;
3788
- tickIndex: number;
3789
- };
3790
- type GetLimitOrderQuoteByOutputArgs = {
3791
- pool: string;
3792
- amountOut: bigint;
3793
- aToB: boolean;
3794
- tickIndex: number;
3795
- };
3796
- type GetSwapQuoteByInputArgs = {
3797
- pool: string;
3798
- amountIn: bigint;
3799
- aToB: boolean;
3800
- slippageToleranceBps?: number;
3801
- };
3802
- type GetSwapQuoteByOutputArgs = {
3803
- pool: string;
3804
- amountOut: bigint;
3805
- aToB: boolean;
3806
- slippageToleranceBps?: number;
3807
- };
3808
- type GetIncreaseSpotPositionQuoteArgs = {
3809
- market: string;
3810
- increaseAmount: bigint;
3811
- collateralToken: number;
3812
- positionToken: number;
3813
- leverage: number;
3814
- positionAmount?: bigint;
3815
- positionDebt?: bigint;
3816
- slippageTolerance?: number;
3817
- };
3818
- type GetDecreaseSpotPositionQuoteArgs = {
3819
- market: string;
3820
- decreaseAmount: bigint;
3821
- collateralToken: number;
3822
- positionToken: number;
3823
- leverage: number;
3824
- positionAmount: bigint;
3825
- positionDebt: bigint;
3826
- slippageTolerance?: number;
3827
- };
3828
- type GetCloseSpotPositionQuoteArgs = {
3829
- market: string;
3830
- decreasePercent: number;
3831
- collateralToken: number;
3832
- positionToken: number;
3833
- positionAmount: bigint;
3834
- positionDebt: bigint;
3835
- slippageTolerance?: number;
3836
- };
3837
- type GetTradableAmountArgs = {
3838
- market: string;
3839
- collateralToken: number;
3840
- positionToken: number;
3841
- availableBalance: bigint;
3842
- leverage: number;
3843
- positionAmount: bigint;
3844
- increase: boolean;
3845
- };
3846
- type GetUserLimitOrdersOptions = {
3847
- pool?: string[];
3848
- status?: LimitOrderStateType[];
3849
- openedAt?: {
3850
- from?: Date;
3851
- to?: Date;
3852
- };
3853
- cursor?: string;
3854
- limit?: number;
3855
- desc?: boolean;
3856
- };
3857
- type GetUserTradeHistoryOptions = {
3858
- pool?: string[];
3859
- action?: TradeHistoryActionType[];
3860
- uiDirection?: TradeHistoryUIDirectionType[];
3861
- cursor?: string;
3862
- limit?: number;
3863
- desc?: boolean;
3864
- };
3865
- type GetUserOrderHistoryOptions = {
3866
- pool?: string[];
3867
- orderType?: OrderHistoryOrderTypeType[];
3868
- uiDiretion?: OrderHistoryUIDirectionType[];
3869
- cursor?: string;
3870
- limit?: number;
3871
- desc?: boolean;
3872
- };
3873
- type GetLpPositionsOptions = {
3874
- filter?: "all" | "opened" | "closed";
3875
- afterPosition?: string;
3876
- openedAt?: {
3877
- from?: Date;
3878
- to?: Date;
3879
- };
3880
- closedAt?: {
3881
- from?: Date;
3882
- to?: Date;
3883
- };
3884
- };
3885
- type DurationInMs = number;
3886
- declare enum ProviderFilter {
3887
- ORCA = "orca",
3888
- FUSION = "fusion",
3889
- ALL = "all"
3890
- }
3891
- type GetPoolPriceCandlesOptions = {
3892
- from: Date;
3893
- to: Date;
3894
- candles: number;
3895
- interval: string;
3896
- };
3897
- type TunaApiClientConfig = {
3898
- /** Backend API URL */
3899
- baseURL: string;
3900
- /** Timeout of each request (for all of retries). Default: 5000ms */
3901
- timeout?: DurationInMs;
3902
- /**
3903
- * Number of times a HTTP request will be retried before the API returns a failure. Default: 3.
3904
- *
3905
- * The connection uses exponential back-off for the delay between retries. However,
3906
- * it will timeout regardless of the retries at the configured `timeout` time.
3907
- */
3908
- httpRetries?: number;
3909
- /**
3910
- * Optional headers to be included in every request.
3911
- */
3912
- headers?: HeadersInit;
3913
- };
3914
- declare class TunaApiClient {
3915
- private _baseURL;
3916
- get baseURL(): string;
3917
- private _timeout;
3918
- get timeout(): DurationInMs;
3919
- private _httpRetries;
3920
- get httpRetries(): number;
3921
- private _headers;
3922
- get headers(): HeadersInit;
3923
- constructor(baseURL: string, config?: Partial<Omit<TunaApiClientConfig, "baseURL">>);
3924
- setConfig(config: Partial<TunaApiClientConfig>): void;
3925
- private httpRequest;
3926
- getMints(): Promise<Mint[]>;
3927
- getMint(mintAddress: string): Promise<Mint>;
3928
- getMarkets(): Promise<Market[]>;
3929
- getMarket(marketAddress: string): Promise<Market>;
3930
- getOraclePrices(): Promise<TokenOraclePrice[]>;
3931
- getOraclePrice(mintAddress: string): Promise<TokenOraclePrice>;
3932
- getVaults(): Promise<Vault[]>;
3933
- getVault(vaultAddress: string): Promise<Vault>;
3934
- /**
3935
- * Returns vault historical data for selected time interval.
3936
- *
3937
- * Example usage: getVaultHistory('H3ifgix98vzi3yCPbmZDLTheeTRf2jykXx8FpY5L7Sfd', '2025-03-10', '2025-04-10')
3938
- */
3939
- getVaultHistory(vaultAddress: string, from: Date, to: Date): Promise<VaultHistoricalStats[]>;
3940
- getPools(providerFilter?: ProviderFilter): Promise<Pool[]>;
3941
- getPool(address: string): Promise<Pool>;
3942
- getPoolTicks(poolAddress: string): Promise<PoolTicks>;
3943
- getPoolSwaps(poolAddress: string): Promise<PoolSwap[]>;
3944
- getPoolOrderBook(poolAddress: string, priceStep: number, inverted: boolean): Promise<OrderBook>;
3945
- getPoolPriceCandles(poolAddress: string, options: GetPoolPriceCandlesOptions): Promise<PoolPriceCandle[]>;
3946
- getStakingTreasury(): Promise<StakingTreasury>;
3947
- getStakingLeaderboard(page: number, pageSize: number, search?: string): Promise<StakingLeaderboardPage>;
3948
- getUserLendingPositions(userAddress: string): Promise<LendingPosition[]>;
3949
- getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
3950
- getUserTunaPositions(userAddress: string): Promise<TunaLpPositionV2[]>;
3951
- getUserTunaPositionByAddress(userAddress: string, tunaPositionAddress: string): Promise<TunaLpPositionV2>;
3952
- getUserLpPositions(userAddress: string, options?: GetLpPositionsOptions): Promise<TunaLpPosition[]>;
3953
- getUserLpPositionActions(userAddress: string, positionAddress: string): Promise<TunaLpPositionAction[]>;
3954
- getUserTunaSpotPositions(userAddress: string): Promise<TunaSpotPosition[]>;
3955
- getUserTunaSpotPositionByAddress(userAddress: string, tunaSpotPositionAddress: string): Promise<TunaSpotPosition>;
3956
- getUserLimitOrders(userAddress: string, options?: GetUserLimitOrdersOptions): Promise<LimitOrder[]>;
3957
- getUserLimitOrderByAddress(userAddress: string, limitOrderAddress: string): Promise<LimitOrder>;
3958
- getUserTradeHistory(userAddress: string, options?: GetUserTradeHistoryOptions): Promise<TradeHistoryEntry[]>;
3959
- getUserOrderHistory(userAddress: string, options?: GetUserOrderHistoryOptions): Promise<OrderHistoryEntry[]>;
3960
- getUserStakingPosition(userAddress: string): Promise<StakingPosition>;
3961
- getUserStakingPositionHistory(userAddress: string): Promise<StakingPositionHistoryAction[]>;
3962
- getFeesStats(from: Date, to: Date, interval: string): Promise<FeesStatsGroup[]>;
3963
- getStakingRevenueStats(from: Date, to: Date): Promise<StakingRevenueStatsGroup[]>;
3964
- getLimitOrderQuoteByInput(args: GetLimitOrderQuoteByInputArgs, config?: {
3965
- abortSignal?: AbortSignal;
3966
- }): Promise<LimitOrderQuoteByInput>;
3967
- getLimitOrderQuoteByOutput(args: GetLimitOrderQuoteByOutputArgs, config?: {
3968
- abortSignal?: AbortSignal;
3969
- }): Promise<LimitOrderQuoteByOutput>;
3970
- getSwapQuoteByInput(args: GetSwapQuoteByInputArgs, config?: {
3971
- abortSignal?: AbortSignal;
3972
- }): Promise<SwapQuoteByInput>;
3973
- getSwapQuoteByOutput(args: GetSwapQuoteByOutputArgs, config?: {
3974
- abortSignal?: AbortSignal;
3975
- }): Promise<SwapQuoteByOutput>;
3976
- getIncreaseSpotPositionQuote(args: GetIncreaseSpotPositionQuoteArgs, config?: {
3977
- abortSignal?: AbortSignal;
3978
- }): Promise<IncreaseSpotPositionQuote>;
3979
- getDecreaseSpotPositionQuote(args: GetDecreaseSpotPositionQuoteArgs, config?: {
3980
- abortSignal?: AbortSignal;
3981
- }): Promise<DecreaseSpotPositionQuote>;
3982
- getCloseSpotPositionQuote(args: GetCloseSpotPositionQuoteArgs, config?: {
3983
- abortSignal?: AbortSignal;
3984
- }): Promise<CloseSpotPositionQuote>;
3985
- getTradableAmount(args: GetTradableAmountArgs, config?: {
3986
- abortSignal?: AbortSignal;
3987
- }): Promise<TradableAmount>;
3988
- getUpdatesStream(): Promise<EventSource>;
3989
- updateStreamSubscription(streamId: string, subscription: SubscriptionPayload): Promise<unknown>;
3990
- private buildURL;
3991
- private appendUrlSearchParams;
3992
- }
3993
-
3994
- 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 OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, 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 };