- Base Sepolia ETH (get from faucet)
- Private key with testnet funds
- Basescan API key (for verification)
Visit: https://www.coinbase.com/faucets/base-sepolia-faucet
Create .env file:
PRIVATE_KEY=0xYOUR_PRIVATE_KEY_HERE
BASE_SEPOLIA_RPC=https://sepolia.base.org
BASESCAN_API_KEY=your_basescan_api_key
npm install
npx hardhat run scripts/deploy-testnet.js --network baseSepoliaDeploying contracts with account: 0x...
Account balance: 500000000000000000
📦 Deploying ExecutionFeeCollector...
✅ ExecutionFeeCollector deployed to: 0x...
📦 Deploying ATTESTRegistry...
✅ ATTESTRegistry deployed to: 0x...
🔗 Setting up contract relationships...
✅ Deployer authorized as executor
✅ Fee parameters set: 0.5% or 0.01 ETH
🎉 Deployment complete!
Contract Addresses:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ExecutionFeeCollector: 0x...
ATTESTRegistry: 0x...
Deployer: 0x...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Update
execution-acp-service/.envwith contract addresses - Start the API service:
npm start - Test the endpoints
Contracts will auto-verify if BASESCAN_API_KEY is set.
Manual verification:
npx hardhat verify --network baseSepolia CONTRACT_ADDRESS [constructor_args]