Contract 0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8c7883ff16766dcb1395fd09d44af8afa29c425267b812d6d6370b842006efd9Set Value28437442023-01-30 21:13:064 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x399a2ffa0ca651b0964a42e504d6f3be230cc9080746209f1cad1b521c6cfadcSet Value28436952023-01-30 21:03:0014 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xb0d45b0d1346b80676a789133d3017addf554f2793de94477e67f8297df33836Set Value28435082023-01-30 20:25:0652 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x8507730c6e11940438f2f6ef4bd3f95da7d9ddbc282ab3afc83ddd945b698abeSet Value28435072023-01-30 20:24:5452 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x943f4f69b96397f3eb1acc5e34b48356608fa2cbdbd4c92adccf7a80e66330e1Set Value28433702023-01-30 19:57:061 hr 20 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xed23e196dd95b1eda06c91649f5ccbc60fef3301385d9f4d73a2835f0bfb58deSet Value28433202023-01-30 19:47:061 hr 30 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x384b98a2c69e0e16ddc2a2a898b7e1310deb9ce44530452e749d3607efe0a0f6Set Value28432312023-01-30 19:29:121 hr 48 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x8f4f4c7dbfd79d7fb01ea656266e9111597fee1296511c6531fac8bf48182850Set Value28431992023-01-30 19:22:361 hr 55 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x3bcad5704232ccf5c6a5bb10774bf19d944c1316deddd18ab91a17bdd60e16e5Set Value28431912023-01-30 19:21:001 hr 56 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x67a0de3e2958b9428d5387107e26181b303785e5c9576da3216e40dbde7a5284Set Value28431602023-01-30 19:14:362 hrs 3 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x7bdd67ce858e80255b0f2555cb1eb237e9747d995555a5faf7a8fdb8ee712e47Set Value28431532023-01-30 19:13:062 hrs 4 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x6b527b5d4f387c80c85d6b49a8dab1d60c7a6de643e3763d2434a6885e7531a5Set Value28431532023-01-30 19:13:062 hrs 4 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x89fd8a7c928d9a61f319179b660e0ceba56b32e0f7da9a58774c7ed199a1a0d0Set Value28431442023-01-30 19:11:062 hrs 6 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xd0a7caf976478ed733b4e0ef05884c51a3f955f3cc2887c1b5f3111b70fc5a83Set Value28431342023-01-30 19:09:062 hrs 8 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x82b41b6105fa6b2f54878b0a9b0c8845374178c23b1cc59f7f07a21c48d3eb2aSet Value28431312023-01-30 19:08:302 hrs 9 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xec7d8393b0e87cb6654ea7379537acd4a12db0cddb097d4a21853f81f7278c6fSet Value28429582023-01-30 18:33:062 hrs 44 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x312d257d69d2d6914e12d4a5858333029d19978f306d4e376a46ec4621b4e2d0Set Value28427912023-01-30 17:59:123 hrs 18 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xe62a2090316ebbf1879a68bd4dd62abdd30c9cad3cbdf8fd07dc16012e6327e5Set Value28426242023-01-30 17:25:123 hrs 52 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x750dfabbae47672bafa83a7b7a7497539f7afbceca3f7f6828ef3ce41af10799Set Value28425942023-01-30 17:19:123 hrs 58 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xd5c537e6b739d182a85cf78d0e1a78a98d24a439fd4b809ef967dd6d7e10608aSet Value28424752023-01-30 16:55:124 hrs 22 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xf2b1974ceb3befeb4a78b5d305393672e42db66b2bb9100b9f13dca032ec3002Set Value28422672023-01-30 16:13:125 hrs 4 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0xf170f3999088cbc918184cb506ac7b9be785bd7fe635e83a1a04066a22130edcSet Value28421202023-01-30 15:43:005 hrs 34 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x036f2036b71424244da6746725d91b8340db4f1852f98f0516c7a04132ca8c04Set Value28421012023-01-30 15:39:125 hrs 38 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x6483470e93eadbb4d26eb4aa34f31d2a7fa477696e50a99812a8aac0827c1359Set Value28420422023-01-30 15:27:125 hrs 50 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
0x78e08654d4b8983e2996fdb81b67f7748f88661b3fde5ecef63fe523900f28e9Set Value28420392023-01-30 15:26:365 hrs 51 mins ago0xfdf65efc6d8c9b4e0c14c1ec1bdc1e570dce8414 IN  0x9fe8befbba9ccc9c98b54f61aa99b772b9ded28b0 GLMR0.00358303
[ 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:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at moonbeam.moonscan.io on 2022-03-13
*/

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

608060405234801561001057600080fd5b5033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610713806100616000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101205780637898e0c214610164578063960384a014610257575b600080fd5b61010a6004803603602081101561006757600080fd5b810190808035906020019064010000000081111561008457600080fd5b82018360208201111561009657600080fd5b803590602001918460018302840111640100000000831117156100b857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610351565b6040518082815260200191505060405180910390f35b6101626004803603602081101561013657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061037f565b005b6102556004803603606081101561017a57600080fd5b810190808035906020019064010000000081111561019757600080fd5b8201836020820111156101a957600080fd5b803590602001918460018302840111640100000000831117156101cb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080356fffffffffffffffffffffffffffffffff16906020019092919080356fffffffffffffffffffffffffffffffff16906020019092919050505061046a565b005b6103106004803603602081101561026d57600080fd5b810190808035906020019064010000000081111561028a57600080fd5b82018360208201111561029c57600080fd5b803590602001918460018302840111640100000000831117156102be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610637565b60405180836fffffffffffffffffffffffffffffffff168152602001826fffffffffffffffffffffffffffffffff1681526020019250505060405180910390f35b6000818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103d957600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f81604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104c457600080fd5b6000816fffffffffffffffffffffffffffffffff166080846fffffffffffffffffffffffffffffffff16901b019050806000856040518082805190602001908083835b6020831061052a5780518252602082019150602081019050602083039250610507565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055507fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee22917828484846040518080602001846fffffffffffffffffffffffffffffffff168152602001836fffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b838110156105f55780820151818401526020810190506105da565b50505050905090810190601f1680156106225780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b60208310610671578051825260208201915060208101905060208303925061064e565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020549050600070010000000000000000000000000000000082816106c357fe5b0690506000608083901c905080829450945050505091509156fea264697066735822122023abc171f7f98972f8b1766cf2f53dad8053429c65b86646769b977d8b994abb64736f6c63430007040033

Deployed ByteCode Sourcemap

62:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;948:242;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;373:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;667:269;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;948:242::-;1057:13;;;;;;;;;;;1043:27;;:10;:27;;;1035:36;;;;;;1098:23;1082:13;;:39;;;;;;;;;;;;;;;;;;1137:45;1158:23;1137:45;;;;;;;;;;;;;;;;;;;;948:242;:::o;373:282::-;484:13;;;;;;;;;;;470:27;;:10;:27;;;462:36;;;;;;509:14;556:9;526:39;;549:3;538:5;528:16;;527:25;;526:39;509:56;;590:6;576;583:3;576:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:20;;;;612:35;625:3;630:5;637:9;612:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;373:282;;;;:::o;667:269::-;727:7;736;756:14;773:6;780:3;773:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;756:28;;795:17;834:6;825;:15;;;;;;795:46;;852:13;888:3;878:6;:13;;852:40;;911:5;918:9;903:25;;;;;;;667:269;;;:::o

Swarm Source

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