-
Notifications
You must be signed in to change notification settings - Fork 428
docs(commondao): add README.md
#4678
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
base: master
Are you sure you want to change the base?
Conversation
🛠 PR Checks Summary🔴 Pending initial approval by a review team member, or review from tech-staff Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🔴 Pending initial approval by a review team member, or review from tech-staff ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, leaving just one suggestion
VotingPeriod() time.Duration | ||
|
||
// Tally counts the number of votes and verifies if proposal passes. | ||
Tally(ReadonlyVotingRecord, MemberSet) (passes bool, _ error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ReadonlyVotingRecord
type was confusing to me in general. If you could add a simple explanation to what it is and how to use it, that would be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sound good and makes sense to explain it 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 2e61310
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't explicitly explains why the voting record is readonly, but explains what a voting record is.
It's readonly to avoid proposal definitions to change voting information.
This package provides support to implement custom Decentralized Autonomous | ||
Organizations (DAO). | ||
|
||
It aims to be minimal and flexible, allowing the implementation of multiple DAO | ||
use cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package provides support to implement custom Decentralized Autonomous | |
Organizations (DAO). | |
It aims to be minimal and flexible, allowing the implementation of multiple DAO | |
use cases. | |
The CommonDAO is a general-purpose implementation of a Decentralized Autonomous Organization (DAO) on Gno.land. The CommonDAO package offers a minimal, and flexible framework for building and deploying DAOs, with customizable options to adapt to across multiple use cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ba6b83a
Changed it a bit.
CommonDAO type is the main type used to define DAOs, allowing standalone DAO | ||
creation or hierarchical tree based ones. | ||
|
||
During creation it accepts many optional arguments some of which are handy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During creation it accepts many optional arguments some of which are handy | |
During creation. it accepts many optional arguments some of which are handy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ba6b83a
and description to uniquely identify individual DAOs; Hierarchical ones might | ||
choose to use slugs instead of IDs, or even a mix of both. | ||
|
||
Members can also optionally be initialized during DAO creation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'members can also ...' feels a bit out of place/disconnected from the first part of this content, or maybe it needs more context as to how it relates to the CommonDAO type with a comparison example, initialized before DAO creation vs during DAO creation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it because it didn't really added anything to the document and it was indeed somehow disconnected.
Done in 28aa1c8
are usually used to signal or measure sentiment, for example regarding a | ||
relevant issue. | ||
|
||
Creating a new proposal type requires to implement the following interface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating a new proposal type requires to implement the following interface: | |
Creating a new proposal type requires implementing the following interface: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ba6b83a
Title() string | ||
|
||
// Body returns proposal body. | ||
// It usually contains the proposal description and other elements like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth explaining a few examples of proposal parameters for people who might not know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed description to remove the concept of parameter and used a hopefully simpler description in 0e00c77
Adds an initial
README.md
to better document thecommondao
package