Contract 0x8ae08cb9161a38ce241bb54816b2cba549c136ae

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2d99c451708f5fe06cab36b576fa67db64506a7a16a0e7835083b0bc350535b7Set Value36998292023-06-03 7:43:061 hr 17 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004478962933
0xd3be4eee86544f7cfc4f5ca6999ce64bae83d0a31c10f6aa59d5a6715589b250Set Value36979002023-06-03 1:11:307 hrs 48 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0048208464
0x35a2de089e145fbb1d458a6b7416b19e8eabf78a85b4a12acd9b1460d2dcf27aSet Value36972092023-06-02 22:49:1210 hrs 11 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0x1865014cc7611dd3a9a290121fc86a3f22960fe80d463aea7da1397202022a24Set Value36963222023-06-02 19:47:1213 hrs 13 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0xdca0059d999eba09dc3f530699a61b855b94e02017c548d195ee9bb501c26303Set Value36955022023-06-02 16:59:0616 hrs 1 min ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0x9f4ba733d5defb8c1361a870b8be7d18a02cec92348edb174060b0a1da4a1449Set Value36945922023-06-02 13:53:1219 hrs 7 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0xb58aea81f7a54319f157eefe2a906406806e2caebc13513f609a48ece04661f0Set Value36939252023-06-02 11:37:1221 hrs 23 mins ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004926244842
0xe9793cd80a97b8451f2bcf9180719a3cce5adab5a6677c86ba450679a423d034Set Value36921212023-06-02 5:27:061 day 3 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004936020639
0x795b77584216a44fb40f8eca61c481fd12a2553fe07e39e142258b256bf86491Set Value36911812023-06-02 2:15:061 day 6 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0x436b91906d66d4a4a71dbd4ef8fa029b4ee3f27c6bab1cc365b5bfe86195f020Set Value36907442023-06-02 0:47:181 day 8 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0xdbd30df9a2b2e6352e189dd77e0362b5343a38f81613a4e2cc22654c5c742efeSet Value36907152023-06-02 0:41:061 day 8 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004496143791
0xf10ef0f5cfe88070294d1bb07b72537d25294d2e2f95d6abdc3083c838e0072fSet Value36903832023-06-01 23:33:121 day 9 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.00447937845
0x56536d2122a29918cec09d754bfeb5abf74a94ba18f0d4765fc411fae3fca00cSet Value36892152023-06-01 19:35:121 day 13 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004771383043
0xf08e9c2dd358ab894076504626a372c32d6ab083b2d8d72d13655e4a8114687bSet Value36884612023-06-01 16:59:121 day 16 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004700299036
0xd43b6cec4162f0f545a9427fc5935664d6f9df3850f849f8676e76f9a71fd6cdSet Value36879412023-06-01 15:13:181 day 17 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.005004086546
0x49a124e38842c94fd972acbf856b49396160310586601434428ed655ba1311cbSet Value36860932023-06-01 8:59:062 days 1 min ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004542991248
0xc0e16354da8f2a93a0d557a41fe7b2c912c521cc59a55a23dce3efc99f34d7e0Set Value36855932023-06-01 7:18:242 days 1 hr ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004473448228
0x69d01960b8759cb15b460f8f1d6d0f74ef1ae69ad6540e6fa4860826461042d9Set Value36843122023-06-01 2:53:062 days 6 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004677226379
0xb1dcbd0c733df91be309af0cc1f9fbfa79b732e385e3fe07961a4dd187a7985fSet Value36831442023-05-31 22:55:122 days 10 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.0044704
0x942f1a7def857f1dd419c41df137e7d6c05e50ff972d178fa4ef5f0d6ed0904cSet Value36815192023-05-31 17:23:062 days 15 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004514071249
0xc2ca0d79855774d3b79dbf93830b44d1be3a1d9bd37e820e399597454b9ab5d8Set Value36811702023-05-31 16:11:182 days 16 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004721181693
0x0e0f6b02d1ec7c2be57556e8c19aaf1adeebea85255908cc796ee37866098d28Set Value36808152023-05-31 14:57:062 days 18 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.00504970876
0x10f69fa1601da8fda3ce9578a6dfaa804fa2723c44b0bb222b837aa281313cfcSet Value36807162023-05-31 14:37:062 days 18 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.005318452405
0xe0e1b428fafc29ec55c508f2ef22c1d376c7687785e0b78489a40cdc37b6ab6dSet Value36796152023-05-31 10:47:122 days 22 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004778072368
0x2471bc04c4d79155910e57c03af1e1969cb3b307ae27fc2bf10ca3435afda41cSet Value36794972023-05-31 10:23:122 days 22 hrs ago0x91cb290c35322abe833c878e96dfd441271747cf IN  0x8ae08cb9161a38ce241bb54816b2cba549c136ae0 GLMR0.004761838443
[ 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 moonbeam.moonscan.io on 2022-04-26
*/

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