We welcome contributions to dTip! Below are the guidelines for contributing to the Smart Contracts parts of the project. You also can contribute to the Web Client.
- Fork the repository and create a new branch for each feature or bug fix.
- Ensure your code follows the project's coding standards.
- Write tests for any new functionality or bug fixes.
- Commit with clear, descriptive messages.
-
Development Setup
- Ensure you have Foundry installed.
- Run
forge installto install dependencies. - For local development, run
forge testto ensure everything is working.
-
Creating Changes
- Write clean and modular contracts.
- Ensure tests are included for all changes in
tests/. - Follow the best practices for security.
-
Testing
- Use Foundry's test framework (
forge test) to ensure all tests pass. - Provide unit tests for every new contract or function.
- Use Foundry's test framework (
- Push your changes to your fork.
- Open a pull request with a clear description of the changes.
- Ensure your pull request passes all tests before submitting.
Thank you for contributing to dTip!