Latest 2 txns

TxHash Age From To Value [TxFee]
0xaab24c5e99f68892c8a461d6f1857db50d3e328fda71e0cab6e408a9682d3f3f7 days 15 hrs ago0x91c02c0a17a14c1acbf34ea105ede4ffef98ff5b  IN   0x1407da5830951840c816418338e19e8e114cb95c0 Ether0.000044884
0x16d6a3d6b22e9be48260d9e5003593d6c80bf3049aae78ac549f6fd70db1b51d7 days 15 hrs ago0x91c02c0a17a14c1acbf34ea105ede4ffef98ff5b  IN    Contract Creation0 Ether0.000936796


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: RepositoryName
Compiler Text: v0.5.2+commit.1df8f40c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity >=0.4.22 <0.6.0;


contract RepositoryName {
    event Success(bool value);
    address public owner;
    address public delegator;
    string public repositoryName;
    mapping(address => bool) public authedAccounts;
    address[] public authedAccountList;
    uint256 public authedAccountSize = uint256(0);
    string public repositoryAddress;
    constructor() public {
        owner = msg.sender;
        emit Success(true);
    }
    
    function setRepositoryName(string memory _repositoryName) public returns(bool){
        require(msg.sender == owner || msg.sender == delegator);
        repositoryName = _repositoryName;
        emit Success(true);
        return true;
    }
    
    function updateRepositoryAddress(string memory _oldRepositoryAddress, string memory _newRepositoryAddress) public returns(bool) {
        require(msg.sender == owner || msg.sender == delegator || authedAccounts[msg.sender] == true);
        bytes memory nra = bytes(_newRepositoryAddress);
        require(nra.length > 1);
        bytes memory ora = bytes(_oldRepositoryAddress);
        bytes memory ra = bytes(repositoryAddress);
        // if length < 2 considered to null.
        require(ora.length < 2 && ra.length < 2 || keccak256(ora) == keccak256(ra));
        repositoryAddress = _newRepositoryAddress;
        emit Success(true);
        return true;
    }
    
    function addTeamMember(address _member) public returns(bool) {
        require((msg.sender == owner || msg.sender == delegator) && _member != address(0) && authedAccounts[_member] != true);
        authedAccounts[_member] = true;
        authedAccountList.push(_member);
        authedAccountSize = authedAccountSize + 1;
        emit Success(true);
        return true;
    }
    
    function removeTeamMember(address _member) public returns(bool) {
        require((msg.sender == owner || msg.sender == delegator) && _member != address(0) && authedAccounts[_member] == true);
        delete authedAccounts[_member];
        for (uint i=0; i<authedAccountList.length; i++) {
            if(authedAccountList[i] == _member){
                delete authedAccountList[i];
                break;
            }
        }
        authedAccountSize = authedAccountSize - 1;
        emit Success(true);
        return true;
    }
    
    function changeOwner(address _newOwner) public returns(bool) {
        require((msg.sender == owner || msg.sender == delegator) && _newOwner != address(0));
        owner = _newOwner;
        emit Success(true);
        return true;
    }
    
    function delegateTo(address _delegator) public returns(bool) {
        require(msg.sender == owner);
        delegator = _delegator;
        emit Success(true);
        return true;
    }
    
    function hasTeamMember(address _member) public view returns (bool) {
        return authedAccounts[_member];
    }
    
    function teamMemberAtIndex(uint256 _index) public view returns (address) {
        require(_index < authedAccountList.length);
        return authedAccountList[_index];
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_member","type":"address"}],"name":"removeTeamMember","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_oldRepositoryAddress","type":"string"},{"name":"_newRepositoryAddress","type":"string"}],"name":"updateRepositoryAddress","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_member","type":"address"}],"name":"addTeamMember","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"teamMemberAtIndex","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"authedAccountList","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"authedAccounts","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_member","type":"address"}],"name":"hasTeamMember","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"repositoryName","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_repositoryName","type":"string"}],"name":"setRepositoryName","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_delegator","type":"address"}],"name":"delegateTo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"authedAccountSize","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"delegator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"repositoryAddress","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"bool"}],"name":"Success","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6080604052600060055534801561001557600080fd5b5060008054600160a060020a03191633179055604080516001815290517f3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bb9181900360200190a1610c978061006b6000396000f3fe608060405234801561001057600080fd5b5060043610610112576000357c01000000000000000000000000000000000000000000000000000000009004806386019a3f116100b4578063ac637c7a11610083578063ac637c7a14610497578063bd133327146104bd578063ce9b7930146104d7578063e376b804146104df57610112565b806386019a3f146103465780638da5cb5b146103c35780639c5a4583146103cb578063a6f9dae11461047157610112565b8063624cc0a5116100f0578063624cc0a5146102a45780636ba97526146102dd5780637548bbce146102fa57806376596a1a1461032057610112565b806314eba026146101175780632d3156f6146101515780633eb2b5ad1461027e575b600080fd5b61013d6004803603602081101561012d57600080fd5b5035600160a060020a03166104e7565b604080519115158252519081900360200190f35b61013d6004803603604081101561016757600080fd5b81019060208101813564010000000081111561018257600080fd5b82018360208201111561019457600080fd5b803590602001918460018302840111640100000000831117156101b657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561020957600080fd5b82018360208201111561021b57600080fd5b8035906020019184600183028401116401000000008311171561023d57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610628945050505050565b61013d6004803603602081101561029457600080fd5b5035600160a060020a0316610791565b6102c1600480360360208110156102ba57600080fd5b50356108a5565b60408051600160a060020a039092168252519081900360200190f35b6102c1600480360360208110156102f357600080fd5b50356108df565b61013d6004803603602081101561031057600080fd5b5035600160a060020a0316610907565b61013d6004803603602081101561033657600080fd5b5035600160a060020a031661091c565b61034e61093a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610388578181015183820152602001610370565b50505050905090810190601f1680156103b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c16109c5565b61013d600480360360208110156103e157600080fd5b8101906020810181356401000000008111156103fc57600080fd5b82018360208201111561040e57600080fd5b8035906020019184600183028401116401000000008311171561043057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109d4945050505050565b61013d6004803603602081101561048757600080fd5b5035600160a060020a0316610a41565b61013d600480360360208110156104ad57600080fd5b5035600160a060020a0316610ad7565b6104c5610b40565b60408051918252519081900360200190f35b6102c1610b46565b61034e610b55565b60008054600160a060020a031633148061050b5750600154600160a060020a031633145b801561051f5750600160a060020a03821615155b80156105485750600160a060020a03821660009081526003602052604090205460ff1615156001145b151561055357600080fd5b600160a060020a0382166000908152600360205260408120805460ff191690555b6004548110156105f35782600160a060020a031660048281548110151561059757fe5b600091825260209091200154600160a060020a031614156105eb5760048054829081106105c057fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff191690556105f3565b600101610574565b506005805460001901905560408051600181529051600080516020610c4c8339815191529181900360200190a1506001919050565b60008054600160a060020a031633148061064c5750600154600160a060020a031633145b8061066b57503360009081526003602052604090205460ff1615156001145b151561067657600080fd5b8151829060011061068657600080fd5b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181528793606093919290918301828280156107135780601f106106e857610100808354040283529160200191610713565b820191906000526020600020905b8154815290600101906020018083116106f657829003601f168201915b505050505090506002825110801561072c575060028151105b80610744575080805190602001208280519060200120145b151561074f57600080fd5b8451610762906006906020880190610bb0565b5060408051600181529051600080516020610c4c8339815191529181900360200190a150600195945050505050565b60008054600160a060020a03163314806107b55750600154600160a060020a031633145b80156107c95750600160a060020a03821615155b80156107f35750600160a060020a03821660009081526003602052604090205460ff161515600114155b15156107fe57600080fd5b600160a060020a0382166000818152600360209081526040808320805460ff1916600190811790915560048054808301825594527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b909301805473ffffffffffffffffffffffffffffffffffffffff1916909417909355600580548301905582519182529151600080516020610c4c833981519152929181900390910190a1506001919050565b60045460009082106108b657600080fd5b60048054839081106108c457fe5b600091825260209091200154600160a060020a031692915050565b60048054829081106108ed57fe5b600091825260209091200154600160a060020a0316905081565b60036020526000908152604090205460ff1681565b600160a060020a031660009081526003602052604090205460ff1690565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156109bd5780601f10610992576101008083540402835291602001916109bd565b820191906000526020600020905b8154815290600101906020018083116109a057829003601f168201915b505050505081565b600054600160a060020a031681565b60008054600160a060020a03163314806109f85750600154600160a060020a031633145b1515610a0357600080fd5b8151610a16906002906020850190610bb0565b5060408051600181529051600080516020610c4c8339815191529181900360200190a1506001919050565b60008054600160a060020a0316331480610a655750600154600160a060020a031633145b8015610a795750600160a060020a03821615155b1515610a8457600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841617905560408051600181529051600080516020610c4c833981519152916020908290030190a1506001919050565b60008054600160a060020a03163314610aef57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161781556040805191825251600080516020610c4c833981519152916020908290030190a1506001919050565b60055481565b600154600160a060020a031681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109bd5780601f10610992576101008083540402835291602001916109bd565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610bf157805160ff1916838001178555610c1e565b82800160010185558215610c1e579182015b82811115610c1e578251825591602001919060010190610c03565b50610c2a929150610c2e565b5090565b610c4891905b80821115610c2a5760008155600101610c34565b9056fe3b0a8ddef325df2bfdfa6b430ae4c8421841cd135bfa8fb5e432f200787520bba165627a7a72305820e4f97903320e57543696a500b59296f4919ba2640279cd732e94c48ac1ba0c190029

   Swarm Source:
bzzr://e4f97903320e57543696a500b59296f4919ba2640279cd732e94c48ac1ba0c19

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward