Thank you for your interest in contributing to WhiteChain SDK! This document guides you through the contribution process.
Here's how to contribute:
- Browse Issues: Find available issues tagged for this repository.
- Fork and Branch: Fork the repository and create a feature branch from
main. - Develop: Make your changes following the guidelines below.
- Test: Run tests and ensure your changes pass all checks.
- Submit PR: Create a pull request with a description of your changes.
- Review: Maintainers will review your PR. Address feedback promptly.
- Node.js 18+
- npm or yarn
git clone https://github.com/your-org/whitechain-sdk.git
cd whitechain-sdk
npm installnpm run buildnpm run testnpm run typecheck- Use TypeScript for all new code
- Follow existing code patterns in
src/client.ts - Keep the public API small and typed
- Use descriptive variable and function names
- Add JSDoc comments for public APIs
- Avoid premature abstraction
- Link Issue: Include the relevant issue number in your PR description.
- Summary: Provide a clear summary of changes.
- Test Evidence: Describe how you tested the changes.
- Checklist: Ensure your PR meets the checklist in the PR template.
- Communication: Respond to review comments within 48 hours.
- Scope: Changes should be focused on the linked issue.
- Tests: Include tests for new functionality or bug fixes.
- Documentation: Update README and type definitions as needed.
- Backwards Compatibility: Avoid breaking changes without justification.
- Clean History: Keep commits atomic and well-described.
- Maintainers review PRs.
- Reviews focus on correctness, style, and alignment with project goals.
- Address all review comments before requesting re-review.
- PRs may be rejected if they don't meet quality standards.
- Use GitHub issues for bug reports and feature requests.
- Use GitHub discussions for questions and ideas.
- Be respectful and constructive in all communications.
- Follow the Code of Conduct.
- Check existing issues and discussions.
- Read the README for usage examples.
- Ask questions in GitHub discussions.
Maintainers mark issues as campaign-ready when they:
- Are small and well-scoped
- Have clear acceptance criteria
- Specify expected files to change
- Include estimated difficulty
- Define testing requirements
- Note reviewer expectations
Look for issues tagged with good first issue or help wanted.
By contributing, you agree that your contributions will be licensed under the MIT License.