Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base
Description
On-chain marketplace for ZK proof generation services. Protocols post proof jobs with bounties, provers bid and stake collateral, and the marketplace handles settlement with slashing for missed deadlines. Includes job queuing, prover registration, and fee distribution.
Features
- ✓ Job posting with proof type, deadline, and bounty
- ✓ Prover registration with stake requirement
- ✓ Competitive bidding with sealed-bid option
- ✓ Escrow-based settlement on proof submission
- ✓ Slashing for missed deadlines or invalid proofs
- ✓ Fee distribution to marketplace and referrers
- ✓ Job queue priority based on bounty amount
- ✓ Emergency pause with Ownable2Step governance
- ✓ ReentrancyGuard on all value transfers
- ✓ Full Foundry test suite with simulation scenarios
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Prover Marketplace Contract /// @notice Marketplace: job posting, bidding, staking, settlement. contract ProverMarketplaceContract { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }