@xyo-network/sentinel-wrapper 2.94.5 → 2.94.7

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.
@@ -55,7 +55,7 @@ var SentinelWrapper = class extends import_module_wrapper.ModuleWrapper {
55
55
  const queryPayload = {
56
56
  schema: import_sentinel_model.SentinelReportQuerySchema
57
57
  };
58
- return await this.sendQuery(queryPayload, payloads);
58
+ return await this.sendQueryRaw(queryPayload, payloads);
59
59
  }
60
60
  witnesses() {
61
61
  throw new Error("Not supported");
@@ -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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return (await this.sendQuery(queryPayload, payloads)) as ModuleQueryResult\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAIzB,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAlBV,OAkBUA;;;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;AAC5FO,gCAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMP,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAQ,MAAM,KAAKQ,UAAUH,cAAcD,QAAAA;EAC7C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","assertEx","address","witnesses"]}
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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\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;;;;;;;ACAA,oBAAyB;AAIzB,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAlBV,OAkBUA;;;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;AAC5FO,gCAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMP,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKa,aAAaR,cAAcD,QAAAA;EAC/C;EAEAU,YAAwC;AACtC,UAAM,IAAIZ,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","assertEx","address","sendQueryRaw","witnesses"]}
@@ -31,7 +31,7 @@ var SentinelWrapper = class extends ModuleWrapper {
31
31
  const queryPayload = {
32
32
  schema: SentinelReportQuerySchema
33
33
  };
34
- return await this.sendQuery(queryPayload, payloads);
34
+ return await this.sendQueryRaw(queryPayload, payloads);
35
35
  }
36
36
  witnesses() {
37
37
  throw new Error("Not supported");
@@ -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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return (await this.sendQuery(queryPayload, payloads)) as ModuleQueryResult\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;AAAA,SAASA,gBAAgB;AAIzB,SAASC,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAlBV,OAkBUA;;;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;AAC5FO,aAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMP,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAQ,MAAM,KAAKQ,UAAUH,cAAcD,QAAAA;EAC7C;EAEAS,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;","names":["assertEx","constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","assertEx","address","witnesses"]}
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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\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,SAASA,gBAAgB;AAIzB,SAASC,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAlBV,OAkBUA;;;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;AAC5FO,aAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMP,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKa,aAAaR,cAAcD,QAAAA;EAC/C;EAEAU,YAAwC;AACtC,UAAM,IAAIZ,MAAM,eAAA;EAClB;AACF;","names":["assertEx","constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","assertEx","address","sendQueryRaw","witnesses"]}
@@ -54,7 +54,7 @@ var _SentinelWrapper = class _SentinelWrapper extends import_module_wrapper.Modu
54
54
  const queryPayload = {
55
55
  schema: import_sentinel_model.SentinelReportQuerySchema
56
56
  };
57
- return await this.sendQuery(queryPayload, payloads);
57
+ return await this.sendQueryRaw(queryPayload, payloads);
58
58
  }
59
59
  witnesses() {
60
60
  throw new Error("Not supported");
@@ -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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return (await this.sendQuery(queryPayload, payloads)) as ModuleQueryResult\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAIzB,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;AAC5FQ,gCAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMR,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAQ,MAAM,KAAKE,UAAUJ,cAAcD,QAAAA;EAC7C;EAEAU,YAAwC;AACtC,UAAM,IAAIZ,MAAM,eAAA;EAClB;AACF;AA1BUF;AAGR,cAJWD,kBAIKgB,yBAAwBC;AACxC,cALWjB,kBAKKkB,uBAAsBC;AACtC,cANWnB,kBAMKoB,mBAAkB;EAACZ;KAA8B,+CAAMY;;AANlE,IAAMpB,kBAAN;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","assertEx","address","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\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;;;;;;;ACAA,oBAAyB;AAIzB,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;AAC5FQ,gCAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMR,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKO,aAAaT,cAAcD,QAAAA;EAC/C;EAEAW,YAAwC;AACtC,UAAM,IAAIb,MAAM,eAAA;EAClB;AACF;AA1BUF;AAGR,cAJWD,kBAIKiB,yBAAwBC;AACxC,cALWlB,kBAKKmB,uBAAsBC;AACtC,cANWpB,kBAMKqB,mBAAkB;EAACb;KAA8B,+CAAMa;;AANlE,IAAMrB,kBAAN;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","assertEx","address","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
@@ -30,7 +30,7 @@ var _SentinelWrapper = class _SentinelWrapper extends ModuleWrapper {
30
30
  const queryPayload = {
31
31
  schema: SentinelReportQuerySchema
32
32
  };
33
- return await this.sendQuery(queryPayload, payloads);
33
+ return await this.sendQueryRaw(queryPayload, payloads);
34
34
  }
35
35
  witnesses() {
36
36
  throw new Error("Not supported");
@@ -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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return (await this.sendQuery(queryPayload, payloads)) as ModuleQueryResult\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAASA,gBAAgB;AAIzB,SAASC,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;AAC5FQ,aAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMR,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAQ,MAAM,KAAKE,UAAUJ,cAAcD,QAAAA;EAC7C;EAEAU,YAAwC;AACtC,UAAM,IAAIZ,MAAM,eAAA;EAClB;AACF;AA1BUF;AAGR,cAJWD,kBAIKgB,yBAAwBC;AACxC,cALWjB,kBAKKkB,uBAAsBC;AACtC,cANWnB,kBAMKoB,mBAAkB;EAACZ;KAA8B,+CAAMY;;AANlE,IAAMpB,kBAAN;","names":["assertEx","constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","assertEx","address","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
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 assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')\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,SAASA,gBAAgB;AAIzB,SAASC,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;AAC5FQ,aAASD,QAAQE,YAAY,KAAKF,QAAQE,SAAS,MAAM,wCAAA;AACzD,UAAMR,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKO,aAAaT,cAAcD,QAAAA;EAC/C;EAEAW,YAAwC;AACtC,UAAM,IAAIb,MAAM,eAAA;EAClB;AACF;AA1BUF;AAGR,cAJWD,kBAIKiB,yBAAwBC;AACxC,cALWlB,kBAKKmB,uBAAsBC;AACtC,cANWpB,kBAMKqB,mBAAkB;EAACb;KAA8B,+CAAMa;;AANlE,IAAMrB,kBAAN;","names":["assertEx","constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","assertEx","address","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
package/package.json CHANGED
@@ -11,27 +11,27 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^3.0.25",
14
- "@xyo-network/account-model": "~2.94.5",
15
- "@xyo-network/archivist-model": "~2.94.5",
16
- "@xyo-network/module-model": "~2.94.5",
17
- "@xyo-network/module-wrapper": "~2.94.5",
18
- "@xyo-network/payload-model": "~2.94.5",
19
- "@xyo-network/sentinel-model": "~2.94.5",
20
- "@xyo-network/witness-model": "~2.94.5"
14
+ "@xyo-network/account-model": "~2.94.7",
15
+ "@xyo-network/archivist-model": "~2.94.7",
16
+ "@xyo-network/module-model": "~2.94.7",
17
+ "@xyo-network/module-wrapper": "~2.94.7",
18
+ "@xyo-network/payload-model": "~2.94.7",
19
+ "@xyo-network/sentinel-model": "~2.94.7",
20
+ "@xyo-network/witness-model": "~2.94.7"
21
21
  },
22
22
  "description": "Primary SDK for using XYO Protocol 2.0",
23
23
  "devDependencies": {
24
24
  "@xylabs/ts-scripts-yarn3": "^3.5.2",
25
25
  "@xylabs/tsconfig": "^3.5.2",
26
- "@xyo-network/abstract-witness": "~2.94.5",
27
- "@xyo-network/account": "~2.94.5",
28
- "@xyo-network/archivist-memory": "~2.94.5",
29
- "@xyo-network/boundwitness-model": "~2.94.5",
30
- "@xyo-network/module-model": "~2.94.5",
31
- "@xyo-network/node-memory": "~2.94.5",
32
- "@xyo-network/payload-builder": "~2.94.5",
33
- "@xyo-network/sentinel-memory": "~2.94.5",
34
- "@xyo-network/witness-adhoc": "~2.94.5",
26
+ "@xyo-network/abstract-witness": "~2.94.7",
27
+ "@xyo-network/account": "~2.94.7",
28
+ "@xyo-network/archivist-memory": "~2.94.7",
29
+ "@xyo-network/boundwitness-model": "~2.94.7",
30
+ "@xyo-network/module-model": "~2.94.7",
31
+ "@xyo-network/node-memory": "~2.94.7",
32
+ "@xyo-network/payload-builder": "~2.94.7",
33
+ "@xyo-network/sentinel-memory": "~2.94.7",
34
+ "@xyo-network/witness-adhoc": "~2.94.7",
35
35
  "typescript": "^5.4.3"
36
36
  },
37
37
  "types": "dist/node/index.d.ts",
@@ -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.5",
75
+ "version": "2.94.7",
76
76
  "type": "module"
77
77
  }
package/src/Wrapper.ts CHANGED
@@ -36,7 +36,7 @@ export class SentinelWrapper<TModule extends SentinelModule = SentinelModule>
36
36
  async reportQuery(account: AccountInstance, payloads?: Payload[]): Promise<ModuleQueryResult> {
37
37
  assertEx(account.address === this.account.address, () => 'Account does not match wrapper account')
38
38
  const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }
39
- return (await this.sendQuery(queryPayload, payloads)) as ModuleQueryResult
39
+ return await this.sendQueryRaw(queryPayload, payloads)
40
40
  }
41
41
 
42
42
  witnesses(): Promise<WitnessInstance[]> {