Contract 0x7ce662974fbb9b590c60dbf99f078120405ff0b9

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0x39b7b1e1e6403806e4cb8dbc2001ee0e7896ff1f0cf9899764a5e858f56aed5d405328727 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0x85faec4f891c49a358a804755e4c6cda31236a1ba8a2e7a6a3619adf3b986f6540530471 hr 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0xb24d6629000e55221f5ba484eefd92f6428985cbbfda3a8865d4e111f726aad240528072 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x837acbe6acab1be85c627ab4c94403545aa5d5d2b425c866a5805dadfda348d040525673 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0x5b64df814f294771279ceb84268f5f3b19e217693bbeae855920964f15ef557b40523274 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0xcf3b4054a005ac0d6b84597c0dd6256246f5190f4590a57e77eb529b34e9834140520875 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x2615b3353c455cea0d27adc6c00a9beb89b1ee742943490e1d4ece46d1fb661740518476 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x078dce59181c21792cb4b425ad9b377f1038946587fb753dff58fbc72fdab55240516077 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x2c15475b397c42f59685dad1b1112404d3d260db610d6ce0efc0bc675f1f424240513678 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0xf781e9ed60f49c9f60ef360ab7bb460b115c2578c8ce0aca3ab696a7f98d022a40511299 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x86e1709da033a4a0aa7c6be844d3c6e644da88a7760bed77f167007a73e666e7405088910 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x0516cb5b5f0c80588ef72f1935fa1c76b8adf51c4bb6b488a99dae5220c78539405064911 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0xe6413dcc58fb23d97fa9b0f9c7242f446a54c22942231bcae0f18a6a2f36f088405041012 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0xf2ba493c89abdf6bd2c365773cc99f1691b9f622ee2bfa5534aeff1f10c0868e405017013 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0x9833cefe50fbfbd6c95c06684fd16897f93bc80a1775e3521a17d0add39b1815404993014 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0xa32c087da03c60db548404b2bd5ef2c67503085f7735b0852cbd46b1b2a8e7fe404969115 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0xaa78f59f89685ee4388ccb045f654972e188ec1f28d7d8533703540322184130404945016 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x27833d85a8b73d24a210dbc0a5befefdbea4a1f69db39871c78976b4a3787fa6404921017 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0x8e8555a2f1329eb50cd2e4808a6847083e676ee151b20dae8fa2d0f972db588a404897018 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0xb84cd803c2b351ea28ada58f980b921928651645ac57a94e240565c286d0de58404873019 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x082578d62a537d3e5e47b93f6f566c202c0fff541ec80b568dee5ab5d1c13531404849020 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x29790e214fe1f879078bfd90ccd8a8096f5cf5a50425abd78bb22b763185b9cb404825121 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
0x02de484aa5fb50daf830645cc93ab410f0beb2176a6e6d98d76414fea0dca07b404801122 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x471a85df5f809b46a54a0b3337f3c456248225ffe4b56bac35618149cc727e39404777123 hrs 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000027977
0x605c6fe7262db362477efb28483043d066986a9fa9855855882c8d141a91d07f40475311 day 27 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether0.000028041
[ Download CSV Export 

Latest 12 internal transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x125c73adb8487fc3cb5213e699d06830f233a3e3387f9f7210ac69134b129bee3460893102 days 20 hrs ago0xfd2aac70bef2b387abe92e26b42fc0dfc485b8f00x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x1f4e450efdee6033e0e1fdc14ddb51f2cd62fbb4cd75631e2646976e6b57c4e53460840102 days 21 hrs ago0xfd2aac70bef2b387abe92e26b42fc0dfc485b8f00x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x38037862192dc6e7686da862c6e81dec1cb41e1ac4a97477ba0f2d48090be3433442416106 days 1 hr ago0x2f6ca62a89b13aee3aeba2304ac40f4d68cb0a5f0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x97464c5d46058e7eee7d72b1064d82061131b99758ef110fc4fd53ff1d4542d93426828108 days 18 hrs ago0x2f6ca62a89b13aee3aeba2304ac40f4d68cb0a5f0x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0xc58d0d66f71f2ac9fe885474e37dfd3df16da4c607402b0ccfeae5a645fb77f83425841108 days 22 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0xd13f9d6711ef2ff771cdca8292420f0ac6a42b4bf1dd460e2b93bc2c9241480e3420776109 days 20 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x6dac7e5604eefa68e1bdef57143c2d9fcdaa9420ac294bc7d256a2ee8487bf413420736109 days 20 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x4de574fdfaa9be4a285cc479aba779139153df4b98840dc9827188b8035819bc3420731109 days 20 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x6afb672b4f27232a422c8b51046e26cb78600fe3d2fb30837efd19a097fd473f3420689109 days 20 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x1a2d372a06dc20f1f254538b67efa5c4e7534cd7bd68f279234699c38f9cee913420389109 days 21 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0xc29d160998abe9b87aded380c384535d55c7ac8da4afd9bad87d902ccdad47b93420283109 days 22 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
0x9ee6c1c48540d216de6d6c8b87f44972a70afd21787209fd841e717c1b971e183420154109 days 22 hrs ago0x96d594a9f1eb5468e39a8e876c3ec18930eed9f70x7ce662974fbb9b590c60dbf99f078120405ff0b90 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Lighthouse
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.24;

// Searcher is an interface for contracts that want to be notified of incoming data
//
contract Searcher {

    // poke is called when new data arrives
    //
    function poke() public;

    // this is called to ensure that only valid Searchers can be added to the Lighthouse - returns an arbitrarily chosen number
    //
    function identify() external pure returns(uint) {
        return 0xda4b055; 
    }
}

// for operation of this contract see the readme file.
//
contract Lighthouse {
    
    address public auth = msg.sender; // ownable model. No real value in making it transferrable.

    Searcher seeker;                  // a single contract that can be notified of data changes

    uint value;                       // holds all the data bit fiddled into a single 32 byte word.

    uint maxAge;                      // if non zero, sets a limit to data validity

    // admin functions
    
    modifier onlyAuth {
        require(auth == msg.sender, "Unauthorised access");
        _;
    }

    function changeAuth(address newAuth) public onlyAuth {
        auth = newAuth;
    }

    function changeSearcher(Searcher newSeeker) public onlyAuth {
        seeker = newSeeker;
        require(seeker.identify() == 0xda4b055,"invalid searcher");
    }

    function setMaxAge(uint newMaxAge) public onlyAuth {
        maxAge = newMaxAge;
    }
    
    function notTooLongSinceUpdated() public view returns (bool) {
        uint since = now - ((value >> 128) & 
        0x000000000000000000000000000000000000000000000000ffffffffffffffff);
        return (since < maxAge) || (maxAge == 0);
    }
    
    function peekData() external view returns (uint128 v,bool b) {
        v = uint128(value);
        b = notTooLongSinceUpdated() && value != 0;
        return;
    }
    
    function peekUpdated()  external view returns (uint32 v,bool b) {
        uint v2 = value >> 128;
        v = uint32(v2);
        b = notTooLongSinceUpdated() && value != 0;
        return;
    }
    
    function peekLastNonce() external view returns (uint32 v,bool b) {
        uint v2 = value >> 192;
        v = uint32(v2);
        b = notTooLongSinceUpdated() && value != 0;
        return;
    }

    function peek() external view returns (bytes32 v ,bool ok) {
        v = bytes32(value & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff);
        ok = notTooLongSinceUpdated() && value != 0;
        return;
    }
    
    function read() external view returns (bytes32 x) {
        require(notTooLongSinceUpdated() && value != 0, "Invalid data stored");
        return bytes32(value & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff);
    }
    
    function write(uint  DataValue, uint nonce) external onlyAuth {
        require ((DataValue >> 128) == 0, "Value too large");
        require ((nonce >> 32) == 0, "Nonce too large");
        value = DataValue + (nonce << 192) + (now << 128) ;
        if (address(seeker) != address(0)) {
            seeker.poke();
        }
    }
}

Contract ABI
[{"constant":false,"inputs":[{"name":"newAuth","type":"address"}],"name":"changeAuth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"peekData","outputs":[{"name":"v","type":"uint128"},{"name":"b","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"read","outputs":[{"name":"x","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"peek","outputs":[{"name":"v","type":"bytes32"},{"name":"ok","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newMaxAge","type":"uint256"}],"name":"setMaxAge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"DataValue","type":"uint256"},{"name":"nonce","type":"uint256"}],"name":"write","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"peekUpdated","outputs":[{"name":"v","type":"uint32"},{"name":"b","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"peekLastNonce","outputs":[{"name":"v","type":"uint32"},{"name":"b","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newSeeker","type":"address"}],"name":"changeSearcher","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"auth","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"notTooLongSinceUpdated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]

Contract Creation Code
608060405260008054600160a060020a0319163317905534801561002257600080fd5b50610838806100326000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166322969eac81146100b3578063420b81f6146100d657806357de26a41461011757806359e02dd71461013e5780635ae28fc91461016c5780639c0e3f7a14610184578063bdf384a81461019f578063becfbf69146101d4578063d6e848ac146101e9578063de9375f21461020a578063e2f906321461023b575b600080fd5b3480156100bf57600080fd5b506100d4600160a060020a0360043516610264565b005b3480156100e257600080fd5b506100eb6102e3565b604080516fffffffffffffffffffffffffffffffff909316835290151560208301528051918290030190f35b34801561012357600080fd5b5061012c610303565b60408051918252519081900360200190f35b34801561014a57600080fd5b50610153610389565b6040805192835290151560208301528051918290030190f35b34801561017857600080fd5b506100d46004356103a8565b34801561019057600080fd5b506100d46004356024356103fd565b3480156101ab57600080fd5b506101b46105e3565b6040805163ffffffff909316835290151560208301528051918290030190f35b3480156101e057600080fd5b506101b4610619565b3480156101f557600080fd5b506100d4600160a060020a0360043516610643565b34801561021657600080fd5b5061021f6107a0565b60408051600160a060020a039092168252519081900360200190f35b34801561024757600080fd5b506102506107af565b604080519115158252519081900360200190f35b600054600160a060020a031633146102b4576040805160e560020a62461bcd02815260206004820152601360248201526000805160206107ed833981519152604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60025460006102f06107af565b80156102fd575060025415155b90509091565b600061030d6107af565b801561031a575060025415155b1515610370576040805160e560020a62461bcd02815260206004820152601360248201527f496e76616c696420646174612073746f72656400000000000000000000000000604482015290519081900360640190fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff1660006102f06107af565b600054600160a060020a031633146103f8576040805160e560020a62461bcd02815260206004820152601360248201526000805160206107ed833981519152604482015290519081900360640190fd5b600355565b600054600160a060020a0316331461044d576040805160e560020a62461bcd02815260206004820152601360248201526000805160206107ed833981519152604482015290519081900360640190fd5b7001000000000000000000000000000000008204156104b6576040805160e560020a62461bcd02815260206004820152600f60248201527f56616c756520746f6f206c617267650000000000000000000000000000000000604482015290519081900360640190fd5b640100000000810415610513576040805160e560020a62461bcd02815260206004820152600f60248201527f4e6f6e636520746f6f206c617267650000000000000000000000000000000000604482015290519081900360640190fd5b780100000000000000000000000000000000000000000000000081028201700100000000000000000000000000000000420201600255600154600160a060020a0316156105df57600160009054906101000a9004600160a060020a0316600160a060020a031663181783586040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b1580156105c657600080fd5b505af11580156105da573d6000803e3d6000fd5b505050505b5050565b60025470010000000000000000000000000000000090046000816106056107af565b8015610612575060025415155b9150509091565b600254780100000000000000000000000000000000000000000000000090046000816106056107af565b600054600160a060020a03163314610693576040805160e560020a62461bcd02815260206004820152601360248201526000805160206107ed833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055604080517feeb728660000000000000000000000000000000000000000000000000000000081529051929091169163eeb72866916004808201926020929091908290030181600087803b15801561071757600080fd5b505af115801561072b573d6000803e3d6000fd5b505050506040513d602081101561074157600080fd5b5051630da4b0551461079d576040805160e560020a62461bcd02815260206004820152601060248201527f696e76616c696420736561726368657200000000000000000000000000000000604482015290519081900360640190fd5b50565b600054600160a060020a031681565b600254600354600091700100000000000000000000000000000000900467ffffffffffffffff164203908110806107e65750600354155b915050905600556e617574686f72697365642061636365737300000000000000000000000000a165627a7a723058205bea76f02b3b7737af8de9580cc158bf164f4422efafc17d77a5846cea77b8260029


   Swarm Source:
bzzr://5bea76f02b3b7737af8de9580cc158bf164f4422efafc17d77a5846cea77b826
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward