Contract 0x7a924305e8c00757db6131d665e5d559ead9f7cd 1

 
Txn Hash Method
Index
From
To
Value
0x8bb672d284d5de281f8927bfc2dfb9a2a1cf08f475e8da9b2438c09070908c45Set Value265768262022-09-30 21:26:0328 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000549573450.001
0x557ba37faac470e0c4236a1f20245cee0c8935125d577a6503c1ad53ae004676Set Value265768112022-09-30 21:25:4728 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000552395050.001
0xb86bf9194fd4cc860e900d346296e33b7678b8b38707814ef26ffbf8b9bb687bSet Value265704942022-09-30 20:26:241 hr 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000885608430.001
0xa7dc18081144a21ca458dece675e7320a031bb45a16a0af9236e3e585abdaa1cSet Value265618622022-09-30 19:26:312 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000589288780.001
0x4442c2f9655a381af563195c89d390e99de901ac6ccb2b8b1b06c28a9f6a7081Set Value265381132022-09-30 16:26:365 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0001121129450.001
0xe0bf59d837c1c4ebadcf38ac87eeec36ada1bc4a66f04f636318b3817242d681Set Value265380742022-09-30 16:26:065 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0001121129570.001
0x8bb40da68fd495d53e1992a49ec975f654f7d89dc911c717e5caa99c6ac55349Set Value265380332022-09-30 16:25:515 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0001126887250.001
0x2905ed4a56f017f18f481f7bbca2882b02e638ca29bf3e2f877f033fd1889bfbSet Value265273962022-09-30 15:26:346 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000972482150.001
0xb82054f341777f8df9eced620a1b51d29818ffe42cbc031b24cede367598d4e4Set Value265273362022-09-30 15:26:036 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000972482270.001
0x6d1ebfbce33a8e8314c6547f51e9f5026c311c7a6343f4608fc07f235f17f985Set Value265272532022-09-30 15:25:486 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000977476350.001
0x9cf53dfed860d0c8127d0e129749679f74d6caa98ea85252939d1cf1c4333348Set Value265105762022-09-30 14:26:117 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000631399990.001
0x277f64de540225aeda8a694a58dd79284bab678e53f6501db3e5cb20d37b8178Set Value265104222022-09-30 14:25:567 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000634641930.001
0x39c7b1c684a906526216876e0d2f9acc0c67198b64cf29f1956affa363714d11Set Value264950292022-09-30 13:26:278 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000844398340.001
0x4a5b247839b9daf11000c811cffd18a5c64b3e6f85f003d60ae5e45a682340ceSet Value264949542022-09-30 13:26:128 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000844398460.001
0xb56f1de57fa775048e8f77f0e8b70109aade714a305437d679ab325276fae217Set Value264948942022-09-30 13:25:578 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000944556350.001
0x003efde1118ee2cf7a521bd3c1b6fc456619eaa02d03231d161e174221c8f9ceSet Value264147742022-09-30 7:26:1714 hrs 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000411849030.00100155
0x20c47ec3ace497998af822e5a630ace95289e2d9ceda2aa7d174aedf6b955382Set Value263376532022-09-29 21:25:561 day 28 mins ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000500279950.00100155
0xba2678adbb7be59c3aa78096401f8b5c4ac98103d05a81430fa6ad05a85a1511Set Value263327682022-09-29 20:26:341 day 1 hr ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000799265520.00100155
0x3e74a5aa5d117bdf47b23a6c64fa55b4b2d625c9e08f0c126743a55262ce8c0aSet Value263269772022-09-29 19:26:271 day 2 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000657332320.00100155
0x647a7d13621d5b98cfba8915c8b82d2c92fc82a274e9f2eba7616abfb4431430Set Value263195782022-09-29 18:26:371 day 3 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000712273620.00100155
0xe4f9e2efd7e2ad31cbecef539acd071bf1f7e76aeb6f32533c9a08c5d2942dbbSet Value262947202022-09-29 15:26:331 day 6 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000790600370.00100155
0xcdfb44138931805203204172949c6d5b6163ef128e9d02de488c9519cc8edb69Set Value262946722022-09-29 15:26:181 day 6 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000790600490.00100155
0x4be549e7f73975e7ef4e583b73a1a15bb55f5b4d3b3367ff800cdf151d1e72c1Set Value262946082022-09-29 15:25:481 day 6 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000794660240.00100155
0xb868467278462bc5e0124d93bcebe9b7e06b463882478f971e4d40d11a13f23bSet Value262814892022-09-29 14:26:321 day 7 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000862163810.00100155
0x14bebd1232ae11f37d282ad0ab30cf6b6977aa44a80c0b92ee525eb02a79da15Set Value262814342022-09-29 14:26:171 day 7 hrs ago0x49b2f0e072eebd335816dc10e7589668f801da63 IN  0x7a924305e8c00757db6131d665e5d559ead9f7cd0 Ether0.0000862163930.00100155
[ 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 Optimistic.Etherscan.io on 2022-09-19
*/

// 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 Security Audit

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 Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.