Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1776071666.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Contributing
This guide covers the contribution process and requirements for CoW Protocol Services.Before You Start
Discussion First
Non-trivial changes require maintainer approval before development begins. Only minor updates like typos or small refactors bypass this requirement. Open a GitHub issue or discussion to propose your changes.Workflow Process
- Fork the repository and create descriptive feature branches
- Make changes with accompanying tests for new functionality
- Run formatting tools:
just fmtandjust fmt-toml - Execute linting with Clippy:
cargo clippy --all-targets --all-features - Test locally before pushing
- Create a PR with a completed template explaining the changes
Code Quality Standards
Formatting
The project enforces strict formatting using the nightly Rust toolchain and Tombi for TOML files.Testing
All pull requests must pass the complete test suite, including unit tests, database tests, and end-to-end tests where applicable.Code Style
- Imports: Group by external crates, internal modules, and local imports
- Comments: Explain why changes were made rather than restating code logic
- Error handling: Use
anyhow::Resultfor consistent failure management - Naming: Use descriptive, self-documenting names
Pull Request Requirements
Every PR should:- Include tests for new functionality
- Pass all CI checks (formatting, linting, tests)
- Have a clear description of changes and motivation
- Follow the PR template provided in the repository