Update guidelines and project documentation (#3966)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>pull/3961/head^2
parent
18691d1a6f
commit
88a64a802e
@ -1,64 +1,34 @@ |
||||
Contributing to OpenZeppelin Contracts |
||||
======= |
||||
# Contributing Guidelines |
||||
|
||||
We really appreciate and value contributions to OpenZeppelin Contracts. Please take 5' to review the items listed below to make sure that your contributions are merged as soon as possible. |
||||
There are many ways to contribute to OpenZeppelin Contracts. |
||||
|
||||
## Contribution guidelines |
||||
## Troubleshooting |
||||
|
||||
Smart contracts manage value and are highly vulnerable to errors and attacks. We have very strict [guidelines], please make sure to review them! |
||||
You can help other users in the community to solve their smart contract issues in the [OpenZeppelin Forum]. |
||||
|
||||
## Creating Pull Requests (PRs) |
||||
[OpenZeppelin Forum]: https://forum.openzeppelin.com/ |
||||
|
||||
As a contributor, you are expected to fork this repository, work on your own fork and then submit pull requests. The pull requests will be reviewed and eventually merged into the main repo. See ["Fork-a-Repo"](https://help.github.com/articles/fork-a-repo/) for how this works. |
||||
## Opening an issue |
||||
|
||||
## A typical workflow |
||||
You can [open an issue] to suggest a feature or report a minor bug. For serious bugs please do not open an issue, instead refer to our [security policy] for appropriate steps. |
||||
|
||||
1) Make sure your fork is up to date with the main repository: |
||||
If you believe your issue may be due to user error and not a problem in the library, consider instead posting a question on the [OpenZeppelin Forum]. |
||||
|
||||
``` |
||||
cd openzeppelin-contracts |
||||
git remote add upstream https://github.com/OpenZeppelin/openzeppelin-contracts.git |
||||
git fetch upstream |
||||
git pull --rebase upstream master |
||||
``` |
||||
NOTE: The directory `openzeppelin-contracts` represents your fork's local copy. |
||||
Before opening an issue, be sure to search through the existing open and closed issues, and consider posting a comment in one of those instead. |
||||
|
||||
2) Branch out from `master` into `fix/some-bug-#123`: |
||||
(Postfixing #123 will associate your PR with the issue #123 and make everyone's life easier =D) |
||||
``` |
||||
git checkout -b fix/some-bug-#123 |
||||
``` |
||||
When requesting a new feature, include as many details as you can, especially around the use cases that motivate it. Features are prioritized according to the impact they may have on the ecosystem, so we appreciate information showing that the impact could be high. |
||||
|
||||
3) Make your changes, add your files, commit, and push to your fork. |
||||
[security policy]: https://github.com/OpenZeppelin/openzeppelin-contracts/security |
||||
[open an issue]: https://github.com/OpenZeppelin/openzeppelin-contracts/issues/new/choose |
||||
|
||||
``` |
||||
git add SomeFile.js |
||||
git commit "Fix some bug #123" |
||||
git push origin fix/some-bug-#123 |
||||
``` |
||||
## Submitting a pull request |
||||
|
||||
4) Run tests, linter, etc. This can be done by running local continuous integration and make sure it passes. |
||||
If you would like to contribute code or documentation you may do so by forking the repository and submitting a pull request. |
||||
|
||||
```bash |
||||
npm test |
||||
npm run lint |
||||
``` |
||||
Any non-trivial code contribution must be first discussed with the maintainers in an issue (see [Opening an issue](#opening-an-issue)). Only very minor changes are accepted without prior discussion. |
||||
|
||||
5) Go to [github.com/OpenZeppelin/openzeppelin-contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) in your web browser and issue a new pull request. |
||||
Make sure to read and follow the [engineering guidelines](./GUIDELINES.md). Run linter and tests to make sure your pull request is good before submitting it. |
||||
|
||||
*IMPORTANT* Read the PR template very carefully and make sure to follow all the instructions. These instructions |
||||
refer to some very important conditions that your PR must meet in order to be accepted, such as making sure that all tests pass, JS linting tests pass, Solidity linting tests pass, etc. |
||||
When opening the pull request you will be presented with a template and a series of instructions. Read through it carefully and follow all the steps. Expect a review and feedback from the maintainers afterwards. |
||||
|
||||
6) Maintainers will review your code and possibly ask for changes before your code is pulled in to the main repository. We'll check that all tests pass, review the coding style, and check for general code correctness. If everything is OK, we'll merge your pull request and your code will be part of OpenZeppelin Contracts. |
||||
|
||||
*IMPORTANT* Please pay attention to the maintainer's feedback, since it's a necessary step to keep up with the standards OpenZeppelin Contracts attains to. |
||||
|
||||
## All set! |
||||
|
||||
If you have any questions, feel free to post them to github.com/OpenZeppelin/openzeppelin-contracts/issues. |
||||
|
||||
Finally, if you're looking to collaborate and want to find easy tasks to start, look at the issues we marked as ["Good first issue"](https://github.com/OpenZeppelin/openzeppelin-contracts/labels/good%20first%20issue). |
||||
|
||||
Thanks for your time and code! |
||||
|
||||
[guidelines]: GUIDELINES.md |
||||
If you're looking for a good place to start, look for issues labelled ["good first issue"](https://github.com/OpenZeppelin/openzeppelin-contracts/labels/good%20first%20issue)! |
||||
|
@ -1,20 +1,42 @@ |
||||
# Security Policy |
||||
|
||||
Security vulnerabilities should be disclosed to the project maintainers through [Immunefi], or alternatively by email to security@openzeppelin.com. |
||||
|
||||
[Immunefi]: https://immunefi.com/bounty/openzeppelin |
||||
|
||||
## Bug Bounty |
||||
|
||||
We have a [**bug bounty program** on Immunefi](https://www.immunefi.com/bounty/openzeppelin). Please report any security issues you find through the Immunefi dashboard, or reach out to security@openzeppelin.com. |
||||
Responsible disclosure of security vulnerabilities is rewarded through a bug bounty program on [Immunefi]. |
||||
|
||||
There is a bonus reward for issues introduced in release candidates that are reported before making it into a stable release. |
||||
|
||||
## Security Patches |
||||
|
||||
Security vulnerabilities will be patched as soon as responsibly possible, and published as an advisory on this repository (see [advisories]) and on the affected npm packages. |
||||
|
||||
[advisories]: https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories |
||||
|
||||
Projects that build on OpenZeppelin Contracts are encouraged to clearly state, in their source code and websites, how to be contacted about security issues in the event that a direct notification is considered necessary. We recommend including it in the NatSpec for the contract as `/// @custom:security-contact security@example.com`. |
||||
|
||||
Additionally, we recommend installing the library through npm and setting up vulnerability alerts such as [Dependabot]. |
||||
|
||||
[Dependabot]: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security#what-is-dependabot |
||||
|
||||
### Supported Versions |
||||
|
||||
Security patches will be released for the latest minor of a given major release. For example, if an issue is found in versions >=4.6.0 and the latest is 4.8.0, the patch will be released only in version 4.8.1. |
||||
|
||||
Critical bug fixes will be backported to past major releases. |
||||
Only critical severity bug fixes will be backported to past major releases. |
||||
|
||||
## Supported Versions |
||||
| Version | Critical security fixes | Other security fixes | |
||||
| ------- | ----------------------- | -------------------- | |
||||
| 4.x | :white_check_mark: | :white_check_mark: | |
||||
| 3.4 | :white_check_mark: | :x: | |
||||
| 2.5 | :white_check_mark: | :x: | |
||||
| < 2.0 | :x: | :x: | |
||||
|
||||
The recommendation is to use the latest version available. |
||||
Note as well that the Solidity language itself only guarantees security updates for the latest release. |
||||
|
||||
| Version | Supported | |
||||
| ------- | ------------------------------------ | |
||||
| 4.x | :white_check_mark::white_check_mark: | |
||||
| 3.4 | :white_check_mark: | |
||||
| 2.5 | :white_check_mark: | |
||||
| < 2.0 | :x: | |
||||
## Legal |
||||
|
||||
Note that the Solidity language itself only guarantees security updates for the latest release. |
||||
Smart contracts are a nascent techology and carry a high level of technical risk and uncertainty. OpenZeppelin Contracts is made available under the MIT License, which disclaims all warranties in relation to the project and which limits the liability of those that contribute and maintain the project, including OpenZeppelin. Your use of the project is also governed by the terms found at www.openzeppelin.com/tos (the "Terms"). As set out in the Terms, you are solely responsible for any use of OpenZeppelin Contracts and you assume all risks associated with any such use. This Security Policy in no way evidences or represents an on-going duty by any contributor, including OpenZeppelin, to correct any flaws or alert you to all or any of the potential risks of utilizing the project. |
||||
|
@ -1,6 +1,6 @@ |
||||
# OpenZeppelin Audit |
||||
|
||||
NOTE ON 2021-07-19: This report makes reference to Zeppelin, OpenZeppelin, OpenZeppelin [C]ontracts, the OpenZeppelin team, and OpenZeppelin library. Many of these things have since been renamed and know that this audit applies to what is currently called the OpenZeppelin Contracts which are maintained by the OpenZeppelin Conracts Community. |
||||
NOTE ON 2021-07-19: This report makes reference to Zeppelin, OpenZeppelin, OpenZeppelin Contracts, the OpenZeppelin team, and OpenZeppelin library. Many of these things have since been renamed and know that this audit applies to what is currently called the OpenZeppelin Contracts which are maintained by the OpenZeppelin Contracts Community. |
||||
|
||||
March, 2017 |
||||
Authored by Dennis Peterson and Peter Vessenes |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@ |
||||
# Audits |
||||
|
||||
| Date | Version | Commit | Auditor | Scope | Links | |
||||
| ------------ | ------- | --------- | ------------ | -------------------- | ----------------------------------------------------------- | |
||||
| October 2022 | v4.8.0 | `14f98db` | OpenZeppelin | ERC4626, Checkpoints | [🔗](./2022-10-ERC4626.pdf) [🔗](./2022-10-Checkpoints.pdf) | |
||||
| October 2018 | v2.0.0 | `dac5bcc` | LevelK | Everything | [🔗](./2018-10.pdf) | |
||||
| March 2017 | v1.0.4 | `9c5975a` | New Alchemy | Everything | [🔗](./2017-03.md) | |
||||
|
||||
# Formal Verification |
||||
|
||||
| Date | Version | Commit | Tool | Scope | Links | |
||||
| ------------ | ------- | --------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | |
||||
| May 2022 | v4.7.0 | `109778c` | Certora | Initializable, GovernorPreventLateQuorum, ERC1155Burnable, ERC1155Pausable, ERC1155Supply, ERC1155Holder, ERC1155Receiver | [🔗](../certora/reports/2022-05.pdf) | |
||||
| March 2022 | v4.4.0 | `4088540` | Certora | ERC20Votes, ERC20FlashMint, ERC20Wrapper, TimelockController, ERC721Votes, Votes, AccessControl, ERC1155 | [🔗](../certora/reports/2022-03.pdf) | |
||||
| October 2021 | v4.4.0 | `4088540` | Certora | Governor, GovernorCountingSimple, GovernorProposalThreshold, GovernorTimelockControl, GovernorVotes, GovernorVotesQuorumFraction | [🔗](../certora/reports/2021-10.pdf) | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue