Contract 0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa31

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x21b812e4d88a0a86e9381b654b98ce268a2ab5286041dd3bf5a0681223adea1bSet Value98970122022-01-22 7:37:022 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00216491725166.563683793
0x6b3a282dc86892c17891915391bb613122f5a618df293837ca58258d0eb2bcc1Set Value98969112022-01-22 7:33:385 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0023172316371.29943479
0xac71cfc9e576671872c8063d7a364f43176ff567b791ddfe5f61fcb4365f1173Set Value98968622022-01-22 7:32:037 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00192558150559.226793355
0xe582b27c44132d2f8160e0be56b93343c9faa8ee1d62e7a3d09df43794cbd45aSet Value98968492022-01-22 7:31:417 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00204328163462.823811182
0xd50a090eed84ba3981287c1d4d7c64dc195a048576c3741cafb6e63ea83cc975Set Value98968152022-01-22 7:30:418 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00134261798241.296074771
0x83361cf40e869968bfaf97e6047bbf9d181af7edc925cc9d7266457a675d1fcdSet Value98966512022-01-22 7:25:3813 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00091433431528.133363568
0x0bca13a9150193c002e84568048cd62c7958f3e9e06f3516839de7d3feb71a71Set Value98966332022-01-22 7:24:5914 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00096538113529.704034932
0x4a3c5833acf55ac670b7a0acf735690902190f2ecd22f8efac756787e611094cSet Value98966012022-01-22 7:24:0015 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008940827.5
0x08ba644d87eb3a7b4ba42f590f95f6fa897f879aa16daa38da98a4d1155be54aSet Value98965792022-01-22 7:23:1716 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008937527.5
0x17e60f1f099132123d05e6368c9f201113aae2fc438ed07f8e9dc9199b945df0Set Value98964352022-01-22 7:18:1721 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008944127.5
0xba5be27be5970ae572d680e796880c561029db242d9e3bf316742ac8fe686668Set Value98963332022-01-22 7:14:5624 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008937527.5
0xe37c4a2ff48b001b5e456ccfa5c49767cddb03a43aac22cdaac9411afe0b81a5Set Value98963142022-01-22 7:14:1625 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008937527.5
0x78234ad24228686f059dad45f237562541c5ed2ab1415e603208a056578544b1Set Value98962422022-01-22 7:11:5727 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008940827.5
0x0192bcd95b77e111660d4940357340476f91f9470abe74e70f4ab56f447c6d47Set Value98961732022-01-22 7:09:3630 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00090562628927.865424288
0xa4ffc86190eb7653bcdba1174212bb546a1387b6af2411ecb016c39ba824b85eSet Value98961212022-01-22 7:07:5531 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008940827.5
0xd6c48c12d9afb52256780d9086658b006e943beb1919343828484095335eb192Set Value98960212022-01-22 7:04:5434 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00089532843927.528238813
0x342a2e71dc802e53ed12ee7c566b4115ed51b294190b13130fbecf359e45f694Set Value98960122022-01-22 7:04:3435 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008937527.5
0xf40d2324a18a2b0ca3935eeb8fade35cdecba3efa0b68b38c915d43c2a1e9d9fSet Value98958532022-01-22 6:59:3240 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008944127.5
0xfa2adcdbcd64a30f6093d302d41d35cdec82f0918613461a1a65eb587c67744aSet Value98958222022-01-22 6:58:3341 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008940827.5
0x8a3f23eceb4dcc472a9b1cbd79f2dddae12af43df289f6661c49f958cbe5c349Set Value98958142022-01-22 6:58:1441 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00089723204327.607139795
0x141103da9864c09c9b89031018064671534f55abb0c6fc4c440a538a898b731eSet Value98957042022-01-22 6:54:3345 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00089870484627.642250452
0x8d62c2ed8ec75026fd1c81e28019e375f2ad894f1a8ab22cc3b36dafad6ac912Set Value98954852022-01-22 6:47:5051 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.0008940827.5
0x4c54d438aaaf2b487c77b6086509c37f48cf2e4513fadcd7539a3d104d4606dfSet Value98954462022-01-22 6:46:2953 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00090219187727.749504113
0x438c5d5cbf195d363f4b030d36006c9521314b30080a3fb0279c1a16e2fe51e6Set Value98953232022-01-22 6:42:2957 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00098215087430.208872849
0x70a0bca548bda8eb438a157eecae4fd8647cb4297e73aaa3d6a1b8fd0786abe6Set Value98952662022-01-22 6:40:5158 mins ago0x6a2c7bc26e8c6f586706ccbe0fa7c008300c237c IN  0x1fe94dfcb35a020ca05ab94bfd6e60f14eecfa310 AVAX0.00108774286633.444313941
[ 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 snowtrace.io on 2022-01-05
*/

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

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

Deployed ByteCode Sourcemap

26:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54:41:0;;-1:-1:-1;54:41:0;;-1:-1:-1;;;;;54:41:0:i;:::-;;;;;;;;;;;;;;;;912:242;;;;;;;;;;;;;;;;-1:-1:-1;912:242:0;-1:-1:-1;;;;;912:242:0;;:::i;:::-;;337:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;337:282:0;;-1:-1:-1;;;;;;;337:282:0;;;;;-1:-1:-1;337:282:0;;;;;;;;;-1:-1:-1;337:282:0;;-1:-1:-1;337:282:0:i;631:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;631:269:0;;-1:-1:-1;631:269:0;;-1:-1:-1;;;;;631:269:0:i;:::-;;;;;-1:-1:-1;;;;;631:269:0;;;;;;-1:-1:-1;;;;;631:269:0;;;;;;;;;;;;;;;;54:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;912:242::-;1021:13;;-1:-1:-1;;;;;1021:13:0;1007:10;:27;999:36;;;;;;1046:13;:39;;-1:-1:-1;;;;;1046:39:0;;-1:-1:-1;;;;;;1046:39:0;;;;;;;;1101:45;;;;;;;;;;;;;;;;912:242;:::o;337:282::-;448:13;;-1:-1:-1;;;;;448:13:0;434:10;:27;426:36;;;;;;473:14;520:9;-1:-1:-1;;;;;490:39:0;513:3;502:5;-1:-1:-1;;;;;492:16:0;491:25;;490:39;473:56;;554:6;540;547:3;540:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;540:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;540:11:0;;;;;;;;;;;;;;;;-1:-1:-1;540:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;576:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;576:35:0;;;;;;;;;;;;;;;;;;;;540:11;;576:35;;;;;;;;;;-1:-1:-1;576:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;337:282;;;;:::o;631:269::-;691:7;700;720:14;737:6;744:3;737:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;737:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;737:11:0;;;;;;;;;;;;;;;;-1:-1:-1;737:11:0;;;;;;;;;;;852:3;842:13;;;;-1:-1:-1;;;;;789:15:0;;;;-1:-1:-1;842:13:0;-1:-1:-1;;;;;631:269:0:o

Swarm Source

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