Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

foundry

> 测试质量
Open source

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

10.5K stars0 likes6 views
WebsiteGitHub

About

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.


Blazing fast, portable and modular toolkit for Ethereum application development, written in Rust.

  • Forge — Build, test, fuzz, debug and deploy Solidity contracts.
  • Cast — Swiss Army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil — Fast local Ethereum development node.
  • Chisel — Fast, utilitarian and verbose Solidity REPL.

Installation

bash
curl -L https://foundry.paradigm.xyz | bash
foundryup

See the installation guide for more details.

To verify a downloaded release archive or container image, see Verifying Releases.

Getting Started

Initialize a new project, build and test:

bash
forge init counter && cd counter
forge build
forge test

Interact with a live network:

bash
cast block-number --rpc-url https://eth.merkle.io
cast balance vitalik.eth --ether --rpc-url https://eth.merkle.io

Fork mainnet locally:

bash
anvil --fork-url https://eth.merkle.io

Read the Foundry Docs to learn more.

Solidity editor integration

With VS Code installed, run forge lsp from your Solidity project's terminal. Forge opens that project in a VS Code Extension Development Host with its bundled Solidity extension. No Foundry checkout, extension build, or separate Solar installation is needed. See the editor guide for setup and client development.

For other editors, configure the Solidity language server command as forge lsp --stdio. Bare forge lsp also retains server mode when standard input is redirected; forge lsp --vscode explicitly opens VS Code. Solar uses foundry.toml, workspace folders, remappings, and evm_version from the project automatically.

Solar's default flycheck runs forge lint --json with the same Forge executable that started the server. Solar's existing initializationOptions.forgePath option overrides that executable.

forge lsp follows Forge's normal environment setup, global-option parsing, and command dispatch. In server mode, project dotenv warnings use stderr, leaving stdout reserved for the LSP transport.

Contributing

Contributions are welcome and highly appreciated. To get started, check out the contributing guidelines.

Join our [Telegram][tg-url] to chat about the development of Foundry.

Support

Having trouble? Check the Foundry Docs, join the [support Telegram][tg-support-url], or open an issue.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 257 open

View all issuesOpen on GitHub
  • #17117

    feat(browser wallet): show target network on signing requests

    Updated Sep 28, 2026
  • #17112

    feat: support Azure Key Vault signer (--azure)

    Updated Sep 28, 2026
  • #10863

    bug(`cast`): `cast run` does not work sometimes with weird errors (lack of funds, nonce too low, etc.)

    T-bugC-castUpdated Sep 27, 2026
  • #4438

    meta(invariants): tracking issue for improvements to invariant testing

    A-testingCmd-forge-testC-forgeT-metaUpdated Sep 27, 2026
  • #4444

    meta(script): tracking issue for script improvements

    C-forgeT-metaCmd-forge-scriptUpdated Sep 27, 2026
  • #17081

    Key Anvil's forked log cache by Filter again after the next Alloy release

    T-debtC-anvilT-blockedUpdated Sep 26, 2026
  • #17062

    bug(`anvil`): historical state includes anvil_set* changes made after the block

    Updated Sep 25, 2026
  • #17012

    Foundry scripts use incorrect pre-simulated values

    T-bugT-needs-triageUpdated Sep 24, 2026
  • #16566

    forge script --resume: positional receipt cursor can treat a reverted tx as complete and skip an already-mined later one

    Updated Sep 24, 2026
  • #8269

    meta(anvil): tracking issue for Anvil improvements

    T-metaC-anvilUpdated Sep 23, 2026

> Tags

Rustalloyblockchainbytecodecompiler

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category测试质量
PricingOpen source

> Related tools

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.