Created
August 10, 2016 10:28
-
-
Save elenadimitrova/609418919159bdf80ece48b65a44ad8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import "ITokenLedger.sol"; | |
import "ProposalsLibrary.sol"; | |
import "SecurityLibrary.sol"; | |
contract Organisation | |
{ | |
ITokenLedger public tokenLedger; | |
using ProposalsLibrary for address; | |
using SecurityLibrary for address; | |
address public eternalStorage; | |
function Organisation(address _tokenLedger, address _eternalStorage) { | |
tokenLedger = ITokenLedger(_tokenLedger); | |
eternalStorage = _eternalStorage; | |
} | |
modifier onlyAdmins { | |
if (!eternalStorage.isUserAdmin(msg.sender)) throw; | |
_ | |
} | |
function addProposal(bytes32 _name) | |
onlyAdmins | |
{ | |
eternalStorage.addProposal(_name); | |
} | |
[...] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment