cowprotocol / cowprotocol/contracts-template
Potential reiteration of template project
Open
@igorroncevic is already working on this.
Since May 12, 2026.
- Dominant language
- Just
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Open discussions
- Pending to resolve all comments in https://github.com/cowprotocol/contracts-template/pull/4 in follow up PRs
Process / CI
- Include Linting for Solidity
- Make sure we update the natspec comments if a function signature changes (e.g., missing parameters or return values)
- Make sure that test_* functions are external (if it were internal, the test would be silently skipped)
- [no-duplicated-imports](https://github.com/protofire/solhint/issues/588)
- Coverage enforcement
- Linting for TS/JS? does it apply
- Cannon setup, reference docs/process?
- Make contract verification easier (default include standard json, Etherscan api v2)
- Standarise the creation of networks.json or better alternatives using the new process
- Make it easier to work with RPC? Standard naming, easier to find ready to use RPCS?
- .env standarization
Foundry
- Foundry default
- Make sure deployments are deterministic and follow the foundry recommendations (i.e. disable
cbor, etc. ). See also https://book.getfoundry.sh/guides/deterministic-deployments-using-create2 - Avoid different address per network since this makes it more likely to loose funds (see issue with MM wallet)
- Should we add via_ir by default in all projects?
Solidity
- Config for version, and standards on how to specify pragmas
- Would be awesome to have some libraries and interfaces that are likely used for integrations, this could be really nice to encourage integrations with other teams. For example
- More complete version of https://github.com/cowdao-grants/cow-fee/blob/main/src/interfaces/IGPv2Settlement.sol
- Safe ISafe.sol https://github.com/cowdao-grants/cow-fee/blob/main/src/interfaces/ISafe.sol
- Generalise Wrappers
- Cow-shed
- Flashloans https://github.com/cowprotocol/flash-loan-router
- Stuff for programmatic orders
- Potentially, get inspiration in defi-wonderland, for example see [here](https://github.com/defi-wonderland/balancer-v1-amm/blob/dev/foundry.toml).
- Check if worth it to include the new proposal of a CREATE2 deployer based on EIP7702. (not immediate need, but interesting new standard that avoids issues in some weird chains we might face in the future) → Template?
Github / Git
- PR template and PR reviewers - #1
- Can we define in the template the branch rules, etc?
- Do we want things like pre-commit hooks to auto format?
Legal
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.