@xyo-network/diviner-forecasting-model 5.3.20 → 5.3.24
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/package.json +20 -12
- package/src/Config/Config.ts +0 -18
- package/src/Config/ForecastingSettings.ts +0 -13
- package/src/Config/TransformerSettings.ts +0 -3
- package/src/Config/index.ts +0 -3
- package/src/ForecastingMethod.ts +0 -7
- package/src/Payload/Forecast.ts +0 -5
- package/src/Payload/Payload.ts +0 -14
- package/src/Payload/index.ts +0 -2
- package/src/PayloadValueTransformer.ts +0 -3
- package/src/Query.ts +0 -13
- package/src/Schema.ts +0 -4
- package/src/index.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-forecasting-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.24",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,23 +30,31 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"src",
|
|
34
33
|
"!**/*.bench.*",
|
|
35
34
|
"!**/*.spec.*",
|
|
36
|
-
"!**/*.test.*"
|
|
35
|
+
"!**/*.test.*",
|
|
36
|
+
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
40
|
-
"@xyo-network/
|
|
41
|
-
"@xyo-network/
|
|
39
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.24",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.24"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/
|
|
44
|
+
"@opentelemetry/api": "^1.9.1",
|
|
45
|
+
"@types/node": "^25.5.0",
|
|
46
|
+
"@xylabs/sdk-js": "^5.0.93",
|
|
47
|
+
"@xylabs/ts-scripts-common": "~7.6.16",
|
|
48
|
+
"@xylabs/ts-scripts-pnpm": "~7.6.16",
|
|
49
|
+
"@xylabs/tsconfig": "~7.6.16",
|
|
50
|
+
"acorn": "^8.16.0",
|
|
51
|
+
"axios": "^1.14.0",
|
|
52
|
+
"esbuild": "^0.28.0",
|
|
48
53
|
"typescript": "~5.9.3",
|
|
49
|
-
"zod": "^4.3.6"
|
|
54
|
+
"zod": "^4.3.6",
|
|
55
|
+
"@xyo-network/module-model": "~5.3.24",
|
|
56
|
+
"@xyo-network/payload-model": "~5.3.24",
|
|
57
|
+
"@xyo-network/diviner-model": "~5.3.24"
|
|
50
58
|
},
|
|
51
59
|
"peerDependencies": {
|
|
52
60
|
"@xylabs/sdk-js": "^5",
|
|
@@ -55,4 +63,4 @@
|
|
|
55
63
|
"publishConfig": {
|
|
56
64
|
"access": "public"
|
|
57
65
|
}
|
|
58
|
-
}
|
|
66
|
+
}
|
package/src/Config/Config.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { ForecastingDivinerSchema } from '../Schema.ts'
|
|
6
|
-
import type { ForecastingSettings } from './ForecastingSettings.ts'
|
|
7
|
-
import type { TransformerSettings } from './TransformerSettings.ts'
|
|
8
|
-
|
|
9
|
-
export const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)
|
|
10
|
-
export type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema
|
|
11
|
-
|
|
12
|
-
export type ForecastingDivinerConfig = DivinerConfig<
|
|
13
|
-
{
|
|
14
|
-
boundWitnessDiviner?: ModuleIdentifier
|
|
15
|
-
schema: ForecastingDivinerConfigSchema
|
|
16
|
-
} & ForecastingSettings
|
|
17
|
-
& TransformerSettings
|
|
18
|
-
>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Schema } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
export interface ForecastingSettings {
|
|
5
|
-
batchLimit?: number
|
|
6
|
-
forecastingMethod?: string
|
|
7
|
-
forecastingSteps?: number
|
|
8
|
-
maxTrainingLength?: number
|
|
9
|
-
timestamp?: number
|
|
10
|
-
windowSize?: number
|
|
11
|
-
witnessAddresses?: Address[]
|
|
12
|
-
witnessSchema?: Schema
|
|
13
|
-
}
|
package/src/Config/index.ts
DELETED
package/src/ForecastingMethod.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import type { Forecast } from './Payload/index.ts'
|
|
5
|
-
import type { PayloadValueTransformer } from './PayloadValueTransformer.ts'
|
|
6
|
-
|
|
7
|
-
export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>
|
package/src/Payload/Forecast.ts
DELETED
package/src/Payload/Payload.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { asSchema, type Payload } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { ForecastingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
import type { Forecast } from './Forecast.ts'
|
|
5
|
-
|
|
6
|
-
export const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)
|
|
7
|
-
export type ForecastPayloadSchema = typeof ForecastPayloadSchema
|
|
8
|
-
|
|
9
|
-
export type ForecastPayload = Payload<{
|
|
10
|
-
schema: ForecastPayloadSchema
|
|
11
|
-
sources: string[]
|
|
12
|
-
values: Forecast[]
|
|
13
|
-
}>
|
|
14
|
-
export const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema
|
package/src/Payload/index.ts
DELETED
package/src/Query.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asSchema, type Payload, type Query,
|
|
3
|
-
} from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import type { ForecastingSettings } from './Config/index.ts'
|
|
6
|
-
import { ForecastingDivinerSchema } from './Schema.ts'
|
|
7
|
-
|
|
8
|
-
export const ForecastingDivinerQuerySchema = asSchema(`${ForecastingDivinerSchema}.query`, true)
|
|
9
|
-
export type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema
|
|
10
|
-
|
|
11
|
-
export type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>
|
|
12
|
-
export const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>
|
|
13
|
-
x?.schema === ForecastingDivinerQuerySchema
|
package/src/Schema.ts
DELETED