foundry-framework

Solid

Expert usage of Foundry (Forge, Cast, Anvil, Chisel) for smart contract development, testing, and deployment. Includes fuzzing, gas reporting, local development, and deployment scripting capabilities.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Foundry Framework Skill Expert-level usage of Foundry, the blazing fast, portable, and modular toolkit for Ethereum application development. ## Capabilities - **Forge Testing**: Write and run Solidity tests with fuzzing - **Gas Optimization**: Generate detailed gas reports and snapshots - **Local Development**: Use Anvil for local blockchain - **Chain Interaction**: Execute Cast commands for on-chain operations - **Project Configuration**: Set up foundry.toml for projects - **Deployment Scripts**: Write and run forge scripts - **REPL Debugging**: Use Chisel for Solidity exploration ## Installation ```bash # Install Foundry curl -L https://foundry.paradigm.xyz | bash # Update to latest foundryup # Verify installation forge --version cast --version anvil --version chisel --version ``` ## Project Setup ### Initialize Project ```bash # New project forge init my_project cd my_project # Add dependencies forge install OpenZeppelin/openzeppelin-contracts forge install foundry-rs/forge-std ``` ### foundry.toml Configuration ```toml [profile.default] src = "src" out = "out" libs = ["lib"] solc = "0.8.20" optimizer = true optimizer_runs = 200 via_ir = false [profile.default.fuzz] runs = 256 max_test_rejects = 65536 seed = "0x1234" [profile.default.invariant] runs = 256 depth = 15 fail_on_revert = false [profile.ci] fuzz = { runs = 10000 } invariant = { runs = 1000, depth = 50 } [rpc_endpoints] mainnet = "${MAINNET_RPC_URL}" sepolia = "${SEPOLIA_RPC_URL}" arbitrum = "$...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills