@crypticdot/defituna-api 1.10.9 → 1.10.11
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 +75 -150
- package/dist/index.d.ts +75 -150
- package/dist/index.js +305 -325
- package/dist/index.mjs +295 -315
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,8 +77,6 @@ __export(schemas_exports, {
|
|
|
77
77
|
NotificationEntitySchema: () => NotificationEntitySchema,
|
|
78
78
|
OrderBook: () => OrderBook,
|
|
79
79
|
OrderBookEntry: () => OrderBookEntry,
|
|
80
|
-
OrderBookNotification: () => OrderBookNotification,
|
|
81
|
-
OrderBookNotificationMeta: () => OrderBookNotificationMeta,
|
|
82
80
|
OrderHistoryEntry: () => OrderHistoryEntry,
|
|
83
81
|
OrderHistoryEntryNotification: () => OrderHistoryEntryNotification,
|
|
84
82
|
OrderHistoryOrderType: () => OrderHistoryOrderType,
|
|
@@ -157,7 +155,7 @@ __export(schemas_exports, {
|
|
|
157
155
|
WalletSubscriptionTopic: () => WalletSubscriptionTopic,
|
|
158
156
|
WalletSubscriptionTopicSchema: () => WalletSubscriptionTopicSchema
|
|
159
157
|
});
|
|
160
|
-
var
|
|
158
|
+
var import_zod10 = require("zod");
|
|
161
159
|
|
|
162
160
|
// src/client/schemas/basic.ts
|
|
163
161
|
var import_zod = require("zod");
|
|
@@ -176,33 +174,41 @@ var UsdPnlSchema = import_zod.z.object({
|
|
|
176
174
|
amount: import_zod.z.number(),
|
|
177
175
|
rate: import_zod.z.number()
|
|
178
176
|
});
|
|
177
|
+
|
|
178
|
+
// src/client/schemas/pool.ts
|
|
179
|
+
var import_zod2 = __toESM(require("zod"));
|
|
179
180
|
var PoolProvider = {
|
|
180
181
|
ORCA: "orca",
|
|
181
182
|
FUSION: "fusion"
|
|
182
183
|
};
|
|
183
|
-
var PoolProviderSchema =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
184
|
+
var PoolProviderSchema = import_zod2.default.enum([PoolProvider.ORCA, ...Object.values(PoolProvider)]);
|
|
185
|
+
var Pool = import_zod2.default.object({
|
|
186
|
+
address: import_zod2.default.string(),
|
|
187
|
+
provider: PoolProviderSchema,
|
|
188
|
+
tokenAMint: import_zod2.default.string(),
|
|
189
|
+
tokenBMint: import_zod2.default.string(),
|
|
190
|
+
tokenAVault: import_zod2.default.string(),
|
|
191
|
+
tokenBVault: import_zod2.default.string(),
|
|
192
|
+
tvlUsd: import_zod2.default.coerce.number(),
|
|
193
|
+
tickSpacing: import_zod2.default.number(),
|
|
194
|
+
feeRate: import_zod2.default.number(),
|
|
195
|
+
protocolFeeRate: import_zod2.default.number(),
|
|
196
|
+
olpFeeRate: import_zod2.default.nullable(import_zod2.default.number()),
|
|
197
|
+
liquidity: import_zod2.default.coerce.bigint(),
|
|
198
|
+
sqrtPrice: import_zod2.default.coerce.bigint(),
|
|
196
199
|
price: import_zod2.default.number(),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
tickCurrentIndex: import_zod2.default.number(),
|
|
201
|
+
stats: import_zod2.default.object({
|
|
202
|
+
"24h": import_zod2.default.object({
|
|
203
|
+
volume: import_zod2.default.number(),
|
|
204
|
+
fees: import_zod2.default.number(),
|
|
205
|
+
priceChange: import_zod2.default.number()
|
|
206
|
+
})
|
|
207
|
+
})
|
|
202
208
|
});
|
|
203
209
|
|
|
204
210
|
// src/client/schemas/state_snapshot.ts
|
|
205
|
-
var
|
|
211
|
+
var import_zod9 = __toESM(require("zod"));
|
|
206
212
|
|
|
207
213
|
// src/client/schemas/limit_orders.ts
|
|
208
214
|
var import_zod5 = require("zod");
|
|
@@ -242,6 +248,7 @@ var LimitOrderStateSchema = import_zod5.z.enum([LimitOrderState.OPEN, ...Object.
|
|
|
242
248
|
var LimitOrder = import_zod5.z.object({
|
|
243
249
|
address: import_zod5.z.string(),
|
|
244
250
|
orderMint: import_zod5.z.string(),
|
|
251
|
+
authority: import_zod5.z.string(),
|
|
245
252
|
mintA: Mint,
|
|
246
253
|
mintB: Mint,
|
|
247
254
|
pool: TunaPositionPoolSchema,
|
|
@@ -544,24 +551,44 @@ var TunaLpPositionAction = import_zod6.default.object({
|
|
|
544
551
|
})
|
|
545
552
|
});
|
|
546
553
|
|
|
554
|
+
// src/client/schemas/order_book.ts
|
|
555
|
+
var import_zod7 = __toESM(require("zod"));
|
|
556
|
+
var OrderBookEntry = import_zod7.default.object({
|
|
557
|
+
concentratedAmount: import_zod7.default.coerce.bigint(),
|
|
558
|
+
concentratedAmountQuote: import_zod7.default.coerce.bigint(),
|
|
559
|
+
concentratedTotal: import_zod7.default.coerce.bigint(),
|
|
560
|
+
concentratedTotalQuote: import_zod7.default.coerce.bigint(),
|
|
561
|
+
limitAmount: import_zod7.default.coerce.bigint(),
|
|
562
|
+
limitAmountQuote: import_zod7.default.coerce.bigint(),
|
|
563
|
+
limitTotal: import_zod7.default.coerce.bigint(),
|
|
564
|
+
limitTotalQuote: import_zod7.default.coerce.bigint(),
|
|
565
|
+
price: import_zod7.default.number(),
|
|
566
|
+
askSide: import_zod7.default.boolean()
|
|
567
|
+
});
|
|
568
|
+
var OrderBook = import_zod7.default.object({
|
|
569
|
+
entries: OrderBookEntry.array(),
|
|
570
|
+
poolPrice: import_zod7.default.number(),
|
|
571
|
+
poolAddress: import_zod7.default.string()
|
|
572
|
+
});
|
|
573
|
+
|
|
547
574
|
// src/client/schemas/spot_positions.ts
|
|
548
|
-
var
|
|
575
|
+
var import_zod8 = require("zod");
|
|
549
576
|
var TunaSpotPositionState = {
|
|
550
577
|
OPEN: "open",
|
|
551
578
|
CLOSED: "closed"
|
|
552
579
|
};
|
|
553
|
-
var TunaSpotPositionStateSchema =
|
|
580
|
+
var TunaSpotPositionStateSchema = import_zod8.z.enum([
|
|
554
581
|
TunaSpotPositionState.OPEN,
|
|
555
582
|
...Object.values(TunaSpotPositionState)
|
|
556
583
|
]);
|
|
557
|
-
var TunaSpotPosition =
|
|
558
|
-
address:
|
|
559
|
-
authority:
|
|
560
|
-
version:
|
|
584
|
+
var TunaSpotPosition = import_zod8.z.object({
|
|
585
|
+
address: import_zod8.z.string(),
|
|
586
|
+
authority: import_zod8.z.string(),
|
|
587
|
+
version: import_zod8.z.number(),
|
|
561
588
|
state: TunaSpotPositionStateSchema,
|
|
562
|
-
lowerLimitOrderPrice:
|
|
563
|
-
upperLimitOrderPrice:
|
|
564
|
-
entryPrice:
|
|
589
|
+
lowerLimitOrderPrice: import_zod8.z.number(),
|
|
590
|
+
upperLimitOrderPrice: import_zod8.z.number(),
|
|
591
|
+
entryPrice: import_zod8.z.number(),
|
|
565
592
|
mintA: Mint,
|
|
566
593
|
mintB: Mint,
|
|
567
594
|
pool: TunaPositionPoolSchema,
|
|
@@ -572,85 +599,85 @@ var TunaSpotPosition = import_zod7.z.object({
|
|
|
572
599
|
initialDebt: AmountWithUsdSchema,
|
|
573
600
|
currentDebt: AmountWithUsdSchema,
|
|
574
601
|
total: AmountWithUsdSchema,
|
|
575
|
-
leverage:
|
|
576
|
-
maxLeverage:
|
|
577
|
-
liquidationPrice:
|
|
602
|
+
leverage: import_zod8.z.number(),
|
|
603
|
+
maxLeverage: import_zod8.z.number(),
|
|
604
|
+
liquidationPrice: import_zod8.z.number(),
|
|
578
605
|
pnlUsd: UsdPnlSchema,
|
|
579
|
-
openedAt:
|
|
580
|
-
closedAt:
|
|
606
|
+
openedAt: import_zod8.z.coerce.date(),
|
|
607
|
+
closedAt: import_zod8.z.nullable(import_zod8.z.coerce.date())
|
|
581
608
|
});
|
|
582
|
-
var IncreaseSpotPositionQuote =
|
|
609
|
+
var IncreaseSpotPositionQuote = import_zod8.z.object({
|
|
583
610
|
/** Required collateral amount */
|
|
584
|
-
collateralAmount:
|
|
611
|
+
collateralAmount: import_zod8.z.coerce.bigint(),
|
|
585
612
|
/** Required amount to borrow */
|
|
586
|
-
borrowAmount:
|
|
613
|
+
borrowAmount: import_zod8.z.coerce.bigint(),
|
|
587
614
|
/** Estimated position size in the position token. */
|
|
588
|
-
estimatedAmount:
|
|
615
|
+
estimatedAmount: import_zod8.z.coerce.bigint(),
|
|
589
616
|
/** Swap input amount. */
|
|
590
|
-
swapInputAmount:
|
|
617
|
+
swapInputAmount: import_zod8.z.coerce.bigint(),
|
|
591
618
|
/** Minimum swap output amount according to the provided slippage. */
|
|
592
|
-
minSwapOutputAmount:
|
|
619
|
+
minSwapOutputAmount: import_zod8.z.coerce.bigint(),
|
|
593
620
|
/** Protocol fee in token A */
|
|
594
|
-
protocolFeeA:
|
|
621
|
+
protocolFeeA: import_zod8.z.coerce.bigint(),
|
|
595
622
|
/** Protocol fee in token B */
|
|
596
|
-
protocolFeeB:
|
|
623
|
+
protocolFeeB: import_zod8.z.coerce.bigint(),
|
|
597
624
|
/** Price impact in percents */
|
|
598
|
-
priceImpact:
|
|
625
|
+
priceImpact: import_zod8.z.number(),
|
|
599
626
|
/** Liquidation price */
|
|
600
|
-
liquidationPrice:
|
|
627
|
+
liquidationPrice: import_zod8.z.number()
|
|
601
628
|
});
|
|
602
|
-
var DecreaseSpotPositionQuote =
|
|
629
|
+
var DecreaseSpotPositionQuote = import_zod8.z.object({
|
|
603
630
|
/** Confirmed position decrease percentage (100% = 1.0) */
|
|
604
|
-
decreasePercent:
|
|
631
|
+
decreasePercent: import_zod8.z.number(),
|
|
605
632
|
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
606
633
|
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token).
|
|
607
634
|
*/
|
|
608
|
-
requiredSwapAmount:
|
|
635
|
+
requiredSwapAmount: import_zod8.z.coerce.bigint(),
|
|
609
636
|
/** Estimated total amount of the adjusted position */
|
|
610
|
-
estimatedAmount:
|
|
637
|
+
estimatedAmount: import_zod8.z.coerce.bigint(),
|
|
611
638
|
/** Estimated amount of the withdrawn collateral */
|
|
612
|
-
estimatedWithdrawnCollateral:
|
|
639
|
+
estimatedWithdrawnCollateral: import_zod8.z.coerce.bigint(),
|
|
613
640
|
/** Price impact in percents */
|
|
614
|
-
priceImpact:
|
|
641
|
+
priceImpact: import_zod8.z.number(),
|
|
615
642
|
/** Liquidation price */
|
|
616
|
-
liquidationPrice:
|
|
643
|
+
liquidationPrice: import_zod8.z.number()
|
|
617
644
|
});
|
|
618
|
-
var CloseSpotPositionQuote =
|
|
645
|
+
var CloseSpotPositionQuote = import_zod8.z.object({
|
|
619
646
|
/** Position decrease percentage */
|
|
620
|
-
decreasePercent:
|
|
647
|
+
decreasePercent: import_zod8.z.number(),
|
|
621
648
|
/** The maximum acceptable swap input amount for position decrease according to the provided slippage
|
|
622
649
|
* (if collateral_token == position_token) OR the minimum swap output amount (if collateral_token != position_token).
|
|
623
650
|
*/
|
|
624
|
-
requiredSwapAmount:
|
|
651
|
+
requiredSwapAmount: import_zod8.z.coerce.bigint(),
|
|
625
652
|
/** Estimated amount of the withdrawn collateral */
|
|
626
|
-
estimatedWithdrawnCollateral:
|
|
653
|
+
estimatedWithdrawnCollateral: import_zod8.z.coerce.bigint(),
|
|
627
654
|
/** Price impact in percents */
|
|
628
|
-
priceImpact:
|
|
655
|
+
priceImpact: import_zod8.z.number()
|
|
629
656
|
});
|
|
630
657
|
|
|
631
658
|
// src/client/schemas/state_snapshot.ts
|
|
632
|
-
var PoolSnapshot =
|
|
633
|
-
liquidity:
|
|
634
|
-
tickCurrentIndex:
|
|
635
|
-
price:
|
|
636
|
-
sqrtPrice:
|
|
637
|
-
tvl:
|
|
638
|
-
priceChange24H:
|
|
639
|
-
volume24H:
|
|
640
|
-
fees24H:
|
|
659
|
+
var PoolSnapshot = import_zod9.default.object({
|
|
660
|
+
liquidity: import_zod9.default.coerce.bigint(),
|
|
661
|
+
tickCurrentIndex: import_zod9.default.number(),
|
|
662
|
+
price: import_zod9.default.number(),
|
|
663
|
+
sqrtPrice: import_zod9.default.coerce.bigint(),
|
|
664
|
+
tvl: import_zod9.default.number(),
|
|
665
|
+
priceChange24H: import_zod9.default.number(),
|
|
666
|
+
volume24H: import_zod9.default.number(),
|
|
667
|
+
fees24H: import_zod9.default.number(),
|
|
641
668
|
borrowedFundsA: AmountWithUsdSchema,
|
|
642
669
|
borrowedFundsB: AmountWithUsdSchema,
|
|
643
670
|
borrowLimitA: AmountWithUsdSchema,
|
|
644
671
|
borrowLimitB: AmountWithUsdSchema
|
|
645
672
|
});
|
|
646
|
-
var StateSnapshot =
|
|
647
|
-
slot:
|
|
648
|
-
blockTime:
|
|
649
|
-
pools:
|
|
650
|
-
tunaSpotPositions:
|
|
651
|
-
tunaLpPositions:
|
|
652
|
-
fusionLimitOrders:
|
|
653
|
-
orderBooks:
|
|
673
|
+
var StateSnapshot = import_zod9.default.object({
|
|
674
|
+
slot: import_zod9.default.coerce.bigint(),
|
|
675
|
+
blockTime: import_zod9.default.coerce.date(),
|
|
676
|
+
pools: import_zod9.default.optional(import_zod9.default.record(import_zod9.default.string(), PoolSnapshot)),
|
|
677
|
+
tunaSpotPositions: import_zod9.default.optional(import_zod9.default.array(TunaSpotPosition)),
|
|
678
|
+
tunaLpPositions: import_zod9.default.optional(import_zod9.default.array(TunaLpPositionDtoSchema)),
|
|
679
|
+
fusionLimitOrders: import_zod9.default.optional(import_zod9.default.array(LimitOrder)),
|
|
680
|
+
orderBooks: import_zod9.default.optional(import_zod9.default.record(import_zod9.default.string(), OrderBook))
|
|
654
681
|
});
|
|
655
682
|
|
|
656
683
|
// src/client/schemas.ts
|
|
@@ -730,85 +757,81 @@ var WalletSubscriptionTopic = {
|
|
|
730
757
|
TRADE_HISTORY: "trade_history",
|
|
731
758
|
ORDER_HISTORY: "order_history"
|
|
732
759
|
};
|
|
733
|
-
var NotificationEntitySchema =
|
|
734
|
-
var NotificationActionSchema =
|
|
735
|
-
var TradeHistoryActionSchema =
|
|
736
|
-
var TradeHistoryUIDirectionSchema =
|
|
760
|
+
var NotificationEntitySchema = import_zod10.z.enum([NotificationEntity.POOL_SWAP, ...Object.values(NotificationEntity)]);
|
|
761
|
+
var NotificationActionSchema = import_zod10.z.enum([NotificationAction.CREATE, ...Object.values(NotificationAction)]);
|
|
762
|
+
var TradeHistoryActionSchema = import_zod10.z.enum([TradeHistoryAction.SWAP, ...Object.values(TradeHistoryAction)]);
|
|
763
|
+
var TradeHistoryUIDirectionSchema = import_zod10.z.enum([
|
|
737
764
|
TradeHistoryUIDirection.BUY,
|
|
738
765
|
...Object.values(TradeHistoryUIDirection)
|
|
739
766
|
]);
|
|
740
|
-
var OrderHistoryOrderTypeSchema =
|
|
767
|
+
var OrderHistoryOrderTypeSchema = import_zod10.z.enum([
|
|
741
768
|
OrderHistoryOrderType.MARKET,
|
|
742
769
|
...Object.values(OrderHistoryOrderType)
|
|
743
770
|
]);
|
|
744
|
-
var OrderHistoryStatusSchema =
|
|
745
|
-
var OrderHistoryUIDirectionSchema =
|
|
771
|
+
var OrderHistoryStatusSchema = import_zod10.z.enum([OrderHistoryStatus.OPEN, ...Object.values(OrderHistoryStatus)]);
|
|
772
|
+
var OrderHistoryUIDirectionSchema = import_zod10.z.enum([
|
|
746
773
|
OrderHistoryUIDirection.BUY,
|
|
747
774
|
...Object.values(OrderHistoryUIDirection)
|
|
748
775
|
]);
|
|
749
|
-
var StakingPositionHistoryActionTypeSchema =
|
|
776
|
+
var StakingPositionHistoryActionTypeSchema = import_zod10.z.enum([
|
|
750
777
|
StakingPositionHistoryActionType.STAKE,
|
|
751
778
|
...Object.values(StakingPositionHistoryActionType)
|
|
752
779
|
]);
|
|
753
|
-
var PoolSubscriptionTopicSchema =
|
|
780
|
+
var PoolSubscriptionTopicSchema = import_zod10.z.enum([
|
|
754
781
|
PoolSubscriptionTopic.ORDER_BOOK,
|
|
755
782
|
...Object.values(PoolSubscriptionTopic)
|
|
756
783
|
]);
|
|
757
|
-
var WalletSubscriptionTopicSchema =
|
|
784
|
+
var WalletSubscriptionTopicSchema = import_zod10.z.enum([
|
|
758
785
|
WalletSubscriptionTopic.TUNA_POSITIONS,
|
|
759
786
|
...Object.values(WalletSubscriptionTopic)
|
|
760
787
|
]);
|
|
761
|
-
var PaginationMeta =
|
|
762
|
-
total:
|
|
763
|
-
});
|
|
764
|
-
var Market =
|
|
765
|
-
address:
|
|
766
|
-
addressLookupTable:
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
liquidationFee: import_zod9.z.number(),
|
|
776
|
-
liquidationThreshold: import_zod9.z.number(),
|
|
777
|
-
oraclePriceDeviationThreshold: import_zod9.z.number(),
|
|
778
|
-
maxSpotPositionSizeA: AmountWithUsdSchema,
|
|
779
|
-
maxSpotPositionSizeB: AmountWithUsdSchema,
|
|
788
|
+
var PaginationMeta = import_zod10.z.object({
|
|
789
|
+
total: import_zod10.z.number()
|
|
790
|
+
});
|
|
791
|
+
var Market = import_zod10.z.object({
|
|
792
|
+
address: import_zod10.z.string(),
|
|
793
|
+
addressLookupTable: import_zod10.z.string(),
|
|
794
|
+
maxLeverage: import_zod10.z.number(),
|
|
795
|
+
maxSwapSlippage: import_zod10.z.number(),
|
|
796
|
+
protocolFee: import_zod10.z.number(),
|
|
797
|
+
protocolFeeOnCollateral: import_zod10.z.number(),
|
|
798
|
+
liquidationFee: import_zod10.z.number(),
|
|
799
|
+
liquidationThreshold: import_zod10.z.number(),
|
|
800
|
+
oraclePriceDeviationThreshold: import_zod10.z.number(),
|
|
801
|
+
rebalanceProtocolFee: import_zod10.z.number(),
|
|
780
802
|
borrowedFundsA: AmountWithUsdSchema,
|
|
781
803
|
borrowedFundsB: AmountWithUsdSchema,
|
|
782
|
-
availableBorrowA: AmountWithUsdSchema,
|
|
783
|
-
availableBorrowB: AmountWithUsdSchema,
|
|
784
804
|
borrowLimitA: AmountWithUsdSchema,
|
|
785
805
|
borrowLimitB: AmountWithUsdSchema,
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
806
|
+
maxSpotPositionSizeA: AmountWithUsdSchema,
|
|
807
|
+
maxSpotPositionSizeB: AmountWithUsdSchema,
|
|
808
|
+
pool: Pool,
|
|
809
|
+
disabled: import_zod10.z.boolean(),
|
|
810
|
+
createdAt: import_zod10.z.coerce.date()
|
|
811
|
+
});
|
|
812
|
+
var TokenOraclePrice = import_zod10.z.object({
|
|
813
|
+
mint: import_zod10.z.string(),
|
|
814
|
+
price: import_zod10.z.coerce.bigint(),
|
|
815
|
+
decimals: import_zod10.z.number(),
|
|
816
|
+
time: import_zod10.z.coerce.date()
|
|
817
|
+
});
|
|
818
|
+
var Vault = import_zod10.z.object({
|
|
819
|
+
address: import_zod10.z.string(),
|
|
820
|
+
mint: import_zod10.z.string(),
|
|
798
821
|
depositedFunds: AmountWithUsdSchema,
|
|
799
822
|
borrowedFunds: AmountWithUsdSchema,
|
|
800
823
|
supplyLimit: AmountWithUsdSchema,
|
|
801
|
-
borrowedShares:
|
|
802
|
-
depositedShares:
|
|
803
|
-
supplyApy:
|
|
804
|
-
borrowApy:
|
|
805
|
-
interestRate:
|
|
806
|
-
utilization:
|
|
807
|
-
pythOracleFeedId:
|
|
808
|
-
pythOraclePriceUpdate:
|
|
809
|
-
});
|
|
810
|
-
var VaultHistoricalStats =
|
|
811
|
-
date:
|
|
824
|
+
borrowedShares: import_zod10.z.coerce.bigint(),
|
|
825
|
+
depositedShares: import_zod10.z.coerce.bigint(),
|
|
826
|
+
supplyApy: import_zod10.z.number(),
|
|
827
|
+
borrowApy: import_zod10.z.number(),
|
|
828
|
+
interestRate: import_zod10.z.coerce.bigint(),
|
|
829
|
+
utilization: import_zod10.z.number(),
|
|
830
|
+
pythOracleFeedId: import_zod10.z.string(),
|
|
831
|
+
pythOraclePriceUpdate: import_zod10.z.string()
|
|
832
|
+
});
|
|
833
|
+
var VaultHistoricalStats = import_zod10.z.object({
|
|
834
|
+
date: import_zod10.z.preprocess((val, ctx) => {
|
|
812
835
|
if (typeof val === "string") {
|
|
813
836
|
const [year, month, day] = val.split("-").map(Number);
|
|
814
837
|
return new Date(year, month - 1, day);
|
|
@@ -817,259 +840,216 @@ var VaultHistoricalStats = import_zod9.z.object({
|
|
|
817
840
|
code: "custom",
|
|
818
841
|
message: "Not a valid date string"
|
|
819
842
|
});
|
|
820
|
-
return
|
|
821
|
-
},
|
|
843
|
+
return import_zod10.z.NEVER;
|
|
844
|
+
}, import_zod10.z.date()),
|
|
822
845
|
supply: AmountWithUsdSchema,
|
|
823
846
|
borrow: AmountWithUsdSchema,
|
|
824
|
-
supplyApy:
|
|
825
|
-
borrowApr:
|
|
847
|
+
supplyApy: import_zod10.z.number(),
|
|
848
|
+
borrowApr: import_zod10.z.number()
|
|
826
849
|
});
|
|
827
|
-
var
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
tokenAMint: import_zod9.z.string(),
|
|
831
|
-
tokenBMint: import_zod9.z.string(),
|
|
832
|
-
tokenAVault: import_zod9.z.string(),
|
|
833
|
-
tokenBVault: import_zod9.z.string(),
|
|
834
|
-
tvlUsdc: import_zod9.z.coerce.number(),
|
|
835
|
-
priceChange24H: import_zod9.z.number(),
|
|
836
|
-
tickSpacing: import_zod9.z.number(),
|
|
837
|
-
feeRate: import_zod9.z.number(),
|
|
838
|
-
olpFeeRate: import_zod9.z.nullable(import_zod9.z.number()),
|
|
839
|
-
protocolFeeRate: import_zod9.z.number(),
|
|
840
|
-
liquidity: import_zod9.z.coerce.bigint(),
|
|
841
|
-
sqrtPrice: import_zod9.z.coerce.bigint(),
|
|
842
|
-
tickCurrentIndex: import_zod9.z.number(),
|
|
843
|
-
stats: import_zod9.z.object({
|
|
844
|
-
"24h": import_zod9.z.object({
|
|
845
|
-
volume: import_zod9.z.coerce.number(),
|
|
846
|
-
fees: import_zod9.z.coerce.number(),
|
|
847
|
-
rewards: import_zod9.z.coerce.number(),
|
|
848
|
-
yieldOverTvl: import_zod9.z.coerce.number()
|
|
849
|
-
}),
|
|
850
|
-
"7d": import_zod9.z.object({
|
|
851
|
-
volume: import_zod9.z.coerce.number(),
|
|
852
|
-
fees: import_zod9.z.coerce.number(),
|
|
853
|
-
rewards: import_zod9.z.coerce.number(),
|
|
854
|
-
yieldOverTvl: import_zod9.z.coerce.number()
|
|
855
|
-
}),
|
|
856
|
-
"30d": import_zod9.z.object({
|
|
857
|
-
volume: import_zod9.z.coerce.number(),
|
|
858
|
-
fees: import_zod9.z.coerce.number(),
|
|
859
|
-
rewards: import_zod9.z.coerce.number(),
|
|
860
|
-
yieldOverTvl: import_zod9.z.coerce.number()
|
|
861
|
-
})
|
|
862
|
-
})
|
|
850
|
+
var Tick = import_zod10.z.object({
|
|
851
|
+
index: import_zod10.z.number(),
|
|
852
|
+
liquidity: import_zod10.z.coerce.bigint()
|
|
863
853
|
});
|
|
864
|
-
var
|
|
865
|
-
|
|
866
|
-
liquidity: import_zod9.z.coerce.bigint()
|
|
867
|
-
});
|
|
868
|
-
var PoolTicks = import_zod9.z.object({
|
|
869
|
-
tickSpacing: import_zod9.z.number(),
|
|
854
|
+
var PoolTicks = import_zod10.z.object({
|
|
855
|
+
tickSpacing: import_zod10.z.number(),
|
|
870
856
|
ticks: Tick.array()
|
|
871
857
|
});
|
|
872
|
-
var LendingPosition =
|
|
873
|
-
address:
|
|
874
|
-
authority:
|
|
875
|
-
mint:
|
|
876
|
-
vault:
|
|
877
|
-
shares:
|
|
858
|
+
var LendingPosition = import_zod10.z.object({
|
|
859
|
+
address: import_zod10.z.string(),
|
|
860
|
+
authority: import_zod10.z.string(),
|
|
861
|
+
mint: import_zod10.z.string(),
|
|
862
|
+
vault: import_zod10.z.string(),
|
|
863
|
+
shares: import_zod10.z.coerce.bigint(),
|
|
878
864
|
funds: AmountWithUsdSchema,
|
|
879
865
|
earned: AmountWithUsdSchema
|
|
880
866
|
});
|
|
881
|
-
var PoolSwap =
|
|
882
|
-
id:
|
|
883
|
-
amountIn:
|
|
884
|
-
amountOut:
|
|
885
|
-
amountUsd:
|
|
886
|
-
aToB:
|
|
887
|
-
pool:
|
|
888
|
-
time:
|
|
867
|
+
var PoolSwap = import_zod10.z.object({
|
|
868
|
+
id: import_zod10.z.string(),
|
|
869
|
+
amountIn: import_zod10.z.coerce.bigint(),
|
|
870
|
+
amountOut: import_zod10.z.coerce.bigint(),
|
|
871
|
+
amountUsd: import_zod10.z.number(),
|
|
872
|
+
aToB: import_zod10.z.boolean(),
|
|
873
|
+
pool: import_zod10.z.string(),
|
|
874
|
+
time: import_zod10.z.coerce.date()
|
|
889
875
|
});
|
|
890
|
-
var TradeHistoryEntry =
|
|
876
|
+
var TradeHistoryEntry = import_zod10.z.object({
|
|
891
877
|
// Internal entry ID
|
|
892
|
-
id:
|
|
893
|
-
pool:
|
|
894
|
-
authority:
|
|
895
|
-
aToB:
|
|
878
|
+
id: import_zod10.z.string(),
|
|
879
|
+
pool: import_zod10.z.string(),
|
|
880
|
+
authority: import_zod10.z.string(),
|
|
881
|
+
aToB: import_zod10.z.boolean(),
|
|
896
882
|
// Trade action which created entry
|
|
897
883
|
action: TradeHistoryActionSchema,
|
|
898
884
|
// Trade direction formatted for ui display
|
|
899
885
|
uiDirection: TradeHistoryUIDirectionSchema,
|
|
900
886
|
// Trade price formatted for ui display
|
|
901
|
-
uiPrice:
|
|
887
|
+
uiPrice: import_zod10.z.number(),
|
|
902
888
|
baseToken: AmountWithUsdSchema,
|
|
903
889
|
quoteToken: AmountWithUsdSchema,
|
|
904
890
|
fee: AmountWithUsdSchema,
|
|
905
|
-
pnl:
|
|
906
|
-
|
|
907
|
-
usd:
|
|
908
|
-
bps:
|
|
891
|
+
pnl: import_zod10.z.nullable(
|
|
892
|
+
import_zod10.z.object({
|
|
893
|
+
usd: import_zod10.z.number(),
|
|
894
|
+
bps: import_zod10.z.number()
|
|
909
895
|
})
|
|
910
896
|
),
|
|
911
|
-
txSignature:
|
|
912
|
-
positionAddress:
|
|
913
|
-
slot:
|
|
914
|
-
ts:
|
|
897
|
+
txSignature: import_zod10.z.nullable(import_zod10.z.string()),
|
|
898
|
+
positionAddress: import_zod10.z.nullable(import_zod10.z.string()),
|
|
899
|
+
slot: import_zod10.z.coerce.bigint(),
|
|
900
|
+
ts: import_zod10.z.coerce.date()
|
|
915
901
|
});
|
|
916
|
-
var OrderHistoryEntry =
|
|
902
|
+
var OrderHistoryEntry = import_zod10.z.object({
|
|
917
903
|
// Internal entry ID
|
|
918
|
-
id:
|
|
919
|
-
pool:
|
|
920
|
-
authority:
|
|
904
|
+
id: import_zod10.z.string(),
|
|
905
|
+
pool: import_zod10.z.string(),
|
|
906
|
+
authority: import_zod10.z.string(),
|
|
921
907
|
orderType: OrderHistoryOrderTypeSchema,
|
|
922
|
-
isReduceOnly:
|
|
923
|
-
aToB:
|
|
908
|
+
isReduceOnly: import_zod10.z.nullable(import_zod10.z.boolean()),
|
|
909
|
+
aToB: import_zod10.z.boolean(),
|
|
924
910
|
uiDirection: OrderHistoryUIDirectionSchema,
|
|
925
|
-
uiPrice:
|
|
926
|
-
uiExecutionPrice:
|
|
911
|
+
uiPrice: import_zod10.z.nullable(import_zod10.z.number()),
|
|
912
|
+
uiExecutionPrice: import_zod10.z.nullable(import_zod10.z.number()),
|
|
927
913
|
status: OrderHistoryStatusSchema,
|
|
928
914
|
baseToken: AmountWithUsdSchema,
|
|
929
915
|
quoteToken: AmountWithUsdSchema,
|
|
930
|
-
baseTokenConsumedAmount:
|
|
931
|
-
quoteTokenFilledAmount:
|
|
932
|
-
txSignature:
|
|
933
|
-
positionAddress:
|
|
934
|
-
slot:
|
|
935
|
-
ts:
|
|
936
|
-
});
|
|
937
|
-
var StakingTreasury =
|
|
938
|
-
address:
|
|
939
|
-
stakedTokenMint:
|
|
940
|
-
rewardTokenMint:
|
|
941
|
-
apy:
|
|
942
|
-
uniqueStakers:
|
|
916
|
+
baseTokenConsumedAmount: import_zod10.z.nullable(AmountWithUsdSchema),
|
|
917
|
+
quoteTokenFilledAmount: import_zod10.z.nullable(AmountWithUsdSchema),
|
|
918
|
+
txSignature: import_zod10.z.nullable(import_zod10.z.string()),
|
|
919
|
+
positionAddress: import_zod10.z.nullable(import_zod10.z.string()),
|
|
920
|
+
slot: import_zod10.z.coerce.bigint(),
|
|
921
|
+
ts: import_zod10.z.coerce.date()
|
|
922
|
+
});
|
|
923
|
+
var StakingTreasury = import_zod10.z.object({
|
|
924
|
+
address: import_zod10.z.string(),
|
|
925
|
+
stakedTokenMint: import_zod10.z.string(),
|
|
926
|
+
rewardTokenMint: import_zod10.z.string(),
|
|
927
|
+
apy: import_zod10.z.number(),
|
|
928
|
+
uniqueStakers: import_zod10.z.number(),
|
|
943
929
|
totalStaked: AmountWithUsdSchema,
|
|
944
930
|
totalReward: AmountWithUsdSchema,
|
|
945
|
-
unstakeCooldownSeconds:
|
|
946
|
-
isStakingEnabled:
|
|
947
|
-
isUnstakingEnabled:
|
|
948
|
-
isWithdrawEnabled:
|
|
949
|
-
});
|
|
950
|
-
var StakingPosition =
|
|
951
|
-
address:
|
|
952
|
-
owner:
|
|
931
|
+
unstakeCooldownSeconds: import_zod10.z.number(),
|
|
932
|
+
isStakingEnabled: import_zod10.z.boolean(),
|
|
933
|
+
isUnstakingEnabled: import_zod10.z.boolean(),
|
|
934
|
+
isWithdrawEnabled: import_zod10.z.boolean()
|
|
935
|
+
});
|
|
936
|
+
var StakingPosition = import_zod10.z.object({
|
|
937
|
+
address: import_zod10.z.string(),
|
|
938
|
+
owner: import_zod10.z.string(),
|
|
953
939
|
staked: AmountWithUsdSchema,
|
|
954
940
|
unstaked: AmountWithUsdSchema,
|
|
955
941
|
claimedReward: AmountWithUsdSchema,
|
|
956
942
|
unclaimedReward: AmountWithUsdSchema,
|
|
957
|
-
rank:
|
|
958
|
-
vesting:
|
|
943
|
+
rank: import_zod10.z.nullable(import_zod10.z.number()),
|
|
944
|
+
vesting: import_zod10.z.object({
|
|
959
945
|
locked: AmountWithUsdSchema,
|
|
960
946
|
unlocked: AmountWithUsdSchema,
|
|
961
|
-
unlockRate:
|
|
962
|
-
unlockEverySeconds:
|
|
963
|
-
unlockCliffSeconds:
|
|
964
|
-
lockedAt:
|
|
947
|
+
unlockRate: import_zod10.z.coerce.bigint(),
|
|
948
|
+
unlockEverySeconds: import_zod10.z.number(),
|
|
949
|
+
unlockCliffSeconds: import_zod10.z.number(),
|
|
950
|
+
lockedAt: import_zod10.z.nullable(import_zod10.z.coerce.date())
|
|
965
951
|
}),
|
|
966
|
-
lastUnstakedAt:
|
|
967
|
-
withdrawAvailableAt:
|
|
952
|
+
lastUnstakedAt: import_zod10.z.nullable(import_zod10.z.coerce.date()),
|
|
953
|
+
withdrawAvailableAt: import_zod10.z.nullable(import_zod10.z.coerce.date())
|
|
968
954
|
});
|
|
969
|
-
var StakingLeaderboardPosition =
|
|
970
|
-
rank:
|
|
971
|
-
address:
|
|
972
|
-
owner:
|
|
955
|
+
var StakingLeaderboardPosition = import_zod10.z.object({
|
|
956
|
+
rank: import_zod10.z.number(),
|
|
957
|
+
address: import_zod10.z.string(),
|
|
958
|
+
owner: import_zod10.z.string(),
|
|
973
959
|
staked: AmountWithUsdSchema
|
|
974
960
|
});
|
|
975
|
-
var StakingLeaderboardPage =
|
|
961
|
+
var StakingLeaderboardPage = import_zod10.z.object({
|
|
976
962
|
data: StakingLeaderboardPosition.array(),
|
|
977
963
|
meta: PaginationMeta
|
|
978
964
|
});
|
|
979
|
-
var StakingPositionHistoryAction =
|
|
980
|
-
position:
|
|
965
|
+
var StakingPositionHistoryAction = import_zod10.z.object({
|
|
966
|
+
position: import_zod10.z.string(),
|
|
981
967
|
action: StakingPositionHistoryActionTypeSchema,
|
|
982
|
-
txSignature:
|
|
983
|
-
amount:
|
|
984
|
-
time:
|
|
985
|
-
});
|
|
986
|
-
var PoolPriceCandle =
|
|
987
|
-
time:
|
|
988
|
-
open:
|
|
989
|
-
close:
|
|
990
|
-
high:
|
|
991
|
-
low:
|
|
992
|
-
volume:
|
|
993
|
-
});
|
|
994
|
-
var FeesStatsGroup =
|
|
995
|
-
time:
|
|
996
|
-
addLiquidityFees:
|
|
997
|
-
limitOrderFees:
|
|
998
|
-
yieldCompoundingFees:
|
|
999
|
-
liquidationFees:
|
|
1000
|
-
totalLiquidationsNetworkFees:
|
|
1001
|
-
totalLimitOrdersNetworkFees:
|
|
1002
|
-
totalYieldCompoundingNetworkFees:
|
|
1003
|
-
failedNetworkFees:
|
|
1004
|
-
processedNetworkFees:
|
|
1005
|
-
totalCollectedFees:
|
|
1006
|
-
totalNetworkFees:
|
|
1007
|
-
jitoLiquidationFees:
|
|
1008
|
-
jitoLimitOrderFees:
|
|
1009
|
-
jitoYieldCompoundingFees:
|
|
1010
|
-
runningAddLiquidityFees:
|
|
1011
|
-
runningLimitOrderFees:
|
|
1012
|
-
runningYieldCompoundingFees:
|
|
1013
|
-
runningLiquidationFees:
|
|
1014
|
-
runningTotalLiquidationsNetworkFees:
|
|
1015
|
-
runningTotalLimitOrdersNetworkFees:
|
|
1016
|
-
runningTotalYieldCompoundingNetworkFees:
|
|
1017
|
-
runningFailedNetworkFees:
|
|
1018
|
-
runningProcessedNetworkFees:
|
|
1019
|
-
runningJitoLiquidationFees:
|
|
1020
|
-
runningJitoLimitOrderFees:
|
|
1021
|
-
runningJitoYieldCompoundingFees:
|
|
1022
|
-
runningTotalCollectedFees:
|
|
1023
|
-
runningTotalNetworkFees:
|
|
1024
|
-
});
|
|
1025
|
-
var StakingRevenueStatsGroup =
|
|
1026
|
-
time:
|
|
1027
|
-
totalDepositsUsd:
|
|
1028
|
-
totalDepositsSol:
|
|
1029
|
-
runningTotalDepositsUsd:
|
|
1030
|
-
runningTotalDepositsSol:
|
|
1031
|
-
});
|
|
1032
|
-
var SwapQuoteByInput =
|
|
1033
|
-
estimatedAmountOut:
|
|
1034
|
-
minAmountOut:
|
|
1035
|
-
feeAmount:
|
|
1036
|
-
feeUsd:
|
|
968
|
+
txSignature: import_zod10.z.string(),
|
|
969
|
+
amount: import_zod10.z.coerce.bigint(),
|
|
970
|
+
time: import_zod10.z.coerce.date()
|
|
971
|
+
});
|
|
972
|
+
var PoolPriceCandle = import_zod10.z.object({
|
|
973
|
+
time: import_zod10.z.number(),
|
|
974
|
+
open: import_zod10.z.number(),
|
|
975
|
+
close: import_zod10.z.number(),
|
|
976
|
+
high: import_zod10.z.number(),
|
|
977
|
+
low: import_zod10.z.number(),
|
|
978
|
+
volume: import_zod10.z.number()
|
|
979
|
+
});
|
|
980
|
+
var FeesStatsGroup = import_zod10.z.object({
|
|
981
|
+
time: import_zod10.z.coerce.date(),
|
|
982
|
+
addLiquidityFees: import_zod10.z.number(),
|
|
983
|
+
limitOrderFees: import_zod10.z.number(),
|
|
984
|
+
yieldCompoundingFees: import_zod10.z.number(),
|
|
985
|
+
liquidationFees: import_zod10.z.number(),
|
|
986
|
+
totalLiquidationsNetworkFees: import_zod10.z.number(),
|
|
987
|
+
totalLimitOrdersNetworkFees: import_zod10.z.number(),
|
|
988
|
+
totalYieldCompoundingNetworkFees: import_zod10.z.number(),
|
|
989
|
+
failedNetworkFees: import_zod10.z.number(),
|
|
990
|
+
processedNetworkFees: import_zod10.z.number(),
|
|
991
|
+
totalCollectedFees: import_zod10.z.number(),
|
|
992
|
+
totalNetworkFees: import_zod10.z.number(),
|
|
993
|
+
jitoLiquidationFees: import_zod10.z.number(),
|
|
994
|
+
jitoLimitOrderFees: import_zod10.z.number(),
|
|
995
|
+
jitoYieldCompoundingFees: import_zod10.z.number(),
|
|
996
|
+
runningAddLiquidityFees: import_zod10.z.number(),
|
|
997
|
+
runningLimitOrderFees: import_zod10.z.number(),
|
|
998
|
+
runningYieldCompoundingFees: import_zod10.z.number(),
|
|
999
|
+
runningLiquidationFees: import_zod10.z.number(),
|
|
1000
|
+
runningTotalLiquidationsNetworkFees: import_zod10.z.number(),
|
|
1001
|
+
runningTotalLimitOrdersNetworkFees: import_zod10.z.number(),
|
|
1002
|
+
runningTotalYieldCompoundingNetworkFees: import_zod10.z.number(),
|
|
1003
|
+
runningFailedNetworkFees: import_zod10.z.number(),
|
|
1004
|
+
runningProcessedNetworkFees: import_zod10.z.number(),
|
|
1005
|
+
runningJitoLiquidationFees: import_zod10.z.number(),
|
|
1006
|
+
runningJitoLimitOrderFees: import_zod10.z.number(),
|
|
1007
|
+
runningJitoYieldCompoundingFees: import_zod10.z.number(),
|
|
1008
|
+
runningTotalCollectedFees: import_zod10.z.number(),
|
|
1009
|
+
runningTotalNetworkFees: import_zod10.z.number()
|
|
1010
|
+
});
|
|
1011
|
+
var StakingRevenueStatsGroup = import_zod10.z.object({
|
|
1012
|
+
time: import_zod10.z.coerce.date(),
|
|
1013
|
+
totalDepositsUsd: import_zod10.z.number(),
|
|
1014
|
+
totalDepositsSol: import_zod10.z.coerce.bigint(),
|
|
1015
|
+
runningTotalDepositsUsd: import_zod10.z.number(),
|
|
1016
|
+
runningTotalDepositsSol: import_zod10.z.coerce.bigint()
|
|
1017
|
+
});
|
|
1018
|
+
var SwapQuoteByInput = import_zod10.z.object({
|
|
1019
|
+
estimatedAmountOut: import_zod10.z.coerce.bigint(),
|
|
1020
|
+
minAmountOut: import_zod10.z.coerce.bigint(),
|
|
1021
|
+
feeAmount: import_zod10.z.coerce.bigint(),
|
|
1022
|
+
feeUsd: import_zod10.z.number(),
|
|
1037
1023
|
/** Price impact in percents */
|
|
1038
|
-
priceImpact:
|
|
1024
|
+
priceImpact: import_zod10.z.number()
|
|
1039
1025
|
});
|
|
1040
|
-
var SwapQuoteByOutput =
|
|
1041
|
-
estimatedAmountIn:
|
|
1042
|
-
maxAmountIn:
|
|
1043
|
-
feeAmount:
|
|
1044
|
-
feeUsd:
|
|
1026
|
+
var SwapQuoteByOutput = import_zod10.z.object({
|
|
1027
|
+
estimatedAmountIn: import_zod10.z.coerce.bigint(),
|
|
1028
|
+
maxAmountIn: import_zod10.z.coerce.bigint(),
|
|
1029
|
+
feeAmount: import_zod10.z.coerce.bigint(),
|
|
1030
|
+
feeUsd: import_zod10.z.number(),
|
|
1045
1031
|
/** Price impact in percents */
|
|
1046
|
-
priceImpact:
|
|
1032
|
+
priceImpact: import_zod10.z.number()
|
|
1047
1033
|
});
|
|
1048
|
-
var LimitOrderQuoteByInput =
|
|
1049
|
-
amountOut:
|
|
1034
|
+
var LimitOrderQuoteByInput = import_zod10.z.object({
|
|
1035
|
+
amountOut: import_zod10.z.coerce.bigint()
|
|
1050
1036
|
});
|
|
1051
|
-
var LimitOrderQuoteByOutput =
|
|
1052
|
-
amountIn:
|
|
1037
|
+
var LimitOrderQuoteByOutput = import_zod10.z.object({
|
|
1038
|
+
amountIn: import_zod10.z.coerce.bigint()
|
|
1053
1039
|
});
|
|
1054
1040
|
var TradableAmount = AmountWithUsdSchema;
|
|
1055
|
-
var UpdateStreamSubscriptionResult =
|
|
1056
|
-
status:
|
|
1041
|
+
var UpdateStreamSubscriptionResult = import_zod10.z.object({
|
|
1042
|
+
status: import_zod10.z.string()
|
|
1057
1043
|
});
|
|
1058
|
-
var createNotificationSchema = (dataSchema, metaSchema) =>
|
|
1044
|
+
var createNotificationSchema = (dataSchema, metaSchema) => import_zod10.z.object({
|
|
1059
1045
|
entity: NotificationEntitySchema,
|
|
1060
1046
|
action: NotificationActionSchema,
|
|
1061
1047
|
data: dataSchema,
|
|
1062
|
-
id:
|
|
1063
|
-
authority:
|
|
1064
|
-
...metaSchema ? { meta: metaSchema } : { meta:
|
|
1065
|
-
});
|
|
1066
|
-
var OrderBookNotificationMeta = import_zod9.z.object({
|
|
1067
|
-
pool: import_zod9.z.string(),
|
|
1068
|
-
priceStep: import_zod9.z.number(),
|
|
1069
|
-
inverted: import_zod9.z.boolean()
|
|
1048
|
+
id: import_zod10.z.string(),
|
|
1049
|
+
authority: import_zod10.z.nullish(import_zod10.z.string()),
|
|
1050
|
+
...metaSchema ? { meta: metaSchema } : { meta: import_zod10.z.undefined().nullable() }
|
|
1070
1051
|
});
|
|
1071
1052
|
var PoolSwapNotification = createNotificationSchema(PoolSwap);
|
|
1072
|
-
var OrderBookNotification = createNotificationSchema(OrderBook, OrderBookNotificationMeta);
|
|
1073
1053
|
var LendingPositionNotification = createNotificationSchema(LendingPosition);
|
|
1074
1054
|
var TradeHistoryEntryNotification = createNotificationSchema(TradeHistoryEntry);
|
|
1075
1055
|
var OrderHistoryEntryNotification = createNotificationSchema(OrderHistoryEntry);
|