(wantedId: string, evidenceOrInput: string | DoneInput)
| 278 | } |
| 279 | |
| 280 | async done(wantedId: string, evidenceOrInput: string | DoneInput): Promise<DoneOutcome> { |
| 281 | const input: DoneInput = |
| 282 | typeof evidenceOrInput === 'string' ? { evidence: evidenceOrInput } : evidenceOrInput; |
| 283 | const completionId = input.completionId ?? makeCompletionId(wantedId, this.#config.rigHandle); |
| 284 | return unwrap( |
| 285 | await done({ |
| 286 | ctx: this.#ctx(), |
| 287 | wantedId, |
| 288 | evidence: input.evidence, |
| 289 | hopUri: input.hopUri, |
| 290 | completionId, |
| 291 | }), |
| 292 | this.#config.onError |
| 293 | ); |
| 294 | } |
| 295 | |
| 296 | async accept(wantedId: string, input: AcceptInput): Promise<AcceptOutcome> { |
| 297 | return unwrap(await accept({ ...input, ctx: this.#ctx(), wantedId }), this.#config.onError); |
no test coverage detected