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