smart-contracts
Foundry smart contract development for Send. Use when building, testing, or deploying Solidity contracts. Located in packages/contracts.
When & Why to Use This Skill
This Claude skill provides a comprehensive environment for Solidity smart contract development using the Foundry toolchain. It streamlines the entire development lifecycle—including building, testing, and deploying contracts—specifically optimized for the Base (L2) blockchain. By integrating Forge, Anvil, and Cast, it allows developers to manage complex blockchain projects directly within the workspace.
Use Cases
- Automated Contract Compilation: Efficiently compile Solidity source files and manage library dependencies within the packages/contracts directory.
- Rigorous Testing and QA: Execute Foundry-based unit tests to validate smart contract logic and ensure security before deployment.
- Local Development and Simulation: Deploy contracts to a local Anvil testnet for rapid prototyping and debugging without incurring gas costs.
- Base L2 Deployment: Streamline the process of deploying and interacting with smart contracts on the Base network using pre-configured scripts.
| 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)