@crypticdot/defituna-api 1.10.6 → 1.10.7
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 +102 -1
- package/dist/index.d.ts +102 -1
- package/dist/index.js +15 -0
- package/dist/index.mjs +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -989,6 +989,31 @@ declare const OrderBookWrapper: z$1.ZodObject<{
|
|
|
989
989
|
askSide: z$1.ZodBoolean;
|
|
990
990
|
}, z$1.core.$strip>>;
|
|
991
991
|
}, z$1.core.$strip>;
|
|
992
|
+
declare const PoolSnapshot: z$1.ZodObject<{
|
|
993
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
994
|
+
tickCurrentIndex: z$1.ZodNumber;
|
|
995
|
+
price: z$1.ZodNumber;
|
|
996
|
+
tvl: z$1.ZodNumber;
|
|
997
|
+
priceChange24H: z$1.ZodNumber;
|
|
998
|
+
volume24H: z$1.ZodNumber;
|
|
999
|
+
fees24H: z$1.ZodNumber;
|
|
1000
|
+
borrowedFundsA: z$1.ZodObject<{
|
|
1001
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1002
|
+
usd: z$1.ZodNumber;
|
|
1003
|
+
}, z$1.core.$strip>;
|
|
1004
|
+
borrowedFundsB: z$1.ZodObject<{
|
|
1005
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1006
|
+
usd: z$1.ZodNumber;
|
|
1007
|
+
}, z$1.core.$strip>;
|
|
1008
|
+
borrowLimitA: z$1.ZodObject<{
|
|
1009
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1010
|
+
usd: z$1.ZodNumber;
|
|
1011
|
+
}, z$1.core.$strip>;
|
|
1012
|
+
borrowLimitB: z$1.ZodObject<{
|
|
1013
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1014
|
+
usd: z$1.ZodNumber;
|
|
1015
|
+
}, z$1.core.$strip>;
|
|
1016
|
+
}, z$1.core.$strip>;
|
|
992
1017
|
declare const StateSnapshot$1: z$1.ZodObject<{
|
|
993
1018
|
slot: z$1.ZodCoercedBigInt<unknown>;
|
|
994
1019
|
blockTime: z$1.ZodCoercedDate<unknown>;
|
|
@@ -998,6 +1023,31 @@ declare const StateSnapshot$1: z$1.ZodObject<{
|
|
|
998
1023
|
sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
999
1024
|
time: z$1.ZodCoercedDate<unknown>;
|
|
1000
1025
|
}, z$1.core.$strip>>>;
|
|
1026
|
+
pools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
1027
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
1028
|
+
tickCurrentIndex: z$1.ZodNumber;
|
|
1029
|
+
price: z$1.ZodNumber;
|
|
1030
|
+
tvl: z$1.ZodNumber;
|
|
1031
|
+
priceChange24H: z$1.ZodNumber;
|
|
1032
|
+
volume24H: z$1.ZodNumber;
|
|
1033
|
+
fees24H: z$1.ZodNumber;
|
|
1034
|
+
borrowedFundsA: z$1.ZodObject<{
|
|
1035
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1036
|
+
usd: z$1.ZodNumber;
|
|
1037
|
+
}, z$1.core.$strip>;
|
|
1038
|
+
borrowedFundsB: z$1.ZodObject<{
|
|
1039
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1040
|
+
usd: z$1.ZodNumber;
|
|
1041
|
+
}, z$1.core.$strip>;
|
|
1042
|
+
borrowLimitA: z$1.ZodObject<{
|
|
1043
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1044
|
+
usd: z$1.ZodNumber;
|
|
1045
|
+
}, z$1.core.$strip>;
|
|
1046
|
+
borrowLimitB: z$1.ZodObject<{
|
|
1047
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1048
|
+
usd: z$1.ZodNumber;
|
|
1049
|
+
}, z$1.core.$strip>;
|
|
1050
|
+
}, z$1.core.$strip>>>;
|
|
1001
1051
|
tunaSpotPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1002
1052
|
address: z$1.ZodString;
|
|
1003
1053
|
authority: z$1.ZodString;
|
|
@@ -2508,6 +2558,31 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2508
2558
|
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
2509
2559
|
time: z.ZodCoercedDate<unknown>;
|
|
2510
2560
|
}, z.core.$strip>>>;
|
|
2561
|
+
pools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2562
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2563
|
+
tickCurrentIndex: z.ZodNumber;
|
|
2564
|
+
price: z.ZodNumber;
|
|
2565
|
+
tvl: z.ZodNumber;
|
|
2566
|
+
priceChange24H: z.ZodNumber;
|
|
2567
|
+
volume24H: z.ZodNumber;
|
|
2568
|
+
fees24H: z.ZodNumber;
|
|
2569
|
+
borrowedFundsA: z.ZodObject<{
|
|
2570
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2571
|
+
usd: z.ZodNumber;
|
|
2572
|
+
}, z.core.$strip>;
|
|
2573
|
+
borrowedFundsB: z.ZodObject<{
|
|
2574
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2575
|
+
usd: z.ZodNumber;
|
|
2576
|
+
}, z.core.$strip>;
|
|
2577
|
+
borrowLimitA: z.ZodObject<{
|
|
2578
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2579
|
+
usd: z.ZodNumber;
|
|
2580
|
+
}, z.core.$strip>;
|
|
2581
|
+
borrowLimitB: z.ZodObject<{
|
|
2582
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2583
|
+
usd: z.ZodNumber;
|
|
2584
|
+
}, z.core.$strip>;
|
|
2585
|
+
}, z.core.$strip>>>;
|
|
2511
2586
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2512
2587
|
address: z.ZodString;
|
|
2513
2588
|
authority: z.ZodString;
|
|
@@ -2792,6 +2867,31 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2792
2867
|
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
2793
2868
|
time: z.ZodCoercedDate<unknown>;
|
|
2794
2869
|
}, z.core.$strip>>>;
|
|
2870
|
+
pools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2871
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2872
|
+
tickCurrentIndex: z.ZodNumber;
|
|
2873
|
+
price: z.ZodNumber;
|
|
2874
|
+
tvl: z.ZodNumber;
|
|
2875
|
+
priceChange24H: z.ZodNumber;
|
|
2876
|
+
volume24H: z.ZodNumber;
|
|
2877
|
+
fees24H: z.ZodNumber;
|
|
2878
|
+
borrowedFundsA: z.ZodObject<{
|
|
2879
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2880
|
+
usd: z.ZodNumber;
|
|
2881
|
+
}, z.core.$strip>;
|
|
2882
|
+
borrowedFundsB: z.ZodObject<{
|
|
2883
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2884
|
+
usd: z.ZodNumber;
|
|
2885
|
+
}, z.core.$strip>;
|
|
2886
|
+
borrowLimitA: z.ZodObject<{
|
|
2887
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2888
|
+
usd: z.ZodNumber;
|
|
2889
|
+
}, z.core.$strip>;
|
|
2890
|
+
borrowLimitB: z.ZodObject<{
|
|
2891
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2892
|
+
usd: z.ZodNumber;
|
|
2893
|
+
}, z.core.$strip>;
|
|
2894
|
+
}, z.core.$strip>>>;
|
|
2795
2895
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2796
2896
|
address: z.ZodString;
|
|
2797
2897
|
authority: z.ZodString;
|
|
@@ -3078,6 +3178,7 @@ declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
|
|
|
3078
3178
|
declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
|
|
3079
3179
|
declare const schemas_PoolProvider: typeof PoolProvider;
|
|
3080
3180
|
declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
|
|
3181
|
+
declare const schemas_PoolSnapshot: typeof PoolSnapshot;
|
|
3081
3182
|
declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
|
|
3082
3183
|
declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
|
|
3083
3184
|
declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
|
|
@@ -3122,7 +3223,7 @@ declare const schemas_UsdPnlSchema: typeof UsdPnlSchema;
|
|
|
3122
3223
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
3123
3224
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
3124
3225
|
declare namespace schemas {
|
|
3125
|
-
export { schemas_AmountWithUsdSchema as AmountWithUsdSchema, schemas_AmountWithoutUsdSchema as AmountWithoutUsdSchema, CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, schemas_OrderBookWrapper as OrderBookWrapper, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TokensPnlSchema as TokensPnlSchema, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaLpPositionAction$1 as TunaLpPositionAction, schemas_TunaLpPositionActionClose as TunaLpPositionActionClose, schemas_TunaLpPositionActionCollectAndCompoundFees as TunaLpPositionActionCollectAndCompoundFees, schemas_TunaLpPositionActionCollectFees as TunaLpPositionActionCollectFees, schemas_TunaLpPositionActionDecreaseLiquidity as TunaLpPositionActionDecreaseLiquidity, schemas_TunaLpPositionActionIncreaseLiquidity as TunaLpPositionActionIncreaseLiquidity, schemas_TunaLpPositionActionLiquidate as TunaLpPositionActionLiquidate, schemas_TunaLpPositionActionOpen as TunaLpPositionActionOpen, schemas_TunaLpPositionActionParametersUpdate as TunaLpPositionActionParametersUpdate, schemas_TunaLpPositionActionRepayDebt as TunaLpPositionActionRepayDebt, schemas_TunaLpPositionAutoCompounding as TunaLpPositionAutoCompounding, schemas_TunaLpPositionAutoCompoundingSchema as TunaLpPositionAutoCompoundingSchema, schemas_TunaLpPositionDtoSchema as TunaLpPositionDtoSchema, schemas_TunaLpPositionFlagsSchema as TunaLpPositionFlagsSchema, schemas_TunaLpPositionHistorical as TunaLpPositionHistorical, schemas_TunaLpPositionParameters as TunaLpPositionParameters, schemas_TunaLpPositionTokenPrices as TunaLpPositionTokenPrices, schemas_TunaLpPositionTransfer as TunaLpPositionTransfer, schemas_TunaLpPositionValue as TunaLpPositionValue, schemas_TunaPositionLegacy as TunaPositionLegacy, schemas_TunaPositionPoolSchema as TunaPositionPoolSchema, schemas_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, schemas_UsdPnlSchema as UsdPnlSchema, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
3226
|
+
export { schemas_AmountWithUsdSchema as AmountWithUsdSchema, schemas_AmountWithoutUsdSchema as AmountWithoutUsdSchema, CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, schemas_OrderBookWrapper as OrderBookWrapper, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSnapshot as PoolSnapshot, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TokensPnlSchema as TokensPnlSchema, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaLpPositionAction$1 as TunaLpPositionAction, schemas_TunaLpPositionActionClose as TunaLpPositionActionClose, schemas_TunaLpPositionActionCollectAndCompoundFees as TunaLpPositionActionCollectAndCompoundFees, schemas_TunaLpPositionActionCollectFees as TunaLpPositionActionCollectFees, schemas_TunaLpPositionActionDecreaseLiquidity as TunaLpPositionActionDecreaseLiquidity, schemas_TunaLpPositionActionIncreaseLiquidity as TunaLpPositionActionIncreaseLiquidity, schemas_TunaLpPositionActionLiquidate as TunaLpPositionActionLiquidate, schemas_TunaLpPositionActionOpen as TunaLpPositionActionOpen, schemas_TunaLpPositionActionParametersUpdate as TunaLpPositionActionParametersUpdate, schemas_TunaLpPositionActionRepayDebt as TunaLpPositionActionRepayDebt, schemas_TunaLpPositionAutoCompounding as TunaLpPositionAutoCompounding, schemas_TunaLpPositionAutoCompoundingSchema as TunaLpPositionAutoCompoundingSchema, schemas_TunaLpPositionDtoSchema as TunaLpPositionDtoSchema, schemas_TunaLpPositionFlagsSchema as TunaLpPositionFlagsSchema, schemas_TunaLpPositionHistorical as TunaLpPositionHistorical, schemas_TunaLpPositionParameters as TunaLpPositionParameters, schemas_TunaLpPositionTokenPrices as TunaLpPositionTokenPrices, schemas_TunaLpPositionTransfer as TunaLpPositionTransfer, schemas_TunaLpPositionValue as TunaLpPositionValue, schemas_TunaPositionLegacy as TunaPositionLegacy, schemas_TunaPositionPoolSchema as TunaPositionPoolSchema, schemas_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, schemas_UsdPnlSchema as UsdPnlSchema, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
3126
3227
|
}
|
|
3127
3228
|
|
|
3128
3229
|
type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -989,6 +989,31 @@ declare const OrderBookWrapper: z$1.ZodObject<{
|
|
|
989
989
|
askSide: z$1.ZodBoolean;
|
|
990
990
|
}, z$1.core.$strip>>;
|
|
991
991
|
}, z$1.core.$strip>;
|
|
992
|
+
declare const PoolSnapshot: z$1.ZodObject<{
|
|
993
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
994
|
+
tickCurrentIndex: z$1.ZodNumber;
|
|
995
|
+
price: z$1.ZodNumber;
|
|
996
|
+
tvl: z$1.ZodNumber;
|
|
997
|
+
priceChange24H: z$1.ZodNumber;
|
|
998
|
+
volume24H: z$1.ZodNumber;
|
|
999
|
+
fees24H: z$1.ZodNumber;
|
|
1000
|
+
borrowedFundsA: z$1.ZodObject<{
|
|
1001
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1002
|
+
usd: z$1.ZodNumber;
|
|
1003
|
+
}, z$1.core.$strip>;
|
|
1004
|
+
borrowedFundsB: z$1.ZodObject<{
|
|
1005
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1006
|
+
usd: z$1.ZodNumber;
|
|
1007
|
+
}, z$1.core.$strip>;
|
|
1008
|
+
borrowLimitA: z$1.ZodObject<{
|
|
1009
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1010
|
+
usd: z$1.ZodNumber;
|
|
1011
|
+
}, z$1.core.$strip>;
|
|
1012
|
+
borrowLimitB: z$1.ZodObject<{
|
|
1013
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1014
|
+
usd: z$1.ZodNumber;
|
|
1015
|
+
}, z$1.core.$strip>;
|
|
1016
|
+
}, z$1.core.$strip>;
|
|
992
1017
|
declare const StateSnapshot$1: z$1.ZodObject<{
|
|
993
1018
|
slot: z$1.ZodCoercedBigInt<unknown>;
|
|
994
1019
|
blockTime: z$1.ZodCoercedDate<unknown>;
|
|
@@ -998,6 +1023,31 @@ declare const StateSnapshot$1: z$1.ZodObject<{
|
|
|
998
1023
|
sqrtPrice: z$1.ZodCoercedBigInt<unknown>;
|
|
999
1024
|
time: z$1.ZodCoercedDate<unknown>;
|
|
1000
1025
|
}, z$1.core.$strip>>>;
|
|
1026
|
+
pools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
1027
|
+
liquidity: z$1.ZodCoercedBigInt<unknown>;
|
|
1028
|
+
tickCurrentIndex: z$1.ZodNumber;
|
|
1029
|
+
price: z$1.ZodNumber;
|
|
1030
|
+
tvl: z$1.ZodNumber;
|
|
1031
|
+
priceChange24H: z$1.ZodNumber;
|
|
1032
|
+
volume24H: z$1.ZodNumber;
|
|
1033
|
+
fees24H: z$1.ZodNumber;
|
|
1034
|
+
borrowedFundsA: z$1.ZodObject<{
|
|
1035
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1036
|
+
usd: z$1.ZodNumber;
|
|
1037
|
+
}, z$1.core.$strip>;
|
|
1038
|
+
borrowedFundsB: z$1.ZodObject<{
|
|
1039
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1040
|
+
usd: z$1.ZodNumber;
|
|
1041
|
+
}, z$1.core.$strip>;
|
|
1042
|
+
borrowLimitA: z$1.ZodObject<{
|
|
1043
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1044
|
+
usd: z$1.ZodNumber;
|
|
1045
|
+
}, z$1.core.$strip>;
|
|
1046
|
+
borrowLimitB: z$1.ZodObject<{
|
|
1047
|
+
amount: z$1.ZodCoercedBigInt<unknown>;
|
|
1048
|
+
usd: z$1.ZodNumber;
|
|
1049
|
+
}, z$1.core.$strip>;
|
|
1050
|
+
}, z$1.core.$strip>>>;
|
|
1001
1051
|
tunaSpotPositions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1002
1052
|
address: z$1.ZodString;
|
|
1003
1053
|
authority: z$1.ZodString;
|
|
@@ -2508,6 +2558,31 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2508
2558
|
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
2509
2559
|
time: z.ZodCoercedDate<unknown>;
|
|
2510
2560
|
}, z.core.$strip>>>;
|
|
2561
|
+
pools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2562
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2563
|
+
tickCurrentIndex: z.ZodNumber;
|
|
2564
|
+
price: z.ZodNumber;
|
|
2565
|
+
tvl: z.ZodNumber;
|
|
2566
|
+
priceChange24H: z.ZodNumber;
|
|
2567
|
+
volume24H: z.ZodNumber;
|
|
2568
|
+
fees24H: z.ZodNumber;
|
|
2569
|
+
borrowedFundsA: z.ZodObject<{
|
|
2570
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2571
|
+
usd: z.ZodNumber;
|
|
2572
|
+
}, z.core.$strip>;
|
|
2573
|
+
borrowedFundsB: z.ZodObject<{
|
|
2574
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2575
|
+
usd: z.ZodNumber;
|
|
2576
|
+
}, z.core.$strip>;
|
|
2577
|
+
borrowLimitA: z.ZodObject<{
|
|
2578
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2579
|
+
usd: z.ZodNumber;
|
|
2580
|
+
}, z.core.$strip>;
|
|
2581
|
+
borrowLimitB: z.ZodObject<{
|
|
2582
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2583
|
+
usd: z.ZodNumber;
|
|
2584
|
+
}, z.core.$strip>;
|
|
2585
|
+
}, z.core.$strip>>>;
|
|
2511
2586
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2512
2587
|
address: z.ZodString;
|
|
2513
2588
|
authority: z.ZodString;
|
|
@@ -2792,6 +2867,31 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
2792
2867
|
sqrtPrice: z.ZodCoercedBigInt<unknown>;
|
|
2793
2868
|
time: z.ZodCoercedDate<unknown>;
|
|
2794
2869
|
}, z.core.$strip>>>;
|
|
2870
|
+
pools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2871
|
+
liquidity: z.ZodCoercedBigInt<unknown>;
|
|
2872
|
+
tickCurrentIndex: z.ZodNumber;
|
|
2873
|
+
price: z.ZodNumber;
|
|
2874
|
+
tvl: z.ZodNumber;
|
|
2875
|
+
priceChange24H: z.ZodNumber;
|
|
2876
|
+
volume24H: z.ZodNumber;
|
|
2877
|
+
fees24H: z.ZodNumber;
|
|
2878
|
+
borrowedFundsA: z.ZodObject<{
|
|
2879
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2880
|
+
usd: z.ZodNumber;
|
|
2881
|
+
}, z.core.$strip>;
|
|
2882
|
+
borrowedFundsB: z.ZodObject<{
|
|
2883
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2884
|
+
usd: z.ZodNumber;
|
|
2885
|
+
}, z.core.$strip>;
|
|
2886
|
+
borrowLimitA: z.ZodObject<{
|
|
2887
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2888
|
+
usd: z.ZodNumber;
|
|
2889
|
+
}, z.core.$strip>;
|
|
2890
|
+
borrowLimitB: z.ZodObject<{
|
|
2891
|
+
amount: z.ZodCoercedBigInt<unknown>;
|
|
2892
|
+
usd: z.ZodNumber;
|
|
2893
|
+
}, z.core.$strip>;
|
|
2894
|
+
}, z.core.$strip>>>;
|
|
2795
2895
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2796
2896
|
address: z.ZodString;
|
|
2797
2897
|
authority: z.ZodString;
|
|
@@ -3078,6 +3178,7 @@ declare const schemas_OrderHistoryUIDirection: typeof OrderHistoryUIDirection;
|
|
|
3078
3178
|
declare const schemas_OrderHistoryUIDirectionSchema: typeof OrderHistoryUIDirectionSchema;
|
|
3079
3179
|
declare const schemas_PoolProvider: typeof PoolProvider;
|
|
3080
3180
|
declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
|
|
3181
|
+
declare const schemas_PoolSnapshot: typeof PoolSnapshot;
|
|
3081
3182
|
declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
|
|
3082
3183
|
declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
|
|
3083
3184
|
declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
|
|
@@ -3122,7 +3223,7 @@ declare const schemas_UsdPnlSchema: typeof UsdPnlSchema;
|
|
|
3122
3223
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
3123
3224
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
3124
3225
|
declare namespace schemas {
|
|
3125
|
-
export { schemas_AmountWithUsdSchema as AmountWithUsdSchema, schemas_AmountWithoutUsdSchema as AmountWithoutUsdSchema, CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, schemas_OrderBookWrapper as OrderBookWrapper, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TokensPnlSchema as TokensPnlSchema, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaLpPositionAction$1 as TunaLpPositionAction, schemas_TunaLpPositionActionClose as TunaLpPositionActionClose, schemas_TunaLpPositionActionCollectAndCompoundFees as TunaLpPositionActionCollectAndCompoundFees, schemas_TunaLpPositionActionCollectFees as TunaLpPositionActionCollectFees, schemas_TunaLpPositionActionDecreaseLiquidity as TunaLpPositionActionDecreaseLiquidity, schemas_TunaLpPositionActionIncreaseLiquidity as TunaLpPositionActionIncreaseLiquidity, schemas_TunaLpPositionActionLiquidate as TunaLpPositionActionLiquidate, schemas_TunaLpPositionActionOpen as TunaLpPositionActionOpen, schemas_TunaLpPositionActionParametersUpdate as TunaLpPositionActionParametersUpdate, schemas_TunaLpPositionActionRepayDebt as TunaLpPositionActionRepayDebt, schemas_TunaLpPositionAutoCompounding as TunaLpPositionAutoCompounding, schemas_TunaLpPositionAutoCompoundingSchema as TunaLpPositionAutoCompoundingSchema, schemas_TunaLpPositionDtoSchema as TunaLpPositionDtoSchema, schemas_TunaLpPositionFlagsSchema as TunaLpPositionFlagsSchema, schemas_TunaLpPositionHistorical as TunaLpPositionHistorical, schemas_TunaLpPositionParameters as TunaLpPositionParameters, schemas_TunaLpPositionTokenPrices as TunaLpPositionTokenPrices, schemas_TunaLpPositionTransfer as TunaLpPositionTransfer, schemas_TunaLpPositionValue as TunaLpPositionValue, schemas_TunaPositionLegacy as TunaPositionLegacy, schemas_TunaPositionPoolSchema as TunaPositionPoolSchema, schemas_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, schemas_UsdPnlSchema as UsdPnlSchema, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
3226
|
+
export { schemas_AmountWithUsdSchema as AmountWithUsdSchema, schemas_AmountWithoutUsdSchema as AmountWithoutUsdSchema, CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, schemas_LpPositionAutoCompound as LpPositionAutoCompound, schemas_LpPositionAutoCompoundSchema as LpPositionAutoCompoundSchema, schemas_LpPositionLimitOrderSwap as LpPositionLimitOrderSwap, schemas_LpPositionLimitOrderSwapSchema as LpPositionLimitOrderSwapSchema, schemas_LpPositionRebalance as LpPositionRebalance, schemas_LpPositionRebalanceSchema as LpPositionRebalanceSchema, schemas_LpPositionsActionType as LpPositionsActionType, schemas_LpPositionsActionTypeSchema as LpPositionsActionTypeSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, schemas_OrderBookWrapper as OrderBookWrapper, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSnapshot as PoolSnapshot, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, schemas_TokensPnlSchema as TokensPnlSchema, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaLpPositionAction$1 as TunaLpPositionAction, schemas_TunaLpPositionActionClose as TunaLpPositionActionClose, schemas_TunaLpPositionActionCollectAndCompoundFees as TunaLpPositionActionCollectAndCompoundFees, schemas_TunaLpPositionActionCollectFees as TunaLpPositionActionCollectFees, schemas_TunaLpPositionActionDecreaseLiquidity as TunaLpPositionActionDecreaseLiquidity, schemas_TunaLpPositionActionIncreaseLiquidity as TunaLpPositionActionIncreaseLiquidity, schemas_TunaLpPositionActionLiquidate as TunaLpPositionActionLiquidate, schemas_TunaLpPositionActionOpen as TunaLpPositionActionOpen, schemas_TunaLpPositionActionParametersUpdate as TunaLpPositionActionParametersUpdate, schemas_TunaLpPositionActionRepayDebt as TunaLpPositionActionRepayDebt, schemas_TunaLpPositionAutoCompounding as TunaLpPositionAutoCompounding, schemas_TunaLpPositionAutoCompoundingSchema as TunaLpPositionAutoCompoundingSchema, schemas_TunaLpPositionDtoSchema as TunaLpPositionDtoSchema, schemas_TunaLpPositionFlagsSchema as TunaLpPositionFlagsSchema, schemas_TunaLpPositionHistorical as TunaLpPositionHistorical, schemas_TunaLpPositionParameters as TunaLpPositionParameters, schemas_TunaLpPositionTokenPrices as TunaLpPositionTokenPrices, schemas_TunaLpPositionTransfer as TunaLpPositionTransfer, schemas_TunaLpPositionValue as TunaLpPositionValue, schemas_TunaPositionLegacy as TunaPositionLegacy, schemas_TunaPositionPoolSchema as TunaPositionPoolSchema, schemas_TunaPositionPoolToken as TunaPositionPoolToken, schemas_TunaPositionPoolTokenSchema as TunaPositionPoolTokenSchema, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_TunaPositionTokenPnlSchema as TunaPositionTokenPnlSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, schemas_UsdPnlSchema as UsdPnlSchema, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
3126
3227
|
}
|
|
3127
3228
|
|
|
3128
3229
|
type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
|
package/dist/index.js
CHANGED
|
@@ -94,6 +94,7 @@ __export(schemas_exports, {
|
|
|
94
94
|
PoolPriceUpdate: () => PoolPriceUpdate,
|
|
95
95
|
PoolProvider: () => PoolProvider,
|
|
96
96
|
PoolProviderSchema: () => PoolProviderSchema,
|
|
97
|
+
PoolSnapshot: () => PoolSnapshot,
|
|
97
98
|
PoolSubscriptionTopic: () => PoolSubscriptionTopic,
|
|
98
99
|
PoolSubscriptionTopicSchema: () => PoolSubscriptionTopicSchema,
|
|
99
100
|
PoolSwap: () => PoolSwap,
|
|
@@ -640,10 +641,24 @@ var OrderBookWrapper = import_zod8.default.object({
|
|
|
640
641
|
priceStep: import_zod8.default.number(),
|
|
641
642
|
entries: import_zod8.default.array(OrderBookEntry)
|
|
642
643
|
});
|
|
644
|
+
var PoolSnapshot = import_zod8.default.object({
|
|
645
|
+
liquidity: import_zod8.default.coerce.bigint(),
|
|
646
|
+
tickCurrentIndex: import_zod8.default.number(),
|
|
647
|
+
price: import_zod8.default.number(),
|
|
648
|
+
tvl: import_zod8.default.number(),
|
|
649
|
+
priceChange24H: import_zod8.default.number(),
|
|
650
|
+
volume24H: import_zod8.default.number(),
|
|
651
|
+
fees24H: import_zod8.default.number(),
|
|
652
|
+
borrowedFundsA: AmountWithUsdSchema,
|
|
653
|
+
borrowedFundsB: AmountWithUsdSchema,
|
|
654
|
+
borrowLimitA: AmountWithUsdSchema,
|
|
655
|
+
borrowLimitB: AmountWithUsdSchema
|
|
656
|
+
});
|
|
643
657
|
var StateSnapshot = import_zod8.default.object({
|
|
644
658
|
slot: import_zod8.default.coerce.bigint(),
|
|
645
659
|
blockTime: import_zod8.default.coerce.date(),
|
|
646
660
|
poolPrices: import_zod8.default.optional(import_zod8.default.record(import_zod8.default.string(), PoolPriceUpdate)),
|
|
661
|
+
pools: import_zod8.default.optional(import_zod8.default.record(import_zod8.default.string(), PoolSnapshot)),
|
|
647
662
|
tunaSpotPositions: import_zod8.default.optional(import_zod8.default.array(TunaSpotPosition)),
|
|
648
663
|
tunaLpPositions: import_zod8.default.optional(import_zod8.default.array(TunaLpPositionDtoSchema)),
|
|
649
664
|
fusionLimitOrders: import_zod8.default.optional(import_zod8.default.array(LimitOrder)),
|
package/dist/index.mjs
CHANGED
|
@@ -57,6 +57,7 @@ __export(schemas_exports, {
|
|
|
57
57
|
PoolPriceUpdate: () => PoolPriceUpdate,
|
|
58
58
|
PoolProvider: () => PoolProvider,
|
|
59
59
|
PoolProviderSchema: () => PoolProviderSchema,
|
|
60
|
+
PoolSnapshot: () => PoolSnapshot,
|
|
60
61
|
PoolSubscriptionTopic: () => PoolSubscriptionTopic,
|
|
61
62
|
PoolSubscriptionTopicSchema: () => PoolSubscriptionTopicSchema,
|
|
62
63
|
PoolSwap: () => PoolSwap,
|
|
@@ -603,10 +604,24 @@ var OrderBookWrapper = z8.object({
|
|
|
603
604
|
priceStep: z8.number(),
|
|
604
605
|
entries: z8.array(OrderBookEntry)
|
|
605
606
|
});
|
|
607
|
+
var PoolSnapshot = z8.object({
|
|
608
|
+
liquidity: z8.coerce.bigint(),
|
|
609
|
+
tickCurrentIndex: z8.number(),
|
|
610
|
+
price: z8.number(),
|
|
611
|
+
tvl: z8.number(),
|
|
612
|
+
priceChange24H: z8.number(),
|
|
613
|
+
volume24H: z8.number(),
|
|
614
|
+
fees24H: z8.number(),
|
|
615
|
+
borrowedFundsA: AmountWithUsdSchema,
|
|
616
|
+
borrowedFundsB: AmountWithUsdSchema,
|
|
617
|
+
borrowLimitA: AmountWithUsdSchema,
|
|
618
|
+
borrowLimitB: AmountWithUsdSchema
|
|
619
|
+
});
|
|
606
620
|
var StateSnapshot = z8.object({
|
|
607
621
|
slot: z8.coerce.bigint(),
|
|
608
622
|
blockTime: z8.coerce.date(),
|
|
609
623
|
poolPrices: z8.optional(z8.record(z8.string(), PoolPriceUpdate)),
|
|
624
|
+
pools: z8.optional(z8.record(z8.string(), PoolSnapshot)),
|
|
610
625
|
tunaSpotPositions: z8.optional(z8.array(TunaSpotPosition)),
|
|
611
626
|
tunaLpPositions: z8.optional(z8.array(TunaLpPositionDtoSchema)),
|
|
612
627
|
fusionLimitOrders: z8.optional(z8.array(LimitOrder)),
|