Contract 0x24051b4f96726eaadce6c577d8c20ab7157fc4eb

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0xbf00aed8bc736f7434a47d1b9c3f84073342a0c5cc81fb1d62b28836d04bf47d380074743 days 21 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x32a3c8ac349b5c928cca997471427113ec11b84af9d0b9eb56d63b2fc9102569380070943 days 21 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xbafb23b6f8782e94244d81e29b4fab380f93324931f17b9f4525e9ed0aa0ec4d379543544 days 19 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x9b8b2002ef27f0f4dddff2448d76142eaffb64c49c4f6c0e0f456929402cbd0f379534344 days 19 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x31a84bb973e19e1fedf43f5a81accf1e481c882d089f3a5b724fc1825acf6dc7379530244 days 19 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xea813d9554c884e84c7e51326c3fcf7bcd213e12b7038b6e47736665e3165d36379526144 days 19 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xe57e5591ecdda0a0739dc298fcd86f199b0872fb1a152071ef7fe862069579ba379522144 days 20 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x439cd2f6fc2022acee7039fa07dbf57655513a09e758749002612a5346d4d03e379511944 days 20 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x15147c0c0d5a798e95e4758c49280df9a8ab94f453637bfa5c4c4f01f7653af5379507344 days 20 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x42eb8dcb86e1abcba64e17afdd58062304e7cba49e94fae992695c4e0359cff8379483344 days 21 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x976513bea89e763bfe8af7988d23649efa3fbd8592dced34e8c5b101ff7ac09c379459344 days 22 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xdac5a580b4ecd55573ae7ae8e197110ae43ce3c4864f9be54cf63533c3eb912d379435344 days 23 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xbbe55d33e43aef247f815353214efa974b917343686229d2ddda7b82d9843e2a379411345 days 39 mins ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x35332dd474cb1de43fb5f0786ba16dab24a09150a2bdf343d4844718e53f0bd1379387345 days 1 hr ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x5f06f7585c1bc00c2548314e2a8e43a7f6730fa1daadd40200e2b9c20f675862379363345 days 2 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x64e1ae74f62006218f65935a7c8020ed3a81ebac36e60597ac8c56447a7d4b5e379339345 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x2a433982b5a23ba5d2d3cd876b07cd488472b987dd91a787856c9bb0146cb675379315345 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x63bd3788f32c69395eb294c6e8f1203f4ef07a1530d957268da94cc2e7a6422e379291345 days 5 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xe0d50854e184f62e8f776669d97839ee9587c08d6fd4ce5d72447c548d656c13379267345 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x3a70502f50b3ffe5dc941c816daa8fc2523959ffbf98f56ffe21ef96a4d40fdb379243345 days 7 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xc79f972be903217dd48ef3f751ce26eca676203189dcb59e1ae9e56f6b49e6eb379219345 days 8 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x5f803a313a40db047f53a053fc7a4cd6445a48476978b5e927e31c55faedaf15379195345 days 9 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x7728178791e37b740452f72a5b4d6964d0000e84672e1b47e819b12b4fb6e60b379171345 days 10 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0xd96a3fb9fb17a3bd011b5e308a449246232ff3df5dd64a15bc1d989c480533f8379147345 days 11 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
0x0682fb6d987a0512321908e98dfdd32907f8ab4eb386fe1d564833bf92e13bca379123345 days 12 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether0.000027593
[ Download CSV Export 

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

Parent TxHash Block Age From To Value
0x0776bc40e9d4008e5d487812d9aa40cc4cc3ff764084dd12250a7fe1427d7db1390911125 days 1 hr ago0x7fbd998cdca9504f9e75816d966d87a81547d8940x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether
0x0e5d8e79e9d5421908734e96a574e034bacfe9857dd4583f3f86c82713a1a394377703347 days 23 hrs ago0x7fbd998cdca9504f9e75816d966d87a81547d8940x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 Ether
0x74370ea36659f57f6ef32f4b738198d4a65f33033cc1fb94c54e0d7856be73cf377007549 days 4 hrs ago0x7fbd998cdca9504f9e75816d966d87a81547d8940x24051b4f96726eaadce6c577d8c20ab7157fc4eb0 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 (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0x7ce662974fbb9b590c60dbf99f078120405ff0b9
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