smart-contracts
Send 的 Foundry 智能合约开发。在构建、测试或部署 Solidity 合约时使用。位于包/合同中。
📖 中文导读:Send 的 Foundry 智能合约开发。在构建、测试或部署 Solidity 合约时使用。位于包/合同中。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: smart-contracts description: Foundry smart contract development for Send. Use when building, testing, or deploying Solidity contracts. Located in packages/contracts.
Smart Contracts (Foundry)
Contracts are in packages/contracts/ using Foundry toolchain.
Commands
# Build contracts
yarn contracts build
# Run tests
yarn contracts test
# Deploy to local Anvil
yarn contracts forge script <script_name> --fork-url http://localhost:8546 --broadcast
Local Development
Anvil (local testnet) runs on port 8546 when using Tilt:
tilt up
Project Structure
packages/contracts/
├── src/ # Solidity source files
├── test/ # Foundry tests
├── script/ # Deployment scripts
└── lib/ # Dependencies (submodules)
Blockchain Stack
- Chain: Base (L2)
- Libraries: Wagmi, Viem
- Tooling: Foundry (forge, anvil, cast)