ETH Price: $2,073.46 (-3.89%)
Gas: 0.16 Gwei

Contract

0x00E0Ad68a905F3E4d95ECAb88faA414a15Dfd64f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Starting Ind...135085532021-10-28 23:01:411605 days ago1635462101IN
0x00E0Ad68...a15Dfd64f
0 ETH0.00934759203.62473532
Set Provenance135085332021-10-28 22:57:031605 days ago1635461823IN
0x00E0Ad68...a15Dfd64f
0 ETH0.019362210

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheModZSecurity

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

contract TheModZSecurity is Ownable {

    bool public isProvenanceLocked;

    uint public unlockTimestamp = 1635462000;
    uint public startingIndex;
    string public PROVENANCE;


    function lockProvenance() external onlyOwner {
        isProvenanceLocked = true;
    }

    function setUnlockTimestamp(uint _unlockTimestamp) external onlyOwner {
        unlockTimestamp = _unlockTimestamp;
    }

    function setProvenance(string memory provenance) external onlyOwner {
        require(!isProvenanceLocked, "PROVENANCE locked");
        PROVENANCE = provenance;
    }

    function setStartingIndex() external {
        require(startingIndex == 0, "Starting index already set");
        require(block.timestamp >= unlockTimestamp, "Contract is locked");
        uint256 random = uint256(
            keccak256(
                abi.encodePacked(
                    block.number,
                    blockhash(block.number - 1)
                )
            )
        );
        startingIndex = random % 5555 + 1;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "berlin",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isProvenanceLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlockTimestamp","type":"uint256"}],"name":"setUnlockTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405263617b2b7060015534801561001857600080fd5b5061002233610027565b610077565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610831806100866000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063aa082a9d11610071578063aa082a9d14610124578063cb774d471461013b578063e986655014610144578063ea7523ee1461014c578063f2fde38b14610154578063ffe630b51461016757600080fd5b80633a5111d4146100ae5780636373a6b1146100d7578063715018a6146100ec578063844c9026146100f65780638da5cb5b14610109575b600080fd5b6000546100c290600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b6100df61017a565b6040516100ce91906106b9565b6100f4610208565b005b6100f46101043660046106a0565b610247565b6000546040516001600160a01b0390911681526020016100ce565b61012d60015481565b6040519081526020016100ce565b61012d60025481565b6100f4610276565b6100f461036d565b6100f46101623660046105bf565b6103ac565b6100f46101753660046105ef565b610447565b6003805461018790610772565b80601f01602080910402602001604051908101604052809291908181526020018280546101b390610772565b80156102005780601f106101d557610100808354040283529160200191610200565b820191906000526020600020905b8154815290600101906020018083116101e357829003601f168201915b505050505081565b6000546001600160a01b0316331461023b5760405162461bcd60e51b81526004016102329061070e565b60405180910390fd5b61024560006104d6565b565b6000546001600160a01b031633146102715760405162461bcd60e51b81526004016102329061070e565b600155565b600254156102c65760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c7265616479207365740000000000006044820152606401610232565b60015442101561030d5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610232565b60004361031b60018261075b565b40604051602001610336929190918252602082015260400190565b60408051601f198184030181529190528051602090910120905061035c6115b3826107ad565b610367906001610743565b60025550565b6000546001600160a01b031633146103975760405162461bcd60e51b81526004016102329061070e565b6000805460ff60a01b1916600160a01b179055565b6000546001600160a01b031633146103d65760405162461bcd60e51b81526004016102329061070e565b6001600160a01b03811661043b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610232565b610444816104d6565b50565b6000546001600160a01b031633146104715760405162461bcd60e51b81526004016102329061070e565b600054600160a01b900460ff16156104bf5760405162461bcd60e51b8152602060048201526011602482015270141493d59153905390d1481b1bd8dad959607a1b6044820152606401610232565b80516104d2906003906020840190610526565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805461053290610772565b90600052602060002090601f016020900481019282610554576000855561059a565b82601f1061056d57805160ff191683800117855561059a565b8280016001018555821561059a579182015b8281111561059a57825182559160200191906001019061057f565b506105a69291506105aa565b5090565b5b808211156105a657600081556001016105ab565b6000602082840312156105d157600080fd5b81356001600160a01b03811681146105e857600080fd5b9392505050565b60006020828403121561060157600080fd5b813567ffffffffffffffff8082111561061957600080fd5b818401915084601f83011261062d57600080fd5b81358181111561063f5761063f6107e5565b604051601f8201601f19908116603f01168101908382118183101715610667576106676107e5565b8160405282815287602084870101111561068057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156106b257600080fd5b5035919050565b600060208083528351808285015260005b818110156106e6578581018301518582016040015282016106ca565b818111156106f8576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610756576107566107cf565b500190565b60008282101561076d5761076d6107cf565b500390565b600181811c9082168061078657607f821691505b602082108114156107a757634e487b7160e01b600052602260045260246000fd5b50919050565b6000826107ca57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122008e0786b92e050d03dfffeb9ec19ac21320a949d951eaa508b834f2c04f1387564736f6c63430008060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063aa082a9d11610071578063aa082a9d14610124578063cb774d471461013b578063e986655014610144578063ea7523ee1461014c578063f2fde38b14610154578063ffe630b51461016757600080fd5b80633a5111d4146100ae5780636373a6b1146100d7578063715018a6146100ec578063844c9026146100f65780638da5cb5b14610109575b600080fd5b6000546100c290600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b6100df61017a565b6040516100ce91906106b9565b6100f4610208565b005b6100f46101043660046106a0565b610247565b6000546040516001600160a01b0390911681526020016100ce565b61012d60015481565b6040519081526020016100ce565b61012d60025481565b6100f4610276565b6100f461036d565b6100f46101623660046105bf565b6103ac565b6100f46101753660046105ef565b610447565b6003805461018790610772565b80601f01602080910402602001604051908101604052809291908181526020018280546101b390610772565b80156102005780601f106101d557610100808354040283529160200191610200565b820191906000526020600020905b8154815290600101906020018083116101e357829003601f168201915b505050505081565b6000546001600160a01b0316331461023b5760405162461bcd60e51b81526004016102329061070e565b60405180910390fd5b61024560006104d6565b565b6000546001600160a01b031633146102715760405162461bcd60e51b81526004016102329061070e565b600155565b600254156102c65760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c7265616479207365740000000000006044820152606401610232565b60015442101561030d5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81b1bd8dad95960721b6044820152606401610232565b60004361031b60018261075b565b40604051602001610336929190918252602082015260400190565b60408051601f198184030181529190528051602090910120905061035c6115b3826107ad565b610367906001610743565b60025550565b6000546001600160a01b031633146103975760405162461bcd60e51b81526004016102329061070e565b6000805460ff60a01b1916600160a01b179055565b6000546001600160a01b031633146103d65760405162461bcd60e51b81526004016102329061070e565b6001600160a01b03811661043b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610232565b610444816104d6565b50565b6000546001600160a01b031633146104715760405162461bcd60e51b81526004016102329061070e565b600054600160a01b900460ff16156104bf5760405162461bcd60e51b8152602060048201526011602482015270141493d59153905390d1481b1bd8dad959607a1b6044820152606401610232565b80516104d2906003906020840190610526565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805461053290610772565b90600052602060002090601f016020900481019282610554576000855561059a565b82601f1061056d57805160ff191683800117855561059a565b8280016001018555821561059a579182015b8281111561059a57825182559160200191906001019061057f565b506105a69291506105aa565b5090565b5b808211156105a657600081556001016105ab565b6000602082840312156105d157600080fd5b81356001600160a01b03811681146105e857600080fd5b9392505050565b60006020828403121561060157600080fd5b813567ffffffffffffffff8082111561061957600080fd5b818401915084601f83011261062d57600080fd5b81358181111561063f5761063f6107e5565b604051601f8201601f19908116603f01168101908382118183101715610667576106676107e5565b8160405282815287602084870101111561068057600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156106b257600080fd5b5035919050565b600060208083528351808285015260005b818110156106e6578581018301518582016040015282016106ca565b818111156106f8576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610756576107566107cf565b500190565b60008282101561076d5761076d6107cf565b500390565b600181811c9082168061078657607f821691505b602082108114156107a757634e487b7160e01b600052602260045260246000fd5b50919050565b6000826107ca57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122008e0786b92e050d03dfffeb9ec19ac21320a949d951eaa508b834f2c04f1387564736f6c63430008060033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.