Write and run automated tests for Solidity smart contracts, including fuzz tests that auto-generate edge-case inputs.
Spin up a local Ethereum node with Anvil to develop and test contracts without spending real cryptocurrency.
Deploy a Solidity contract to a testnet or mainnet using Forge from a single terminal command.
Interactively explore and debug Solidity code expressions one line at a time using the Chisel REPL.
Requires familiarity with Solidity and Ethereum concepts, installation is two terminal commands but the learning curve for smart contract development is steep.
Foundry is a development toolkit for building and testing smart contracts on Ethereum. Ethereum is a blockchain platform where programs called smart contracts run on a decentralized network. Writing and deploying those contracts requires specialized tooling, and Foundry provides a full suite of command-line tools for that work. The toolkit ships four main components. Forge handles building, testing, fuzzing, and deploying Solidity contracts. Solidity is the most common programming language for writing Ethereum smart contracts. Forge's testing capabilities include fuzz testing, which automatically generates many different inputs to find edge cases and bugs. Cast is a general-purpose command-line tool for reading data from the blockchain and sending transactions, described in the README as a Swiss Army knife for interacting with the Ethereum network. Anvil is a local Ethereum node you run on your own machine for development and testing, so you can experiment without using real money or connecting to the live network. Chisel is an interactive Solidity environment, letting developers type and evaluate code expressions one at a time. The project is written in Rust and emphasizes speed. Installation takes two commands from a terminal: a download script, then a second command that fetches the tools. No package manager setup or build process is required for users who just want to use the tools. Foundry is aimed at developers who write Ethereum smart contracts professionally or as a hobby. It assumes familiarity with Solidity and blockchain concepts. Full documentation is available on the project website. The code is open source under a dual Apache 2.0 and MIT license, and community discussion happens on a public Telegram channel.
← foundry-rs on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.