Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 23f1426

Browse files
committed
Merge pull request #130 from ourzora/t/contribution-guidelines
[feat] Contribution Guidelines
2 parents 6abca47 + 33b6419 commit 23f1426

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# New Module Proposal
2+
3+
## Description
4+
5+
<!--- Describe your changes in detail -->
6+
7+
## Motivation and Context
8+
9+
<!--- Why is this module required? What problem does it solve? -->
10+
11+
## How has this been tested?
12+
13+
<!--- Please describe in detail how you tested your changes. -->
14+
<!--- Include details of your testing environment, tests ran to see how -->
15+
<!--- your change affects other areas of the code, etc. -->
16+
17+
## Checklist:
18+
19+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
20+
<!--- If you're unsure about any of these, don't hesitate to ask. -->
21+
22+
- [ ] The module includes tests written for Foundry
23+
- [ ] The module is documented with [NATSPEC](https://docs.soliditylang.org/en/v0.5.10/natspec-format.html)
24+
- [ ] The documentation includes [UML Diagrams](https://plantuml.com/ascii-art) for external and public functions
25+
- [ ] The module is a [Hyperstructure](https://www.jacob.energy/hyperstructures.html)

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,53 @@ When a new market is registered, a ZORA Module Fee Switch NFT, or ZORF, is minte
4444

4545
Once registered, anyone is able to use the market module by approving it via the ZoraModuleManager.
4646

47+
## Contributing
48+
49+
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.
50+
51+
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).
52+
53+
### Registering a New Module
54+
55+
New modules are added to V3 in three stages. We track which stage each module is in with PR labels:
56+
57+
- Draft / RFC
58+
- Community Audit
59+
- Ready for Deployment
60+
61+
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.
62+
63+
#### Draft / RFC
64+
65+
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).
66+
67+
#### Community Audit
68+
69+
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.
70+
71+
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:
72+
73+
| **Level** | **Example** | **Maximum Bug Bounty** |
74+
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
75+
| 5. Critical | - Empty or freeze the protocol's holdings (e.g. economic attacks, flash loans, reentrancy, MEV, logic errors) | Up to 25 ETH |
76+
| 4. High | - Token holders temporarily unable to transfer holdings<br>- Users spoof each other<br>- Transient Consensus Failures | Up to 10 ETH |
77+
| 3. Medium | - Contract consumes unbounded gas<br>- Block stuffing<br>- Griefing denial of service (i.e. attacker spends as much in gas as damage to the contract)<br>- Gas griefing | Up to 5 ETH |
78+
| 2. Low | - Contract fails to deliver promised returns, but doesn't lose value | Up to 1 ETH |
79+
| 1. None | - Best practices | |
80+
| Not sure? | | Let's talk :~) |
81+
82+
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.
83+
84+
After a module has undergone a community audit (ideally about 3-7 days), the module can be deployed and registered
85+
86+
#### Registering a Module
87+
88+
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.
89+
90+
### Leaving Feedback
91+
92+
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.
93+
4794
## Local Development
4895

4996
1. Install [Foundry](https://github.com/gakonst/foundry#installation)

uml/Modules.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)