foundry框架
# foundry
- (官方文档)[https://book.getfoundry.sh/]
- (中文文档)[https://learnblockchain.cn/docs/foundry/i18n/zh/index.html]
# forge
- 用于编译、测试和部署智能合约
forge init hello_foundry
初始化项目forge build
构建项目forge test
运行测试forge create --rpc-url <your_rpc_url> --private-key <your_private_key> src/MyContract.sol:MyContract
部署合约
# Cast
- 用于发送交易,查询数据,编码和解码数据,与智能合约交互
# Anvil
- 用于本地测试,账号管理
# Chisel
用于快速测试本地或分叉网络上 Solidity 片段的行为,新版功能
上次更新: 2024/07/21, 21:46:04