forked from aragon/osx-plugin-template-hardhat
-
Notifications
You must be signed in to change notification settings - Fork 0
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: Add minimal approval configuration #28
Closed
Closed
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
c4605ea
feat: update majority voting to support min approvals
clauBv23 5d955d8
ci: separate the updateMinApproval in a different function and add it…
clauBv23 6a2456c
feat: add minApproval to token voting, duplicate init function to con…
clauBv23 bdba026
fix: tests and compilation errors
clauBv23 88f9d04
feat: update the token voting setup so the min advance value in prope…
clauBv23 635b96c
fix: typo in the setup function selector
clauBv23 42ef256
feat: add new installation and update param in the build metadata file
clauBv23 77f3d6f
fix: update tests to work with new setup and configuration param
clauBv23 0403d51
feat: add natspec comments to the majority votes interface
clauBv23 902eb13
feat: add natspect comment to the token voting contract
clauBv23 7ec12c9
ci: remove not needed contract
clauBv23 59165e4
feat: add natspect and needed event when updating the min approval value
clauBv23 5d1c070
feat: add test for checking the proposal can not be executed when the…
clauBv23 b6e9ca7
feat: define new interfaces to check them on the tests
clauBv23 9b7394c
ci: move the min approval variable definition position
clauBv23 04ca7fb
fix: min approval values
clauBv23 8955f48
feat: add test for edge cases
clauBv23 638ea07
feat: modify the majority votes init function to receive the min appr…
clauBv23 7ec2e54
feat: add tets for checking the updateMinApproval function
clauBv23 e39d535
ci: remove comment
clauBv23 cb01be0
feat: add test for old interfaces on majority votes
clauBv23 f175112
fix: import missing constant
clauBv23 a959426
feat: add validation for minimal approval value
clauBv23 c0bd627
fixL typos
clauBv23 08409b5
feat: change test to the new initialize function
clauBv23 9bc036a
feat: define the initialize function signature as constant to reuse it
clauBv23 bb689ff
feat: revert on old initialize function
clauBv23 119e15c
feat: use new constant signatures and add test to check deprecated in…
clauBv23 7bf608b
ci: improve natspec comment
clauBv23 5c04b20
ci: remove comments
clauBv23 6f7d789
ci: remove comment
clauBv23 65198a0
ci: comment
clauBv23 8a69416
fix: typo
clauBv23 af67a74
feat: rename min approval variable
clauBv23 939dac7
fix: remove check no longer needed
clauBv23 1219954
ci: refact
clauBv23 210afb0
ci: remove comment
clauBv23 fb95ba5
ci: add comment
clauBv23 f7e0f97
fic: rename function for consistency
clauBv23 345d6b7
fix: update metadata description
clauBv23 4fe246c
fix lint
clauBv23 9b6cf85
ci: rename all vars name
clauBv23 92070c4
ci: rename functions for consistency
clauBv23 4ce4388
feat: change the min approval type from uint32 to uint256
clauBv23 c720fed
fix: test
clauBv23 1073c87
fix test
clauBv23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
@clauBv23 - sorry for the long delay in getting to this review. Functionally this looks like it works as specified in the requirements.
The only thing that really makes me uncomfortable is not including minApprovals in the voting setting struct. It is a governance setting just like the others, so having it separate, and with its own permission doesn't make any practical sense.
Will this always be a problem when we want to extend the functionality of existing plugins? Are there any other product inputs that can help inform how to improve this decision?