@crypticdot/defituna-api 1.10.5 → 1.10.6
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 +90 -28
- package/dist/index.d.ts +90 -28
- package/dist/index.js +457 -448
- package/dist/index.mjs +437 -428
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,6 +79,7 @@ __export(schemas_exports, {
|
|
|
79
79
|
OrderBookEntry: () => OrderBookEntry,
|
|
80
80
|
OrderBookNotification: () => OrderBookNotification,
|
|
81
81
|
OrderBookNotificationMeta: () => OrderBookNotificationMeta,
|
|
82
|
+
OrderBookWrapper: () => OrderBookWrapper,
|
|
82
83
|
OrderHistoryEntry: () => OrderHistoryEntry,
|
|
83
84
|
OrderHistoryEntryNotification: () => OrderHistoryEntryNotification,
|
|
84
85
|
OrderHistoryOrderType: () => OrderHistoryOrderType,
|
|
@@ -157,7 +158,7 @@ __export(schemas_exports, {
|
|
|
157
158
|
WalletSubscriptionTopic: () => WalletSubscriptionTopic,
|
|
158
159
|
WalletSubscriptionTopicSchema: () => WalletSubscriptionTopicSchema
|
|
159
160
|
});
|
|
160
|
-
var
|
|
161
|
+
var import_zod9 = require("zod");
|
|
161
162
|
|
|
162
163
|
// src/client/schemas/basic.ts
|
|
163
164
|
var import_zod = require("zod");
|
|
@@ -182,34 +183,53 @@ var PoolProvider = {
|
|
|
182
183
|
};
|
|
183
184
|
var PoolProviderSchema = import_zod.z.enum([PoolProvider.ORCA, ...Object.values(PoolProvider)]);
|
|
184
185
|
|
|
186
|
+
// src/client/schemas/order_book.ts
|
|
187
|
+
var import_zod2 = __toESM(require("zod"));
|
|
188
|
+
var OrderBookEntry = import_zod2.default.object({
|
|
189
|
+
concentratedAmount: import_zod2.default.coerce.bigint(),
|
|
190
|
+
concentratedAmountQuote: import_zod2.default.coerce.bigint(),
|
|
191
|
+
concentratedTotal: import_zod2.default.coerce.bigint(),
|
|
192
|
+
concentratedTotalQuote: import_zod2.default.coerce.bigint(),
|
|
193
|
+
limitAmount: import_zod2.default.coerce.bigint(),
|
|
194
|
+
limitAmountQuote: import_zod2.default.coerce.bigint(),
|
|
195
|
+
limitTotal: import_zod2.default.coerce.bigint(),
|
|
196
|
+
limitTotalQuote: import_zod2.default.coerce.bigint(),
|
|
197
|
+
price: import_zod2.default.number(),
|
|
198
|
+
askSide: import_zod2.default.boolean()
|
|
199
|
+
});
|
|
200
|
+
var OrderBook = import_zod2.default.object({
|
|
201
|
+
entries: OrderBookEntry.array(),
|
|
202
|
+
poolPrice: import_zod2.default.number()
|
|
203
|
+
});
|
|
204
|
+
|
|
185
205
|
// src/client/schemas/state_snapshot.ts
|
|
186
|
-
var
|
|
206
|
+
var import_zod8 = __toESM(require("zod"));
|
|
187
207
|
|
|
188
208
|
// src/client/schemas/limit_orders.ts
|
|
189
|
-
var
|
|
209
|
+
var import_zod5 = require("zod");
|
|
190
210
|
|
|
191
211
|
// src/client/schemas/mint.ts
|
|
192
|
-
var
|
|
193
|
-
var Mint =
|
|
194
|
-
mint:
|
|
195
|
-
symbol:
|
|
196
|
-
name:
|
|
197
|
-
logo:
|
|
198
|
-
decimals:
|
|
212
|
+
var import_zod3 = require("zod");
|
|
213
|
+
var Mint = import_zod3.z.object({
|
|
214
|
+
mint: import_zod3.z.string(),
|
|
215
|
+
symbol: import_zod3.z.string(),
|
|
216
|
+
name: import_zod3.z.string(),
|
|
217
|
+
logo: import_zod3.z.string(),
|
|
218
|
+
decimals: import_zod3.z.number()
|
|
199
219
|
});
|
|
200
220
|
|
|
201
221
|
// src/client/schemas/positions_shared.ts
|
|
202
|
-
var
|
|
203
|
-
var TunaPositionPoolSchema =
|
|
204
|
-
addr:
|
|
205
|
-
price:
|
|
206
|
-
tickSpacing:
|
|
222
|
+
var import_zod4 = __toESM(require("zod"));
|
|
223
|
+
var TunaPositionPoolSchema = import_zod4.default.object({
|
|
224
|
+
addr: import_zod4.default.string(),
|
|
225
|
+
price: import_zod4.default.number(),
|
|
226
|
+
tickSpacing: import_zod4.default.number()
|
|
207
227
|
});
|
|
208
228
|
var TunaPositionPoolToken = {
|
|
209
229
|
A: "a",
|
|
210
230
|
B: "b"
|
|
211
231
|
};
|
|
212
|
-
var TunaPositionPoolTokenSchema =
|
|
232
|
+
var TunaPositionPoolTokenSchema = import_zod4.default.enum(Object.values(TunaPositionPoolToken));
|
|
213
233
|
|
|
214
234
|
// src/client/schemas/limit_orders.ts
|
|
215
235
|
var LimitOrderState = {
|
|
@@ -219,27 +239,27 @@ var LimitOrderState = {
|
|
|
219
239
|
COMPLETE: "complete",
|
|
220
240
|
CANCELLED: "cancelled"
|
|
221
241
|
};
|
|
222
|
-
var LimitOrderStateSchema =
|
|
223
|
-
var LimitOrder =
|
|
224
|
-
address:
|
|
225
|
-
orderMint:
|
|
242
|
+
var LimitOrderStateSchema = import_zod5.z.enum([LimitOrderState.OPEN, ...Object.values(LimitOrderState)]);
|
|
243
|
+
var LimitOrder = import_zod5.z.object({
|
|
244
|
+
address: import_zod5.z.string(),
|
|
245
|
+
orderMint: import_zod5.z.string(),
|
|
226
246
|
mintA: Mint,
|
|
227
247
|
mintB: Mint,
|
|
228
248
|
pool: TunaPositionPoolSchema,
|
|
229
249
|
state: LimitOrderStateSchema,
|
|
230
|
-
aToB:
|
|
231
|
-
tickIndex:
|
|
232
|
-
fillRatio:
|
|
233
|
-
openTxSignature:
|
|
234
|
-
closeTxSignature:
|
|
250
|
+
aToB: import_zod5.z.boolean(),
|
|
251
|
+
tickIndex: import_zod5.z.number(),
|
|
252
|
+
fillRatio: import_zod5.z.number(),
|
|
253
|
+
openTxSignature: import_zod5.z.string(),
|
|
254
|
+
closeTxSignature: import_zod5.z.nullable(import_zod5.z.string()),
|
|
235
255
|
amountIn: AmountWithUsdSchema,
|
|
236
256
|
amountOut: AmountWithUsdSchema,
|
|
237
|
-
openedAt:
|
|
238
|
-
closedAt:
|
|
257
|
+
openedAt: import_zod5.z.coerce.date(),
|
|
258
|
+
closedAt: import_zod5.z.nullable(import_zod5.z.coerce.date())
|
|
239
259
|
});
|
|
240
260
|
|
|
241
261
|
// src/client/schemas/lp_positions.ts
|
|
242
|
-
var
|
|
262
|
+
var import_zod6 = __toESM(require("zod"));
|
|
243
263
|
var LpPositionLimitOrderSwap = {
|
|
244
264
|
NO_SWAP: "no_swap",
|
|
245
265
|
SWAP_TO_TOKEN_A: "swap_to_token_a",
|
|
@@ -270,46 +290,46 @@ var LpPositionsActionType = {
|
|
|
270
290
|
SET_FLAGS: "set_flags",
|
|
271
291
|
SET_REBALANCE_THRESHOLD: "set_rebalance_threshold"
|
|
272
292
|
};
|
|
273
|
-
var LpPositionLimitOrderSwapSchema =
|
|
274
|
-
var LpPositionAutoCompoundSchema =
|
|
275
|
-
var LpPositionRebalanceSchema =
|
|
276
|
-
var LpPositionsActionTypeSchema =
|
|
293
|
+
var LpPositionLimitOrderSwapSchema = import_zod6.default.enum(Object.values(LpPositionLimitOrderSwap));
|
|
294
|
+
var LpPositionAutoCompoundSchema = import_zod6.default.enum(Object.values(LpPositionAutoCompound));
|
|
295
|
+
var LpPositionRebalanceSchema = import_zod6.default.enum(Object.values(LpPositionRebalance));
|
|
296
|
+
var LpPositionsActionTypeSchema = import_zod6.default.enum(Object.values(LpPositionsActionType));
|
|
277
297
|
var TunaPositionState = {
|
|
278
298
|
OPEN: "open",
|
|
279
299
|
LIQUIDATED: "liquidated",
|
|
280
300
|
CLOSED_BY_LIMIT_ORDER: "closed_by_limit_order",
|
|
281
301
|
CLOSED: "closed"
|
|
282
302
|
};
|
|
283
|
-
var TunaPositionStateSchema =
|
|
303
|
+
var TunaPositionStateSchema = import_zod6.default.enum([TunaPositionState.OPEN, ...Object.values(TunaPositionState)]);
|
|
284
304
|
var TunaLpPositionAutoCompounding = {
|
|
285
305
|
WITH_LEVERAGE: "with_leverage",
|
|
286
306
|
WITHOUT_LEVERAGE: "without_leverage"
|
|
287
307
|
};
|
|
288
|
-
var TunaLpPositionAutoCompoundingSchema =
|
|
308
|
+
var TunaLpPositionAutoCompoundingSchema = import_zod6.default.enum(
|
|
289
309
|
Object.values(TunaLpPositionAutoCompounding)
|
|
290
310
|
);
|
|
291
|
-
var TunaPositionTokenPnlSchema =
|
|
292
|
-
amount:
|
|
293
|
-
bps:
|
|
294
|
-
});
|
|
295
|
-
var TunaLpPositionFlagsSchema =
|
|
296
|
-
lowerLimitOrderSwapToToken:
|
|
297
|
-
upperLimitOrderSwapToToken:
|
|
298
|
-
autoCompounding:
|
|
299
|
-
autoRebalancing:
|
|
300
|
-
});
|
|
301
|
-
var TunaLpPositionDtoSchema =
|
|
302
|
-
address:
|
|
303
|
-
authority:
|
|
304
|
-
version:
|
|
311
|
+
var TunaPositionTokenPnlSchema = import_zod6.default.object({
|
|
312
|
+
amount: import_zod6.default.coerce.bigint(),
|
|
313
|
+
bps: import_zod6.default.number()
|
|
314
|
+
});
|
|
315
|
+
var TunaLpPositionFlagsSchema = import_zod6.default.object({
|
|
316
|
+
lowerLimitOrderSwapToToken: import_zod6.default.nullable(TunaPositionPoolTokenSchema),
|
|
317
|
+
upperLimitOrderSwapToToken: import_zod6.default.nullable(TunaPositionPoolTokenSchema),
|
|
318
|
+
autoCompounding: import_zod6.default.nullable(TunaLpPositionAutoCompoundingSchema),
|
|
319
|
+
autoRebalancing: import_zod6.default.boolean()
|
|
320
|
+
});
|
|
321
|
+
var TunaLpPositionDtoSchema = import_zod6.default.object({
|
|
322
|
+
address: import_zod6.default.string(),
|
|
323
|
+
authority: import_zod6.default.string(),
|
|
324
|
+
version: import_zod6.default.number(),
|
|
305
325
|
state: TunaPositionStateSchema,
|
|
306
|
-
positionMint:
|
|
307
|
-
liquidity:
|
|
308
|
-
tickLowerIndex:
|
|
309
|
-
tickUpperIndex:
|
|
310
|
-
lowerLimitOrderPrice:
|
|
311
|
-
upperLimitOrderPrice:
|
|
312
|
-
entryPrice:
|
|
326
|
+
positionMint: import_zod6.default.string(),
|
|
327
|
+
liquidity: import_zod6.default.coerce.bigint(),
|
|
328
|
+
tickLowerIndex: import_zod6.default.number(),
|
|
329
|
+
tickUpperIndex: import_zod6.default.number(),
|
|
330
|
+
lowerLimitOrderPrice: import_zod6.default.number(),
|
|
331
|
+
upperLimitOrderPrice: import_zod6.default.number(),
|
|
332
|
+
entryPrice: import_zod6.default.number(),
|
|
313
333
|
flags: TunaLpPositionFlagsSchema,
|
|
314
334
|
mintA: Mint,
|
|
315
335
|
mintB: Mint,
|
|
@@ -317,10 +337,10 @@ var TunaLpPositionDtoSchema = import_zod5.default.object({
|
|
|
317
337
|
marketMaker: PoolProviderSchema,
|
|
318
338
|
depositedCollateralA: AmountWithUsdSchema,
|
|
319
339
|
depositedCollateralB: AmountWithUsdSchema,
|
|
320
|
-
leverage:
|
|
321
|
-
maxLeverage:
|
|
322
|
-
liquidationPriceLower:
|
|
323
|
-
liquidationPriceUpper:
|
|
340
|
+
leverage: import_zod6.default.number(),
|
|
341
|
+
maxLeverage: import_zod6.default.number(),
|
|
342
|
+
liquidationPriceLower: import_zod6.default.number(),
|
|
343
|
+
liquidationPriceUpper: import_zod6.default.number(),
|
|
324
344
|
initialDebtA: AmountWithUsdSchema,
|
|
325
345
|
initialDebtB: AmountWithUsdSchema,
|
|
326
346
|
currentDebtA: AmountWithUsdSchema,
|
|
@@ -336,50 +356,50 @@ var TunaLpPositionDtoSchema = import_zod5.default.object({
|
|
|
336
356
|
pnlA: TokensPnlSchema,
|
|
337
357
|
pnlB: TokensPnlSchema,
|
|
338
358
|
pnlUsd: UsdPnlSchema,
|
|
339
|
-
openedAt:
|
|
340
|
-
closedAt:
|
|
359
|
+
openedAt: import_zod6.default.coerce.date(),
|
|
360
|
+
closedAt: import_zod6.default.nullable(import_zod6.default.coerce.date())
|
|
341
361
|
});
|
|
342
|
-
var TunaLpPositionHistorical =
|
|
343
|
-
positionAddress:
|
|
344
|
-
authority:
|
|
345
|
-
pool:
|
|
362
|
+
var TunaLpPositionHistorical = import_zod6.default.object({
|
|
363
|
+
positionAddress: import_zod6.default.string(),
|
|
364
|
+
authority: import_zod6.default.string(),
|
|
365
|
+
pool: import_zod6.default.string(),
|
|
346
366
|
state: TunaPositionStateSchema,
|
|
347
|
-
lowerPrice:
|
|
348
|
-
upperPrice:
|
|
349
|
-
lowerLimitOrder:
|
|
350
|
-
upperLimitOrder:
|
|
367
|
+
lowerPrice: import_zod6.default.number(),
|
|
368
|
+
upperPrice: import_zod6.default.number(),
|
|
369
|
+
lowerLimitOrder: import_zod6.default.number().nullable(),
|
|
370
|
+
upperLimitOrder: import_zod6.default.number().nullable(),
|
|
351
371
|
marketMaker: PoolProviderSchema,
|
|
352
|
-
openedAt:
|
|
353
|
-
closedAt:
|
|
354
|
-
totalValueUsd:
|
|
355
|
-
leverage:
|
|
356
|
-
initialLeverage:
|
|
357
|
-
totalDepositUsd:
|
|
358
|
-
totalWithdrawnUsd:
|
|
359
|
-
feesSumUsd:
|
|
360
|
-
closedPnlSumUsd:
|
|
361
|
-
entryPrice:
|
|
362
|
-
exitPrice:
|
|
363
|
-
});
|
|
364
|
-
var TunaPositionLegacy =
|
|
365
|
-
address:
|
|
366
|
-
authority:
|
|
367
|
-
version:
|
|
372
|
+
openedAt: import_zod6.default.coerce.date(),
|
|
373
|
+
closedAt: import_zod6.default.coerce.date().nullable(),
|
|
374
|
+
totalValueUsd: import_zod6.default.number(),
|
|
375
|
+
leverage: import_zod6.default.number(),
|
|
376
|
+
initialLeverage: import_zod6.default.number(),
|
|
377
|
+
totalDepositUsd: import_zod6.default.number(),
|
|
378
|
+
totalWithdrawnUsd: import_zod6.default.number(),
|
|
379
|
+
feesSumUsd: import_zod6.default.number(),
|
|
380
|
+
closedPnlSumUsd: import_zod6.default.number(),
|
|
381
|
+
entryPrice: import_zod6.default.number(),
|
|
382
|
+
exitPrice: import_zod6.default.number().nullable()
|
|
383
|
+
});
|
|
384
|
+
var TunaPositionLegacy = import_zod6.default.object({
|
|
385
|
+
address: import_zod6.default.string(),
|
|
386
|
+
authority: import_zod6.default.string(),
|
|
387
|
+
version: import_zod6.default.number(),
|
|
368
388
|
state: TunaPositionStateSchema,
|
|
369
|
-
positionMint:
|
|
370
|
-
liquidity:
|
|
371
|
-
tickLowerIndex:
|
|
372
|
-
tickUpperIndex:
|
|
373
|
-
entrySqrtPrice:
|
|
374
|
-
lowerLimitOrderSqrtPrice:
|
|
375
|
-
upperLimitOrderSqrtPrice:
|
|
376
|
-
flags:
|
|
377
|
-
pool:
|
|
378
|
-
poolSqrtPrice:
|
|
389
|
+
positionMint: import_zod6.default.string(),
|
|
390
|
+
liquidity: import_zod6.default.coerce.bigint(),
|
|
391
|
+
tickLowerIndex: import_zod6.default.number(),
|
|
392
|
+
tickUpperIndex: import_zod6.default.number(),
|
|
393
|
+
entrySqrtPrice: import_zod6.default.coerce.bigint(),
|
|
394
|
+
lowerLimitOrderSqrtPrice: import_zod6.default.coerce.bigint(),
|
|
395
|
+
upperLimitOrderSqrtPrice: import_zod6.default.coerce.bigint(),
|
|
396
|
+
flags: import_zod6.default.number(),
|
|
397
|
+
pool: import_zod6.default.string(),
|
|
398
|
+
poolSqrtPrice: import_zod6.default.coerce.bigint(),
|
|
379
399
|
depositedCollateralA: AmountWithoutUsdSchema,
|
|
380
400
|
depositedCollateralB: AmountWithoutUsdSchema,
|
|
381
|
-
depositedCollateralUsd:
|
|
382
|
-
amount:
|
|
401
|
+
depositedCollateralUsd: import_zod6.default.object({
|
|
402
|
+
amount: import_zod6.default.number()
|
|
383
403
|
}),
|
|
384
404
|
loanFundsA: AmountWithUsdSchema,
|
|
385
405
|
loanFundsB: AmountWithUsdSchema,
|
|
@@ -396,47 +416,47 @@ var TunaPositionLegacy = import_zod5.default.object({
|
|
|
396
416
|
pnlA: TokensPnlSchema,
|
|
397
417
|
pnlB: TokensPnlSchema,
|
|
398
418
|
pnlUsd: UsdPnlSchema,
|
|
399
|
-
openedAt:
|
|
400
|
-
updatedAtSlot:
|
|
401
|
-
closedAt:
|
|
402
|
-
});
|
|
403
|
-
var TunaLpPositionParameters =
|
|
404
|
-
lowerPrice:
|
|
405
|
-
upperPrice:
|
|
406
|
-
lowerLimitOrder:
|
|
407
|
-
upperLimitOrder:
|
|
419
|
+
openedAt: import_zod6.default.coerce.date(),
|
|
420
|
+
updatedAtSlot: import_zod6.default.coerce.bigint(),
|
|
421
|
+
closedAt: import_zod6.default.nullable(import_zod6.default.coerce.date())
|
|
422
|
+
});
|
|
423
|
+
var TunaLpPositionParameters = import_zod6.default.object({
|
|
424
|
+
lowerPrice: import_zod6.default.number(),
|
|
425
|
+
upperPrice: import_zod6.default.number(),
|
|
426
|
+
lowerLimitOrder: import_zod6.default.number().nullable(),
|
|
427
|
+
upperLimitOrder: import_zod6.default.number().nullable(),
|
|
408
428
|
lowerLimitOrderSwap: LpPositionLimitOrderSwapSchema,
|
|
409
429
|
upperLimitOrderSwap: LpPositionLimitOrderSwapSchema,
|
|
410
430
|
autoCompound: LpPositionAutoCompoundSchema,
|
|
411
431
|
rebalance: LpPositionRebalanceSchema,
|
|
412
|
-
rebalanceThresholdTicks:
|
|
413
|
-
});
|
|
414
|
-
var TunaLpPositionValue =
|
|
415
|
-
totalValueA:
|
|
416
|
-
totalValueB:
|
|
417
|
-
totalValueUsd:
|
|
418
|
-
loanFundsA:
|
|
419
|
-
loanFundsB:
|
|
420
|
-
loanFundsUsd:
|
|
421
|
-
leverage:
|
|
422
|
-
});
|
|
423
|
-
var TunaLpPositionTransfer =
|
|
424
|
-
amountA:
|
|
425
|
-
amountB:
|
|
426
|
-
amountUsd:
|
|
427
|
-
});
|
|
428
|
-
var TunaLpPositionTokenPrices =
|
|
429
|
-
tokenPriceA:
|
|
430
|
-
tokenPriceB:
|
|
431
|
-
});
|
|
432
|
-
var TunaLpPositionActionOpen =
|
|
432
|
+
rebalanceThresholdTicks: import_zod6.default.number()
|
|
433
|
+
});
|
|
434
|
+
var TunaLpPositionValue = import_zod6.default.object({
|
|
435
|
+
totalValueA: import_zod6.default.number(),
|
|
436
|
+
totalValueB: import_zod6.default.number(),
|
|
437
|
+
totalValueUsd: import_zod6.default.number(),
|
|
438
|
+
loanFundsA: import_zod6.default.number(),
|
|
439
|
+
loanFundsB: import_zod6.default.number(),
|
|
440
|
+
loanFundsUsd: import_zod6.default.number(),
|
|
441
|
+
leverage: import_zod6.default.number()
|
|
442
|
+
});
|
|
443
|
+
var TunaLpPositionTransfer = import_zod6.default.object({
|
|
444
|
+
amountA: import_zod6.default.number(),
|
|
445
|
+
amountB: import_zod6.default.number(),
|
|
446
|
+
amountUsd: import_zod6.default.number()
|
|
447
|
+
});
|
|
448
|
+
var TunaLpPositionTokenPrices = import_zod6.default.object({
|
|
449
|
+
tokenPriceA: import_zod6.default.number(),
|
|
450
|
+
tokenPriceB: import_zod6.default.number()
|
|
451
|
+
});
|
|
452
|
+
var TunaLpPositionActionOpen = import_zod6.default.object({
|
|
433
453
|
parameters: TunaLpPositionParameters
|
|
434
454
|
});
|
|
435
|
-
var TunaLpPositionActionClose =
|
|
455
|
+
var TunaLpPositionActionClose = import_zod6.default.object({
|
|
436
456
|
toOwner: TunaLpPositionTransfer.nullable(),
|
|
437
457
|
prices: TunaLpPositionTokenPrices.nullable()
|
|
438
458
|
});
|
|
439
|
-
var TunaLpPositionActionIncreaseLiquidity =
|
|
459
|
+
var TunaLpPositionActionIncreaseLiquidity = import_zod6.default.object({
|
|
440
460
|
fromPosition: TunaLpPositionValue.nullable(),
|
|
441
461
|
toPosition: TunaLpPositionValue,
|
|
442
462
|
fromOwner: TunaLpPositionTransfer,
|
|
@@ -444,9 +464,9 @@ var TunaLpPositionActionIncreaseLiquidity = import_zod5.default.object({
|
|
|
444
464
|
protocolFees: TunaLpPositionTransfer,
|
|
445
465
|
prices: TunaLpPositionTokenPrices
|
|
446
466
|
});
|
|
447
|
-
var TunaLpPositionActionDecreaseLiquidity =
|
|
448
|
-
withdrawPercent:
|
|
449
|
-
closedPnlUsd:
|
|
467
|
+
var TunaLpPositionActionDecreaseLiquidity = import_zod6.default.object({
|
|
468
|
+
withdrawPercent: import_zod6.default.number(),
|
|
469
|
+
closedPnlUsd: import_zod6.default.number(),
|
|
450
470
|
fromPosition: TunaLpPositionValue,
|
|
451
471
|
toPosition: TunaLpPositionValue.nullable(),
|
|
452
472
|
toOwner: TunaLpPositionTransfer,
|
|
@@ -454,28 +474,28 @@ var TunaLpPositionActionDecreaseLiquidity = import_zod5.default.object({
|
|
|
454
474
|
collectedFees: TunaLpPositionTransfer,
|
|
455
475
|
prices: TunaLpPositionTokenPrices
|
|
456
476
|
});
|
|
457
|
-
var TunaLpPositionActionLiquidate =
|
|
458
|
-
withdrawPercent:
|
|
477
|
+
var TunaLpPositionActionLiquidate = import_zod6.default.object({
|
|
478
|
+
withdrawPercent: import_zod6.default.number(),
|
|
459
479
|
fromPosition: TunaLpPositionValue,
|
|
460
480
|
toLending: TunaLpPositionTransfer,
|
|
461
481
|
protocolFees: TunaLpPositionTransfer,
|
|
462
482
|
prices: TunaLpPositionTokenPrices
|
|
463
483
|
});
|
|
464
|
-
var TunaLpPositionActionRepayDebt =
|
|
484
|
+
var TunaLpPositionActionRepayDebt = import_zod6.default.object({
|
|
465
485
|
fromPosition: TunaLpPositionValue,
|
|
466
486
|
toPosition: TunaLpPositionValue,
|
|
467
487
|
fromOwner: TunaLpPositionTransfer,
|
|
468
488
|
toLending: TunaLpPositionTransfer,
|
|
469
489
|
prices: TunaLpPositionTokenPrices
|
|
470
490
|
});
|
|
471
|
-
var TunaLpPositionActionCollectFees =
|
|
472
|
-
closedPnlUsd:
|
|
491
|
+
var TunaLpPositionActionCollectFees = import_zod6.default.object({
|
|
492
|
+
closedPnlUsd: import_zod6.default.number(),
|
|
473
493
|
position: TunaLpPositionValue,
|
|
474
494
|
collectedFees: TunaLpPositionTransfer,
|
|
475
495
|
toOwner: TunaLpPositionTransfer,
|
|
476
496
|
prices: TunaLpPositionTokenPrices
|
|
477
497
|
});
|
|
478
|
-
var TunaLpPositionActionCollectAndCompoundFees =
|
|
498
|
+
var TunaLpPositionActionCollectAndCompoundFees = import_zod6.default.object({
|
|
479
499
|
fromPosition: TunaLpPositionValue,
|
|
480
500
|
toPosition: TunaLpPositionValue,
|
|
481
501
|
collectedFees: TunaLpPositionTransfer,
|
|
@@ -483,15 +503,15 @@ var TunaLpPositionActionCollectAndCompoundFees = import_zod5.default.object({
|
|
|
483
503
|
protocolFees: TunaLpPositionTransfer,
|
|
484
504
|
prices: TunaLpPositionTokenPrices
|
|
485
505
|
});
|
|
486
|
-
var TunaLpPositionActionParametersUpdate =
|
|
506
|
+
var TunaLpPositionActionParametersUpdate = import_zod6.default.object({
|
|
487
507
|
fromParameters: TunaLpPositionParameters,
|
|
488
508
|
toParameters: TunaLpPositionParameters
|
|
489
509
|
});
|
|
490
|
-
var TunaLpPositionAction =
|
|
510
|
+
var TunaLpPositionAction = import_zod6.default.object({
|
|
491
511
|
action: LpPositionsActionTypeSchema,
|
|
492
|
-
txSignature:
|
|
493
|
-
txTimestamp:
|
|
494
|
-
data:
|
|
512
|
+
txSignature: import_zod6.default.string(),
|
|
513
|
+
txTimestamp: import_zod6.default.coerce.date(),
|
|
514
|
+
data: import_zod6.default.object({
|
|
495
515
|
/** defined for: IncreaseLiquidity, DecreaseLiquidity, Liquidate, ExecuteLimitOrder, RepayDebt, CollectAndCompoundFees */
|
|
496
516
|
fromPosition: TunaLpPositionValue.optional().nullable(),
|
|
497
517
|
/** defined for: IncreaseLiquidity, DecreaseLiquidity, Liquidate, ExecuteLimitOrder, RepayDebt, CollectAndCompoundFees */
|
|
@@ -519,30 +539,30 @@ var TunaLpPositionAction = import_zod5.default.object({
|
|
|
519
539
|
/** defined for: ParametersUpdate */
|
|
520
540
|
toParameters: TunaLpPositionParameters.optional(),
|
|
521
541
|
/** defined for: DecreaseLiquidity */
|
|
522
|
-
withdrawPercent:
|
|
542
|
+
withdrawPercent: import_zod6.default.number().optional(),
|
|
523
543
|
/** defined for: DecreaseLiquidity, CollectFees */
|
|
524
|
-
closedPnlUsd:
|
|
544
|
+
closedPnlUsd: import_zod6.default.number().optional()
|
|
525
545
|
})
|
|
526
546
|
});
|
|
527
547
|
|
|
528
548
|
// src/client/schemas/spot_positions.ts
|
|
529
|
-
var
|
|
549
|
+
var import_zod7 = require("zod");
|
|
530
550
|
var TunaSpotPositionState = {
|
|
531
551
|
OPEN: "open",
|
|
532
552
|
CLOSED: "closed"
|
|
533
553
|
};
|
|
534
|
-
var TunaSpotPositionStateSchema =
|
|
554
|
+
var TunaSpotPositionStateSchema = import_zod7.z.enum([
|
|
535
555
|
TunaSpotPositionState.OPEN,
|
|
536
556
|
...Object.values(TunaSpotPositionState)
|
|
537
557
|
]);
|
|
538
|
-
var TunaSpotPosition =
|
|
539
|
-
address:
|
|
540
|
-
authority:
|
|
541
|
-
version:
|
|
558
|
+
var TunaSpotPosition = import_zod7.z.object({
|
|
559
|
+
address: import_zod7.z.string(),
|
|
560
|
+
authority: import_zod7.z.string(),
|
|
561
|
+
version: import_zod7.z.number(),
|
|
542
562
|
state: TunaSpotPositionStateSchema,
|
|
543
|
-
lowerLimitOrderPrice:
|
|
544
|
-
upperLimitOrderPrice:
|
|
545
|
-
entryPrice:
|
|
563
|
+
lowerLimitOrderPrice: import_zod7.z.number(),
|
|
564
|
+
upperLimitOrderPrice: import_zod7.z.number(),
|
|
565
|
+
entryPrice: import_zod7.z.number(),
|
|
546
566
|
mintA: Mint,
|
|
547
567
|
mintB: Mint,
|
|
548
568
|
pool: TunaPositionPoolSchema,
|
|
@@ -553,76 +573,81 @@ var TunaSpotPosition = import_zod6.z.object({
|
|
|
553
573
|
initialDebt: AmountWithUsdSchema,
|
|
554
574
|
currentDebt: AmountWithUsdSchema,
|
|
555
575
|
total: AmountWithUsdSchema,
|
|
556
|
-
leverage:
|
|
557
|
-
maxLeverage:
|
|
558
|
-
liquidationPrice:
|
|
576
|
+
leverage: import_zod7.z.number(),
|
|
577
|
+
maxLeverage: import_zod7.z.number(),
|
|
578
|
+
liquidationPrice: import_zod7.z.number(),
|
|
559
579
|
pnlUsd: UsdPnlSchema,
|
|
560
|
-
openedAt:
|
|
561
|
-
closedAt:
|
|
580
|
+
openedAt: import_zod7.z.coerce.date(),
|
|
581
|
+
closedAt: import_zod7.z.nullable(import_zod7.z.coerce.date())
|
|
562
582
|
});
|
|
563
|
-
var IncreaseSpotPositionQuote =
|
|
583
|
+
var IncreaseSpotPositionQuote = import_zod7.z.object({
|
|
564
584
|
/** Required collateral amount */
|
|
565
|
-
collateralAmount:
|
|
585
|
+
collateralAmount: import_zod7.z.coerce.bigint(),
|
|
566
586
|
/** Required amount to borrow */
|
|
567
|
-
borrowAmount:
|
|
587
|
+
borrowAmount: import_zod7.z.coerce.bigint(),
|
|
568
588
|
/** Estimated position size in the position token. */
|
|
569
|
-
estimatedAmount:
|
|
589
|
+
estimatedAmount: import_zod7.z.coerce.bigint(),
|
|
570
590
|
/** Swap input amount. */
|
|
571
|
-
swapInputAmount:
|
|
591
|
+
swapInputAmount: import_zod7.z.coerce.bigint(),
|
|
572
592
|
/** Minimum swap output amount according to the provided slippage. */
|
|
573
|
-
minSwapOutputAmount:
|
|
593
|
+
minSwapOutputAmount: import_zod7.z.coerce.bigint(),
|
|
574
594
|
/** Protocol fee in token A */
|
|
575
|
-
protocolFeeA:
|
|
595
|
+
protocolFeeA: import_zod7.z.coerce.bigint(),
|
|
576
596
|
/** Protocol fee in token B */
|
|
577
|
-
protocolFeeB:
|
|
597
|
+
protocolFeeB: import_zod7.z.coerce.bigint(),
|
|
578
598
|
/** Price impact in percents */
|
|
579
|
-
priceImpact:
|
|
599
|
+
priceImpact: import_zod7.z.number(),
|
|
580
600
|
/** Liquidation price */
|
|
581
|
-
liquidationPrice:
|
|
601
|
+
liquidationPrice: import_zod7.z.number()
|
|
582
602
|
});
|
|
583
|
-
var DecreaseSpotPositionQuote =
|
|
603
|
+
var DecreaseSpotPositionQuote = import_zod7.z.object({
|
|
584
604
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
585
|
-
decreasePercent:
|
|
605
|
+
decreasePercent: import_zod7.z.number(),
|
|
586
606
|
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
587
607
|
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token).
|
|
588
608
|
*/
|
|
589
|
-
requiredSwapAmount:
|
|
609
|
+
requiredSwapAmount: import_zod7.z.coerce.bigint(),
|
|
590
610
|
/** Estimated total amount of the adjusted position */
|
|
591
|
-
estimatedAmount:
|
|
611
|
+
estimatedAmount: import_zod7.z.coerce.bigint(),
|
|
592
612
|
/** Estimated amount of the withdrawn collateral */
|
|
593
|
-
estimatedWithdrawnCollateral:
|
|
613
|
+
estimatedWithdrawnCollateral: import_zod7.z.coerce.bigint(),
|
|
594
614
|
/** Price impact in percents */
|
|
595
|
-
priceImpact:
|
|
615
|
+
priceImpact: import_zod7.z.number(),
|
|
596
616
|
/** Liquidation price */
|
|
597
|
-
liquidationPrice:
|
|
617
|
+
liquidationPrice: import_zod7.z.number()
|
|
598
618
|
});
|
|
599
|
-
var CloseSpotPositionQuote =
|
|
619
|
+
var CloseSpotPositionQuote = import_zod7.z.object({
|
|
600
620
|
/** Position decrease percentage */
|
|
601
|
-
decreasePercent:
|
|
621
|
+
decreasePercent: import_zod7.z.number(),
|
|
602
622
|
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
603
623
|
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token).
|
|
604
624
|
*/
|
|
605
|
-
requiredSwapAmount:
|
|
625
|
+
requiredSwapAmount: import_zod7.z.coerce.bigint(),
|
|
606
626
|
/** Estimated amount of the withdrawn collateral */
|
|
607
|
-
estimatedWithdrawnCollateral:
|
|
627
|
+
estimatedWithdrawnCollateral: import_zod7.z.coerce.bigint(),
|
|
608
628
|
/** Price impact in percents */
|
|
609
|
-
priceImpact:
|
|
629
|
+
priceImpact: import_zod7.z.number()
|
|
610
630
|
});
|
|
611
631
|
|
|
612
632
|
// src/client/schemas/state_snapshot.ts
|
|
613
|
-
var PoolPriceUpdate =
|
|
614
|
-
pool:
|
|
615
|
-
price:
|
|
616
|
-
sqrtPrice:
|
|
617
|
-
time:
|
|
618
|
-
});
|
|
619
|
-
var
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
633
|
+
var PoolPriceUpdate = import_zod8.default.object({
|
|
634
|
+
pool: import_zod8.default.string(),
|
|
635
|
+
price: import_zod8.default.number(),
|
|
636
|
+
sqrtPrice: import_zod8.default.coerce.bigint(),
|
|
637
|
+
time: import_zod8.default.coerce.date()
|
|
638
|
+
});
|
|
639
|
+
var OrderBookWrapper = import_zod8.default.object({
|
|
640
|
+
priceStep: import_zod8.default.number(),
|
|
641
|
+
entries: import_zod8.default.array(OrderBookEntry)
|
|
642
|
+
});
|
|
643
|
+
var StateSnapshot = import_zod8.default.object({
|
|
644
|
+
slot: import_zod8.default.coerce.bigint(),
|
|
645
|
+
blockTime: import_zod8.default.coerce.date(),
|
|
646
|
+
poolPrices: import_zod8.default.optional(import_zod8.default.record(import_zod8.default.string(), PoolPriceUpdate)),
|
|
647
|
+
tunaSpotPositions: import_zod8.default.optional(import_zod8.default.array(TunaSpotPosition)),
|
|
648
|
+
tunaLpPositions: import_zod8.default.optional(import_zod8.default.array(TunaLpPositionDtoSchema)),
|
|
649
|
+
fusionLimitOrders: import_zod8.default.optional(import_zod8.default.array(LimitOrder)),
|
|
650
|
+
orderBooks: import_zod8.default.optional(import_zod8.default.record(import_zod8.default.string(), OrderBookWrapper))
|
|
626
651
|
});
|
|
627
652
|
|
|
628
653
|
// src/client/schemas.ts
|
|
@@ -702,51 +727,51 @@ var WalletSubscriptionTopic = {
|
|
|
702
727
|
TRADE_HISTORY: "trade_history",
|
|
703
728
|
ORDER_HISTORY: "order_history"
|
|
704
729
|
};
|
|
705
|
-
var NotificationEntitySchema =
|
|
706
|
-
var NotificationActionSchema =
|
|
707
|
-
var TradeHistoryActionSchema =
|
|
708
|
-
var TradeHistoryUIDirectionSchema =
|
|
730
|
+
var NotificationEntitySchema = import_zod9.z.enum([NotificationEntity.POOL_SWAP, ...Object.values(NotificationEntity)]);
|
|
731
|
+
var NotificationActionSchema = import_zod9.z.enum([NotificationAction.CREATE, ...Object.values(NotificationAction)]);
|
|
732
|
+
var TradeHistoryActionSchema = import_zod9.z.enum([TradeHistoryAction.SWAP, ...Object.values(TradeHistoryAction)]);
|
|
733
|
+
var TradeHistoryUIDirectionSchema = import_zod9.z.enum([
|
|
709
734
|
TradeHistoryUIDirection.BUY,
|
|
710
735
|
...Object.values(TradeHistoryUIDirection)
|
|
711
736
|
]);
|
|
712
|
-
var OrderHistoryOrderTypeSchema =
|
|
737
|
+
var OrderHistoryOrderTypeSchema = import_zod9.z.enum([
|
|
713
738
|
OrderHistoryOrderType.MARKET,
|
|
714
739
|
...Object.values(OrderHistoryOrderType)
|
|
715
740
|
]);
|
|
716
|
-
var OrderHistoryStatusSchema =
|
|
717
|
-
var OrderHistoryUIDirectionSchema =
|
|
741
|
+
var OrderHistoryStatusSchema = import_zod9.z.enum([OrderHistoryStatus.OPEN, ...Object.values(OrderHistoryStatus)]);
|
|
742
|
+
var OrderHistoryUIDirectionSchema = import_zod9.z.enum([
|
|
718
743
|
OrderHistoryUIDirection.BUY,
|
|
719
744
|
...Object.values(OrderHistoryUIDirection)
|
|
720
745
|
]);
|
|
721
|
-
var StakingPositionHistoryActionTypeSchema =
|
|
746
|
+
var StakingPositionHistoryActionTypeSchema = import_zod9.z.enum([
|
|
722
747
|
StakingPositionHistoryActionType.STAKE,
|
|
723
748
|
...Object.values(StakingPositionHistoryActionType)
|
|
724
749
|
]);
|
|
725
|
-
var PoolSubscriptionTopicSchema =
|
|
750
|
+
var PoolSubscriptionTopicSchema = import_zod9.z.enum([
|
|
726
751
|
PoolSubscriptionTopic.ORDER_BOOK,
|
|
727
752
|
...Object.values(PoolSubscriptionTopic)
|
|
728
753
|
]);
|
|
729
|
-
var WalletSubscriptionTopicSchema =
|
|
754
|
+
var WalletSubscriptionTopicSchema = import_zod9.z.enum([
|
|
730
755
|
WalletSubscriptionTopic.TUNA_POSITIONS,
|
|
731
756
|
...Object.values(WalletSubscriptionTopic)
|
|
732
757
|
]);
|
|
733
|
-
var PaginationMeta =
|
|
734
|
-
total:
|
|
735
|
-
});
|
|
736
|
-
var Market =
|
|
737
|
-
address:
|
|
738
|
-
addressLookupTable:
|
|
739
|
-
poolAddress:
|
|
740
|
-
poolFeeRate:
|
|
758
|
+
var PaginationMeta = import_zod9.z.object({
|
|
759
|
+
total: import_zod9.z.number()
|
|
760
|
+
});
|
|
761
|
+
var Market = import_zod9.z.object({
|
|
762
|
+
address: import_zod9.z.string(),
|
|
763
|
+
addressLookupTable: import_zod9.z.string(),
|
|
764
|
+
poolAddress: import_zod9.z.string(),
|
|
765
|
+
poolFeeRate: import_zod9.z.number(),
|
|
741
766
|
provider: PoolProviderSchema,
|
|
742
|
-
maxLeverage:
|
|
743
|
-
maxSwapSlippage:
|
|
744
|
-
protocolFee:
|
|
745
|
-
rebalanceProtocolFee:
|
|
746
|
-
protocolFeeOnCollateral:
|
|
747
|
-
liquidationFee:
|
|
748
|
-
liquidationThreshold:
|
|
749
|
-
oraclePriceDeviationThreshold:
|
|
767
|
+
maxLeverage: import_zod9.z.number(),
|
|
768
|
+
maxSwapSlippage: import_zod9.z.number(),
|
|
769
|
+
protocolFee: import_zod9.z.number(),
|
|
770
|
+
rebalanceProtocolFee: import_zod9.z.number(),
|
|
771
|
+
protocolFeeOnCollateral: import_zod9.z.number(),
|
|
772
|
+
liquidationFee: import_zod9.z.number(),
|
|
773
|
+
liquidationThreshold: import_zod9.z.number(),
|
|
774
|
+
oraclePriceDeviationThreshold: import_zod9.z.number(),
|
|
750
775
|
maxSpotPositionSizeA: AmountWithUsdSchema,
|
|
751
776
|
maxSpotPositionSizeB: AmountWithUsdSchema,
|
|
752
777
|
borrowedFundsA: AmountWithUsdSchema,
|
|
@@ -755,32 +780,32 @@ var Market = import_zod8.z.object({
|
|
|
755
780
|
availableBorrowB: AmountWithUsdSchema,
|
|
756
781
|
borrowLimitA: AmountWithUsdSchema,
|
|
757
782
|
borrowLimitB: AmountWithUsdSchema,
|
|
758
|
-
disabled:
|
|
759
|
-
createdAt:
|
|
760
|
-
});
|
|
761
|
-
var TokenOraclePrice =
|
|
762
|
-
mint:
|
|
763
|
-
price:
|
|
764
|
-
decimals:
|
|
765
|
-
time:
|
|
766
|
-
});
|
|
767
|
-
var Vault =
|
|
768
|
-
address:
|
|
769
|
-
mint:
|
|
783
|
+
disabled: import_zod9.z.boolean(),
|
|
784
|
+
createdAt: import_zod9.z.coerce.date()
|
|
785
|
+
});
|
|
786
|
+
var TokenOraclePrice = import_zod9.z.object({
|
|
787
|
+
mint: import_zod9.z.string(),
|
|
788
|
+
price: import_zod9.z.coerce.bigint(),
|
|
789
|
+
decimals: import_zod9.z.number(),
|
|
790
|
+
time: import_zod9.z.coerce.date()
|
|
791
|
+
});
|
|
792
|
+
var Vault = import_zod9.z.object({
|
|
793
|
+
address: import_zod9.z.string(),
|
|
794
|
+
mint: import_zod9.z.string(),
|
|
770
795
|
depositedFunds: AmountWithUsdSchema,
|
|
771
796
|
borrowedFunds: AmountWithUsdSchema,
|
|
772
797
|
supplyLimit: AmountWithUsdSchema,
|
|
773
|
-
borrowedShares:
|
|
774
|
-
depositedShares:
|
|
775
|
-
supplyApy:
|
|
776
|
-
borrowApy:
|
|
777
|
-
interestRate:
|
|
778
|
-
utilization:
|
|
779
|
-
pythOracleFeedId:
|
|
780
|
-
pythOraclePriceUpdate:
|
|
781
|
-
});
|
|
782
|
-
var VaultHistoricalStats =
|
|
783
|
-
date:
|
|
798
|
+
borrowedShares: import_zod9.z.coerce.bigint(),
|
|
799
|
+
depositedShares: import_zod9.z.coerce.bigint(),
|
|
800
|
+
supplyApy: import_zod9.z.number(),
|
|
801
|
+
borrowApy: import_zod9.z.number(),
|
|
802
|
+
interestRate: import_zod9.z.coerce.bigint(),
|
|
803
|
+
utilization: import_zod9.z.number(),
|
|
804
|
+
pythOracleFeedId: import_zod9.z.string(),
|
|
805
|
+
pythOraclePriceUpdate: import_zod9.z.string()
|
|
806
|
+
});
|
|
807
|
+
var VaultHistoricalStats = import_zod9.z.object({
|
|
808
|
+
date: import_zod9.z.preprocess((val, ctx) => {
|
|
784
809
|
if (typeof val === "string") {
|
|
785
810
|
const [year, month, day] = val.split("-").map(Number);
|
|
786
811
|
return new Date(year, month - 1, day);
|
|
@@ -789,272 +814,256 @@ var VaultHistoricalStats = import_zod8.z.object({
|
|
|
789
814
|
code: "custom",
|
|
790
815
|
message: "Not a valid date string"
|
|
791
816
|
});
|
|
792
|
-
return
|
|
793
|
-
},
|
|
817
|
+
return import_zod9.z.NEVER;
|
|
818
|
+
}, import_zod9.z.date()),
|
|
794
819
|
supply: AmountWithUsdSchema,
|
|
795
820
|
borrow: AmountWithUsdSchema,
|
|
796
|
-
supplyApy:
|
|
797
|
-
borrowApr:
|
|
821
|
+
supplyApy: import_zod9.z.number(),
|
|
822
|
+
borrowApr: import_zod9.z.number()
|
|
798
823
|
});
|
|
799
|
-
var Pool =
|
|
800
|
-
address:
|
|
824
|
+
var Pool = import_zod9.z.object({
|
|
825
|
+
address: import_zod9.z.string(),
|
|
801
826
|
provider: PoolProviderSchema,
|
|
802
|
-
tokenAMint:
|
|
803
|
-
tokenBMint:
|
|
804
|
-
tokenAVault:
|
|
805
|
-
tokenBVault:
|
|
806
|
-
tvlUsdc:
|
|
807
|
-
priceChange24H:
|
|
808
|
-
tickSpacing:
|
|
809
|
-
feeRate:
|
|
810
|
-
olpFeeRate:
|
|
811
|
-
protocolFeeRate:
|
|
812
|
-
liquidity:
|
|
813
|
-
sqrtPrice:
|
|
814
|
-
tickCurrentIndex:
|
|
815
|
-
stats:
|
|
816
|
-
"24h":
|
|
817
|
-
volume:
|
|
818
|
-
fees:
|
|
819
|
-
rewards:
|
|
820
|
-
yieldOverTvl:
|
|
827
|
+
tokenAMint: import_zod9.z.string(),
|
|
828
|
+
tokenBMint: import_zod9.z.string(),
|
|
829
|
+
tokenAVault: import_zod9.z.string(),
|
|
830
|
+
tokenBVault: import_zod9.z.string(),
|
|
831
|
+
tvlUsdc: import_zod9.z.coerce.number(),
|
|
832
|
+
priceChange24H: import_zod9.z.number(),
|
|
833
|
+
tickSpacing: import_zod9.z.number(),
|
|
834
|
+
feeRate: import_zod9.z.number(),
|
|
835
|
+
olpFeeRate: import_zod9.z.nullable(import_zod9.z.number()),
|
|
836
|
+
protocolFeeRate: import_zod9.z.number(),
|
|
837
|
+
liquidity: import_zod9.z.coerce.bigint(),
|
|
838
|
+
sqrtPrice: import_zod9.z.coerce.bigint(),
|
|
839
|
+
tickCurrentIndex: import_zod9.z.number(),
|
|
840
|
+
stats: import_zod9.z.object({
|
|
841
|
+
"24h": import_zod9.z.object({
|
|
842
|
+
volume: import_zod9.z.coerce.number(),
|
|
843
|
+
fees: import_zod9.z.coerce.number(),
|
|
844
|
+
rewards: import_zod9.z.coerce.number(),
|
|
845
|
+
yieldOverTvl: import_zod9.z.coerce.number()
|
|
821
846
|
}),
|
|
822
|
-
"7d":
|
|
823
|
-
volume:
|
|
824
|
-
fees:
|
|
825
|
-
rewards:
|
|
826
|
-
yieldOverTvl:
|
|
847
|
+
"7d": import_zod9.z.object({
|
|
848
|
+
volume: import_zod9.z.coerce.number(),
|
|
849
|
+
fees: import_zod9.z.coerce.number(),
|
|
850
|
+
rewards: import_zod9.z.coerce.number(),
|
|
851
|
+
yieldOverTvl: import_zod9.z.coerce.number()
|
|
827
852
|
}),
|
|
828
|
-
"30d":
|
|
829
|
-
volume:
|
|
830
|
-
fees:
|
|
831
|
-
rewards:
|
|
832
|
-
yieldOverTvl:
|
|
853
|
+
"30d": import_zod9.z.object({
|
|
854
|
+
volume: import_zod9.z.coerce.number(),
|
|
855
|
+
fees: import_zod9.z.coerce.number(),
|
|
856
|
+
rewards: import_zod9.z.coerce.number(),
|
|
857
|
+
yieldOverTvl: import_zod9.z.coerce.number()
|
|
833
858
|
})
|
|
834
859
|
})
|
|
835
860
|
});
|
|
836
|
-
var Tick =
|
|
837
|
-
index:
|
|
838
|
-
liquidity:
|
|
861
|
+
var Tick = import_zod9.z.object({
|
|
862
|
+
index: import_zod9.z.number(),
|
|
863
|
+
liquidity: import_zod9.z.coerce.bigint()
|
|
839
864
|
});
|
|
840
|
-
var PoolTicks =
|
|
841
|
-
tickSpacing:
|
|
865
|
+
var PoolTicks = import_zod9.z.object({
|
|
866
|
+
tickSpacing: import_zod9.z.number(),
|
|
842
867
|
ticks: Tick.array()
|
|
843
868
|
});
|
|
844
|
-
var LendingPosition =
|
|
845
|
-
address:
|
|
846
|
-
authority:
|
|
847
|
-
mint:
|
|
848
|
-
vault:
|
|
849
|
-
shares:
|
|
869
|
+
var LendingPosition = import_zod9.z.object({
|
|
870
|
+
address: import_zod9.z.string(),
|
|
871
|
+
authority: import_zod9.z.string(),
|
|
872
|
+
mint: import_zod9.z.string(),
|
|
873
|
+
vault: import_zod9.z.string(),
|
|
874
|
+
shares: import_zod9.z.coerce.bigint(),
|
|
850
875
|
funds: AmountWithUsdSchema,
|
|
851
876
|
earned: AmountWithUsdSchema
|
|
852
877
|
});
|
|
853
|
-
var PoolSwap =
|
|
854
|
-
id:
|
|
855
|
-
amountIn:
|
|
856
|
-
amountOut:
|
|
857
|
-
amountUsd:
|
|
858
|
-
aToB:
|
|
859
|
-
pool:
|
|
860
|
-
time:
|
|
861
|
-
});
|
|
862
|
-
var OrderBookEntry = import_zod8.z.object({
|
|
863
|
-
concentratedAmount: import_zod8.z.coerce.bigint(),
|
|
864
|
-
concentratedAmountQuote: import_zod8.z.coerce.bigint(),
|
|
865
|
-
concentratedTotal: import_zod8.z.coerce.bigint(),
|
|
866
|
-
concentratedTotalQuote: import_zod8.z.coerce.bigint(),
|
|
867
|
-
limitAmount: import_zod8.z.coerce.bigint(),
|
|
868
|
-
limitAmountQuote: import_zod8.z.coerce.bigint(),
|
|
869
|
-
limitTotal: import_zod8.z.coerce.bigint(),
|
|
870
|
-
limitTotalQuote: import_zod8.z.coerce.bigint(),
|
|
871
|
-
price: import_zod8.z.number(),
|
|
872
|
-
askSide: import_zod8.z.boolean()
|
|
873
|
-
});
|
|
874
|
-
var OrderBook = import_zod8.z.object({
|
|
875
|
-
entries: OrderBookEntry.array(),
|
|
876
|
-
poolPrice: import_zod8.z.number()
|
|
878
|
+
var PoolSwap = import_zod9.z.object({
|
|
879
|
+
id: import_zod9.z.string(),
|
|
880
|
+
amountIn: import_zod9.z.coerce.bigint(),
|
|
881
|
+
amountOut: import_zod9.z.coerce.bigint(),
|
|
882
|
+
amountUsd: import_zod9.z.number(),
|
|
883
|
+
aToB: import_zod9.z.boolean(),
|
|
884
|
+
pool: import_zod9.z.string(),
|
|
885
|
+
time: import_zod9.z.coerce.date()
|
|
877
886
|
});
|
|
878
|
-
var TradeHistoryEntry =
|
|
887
|
+
var TradeHistoryEntry = import_zod9.z.object({
|
|
879
888
|
// Internal entry ID
|
|
880
|
-
id:
|
|
881
|
-
pool:
|
|
882
|
-
authority:
|
|
883
|
-
aToB:
|
|
889
|
+
id: import_zod9.z.string(),
|
|
890
|
+
pool: import_zod9.z.string(),
|
|
891
|
+
authority: import_zod9.z.string(),
|
|
892
|
+
aToB: import_zod9.z.boolean(),
|
|
884
893
|
// Trade action which created entry
|
|
885
894
|
action: TradeHistoryActionSchema,
|
|
886
895
|
// Trade direction formatted for ui display
|
|
887
896
|
uiDirection: TradeHistoryUIDirectionSchema,
|
|
888
897
|
// Trade price formatted for ui display
|
|
889
|
-
uiPrice:
|
|
898
|
+
uiPrice: import_zod9.z.number(),
|
|
890
899
|
baseToken: AmountWithUsdSchema,
|
|
891
900
|
quoteToken: AmountWithUsdSchema,
|
|
892
901
|
fee: AmountWithUsdSchema,
|
|
893
|
-
pnl:
|
|
894
|
-
|
|
895
|
-
usd:
|
|
896
|
-
bps:
|
|
902
|
+
pnl: import_zod9.z.nullable(
|
|
903
|
+
import_zod9.z.object({
|
|
904
|
+
usd: import_zod9.z.number(),
|
|
905
|
+
bps: import_zod9.z.number()
|
|
897
906
|
})
|
|
898
907
|
),
|
|
899
|
-
txSignature:
|
|
900
|
-
positionAddress:
|
|
901
|
-
slot:
|
|
902
|
-
ts:
|
|
908
|
+
txSignature: import_zod9.z.nullable(import_zod9.z.string()),
|
|
909
|
+
positionAddress: import_zod9.z.nullable(import_zod9.z.string()),
|
|
910
|
+
slot: import_zod9.z.coerce.bigint(),
|
|
911
|
+
ts: import_zod9.z.coerce.date()
|
|
903
912
|
});
|
|
904
|
-
var OrderHistoryEntry =
|
|
913
|
+
var OrderHistoryEntry = import_zod9.z.object({
|
|
905
914
|
// Internal entry ID
|
|
906
|
-
id:
|
|
907
|
-
pool:
|
|
908
|
-
authority:
|
|
915
|
+
id: import_zod9.z.string(),
|
|
916
|
+
pool: import_zod9.z.string(),
|
|
917
|
+
authority: import_zod9.z.string(),
|
|
909
918
|
orderType: OrderHistoryOrderTypeSchema,
|
|
910
|
-
isReduceOnly:
|
|
911
|
-
aToB:
|
|
919
|
+
isReduceOnly: import_zod9.z.nullable(import_zod9.z.boolean()),
|
|
920
|
+
aToB: import_zod9.z.boolean(),
|
|
912
921
|
uiDirection: OrderHistoryUIDirectionSchema,
|
|
913
|
-
uiPrice:
|
|
914
|
-
uiExecutionPrice:
|
|
922
|
+
uiPrice: import_zod9.z.nullable(import_zod9.z.number()),
|
|
923
|
+
uiExecutionPrice: import_zod9.z.nullable(import_zod9.z.number()),
|
|
915
924
|
status: OrderHistoryStatusSchema,
|
|
916
925
|
baseToken: AmountWithUsdSchema,
|
|
917
926
|
quoteToken: AmountWithUsdSchema,
|
|
918
|
-
baseTokenConsumedAmount:
|
|
919
|
-
quoteTokenFilledAmount:
|
|
920
|
-
txSignature:
|
|
921
|
-
positionAddress:
|
|
922
|
-
slot:
|
|
923
|
-
ts:
|
|
924
|
-
});
|
|
925
|
-
var StakingTreasury =
|
|
926
|
-
address:
|
|
927
|
-
stakedTokenMint:
|
|
928
|
-
rewardTokenMint:
|
|
929
|
-
apy:
|
|
930
|
-
uniqueStakers:
|
|
927
|
+
baseTokenConsumedAmount: import_zod9.z.nullable(AmountWithUsdSchema),
|
|
928
|
+
quoteTokenFilledAmount: import_zod9.z.nullable(AmountWithUsdSchema),
|
|
929
|
+
txSignature: import_zod9.z.nullable(import_zod9.z.string()),
|
|
930
|
+
positionAddress: import_zod9.z.nullable(import_zod9.z.string()),
|
|
931
|
+
slot: import_zod9.z.coerce.bigint(),
|
|
932
|
+
ts: import_zod9.z.coerce.date()
|
|
933
|
+
});
|
|
934
|
+
var StakingTreasury = import_zod9.z.object({
|
|
935
|
+
address: import_zod9.z.string(),
|
|
936
|
+
stakedTokenMint: import_zod9.z.string(),
|
|
937
|
+
rewardTokenMint: import_zod9.z.string(),
|
|
938
|
+
apy: import_zod9.z.number(),
|
|
939
|
+
uniqueStakers: import_zod9.z.number(),
|
|
931
940
|
totalStaked: AmountWithUsdSchema,
|
|
932
941
|
totalReward: AmountWithUsdSchema,
|
|
933
|
-
unstakeCooldownSeconds:
|
|
934
|
-
isStakingEnabled:
|
|
935
|
-
isUnstakingEnabled:
|
|
936
|
-
isWithdrawEnabled:
|
|
937
|
-
});
|
|
938
|
-
var StakingPosition =
|
|
939
|
-
address:
|
|
940
|
-
owner:
|
|
942
|
+
unstakeCooldownSeconds: import_zod9.z.number(),
|
|
943
|
+
isStakingEnabled: import_zod9.z.boolean(),
|
|
944
|
+
isUnstakingEnabled: import_zod9.z.boolean(),
|
|
945
|
+
isWithdrawEnabled: import_zod9.z.boolean()
|
|
946
|
+
});
|
|
947
|
+
var StakingPosition = import_zod9.z.object({
|
|
948
|
+
address: import_zod9.z.string(),
|
|
949
|
+
owner: import_zod9.z.string(),
|
|
941
950
|
staked: AmountWithUsdSchema,
|
|
942
951
|
unstaked: AmountWithUsdSchema,
|
|
943
952
|
claimedReward: AmountWithUsdSchema,
|
|
944
953
|
unclaimedReward: AmountWithUsdSchema,
|
|
945
|
-
rank:
|
|
946
|
-
vesting:
|
|
954
|
+
rank: import_zod9.z.nullable(import_zod9.z.number()),
|
|
955
|
+
vesting: import_zod9.z.object({
|
|
947
956
|
locked: AmountWithUsdSchema,
|
|
948
957
|
unlocked: AmountWithUsdSchema,
|
|
949
|
-
unlockRate:
|
|
950
|
-
unlockEverySeconds:
|
|
951
|
-
unlockCliffSeconds:
|
|
952
|
-
lockedAt:
|
|
958
|
+
unlockRate: import_zod9.z.coerce.bigint(),
|
|
959
|
+
unlockEverySeconds: import_zod9.z.number(),
|
|
960
|
+
unlockCliffSeconds: import_zod9.z.number(),
|
|
961
|
+
lockedAt: import_zod9.z.nullable(import_zod9.z.coerce.date())
|
|
953
962
|
}),
|
|
954
|
-
lastUnstakedAt:
|
|
955
|
-
withdrawAvailableAt:
|
|
963
|
+
lastUnstakedAt: import_zod9.z.nullable(import_zod9.z.coerce.date()),
|
|
964
|
+
withdrawAvailableAt: import_zod9.z.nullable(import_zod9.z.coerce.date())
|
|
956
965
|
});
|
|
957
|
-
var StakingLeaderboardPosition =
|
|
958
|
-
rank:
|
|
959
|
-
address:
|
|
960
|
-
owner:
|
|
966
|
+
var StakingLeaderboardPosition = import_zod9.z.object({
|
|
967
|
+
rank: import_zod9.z.number(),
|
|
968
|
+
address: import_zod9.z.string(),
|
|
969
|
+
owner: import_zod9.z.string(),
|
|
961
970
|
staked: AmountWithUsdSchema
|
|
962
971
|
});
|
|
963
|
-
var StakingLeaderboardPage =
|
|
972
|
+
var StakingLeaderboardPage = import_zod9.z.object({
|
|
964
973
|
data: StakingLeaderboardPosition.array(),
|
|
965
974
|
meta: PaginationMeta
|
|
966
975
|
});
|
|
967
|
-
var StakingPositionHistoryAction =
|
|
968
|
-
position:
|
|
976
|
+
var StakingPositionHistoryAction = import_zod9.z.object({
|
|
977
|
+
position: import_zod9.z.string(),
|
|
969
978
|
action: StakingPositionHistoryActionTypeSchema,
|
|
970
|
-
txSignature:
|
|
971
|
-
amount:
|
|
972
|
-
time:
|
|
973
|
-
});
|
|
974
|
-
var PoolPriceCandle =
|
|
975
|
-
time:
|
|
976
|
-
open:
|
|
977
|
-
close:
|
|
978
|
-
high:
|
|
979
|
-
low:
|
|
980
|
-
volume:
|
|
981
|
-
});
|
|
982
|
-
var FeesStatsGroup =
|
|
983
|
-
time:
|
|
984
|
-
addLiquidityFees:
|
|
985
|
-
limitOrderFees:
|
|
986
|
-
yieldCompoundingFees:
|
|
987
|
-
liquidationFees:
|
|
988
|
-
totalLiquidationsNetworkFees:
|
|
989
|
-
totalLimitOrdersNetworkFees:
|
|
990
|
-
totalYieldCompoundingNetworkFees:
|
|
991
|
-
failedNetworkFees:
|
|
992
|
-
processedNetworkFees:
|
|
993
|
-
totalCollectedFees:
|
|
994
|
-
totalNetworkFees:
|
|
995
|
-
jitoLiquidationFees:
|
|
996
|
-
jitoLimitOrderFees:
|
|
997
|
-
jitoYieldCompoundingFees:
|
|
998
|
-
runningAddLiquidityFees:
|
|
999
|
-
runningLimitOrderFees:
|
|
1000
|
-
runningYieldCompoundingFees:
|
|
1001
|
-
runningLiquidationFees:
|
|
1002
|
-
runningTotalLiquidationsNetworkFees:
|
|
1003
|
-
runningTotalLimitOrdersNetworkFees:
|
|
1004
|
-
runningTotalYieldCompoundingNetworkFees:
|
|
1005
|
-
runningFailedNetworkFees:
|
|
1006
|
-
runningProcessedNetworkFees:
|
|
1007
|
-
runningJitoLiquidationFees:
|
|
1008
|
-
runningJitoLimitOrderFees:
|
|
1009
|
-
runningJitoYieldCompoundingFees:
|
|
1010
|
-
runningTotalCollectedFees:
|
|
1011
|
-
runningTotalNetworkFees:
|
|
1012
|
-
});
|
|
1013
|
-
var StakingRevenueStatsGroup =
|
|
1014
|
-
time:
|
|
1015
|
-
totalDepositsUsd:
|
|
1016
|
-
totalDepositsSol:
|
|
1017
|
-
runningTotalDepositsUsd:
|
|
1018
|
-
runningTotalDepositsSol:
|
|
1019
|
-
});
|
|
1020
|
-
var SwapQuoteByInput =
|
|
1021
|
-
estimatedAmountOut:
|
|
1022
|
-
minAmountOut:
|
|
1023
|
-
feeAmount:
|
|
1024
|
-
feeUsd:
|
|
979
|
+
txSignature: import_zod9.z.string(),
|
|
980
|
+
amount: import_zod9.z.coerce.bigint(),
|
|
981
|
+
time: import_zod9.z.coerce.date()
|
|
982
|
+
});
|
|
983
|
+
var PoolPriceCandle = import_zod9.z.object({
|
|
984
|
+
time: import_zod9.z.number(),
|
|
985
|
+
open: import_zod9.z.number(),
|
|
986
|
+
close: import_zod9.z.number(),
|
|
987
|
+
high: import_zod9.z.number(),
|
|
988
|
+
low: import_zod9.z.number(),
|
|
989
|
+
volume: import_zod9.z.number()
|
|
990
|
+
});
|
|
991
|
+
var FeesStatsGroup = import_zod9.z.object({
|
|
992
|
+
time: import_zod9.z.coerce.date(),
|
|
993
|
+
addLiquidityFees: import_zod9.z.number(),
|
|
994
|
+
limitOrderFees: import_zod9.z.number(),
|
|
995
|
+
yieldCompoundingFees: import_zod9.z.number(),
|
|
996
|
+
liquidationFees: import_zod9.z.number(),
|
|
997
|
+
totalLiquidationsNetworkFees: import_zod9.z.number(),
|
|
998
|
+
totalLimitOrdersNetworkFees: import_zod9.z.number(),
|
|
999
|
+
totalYieldCompoundingNetworkFees: import_zod9.z.number(),
|
|
1000
|
+
failedNetworkFees: import_zod9.z.number(),
|
|
1001
|
+
processedNetworkFees: import_zod9.z.number(),
|
|
1002
|
+
totalCollectedFees: import_zod9.z.number(),
|
|
1003
|
+
totalNetworkFees: import_zod9.z.number(),
|
|
1004
|
+
jitoLiquidationFees: import_zod9.z.number(),
|
|
1005
|
+
jitoLimitOrderFees: import_zod9.z.number(),
|
|
1006
|
+
jitoYieldCompoundingFees: import_zod9.z.number(),
|
|
1007
|
+
runningAddLiquidityFees: import_zod9.z.number(),
|
|
1008
|
+
runningLimitOrderFees: import_zod9.z.number(),
|
|
1009
|
+
runningYieldCompoundingFees: import_zod9.z.number(),
|
|
1010
|
+
runningLiquidationFees: import_zod9.z.number(),
|
|
1011
|
+
runningTotalLiquidationsNetworkFees: import_zod9.z.number(),
|
|
1012
|
+
runningTotalLimitOrdersNetworkFees: import_zod9.z.number(),
|
|
1013
|
+
runningTotalYieldCompoundingNetworkFees: import_zod9.z.number(),
|
|
1014
|
+
runningFailedNetworkFees: import_zod9.z.number(),
|
|
1015
|
+
runningProcessedNetworkFees: import_zod9.z.number(),
|
|
1016
|
+
runningJitoLiquidationFees: import_zod9.z.number(),
|
|
1017
|
+
runningJitoLimitOrderFees: import_zod9.z.number(),
|
|
1018
|
+
runningJitoYieldCompoundingFees: import_zod9.z.number(),
|
|
1019
|
+
runningTotalCollectedFees: import_zod9.z.number(),
|
|
1020
|
+
runningTotalNetworkFees: import_zod9.z.number()
|
|
1021
|
+
});
|
|
1022
|
+
var StakingRevenueStatsGroup = import_zod9.z.object({
|
|
1023
|
+
time: import_zod9.z.coerce.date(),
|
|
1024
|
+
totalDepositsUsd: import_zod9.z.number(),
|
|
1025
|
+
totalDepositsSol: import_zod9.z.coerce.bigint(),
|
|
1026
|
+
runningTotalDepositsUsd: import_zod9.z.number(),
|
|
1027
|
+
runningTotalDepositsSol: import_zod9.z.coerce.bigint()
|
|
1028
|
+
});
|
|
1029
|
+
var SwapQuoteByInput = import_zod9.z.object({
|
|
1030
|
+
estimatedAmountOut: import_zod9.z.coerce.bigint(),
|
|
1031
|
+
minAmountOut: import_zod9.z.coerce.bigint(),
|
|
1032
|
+
feeAmount: import_zod9.z.coerce.bigint(),
|
|
1033
|
+
feeUsd: import_zod9.z.number(),
|
|
1025
1034
|
/** Price impact in percents */
|
|
1026
|
-
priceImpact:
|
|
1035
|
+
priceImpact: import_zod9.z.number()
|
|
1027
1036
|
});
|
|
1028
|
-
var SwapQuoteByOutput =
|
|
1029
|
-
estimatedAmountIn:
|
|
1030
|
-
maxAmountIn:
|
|
1031
|
-
feeAmount:
|
|
1032
|
-
feeUsd:
|
|
1037
|
+
var SwapQuoteByOutput = import_zod9.z.object({
|
|
1038
|
+
estimatedAmountIn: import_zod9.z.coerce.bigint(),
|
|
1039
|
+
maxAmountIn: import_zod9.z.coerce.bigint(),
|
|
1040
|
+
feeAmount: import_zod9.z.coerce.bigint(),
|
|
1041
|
+
feeUsd: import_zod9.z.number(),
|
|
1033
1042
|
/** Price impact in percents */
|
|
1034
|
-
priceImpact:
|
|
1043
|
+
priceImpact: import_zod9.z.number()
|
|
1035
1044
|
});
|
|
1036
|
-
var LimitOrderQuoteByInput =
|
|
1037
|
-
amountOut:
|
|
1045
|
+
var LimitOrderQuoteByInput = import_zod9.z.object({
|
|
1046
|
+
amountOut: import_zod9.z.coerce.bigint()
|
|
1038
1047
|
});
|
|
1039
|
-
var LimitOrderQuoteByOutput =
|
|
1040
|
-
amountIn:
|
|
1048
|
+
var LimitOrderQuoteByOutput = import_zod9.z.object({
|
|
1049
|
+
amountIn: import_zod9.z.coerce.bigint()
|
|
1041
1050
|
});
|
|
1042
1051
|
var TradableAmount = AmountWithUsdSchema;
|
|
1043
|
-
var UpdateStreamSubscriptionResult =
|
|
1044
|
-
status:
|
|
1052
|
+
var UpdateStreamSubscriptionResult = import_zod9.z.object({
|
|
1053
|
+
status: import_zod9.z.string()
|
|
1045
1054
|
});
|
|
1046
|
-
var createNotificationSchema = (dataSchema, metaSchema) =>
|
|
1055
|
+
var createNotificationSchema = (dataSchema, metaSchema) => import_zod9.z.object({
|
|
1047
1056
|
entity: NotificationEntitySchema,
|
|
1048
1057
|
action: NotificationActionSchema,
|
|
1049
1058
|
data: dataSchema,
|
|
1050
|
-
id:
|
|
1051
|
-
authority:
|
|
1052
|
-
...metaSchema ? { meta: metaSchema } : { meta:
|
|
1053
|
-
});
|
|
1054
|
-
var OrderBookNotificationMeta =
|
|
1055
|
-
pool:
|
|
1056
|
-
priceStep:
|
|
1057
|
-
inverted:
|
|
1059
|
+
id: import_zod9.z.string(),
|
|
1060
|
+
authority: import_zod9.z.nullish(import_zod9.z.string()),
|
|
1061
|
+
...metaSchema ? { meta: metaSchema } : { meta: import_zod9.z.undefined().nullable() }
|
|
1062
|
+
});
|
|
1063
|
+
var OrderBookNotificationMeta = import_zod9.z.object({
|
|
1064
|
+
pool: import_zod9.z.string(),
|
|
1065
|
+
priceStep: import_zod9.z.number(),
|
|
1066
|
+
inverted: import_zod9.z.boolean()
|
|
1058
1067
|
});
|
|
1059
1068
|
var PoolSwapNotification = createNotificationSchema(PoolSwap);
|
|
1060
1069
|
var OrderBookNotification = createNotificationSchema(OrderBook, OrderBookNotificationMeta);
|