Contract 0xb31d251fed53cf829a6085a3f0980bd75f4401db

Contract Overview

Balance:
0 Ether
TxHash Block Age From To Value [TxFee]
0x760fd969750fb90c81d1d67e78feadeadc64853361993f78460205a6a7338284377782149 days 2 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xdca237bc6c063bb0af2fedc356a849ede690711ee5fd660efd6bcd8af57b7057377778249 days 2 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xf6ead75c5e826c376e4bf3b8fb30d20219c450217837bda8801f21c62fa886c0377774149 days 2 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xbc7582314f8abccedbbf66c9313786f0f2780a8dc982ae044cdc97fe43d62190377766149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x23bf14650fc783560a2e635bd363b78f8ffc48352c39a0a7a499c14bba4d991a377762149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xc4bc0338534bbdc238656cfd20218c0951e15149e03b7641ae3b6d69d5e166c9377758149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x6a59151c64edab888267bcec291673e22936531a6a9645f545a7e6a49f6f5f79377754149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x8119ec465ef8f097b770621a427b4fe22d0cba800e649fa73373d540b9081275377750149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x218d3cbbbb72968015dbfa96affeff1ad91f5446f8532b9dfb8ef4912557b39b377746149 days 3 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x7b0f8a1ee83709d9e37edf84a4940c65549cb11d362e9157caf27f869e075249377742149 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x1b67bfa580e16928f711966f5dfe88ec84d282b64e7d392a5b45a5b81a819070377738149 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x7e3fa585df01e53f4c84536ad005120beab2d0dd0d2badda10fffcb31ddec481377734149 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xc8535c2e01498f1845f91722e80b9120ca7e41abfbeab50355ebccdbc25939ba377730149 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x43efe8152eb51482d4089f9803d8e59ba05cab3b53a369fbae1b8829fab65759377726149 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x9937f1f3fd21a7c82f6e07fbfe03a16a03a7809bcc9a173d4b6b320ea4c40735377722249 days 4 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x677018d5de0545c22f85bf2f2b5ba012a1065c7f15914efe53e15d8c6ab45d26377714249 days 5 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x892022ab7e35e12d2ab0999a8e18e51ffe2fb41154f459a68ac89c817d4004d0377710149 days 5 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x2b166a5a9554e4e4ae5c568b5af8202d4ca624404c0a9c79d05f0c7e64b243fe377706249 days 5 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xb1828fde45a1a62af0fce4156c1196ceef770b6324da15c9ad9146b771aba862377702149 days 5 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x179d13fdc9559421be93640556fa2a2feee1008f68f22126f951f9a0f43e27b4377694149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x3ccc1726417ba1a435df445149ae7a53735ab44cce48e1dc583bb8f58d589d80377690149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xad878a8cae145ef00fd13cb2b4a43723c01607600768681f88f2fbfed4d30e92377686149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x2ec27c69f1ad6c9246b1c44866aa702e7397b596f66af9c21c3ae60e4320d02e377682149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0xc902a5c256b39f52436a00df54a257af923b641e7cc6372aaa3534f09f287cec377678149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
0x348ab71c65d324c296f8ab6015ede27de8528449db8b06dac68faf8e315d66d8377674149 days 6 hrs ago0x195a07037e97cd576ce320bc7fbfbb41d8898b01 IN  0xb31d251fed53cf829a6085a3f0980bd75f4401db0 Ether0.000027733
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: yetAnotherThing
Compiler Version: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.24;

contract Medianizer {
    function poke() public;
}

contract yetAnotherThing {
    
    address public auth = msg.sender;
    Medianizer med;
    
    modifier onlyAuth {
        require(auth == msg.sender,"unauthorised");
        _;
    }

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

    function changeMedianizer(Medianizer newMed) public onlyAuth {
        med = newMed;
    }

    uint value;
    uint maxAge;
    
    function setMaxAge(uint newMax) public onlyAuth {
        maxAge = newMax;
    }
    
    function notTooLongSinceUpdated() public view returns (bool) {
        uint since = now - ((value >> 128) & 
        0x000000000000000000000000000000000000000000000000ffffffffffffffff);
        return (since < maxAge) || (maxAge == 0);
    }
    
    function peekGoldPrice() 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 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,"value too old");
        return bytes32(value & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff);
    }
    
    function write(uint  goldPrice) external onlyAuth {
        require ((goldPrice >> 128) == 0, "gold price empty");
        value = goldPrice + (now << 128);
        if (address(med) != address(0)) {
            med.poke();
        }
    }
}

Contract ABI
[{"constant":false,"inputs":[{"name":"newMed","type":"address"}],"name":"changeMedianizer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newAuth","type":"address"}],"name":"changeAuth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"goldPrice","type":"uint256"}],"name":"write","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"newMax","type":"uint256"}],"name":"setMaxAge","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":"peekGoldPrice","outputs":[{"name":"v","type":"uint128"},{"name":"b","type":"bool"}],"payable":false,"stateMutability":"view","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
608060405260008054600160a060020a0319163317905534801561002257600080fd5b50610692806100326000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166309a6dfb981146100a857806322969eac146100cb5780632f048afa146100ec57806357de26a41461010457806359e02dd71461012b5780635ae28fc914610159578063bdf384a814610171578063c9043d98146101a6578063de9375f2146101e7578063e2f9063214610218575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a0360043516610241565b005b3480156100d757600080fd5b506100c9600160a060020a03600435166102c0565b3480156100f857600080fd5b506100c960043561033f565b34801561011057600080fd5b506101196104aa565b60408051918252519081900360200190f35b34801561013757600080fd5b50610140610530565b6040805192835290151560208301528051918290030190f35b34801561016557600080fd5b506100c9600435610562565b34801561017d57600080fd5b506101866105b7565b6040805163ffffffff909316835290151560208301528051918290030190f35b3480156101b257600080fd5b506101bb6105ed565b604080516fffffffffffffffffffffffffffffffff909316835290151560208301528051918290030190f35b3480156101f357600080fd5b506101fc6105fa565b60408051600160a060020a039092168252519081900360200190f35b34801561022457600080fd5b5061022d610609565b604080519115158252519081900360200190f35b600054600160a060020a03163314610291576040805160e560020a62461bcd02815260206004820152600c6024820152600080516020610647833981519152604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a03163314610310576040805160e560020a62461bcd02815260206004820152600c6024820152600080516020610647833981519152604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a0316331461038f576040805160e560020a62461bcd02815260206004820152600c6024820152600080516020610647833981519152604482015290519081900360640190fd5b7001000000000000000000000000000000008104156103f8576040805160e560020a62461bcd02815260206004820152601060248201527f676f6c6420707269636520656d70747900000000000000000000000000000000604482015290519081900360640190fd5b70010000000000000000000000000000000042028101600255600154600160a060020a0316156104a757600160009054906101000a9004600160a060020a0316600160a060020a031663181783586040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15801561048e57600080fd5b505af11580156104a2573d6000803e3d6000fd5b505050505b50565b60006104b4610609565b80156104c1575060025415155b1515610517576040805160e560020a62461bcd02815260206004820152600d60248201527f76616c756520746f6f206f6c6400000000000000000000000000000000000000604482015290519081900360640190fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff16600061054f610609565b801561055c575060025415155b90509091565b600054600160a060020a031633146105b2576040805160e560020a62461bcd02815260206004820152600c6024820152600080516020610647833981519152604482015290519081900360640190fd5b600355565b60025470010000000000000000000000000000000090046000816105d9610609565b80156105e6575060025415155b9150509091565b600254600061054f610609565b600054600160a060020a031681565b600254600354600091700100000000000000000000000000000000900467ffffffffffffffff164203908110806106405750600354155b915050905600756e617574686f72697365640000000000000000000000000000000000000000a165627a7a72305820116668b024421606ae42380fe6ffa393911c24ab6c8276abd2dfd110d79e5f360029


   Swarm Source:
bzzr://116668b024421606ae42380fe6ffa393911c24ab6c8276abd2dfd110d79e5f36
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward