@xyo-network/diviner-forecasting-model 5.3.22 → 5.3.25

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-model",
3
- "version": "5.3.22",
3
+ "version": "5.3.25",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,35 +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
35
  "!**/*.test.*",
37
36
  "README.md"
38
37
  ],
39
38
  "dependencies": {
40
- "@xyo-network/diviner-model": "~5.3.22",
41
- "@xyo-network/module-model": "~5.3.22",
42
- "@xyo-network/payload-model": "~5.3.22"
39
+ "@xyo-network/diviner-model": "~5.3.25",
40
+ "@xyo-network/module-model": "~5.3.25",
41
+ "@xyo-network/payload-model": "~5.3.25"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@opentelemetry/api": "^1.9.1",
46
45
  "@types/node": "^25.5.0",
47
- "@xylabs/sdk-js": "^5.0.91",
48
- "@xylabs/ts-scripts-common": "~7.6.8",
49
- "@xylabs/ts-scripts-yarn3": "~7.6.8",
50
- "@xylabs/tsconfig": "~7.6.8",
51
- "@xyo-network/diviner-model": "~5.3.22",
52
- "@xyo-network/module-model": "~5.3.22",
53
- "@xyo-network/payload-model": "~5.3.22",
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",
54
50
  "acorn": "^8.16.0",
55
51
  "axios": "^1.14.0",
56
- "cosmiconfig": "^9.0.1",
57
- "esbuild": "^0.27.4",
58
- "eslint": "^10.1.0",
59
- "rollup": "^4.60.1",
52
+ "esbuild": "^0.28.0",
60
53
  "typescript": "~5.9.3",
61
- "zod": "^4.3.6"
54
+ "zod": "^4.3.6",
55
+ "@xyo-network/module-model": "~5.3.25",
56
+ "@xyo-network/diviner-model": "~5.3.25",
57
+ "@xyo-network/payload-model": "~5.3.25"
62
58
  },
63
59
  "peerDependencies": {
64
60
  "@xylabs/sdk-js": "^5",
@@ -67,4 +63,4 @@
67
63
  "publishConfig": {
68
64
  "access": "public"
69
65
  }
70
- }
66
+ }
@@ -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
- }
@@ -1,3 +0,0 @@
1
- export interface TransformerSettings {
2
- jsonPathExpression?: string
3
- }
@@ -1,3 +0,0 @@
1
- export * from './Config.ts'
2
- export * from './ForecastingSettings.ts'
3
- export * from './TransformerSettings.ts'
@@ -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[]>
@@ -1,5 +0,0 @@
1
- export interface Forecast {
2
- error?: number
3
- timestamp?: number
4
- value: number
5
- }
@@ -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
@@ -1,2 +0,0 @@
1
- export * from './Forecast.ts'
2
- export * from './Payload.ts'
@@ -1,3 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
-
3
- export type PayloadValueTransformer = (payload: Payload) => number
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
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)
4
- export type ForecastingDivinerSchema = typeof ForecastingDivinerSchema
package/src/index.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './Config/index.ts'
2
- export * from './ForecastingMethod.ts'
3
- export * from './Payload/index.ts'
4
- export * from './PayloadValueTransformer.ts'
5
- export * from './Query.ts'
6
- export * from './Schema.ts'