Contract 0x1cDFEfC93D97E1B09e040a1f2d04b170eb60F4f4

Contract Overview

Balance:
0 AVAX
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4a6bb8b8154d5050e4a16037c8240a505065341a401ae3974f428c5be49c25a1Set Value30092712021-11-30 23:45:5818 secs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x68b1963a5f7dc72e895ac2e57f8fb8fa7c82f342ad40a22a480ddedc3dbe17f4Set Value30092622021-11-30 23:45:3739 secs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xa6bd9335ffb41c36dfd641667063d46d3fc3d5fce7bffb83dfc51e26d31ff8cfSet Value30092592021-11-30 23:45:161 min ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xd26878b32dc06c7fd3c19ee64603a12cb19c2d28a01b3755b84559e527133ab7Set Value30092452021-11-30 23:44:181 min ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x63cfb5296c6cfe571e4ab02c78379b70621da1fc3d849c978a8c8fb7d7461d1aSet Value30092412021-11-30 23:44:002 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x33804461e11e9ce2698883f4292de088c73a75af954ea216281ed63faf1bc5f4Set Value30092322021-11-30 23:43:372 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x781c2e99b6a37aefb9abdce3dc5f380a5523c25c9938e322bfac435fcbb89cc8Set Value30092262021-11-30 23:43:172 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0x793720644f6c933aeda342b380e93c0ef30e4dfae0f75519c6e287bee0dab0f5Set Value30092072021-11-30 23:42:193 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x755fefc05db7efee2fddfe84b9d4043362a3f1da194c4fe2415de9392abafd90Set Value30092002021-11-30 23:41:584 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x811228fd69bc680230fd3c3666b99390782b3a85e67244051ab9cf37e288dc5aSet Value30091952021-11-30 23:41:364 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xccbaac49daf81566cd0b97009fb54cf5deefbc45df2cc548e0b64684d81cd156Set Value30091932021-11-30 23:41:184 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xff10604fd1f0762f1ede40a205d9897d9c5398a6b407098a9b25f3361c406f19Set Value30091742021-11-30 23:40:195 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xfd32f4aab2933b9b6594676c4668eab60018ba915b0817e6ca45d23e9fdf4aacSet Value30091702021-11-30 23:39:586 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x538a4f33aefcc82d55c69517bbc41265d450a093eedf8354fc9bbba29e013667Set Value30091642021-11-30 23:39:376 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xc6f63e84e0d4583cd46df0288f4bd62f0067ccb8caa64470957eb2da072f6bd3Set Value30091572021-11-30 23:39:186 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xc18e5ad72b8e3053b827305a2f619b246a786c7ab906886ae5b89c20953499bfSet Value30091382021-11-30 23:38:197 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xb13f5506dfb30ad69622d6746f079273dd668e79a082827ed826ace2573ae82eSet Value30091342021-11-30 23:37:598 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x0690bf9fdb58eb49d5d8088fb3a0713b33a494d0375eacd989887215a036807bSet Value30091292021-11-30 23:37:388 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x4726c59a8f3836d0ea8d5d657b374cda1e57a16c4c4e36b6efede1b0d1a78826Set Value30091242021-11-30 23:37:169 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xa3cc3892646ff1cdff2432d0e9b5441e7b183a40d6b572f47160234cc6723e34Set Value30091092021-11-30 23:36:209 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x00dad090b9d64c47ca888e692ef2017abe2d1b104b9b7796741312a3d6ae9b77Set Value30091072021-11-30 23:35:5810 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0xd10b0db3e9f3d6545843d5cdd1e58162dce96da4195e9bc10530777e0246dd69Set Value30091012021-11-30 23:35:3810 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x040cd55ae6a59681b15d65f82c3141915f81db2bcdc35fd72f07a8d08470590fSet Value30090922021-11-30 23:35:1611 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xec08475b7f62ad952f8719517d4c8bbf4e4ae8136a2c8ce261e591dc47c79407Set Value30090782021-11-30 23:34:1811 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xf82fa8a4d942029b5396970a8eae4f6d80498a4f2a7e31cbcc317c229deeeb36Set Value30090732021-11-30 23:34:0012 mins ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
[ 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 testnet.snowtrace.io on 2021-11-06
*/

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

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading