{"version":3,"file":"module.cjs","sources":["../../../../../src/modules/abstract/attest/module.js"],"sourcesContent":["import { withExtendedPrototypeProperties } from '../../../utils';\nimport { AbstractBaseModule } from '../common';\n\nclass AbstractAttestModule extends AbstractBaseModule {\n  /**\n   * Fetches the DIDs attestations IRI from the chain\n   * @param {*} did - DID\n   * @return {Promise<TypedBytes | null>} The DID's attestation\n   */\n  async getAttests(_did) {\n    throw new Error('Unimplemented');\n  }\n\n  /**\n   * Creates an attestation claim on chain for a specific DID\n   * @param iri\n   * @param signerDid\n   * @param didKeypair\n   * @param params\n   */\n  async setClaim(iri, targetDid, didKeypair, params) {\n    return await this.signAndSend(\n      await this.setClaimTx(iri, targetDid, didKeypair),\n      params,\n    );\n  }\n\n  /**\n   * Creates an attestation claim on chain for a specific DID\n   * @param iri\n   * @param targetDid\n   * @param didKeypair\n   */\n  async setClaimTx(_iri, _targetDid, _didKeypair) {\n    throw new Error('Unimplemented');\n  }\n}\n\nexport default withExtendedPrototypeProperties(\n  ['getAttests', 'setClaimTx'],\n  AbstractAttestModule,\n);\n"],"names":["AbstractBaseModule","withExtendedPrototypeProperties","AbstractAttestModule"],"mappings":";;;;;;;;;;;;;;6BAGA,MAAM,oBAAoB,SAASA,0CAAkB,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,UAAU,CAAC,IAAI,EAAE;AACzB,IAAI,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;AACpC,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE;AACrD,IAAI,OAAO,MAAM,IAAI,CAAC,WAAW;AACjC,MAAM,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC;AACvD,MAAM,MAAM;AACZ,KAAK;AACL,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE;AAClD,IAAI,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;AACpC,EAAE;AACF;;AAEA,2BAAeC,qCAA+B;AAC9C,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;AAC9B,EAAEC,sBAAoB;AACtB,CAAC;;;;"}