# Foundry Container Setup **CRITICAL**: ALL Foundry tools MUST run through Podman containers. NO bare processes. ## Current Setup ### Anvil (Persistent Container) ```bash # Status podman ps | grep mev-bot-anvil # Logs podman logs -f mev-bot-anvil # Restart podman restart mev-bot-anvil # Stop podman stop mev-bot-anvil ``` ### Cast (via Podman Exec) ```bash # Block number ./bin/cast bn --rpc-url http://localhost:8545 # Balance ./bin/cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://localhost:8545 # Call contract ./bin/cast call
"" --rpc-url http://localhost:8545 ``` ### Forge (Ephemeral Containers with Volume Mounts) ```bash # Build ./bin/forge build # Test ./bin/forge test # Deploy ./bin/forge script