Generate evidence-aware GenLayer contracts, deploy them with a pinned runner, and read only finalized outcomes.
npm install gavel-judgment-sdk
Node.js 22.13+. npm version 0.1.3 includes the tested fixes. Release notes.
Save as generate.mjs, then run node generate.mjs.
import { writeFile } from 'node:fs/promises';
import { earthquakeDemoContract } from 'gavel-judgment-sdk/contracts';
const contract = earthquakeDemoContract();
await writeFile('contract.py', contract.source);npx gavel prepare-studio-next contract.py studio-next-deployment cd studio-next-deployment npx --yes genlayer@0.40.0-rc.3 network set studio-dev npx --yes genlayer@0.40.0-rc.3 deploy
The workflow checks chain ID 61997, estimates protocol fees, saves the transaction before waiting, and prints the Studio Next explorer link only after FINISHED_WITH_RETURN.
These are application designs, not verified payouts or completed judgments. Explore the examples.
Supplier delivery disputes · content moderation appeals · insurance claims · prediction-market resolution.
0xA059bF529c15fDd69ad5320F80DFd04bfc24A2F4
Transaction: 0x6760f2f13aa7861cbaddb830811c01b4d9868724ac04bfbc717eb082c68b4a3c
Status: FINALIZED
Execution: FINISHED_WITH_RETURN
get_progress: { attempts: 0, maxAttempts: 8, resolved: false }Deployment and reads are verified. Judgment resolution has not been executed.
PROPOSING / NOT_VOTED means consensus has not completed. Keep transaction.json and inspect the same transaction after an RPC interruption. Do not redeploy solely because polling failed.
npx --yes genlayer@0.40.0-rc.3 receipt 0x6760f2f13aa7861cbaddb830811c01b4d9868724ac04bfbc717eb082c68b4a3c
150 tests pass. Version 0.1.2 fixes strict TypeScript declarations, old package imports, missing packaged guides, preparation errors, and Windows runtime headers.