@crypticdot/defituna-api 1.8.3 → 1.9.0
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 +1490 -8637
- package/dist/index.d.ts +1490 -8637
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
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.
|
|
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))
|
|
@@ -741,7 +741,7 @@ var createNotificationSchema = (dataSchema, metaSchema) => import_zod.z.object({
|
|
|
741
741
|
action: NotificationActionSchema,
|
|
742
742
|
data: dataSchema,
|
|
743
743
|
id: import_zod.z.string(),
|
|
744
|
-
authority: import_zod.z.
|
|
744
|
+
authority: import_zod.z.nullish(import_zod.z.string()),
|
|
745
745
|
...metaSchema ? { meta: metaSchema } : { meta: import_zod.z.undefined().nullable() }
|
|
746
746
|
});
|
|
747
747
|
var OrderBookNotificationMeta = import_zod.z.object({
|
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.
|
|
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))
|
|
@@ -704,7 +704,7 @@ var createNotificationSchema = (dataSchema, metaSchema) => z.object({
|
|
|
704
704
|
action: NotificationActionSchema,
|
|
705
705
|
data: dataSchema,
|
|
706
706
|
id: z.string(),
|
|
707
|
-
authority: z.
|
|
707
|
+
authority: z.nullish(z.string()),
|
|
708
708
|
...metaSchema ? { meta: metaSchema } : { meta: z.undefined().nullable() }
|
|
709
709
|
});
|
|
710
710
|
var OrderBookNotificationMeta = z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crypticdot/defituna-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@crypticdot/defituna-client": "^3.0.2",
|
|
18
18
|
"@crypticdot/eslint-config": "^1.0.2",
|
|
19
|
-
"@crypticdot/prettier-config": "^1.0.0",
|
|
20
|
-
"@crypticdot/typescript-config": "^1.0.0",
|
|
21
19
|
"@crypticdot/fusionamm-client": "^1.0.62",
|
|
22
20
|
"@crypticdot/fusionamm-core": "^1.0.62",
|
|
21
|
+
"@crypticdot/prettier-config": "^1.0.0",
|
|
22
|
+
"@crypticdot/typescript-config": "^1.0.0",
|
|
23
23
|
"@solana/kit": "^2.1.0",
|
|
24
24
|
"@types/node": "^22.13.14",
|
|
25
25
|
"decimal.js": "^10.5.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"camelcase-keys": "^9.1.3",
|
|
37
37
|
"snakecase-keys": "^8.0.1",
|
|
38
|
-
"zod": "^
|
|
38
|
+
"zod": "^4.1.12"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|