Contract 0xd041478644048d9281f88558e6088e9da97df624

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1ddc932331be0acf2c7d9a4a2b3054e9c791867c2ec939d6cc0383244a04cc1aSet Value587706032023-02-07 10:55:4621 hrs 5 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000605
0x7d89803854a8c9b65a4446aa42c71db9c152bf35c2745ecd87c820668c4a4befSet Value584820492023-02-06 10:55:381 day 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000453
0x86239723c2d0ccdf8fd708ae0f90a2ff90b4cc142051f33456b934e08d4388c9Set Value584819772023-02-06 10:55:171 day 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000453
0x86b42f8811dd599151e01b41b88d9a1f0f1c7e527dd1b5c8b74bb211aaac9a58Set Value584819032023-02-06 10:54:561 day 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000453
0xdeb899ccb03df6722c5e918a52443e9301f86ab06894b9f6107a72942fa7281fSet Value581968762023-02-05 10:55:362 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004997
0x0bbd535832a53f50f1cd41ac0ab0d600d28f2d2f4153bb8867aba0a07123b69aSet Value579284722023-02-04 10:55:373 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000504
0x6649a5cb54fd38e1327ba52945051a8f871874cacd46233c1e33c201f7e60675Set Value579284002023-02-04 10:55:163 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.0000504
0x468b99b2a9ad8babb660925f6d9f37be1327bb322bb8148d7b059dc00ecc3afbSet Value576593732023-02-03 10:55:384 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00005132
0xf85d29df767ba8defd1737d230d14e3f028ff2ce7284be728a50cf42f7098da9Set Value576593042023-02-03 10:55:174 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00005133
0x481cc27003822f1a1bf80528b58ff5d6a04068aeaa44cddd78f63b2f02692a01Set Value576592352023-02-03 10:54:564 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00005133
0x43c08c9858ddf6bd1a197b20986e5df1c9294e7991ecdc4d67dade7612e8c9c7Set Value574043892023-02-02 10:55:385 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004908
0x8329a636b5dfa061adfe2ff81176ca00517cc0893246dadfdd029f125e2c69d0Set Value574043172023-02-02 10:55:175 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004908
0xc4f13483e1090e3d1b80e1e78bb9c59afdf45b279fd2b19e71d4d88fba1fdacaSet Value574042402023-02-02 10:54:565 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004908
0x2630c115318c4335778b78e9031c3f5e3e9d39c8fc7ecebe61175e0c391d5a3dSet Value571278532023-02-01 10:55:366 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004403
0xa3f2980b3389e3e1f68edc216d88977dae19548380e42c65d2b3c220c023a506Set Value568616512023-01-31 10:55:377 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004527
0x9cfe6ba7fc7d373757b8e1cb6b8ed89ffa400af7fd40b95b8bdf95ffbdd0b313Set Value568615292023-01-31 10:54:567 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004527
0xf96295889b40f7cb2a12d0ec456b4c76eb631ad9639e5151257835e894e4c116Set Value566068672023-01-30 10:55:378 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004997
0x0d023d2e5827d0b8eee1cd8db7765ae354b1a798ff7d44f851792d106d4c8299Set Value566067932023-01-30 10:55:168 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004997
0xfdad80fa75b3f222fbdc577500f8f3b3ca64a4e8220b38187f089607ab235a49Set Value563396262023-01-29 10:55:399 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004929
0xb14de96caf66ea89bcef1db2c8cbf2da9ed54ffa76c491189db4a0c9a8f4ea5fSet Value563395612023-01-29 10:55:189 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004929
0x8236ef6cd1dbb51e5a72222ce1ab4ce104359ae7a40b94a13c3e26d52c8fb96cSet Value563394892023-01-29 10:54:569 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004929
0x1554d2af8a9557a6297c77bc03ce49bf39e48ba1ac764a30157c5fd99bc49ad6Set Value561094812023-01-28 10:55:3610 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004501
0xa2feb85e1feb7ef316e89108d355470708ccb2021765463a8b5bb196fccd865fSet Value558394182023-01-27 10:55:1611 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00004211
0x4c8acaa4a4720a4dec8355ecb7a114e9ef8448e9b4a15abbc43d2ae75537a79bSet Value555849172023-01-26 10:55:3712 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00003846
0xa0e711e468d20fa26abc51c5c2ad079380ca26801b95bae87bc77b40b119de97Set Value555848512023-01-26 10:55:1712 days 21 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00003846
[ 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 Arbiscan on 2022-01-05
*/

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

26:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54:41:0;;-1:-1:-1;54:41:0;;-1:-1:-1;;;;;54:41:0:i;:::-;;;;;;;;;;;;;;;;912:242;;;;;;;;;;;;;;;;-1:-1:-1;912:242:0;-1:-1:-1;;;;;912:242:0;;:::i;:::-;;337:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;337:282:0;;-1:-1:-1;;;;;;;337:282:0;;;;;-1:-1:-1;337:282:0;;;;;;;;;-1:-1:-1;337:282:0;;-1:-1:-1;337:282:0:i;631:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;631:269:0;;-1:-1:-1;631:269:0;;-1:-1:-1;;;;;631:269:0:i;:::-;;;;;-1:-1:-1;;;;;631:269:0;;;;;;-1:-1:-1;;;;;631:269:0;;;;;;;;;;;;;;;;54:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;912:242::-;1021:13;;-1:-1:-1;;;;;1021:13:0;1007:10;:27;999:36;;;;;;1046:13;:39;;-1:-1:-1;;;;;1046:39:0;;-1:-1:-1;;;;;;1046:39:0;;;;;;;;1101:45;;;;;;;;;;;;;;;;912:242;:::o;337:282::-;448:13;;-1:-1:-1;;;;;448:13:0;434:10;:27;426:36;;;;;;473:14;520:9;-1:-1:-1;;;;;490:39:0;513:3;502:5;-1:-1:-1;;;;;492:16:0;491:25;;490:39;473:56;;554:6;540;547:3;540:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;540:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;540:11:0;;;;;;;;;;;;;;;;-1:-1:-1;540:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;576:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;576:35:0;;;;;;;;;;;;;;;;;;;;540:11;;576:35;;;;;;;;;;-1:-1:-1;576:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;337:282;;;;:::o;631:269::-;691:7;700;720:14;737:6;744:3;737:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;737:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;737:11:0;;;;;;;;;;;;;;;;-1:-1:-1;737:11:0;;;;;;;;;;;852:3;842:13;;;;-1:-1:-1;;;;;789:15:0;;;;-1:-1:-1;842:13:0;-1:-1:-1;;;;;631:269:0:o

Metadata Hash

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.