Add function to configure the associated apps
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
"name": "Veto contributions",
|
||||
"id": "VETO_CONTRIBUTION_ROLE",
|
||||
"params": []
|
||||
},
|
||||
{
|
||||
"name": "Manage connected apps",
|
||||
"id": "MANAGE_APPS_ROLE",
|
||||
"params": []
|
||||
}
|
||||
],
|
||||
"environments": {
|
||||
|
||||
@@ -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)
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user