foundry-rs/foundry

GitHub: foundry-rs/foundry

Foundry 是用 Rust 编写的极速以太坊智能合约开发工具链,集成了编译、测试、模糊测试、部署和链上交互等完整功能。

Stars: 10171 | Forks: 2427

Foundry banner   [![Github Actions](https://img.shields.io/github/actions/workflow/status/foundry-rs/foundry/test.yml?branch=master&style=flat-square)][gha-url] [![Telegram Chat](https://img.shields.io/endpoint?color=neon&logo=telegram&label=chat&style=flat-square&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Ffoundry_rs)][tg-url] [![Telegram Support](https://img.shields.io/endpoint?color=neon&logo=telegram&label=support&style=flat-square&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Ffoundry_support)][tg-support-url] **[安装](https://getfoundry.sh/getting-started/installation)** | [文档][foundry-docs] | [基准测试](https://www.getfoundry.sh/benchmarks) | [开发者指南](./docs/dev/README.md) | [贡献](./CONTRIBUTING.md) | [Crate 文档](https://foundry-rs.github.io/foundry)
用于以太坊应用程序开发的极速、便携且模块化的工具包,使用 Rust 编写。 - [**Forge**](https://getfoundry.sh/forge) — 构建、测试、模糊测试、调试和部署 Solidity 合约。 - [**Cast**](https://getfoundry.sh/cast) — 用于与 EVM 智能合约交互、发送交易和获取链数据的瑞士军刀。 - [**Anvil**](https://getfoundry.sh/anvil) — 快速的本地以太坊开发节点。 - [**Chisel**](https://getfoundry.sh/chisel) — 快速、实用且详尽的 Solidity REPL。 ![Demo](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/5811273bb8125909.gif) ## 安装 ``` curl -L https://foundry.paradigm.xyz | bash foundryup ``` 有关更多详细信息,请参阅 [安装指南](https://getfoundry.sh/getting-started/installation)。 ## 快速入门 初始化一个新项目,构建并测试: ``` forge init counter && cd counter forge build forge test ``` 与实时网络交互: ``` cast block-number --rpc-url https://eth.merkle.io cast balance vitalik.eth --ether --rpc-url https://eth.merkle.io ``` 在本地分叉主网: ``` anvil --fork-url https://eth.merkle.io ``` 阅读 [Foundry 文档][foundry-docs] 以了解更多信息。 ## 贡献 欢迎并非常感谢您的贡献。首先,请查看 [贡献指南](./CONTRIBUTING.md)。 加入我们的 [Telegram][tg-url] 来讨论 Foundry 的开发。 ## 支持 遇到问题?请查看 [Foundry 文档][foundry-docs],加入 [支持 Telegram][tg-support-url],或者 [提出问题](https://github.com/foundry-rs/foundry/issues/new)。 #### 许可证 根据您的选择,许可协议为 Apache License, Version 2.0MIT license
除非您明确声明,否则您有意提交以包含在这些 crate 中的任何贡献, 根据 Apache-2.0 许可证的定义,应按上述方式进行双重许可, 无需任何附加条款或条件。
标签:Anvil, Cast, Chisel, DApp开发, EVM, Forge, Paradigm, REPL, Rust, Solidity, Web3, 以太坊开发, 区块链开发工具, 可视化界面, 开发工具包, 智能合约, 本地节点, 测试框架, 网络流量审计, 通知系统, 通知系统