Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : TradeIO
pragma solidity ^0.4.19; contract TradeIO { address owner; mapping(bytes8 => string) dateToHash; modifier onlyOwner () { require(owner == msg.sender); _; } function TradeIO () public { owner = msg.sender; } function changeOwner(address _newOwner) public onlyOwner { owner = _newOwner; } function saveHash(bytes8 date, string hash) public onlyOwner { require(bytes(dateToHash[date]).length == 0); dateToHash[date] = hash; } function getHash(bytes8 date) public constant returns (string) { require(bytes(dateToHash[date]).length != 0); return dateToHash[date]; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.