1.5 KiB
1.5 KiB
Contributing to methodic_scout-contract-lab
Development Workflow
Prerequisites
- Foundry (forge, cast, anvil)
- Node.js 18+ (for OpenZeppelin dependencies)
- Git
Setup
git clone <repo-url>
cd <repo-name>
forge install
npm install # if using OpenZeppelin
Build
forge build
Test
forge test # run all tests
forge test -vvv # verbose output
forge test --gas-report # gas report
forge coverage # coverage report
Format
forge fmt
Branch Naming
Use conventional branch names:
feat/<scope>-<description>— new featuresfix/<scope>-<description>— bug fixeschore/<scope>-<description>— maintenancedocs/<description>— documentation updatestest/<description>— test additions/fixes
Commit Messages
Follow Conventional Commits:
feat: add staking mechanism
fix: correct overflow in reward calculation
test: add fuzz tests for transfer
docs: update deployment instructions
Pull Requests
- Create a feature branch from
main - Write tests for new functionality
- Ensure all tests pass:
forge test - Ensure formatting:
forge fmt --check - Open PR with clear description of changes
- Wait for review approval
Security
If you discover a security vulnerability, please report it privately. Do NOT open a public issue for security bugs.
Generated by Chunk Citizen.