Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 1x | export { BackendPlugin }; import type { Cache } from "o1js"; abstract class BackendPlugin { name: string; task: string; args: string[]; jobId?: string; constructor(params: { name: string; task: string; args: string[]; jobId?: string; }) { const { name, task, args, jobId } = params; this.name = name; this.task = task; this.args = args; this.jobId = jobId; } abstract compile(cache: Cache): Promise<void>; abstract create(transaction: string): Promise<string | undefined>; abstract merge(proof1: string, proof2: string): Promise<string | undefined>; abstract send(transaction: string): Promise<string | undefined>; abstract mint(transaction: string): Promise<string | undefined>; abstract verify(proof: string): Promise<string | undefined>; } |