@crypticdot/defituna-api 1.8.3 → 1.8.4

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 CHANGED
@@ -2326,7 +2326,7 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2326
2326
  declare const StateSnapshot$1: z.ZodObject<{
2327
2327
  slot: z.ZodBigInt;
2328
2328
  blockTime: z.ZodDate;
2329
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2329
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2330
2330
  pool: z.ZodString;
2331
2331
  price: z.ZodNumber;
2332
2332
  sqrtPrice: z.ZodBigInt;
@@ -2933,7 +2933,7 @@ declare const StateSnapshot$1: z.ZodObject<{
2933
2933
  }, "strip", z.ZodTypeAny, {
2934
2934
  slot: bigint;
2935
2935
  blockTime: Date;
2936
- poolPrices?: Map<string, {
2936
+ poolPrices?: Record<string, {
2937
2937
  price: number;
2938
2938
  time: Date;
2939
2939
  sqrtPrice: bigint;
@@ -3092,7 +3092,7 @@ declare const StateSnapshot$1: z.ZodObject<{
3092
3092
  }, {
3093
3093
  slot: bigint;
3094
3094
  blockTime: Date;
3095
- poolPrices?: Map<string, {
3095
+ poolPrices?: Record<string, {
3096
3096
  price: number;
3097
3097
  time: Date;
3098
3098
  sqrtPrice: bigint;
@@ -7164,7 +7164,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7164
7164
  data: z.ZodObject<{
7165
7165
  slot: z.ZodBigInt;
7166
7166
  blockTime: z.ZodDate;
7167
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7167
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7168
7168
  pool: z.ZodString;
7169
7169
  price: z.ZodNumber;
7170
7170
  sqrtPrice: z.ZodBigInt;
@@ -7771,7 +7771,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7771
7771
  }, "strip", z.ZodTypeAny, {
7772
7772
  slot: bigint;
7773
7773
  blockTime: Date;
7774
- poolPrices?: Map<string, {
7774
+ poolPrices?: Record<string, {
7775
7775
  price: number;
7776
7776
  time: Date;
7777
7777
  sqrtPrice: bigint;
@@ -7930,7 +7930,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7930
7930
  }, {
7931
7931
  slot: bigint;
7932
7932
  blockTime: Date;
7933
- poolPrices?: Map<string, {
7933
+ poolPrices?: Record<string, {
7934
7934
  price: number;
7935
7935
  time: Date;
7936
7936
  sqrtPrice: bigint;
@@ -8096,7 +8096,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8096
8096
  data: z.ZodObject<{
8097
8097
  slot: z.ZodBigInt;
8098
8098
  blockTime: z.ZodDate;
8099
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8099
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8100
8100
  pool: z.ZodString;
8101
8101
  price: z.ZodNumber;
8102
8102
  sqrtPrice: z.ZodBigInt;
@@ -8703,7 +8703,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8703
8703
  }, "strip", z.ZodTypeAny, {
8704
8704
  slot: bigint;
8705
8705
  blockTime: Date;
8706
- poolPrices?: Map<string, {
8706
+ poolPrices?: Record<string, {
8707
8707
  price: number;
8708
8708
  time: Date;
8709
8709
  sqrtPrice: bigint;
@@ -8862,7 +8862,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8862
8862
  }, {
8863
8863
  slot: bigint;
8864
8864
  blockTime: Date;
8865
- poolPrices?: Map<string, {
8865
+ poolPrices?: Record<string, {
8866
8866
  price: number;
8867
8867
  time: Date;
8868
8868
  sqrtPrice: bigint;
@@ -9028,7 +9028,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9028
  data: {
9029
9029
  slot: bigint;
9030
9030
  blockTime: Date;
9031
- poolPrices?: Map<string, {
9031
+ poolPrices?: Record<string, {
9032
9032
  price: number;
9033
9033
  time: Date;
9034
9034
  sqrtPrice: bigint;
@@ -9194,7 +9194,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9194
9194
  data: {
9195
9195
  slot: bigint;
9196
9196
  blockTime: Date;
9197
- poolPrices?: Map<string, {
9197
+ poolPrices?: Record<string, {
9198
9198
  price: number;
9199
9199
  time: Date;
9200
9200
  sqrtPrice: bigint;
@@ -9360,7 +9360,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9360
9360
  data: {
9361
9361
  slot: bigint;
9362
9362
  blockTime: Date;
9363
- poolPrices?: Map<string, {
9363
+ poolPrices?: Record<string, {
9364
9364
  price: number;
9365
9365
  time: Date;
9366
9366
  sqrtPrice: bigint;
@@ -9526,7 +9526,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9526
9526
  data: {
9527
9527
  slot: bigint;
9528
9528
  blockTime: Date;
9529
- poolPrices?: Map<string, {
9529
+ poolPrices?: Record<string, {
9530
9530
  price: number;
9531
9531
  time: Date;
9532
9532
  sqrtPrice: bigint;
package/dist/index.d.ts CHANGED
@@ -2326,7 +2326,7 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2326
2326
  declare const StateSnapshot$1: z.ZodObject<{
2327
2327
  slot: z.ZodBigInt;
2328
2328
  blockTime: z.ZodDate;
2329
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2329
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2330
2330
  pool: z.ZodString;
2331
2331
  price: z.ZodNumber;
2332
2332
  sqrtPrice: z.ZodBigInt;
@@ -2933,7 +2933,7 @@ declare const StateSnapshot$1: z.ZodObject<{
2933
2933
  }, "strip", z.ZodTypeAny, {
2934
2934
  slot: bigint;
2935
2935
  blockTime: Date;
2936
- poolPrices?: Map<string, {
2936
+ poolPrices?: Record<string, {
2937
2937
  price: number;
2938
2938
  time: Date;
2939
2939
  sqrtPrice: bigint;
@@ -3092,7 +3092,7 @@ declare const StateSnapshot$1: z.ZodObject<{
3092
3092
  }, {
3093
3093
  slot: bigint;
3094
3094
  blockTime: Date;
3095
- poolPrices?: Map<string, {
3095
+ poolPrices?: Record<string, {
3096
3096
  price: number;
3097
3097
  time: Date;
3098
3098
  sqrtPrice: bigint;
@@ -7164,7 +7164,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7164
7164
  data: z.ZodObject<{
7165
7165
  slot: z.ZodBigInt;
7166
7166
  blockTime: z.ZodDate;
7167
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7167
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7168
7168
  pool: z.ZodString;
7169
7169
  price: z.ZodNumber;
7170
7170
  sqrtPrice: z.ZodBigInt;
@@ -7771,7 +7771,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7771
7771
  }, "strip", z.ZodTypeAny, {
7772
7772
  slot: bigint;
7773
7773
  blockTime: Date;
7774
- poolPrices?: Map<string, {
7774
+ poolPrices?: Record<string, {
7775
7775
  price: number;
7776
7776
  time: Date;
7777
7777
  sqrtPrice: bigint;
@@ -7930,7 +7930,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7930
7930
  }, {
7931
7931
  slot: bigint;
7932
7932
  blockTime: Date;
7933
- poolPrices?: Map<string, {
7933
+ poolPrices?: Record<string, {
7934
7934
  price: number;
7935
7935
  time: Date;
7936
7936
  sqrtPrice: bigint;
@@ -8096,7 +8096,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8096
8096
  data: z.ZodObject<{
8097
8097
  slot: z.ZodBigInt;
8098
8098
  blockTime: z.ZodDate;
8099
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8099
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8100
8100
  pool: z.ZodString;
8101
8101
  price: z.ZodNumber;
8102
8102
  sqrtPrice: z.ZodBigInt;
@@ -8703,7 +8703,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8703
8703
  }, "strip", z.ZodTypeAny, {
8704
8704
  slot: bigint;
8705
8705
  blockTime: Date;
8706
- poolPrices?: Map<string, {
8706
+ poolPrices?: Record<string, {
8707
8707
  price: number;
8708
8708
  time: Date;
8709
8709
  sqrtPrice: bigint;
@@ -8862,7 +8862,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8862
8862
  }, {
8863
8863
  slot: bigint;
8864
8864
  blockTime: Date;
8865
- poolPrices?: Map<string, {
8865
+ poolPrices?: Record<string, {
8866
8866
  price: number;
8867
8867
  time: Date;
8868
8868
  sqrtPrice: bigint;
@@ -9028,7 +9028,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9028
  data: {
9029
9029
  slot: bigint;
9030
9030
  blockTime: Date;
9031
- poolPrices?: Map<string, {
9031
+ poolPrices?: Record<string, {
9032
9032
  price: number;
9033
9033
  time: Date;
9034
9034
  sqrtPrice: bigint;
@@ -9194,7 +9194,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9194
9194
  data: {
9195
9195
  slot: bigint;
9196
9196
  blockTime: Date;
9197
- poolPrices?: Map<string, {
9197
+ poolPrices?: Record<string, {
9198
9198
  price: number;
9199
9199
  time: Date;
9200
9200
  sqrtPrice: bigint;
@@ -9360,7 +9360,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9360
9360
  data: {
9361
9361
  slot: bigint;
9362
9362
  blockTime: Date;
9363
- poolPrices?: Map<string, {
9363
+ poolPrices?: Record<string, {
9364
9364
  price: number;
9365
9365
  time: Date;
9366
9366
  sqrtPrice: bigint;
@@ -9526,7 +9526,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9526
9526
  data: {
9527
9527
  slot: bigint;
9528
9528
  blockTime: Date;
9529
- poolPrices?: Map<string, {
9529
+ poolPrices?: Record<string, {
9530
9530
  price: number;
9531
9531
  time: Date;
9532
9532
  sqrtPrice: bigint;
package/dist/index.js CHANGED
@@ -721,7 +721,7 @@ var SwapQuoteByOutput = import_zod.z.object({
721
721
  var StateSnapshot = import_zod.z.object({
722
722
  slot: import_zod.z.coerce.bigint(),
723
723
  blockTime: import_zod.z.coerce.date(),
724
- poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), PoolPriceUpdate)),
724
+ poolPrices: import_zod.z.optional(import_zod.z.record(import_zod.z.string(), PoolPriceUpdate)),
725
725
  tunaSpotPositions: import_zod.z.optional(import_zod.z.array(TunaSpotPosition)),
726
726
  tunaLpPositions: import_zod.z.optional(import_zod.z.array(TunaPosition)),
727
727
  fusionLimitOrders: import_zod.z.optional(import_zod.z.array(LimitOrder))
package/dist/index.mjs CHANGED
@@ -684,7 +684,7 @@ var SwapQuoteByOutput = z.object({
684
684
  var StateSnapshot = z.object({
685
685
  slot: z.coerce.bigint(),
686
686
  blockTime: z.coerce.date(),
687
- poolPrices: z.optional(z.map(z.string(), PoolPriceUpdate)),
687
+ poolPrices: z.optional(z.record(z.string(), PoolPriceUpdate)),
688
688
  tunaSpotPositions: z.optional(z.array(TunaSpotPosition)),
689
689
  tunaLpPositions: z.optional(z.array(TunaPosition)),
690
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.3",
3
+ "version": "1.8.4",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",