Contract 0x6ba42c45174204a89ad2b7fe7b6416ad3c020d71

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x514b62547ba7bbbb99c0084e983b6596fb5e8d629e8a9db2d62f62c9c9fdf774Set Value36215862021-12-06 16:11:2219 hrs 31 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000745436664 ETH
0x56d3bdae768a1c7d133dd31de337bc7fc423be9f8df8a9a760a667cf6973eaa2Set Value36215792021-12-06 16:10:0919 hrs 32 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000745436664 ETH
0xe8c74ef5d8c8e4b1c72ea318f0ac387d91b5d688f4c3ccc6731b73fec15a0514Set Value36215712021-12-06 16:10:0919 hrs 32 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000745436664 ETH
0x5928a082fe13af601d05fa9df26145b8cf5703c445554452b59a4b4af17f29faSet Value36215652021-12-06 16:10:0919 hrs 32 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000744068065 ETH
0xef3e31ff1233031929cfba9cd240677f3f4c542087f40e2ffeb641a0ce922925Set Value36215612021-12-06 16:08:4519 hrs 33 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000746805262 ETH
0x4e2ed35b8b39e14e7291803095fb7efafeecabaa097f7a16994a6fcdc67d410aSet Value36215522021-12-06 16:08:4519 hrs 33 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000744068065 ETH
0x32482acb2b7754331ab1881ce605e3a9b06fbc43e00ccc5b6ed8ce3e2c9f6efdSet Value36215482021-12-06 16:08:4519 hrs 33 mins ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000744068065 ETH
0x0ef359cacc2e87e4e95b416d8aba4c8700fefe9c249505f3a7c078f77458a12fSet Value35933492021-12-05 16:10:191 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000763835165 ETH
0x033c0561620a8194759bd6d95bee869d4ec039a322fb91a64768b11faa6ad162Set Value35933412021-12-05 16:10:191 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000765237542 ETH
0xf5efff34ff650f80a1f0a8273d774f76bb451313747da7e78ff9041d40e84781Set Value35933352021-12-05 16:10:191 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000763835165 ETH
0x3378a050e3674c3dd3ebb4f0a4e77ecae38fe5b2475b14e43682e1bab72ca4d1Set Value35933292021-12-05 16:08:431 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000762432788 ETH
0xd518cb509f12c5578530366bb40e2e4cf994a56f055e5025860af730fa50149cSet Value35933232021-12-05 16:08:431 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000762432788 ETH
0xfd233ecee99ca8f236e266b61665ef992bb13d89f7ce7f7beba16cd523f080c0Set Value35933162021-12-05 16:08:431 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000762432788 ETH
0x687ef76170d9c71be85e52a048822350aa3007473eda64f57f22f13cd140198dSet Value35933092021-12-05 16:08:431 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000765237542 ETH
0x3d9a9e7d294defcfc93397bb866436b7d9fbd7de3737b43080c03d177a09a64cSet Value35933032021-12-05 16:08:431 day 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000766633822 ETH
0xe28f28f7df918c415d692fd753a38e0f07caafa59b370bbedd4cab0d9308590aSet Value35683922021-12-04 16:10:302 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000891731173 ETH
0xb79773f8f430c785572215a3521cab181160a4fcd4f7f9fa12593cb9387eb14aSet Value35683852021-12-04 16:10:302 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000895005553 ETH
0xf836da47e0a9e89689fbe894cb58a8dd0e079f8a6b3b84265077bba1248f2b28Set Value35683802021-12-04 16:10:302 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000890093983 ETH
0x9657be6a63130e05ef00bb939e0a060fbc615cd6d5e136c9ef597eba0f23c979Set Value35683682021-12-04 16:10:032 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000888456792 ETH
0x42f6cb4c108706358d5bea6d80c6a4079b401bcde7da9fb6dca15df494cdd0a4Set Value35683602021-12-04 16:10:032 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000891731173 ETH
0xea4ffca1c37be2b3245140a62e8ca4c02171aab2f2cbabe1224d44bb21950646Set Value35683442021-12-04 16:09:112 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000890093983 ETH
0xfa42638e3471d686bf15b17726ee72ae3741a8cd83da6bf77f358aba13600b61Set Value35683382021-12-04 16:09:112 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000893368363 ETH
0x9cf0258890daeb2bd451e890a55a6c86e1e07a9015e5c6f59ad3f1f74b8050d4Set Value35683322021-12-04 16:09:112 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000894998435 ETH
0x99c84ac706ad687443cb843fc5009eeb8f77f808ecff09a06a50982b0896d7b9Set Value35373242021-12-03 16:10:523 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.000765984077 ETH
0x1fcb0effeb9b1324e0871c7f2faaeea79ffeda5990e24778809ea21fe08a8215Set Value35373122021-12-03 16:10:523 days 19 hrs ago0xc237b66d9c5dc46e3785618635153e8cc90f98b9 IN  0x6ba42c45174204a89ad2b7fe7b6416ad3c020d710 ETH0.0007673904 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.io 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

Swarm Source

ipfs://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.