| name | solidity-development |
| description | Solidity smart contract development workflow. Use when modifying smart contracts in apps/eth-contracts/contracts/. |
Solidity Development Workflow
Workflow for Solidity smart contract changes in the apps/eth-contracts/ Foundry project.
Prerequisites
Use git-workflow Skill for branch management, commit conventions, and PR creation.
Applicable Directories
| Path | Description |
|---|
apps/eth-contracts/contracts/ | Smart contract source files |
apps/eth-contracts/script/ | Foundry deployment scripts |
apps/eth-contracts/test/ | Foundry test files (*.t.sol) |
Toolchain
| Tool | Version | Role |
|---|
Foundry (forge) | 1.6.0-nightly | Compile, test, deploy |
| Solidity | ^0.8.34 | Smart contract language |
| OpenZeppelin Contracts | ^5.6.1 | ERC-20 / standard base contracts |
| bun | primary | npm package manager |
| solhint | ^6.0.3 | Solidity linter |
| dprint | ^0.52.0 | JS/TS formatter |
Note: forge is installed at ~/.foundry/bin/forge (may not be in PATH). Run with full path or add ~/.foundry/bin to PATH.
Setup (first time)
cd apps/eth-contracts
forge install foundry-rs/forge-std
bun install
Verification Commands
cd apps/eth-contracts
forge build
forge test -v
bun run lint
bun run fmt
Deployment (local)
cd apps/eth-contracts
export PRIVATE_KEY=0x<deployer-private-key>
forge script script/DeployHYC.s.sol --rpc-url http://localhost:8545 --broadcast
Compatible with both anvil and geth nodes at http://localhost:8545.
Self-Review Checklist
Code Quality
Security
Testing
ABI / Go Bindings
After contract changes, if Go bindings are needed:
cd apps/eth-contracts
forge build
make gen-abi
Related Chain Context
- ETH (Ethereum)
- ERC-20 token standard
- Local nodes:
anvil, geth at http://localhost:8545
Related Skills
git-workflow - Branch, commit, PR workflow
github-issue-creation - Task classification