3b228e2e33
- Add docker-compose.yml with 4 Besu IBFT 2.0 validators - Add Foundry project (Counter.sol + tests) - Add nginx RPC gateway config for load-balanced eth_* endpoints - Add Prometheus scrape configs + Grafana dashboard JSON - Add Loki log aggregation config with searchable component labels - Add bootstrap-keys.sh, generate-genesis.mjs, and devnet_simulator.py - Add rpc_gateway_mock.py (threaded HTTP mock for local smoke testing) - Add load_test.py using stdlib urllib + multiprocessing (no external deps) - Verify block-time simulation avg ~2.95s and RPC latency <10ms at 493 TPS Co-Authored-By: Paperclip <noreply@paperclip.ing>
662 B
662 B
Contracts / Foundry
Foundry (Forge + Cast + Anvil) configuration for rapid contract iteration.
Setup
Install Foundry:
curl -L https://foundry.paradigm.xyz | bash
foundryup
Commands
# Build
forge build
# Test
forge test
# Deploy to local Anvil (run anvil first)
anvil --fork-url http://localhost:8545 --chain-id 1337
forge script script/Deploy.s.sol --rpc-url http://localhost:8545 --broadcast
Structure
contracts/
foundry.toml # Foundry configuration
src/ # Solidity sources
test/ # Forge tests
lib/ # Dependencies (git submodules / soldeer)