@crypticdot/defituna-api 1.8.0 → 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.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,
@@ -151,7 +150,8 @@ var NotificationEntity = {
151
150
  STAKING_POSITION: "staking_position",
152
151
  FUSION_LIMIT_ORDER: "fusion_limit_order",
153
152
  TRADE_HISTORY_ENTRY: "trade_history_entry",
154
- ORDER_HISTORY_ENTRY: "order_history_entry"
153
+ ORDER_HISTORY_ENTRY: "order_history_entry",
154
+ STATE_SNAPSHOT: "state_snapshot"
155
155
  };
156
156
  var NotificationAction = {
157
157
  CREATE: "create",
@@ -716,15 +716,10 @@ var SwapQuoteByOutput = import_zod.z.object({
716
716
  /** Price impact in percents */
717
717
  priceImpact: import_zod.z.number()
718
718
  });
719
- var ShortPoolPriceUpdate = import_zod.z.object({
720
- price: import_zod.z.number(),
721
- uiPrice: import_zod.z.number(),
722
- sqrtPrice: import_zod.z.coerce.bigint()
723
- });
724
719
  var StateSnapshot = import_zod.z.object({
725
720
  slot: import_zod.z.coerce.bigint(),
726
721
  blockTime: import_zod.z.coerce.date(),
727
- poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), ShortPoolPriceUpdate)),
722
+ poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), PoolPriceUpdate)),
728
723
  tunaSpotPositions: import_zod.z.optional(import_zod.z.array(TunaSpotPosition)),
729
724
  tunaLpPositions: import_zod.z.optional(import_zod.z.array(TunaPosition)),
730
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,
@@ -116,7 +115,8 @@ var NotificationEntity = {
116
115
  STAKING_POSITION: "staking_position",
117
116
  FUSION_LIMIT_ORDER: "fusion_limit_order",
118
117
  TRADE_HISTORY_ENTRY: "trade_history_entry",
119
- ORDER_HISTORY_ENTRY: "order_history_entry"
118
+ ORDER_HISTORY_ENTRY: "order_history_entry",
119
+ STATE_SNAPSHOT: "state_snapshot"
120
120
  };
121
121
  var NotificationAction = {
122
122
  CREATE: "create",
@@ -681,15 +681,10 @@ var SwapQuoteByOutput = z.object({
681
681
  /** Price impact in percents */
682
682
  priceImpact: z.number()
683
683
  });
684
- var ShortPoolPriceUpdate = z.object({
685
- price: z.number(),
686
- uiPrice: z.number(),
687
- sqrtPrice: z.coerce.bigint()
688
- });
689
684
  var StateSnapshot = z.object({
690
685
  slot: z.coerce.bigint(),
691
686
  blockTime: z.coerce.date(),
692
- poolPrices: z.optional(z.map(z.string(), ShortPoolPriceUpdate)),
687
+ poolPrices: z.optional(z.map(z.string(), PoolPriceUpdate)),
693
688
  tunaSpotPositions: z.optional(z.array(TunaSpotPosition)),
694
689
  tunaLpPositions: z.optional(z.array(TunaPosition)),
695
690
  fusionLimitOrders: z.optional(z.array(LimitOrder))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",