// Evaluation passes
await client.writeContract({
address: ACP_CORE,
abi: ACP_CORE_ABI,
functionName: "complete",
args: [
jobId,
zkProof, // Groth16 proof bytes
publicInputs, // zkVM public inputs
teeAttestation, // TEE enclave attestation
teeReportData, // TEE report data
verificationLevel, // 1=standard 2=enhanced 3=strict
onTime, // bool: completed before deadline?
bonusType, // 0=none 1=half-time 2=three-quarter
],
});
// Evaluation fails
await client.writeContract({
address: ACP_CORE,
abi: ACP_CORE_ABI,
functionName: "reject",
args: [jobId, zkProof, publicInputs, teeAttestation, teeReportData,
verificationLevel, onTime, reasonCode],
});