@xyo-network/sentinel-wrapper 6.0.4 → 7.0.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/README.md +3 -1
- package/dist/neutral/Wrapper.d.ts +4 -3
- package/dist/neutral/Wrapper.d.ts.map +1 -1
- package/dist/neutral/index.mjs.map +2 -2
- package/package.json +24 -25
package/README.md
CHANGED
|
@@ -38,10 +38,12 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
+
## Credits
|
|
41
42
|
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
42
44
|
|
|
43
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
44
45
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/sentinel-wrapper.svg
|
|
45
46
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/sentinel-wrapper
|
|
46
47
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/sentinel-wrapper.svg
|
|
47
48
|
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
|
49
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { TypeCheck } from '@xylabs/sdk-js';
|
|
1
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
-
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
3
|
+
import type { ModuleQueryResult, QueryableModuleTypeCheck } from '@xyo-network/module-model';
|
|
3
4
|
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
4
5
|
import type { AccountInstance, Payload } from '@xyo-network/sdk-protocol-js';
|
|
5
6
|
import type { SentinelInstance, SentinelModule } from '@xyo-network/sentinel-model';
|
|
6
7
|
import type { WitnessInstance } from '@xyo-network/witness-model';
|
|
7
8
|
export declare class SentinelWrapper<TModule extends SentinelModule = SentinelModule> extends ModuleWrapper<TModule> implements SentinelInstance<TModule['params']> {
|
|
8
|
-
static readonly instanceIdentityCheck:
|
|
9
|
-
static readonly moduleIdentityCheck:
|
|
9
|
+
static readonly instanceIdentityCheck: TypeCheck<SentinelInstance>;
|
|
10
|
+
static readonly moduleIdentityCheck: QueryableModuleTypeCheck<SentinelModule>;
|
|
10
11
|
static readonly requiredQueries: string[];
|
|
11
12
|
archivists(): Promise<ArchivistInstance[]>;
|
|
12
13
|
report(payloads?: Payload[]): Promise<Payload[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAC5F,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC5E,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EAEf,MAAM,6BAA6B,CAAA;AAMpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9C,gBAAyB,qBAAqB,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAqB;IAChG,gBAAyB,mBAAmB,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAmB;IACzG,gBAAyB,eAAe,EAAE,MAAM,EAAE,CAAwD;IAE1G,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAKhD,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK9F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Wrapper.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ArchivistInstance } from '@xyo-network/archivist-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type { AccountInstance, Payload } from '@xyo-network/sdk-protocol-js'\nimport type {\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n} from '@xyo-network/sentinel-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']> {\n static override readonly instanceIdentityCheck = isSentinelInstance\n static override readonly moduleIdentityCheck = isSentinelModule\n static override readonly requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { TypeCheck } from '@xylabs/sdk-js'\nimport type { ArchivistInstance } from '@xyo-network/archivist-model'\nimport type { ModuleQueryResult, QueryableModuleTypeCheck } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type { AccountInstance, Payload } from '@xyo-network/sdk-protocol-js'\nimport type {\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n} from '@xyo-network/sentinel-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']> {\n static override readonly instanceIdentityCheck: TypeCheck<SentinelInstance> = isSentinelInstance\n static override readonly moduleIdentityCheck: QueryableModuleTypeCheck<SentinelModule> = isSentinelModule\n static override readonly requiredQueries: string[] = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,4BAA4B,qBAAqB;AAO1D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,2BAA2B;AACpB,IAAM,kBAAN,cACG,cACuC;AAAA,EAC/C,OAAyB,wBAAqD;AAAA,EAC9E,OAAyB,sBAAgE;AAAA,EACzF,OAAyB,kBAA4B,CAAC,2BAA2B,GAAG,MAAM,eAAe;AAAA,EAEzG,aAA2C;AACzC,UAAM,IAAI,MAAM,eAAe;AAAA,EACjC;AAAA,EAEA,MAAM,OAAO,UAA0C;AACrD,UAAM,eAAoC,EAAE,QAAQ,0BAA0B;AAC9E,WAAO,MAAM,KAAK,UAAU,cAAc,QAAQ;AAAA,EACpD;AAAA,EAEA,MAAM,YAAY,UAAsB,SAAuD;AAC7F,UAAM,eAAoC,EAAE,QAAQ,0BAA0B;AAC9E,WAAO,MAAM,KAAK,aAAa,cAAc,UAAU,OAAO;AAAA,EAChE;AAAA,EAEA,YAAwC;AACtC,UAAM,IAAI,MAAM,eAAe;AAAA,EACjC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/sentinel-wrapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,33 +34,31 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/archivist-model": "~
|
|
38
|
-
"@xyo-network/
|
|
39
|
-
"@xyo-network/
|
|
40
|
-
"@xyo-network/
|
|
41
|
-
"@xyo-network/
|
|
37
|
+
"@xyo-network/archivist-model": "~7.0.0",
|
|
38
|
+
"@xyo-network/sentinel-model": "~7.0.0",
|
|
39
|
+
"@xyo-network/module-model": "~7.0.0",
|
|
40
|
+
"@xyo-network/module-wrapper": "~7.0.0",
|
|
41
|
+
"@xyo-network/witness-model": "~7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@bitauth/libauth": "~3.0.0",
|
|
45
45
|
"@metamask/providers": "^22.1.1",
|
|
46
46
|
"@noble/post-quantum": "~0.6.1",
|
|
47
47
|
"@opentelemetry/api": "^1.9.1",
|
|
48
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
48
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
49
49
|
"@scure/base": "~2.2.0",
|
|
50
50
|
"@scure/bip39": "~2.2.0",
|
|
51
|
-
"@xylabs/geo": "^6.
|
|
52
|
-
"@xylabs/sdk-js": "^6.
|
|
53
|
-
"@xylabs/threads": "^6.
|
|
54
|
-
"@xylabs/toolchain": "
|
|
55
|
-
"@xylabs/tsconfig": "
|
|
56
|
-
"@xylabs/vitest-extended": "
|
|
57
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
51
|
+
"@xylabs/geo": "^6.1.1",
|
|
52
|
+
"@xylabs/sdk-js": "^6.1.1",
|
|
53
|
+
"@xylabs/threads": "^6.1.1",
|
|
54
|
+
"@xylabs/toolchain": "^8.1.20",
|
|
55
|
+
"@xylabs/tsconfig": "^8.1.20",
|
|
56
|
+
"@xylabs/vitest-extended": "^6.1.1",
|
|
57
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
58
58
|
"ajv": "^8.20.0",
|
|
59
59
|
"async-mutex": "^0.5.0",
|
|
60
|
-
"bn.js": "^5.2.3",
|
|
61
|
-
"buffer": "^6.0.3",
|
|
62
60
|
"debug": "~4.4.3",
|
|
63
|
-
"eslint": "^10.
|
|
61
|
+
"eslint": "^10.5.0",
|
|
64
62
|
"ethers": "^6.16.0",
|
|
65
63
|
"hash-wasm": "~4.12.0",
|
|
66
64
|
"idb": "^8.0.3",
|
|
@@ -71,11 +69,11 @@
|
|
|
71
69
|
"vitest": "~4.1.8",
|
|
72
70
|
"webextension-polyfill": "^0.12.0",
|
|
73
71
|
"zod": "^4.4.3",
|
|
74
|
-
"@xyo-network/
|
|
75
|
-
"@xyo-network/
|
|
76
|
-
"@xyo-network/
|
|
77
|
-
"@xyo-network/witness-abstract": "~
|
|
78
|
-
"@xyo-network/witness-adhoc": "~
|
|
72
|
+
"@xyo-network/sentinel-memory": "~7.0.0",
|
|
73
|
+
"@xyo-network/archivist-memory": "~7.0.0",
|
|
74
|
+
"@xyo-network/node-memory": "~7.0.0",
|
|
75
|
+
"@xyo-network/witness-abstract": "~7.0.0",
|
|
76
|
+
"@xyo-network/witness-adhoc": "~7.0.0"
|
|
79
77
|
},
|
|
80
78
|
"peerDependencies": {
|
|
81
79
|
"@bitauth/libauth": "~3.0",
|
|
@@ -88,11 +86,9 @@
|
|
|
88
86
|
"@xylabs/geo": "^6.0",
|
|
89
87
|
"@xylabs/sdk-js": "^6.0",
|
|
90
88
|
"@xylabs/threads": "^6.0",
|
|
91
|
-
"@xyo-network/sdk-protocol-js": "
|
|
89
|
+
"@xyo-network/sdk-protocol-js": "^7.0",
|
|
92
90
|
"ajv": "^8.20",
|
|
93
91
|
"async-mutex": "^0.5",
|
|
94
|
-
"bn.js": "^5.2",
|
|
95
|
-
"buffer": "^6.0",
|
|
96
92
|
"debug": "~4.4",
|
|
97
93
|
"ethers": "^6.16",
|
|
98
94
|
"hash-wasm": "~4.12",
|
|
@@ -102,6 +98,9 @@
|
|
|
102
98
|
"webextension-polyfill": "^0.12",
|
|
103
99
|
"zod": "^4.4"
|
|
104
100
|
},
|
|
101
|
+
"engines": {
|
|
102
|
+
"node": "^24"
|
|
103
|
+
},
|
|
105
104
|
"publishConfig": {
|
|
106
105
|
"access": "public"
|
|
107
106
|
}
|