Contract 0xe8e58c7ff9a7b57e70d04445371a1613819e0bb8

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdc3cc1c60b437a091ebb90b909fb2aa9afb3c8f301ff3b860db85b292957939aSet Value251852292022-11-27 15:10:303 hrs 18 mins ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.00005630625
0xc92c35167554991b5e446566f60ce2b4eb38bb3818eea11e7657dd866cdf5f09Set Value251694692022-11-26 15:35:351 day 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0x92f377a7b1095c4b026740e3e5b5e95705a122325ca70a12281b562b3566e769Set Value251691892022-11-26 15:10:301 day 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000069976335
0x631d32b797dd16a93eb7a604e680a6b8b4f3f2996bc5e58de4f71a4ddb59d612Set Value251691332022-11-26 15:05:301 day 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000070002172
0x784835d38f3d9387ebf9b1a8e295c43c94a88394b7120b77d5936a05aacfdfb1Set Value251531432022-11-25 15:10:302 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000075075
0x7f1691a69ab3af4049281c4a2cc64205c065b0b099f2530eeae671a01ea8a95fSet Value251373602022-11-24 15:35:353 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0001072896
0xeab37847dc14225264b8c2b591292e90a48db48392102d38f52431511d245d37Set Value251370792022-11-24 15:10:303 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000715
0xfea35a07417ad17d52eb94685f573b94f382381f85342957b75d0a972bb19c6eSet Value251370232022-11-24 15:05:303 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.00007867904
0x85402297c7a3b1259f9dd14df0e02caa9dda3572aac3872c272157d95531ec8cSet Value251212482022-11-23 15:35:354 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0xa54dc3e914dc7df44579907b383a4f978139a3201c65ec3ad85151093e194f37Set Value251209682022-11-23 15:10:354 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000053625
0x6d3d99d3531df207aca7fdf89f0355a37d759f97e6e892e413089251084b4ac4Set Value251209112022-11-23 15:05:304 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0x8135c718e8a83d82b2d82e94588a2d34a3fce1be8ff8dc83887d54f712aeb13cSet Value251208552022-11-23 15:00:304 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536646
0x6c816e1029fba16a10df965fdccec84c13e710c2055503e37c8856b9edc64fb3Set Value251051482022-11-22 15:35:305 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0x7d71c50e04aff57a0f71c71bab478d2b4d1d6103265f4c0afcc51f0ab2222f3aSet Value251048682022-11-22 15:10:305 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000053625
0x0e854b7fcd59057d318ee7a53badc3d6fafd75c68b0261537658ad47ba17fdd1Set Value250890722022-11-21 15:35:356 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0xdf987e2044e33c1498d1d9139a3585b9ada872faaa8604d63c1f70c410981ec2Set Value250888032022-11-21 15:10:356 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000053625
0xda9adff6611fc779e2b04fbbad8ef1d283740d4a25e0c809282662ff4bc31346Set Value250887462022-11-21 15:05:306 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0xb67b050c3f6ea0be50de16c0dc2aaa4ab6cb6b863e6c5c88f43d76dbc1d24788Set Value250886922022-11-21 15:00:306 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.00006439752
0x90cf08799c7b323a1288c9acbb7aa541f6a810707fe11e789cf919160d40e3b8Set Value250736172022-11-20 15:35:357 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000055264873
0xac6072c92cbe1f129dbff162df4ab4efeb0deed7e4ad95c447418a689cd546ffSet Value250733562022-11-20 15:10:307 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000053625
0xf40b694f6ecaa9b7746b4f099ae4c4f64485d753df2403227c7fd637fc9fb490Set Value250733002022-11-20 15:05:307 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000055633305
0x21584b92b0db1d26fe8bddbd2258854b2974d5046672bd1d63ea07c2f6d108d0Set Value250581162022-11-19 15:35:308 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000536448
0xe1b068180b5af5fd7997314c1d5f2a900f3bd66a3e56419a5929b7c3b8850f17Set Value250578452022-11-19 15:10:308 days 3 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.000053625
0xc7a78638ce31ed7121ac6c451473d1ac9f9caa680f4e3c42e081e1ac7694ab28Set Value250424952022-11-18 15:35:359 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000715264
0x8978fcf14f3894f70764d81ba80539dfbfed94ac172a248e18c7dc0d3c38e0e4Set Value250424432022-11-18 15:30:359 days 2 hrs ago0x98c7d689e3bdb3e9931d81912095f26a8a66877f IN  0xe8e58c7ff9a7b57e70d04445371a1613819e0bb80 xDAI0.0000715264
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DIAOracleV2

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at gnosisscan.io on 2022-09-26
*/

// compiled using solidity 0.7.4

pragma solidity 0.7.4;

contract DIAOracleV2 {
    mapping (string => uint256) public values;
    address oracleUpdater;
    
    event OracleUpdate(string key, uint128 value, uint128 timestamp);
    event UpdaterAddressChange(address newUpdater);
    
    constructor() {
        oracleUpdater = msg.sender;
    }
    
    function setValue(string memory key, uint128 value, uint128 timestamp) public {
        require(msg.sender == oracleUpdater);
        uint256 cValue = (((uint256)(value)) << 128) + timestamp;
        values[key] = cValue;
        emit OracleUpdate(key, value, timestamp);
    }
    
    function getValue(string memory key) external view returns (uint128, uint128) {
        uint256 cValue = values[key];
        uint128 timestamp = (uint128)(cValue % 2**128);
        uint128 value = (uint128)(cValue >> 128);
        return (value, timestamp);
    }
    
    function updateOracleUpdaterAddress(address newOracleUpdaterAddress) public {
        require(msg.sender == oracleUpdater);
        oracleUpdater = newOracleUpdaterAddress;
        emit UpdaterAddressChange(newOracleUpdaterAddress);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"uint128","name":"value","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"OracleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newUpdater","type":"address"}],"name":"UpdaterAddressChange","type":"event"},{"inputs":[{"internalType":"string","name":"key","type":"string"}],"name":"getValue","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"key","type":"string"},{"internalType":"uint128","name":"value","type":"uint128"},{"internalType":"uint128","name":"timestamp","type":"uint128"}],"name":"setValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOracleUpdaterAddress","type":"address"}],"name":"updateOracleUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"values","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

Deployed ByteCode Sourcemap

62:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90:41:0;;-1:-1:-1;90:41:0;;-1:-1:-1;;;;;90:41:0:i;:::-;;;;;;;;;;;;;;;;948:242;;;;;;;;;;;;;;;;-1:-1:-1;948:242:0;-1:-1:-1;;;;;948:242:0;;:::i;:::-;;373:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;;;;;;;373:282:0;;;;;-1:-1:-1;373:282:0;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;373:282:0:i;667:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;667:269:0;;-1:-1:-1;667:269:0;;-1:-1:-1;;;;;667:269:0:i;:::-;;;;;-1:-1:-1;;;;;667:269:0;;;;;;-1:-1:-1;;;;;667:269:0;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;948:242::-;1057:13;;-1:-1:-1;;;;;1057:13:0;1043:10;:27;1035:36;;;;;;1082:13;:39;;-1:-1:-1;;;;;1082:39:0;;-1:-1:-1;;;;;;1082:39:0;;;;;;;;1137:45;;;;;;;;;;;;;;;;948:242;:::o;373:282::-;484:13;;-1:-1:-1;;;;;484:13:0;470:10;:27;462:36;;;;;;509:14;556:9;-1:-1:-1;;;;;526:39:0;549:3;538:5;-1:-1:-1;;;;;528:16:0;527:25;;526:39;509:56;;590:6;576;583:3;576:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;-1:-1:-1;576:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;612:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;612:35:0;;;;;;;;;;;;;;;;;;;;576:11;;612:35;;;;;;;;;;-1:-1:-1;612:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;373:282;;;;:::o;667:269::-;727:7;736;756:14;773:6;780:3;773:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;-1:-1:-1;773:11:0;;;;;;;;;;;888:3;878:13;;;;-1:-1:-1;;;;;825:15:0;;;;-1:-1:-1;878:13:0;-1:-1:-1;;;;;667:269:0:o

Swarm Source

ipfs://1dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a4
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.