platform-contracts icon indicating copy to clipboard operation
platform-contracts copied to clipboard

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

Open djudjuu opened this issue 5 years ago • 0 comments

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 avatar Mar 12 '20 15:03 djudjuu