Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base
Description
Staking and reputation system for prover quality assurance. Provers stake tokens to participate in the marketplace, earn reputation from successful jobs, and face slashing for failures. Reputation scores determine job priority and maximum bounty eligibility.
Features
- ✓ ERC-20 token staking with lock periods
- ✓ Reputation score calculation from job history
- ✓ Slashing for missed deadlines and invalid proofs
- ✓ Reputation tiers with job eligibility thresholds
- ✓ Delegation support for staking pools
- ✓ Cooldown period for unstaking
- ✓ Reputation decay for inactive provers
- ✓ Governance voting weight from reputation score
- ✓ Ownable2Step for parameter updates
- ✓ Full Foundry test suite with reputation scenarios
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Reputation Staking /// @notice Staking + reputation system for prover quality assurance. contract ReputationStaking { 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 }