@xyo-network/sentinel-wrapper 2.94.19 → 2.94.21
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/dist/browser/Wrapper.d.cts.map +1 -1
- package/dist/browser/Wrapper.d.mts.map +1 -1
- package/dist/browser/Wrapper.d.ts.map +1 -1
- package/dist/browser/index.cjs +0 -2
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +0 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Wrapper.d.cts.map +1 -1
- package/dist/node/Wrapper.d.mts.map +1 -1
- package/dist/node/Wrapper.d.ts.map +1 -1
- package/dist/node/index.cjs +0 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +0 -2
- package/dist/node/index.js.map +1 -1
- package/package.json +18 -18
- package/src/Wrapper.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAGL,gBAAgB,EAChB,cAAc,EAGf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,O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AE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,OAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAmB;IACtD,OAAgB,eAAe,WAAwD;IAEvF,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMhD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK7F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -26,7 +26,6 @@ __export(src_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(src_exports);
|
|
27
27
|
|
|
28
28
|
// src/Wrapper.ts
|
|
29
|
-
var import_assert = require("@xylabs/assert");
|
|
30
29
|
var import_module_wrapper = require("@xyo-network/module-wrapper");
|
|
31
30
|
var import_sentinel_model = require("@xyo-network/sentinel-model");
|
|
32
31
|
(0, import_module_wrapper.constructableModuleWrapper)();
|
|
@@ -51,7 +50,6 @@ var SentinelWrapper = class extends import_module_wrapper.ModuleWrapper {
|
|
|
51
50
|
return result;
|
|
52
51
|
}
|
|
53
52
|
async reportQuery(account, payloads) {
|
|
54
|
-
(0, import_assert.assertEx)(account.address === this.account.address, () => "Account does not match wrapper account");
|
|
55
53
|
const queryPayload = {
|
|
56
54
|
schema: import_sentinel_model.SentinelReportQuerySchema
|
|
57
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACIA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYC,SAA0BN,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,QAAAA;EAC/C;EAEAQ,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
4
|
// src/Wrapper.ts
|
|
5
|
-
import { assertEx } from "@xylabs/assert";
|
|
6
5
|
import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
|
|
7
6
|
import { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
|
|
8
7
|
constructableModuleWrapper();
|
|
@@ -27,7 +26,6 @@ var SentinelWrapper = class extends ModuleWrapper {
|
|
|
27
26
|
return result;
|
|
28
27
|
}
|
|
29
28
|
async reportQuery(account, payloads) {
|
|
30
|
-
assertEx(account.address === this.account.address, () => "Account does not match wrapper account");
|
|
31
29
|
const queryPayload = {
|
|
32
30
|
schema: SentinelReportQuerySchema
|
|
33
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n
|
|
1
|
+
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;AAIA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYC,SAA0BN,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,QAAAA;EAC/C;EAEAQ,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.d.ts","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAA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":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAGL,gBAAgB,EAChB,cAAc,EAGf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,qBAAa,eAAe,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CAC1E,SAAQ,aAAa,CAAC,OAAO,CAC7B,YAAW,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9C,OAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAqB;IAC1D,OAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;uEAAmB;IACtD,OAAgB,eAAe,WAAwD;IAEvF,UAAU,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMhD,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK7F,SAAS,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGxC"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -34,7 +34,6 @@ __export(src_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(src_exports);
|
|
35
35
|
|
|
36
36
|
// src/Wrapper.ts
|
|
37
|
-
var import_assert = require("@xylabs/assert");
|
|
38
37
|
var import_module_wrapper = require("@xyo-network/module-wrapper");
|
|
39
38
|
var import_sentinel_model = require("@xyo-network/sentinel-model");
|
|
40
39
|
(0, import_module_wrapper.constructableModuleWrapper)();
|
|
@@ -50,7 +49,6 @@ var _SentinelWrapper = class _SentinelWrapper extends import_module_wrapper.Modu
|
|
|
50
49
|
return result;
|
|
51
50
|
}
|
|
52
51
|
async reportQuery(account, payloads) {
|
|
53
|
-
(0, import_assert.assertEx)(account.address === this.account.address, () => "Account does not match wrapper account");
|
|
54
52
|
const queryPayload = {
|
|
55
53
|
schema: import_sentinel_model.SentinelReportQuerySchema
|
|
56
54
|
};
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACIA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,oCAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYC,SAA0BP,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,QAAAA;EAC/C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
|
package/dist/node/index.js
CHANGED
|
@@ -10,7 +10,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10
10
|
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
11
11
|
|
|
12
12
|
// src/Wrapper.ts
|
|
13
|
-
import { assertEx } from "@xylabs/assert";
|
|
14
13
|
import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
|
|
15
14
|
import { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
|
|
16
15
|
constructableModuleWrapper();
|
|
@@ -26,7 +25,6 @@ var _SentinelWrapper = class _SentinelWrapper extends ModuleWrapper {
|
|
|
26
25
|
return result;
|
|
27
26
|
}
|
|
28
27
|
async reportQuery(account, payloads) {
|
|
29
|
-
assertEx(account.address === this.account.address, () => "Account does not match wrapper account");
|
|
30
28
|
const queryPayload = {
|
|
31
29
|
schema: SentinelReportQuerySchema
|
|
32
30
|
};
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n
|
|
1
|
+
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { 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{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override 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 const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;AAIA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,cAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYC,SAA0BP,UAAkD;AAC5F,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,QAAAA;EAC/C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
|
package/package.json
CHANGED
|
@@ -11,28 +11,28 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/assert": "^3.0.25",
|
|
14
|
-
"@xyo-network/account-model": "~2.94.
|
|
15
|
-
"@xyo-network/archivist-model": "~2.94.
|
|
16
|
-
"@xyo-network/module-model": "~2.94.
|
|
17
|
-
"@xyo-network/module-wrapper": "~2.94.
|
|
18
|
-
"@xyo-network/payload-model": "~2.94.
|
|
19
|
-
"@xyo-network/sentinel-model": "~2.94.
|
|
20
|
-
"@xyo-network/witness-model": "~2.94.
|
|
14
|
+
"@xyo-network/account-model": "~2.94.21",
|
|
15
|
+
"@xyo-network/archivist-model": "~2.94.21",
|
|
16
|
+
"@xyo-network/module-model": "~2.94.21",
|
|
17
|
+
"@xyo-network/module-wrapper": "~2.94.21",
|
|
18
|
+
"@xyo-network/payload-model": "~2.94.21",
|
|
19
|
+
"@xyo-network/sentinel-model": "~2.94.21",
|
|
20
|
+
"@xyo-network/witness-model": "~2.94.21"
|
|
21
21
|
},
|
|
22
22
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@xylabs/ts-scripts-yarn3": "^3.9.0",
|
|
25
25
|
"@xylabs/tsconfig": "^3.9.0",
|
|
26
|
-
"@xyo-network/abstract-witness": "~2.94.
|
|
27
|
-
"@xyo-network/account": "~2.94.
|
|
28
|
-
"@xyo-network/archivist-memory": "~2.94.
|
|
29
|
-
"@xyo-network/boundwitness-model": "~2.94.
|
|
30
|
-
"@xyo-network/module-model": "~2.94.
|
|
31
|
-
"@xyo-network/node-memory": "~2.94.
|
|
32
|
-
"@xyo-network/payload-builder": "~2.94.
|
|
33
|
-
"@xyo-network/sentinel-memory": "~2.94.
|
|
34
|
-
"@xyo-network/witness-adhoc": "~2.94.
|
|
35
|
-
"typescript": "^5.4.
|
|
26
|
+
"@xyo-network/abstract-witness": "~2.94.21",
|
|
27
|
+
"@xyo-network/account": "~2.94.21",
|
|
28
|
+
"@xyo-network/archivist-memory": "~2.94.21",
|
|
29
|
+
"@xyo-network/boundwitness-model": "~2.94.21",
|
|
30
|
+
"@xyo-network/module-model": "~2.94.21",
|
|
31
|
+
"@xyo-network/node-memory": "~2.94.21",
|
|
32
|
+
"@xyo-network/payload-builder": "~2.94.21",
|
|
33
|
+
"@xyo-network/sentinel-memory": "~2.94.21",
|
|
34
|
+
"@xyo-network/witness-adhoc": "~2.94.21",
|
|
35
|
+
"typescript": "^5.4.4"
|
|
36
36
|
},
|
|
37
37
|
"types": "dist/node/index.d.ts",
|
|
38
38
|
"exports": {
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
73
73
|
},
|
|
74
74
|
"sideEffects": false,
|
|
75
|
-
"version": "2.94.
|
|
75
|
+
"version": "2.94.21",
|
|
76
76
|
"type": "module"
|
|
77
77
|
}
|
package/src/Wrapper.ts
CHANGED
|
@@ -34,7 +34,6 @@ export class SentinelWrapper<TModule extends SentinelModule = SentinelModule>
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {
|
|
37
|
-
assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')
|
|
38
37
|
const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }
|
|
39
38
|
return await this.sendQueryRaw(queryPayload, payloads)
|
|
40
39
|
}
|