Contract 0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a5

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4212ab851e73fd62ae076d85616306e1f9a17001d652fa43309175b8e9e649c5Set Value12513262022-06-27 8:56:4226 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xea3b4df9fb45c9cb5242807747a741529e960e5a89e77164680fe9d501e4ab6dSet Value12513252022-06-27 8:56:1827 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0x1d4e855b1258516de5629e8a2f065805851e87f97398c35ea4d458786500f351Set Value12513222022-06-27 8:55:4227 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0x828f0412cf1853c02edba44706b71d372928bb76ae1dceec97d74f8bf96d72b7Set Value12513202022-06-27 8:55:1828 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xe5e397862c8e2aec18f69ec428d2b659060343253a8908d028febba778c19ef1Set Value12513182022-06-27 8:54:5428 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0xda5fd6173766bcefaf2bccee9e6d8f06622a080b6ec49168e1d1d4695f5636cfSet Value12513162022-06-27 8:54:3029 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xb4d618a0a30f2f19f6b0047c799167c8f5faadf4a68e7d0eafe08cb002a25a8eSet Value12513152022-06-27 8:54:1829 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0x3f4b072ee9c868bbfd4f430c45733ca95ccc83ca67016a3179e7f49c60a5b8dbSet Value12513142022-06-27 8:54:0629 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148632
0xe90e0c9b4a9d03cae39d685e463a21197bb612992f307af58a395110e80bab63Set Value12508072022-06-27 6:56:362 hrs 26 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xf8c421e09bc255266c381b12281a56c51552a5cf113aadbb4b8a84ad5c5a7dfbSet Value12508062022-06-27 6:56:242 hrs 27 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0xe91eb354603c3b9eb2fc059b884176da0318dbdf04ec8b7f7889a5775dc62f06Set Value12508032022-06-27 6:55:422 hrs 27 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0x1a9960e8414ccb523f18f0d8b9361b8c599e4115e89f6632ed2af227d87ccbc3Set Value12508022022-06-27 6:55:302 hrs 28 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xfcf2ddcfa7737f32348008ff046025bdafd142f274868e12a9fc04c3415340f3Set Value12508002022-06-27 6:54:542 hrs 28 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0xcc4f38c1c52ae761521b4a8f50bd43e4448fc9d7bba1ab150c8b4796b55f04f5Set Value12507982022-06-27 6:54:302 hrs 29 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xf15f03a8cc919901878deccff4de6092e58174d6a6cc722e9677a4b83e08231eSet Value12507972022-06-27 6:54:182 hrs 29 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0xa9789981f23e68796b70b8451447abcfbd163f5979bbbd6f176b32d2b434999eSet Value12507952022-06-27 6:53:542 hrs 29 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148632
0xd0f5e72dfd9684effb43cb17599c1e9db120c59884358e73930a288fbfb786ccSet Value12502722022-06-27 4:56:364 hrs 26 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0xadbe03ad3f820a896c28ef21d112e126447270601315ca770cb07b1a1b952d91Set Value12502712022-06-27 4:56:244 hrs 27 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0x76cb28d55d8aca5d3e0d06c96ba324738526f0fa8f0817e577bf2394bc757ef4Set Value12502682022-06-27 4:55:364 hrs 27 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0x1230649607ab1f6001c073f1f41bbd6f0890b0c8968e7c339598b510e718f4baSet Value12502662022-06-27 4:55:124 hrs 28 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0x55bb26254cad86a4d0db8bf257010b1e53f371b14f93214c5e9b9d7f8bfc358dSet Value12502652022-06-27 4:55:004 hrs 28 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0x8d0740b525c53dd5410361787ca706748e0a9d9588a6158220a224ccd299404fSet Value12502632022-06-27 4:54:364 hrs 28 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
0x721b8ee9455b5471bfb4c71f261f51e5037f465d91af8913266ca44016e71494Set Value12502622022-06-27 4:54:244 hrs 29 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148566
0xb3adc8236050e8758d34db2425b15f6a430ae7caca7453809ac8ebd721f31636Set Value12502602022-06-27 4:53:484 hrs 29 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.00148632
0xaa31e9c2418b20c37cafd95f4a2388e22550dfa2af000e21819681867d817d89Set Value12497412022-06-27 2:56:546 hrs 26 mins ago0xc2aa9850c8570565257ba711f4e707db15ad1beb IN  0xcd2ca164a2aec86b03474d1a76d25a2aa0a517a50 CLV0.001485
[ 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 clvscan.com on 2022-05-16
*/

// 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"}]

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea2646970667358221220222f2534f2f3f63ead56fb4bc1e04517cc80f5d4cd0c8b2f9c4f51518587e2b164736f6c63430007040033

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://222f2534f2f3f63ead56fb4bc1e04517cc80f5d4cd0c8b2f9c4f51518587e2b1
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.