0x0156…cb6d

All memos sent from and to 0x0156…cb6d.

pragma solidity ^0.4.18; import './Voting.sol'; contract MemberApplicationBallot is Voting { address[] requiredVoters; // standard ballot with 2 proposals // proposal 0 is against, 1 is for function MemberApplicationBallot(address[] _requiredVoters) Voting(2) public { requiredVoters = _requiredVoters; // give right to vote for all provided voters for (uint8 i = 0; i < _requiredVoters.length; i++) { super.giveRightToVote(_requiredVoters[i]); } } function voteAgainst() public { super.vote(0); } function voteFor() public { super.vote(1); } function hasEveryoneVoted() public view returns (bool) { bool yes = true; for (uint8 i = 0; i < requiredVoters.length; i++) { yes = yes && super.hasVoted(requiredVoters[i]); } return yes; } function isAccepted() public view returns (bool) { require(this.hasEveryoneVoted()); uint8 winner = super.winningProposal(); if (winner == 0) { return false; } else if (winner == 1) { return true; } else { // cant get here assert(false); } } }
pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/math/SafeMath.sol'; import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; import 'zeppelin-solidity/contracts/token/ERC20/BasicToken.sol'; /** * almost like a basic token, but not transferrable by normal people */ contract VotingShares is Ownable, BasicToken { using SafeMath for uint256; uint256 totalSupply_; string public constant name = "VotingShares"; // solium-disable-line uppercase string public constant symbol = "MOL"; // solium-disable-line uppercase uint8 public constant decimals = 18; // solium-disable-line uppercase uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals)); event Transfer(address indexed from, address indexed to, uint256 value); function VotingShares() { totalSupply_ = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; Transfer(0x0, msg.sender, INITIAL_SUPPLY); } /** * override transfer function to be only owner */ function transfer(address _to, uint256 _value) public onlyOwner returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } }