Thank you for your interest in contributing to Flow DCA! This document provides guidelines and instructions for contributing.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/dcatoken.git cd dcatoken - Install dependencies:
npm install
- Copy environment template:
cp .env.example .env
- Start development server:
npm run dev
- Check existing issues to avoid duplicates
- Create a new issue with:
- Clear, descriptive title
- Steps to reproduce
- Expected vs actual behavior
- Environment details (OS, browser, Flow CLI version)
- Open an issue with the
enhancementlabel - Describe the feature and its use case
- Explain why it would benefit other users
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes following our code style
- Test thoroughly on testnet
- Commit with clear messages:
git commit -m "feat: add new feature description" - Push and create a PR against
main
- Follow Cadence 1.0 best practices
- Use explicit access modifiers (
access(all),access(self)) - Add comments explaining complex logic
- Use
viewfunctions for read-only operations
- Use TypeScript strict mode
- Follow existing patterns in the codebase
- Use meaningful variable names
- Add JSDoc comments for exported functions
We follow Conventional Commits:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changesrefactor:- Code refactoringtest:- Adding testschore:- Maintenance tasks
Before submitting a PR:
- Ensure the app builds:
npm run build - Test on Flow Testnet
- Verify all existing functionality still works
If you discover a security vulnerability:
- Do NOT open a public issue
- Email the maintainers directly
- Allow time for a fix before public disclosure
- Open a Discussion
- Join the Flow Discord
By contributing, you agree that your contributions will be licensed under the MIT License.