diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..af29f72f --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,25 @@ +# New Module Proposal + +## Description + + + +## Motivation and Context + + + +## How has this been tested? + + + + + +## Checklist: + + + + +- [ ] The module includes tests written for Foundry +- [ ] The module is documented with [NATSPEC](https://docs.soliditylang.org/en/v0.5.10/natspec-format.html) +- [ ] The documentation includes [UML Diagrams](https://plantuml.com/ascii-art) for external and public functions +- [ ] The module is a [Hyperstructure](https://www.jacob.energy/hyperstructures.html) diff --git a/README.md b/README.md index e91e62c4..7ffdbdf2 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,53 @@ When a new market is registered, a ZORA Module Fee Switch NFT, or ZORF, is minte Once registered, anyone is able to use the market module by approving it via the ZoraModuleManager. +## Contributing + +ZORA V3 is meant to be as extensible as possible. As such, there are a number of ways for developers to contribute. This protocol is being developed in the open, and anyone can propose a module, audit a module, or suggest new module types for the community to begin using. + +As the protocol matures, so too will these contribution guidelines. If you have a suggestion on how we can collaborate better on this protocol, [please let us know](#leaving-feedback). + +### Registering a New Module + +New modules are added to V3 in three stages. We track which stage each module is in with PR labels: + +- Draft / RFC +- Community Audit +- Ready for Deployment + +Note that we also include a 4th label, "ZORA Bug Bounty" for Modules that are created by the ZORA core team and ready for a community audit. + +#### Draft / RFC + +In this stage, the ZORA community is able to give design feedback and start discussions about what the module aims to accomplish. A new draft module can be started by [creating a new pull request](https://github.com/ourzora/v3/compare). + +#### Community Audit + +Once a module has been designed, built, tested and documented, the module can undergo community audits. If the module has been audited by a third party, the audit report can be included in the PR. + +Modules that are written by the ZORA core team are open to our bug bounty program, which allows community auditors to claim up to 25 ETH for vulnerabilities that may have been missed during development. The rubric we use to determine bug bounties is inspired by [ImmuneFi](https://immunefi.com/severity-updated/) and is as follows: + +| **Level** | **Example** | **Maximum Bug Bounty** | +| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | +| 5. Critical | - Empty or freeze the protocol's holdings (e.g. economic attacks, flash loans, reentrancy, MEV, logic errors) | Up to 25 ETH | +| 4. High | - Token holders temporarily unable to transfer holdings
- Users spoof each other
- Transient Consensus Failures | Up to 10 ETH | +| 3. Medium | - Contract consumes unbounded gas
- Block stuffing
- Griefing denial of service (i.e. attacker spends as much in gas as damage to the contract)
- Gas griefing | Up to 5 ETH | +| 2. Low | - Contract fails to deliver promised returns, but doesn't lose value | Up to 1 ETH | +| 1. None | - Best practices | | +| Not sure? | | Let's talk :~) | + +Although not required, developers outside the ZORA core team are able to create and fund their own bug bounty programs, if desired. Feel free to outline your audit program in your PR description. + +After a module has undergone a community audit (ideally about 3-7 days), the module can be deployed and registered + +#### Registering a Module + +Since the ZORA DAO is currently controlled by a multi-sig, the ZORA Core team will deploy and register audited modules manually. If the module is marked with a "Ready for Deployment" label, it will be picked up in the next available deployment window by the ZORA core team. Once deployed, the contract address will be available in the `addresses/` directory. + +### Leaving Feedback + +If you have suggestions or comments on how we can better collaborate on this codebase and/or the protocol as a whole, please [create an issue](https://github.com/ourzora/v3/issues/new) outlining your ideas and suggestions. We can then use the issue tracker as an open discussion forum. + ## Local Development 1. Install [Foundry](https://github.com/gakonst/foundry#installation) diff --git a/uml/Modules.txt b/uml/Modules.txt deleted file mode 100644 index e69de29b..00000000