Contract 0xC75599a6FE53fc09C54050BCEfC74Df6eE6c834d 5

  Note: Our ETH balance display is temporarily unavailable. Please check back later.
Txn Hash Method
Block
From
To
Value
0x5a26d06810f42f226b4f7ae7c3e6aa483c07a0d787cae37d5b1f23d00491bb07Set Value119999092023-11-05 14:10:34167 days 12 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100056
0xb52d56493c41e00b952352d0d9584fa4162e1194fada9f2504dd4c53b0e29611Set Value119964502023-11-05 12:15:16167 days 14 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100056
0x4e1fc7ffad200166a822272ca97cbab056ea3bb49fc23a65bf0609a09037c13fSet Value119816662023-11-05 4:02:28167 days 22 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xe603550c32468b4eeb977f0c5ba837c46b89114962a1d4df9bd71a58804c0e44Set Value119813042023-11-05 3:50:24167 days 22 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x131cd56594717c8740c64a7607494d2d5507678fd39048c0878beb4e54acf37eSet Value119805842023-11-05 3:26:24167 days 23 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x42789109dd993f6694a00386f106c12adb68e02fada75854d22c7eb0e7f0d73cSet Value119760822023-11-05 0:56:20168 days 1 hr ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xf2d27a8ce17e38ca32637f75b1b8a8973613dd43ba453db8149b5b268e7a76feSet Value119726012023-11-04 23:00:18168 days 3 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357510.001100055
0x7d346a937915ec58af03314028ba9253d6d5b399eb0c0a0a70997b5f782f40c5Set Value119716412023-11-04 22:28:18168 days 4 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100057
0x45d9985ba0ee4334699ecd1ea8cff0bd2b850f01d6beafc03376a5e5e5fba582Set Value119638412023-11-04 18:08:18168 days 8 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xb56784ee82a7d505504053b7160d6c8ddd7550b59bfa82ffe4abca5b096173b5Set Value119588522023-11-04 15:22:00168 days 11 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100056
0x71cea4713f4f814b1de4581934d15987db3d0a6f218ddb78f80b1da2c502dac0Set Value119451702023-11-04 7:45:56168 days 18 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x5f78357271c694188e7cce7e8f8c63e0cb55d637d3f458a91399e0c064ae2985Set Value119397702023-11-04 4:45:56168 days 21 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xbf2d5ecc18b5845fba07f7d935fd7b80690af9fb90ffe93c4d3a8fa47152486eSet Value119353902023-11-04 2:19:56169 days 8 mins ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x0c637386252b7111b30a61f7b33e2f8b6b65ed3902a75c640fa7796d1df31f68Set Value119246412023-11-03 20:21:38169 days 6 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x3d13025627deef6bf378e0e3a20d619194cda25ed0b19737620b2f148b6e6ac9Set Value119221702023-11-03 18:59:16169 days 7 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x663be3667cf7031afa03ef4dcbd9d1fcc93fc22dd9431f81a1f24cbb03923f08Set Value119212962023-11-03 18:30:08169 days 7 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100056
0xd3c00a18b3ce4046684f01af3c80c8771ffcc7420f6573c413846d7cf0ca536bSet Value119197962023-11-03 17:40:08169 days 8 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xec35c59ffc3298423e47b4a42e35980926047cdab86a6152fbbb57ec460ea6bdSet Value119170252023-11-03 16:07:46169 days 10 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0xb263b951f595fbb2e46d0e47cb35bcadd0e2b680c8eebf3108ebb426c22de738Set Value119133642023-11-03 14:05:44169 days 12 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x0fe6f09a585849a455fbfa4c95a8893ea079b3b5d74da3bcb6974c2f53696704Set Value119105942023-11-03 12:33:24169 days 13 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x2e296af6e6cf8a01c87207a331abdcd637df6fd2bbeeee1b0c4cd323345791d1Set Value119061542023-11-03 10:05:24169 days 16 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x488ec6b29673b46b907c0efe1a1a312465d90477f707aaf944eb56ca84bb76aeSet Value118958322023-11-03 4:21:20169 days 22 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000000357650.001100055
0x30234afc0e1b19a22565780ede8a5e6ea0e3fff93c07dc4cf1cf3c15fb626ac1Set Value89267552023-08-26 10:52:06238 days 15 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000007152640.022
0x9c102d3a5a05cc31852f523149c86d68f4fc7bb582702e5b9fe1c0a8bad78aa6Set Value86688902023-08-20 11:36:36244 days 14 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000007152640.022
0x4f5b4ba87bb23b412e7b09c87ee6769c7a4aa07ecb8c4151140b8553d10bd818Set Value82283982023-08-10 6:53:32254 days 19 hrs ago0xc6e9f2c57172b80535320a6219567f95032be882 IN  0xc75599a6fe53fc09c54050bcefc74df6ee6c834d0 ETH0.0000040412440.124300063
[ 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 goerli.basescan.org on 2023-08-04
*/

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

608060405234801561001057600080fd5b50600180546001600160a01b0319163317905561054d806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80635a9ade8b146100515780636aa45efc146101095780637898e0c214610131578063960384a0146101ed575b600080fd5b6100f76004803603602081101561006757600080fd5b81019060208101813564010000000081111561008257600080fd5b82018360208201111561009457600080fd5b803590602001918460018302840111640100000000831117156100b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102c2945050505050565b60408051918252519081900360200190f35b61012f6004803603602081101561011f57600080fd5b50356001600160a01b03166102df565b005b61012f6004803603606081101561014757600080fd5b81019060208101813564010000000081111561016257600080fd5b82018360208201111561017457600080fd5b8035906020019184600183028401116401000000008311171561019657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160801b03833581169450602090930135909216915061034a9050565b6102936004803603602081101561020357600080fd5b81019060208101813564010000000081111561021e57600080fd5b82018360208201111561023057600080fd5b8035906020019184600183028401116401000000008311171561025257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061049a945050505050565b60405180836001600160801b03168152602001826001600160801b031681526020019250505060405180910390f35b805160208183018101805160008252928201919093012091525481565b6001546001600160a01b031633146102f657600080fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f121e958a4cadf7f8dadefa22cc019700365240223668418faebed197da07089f9181900360200190a150565b6001546001600160a01b0316331461036157600080fd5b6000816001600160801b03166080846001600160801b0316901b019050806000856040518082805190602001908083835b602083106103b15780518252601f199092019160209182019101610392565b51815160209384036101000a6000190180199092169116179052920194855250604080519485900382018520959095556001600160801b03888116858301528716948401949094525050606080825286519082015285517fa7fc99ed7617309ee23f63ae90196a1e490d362e6f6a547a59bc809ee2291782928792879287928291608083019187019080838360005b83811015610458578181015183820152602001610440565b50505050905090810190601f1680156104855780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150505050565b600080600080846040518082805190602001908083835b602083106104d05780518252601f1990920191602091820191016104b1565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922054608081901c976001600160801b03909116965094505050505056fea26469706673582212201dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a464736f6c63430007040033

Deployed ByteCode Sourcemap

62:1131:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90:41:0;;-1:-1:-1;90:41:0;;-1:-1:-1;;;;;90:41:0:i;:::-;;;;;;;;;;;;;;;;948:242;;;;;;;;;;;;;;;;-1:-1:-1;948:242:0;-1:-1:-1;;;;;948:242:0;;:::i;:::-;;373:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;;;;;;;373:282:0;;;;;-1:-1:-1;373:282:0;;;;;;;;;-1:-1:-1;373:282:0;;-1:-1:-1;373:282:0:i;667:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;667:269:0;;-1:-1:-1;667:269:0;;-1:-1:-1;;;;;667:269:0:i;:::-;;;;;-1:-1:-1;;;;;667:269:0;;;;;;-1:-1:-1;;;;;667:269:0;;;;;;;;;;;;;;;;90:41;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;948:242::-;1057:13;;-1:-1:-1;;;;;1057:13:0;1043:10;:27;1035:36;;;;;;1082:13;:39;;-1:-1:-1;;;;;1082:39:0;;-1:-1:-1;;;;;;1082:39:0;;;;;;;;1137:45;;;;;;;;;;;;;;;;948:242;:::o;373:282::-;484:13;;-1:-1:-1;;;;;484:13:0;470:10;:27;462:36;;;;;;509:14;556:9;-1:-1:-1;;;;;526:39:0;549:3;538:5;-1:-1:-1;;;;;528:16:0;527:25;;526:39;509:56;;590:6;576;583:3;576:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;576:11:0;;;;;;;;;;;;;;;;-1:-1:-1;576:11:0;;;;;;;;;;;:20;;;;-1:-1:-1;;;;;612:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;612:35:0;;;;;;;;;;;;;;;;;;;;576:11;;612:35;;;;;;;;;;-1:-1:-1;612:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;373:282;;;;:::o;667:269::-;727:7;736;756:14;773:6;780:3;773:11;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;773:11:0;;;;;;;;;;;;;;;;-1:-1:-1;773:11:0;;;;;;;;;;;888:3;878:13;;;;-1:-1:-1;;;;;825:15:0;;;;-1:-1:-1;878:13:0;-1:-1:-1;;;;;667:269:0:o

Swarm Source

ipfs://1dbd2d2595871132685a64fa9a76d5dd82fe4b43c7a277a026abb7353f1e33a4
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading