Contract 0x1cDFEfC93D97E1B09e040a1f2d04b170eb60F4f4

Contract Overview

Balance:
0 AVAX
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x768fb5e7d05deff7108048833781f9cad17598a1896c697518f9b2b6ed7a3955Set Value31264482021-12-04 16:22:2444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x830bad688e09e22dee283c3c4ba23390f1945e200ab0805c8a803052ce6c3122Set Value31264302021-12-04 16:21:2744 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xb9a2c971e90be04806ba2eb989fdd352cebec062d61c130fb867a70f88b3a81cSet Value31264212021-12-04 16:21:0544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x187d1a098c7a0a4c8ad54cdeede057b7c33e24ce13cfd844871771e3ec850b02Set Value31264142021-12-04 16:20:4444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x4efe011ba8faf3a3ab250b0216f208c52d48cac38176190162afb52e4f4784c7Set Value31264062021-12-04 16:20:2244 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xe5689bbb251d8aedd6bb61038b655854332eb16ebf8d9b250cf4f81f7d310042Set Value31263842021-12-04 16:19:2744 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xacd2e416dd5da2029ae5bb5eb3bbd4cf97a7863186b1d1d181f74cd7b395456cSet Value31263732021-12-04 16:19:0544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0xb7fa708e9b9624d7c285a5410ec3aa1efd4b5d7696811a012ca24861c006ca1aSet Value31263622021-12-04 16:18:4344 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xb85de8e316c5a2998c2564cfbd1251bb6b1c25076d65c1a63df8be67c42bf154Set Value31263562021-12-04 16:18:2244 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xb01b1c3487a364a5025f072c76720a520adfc7feeb56b999925a89cffa28f9cdSet Value31263372021-12-04 16:17:2544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x0bf0685c0394e65f1ce028e0f9b6a3ff83f9069da804e473e81e761f0ac35b58Set Value31263302021-12-04 16:17:0344 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x019b4a81356ebf8a47718433c878838afd81bd3101e5ec8eee374f101f1293feSet Value31263262021-12-04 16:16:4544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xaf9d1f10bdf04ca31f58cf1c7abe86449652e029c2c57911d7d58fe2ab33dfb5Set Value31263172021-12-04 16:16:2244 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0x59beec14613aaf0b606ac3cd93068b9e25ca34647a503621dbdc5b8c0dc781c5Set Value31262922021-12-04 16:15:2744 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x762e83d25181d974b8194b181cb759a12b6c6e74dbbb1531698a57a833baeccdSet Value31262842021-12-04 16:15:0644 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x5f9dd9b6c601920df39f6cef2d33067c44d0bbb5e888caf0bf83acd6ea4e90dcSet Value31262742021-12-04 16:14:4344 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xa8f1f7422813980493d0ce687bf8886230b655fbaefb89b64beb132b0073d7c0Set Value31262662021-12-04 16:14:2344 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0x0976747f90f9d77e75509a4cd3cc0b87f3173f6a2edf3bfb8ce3d34b27fa89bfSet Value31262402021-12-04 16:13:2644 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x0acf8e101cbd5618cc3fa27bb0d19d939fba850449f61a2a9bfdd73f300eb0cdSet Value31262322021-12-04 16:13:0544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0xb658813f009e25f133845c3894f056cbac2837b313d801f8582353099b73f7ecSet Value31262222021-12-04 16:12:4444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xe662770c68c9207693aa078df3d5e545864136b7ea18ba600ac10a5b3a875c7dSet Value31262142021-12-04 16:12:2344 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.5
0xf7cbfc676e3f619276b4bac65c0216ce36a010bae4347c186c997e4254ea0ca1Set Value31261982021-12-04 16:11:2544 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0xe47347f8fa11e5a60626feebcfa21b10414d74235a719b63fdcbbf4bc5d3fcffSet Value31261922021-12-04 16:11:0444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008937527.5
0x4a0aa986dee091da17be5ea2db456f18f08b0e43ec91f4ae49ca691abb4c34bfSet Value31261822021-12-04 16:10:4444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008940827.5
0x1e7ab5600ea0e143fcb185fa25823ea912e9b521a5c94574adf3feac9da1b601Set Value31261732021-12-04 16:10:2444 days 12 hrs ago0x7c853732d90fc236d6f361f0abb0aa64137b4a20 IN 0x1cdfefc93d97e1b09e040a1f2d04b170eb60f4f40 AVAX0.0008944127.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