Add function to configure the associated apps

This commit is contained in:
2020-12-01 12:22:31 +01:00
parent 9648499741
commit dc35344570
8 changed files with 35 additions and 2 deletions

View File

@@ -14,6 +14,11 @@
"name": "Veto contributions",
"id": "VETO_CONTRIBUTION_ROLE",
"params": []
},
{
"name": "Manage connected apps",
"id": "MANAGE_APPS_ROLE",
"params": []
}
],
"environments": {

View File

@@ -17,6 +17,7 @@ interface ContributorInterface {
contract Contribution is AragonApp {
bytes32 public constant ADD_CONTRIBUTION_ROLE = keccak256("ADD_CONTRIBUTION_ROLE");
bytes32 public constant VETO_CONTRIBUTION_ROLE = keccak256("VETO_CONTRIBUTION_ROLE");
bytes32 public constant MANAGE_APPS_ROLE = keccak256("MANAGE_APPS_ROLE");
IToken public kreditsToken;
ContributorInterface public kreditsContributor;
@@ -59,6 +60,11 @@ contract Contribution is AragonApp {
initialized();
}
function setApps(address _token, address _contributor) public isInitialized auth(MANAGE_APPS_ROLE) {
kreditsToken = IToken(_token);
kreditsContributor = ContributorInterface(_contributor);
}
//
// Token standard functions (ERC 721)
//