Foundry is a smart contract development toolchain.
Foundry manages your dependencies, compiles your project, runs tests, deploys, and lets you interact with the chain from the command-line and via Solidity scripts.
You can contribute to this book on GitHub.
To get started with Foundry, install Foundry and set up your first project.
This section will give you an overview of how to create and work with existing projects.
The overview will give you all you need to know about how to use
forge to develop, test, and deploy smart contracts.
Learn how to use
cast to interact with smart contracts, send transactions, and get chain data from the command-line.
anvil, Foundry's local node.
Guides on configuring Foundry.
- Configuring with
- Continuous Integration
- Integrating with VSCode
- Shell Autocompletion
- Static Analyzers
- Integrating with Hardhat
Tutorials on building smart contracts with Foundry.
- Creating an NFT with Solmate
- Docker and Foundry
- Testing EIP-712 Signatures
- Solidity Scripting
- Forking Mainnet with Cast and Anvil
References, troubleshooting, and more.
- forge Commands
- cast Commands
- anvil commands
- Config Reference
- Cheatcodes Reference
- Forge Standard Library Reference
- DSTest Reference
You can also check out Awesome Foundry, a curated list of awesome Foundry resources, tutorials, tools, and libraries!