Skip to content
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

feat: Added missing functionality to govDAO #2493

Merged
merged 13 commits into from
Jul 8, 2024

Conversation

ajnavarro
Copy link
Contributor

@ajnavarro ajnavarro commented Jul 3, 2024

  • Add a Voter interface to be able to implement different voting systems in the future
  • Add members and an executor to add them
  • Improve Render output a bit.
  • Added tests
  • Tidy up and remove unnecessary code
Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@ajnavarro ajnavarro changed the title Added missing functionality to govDAO feat: Added missing functionality to govDAO Jul 3, 2024
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Jul 3, 2024
@ajnavarro ajnavarro force-pushed the dev/ajnavarro/feature/govDAO-improvements branch 3 times, most recently from bfbf7ff to 6395ea0 Compare July 3, 2024 15:58
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💯

I've left a few questions and nits, otherwise it's a good direction

examples/gno.land/p/gov/proposal/proposal_test.gno Outdated Show resolved Hide resolved
examples/gno.land/r/gov/dao/dao.gno Outdated Show resolved Hide resolved
examples/gno.land/r/gov/dao/dao.gno Show resolved Hide resolved
examples/gno.land/r/gov/dao/dao.gno Outdated Show resolved Hide resolved
examples/gno.land/r/gov/dao/dao.gno Show resolved Hide resolved
examples/gno.land/r/gov/dao/voter.gno Show resolved Hide resolved
examples/gno.land/r/gov/dao/voter.gno Outdated Show resolved Hide resolved
examples/gno.land/r/gov/dao/voter.gno Outdated Show resolved Hide resolved
examples/gno.land/r/gov/dao/voter.gno Show resolved Hide resolved
examples/gno.land/r/gov/dao/voter.gno Outdated Show resolved Hide resolved
@ajnavarro ajnavarro marked this pull request as ready for review July 4, 2024 13:45
@ajnavarro ajnavarro requested review from a team as code owners July 4, 2024 13:45
@ajnavarro ajnavarro requested review from gfanton and petar-dambovaliev and removed request for a team July 4, 2024 13:45
Copy link
Member

@moul moul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except that I believe we should switch to an avl.Tree for voter records to improve efficiency and simplicity (i.e., PercentageVoter.alreadyVoted()), this PR is a very good improvement and we can merge it as is.

- Add a Voter interface to be able to implement different voting systems
  in the future
- Add members and an executor to add them
- Improve Render output a bit.
- Added tests
- Tidy up and remove unnecessary code

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
ajnavarro and others added 3 commits July 8, 2024 14:29
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
@ajnavarro ajnavarro force-pushed the dev/ajnavarro/feature/govDAO-improvements branch from 3ac4dd4 to c001ba3 Compare July 8, 2024 12:31
@ajnavarro ajnavarro enabled auto-merge (squash) July 8, 2024 14:09
@ajnavarro ajnavarro merged commit ebf4d8f into master Jul 8, 2024
9 checks passed
@ajnavarro ajnavarro deleted the dev/ajnavarro/feature/govDAO-improvements branch July 8, 2024 14:12
gfanton pushed a commit to gfanton/gno that referenced this pull request Jul 23, 2024
Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: Done
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants