Contract 0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x51a42d6240dd6008d0948b7eaf4e5ac4a0f649e1d9ae436142a1dd8181e1f231Set Value518960942022-12-05 0:08:3635 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.001974673421
0xcd41094425c9e7f3fe1a5b95a56746dd0461a91957075608fb2f3c39729d4a24Set Value518926762022-12-04 22:10:022 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002537866788
0x6f803c41452a9fcf11ca89f807b3b273008297864cd292ccafcf38b5db1cc3fdSet Value518885852022-12-04 20:08:384 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.00406583613
0xc444295fa848971f15766b406e5f0f6796e973d7a6dfdfb912203056a532e6d7Set Value518854122022-12-04 19:09:575 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.00924167805
0x3c4cf00b4831bee9ddee18479d4a6b3a5a4e2bc51b78edd9427c7e610ae922acSet Value518853342022-12-04 19:08:385 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.009374644098
0xe98743a4adff2ba4bb2a0310b6710cb39538205edb66f6fe4abd7c7747b087d5Set Value518830322022-12-04 18:14:406 hrs 29 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.006159824773
0xd2149f538b8bccdbbe9ddee2eb3afccd2bf2091a7d5875d229eeafb124b514f0Set Value518829372022-12-04 18:08:366 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.006110958363
0x3af34b35c4739d9aa53c76066586c72124d52ca56923f11595c7b4f1b234b454Set Value518809872022-12-04 17:10:247 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.003158508213
0xc19e6a8cd6d91bf46ddc57c5e818673d7d0eded4d2975f57550e1584cdc7435bSet Value518809852022-12-04 17:10:207 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.00317559766
0x76daf85b40c9b3a69653bb58d77396752ca730bce006142166795f7d2b2e6578Set Value518809482022-12-04 17:08:527 hrs 34 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.00317441627
0x2acab155d29d816765585d556c3b4c18725a20f8ead93e6579d7a78471b7a2bdSet Value518788722022-12-04 16:08:378 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.003033393463
0x35151060d62d44e4ede9eddfc787bb892123afb7f8faf3e76a65a3fed6a3832bSet Value518749692022-12-04 14:08:3710 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002895629231
0x66c4cd66f757c7a0f4ff8aece5bac191df58a977579e946c000f570c915a89cbSet Value518731092022-12-04 13:08:3711 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002910196362
0xf89b88c3ff07bceef9271b463eec79469fe4db14ffb254077b5a8b47428cd160Set Value518663712022-12-04 10:10:2214 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002925904085
0xad49ea69c6695b0f67509beec93afd80fee8fbac786d6c34971e8fb0686c9c99Set Value518597532022-12-04 7:10:2717 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002636237197
0xe697f877d099abdd0da00d8a4e789d7aaac33c3a7e927a60c58caa95bca81be7Set Value518597382022-12-04 7:10:0617 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002628234583
0xe360ef7efb2c8242a7b1a7d1a42149358a373da61ab63464e1cab6ca05f6c9f7Set Value518574342022-12-04 6:10:0418 hrs 33 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002403307125
0xe3054c7c2946e30b16f86100032165f01ff8decebf183b756be6ea69d105f656Set Value518553772022-12-04 5:10:5519 hrs 32 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002517184562
0x03bdedfeb68d65855407ec12e374b64f400757afbaf61825d17f9c81da9285feSet Value518553192022-12-04 5:08:4919 hrs 34 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002379831997
0x1bfbb05b032f61d2ab8e64ce701bb052ef3b85961e1a3ebdaa84981db3645006Set Value518537602022-12-04 4:13:0820 hrs 30 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.001657901148
0x24246bc5cf983984ff214cb9dcdd14267424c3661ac3e5aaa12e584082298f6dSet Value518518282022-12-04 3:08:4621 hrs 34 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.00152085206
0x9cf4deba92b4662e4f60b1bd10c621337ddcc1bed598a6c462009840a3ebb730Set Value518498522022-12-04 2:08:4122 hrs 34 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002062792035
0x3d475e31a513975e09974ab742d914a708799b490d474a03af36de21e489ebd1Set Value518498422022-12-04 2:08:2022 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002072708978
0x0c7b0f0dfecd0d6201cbfdc62784dab4a7ef1ff0ab46b086a89894414e82caecSet Value518480892022-12-04 1:08:4023 hrs 35 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.002443347043
0x33a2bdcb6e50c3e5b2874c738a823c1d76c73f82ba1162efafba64e8efcc4619Set Value518460642022-12-04 0:12:121 day 31 mins ago0x8c12b9f23372be698f1e45df5c75d294cfb944ab IN  0xc5ca9c52d3d8d7f9bb17beeb85c2c3d119ab504f0 FTM0.003466445443
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x529b1dbdaa7ad6381d8563e8f7d5617f4bae0f4b7da3776c4bfc3f4931a59dfb171440502021-09-16 16:59:16444 days 7 hrs ago 0x8c12b9f23372be698f1e45df5c75d294cfb944ab  Contract Creation0 FTM
[ Download CSV Export 
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 FtmScan.com on 2021-09-16
*/

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 Security Audit

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
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.