@crypticdot/defituna-api 1.8.1 → 1.8.2
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 +40 -35
- package/dist/index.d.ts +40 -35
- package/dist/index.js +1 -7
- package/dist/index.mjs +1 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2323,34 +2323,24 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
|
|
|
2323
2323
|
estimatedAmountIn: bigint;
|
|
2324
2324
|
maxAmountIn: bigint;
|
|
2325
2325
|
}>;
|
|
2326
|
-
declare const ShortPoolPriceUpdate$1: z.ZodObject<{
|
|
2327
|
-
price: z.ZodNumber;
|
|
2328
|
-
uiPrice: z.ZodNumber;
|
|
2329
|
-
sqrtPrice: z.ZodBigInt;
|
|
2330
|
-
}, "strip", z.ZodTypeAny, {
|
|
2331
|
-
price: number;
|
|
2332
|
-
sqrtPrice: bigint;
|
|
2333
|
-
uiPrice: number;
|
|
2334
|
-
}, {
|
|
2335
|
-
price: number;
|
|
2336
|
-
sqrtPrice: bigint;
|
|
2337
|
-
uiPrice: number;
|
|
2338
|
-
}>;
|
|
2339
2326
|
declare const StateSnapshot$1: z.ZodObject<{
|
|
2340
2327
|
slot: z.ZodBigInt;
|
|
2341
2328
|
blockTime: z.ZodDate;
|
|
2342
2329
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
2330
|
+
pool: z.ZodString;
|
|
2343
2331
|
price: z.ZodNumber;
|
|
2344
|
-
uiPrice: z.ZodNumber;
|
|
2345
2332
|
sqrtPrice: z.ZodBigInt;
|
|
2333
|
+
time: z.ZodDate;
|
|
2346
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2347
2335
|
price: number;
|
|
2336
|
+
time: Date;
|
|
2348
2337
|
sqrtPrice: bigint;
|
|
2349
|
-
|
|
2338
|
+
pool: string;
|
|
2350
2339
|
}, {
|
|
2351
2340
|
price: number;
|
|
2341
|
+
time: Date;
|
|
2352
2342
|
sqrtPrice: bigint;
|
|
2353
|
-
|
|
2343
|
+
pool: string;
|
|
2354
2344
|
}>>>;
|
|
2355
2345
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2356
2346
|
address: z.ZodString;
|
|
@@ -2945,8 +2935,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
2945
2935
|
blockTime: Date;
|
|
2946
2936
|
poolPrices?: Map<string, {
|
|
2947
2937
|
price: number;
|
|
2938
|
+
time: Date;
|
|
2948
2939
|
sqrtPrice: bigint;
|
|
2949
|
-
|
|
2940
|
+
pool: string;
|
|
2950
2941
|
}> | undefined;
|
|
2951
2942
|
tunaSpotPositions?: {
|
|
2952
2943
|
total: {
|
|
@@ -3103,8 +3094,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
3103
3094
|
blockTime: Date;
|
|
3104
3095
|
poolPrices?: Map<string, {
|
|
3105
3096
|
price: number;
|
|
3097
|
+
time: Date;
|
|
3106
3098
|
sqrtPrice: bigint;
|
|
3107
|
-
|
|
3099
|
+
pool: string;
|
|
3108
3100
|
}> | undefined;
|
|
3109
3101
|
tunaSpotPositions?: {
|
|
3110
3102
|
total: {
|
|
@@ -7173,17 +7165,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7173
7165
|
slot: z.ZodBigInt;
|
|
7174
7166
|
blockTime: z.ZodDate;
|
|
7175
7167
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
7168
|
+
pool: z.ZodString;
|
|
7176
7169
|
price: z.ZodNumber;
|
|
7177
|
-
uiPrice: z.ZodNumber;
|
|
7178
7170
|
sqrtPrice: z.ZodBigInt;
|
|
7171
|
+
time: z.ZodDate;
|
|
7179
7172
|
}, "strip", z.ZodTypeAny, {
|
|
7180
7173
|
price: number;
|
|
7174
|
+
time: Date;
|
|
7181
7175
|
sqrtPrice: bigint;
|
|
7182
|
-
|
|
7176
|
+
pool: string;
|
|
7183
7177
|
}, {
|
|
7184
7178
|
price: number;
|
|
7179
|
+
time: Date;
|
|
7185
7180
|
sqrtPrice: bigint;
|
|
7186
|
-
|
|
7181
|
+
pool: string;
|
|
7187
7182
|
}>>>;
|
|
7188
7183
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7189
7184
|
address: z.ZodString;
|
|
@@ -7778,8 +7773,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7778
7773
|
blockTime: Date;
|
|
7779
7774
|
poolPrices?: Map<string, {
|
|
7780
7775
|
price: number;
|
|
7776
|
+
time: Date;
|
|
7781
7777
|
sqrtPrice: bigint;
|
|
7782
|
-
|
|
7778
|
+
pool: string;
|
|
7783
7779
|
}> | undefined;
|
|
7784
7780
|
tunaSpotPositions?: {
|
|
7785
7781
|
total: {
|
|
@@ -7936,8 +7932,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7936
7932
|
blockTime: Date;
|
|
7937
7933
|
poolPrices?: Map<string, {
|
|
7938
7934
|
price: number;
|
|
7935
|
+
time: Date;
|
|
7939
7936
|
sqrtPrice: bigint;
|
|
7940
|
-
|
|
7937
|
+
pool: string;
|
|
7941
7938
|
}> | undefined;
|
|
7942
7939
|
tunaSpotPositions?: {
|
|
7943
7940
|
total: {
|
|
@@ -8100,17 +8097,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8100
8097
|
slot: z.ZodBigInt;
|
|
8101
8098
|
blockTime: z.ZodDate;
|
|
8102
8099
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
8100
|
+
pool: z.ZodString;
|
|
8103
8101
|
price: z.ZodNumber;
|
|
8104
|
-
uiPrice: z.ZodNumber;
|
|
8105
8102
|
sqrtPrice: z.ZodBigInt;
|
|
8103
|
+
time: z.ZodDate;
|
|
8106
8104
|
}, "strip", z.ZodTypeAny, {
|
|
8107
8105
|
price: number;
|
|
8106
|
+
time: Date;
|
|
8108
8107
|
sqrtPrice: bigint;
|
|
8109
|
-
|
|
8108
|
+
pool: string;
|
|
8110
8109
|
}, {
|
|
8111
8110
|
price: number;
|
|
8111
|
+
time: Date;
|
|
8112
8112
|
sqrtPrice: bigint;
|
|
8113
|
-
|
|
8113
|
+
pool: string;
|
|
8114
8114
|
}>>>;
|
|
8115
8115
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8116
8116
|
address: z.ZodString;
|
|
@@ -8705,8 +8705,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8705
8705
|
blockTime: Date;
|
|
8706
8706
|
poolPrices?: Map<string, {
|
|
8707
8707
|
price: number;
|
|
8708
|
+
time: Date;
|
|
8708
8709
|
sqrtPrice: bigint;
|
|
8709
|
-
|
|
8710
|
+
pool: string;
|
|
8710
8711
|
}> | undefined;
|
|
8711
8712
|
tunaSpotPositions?: {
|
|
8712
8713
|
total: {
|
|
@@ -8863,8 +8864,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8863
8864
|
blockTime: Date;
|
|
8864
8865
|
poolPrices?: Map<string, {
|
|
8865
8866
|
price: number;
|
|
8867
|
+
time: Date;
|
|
8866
8868
|
sqrtPrice: bigint;
|
|
8867
|
-
|
|
8869
|
+
pool: string;
|
|
8868
8870
|
}> | undefined;
|
|
8869
8871
|
tunaSpotPositions?: {
|
|
8870
8872
|
total: {
|
|
@@ -9028,8 +9030,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9028
9030
|
blockTime: Date;
|
|
9029
9031
|
poolPrices?: Map<string, {
|
|
9030
9032
|
price: number;
|
|
9033
|
+
time: Date;
|
|
9031
9034
|
sqrtPrice: bigint;
|
|
9032
|
-
|
|
9035
|
+
pool: string;
|
|
9033
9036
|
}> | undefined;
|
|
9034
9037
|
tunaSpotPositions?: {
|
|
9035
9038
|
total: {
|
|
@@ -9193,8 +9196,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9193
9196
|
blockTime: Date;
|
|
9194
9197
|
poolPrices?: Map<string, {
|
|
9195
9198
|
price: number;
|
|
9199
|
+
time: Date;
|
|
9196
9200
|
sqrtPrice: bigint;
|
|
9197
|
-
|
|
9201
|
+
pool: string;
|
|
9198
9202
|
}> | undefined;
|
|
9199
9203
|
tunaSpotPositions?: {
|
|
9200
9204
|
total: {
|
|
@@ -9358,8 +9362,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9358
9362
|
blockTime: Date;
|
|
9359
9363
|
poolPrices?: Map<string, {
|
|
9360
9364
|
price: number;
|
|
9365
|
+
time: Date;
|
|
9361
9366
|
sqrtPrice: bigint;
|
|
9362
|
-
|
|
9367
|
+
pool: string;
|
|
9363
9368
|
}> | undefined;
|
|
9364
9369
|
tunaSpotPositions?: {
|
|
9365
9370
|
total: {
|
|
@@ -9523,8 +9528,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9523
9528
|
blockTime: Date;
|
|
9524
9529
|
poolPrices?: Map<string, {
|
|
9525
9530
|
price: number;
|
|
9531
|
+
time: Date;
|
|
9526
9532
|
sqrtPrice: bigint;
|
|
9527
|
-
|
|
9533
|
+
pool: string;
|
|
9528
9534
|
}> | undefined;
|
|
9529
9535
|
tunaSpotPositions?: {
|
|
9530
9536
|
total: {
|
|
@@ -9722,7 +9728,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
9722
9728
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
9723
9729
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
9724
9730
|
declare namespace schemas {
|
|
9725
|
-
export { 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, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, 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, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, 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_PoolPriceUpdateNotification as PoolPriceUpdateNotification, 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,
|
|
9731
|
+
export { 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, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, 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, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, 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_PoolPriceUpdateNotification as PoolPriceUpdateNotification, 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, 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, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
9726
9732
|
}
|
|
9727
9733
|
|
|
9728
9734
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
@@ -9772,7 +9778,6 @@ type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
|
|
|
9772
9778
|
type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
|
|
9773
9779
|
type TradableAmount = z.infer<typeof TradableAmount$1>;
|
|
9774
9780
|
type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
|
|
9775
|
-
type ShortPoolPriceUpdate = z.infer<typeof ShortPoolPriceUpdate$1>;
|
|
9776
9781
|
type StateSnapshot = z.infer<typeof StateSnapshot$1>;
|
|
9777
9782
|
type SubscriptionPayload = {
|
|
9778
9783
|
pools?: {
|
|
@@ -9982,4 +9987,4 @@ declare class TunaApiClient {
|
|
|
9982
9987
|
private appendUrlSearchParams;
|
|
9983
9988
|
}
|
|
9984
9989
|
|
|
9985
|
-
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type
|
|
9990
|
+
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|
package/dist/index.d.ts
CHANGED
|
@@ -2323,34 +2323,24 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
|
|
|
2323
2323
|
estimatedAmountIn: bigint;
|
|
2324
2324
|
maxAmountIn: bigint;
|
|
2325
2325
|
}>;
|
|
2326
|
-
declare const ShortPoolPriceUpdate$1: z.ZodObject<{
|
|
2327
|
-
price: z.ZodNumber;
|
|
2328
|
-
uiPrice: z.ZodNumber;
|
|
2329
|
-
sqrtPrice: z.ZodBigInt;
|
|
2330
|
-
}, "strip", z.ZodTypeAny, {
|
|
2331
|
-
price: number;
|
|
2332
|
-
sqrtPrice: bigint;
|
|
2333
|
-
uiPrice: number;
|
|
2334
|
-
}, {
|
|
2335
|
-
price: number;
|
|
2336
|
-
sqrtPrice: bigint;
|
|
2337
|
-
uiPrice: number;
|
|
2338
|
-
}>;
|
|
2339
2326
|
declare const StateSnapshot$1: z.ZodObject<{
|
|
2340
2327
|
slot: z.ZodBigInt;
|
|
2341
2328
|
blockTime: z.ZodDate;
|
|
2342
2329
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
2330
|
+
pool: z.ZodString;
|
|
2343
2331
|
price: z.ZodNumber;
|
|
2344
|
-
uiPrice: z.ZodNumber;
|
|
2345
2332
|
sqrtPrice: z.ZodBigInt;
|
|
2333
|
+
time: z.ZodDate;
|
|
2346
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2347
2335
|
price: number;
|
|
2336
|
+
time: Date;
|
|
2348
2337
|
sqrtPrice: bigint;
|
|
2349
|
-
|
|
2338
|
+
pool: string;
|
|
2350
2339
|
}, {
|
|
2351
2340
|
price: number;
|
|
2341
|
+
time: Date;
|
|
2352
2342
|
sqrtPrice: bigint;
|
|
2353
|
-
|
|
2343
|
+
pool: string;
|
|
2354
2344
|
}>>>;
|
|
2355
2345
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2356
2346
|
address: z.ZodString;
|
|
@@ -2945,8 +2935,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
2945
2935
|
blockTime: Date;
|
|
2946
2936
|
poolPrices?: Map<string, {
|
|
2947
2937
|
price: number;
|
|
2938
|
+
time: Date;
|
|
2948
2939
|
sqrtPrice: bigint;
|
|
2949
|
-
|
|
2940
|
+
pool: string;
|
|
2950
2941
|
}> | undefined;
|
|
2951
2942
|
tunaSpotPositions?: {
|
|
2952
2943
|
total: {
|
|
@@ -3103,8 +3094,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
3103
3094
|
blockTime: Date;
|
|
3104
3095
|
poolPrices?: Map<string, {
|
|
3105
3096
|
price: number;
|
|
3097
|
+
time: Date;
|
|
3106
3098
|
sqrtPrice: bigint;
|
|
3107
|
-
|
|
3099
|
+
pool: string;
|
|
3108
3100
|
}> | undefined;
|
|
3109
3101
|
tunaSpotPositions?: {
|
|
3110
3102
|
total: {
|
|
@@ -7173,17 +7165,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7173
7165
|
slot: z.ZodBigInt;
|
|
7174
7166
|
blockTime: z.ZodDate;
|
|
7175
7167
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
7168
|
+
pool: z.ZodString;
|
|
7176
7169
|
price: z.ZodNumber;
|
|
7177
|
-
uiPrice: z.ZodNumber;
|
|
7178
7170
|
sqrtPrice: z.ZodBigInt;
|
|
7171
|
+
time: z.ZodDate;
|
|
7179
7172
|
}, "strip", z.ZodTypeAny, {
|
|
7180
7173
|
price: number;
|
|
7174
|
+
time: Date;
|
|
7181
7175
|
sqrtPrice: bigint;
|
|
7182
|
-
|
|
7176
|
+
pool: string;
|
|
7183
7177
|
}, {
|
|
7184
7178
|
price: number;
|
|
7179
|
+
time: Date;
|
|
7185
7180
|
sqrtPrice: bigint;
|
|
7186
|
-
|
|
7181
|
+
pool: string;
|
|
7187
7182
|
}>>>;
|
|
7188
7183
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7189
7184
|
address: z.ZodString;
|
|
@@ -7778,8 +7773,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7778
7773
|
blockTime: Date;
|
|
7779
7774
|
poolPrices?: Map<string, {
|
|
7780
7775
|
price: number;
|
|
7776
|
+
time: Date;
|
|
7781
7777
|
sqrtPrice: bigint;
|
|
7782
|
-
|
|
7778
|
+
pool: string;
|
|
7783
7779
|
}> | undefined;
|
|
7784
7780
|
tunaSpotPositions?: {
|
|
7785
7781
|
total: {
|
|
@@ -7936,8 +7932,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7936
7932
|
blockTime: Date;
|
|
7937
7933
|
poolPrices?: Map<string, {
|
|
7938
7934
|
price: number;
|
|
7935
|
+
time: Date;
|
|
7939
7936
|
sqrtPrice: bigint;
|
|
7940
|
-
|
|
7937
|
+
pool: string;
|
|
7941
7938
|
}> | undefined;
|
|
7942
7939
|
tunaSpotPositions?: {
|
|
7943
7940
|
total: {
|
|
@@ -8100,17 +8097,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8100
8097
|
slot: z.ZodBigInt;
|
|
8101
8098
|
blockTime: z.ZodDate;
|
|
8102
8099
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
8100
|
+
pool: z.ZodString;
|
|
8103
8101
|
price: z.ZodNumber;
|
|
8104
|
-
uiPrice: z.ZodNumber;
|
|
8105
8102
|
sqrtPrice: z.ZodBigInt;
|
|
8103
|
+
time: z.ZodDate;
|
|
8106
8104
|
}, "strip", z.ZodTypeAny, {
|
|
8107
8105
|
price: number;
|
|
8106
|
+
time: Date;
|
|
8108
8107
|
sqrtPrice: bigint;
|
|
8109
|
-
|
|
8108
|
+
pool: string;
|
|
8110
8109
|
}, {
|
|
8111
8110
|
price: number;
|
|
8111
|
+
time: Date;
|
|
8112
8112
|
sqrtPrice: bigint;
|
|
8113
|
-
|
|
8113
|
+
pool: string;
|
|
8114
8114
|
}>>>;
|
|
8115
8115
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8116
8116
|
address: z.ZodString;
|
|
@@ -8705,8 +8705,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8705
8705
|
blockTime: Date;
|
|
8706
8706
|
poolPrices?: Map<string, {
|
|
8707
8707
|
price: number;
|
|
8708
|
+
time: Date;
|
|
8708
8709
|
sqrtPrice: bigint;
|
|
8709
|
-
|
|
8710
|
+
pool: string;
|
|
8710
8711
|
}> | undefined;
|
|
8711
8712
|
tunaSpotPositions?: {
|
|
8712
8713
|
total: {
|
|
@@ -8863,8 +8864,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8863
8864
|
blockTime: Date;
|
|
8864
8865
|
poolPrices?: Map<string, {
|
|
8865
8866
|
price: number;
|
|
8867
|
+
time: Date;
|
|
8866
8868
|
sqrtPrice: bigint;
|
|
8867
|
-
|
|
8869
|
+
pool: string;
|
|
8868
8870
|
}> | undefined;
|
|
8869
8871
|
tunaSpotPositions?: {
|
|
8870
8872
|
total: {
|
|
@@ -9028,8 +9030,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9028
9030
|
blockTime: Date;
|
|
9029
9031
|
poolPrices?: Map<string, {
|
|
9030
9032
|
price: number;
|
|
9033
|
+
time: Date;
|
|
9031
9034
|
sqrtPrice: bigint;
|
|
9032
|
-
|
|
9035
|
+
pool: string;
|
|
9033
9036
|
}> | undefined;
|
|
9034
9037
|
tunaSpotPositions?: {
|
|
9035
9038
|
total: {
|
|
@@ -9193,8 +9196,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9193
9196
|
blockTime: Date;
|
|
9194
9197
|
poolPrices?: Map<string, {
|
|
9195
9198
|
price: number;
|
|
9199
|
+
time: Date;
|
|
9196
9200
|
sqrtPrice: bigint;
|
|
9197
|
-
|
|
9201
|
+
pool: string;
|
|
9198
9202
|
}> | undefined;
|
|
9199
9203
|
tunaSpotPositions?: {
|
|
9200
9204
|
total: {
|
|
@@ -9358,8 +9362,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9358
9362
|
blockTime: Date;
|
|
9359
9363
|
poolPrices?: Map<string, {
|
|
9360
9364
|
price: number;
|
|
9365
|
+
time: Date;
|
|
9361
9366
|
sqrtPrice: bigint;
|
|
9362
|
-
|
|
9367
|
+
pool: string;
|
|
9363
9368
|
}> | undefined;
|
|
9364
9369
|
tunaSpotPositions?: {
|
|
9365
9370
|
total: {
|
|
@@ -9523,8 +9528,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9523
9528
|
blockTime: Date;
|
|
9524
9529
|
poolPrices?: Map<string, {
|
|
9525
9530
|
price: number;
|
|
9531
|
+
time: Date;
|
|
9526
9532
|
sqrtPrice: bigint;
|
|
9527
|
-
|
|
9533
|
+
pool: string;
|
|
9528
9534
|
}> | undefined;
|
|
9529
9535
|
tunaSpotPositions?: {
|
|
9530
9536
|
total: {
|
|
@@ -9722,7 +9728,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
9722
9728
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
9723
9729
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
9724
9730
|
declare namespace schemas {
|
|
9725
|
-
export { 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, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, 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, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, 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_PoolPriceUpdateNotification as PoolPriceUpdateNotification, 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,
|
|
9731
|
+
export { 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, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, 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, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, 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_PoolPriceUpdateNotification as PoolPriceUpdateNotification, 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, 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, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
9726
9732
|
}
|
|
9727
9733
|
|
|
9728
9734
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
@@ -9772,7 +9778,6 @@ type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
|
|
|
9772
9778
|
type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
|
|
9773
9779
|
type TradableAmount = z.infer<typeof TradableAmount$1>;
|
|
9774
9780
|
type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
|
|
9775
|
-
type ShortPoolPriceUpdate = z.infer<typeof ShortPoolPriceUpdate$1>;
|
|
9776
9781
|
type StateSnapshot = z.infer<typeof StateSnapshot$1>;
|
|
9777
9782
|
type SubscriptionPayload = {
|
|
9778
9783
|
pools?: {
|
|
@@ -9982,4 +9987,4 @@ declare class TunaApiClient {
|
|
|
9982
9987
|
private appendUrlSearchParams;
|
|
9983
9988
|
}
|
|
9984
9989
|
|
|
9985
|
-
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type
|
|
9990
|
+
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|
package/dist/index.js
CHANGED
|
@@ -88,7 +88,6 @@ __export(schemas_exports, {
|
|
|
88
88
|
PoolSwap: () => PoolSwap,
|
|
89
89
|
PoolSwapNotification: () => PoolSwapNotification,
|
|
90
90
|
PoolTicks: () => PoolTicks,
|
|
91
|
-
ShortPoolPriceUpdate: () => ShortPoolPriceUpdate,
|
|
92
91
|
StakingLeaderboardPage: () => StakingLeaderboardPage,
|
|
93
92
|
StakingLeaderboardPosition: () => StakingLeaderboardPosition,
|
|
94
93
|
StakingPosition: () => StakingPosition,
|
|
@@ -717,15 +716,10 @@ var SwapQuoteByOutput = import_zod.z.object({
|
|
|
717
716
|
/** Price impact in percents */
|
|
718
717
|
priceImpact: import_zod.z.number()
|
|
719
718
|
});
|
|
720
|
-
var ShortPoolPriceUpdate = import_zod.z.object({
|
|
721
|
-
price: import_zod.z.number(),
|
|
722
|
-
uiPrice: import_zod.z.number(),
|
|
723
|
-
sqrtPrice: import_zod.z.coerce.bigint()
|
|
724
|
-
});
|
|
725
719
|
var StateSnapshot = import_zod.z.object({
|
|
726
720
|
slot: import_zod.z.coerce.bigint(),
|
|
727
721
|
blockTime: import_zod.z.coerce.date(),
|
|
728
|
-
poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(),
|
|
722
|
+
poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), PoolPriceUpdate)),
|
|
729
723
|
tunaSpotPositions: import_zod.z.optional(import_zod.z.array(TunaSpotPosition)),
|
|
730
724
|
tunaLpPositions: import_zod.z.optional(import_zod.z.array(TunaPosition)),
|
|
731
725
|
fusionLimitOrders: import_zod.z.optional(import_zod.z.array(LimitOrder))
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,6 @@ __export(schemas_exports, {
|
|
|
53
53
|
PoolSwap: () => PoolSwap,
|
|
54
54
|
PoolSwapNotification: () => PoolSwapNotification,
|
|
55
55
|
PoolTicks: () => PoolTicks,
|
|
56
|
-
ShortPoolPriceUpdate: () => ShortPoolPriceUpdate,
|
|
57
56
|
StakingLeaderboardPage: () => StakingLeaderboardPage,
|
|
58
57
|
StakingLeaderboardPosition: () => StakingLeaderboardPosition,
|
|
59
58
|
StakingPosition: () => StakingPosition,
|
|
@@ -682,15 +681,10 @@ var SwapQuoteByOutput = z.object({
|
|
|
682
681
|
/** Price impact in percents */
|
|
683
682
|
priceImpact: z.number()
|
|
684
683
|
});
|
|
685
|
-
var ShortPoolPriceUpdate = z.object({
|
|
686
|
-
price: z.number(),
|
|
687
|
-
uiPrice: z.number(),
|
|
688
|
-
sqrtPrice: z.coerce.bigint()
|
|
689
|
-
});
|
|
690
684
|
var StateSnapshot = z.object({
|
|
691
685
|
slot: z.coerce.bigint(),
|
|
692
686
|
blockTime: z.coerce.date(),
|
|
693
|
-
poolPrices: z.optional(z.map(z.string(),
|
|
687
|
+
poolPrices: z.optional(z.map(z.string(), PoolPriceUpdate)),
|
|
694
688
|
tunaSpotPositions: z.optional(z.array(TunaSpotPosition)),
|
|
695
689
|
tunaLpPositions: z.optional(z.array(TunaPosition)),
|
|
696
690
|
fusionLimitOrders: z.optional(z.array(LimitOrder))
|