Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 78 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Add Hash | 8045244 | 2465 days ago | IN | 0 ETH | 0.00036307 | ||||
| Add Hash | 8038636 | 2466 days ago | IN | 0 ETH | 0.00081691 | ||||
| Add Hash | 8032316 | 2467 days ago | IN | 0 ETH | 0.00077152 | ||||
| Add Hash | 8025826 | 2468 days ago | IN | 0 ETH | 0.00104383 | ||||
| Add Hash | 8006337 | 2471 days ago | IN | 0 ETH | 0.00018153 | ||||
| Add Hash | 8000089 | 2472 days ago | IN | 0 ETH | 0.0002723 | ||||
| Add Hash | 7993597 | 2473 days ago | IN | 0 ETH | 0.00104383 | ||||
| Add Hash | 7987216 | 2474 days ago | IN | 0 ETH | 0.0002723 | ||||
| Add Hash | 7980818 | 2475 days ago | IN | 0 ETH | 0.00022692 | ||||
| Add Hash | 7961488 | 2478 days ago | IN | 0 ETH | 0.00058999 | ||||
| Add Hash | 7955046 | 2479 days ago | IN | 0 ETH | 0.00018128 | ||||
| Add Hash | 7948689 | 2480 days ago | IN | 0 ETH | 0.00022692 | ||||
| Add Hash | 7942257 | 2481 days ago | IN | 0 ETH | 0.00036307 | ||||
| Add Hash | 7936003 | 2482 days ago | IN | 0 ETH | 0.0002723 | ||||
| Add Hash | 7916463 | 2486 days ago | IN | 0 ETH | 0.00022692 | ||||
| Add Hash | 7915548 | 2486 days ago | IN | 0 ETH | 0.00027192 | ||||
| Add Hash | 7910153 | 2487 days ago | IN | 0 ETH | 0.00018153 | ||||
| Add Hash | 7909207 | 2487 days ago | IN | 0 ETH | 0.0002723 | ||||
| Add Hash | 7903788 | 2487 days ago | IN | 0 ETH | 0.00040788 | ||||
| Add Hash | 7902757 | 2488 days ago | IN | 0 ETH | 0.00018153 | ||||
| Add Hash | 7897321 | 2489 days ago | IN | 0 ETH | 0.00022692 | ||||
| Add Hash | 7896388 | 2489 days ago | IN | 0 ETH | 0.00022692 | ||||
| Add Hash | 7892418 | 2489 days ago | IN | 0 ETH | 0.0002723 | ||||
| Add Hash | 7889977 | 2490 days ago | IN | 0 ETH | 0.00058999 | ||||
| Add Hash | 7871650 | 2493 days ago | IN | 0 ETH | 0.00040845 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
HashStore
Compiler Version
v0.5.0+commit.1d4f565a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2019-04-17
*/
pragma solidity 0.5.0;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor () internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
/**
* @return the address of the owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner());
_;
}
/**
* @return true if `msg.sender` is the owner of the contract.
*/
function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/**
* @title StateDrivenHashStore
* @dev The contract has his state and getters
*/
contract HashStore is Ownable {
mapping(bytes32 => uint256) private _hashes;
event HashAdded(bytes32 hash);
function addHash(bytes32 rootHash) external onlyOwner {
require(_hashes[rootHash] == 0, "addHash: this hash was already deployed");
_hashes[rootHash] = block.timestamp;
emit HashAdded(rootHash);
}
function getHashTimestamp(bytes32 rootHash) external view returns (uint256) {
return _hashes[rootHash];
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"rootHash","type":"bytes32"}],"name":"addHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"rootHash","type":"bytes32"}],"name":"getHashTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"hash","type":"bytes32"}],"name":"HashAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]Contract Creation Code
6080604081905260008054600160a060020a0319163317808255600160a060020a0316917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a361035d806100576000396000f3fe60806040526004361061006c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166343e08ad1811461007157806382eed7cd1461009d5780638da5cb5b146100d95780638f32d59b1461010a578063f2fde38b14610133575b600080fd5b34801561007d57600080fd5b5061009b6004803603602081101561009457600080fd5b5035610166565b005b3480156100a957600080fd5b506100c7600480360360208110156100c057600080fd5b5035610263565b60408051918252519081900360200190f35b3480156100e557600080fd5b506100ee610275565b60408051600160a060020a039092168252519081900360200190f35b34801561011657600080fd5b5061011f610284565b604080519115158252519081900360200190f35b34801561013f57600080fd5b5061009b6004803603602081101561015657600080fd5b5035600160a060020a0316610295565b61016e610284565b151561017957600080fd5b6000818152600160205260409020541561021a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f616464486173683a207468697320686173682077617320616c7265616479206460448201527f65706c6f79656400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600081815260016020908152604091829020429055815183815291517f43af73c832d9fe061da0a995686f56bf3de033272274905119d6d7441fa1d89c9281900390910190a150565b60009081526001602052604090205490565b600054600160a060020a031690565b600054600160a060020a0316331490565b61029d610284565b15156102a857600080fd5b6102b1816102b4565b50565b600160a060020a03811615156102c957600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905556fea165627a7a72305820032b5bad7acee1dbf72a7cd9aa01c54e0cf632d0f6ba33b031bb3d609ccf54870029
Deployed Bytecode
0x60806040526004361061006c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166343e08ad1811461007157806382eed7cd1461009d5780638da5cb5b146100d95780638f32d59b1461010a578063f2fde38b14610133575b600080fd5b34801561007d57600080fd5b5061009b6004803603602081101561009457600080fd5b5035610166565b005b3480156100a957600080fd5b506100c7600480360360208110156100c057600080fd5b5035610263565b60408051918252519081900360200190f35b3480156100e557600080fd5b506100ee610275565b60408051600160a060020a039092168252519081900360200190f35b34801561011657600080fd5b5061011f610284565b604080519115158252519081900360200190f35b34801561013f57600080fd5b5061009b6004803603602081101561015657600080fd5b5035600160a060020a0316610295565b61016e610284565b151561017957600080fd5b6000818152600160205260409020541561021a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f616464486173683a207468697320686173682077617320616c7265616479206460448201527f65706c6f79656400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600081815260016020908152604091829020429055815183815291517f43af73c832d9fe061da0a995686f56bf3de033272274905119d6d7441fa1d89c9281900390910190a150565b60009081526001602052604090205490565b600054600160a060020a031690565b600054600160a060020a0316331490565b61029d610284565b15156102a857600080fd5b6102b1816102b4565b50565b600160a060020a03811615156102c957600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905556fea165627a7a72305820032b5bad7acee1dbf72a7cd9aa01c54e0cf632d0f6ba33b031bb3d609ccf54870029
Swarm Source
bzzr://032b5bad7acee1dbf72a7cd9aa01c54e0cf632d0f6ba33b031bb3d609ccf5487
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.