-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Add GUIDELINES.md for marking abstract contracts
#4010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GUIDELINES.md for marking abstract contracts
#4010
Conversation
|
|
AFAIK, this is all our contracts with very few exceptions (proxies / timelockcontroller / vestingwallet / paymentsplitter / presets). |
You're right, the wording doesn't sound completely precise, however, I chatted about this with Fran and there's clearly a need for a guideline here, so rephrasing would be ideal. The discussion came from What about...?
|
Honestly I prefer the guidelines to be strict, and not open to interpretations. I like the way its phrased right now, but it also mean we should probably change how our contracts are defined. |
Are you suggesting we should do this now or in 5.0? I feel we shouldn't do it before 5.0, even though nothing should change for the end user some other things may be affected and we may not see them now. We can add a comment in the guidelines saying not all the codebase follows this guideline yet. |
I also don't like ambiguity, but I think it's fine since the guidelines will be all correctly implemented long-term, so I agree we shouldn't change it until 5.0. Same happens right now with changesets (eg. they should not have the PR URL, but they do now because of older PRs. Will get fixed over time). |
GUIDELINES.md for marking asbtract contractsGUIDELINES.md for marking abstract contracts
|
We agreed to keep this guideline but applying breaking changes only in 5.0 |
|
I added the abstract keyword to some contract definitions. The list of non abstract contract can be obtain by doing grep -rl ^contract --exclude-dir=mocks contractsI left the following ones non-abstract
|
Fixes #4350
Description
This is one of our guidelines we use across the repository, so it's now formally mentioned in our
GUIDELINES.mddocument