talira

Blazing fast smart contract development toolkit

open sourceMIT OR Apache-2.0self-hostablefree

Foundry is a fast, portable and modular toolkit for Ethereum application development, written in Rust, made of four command-line tools. Forge builds, tests, fuzzes, debugs, deploys and verifies Solidity smart contracts, with tests written in Solidity itself; Cast sends transactions, calls contracts and reads chain data from the command line; Anvil runs a fast local Ethereum node that can fork mainnet or any other network; and Chisel is a Solidity REPL for prototyping. forge lsp starts a Solidity language server for VS Code and other editors, and forge lint checks a project. It installs with foundryup, and its crates are documented for use as libraries.

Problems it solves

  • write my Solidity contract tests in Solidity instead of JavaScript
  • my Hardhat test suite takes minutes to run
  • fuzz test a smart contract to find inputs that break it
  • fork Ethereum mainnet locally to test against real contract state
  • call a contract or check a wallet balance from the command line
  • deploy and verify a smart contract on Etherscan from a script
  • a local Ethereum node for development that starts instantly
  • try out a snippet of Solidity in a REPL
  • see how much gas each function in my contract uses

Features

  • Forge: build, test, fuzz, debug, deploy and verify Solidity contracts
  • tests written in Solidity
  • Cast: transactions, contract calls and chain data from the CLI
  • Anvil: local Ethereum node with network forking
  • Chisel: Solidity REPL
  • forge lint
  • Solidity language server (forge lsp) with a bundled VS Code extension
  • foundryup installer
  • gas reports
  • source verification on Etherscan and other explorers

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Foundry does.

  1. Solidity Statically typed, curly-bracket language for Ethereum smart contracts

Compare Foundry with the top 3