Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum OP Stack Arbitrum Base
Description
Production-ready L1<>L2 bridge contract template with security-hardened message passing. Supports ERC-20 token bridging with rate limiting, pausability, and cross-domain message verification. Full Foundry test suite included.
Features
- ✓ L1<>L2 ERC-20 token bridge
- ✓ Cross-domain message verification
- ✓ Rate limiting (per-token, per-period)
- ✓ Emergency pause on both L1 and L2
- ✓ Ownable2Step governance
- ✓ ReentrancyGuard on all external calls
- ✓ Deposit/withdrawal event indexing
- ✓ Configurable finality delays
- ✓ Full NatSpec documentation
- ✓ Comprehensive Foundry test suite
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Bridge Template /// @notice Production-ready bridge contract template with security checks. contract BridgeTemplate { 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 }