@xyo-network/diviner-wrapper 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-wrapper",
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,46 +30,42 @@
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/account-model": "~5.3.22",
41
- "@xyo-network/diviner-model": "~5.3.22",
42
- "@xyo-network/module-model": "~5.3.22",
43
- "@xyo-network/module-wrapper": "~5.3.22",
44
- "@xyo-network/payload-model": "~5.3.22"
39
+ "@xyo-network/diviner-model": "~5.3.25",
40
+ "@xyo-network/account-model": "~5.3.25",
41
+ "@xyo-network/module-wrapper": "~5.3.25",
42
+ "@xyo-network/module-model": "~5.3.25",
43
+ "@xyo-network/payload-model": "~5.3.25"
45
44
  },
46
45
  "devDependencies": {
47
46
  "@opentelemetry/api": "^1.9.1",
48
47
  "@types/node": "^25.5.0",
49
- "@xylabs/sdk-js": "^5.0.91",
50
- "@xylabs/ts-scripts-common": "~7.6.8",
51
- "@xylabs/ts-scripts-yarn3": "~7.6.8",
52
- "@xylabs/tsconfig": "~7.6.8",
53
- "@xylabs/vitest-extended": "~5.0.91",
54
- "@xyo-network/account-model": "~5.3.22",
55
- "@xyo-network/diviner-identity": "~5.3.22",
56
- "@xyo-network/diviner-model": "~5.3.22",
57
- "@xyo-network/module-model": "~5.3.22",
58
- "@xyo-network/module-wrapper": "~5.3.22",
59
- "@xyo-network/payload-builder": "~5.3.22",
60
- "@xyo-network/payload-model": "~5.3.22",
48
+ "@xylabs/sdk-js": "^5.0.93",
49
+ "@xylabs/ts-scripts-common": "~7.6.16",
50
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
51
+ "@xylabs/tsconfig": "~7.6.16",
52
+ "@xylabs/vitest-extended": "~5.0.93",
61
53
  "acorn": "^8.16.0",
62
54
  "axios": "^1.14.0",
63
- "cosmiconfig": "^9.0.1",
64
- "esbuild": "^0.27.4",
65
- "eslint": "^10.1.0",
55
+ "esbuild": "^0.28.0",
66
56
  "ethers": "^6.16.0",
67
- "rollup": "^4.60.1",
68
57
  "tslib": "^2.8.1",
69
58
  "typescript": "~5.9.3",
70
59
  "vite": "^8.0.3",
71
60
  "vitest": "~4.1.2",
72
- "zod": "^4.3.6"
61
+ "zod": "^4.3.6",
62
+ "@xyo-network/diviner-identity": "~5.3.25",
63
+ "@xyo-network/diviner-model": "~5.3.25",
64
+ "@xyo-network/account-model": "~5.3.25",
65
+ "@xyo-network/module-model": "~5.3.25",
66
+ "@xyo-network/module-wrapper": "~5.3.25",
67
+ "@xyo-network/payload-model": "~5.3.25",
68
+ "@xyo-network/payload-builder": "~5.3.25"
73
69
  },
74
70
  "peerDependencies": {
75
71
  "@xylabs/sdk-js": "^5",
@@ -80,4 +76,4 @@
80
76
  "publishConfig": {
81
77
  "access": "public"
82
78
  }
83
- }
79
+ }
@@ -1,37 +0,0 @@
1
- import type { RetryConfig } from '@xylabs/sdk-js'
2
- import type { AccountInstance } from '@xyo-network/account-model'
3
- import type {
4
- DivinerDivineQuery,
5
- DivinerInstance,
6
- DivinerModule,
7
- DivinerParams,
8
- } from '@xyo-network/diviner-model'
9
- import {
10
- DivinerDivineQuerySchema,
11
- isDivinerInstance,
12
- isDivinerModule,
13
- } from '@xyo-network/diviner-model'
14
- import type { ModuleQueryResult } from '@xyo-network/module-model'
15
- import { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'
16
- import type {
17
- Payload, WithoutPrivateStorageMeta, WithSources,
18
- } from '@xyo-network/payload-model'
19
-
20
- constructableModuleWrapper()
21
- export class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload>
22
- extends ModuleWrapper<TWrappedModule>
23
- implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {
24
- static override readonly instanceIdentityCheck = isDivinerInstance
25
- static override readonly moduleIdentityCheck = isDivinerModule
26
- static override readonly requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]
27
-
28
- async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]> {
29
- const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }
30
- return await this.sendQuery(queryPayload, payloads)
31
- }
32
-
33
- async divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>> {
34
- const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }
35
- return await this.sendQueryRaw(queryPayload, payloads, account)
36
- }
37
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './DivinerWrapper.ts'