Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save elenadimitrova/4138ea5f892fd48d6ac4d1c3891fca87 to your computer and use it in GitHub Desktop.

Select an option

Save elenadimitrova/4138ea5f892fd48d6ac4d1c3891fca87 to your computer and use it in GitHub Desktop.
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