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

Protect functions via voting-permission (ResolutionControlled-Mixin class) #332

Open
djudjuu opened this issue Mar 12, 2020 · 0 comments
Open
Assignees

Comments

@djudjuu
Copy link
Contributor

djudjuu commented Mar 12, 2020

Certain functions on company related contracts should only be allowed to be executed if there has been a vote to approve it

This could be done with

ResolutionControlled.sol-Mixin class

... which would be

  • intialized with a certain voting-center/Token
  • provide a modifier such that functions can only be executed with a supporting vote that happened on the token
  • if there is no existing vote for the function parameters, modifier will automatically start vote to do so
  • if there is exisiting vote and it has passed function will execute

We can probably use ACLSyntacticSugar.sol and ConversionHelpers.sol from Aragon to convert parameters to bytes

This could be more paraterized by having a VotingInitializer-interface that can be used to interact with votingController

@djudjuu djudjuu self-assigned this Mar 12, 2020
@djudjuu djudjuu mentioned this issue Mar 12, 2020
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant