Contract 0x6ba42c45174204a89ad2b7fe7b6416ad3c020d71

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3d77213630b68a49b5ab197847954f00df3dc82ed82cec793b9caef59e075d54Set Value40576892021-12-24 7:52:39185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000582085448 ETH
0x6e5d401ecf7cd3d562a3d5f3e1dda057439a0d33ae8461bb84c905f08ebd9e10Set Value40576832021-12-24 7:52:39185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000579951985 ETH
0x6c703d46a932c0fd4f790090d04f1d9473105074636467ef6851a1933c22ddd7Set Value40576772021-12-24 7:52:39185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000581018717 ETH
0xd336d40d8099672f0066c6dee14dbc262afc2a73c9f101cbacded1078f54c883Set Value40576722021-12-24 7:52:39185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000579951985 ETH
0x87c9fa75d292c669ab6ca7f03b3f7b661a493836dc00391ecce6c922554dbb44Set Value40576602021-12-24 7:52:39185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000579951985 ETH
0xcf04a157e6c47a022fb742bc449d5b6c38ec96ce535d4854462d175ad3ade75eSet Value40576542021-12-24 7:52:19185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000581018717 ETH
0x06ab5e587417b025d5d4ab9283fc9af64d52bae682236af9d00cc94365b635abSet Value40576462021-12-24 7:52:19185 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000582080811 ETH
0xe872004c3a94102288f3f15bb3e7dbcd4f06ad4f515114b0f9c8ccd86ef7c63aSet Value40364502021-12-23 7:54:03186 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000562947217 ETH
0x034c9ddd806f59a50b2077b5d731a48ab781fbc5d641b49366561db5f7026d5eSet Value40364402021-12-23 7:54:03186 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000562947217 ETH
0x56b80fd9fd962790cc333c13420cfcbb560a61e55ee1cbba7eaab26c369d3922Set Value40364192021-12-23 7:52:30186 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000563982671 ETH
0x26d903b3e160d481f26cb3d32bbb79730054e5376f221c912fb9cbfbaf966597Set Value40363992021-12-23 7:52:30186 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000563982671 ETH
0x9065e24f3a24eb2b09775ecf905cfa0b5d5aba2d276f67bb9470902aaf93c214Set Value40363942021-12-23 7:52:30186 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000566049078 ETH
0x13db1089c9d9910e2d154ae26b30c3142dddf0e64308d0ba73d0ba2de08fb384Set Value40152632021-12-22 7:54:21187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000502129154 ETH
0xfd36e2e6448baa44019039a09a83e64af9aeeea874f299381814f88ace35c8c6Set Value40152612021-12-22 7:54:21187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000503051048 ETH
0x6ec0c1ef0a62373f9985c1de315a46bc598fa0140be3deca41d8301722a36ec7Set Value40152582021-12-22 7:53:41187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000502129154 ETH
0x4edd0defbd1517aa17f43a522b361abc5c7d5460240de44879d2b45891e0fba1Set Value40152522021-12-22 7:52:44187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000503051048 ETH
0x16ea0ae7b5954bb858bb6bd63beb2a2951c12e39478b0ec3b561f2300ff134e2Set Value40152482021-12-22 7:52:44187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000501207261 ETH
0xc9cde69b89c0b935b11c8cb7dcfce2e486844a4c697fbc78b8c2c43e73c38531Set Value40152442021-12-22 7:52:11187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000503051048 ETH
0x9d1ca0de69b623bcf81b091ba854dbbcbd937d4de0dc8fcec77ab9751d80478dSet Value40152422021-12-22 7:52:11187 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000503047039 ETH
0x8d9bc268f9a80f53e8d8079152a69ba3012fa7374936144bfd0a21ee3410ed95Set Value39948772021-12-21 7:54:50188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000518083686 ETH
0x54d9aa0fe0f2ae937dcb9944a0d1ab84c7774af66f0d3a53746eff0455962205Set Value39948662021-12-21 7:52:07188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000516181316 ETH
0x777c08fb10e83de69c3763884ae00e56bb3be278d5b4192187e0cfa8c1401b06Set Value39948562021-12-21 7:52:07188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000518083686 ETH
0x41eea1f3c49bd8fb1ec3b47f5b27774f80ffa0ccc0c6d4e455bd076dbad91f6aSet Value39948512021-12-21 7:52:07188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000518083686 ETH
0x660176a0e35b3ecb6fc77423d0c58caa89e8e231132063c5c691113f72c1686aSet Value39948472021-12-21 7:52:07188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000519034871 ETH
0x5ce14fb7c1572622b4cf29f0ac4a69a71f6c5d93c3859f3cda0befd1fa36866dSet Value39948442021-12-21 7:52:07188 days 9 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000519030735 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DIAOracle

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 2021-10-05
*/

pragma solidity 0.7.4;

contract DIAOracle {
    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) public 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"}]

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea2646970667358221220173e1e0e4683f714af1a3b281da47c6b7975dd28084f2304133052d163c4907164736f6c63430007040033

Deployed ByteCode Sourcemap

26:1127:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52:41:0;;-1:-1:-1;52:41:0;;-1:-1:-1;;;;;52:41:0:i;:::-;;;;;;;;;;;;;;;;908:242;;;;;;;;;;;;;;;;-1:-1:-1;908:242:0;-1:-1:-1;;;;;908:242:0;;:::i;:::-;;335:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;335:282:0;;-1:-1:-1;;;;;;;335:282:0;;;;;-1:-1:-1;335:282:0;;;;;;;;;-1:-1:-1;335:282:0;;-1:-1:-1;335:282:0:i;629:267::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;629:267:0;;-1:-1:-1;629:267:0;;-1:-1:-1;;;;;629:267:0:i;:::-;;;;;-1:-1:-1;;;;;629:267:0;;;;;;-1:-1:-1;;;;;629:267:0;;;;;;;;;;;;;;;;52:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;908:242::-;1017:13;;-1:-1:-1;;;;;1017:13:0;1003:10;:27;995:36;;;;;;1042:13;:39;;-1:-1:-1;;;;;1042:39:0;;-1:-1:-1;;;;;;1042:39:0;;;;;;;;1097:45;;;;;;;;;;;;;;;;908:242;:::o;335:282::-;446:13;;-1:-1:-1;;;;;446:13:0;432:10;:27;424:36;;;;;;471:14;518:9;-1:-1:-1;;;;;488:39:0;511:3;500:5;-1:-1:-1;;;;;490:16:0;489:25;;488:39;471:56;;552:6;538;545:3;538:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;538:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;538:11:0;;;;;;;;;;;;;;;;-1:-1:-1;538:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;574:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;574:35:0;;;;;;;;;;;;;;;;;;;;538:11;;574:35;;;;;;;;;;-1:-1:-1;574:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;335:282;;;;:::o;629:267::-;687:7;696;716:14;733:6;740:3;733:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;733:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;733:11:0;;;;;;;;;;;;;;;;-1:-1:-1;733:11:0;;;;;;;;;;;848:3;838:13;;;;-1:-1:-1;;;;;785:15:0;;;;-1:-1:-1;838:13:0;-1:-1:-1;;;;;629:267:0:o

Metadata Hash

173e1e0e4683f714af1a3b281da47c6b7975dd28084f2304133052d163c49071
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.