@xyo-network/diviner-forecasting-model 6.0.0 → 6.0.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.
@@ -1,5 +1,5 @@
1
1
  import type { Address } from '@xylabs/sdk-js';
2
- import type { Schema } from '@xyo-network/payload-model';
2
+ import type { Schema } from '@xyo-network/sdk-protocol-js';
3
3
  export interface ForecastingSettings {
4
4
  batchLimit?: number;
5
5
  forecastingMethod?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ForecastingSettings.d.ts","sourceRoot":"","sources":["../../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
1
+ {"version":3,"file":"ForecastingSettings.d.ts","sourceRoot":"","sources":["../../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
@@ -1,5 +1,5 @@
1
1
  import type { Promisable } from '@xylabs/sdk-js';
2
- import type { Payload } from '@xyo-network/payload-model';
2
+ import type { Payload } from '@xyo-network/sdk-protocol-js';
3
3
  import type { Forecast } from './Payload/index.ts';
4
4
  import type { PayloadValueTransformer } from './PayloadValueTransformer.ts';
5
5
  export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"ForecastingMethod.d.ts","sourceRoot":"","sources":["../../src/ForecastingMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,uBAAuB,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"ForecastingMethod.d.ts","sourceRoot":"","sources":["../../src/ForecastingMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,uBAAuB,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type Payload } from '@xyo-network/payload-model';
1
+ import { type Payload } from '@xyo-network/sdk-protocol-js';
2
2
  import type { Forecast } from './Forecast.ts';
3
3
  export declare const ForecastPayloadSchema: string & {
4
4
  readonly __schema: true;
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,eAAO,MAAM,qBAAqB;;CAAyD,CAAA;AAC3F,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AACF,eAAO,MAAM,iBAAiB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,eAAsD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAGrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,eAAO,MAAM,qBAAqB;;CAAyD,CAAA;AAC3F,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AACF,eAAO,MAAM,iBAAiB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,eAAsD,CAAA"}
@@ -1,3 +1,3 @@
1
- import type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload } from '@xyo-network/sdk-protocol-js';
2
2
  export type PayloadValueTransformer = (payload: Payload) => number;
3
3
  //# sourceMappingURL=PayloadValueTransformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayloadValueTransformer.d.ts","sourceRoot":"","sources":["../../src/PayloadValueTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA"}
1
+ {"version":3,"file":"PayloadValueTransformer.d.ts","sourceRoot":"","sources":["../../src/PayloadValueTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE3D,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type Payload, type Query } from '@xyo-network/payload-model';
1
+ import { type Payload, type Query } from '@xyo-network/sdk-protocol-js';
2
2
  import type { ForecastingSettings } from './Config/index.ts';
3
3
  export declare const ForecastingDivinerQuerySchema: string & {
4
4
  readonly __schema: true;
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAG5D,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,8BAC9B,CAAA"}
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,8BAA8B,CAAA;AAErC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAG5D,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,8BAC9B,CAAA"}
@@ -1,22 +1,22 @@
1
1
  // src/Config/Config.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
3
3
 
4
4
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/payload-model";
5
+ import { asSchema } from "@xyo-network/sdk-protocol-js";
6
6
  var ForecastingDivinerSchema = asSchema("network.xyo.diviner.forecasting", true);
7
7
 
8
8
  // src/Config/Config.ts
9
9
  var ForecastingDivinerConfigSchema = asSchema2(`${ForecastingDivinerSchema}.config`, true);
10
10
 
11
11
  // src/Payload/Payload.ts
12
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
12
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-protocol-js";
13
13
  var ForecastPayloadSchema = asSchema3(`${ForecastingDivinerSchema}.forecast`, true);
14
14
  var isForecastPayload = (x) => x?.schema === ForecastPayloadSchema;
15
15
 
16
16
  // src/Query.ts
17
17
  import {
18
18
  asSchema as asSchema4
19
- } from "@xyo-network/payload-model";
19
+ } from "@xyo-network/sdk-protocol-js";
20
20
  var ForecastingDivinerQuerySchema = asSchema4(`${ForecastingDivinerSchema}.query`, true);
21
21
  var isForecastingDivinerQueryPayload = (x) => x?.schema === ForecastingDivinerQuerySchema;
22
22
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config/Config.ts", "../../src/Schema.ts", "../../src/Payload/Payload.ts", "../../src/Query.ts"],
4
- "sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)\nexport type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n", "import { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)\nexport type ForecastPayloadSchema = typeof ForecastPayloadSchema\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\n\nexport const ForecastingDivinerQuerySchema = asSchema(`${ForecastingDivinerSchema}.query`, true)\nexport type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],
4
+ "sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)\nexport type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const ForecastingDivinerSchema = asSchema('network.xyo.diviner.forecasting', true)\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n", "import { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)\nexport type ForecastPayloadSchema = typeof ForecastPayloadSchema\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/sdk-protocol-js'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\n\nexport const ForecastingDivinerQuerySchema = asSchema(`${ForecastingDivinerSchema}.query`, true)\nexport type ForecastingDivinerQuerySchema = typeof ForecastingDivinerQuerySchema\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],
5
5
  "mappings": ";AAEA,SAAS,YAAAA,iBAAgB;;;ACFzB,SAAS,gBAAgB;AAElB,IAAM,2BAA2B,SAAS,mCAAmC,IAAI;;;ADMjF,IAAM,iCAAiCC,UAAS,GAAG,wBAAwB,WAAW,IAAI;;;AERjG,SAAS,YAAAC,iBAA8B;AAKhC,IAAM,wBAAwBC,UAAS,GAAG,wBAAwB,aAAa,IAAI;AAQnF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACb7F;AAAA,EACE,YAAAC;AAAA,OACK;AAKA,IAAM,gCAAgCC,UAAS,GAAG,wBAAwB,UAAU,IAAI;AAIxF,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-model",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,45 +34,61 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-model": "~6.0.0",
38
- "@xyo-network/module-model": "~6.0.0"
37
+ "@xyo-network/diviner-model": "~6.0.2",
38
+ "@xyo-network/module-model": "~6.0.2"
39
39
  },
40
40
  "devDependencies": {
41
+ "@bitauth/libauth": "~3.0.0",
42
+ "@metamask/providers": "^22.1.1",
43
+ "@noble/post-quantum": "~0.6.1",
41
44
  "@opentelemetry/api": "^1.9.1",
42
45
  "@opentelemetry/sdk-trace-base": "^2.7.1",
43
46
  "@scure/base": "~2.2.0",
44
- "@xylabs/sdk-js": "^6.0.0",
45
- "@xylabs/toolchain": "~8.0.17",
46
- "@xylabs/tsconfig": "~8.0.17",
47
- "@xyo-network/account-model": "~6.0",
48
- "@xyo-network/boundwitness-model": "~6.0",
49
- "@xyo-network/manifest-model": "~6.0",
50
- "@xyo-network/payload-model": "~6.0.0",
47
+ "@scure/bip39": "~2.2.0",
48
+ "@xylabs/geo": "^6.0.6",
49
+ "@xylabs/sdk-js": "^6.0.6",
50
+ "@xylabs/threads": "^6.0.6",
51
+ "@xylabs/toolchain": "~8.1.8",
52
+ "@xylabs/tsconfig": "~8.1.8",
53
+ "@xyo-network/sdk-protocol-js": "~6.0.7",
54
+ "ajv": "^8.20.0",
51
55
  "async-mutex": "^0.5.0",
52
56
  "bn.js": "^5.2.3",
53
57
  "buffer": "^6.0.3",
54
- "chalk": "^5.6.2",
55
- "eslint": "^10.4.0",
58
+ "debug": "~4.4.3",
59
+ "eslint": "^10.4.1",
56
60
  "ethers": "^6.16.0",
61
+ "hash-wasm": "~4.12.0",
62
+ "idb": "^8.0.3",
63
+ "observable-fns": "~0.6.1",
57
64
  "pako": "~2.1.0",
58
65
  "typescript": "~6.0.3",
66
+ "webextension-polyfill": "^0.12.0",
59
67
  "zod": "^4.4.3"
60
68
  },
61
69
  "peerDependencies": {
70
+ "@bitauth/libauth": "~3.0",
71
+ "@metamask/providers": "^22.1",
72
+ "@noble/post-quantum": "~0.6.1",
62
73
  "@opentelemetry/api": "^1.9",
63
74
  "@opentelemetry/sdk-trace-base": "^2.7",
64
75
  "@scure/base": "~2.2",
76
+ "@scure/bip39": "~2.2",
77
+ "@xylabs/geo": "^6.0",
65
78
  "@xylabs/sdk-js": "^6.0",
66
- "@xyo-network/account-model": "~6.0",
67
- "@xyo-network/boundwitness-model": "~6.0",
68
- "@xyo-network/manifest-model": "~6.0",
69
- "@xyo-network/payload-model": "~6.0",
79
+ "@xylabs/threads": "^6.0",
80
+ "@xyo-network/sdk-protocol-js": "~6.0",
81
+ "ajv": "^8.20",
70
82
  "async-mutex": "^0.5",
71
83
  "bn.js": "^5.2",
72
84
  "buffer": "^6.0",
73
- "chalk": "^5.6",
85
+ "debug": "~4.4",
74
86
  "ethers": "^6.16",
87
+ "hash-wasm": "~4.12",
88
+ "idb": "^8.0",
89
+ "observable-fns": "~0.6",
75
90
  "pako": "~2.1",
91
+ "webextension-polyfill": "^0.12",
76
92
  "zod": "^4.4"
77
93
  },
78
94
  "publishConfig": {