{
  "version": 3,
  "sources": ["../../src/modules/sentinel-wrapper/Wrapper.ts"],
  "sourcesContent": ["import type { TypeCheck } from '@ariestools/sdk'\nimport type { AccountInstance, Payload } from '@xyo-network/sdk-protocol'\n\nimport type { ArchivistInstance } from '#archivist-model'\nimport type { ModuleQueryResult, QueryableModuleTypeCheck } from '#module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '#module-wrapper'\nimport type {\n  SentinelInstance,\n  SentinelModule,\n  SentinelReportQuery,\n} from '#sentinel-model'\nimport {\n  isSentinelInstance,\n  isSentinelModule,\n  SentinelReportQuerySchema,\n} from '#sentinel-model'\nimport type { WitnessInstance } from '#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"],
  "mappings": ";AAKA,SAAS,4BAA4B,qBAAqB;AAM1D;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;",
  "names": []
}
