77d843df17
- Updated foundry.toml with correct libs path and OpenZeppelin remappings. - Captured gas snapshot for Counter::test_Increment (30385 gas). - Created scripts/load_test.py (stdlib-only, 500 TPS target against any JSON-RPC). - Created scripts/run_smoke_tests.sh to orchestrate mock RPC + load test + Foundry build. - Installed forge-std and openzeppelin-contracts dependencies. Co-Authored-By: Paperclip <noreply@paperclip.ing>
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)