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>
41 lines
622 B
TOML
41 lines
622 B
TOML
[//]: # (foundry-readme)
|
|
# Foundry
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
curl -L https://foundry.paradigm.xyz | bash
|
|
foundryup
|
|
```
|
|
|
|
## Devnet-Anvil Bridge
|
|
|
|
If you want rapid contract iteration using Anvil:
|
|
|
|
```bash
|
|
anvil --fork-url http://localhost:8545 --chain-id 1337
|
|
```
|
|
|
|
The `--fork-url` uses validator-1 RPC as the state source.
|
|
|
|
## Foundry Configuration
|
|
|
|
Add `foundry.toml` at `contracts/foundry.toml`:
|
|
|
|
```toml
|
|
[profile.default]
|
|
src = "src"
|
|
test = "test"
|
|
script = "script"
|
|
out = "out"
|
|
libs = ["lib"]
|
|
|
|
[rpc_endpoints]
|
|
devnet = "http://localhost:8545"
|
|
|
|
[etherscan]
|
|
devnet = { key = "", url = "" }
|
|
```
|
|
|
|
Do not commit Anvil private keys.
|