The process for developing, reviewing, auditing, and deploying Kleros smart contracts.Documentation Index
Fetch the complete documentation index at: https://kleros-mintlify-changelog-2026-05-12-1778458371.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Task Lifecycle
Smart contract tasks follow the general development workflow with additional stages:- Specification: Define the contract behavior, interfaces, and edge cases
- Implementation: Write the Solidity code with tests
- Internal Review: At least one other developer reviews the code
- Audit: External security review (see RAB process below)
- Deployment: Deploy to testnet, then mainnet
- Monitoring: Post-deployment monitoring for unexpected behavior
RAB: Review, Audit, Bounty
The RAB process ensures smart contract security before deployment:Review
Internal code review by Kleros developers. Reviewers check:- Correctness against the specification
- Edge case handling
- Gas optimization
- Adherence to Solidity style guidelines
- Test coverage
Audit
External security audit by a third-party firm. Kleros has worked with auditors including Certora. The audit process:- Submit contracts for review
- Receive findings report
- Address all critical and high-severity findings
- Re-submit for verification
- Publish the audit report
Bounty
Bug bounty programs for post-deployment security. Kleros has previously used Hats Finance for bounty vaults. The team is evaluating alternatives including HackenProof and Code4rena.RABd: Review, Audit, Bounty + Deploy
The full RABd process adds the deployment step:- Complete RAB (Review, Audit, Bounty)
- Deploy to testnet and run integration tests
- Deploy to mainnet via the deployment scripts in the repository
- Verify contracts on block explorers
- Update deployment artifacts in the repository
- Update documentation with new addresses
Reporting Vulnerabilities
If you discover a security vulnerability in Kleros contracts:- Do NOT open a public GitHub issue
- Check the repository’s
SECURITY.mdfile for reporting instructions - The kleros-v2 repo has a SECURITY.md with disclosure guidelines
- Contact the team via the channels listed in that file
- Allow reasonable time for the team to address the issue before public disclosure
Testing
Kleros contracts use Hardhat for testing. The kleros-v2 repo also supports Foundry.Deployment
Deployment scripts are maintained in each repository. For kleros-v2:contracts/deployments/ in the repository.