Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 ERC-4337 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
ERC-4337 paymaster contract that sponsors user gas costs from MEV rebate proceeds. Includes a verifying paymaster with stake management, deposit tracking, and integration with MEV-Share for rebate-funded sponsorship.
Features
- ✓ ERC-4337 compliant IPaymaster implementation
- ✓ Verifying paymaster with ECDSA signature validation
- ✓ Stake and deposit management for EntryPoint
- ✓ MEV rebate deposit tracking and accounting
- ✓ Configurable gas sponsorship limits per user
- ✓ Ownable2Step governance with emergency withdraw
- ✓ ReentrancyGuard on all value transfers
- ✓ Full Foundry test suite with mock EntryPoint
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Paymaster Template /// @notice ERC-4337 paymaster sponsoring gas from MEV rebate proceeds. contract PaymasterTemplate { 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 }