Last active
August 10, 2016 11:58
-
-
Save elenadimitrova/4138ea5f892fd48d6ac4d1c3891fca87 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"; | |
| import "DataVerifiable.sol"; | |
| contract Organisation is DataVerifiable | |
| { | |
| 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 | |
| refundEtherSentByAccident | |
| throwIfIsEmptyBytes32(_name) | |
| { | |
| eternalStorage.addProposal(_name); | |
| } | |
| [...] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment