Thank you for your interest in contributing to the VCoin Token-2022 project! This document provides guidelines and instructions for contributing.
Please follow these guidelines when contributing:
- Be respectful and inclusive.
- Focus on the issue at hand, not the person.
- Be open to feedback and willing to learn.
- Help others when you can.
-
Fork the Repository: Start by forking the repository to your GitHub account.
-
Clone Your Fork:
git clone https://github.com/YOUR-USERNAME/vcoin.git cd vcoin -
Set Up the Development Environment:
npm install
-
Set Up Environment Variables:
cp .env.example .env # Edit .env with your values
-
Create a New Branch:
git checkout -b feature/your-feature-name
-
Make Your Changes: Implement your changes, following the code style and testing guidelines.
-
Write Tests: Add tests for your changes.
-
Run Tests:
npm test -
Run Linters:
npm run lint
-
Commit Your Changes:
git commit -m "feat: Add feature X"Follow the Conventional Commits format:
feat:for new featuresfix:for bug fixesdocs:for documentation changesstyle:for formatting changesrefactor:for code refactoringtest:for adding or modifying testschore:for routine tasks and maintenance
-
Push Your Changes:
git push origin feature/your-feature-name
-
Create a Pull Request: Open a pull request from your fork to the main repository.
- Title: Use a descriptive title that summarizes the change.
- Description: Provide a detailed description of the changes.
- References: Link to any related issues or discussions.
- Continuous Integration: Ensure all CI checks pass.
- Code Review: Address any feedback from code reviewers.
- Approval: Wait for approval from maintainers.
- Follow the existing code style in the project.
- Use TypeScript for client code and Rust for Solana programs.
- Add appropriate comments and documentation.
- Ensure your code passes all linter checks.
- Write unit tests for all new functions.
- Write integration tests for complex interactions.
- Ensure all tests pass before submitting a pull request.
- Aim for high code coverage.
- Update documentation when adding or changing features.
- Follow the existing documentation style.
- Use clear, concise language.
When working with Solana programs:
-
Local Development:
# Start a local validator solana-test-validator # Build and deploy the program npm run build:program npm run deploy:program
-
Testing Programs:
cd program cargo test
By contributing to this project, you agree that your contributions will be licensed under the same license as the project.
If you have questions or need support:
- GitHub Issues: For bugs and feature requests.
- Discussions: For general questions and discussions.
Thank you for contributing to VCoin Token-2022!