Contract 0xd041478644048d9281f88558e6088e9da97df624

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x55fd58ef2472650f56450ac4bd9489704594cc9b2ed41e43a7792aa0c4e46e88Set Value49440892022-01-23 22:54:3312 hrs 45 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000666240186 ETH
0x52c0c9a21c64ccd8993dfb719cd258b044db77b8fde4c841ac86f145f2945476Set Value49440832022-01-23 22:53:3012 hrs 47 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000666240186 ETH
0xeb6c047902558b16db193b733bf8378741746fb0bb8ed7ce4bf0ab48915631f3Set Value49440802022-01-23 22:53:3012 hrs 47 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000662714404 ETH
0x5e70a01914bcf34e30aabd29c30ef7bd5ad5ce30e9b70e7fac1c8055c756d433Set Value49440772022-01-23 22:53:3012 hrs 47 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000662722052 ETH
0x20b261e8810e783df2ed6442c754565263d91b4f24ac949964df0369eb449aceSet Value49440672022-01-23 22:53:3012 hrs 47 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000666240186 ETH
0x8462b87f22984588d5fb3ada90c651e70b245f29970b5f2ef2d3607256c37db3Set Value49440612022-01-23 22:53:0612 hrs 47 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000662722052 ETH
0x48268ac8693a5d5e1d32d0a19e26bc9b596391218831daf22f34354e0eb8e7adSet Value49176052022-01-22 22:54:251 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000784011323 ETH
0xf3d0bf2a833c3fca0629a4795d6f0918aafc4c9d4f69306a29cfb6ffeabd8f9bSet Value49175962022-01-22 22:54:251 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000786086819 ETH
0x82b9f7dcac283e0e777b5a4be42fb271a8027d1a3e0d1fc39cae2402e4004fffSet Value49175892022-01-22 22:53:471 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000784002299 ETH
0x1eca4167219974888542d3e76a626415956381abefee49272685485e5aa0e572Set Value49175842022-01-22 22:53:471 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000781935826 ETH
0x2f18cbdb17bbf48dd149314e3c2452d650c72c97cb56a970fc5a34b8d1218cabSet Value49175792022-01-22 22:52:281 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000784011323 ETH
0xbc9351603a17aba343cac9cc1c719700d72449fa75a3f3c17a165ab75841e971Set Value49175712022-01-22 22:52:281 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000781935826 ETH
0x135669813b4eec3a6d0ae7722eba2e688257932d0b6d66400b32e53811b1bd4eSet Value49175632022-01-22 22:51:541 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000786086819 ETH
0x7b0607ad8760ae66120a806a143b2669343e55496879a030cca9e3baf2442d05Set Value49175582022-01-22 22:51:541 day 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000788153292 ETH
0xeb5793d1e27d3d28f947bb0e3a97df1e09e8c62c94c07901087152aeebd41649Set Value48372662022-01-20 22:53:383 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000913295283 ETH
0xfe0dfb1c30c905e7fee65d420eb1e604992aecb615074a8263407cd6689afc12Set Value48372522022-01-20 22:52:333 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000909945141 ETH
0x58e0a0d943449c9acdef4c7a8883530428c98f4fde7899915f1c89034b90ccc1Set Value48372392022-01-20 22:52:333 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000909952408 ETH
0xc7fa4b83ba368ccdb0fcd16e94e1331960fee3afaa0e92293566485c5ccb7781Set Value48372292022-01-20 22:52:333 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000909952408 ETH
0x2a72e79014f3067f193aeb30c4960a15243af540ec84e45d96424a9f828b769eSet Value48372102022-01-20 22:51:153 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.00090828097 ETH
0x81ea316976d3a552dba870bc1493d55d56f45d83b37cca3dcd0a483106c13e23Set Value48371782022-01-20 22:51:153 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000909945141 ETH
0xc425015b1b562ecce97efef14b626c31f4d8d1a5364a78461563eece07b029feSet Value48029822022-01-19 22:54:194 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000936164209 ETH
0x922a47340fde15629bffea83d99e318fd35773cb7c8176e7a9ef528763a118ebSet Value48029752022-01-19 22:54:194 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000937880641 ETH
0x79dbef16276ff2070341a2c5f47a6ca8e56db2623369ef3ac7467ac92a60643eSet Value48029652022-01-19 22:53:394 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000934440315 ETH
0xd1c8055907eb1dd05dd7cf61dc38a3e73a3e6cca095036e25c0bf784f0bb754dSet Value48029542022-01-19 22:52:444 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000929873733 ETH
0xf35a6613e9697ec851a97ed1ee44458119add38658410d09ae3ebc6cc4a504b4Set Value48029472022-01-19 22:52:444 days 12 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0xd041478644048d9281f88558e6088e9da97df6240 ETH0.000929873733 ETH
[ 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.io 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

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