Contract 0x971d888b63b245bb8312bdc735de78c72b142db0

Balance:0 GöETH

Code

0x60806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306f56dcf1461007257806309eef43e1461009d5780634bb5e118146101065780638941887c14610131578063b2b77ff814610148575b600080fd5b34801561007e57600080fd5b5061008761015f565b6040518082815260200191505060405180910390f35b3480156100a957600080fd5b506100ec600480360360208110156100c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610165565b604051808215151515815260200191505060405180910390f35b34801561011257600080fd5b5061011b6101ba565b6040518082815260200191505060405180910390f35b34801561013d57600080fd5b506101466101c0565b005b34801561015457600080fd5b5061015d6103b4565b005b60025481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60015481565b60011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141515610288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f742077686974656c6973746564000000000000000000000000000000000081525060200191505060405180910390fd5b600015156000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514151561034f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41206461206e65206269206f70657420676c6173616f206d616a6b652074690081525060200191505060405180910390fd5b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160025401600281905550565b60011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514151561047c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f742077686974656c6973746564000000000000000000000000000000000081525060200191505060405180910390fd5b600015156000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515141515610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f41206461206e65206269206f70657420676c6173616f206d616a6b652074690081525060200191505060405180910390fd5b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600180540160018190555056fea165627a7a723058207d13393b13efbfee5a7996d16ec8996157a348a579265d5f05a7860a2ca9744d0029

Source

pragma solidity ^0.5;

contract Robolas {
    
    mapping (address => bool) voters;
    uint256 public votesRobocop;
    uint256 public votesLegolas;
    
    
    mapping (address => bool) whitelist;
    
    constructor() public {
        whitelist[0x8239b9CD88e2c9BA7C7A7040b845684e03377FEa] = true;
        whitelist[0xf37D537662FD7480A81e1C298E570D8425D8C568] = true;
        whitelist[0x845E357254d0C41e0dAD1560e9f45453AC9B7B93] = true;
        whitelist[0xd8CE2a20C49A120D0A7383A446547e77E3aBa4cE] = true;
        whitelist[0xfDfCfBF4cF02bEb102253676EEd5D0111F1B4D70] = true;
        whitelist[0x5EDBc092c82154E71cF56c7dce521F6EbFFf37df] = true;
        whitelist[0xAfFFa7Fb95384FE9db24DC2a62411678A8E418c4] = true;
        whitelist[0x40ECe4AaaAAa0B8890484ffE74E5F53e19264656] = true;
        whitelist[0xC32D882Ae278af21AFAD009964142052573b2541] = true;
        whitelist[0x472014ff6902E41262162e848dd032B7a6F2cb59] = true;
        
        whitelist[0xdEc48c00e33a14B0E6D196cf020c4Cc3f0b411A6] = true;
        whitelist[0xb44eAa82A3e03B9f3a522adf9d100AD8405bD079] = true;
        whitelist[0x26641051cC90Ec063843497B9769411e9cefeF47] = true;
        whitelist[0x36AD7380471c5e0775907a5eFE1a93c45aBEFfbd] = true;
        whitelist[0x971ef5B59C55B62dc0D070cbd04DD22bAbB08A98] = true;
        whitelist[0x2A01d438e6151a47d0aB20dcc31DE1dEBde55E8F] = true;
        whitelist[0x729EC2bCA251520Ec2e01b8029384A817ace61CC] = true;
        whitelist[0x5761F5f3B81090ECBFD0c8162D88e697f0a2832b] = true;
        whitelist[0x0601e3AD55C5c14a0D62D3710fa1443fD07c78d1] = true;
        whitelist[0xE78B78fAf2AE0Ff34c906b6d355A09dC43A21948] = true;
        
        whitelist[0xC89EF5139C035022E8065269EE9A74652FdD29c7] = true;
        whitelist[0xF050b7114e70D4DA731C4ad9be7c366BC9db2542] = true;
        whitelist[0xd56D6D9bf713962F6715d7b1f1049FF1394E75f7] = true;
        whitelist[0x91CFdbd0D50A72CB809d2941673050B08b542760] = true;
        whitelist[0xa256F47D27745565b28fB7CE858385E293b1ac3f] = true;
        whitelist[0xC5A50005B3567747d05372129EAc11E0cE77173b] = true;
        whitelist[0xCba3b703Ed3104f478D7554b369b271C71C3eE0d] = true;
        whitelist[0x41b31b73adaBad7949F25687b61BA8a96c59DCEc] = true;
        whitelist[0x695f29e0Eae4393415AFC2491E9409b9fc6FD495] = true;
        whitelist[0xfd74a278C2Ac6468e57366fa0A0179A0B1C2De48] = true;
        
        whitelist[0x4aE72f3De90A4Da249EfcE0248F7cdEf43399eF1] = true;
        whitelist[0x16c6244b370B146aC3DD6f822e85C1e1a6E1119B] = true;
        whitelist[0x29cd2Ab7b17590AB1085f6c82301cEAbf0fB8713] = true;
        whitelist[0xFe942f63218cC8c36C317A4308eED1598E8c3b55] = true;
        whitelist[0x486Fe2254AA5Bc83cD09863367083504d2b5eBf5] = true;
        whitelist[0x6F0964f6267be72c9CD7e1986027d0F1ec145466] = true;
        whitelist[0xFb109aEfe6F9c0b15C7e68A207f6f79517240d98] = true;
        whitelist[0x9C905F7e19dF2a78D04364974F2CC0f4a0008638] = true;
        whitelist[0x0e49f8e647D3Dbf989dB61cF596495e8920629dA] = true;
        whitelist[0x48422F075A9EeF6E4884f83ABE8f1A26D83e76C8] = true;
        
        whitelist[0xc91073610973274715c337eC1965087085FA6926] = true;
        whitelist[0xc7bfCaef0f57f11B8EecA20B95592C92a12c6323] = true;
        whitelist[0x2Ba7cBaEa193A5C51FD9B5e5d38F8F06230B3f6A] = true;
        whitelist[0xB175b38973E167fe6200f701f975659C3A99F786] = true;
        whitelist[0x8598abFF6B4dEF37DA0c11F5E58C89ddb2ad4f15] = true;
        whitelist[0xE3282fd72D6f449ea71DC53d649253C608ef1A83] = true;
        whitelist[0xd51C1F24986A76CC03E76F80773225991c5c1a2C] = true;
        whitelist[0x277FaB9b363f18382bEc9EC1467D0741cfA6101C] = true;
        whitelist[0xa69Bb589eB24D186dc5f76b3eF7AE3745aAaf1b8] = true;
        whitelist[0xa65fCB7bb7884940d9c873eA38bEFe65e8Caca7f] = true;
    }
    
    function voteRobocop() onlyWhitelist public {
        require(voters[msg.sender] == false, "A da ne bi opet glasao majke ti");
        voters[msg.sender] = true;
        votesRobocop = votesRobocop + 1;
    }
    
    function voteLegolas() onlyWhitelist public {
        require(voters[msg.sender] == false, "A da ne bi opet glasao majke ti");
        voters[msg.sender] = true;
        votesLegolas = votesLegolas + 1;
    }
    
    function hasVoted(address addr) public view returns (bool) {
        return voters[addr];
    }
        
    modifier onlyWhitelist() {
        require(whitelist[msg.sender] == true, "Not whitelisted");
        _;
    }
}

ABI

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Constructor

Current contract state

FunctionResult
votesLegolas7
votesRobocop8