ETH Price: $3,113.87 (+0.51%)
Gas: 4 Gwei

Contract

0x5079b45e948A76BE17f87F14838D4048f727cFe4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Add Address To W...150419842022-06-28 22:41:40743 days ago1656456100IN
0x5079b45e...8f727cFe4
0 ETH0.0035865345.7419162
Add Address To W...150044982022-06-21 22:17:19750 days ago1655849839IN
0x5079b45e...8f727cFe4
0 ETH0.0021637527.59606528
Add Address To W...150044132022-06-21 21:56:50750 days ago1655848610IN
0x5079b45e...8f727cFe4
0 ETH0.0019063824.31361534
Add Address To W...149726702022-06-16 9:55:26755 days ago1655373326IN
0x5079b45e...8f727cFe4
0 ETH0.0021836327.84964505
Add Address To W...149681732022-06-15 15:16:52756 days ago1655306212IN
0x5079b45e...8f727cFe4
0 ETH0.0053891768.73243843
Add Address To W...149674282022-06-15 12:15:01756 days ago1655295301IN
0x5079b45e...8f727cFe4
0 ETH0.0042247953.88223476
Add Address To W...149649172022-06-15 1:32:21757 days ago1655256741IN
0x5079b45e...8f727cFe4
0 ETH0.0018843724.03294365
Add Address To W...149626932022-06-14 16:34:34757 days ago1655224474IN
0x5079b45e...8f727cFe4
0 ETH0.0038493449.09376841
Add Address To W...149585002022-06-13 22:48:33758 days ago1655160513IN
0x5079b45e...8f727cFe4
0 ETH0.003802833.77033312
Transfer Ownersh...149390642022-06-10 15:01:25761 days ago1654873285IN
0x5079b45e...8f727cFe4
0 ETH0.0024795385.37463404
0x60806040149060042022-06-05 0:02:56767 days ago1654387376IN
 Create: ZCoreWhitelist
0 ETH0.0299378540.19356763

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZCoreWhitelist

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : ZCoreClubWhitelist.sol
// 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;
    }
}

pragma solidity ^0.8.0;

/**
 * @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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

pragma solidity ^0.8.0;

contract ZCoreWhitelist is Ownable{

    // Represents the total number of accounts we want to have in our whitelist.
    // Value of this will be set with the constructor when we deploy.
    // uint  public maxWhitelistedAddresses;

    // This logic creates a mapping of address to boolean
    // default value is false. It will be set to true when an address joins.
    mapping(address => bool) public whitelistedAddresses;
    address[] public allAddresses;

    // This variable will keep track of the number of whitelisted addresses. 
    // It will increase until the maximum number is reached.
    uint public numAddressesWhitelisted;
    bool public paused = false;

    // Takes an input that will set the value of maxWhitelistAddress
    // Owner will put the value at the time of deployment
    constructor() {        
    } 

    function addAddressToWhitelist() public {
        require(!whitelistedAddresses[msg.sender], "Sender has already been whitelisted");
        require(!paused, "The contract is paused!");

        // Sets the callers address to true.
        // This makes it a legible whitelisted addres
        whitelistedAddresses[msg.sender] = true;
        allAddresses.push(msg.sender);

        // This will increase the number of whitelisted addresses
        numAddressesWhitelisted += 1;
    }

    function setPaused(bool _state) public onlyOwner {
        paused = _state;
    }

    function isUserWhiteListed(address _user) public view returns (bool) {
        return whitelistedAddresses[_user];
    }
/**
    function isWhiteListed() public view returns (bool) {
        return whitelistedAddresses[msg.sender];
    }    
**/    
 }

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"addAddressToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isUserWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numAddressesWhitelisted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526000600460006101000a81548160ff02191690831515021790555034801561002b57600080fd5b5061004861003d61004d60201b60201c565b61005560201b60201c565b610119565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610c06806101286000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461015b5780638da5cb5b146101655780638e7314d914610183578063dacc53701461018d578063f2fde38b146101bd5761009e565b806306c933d8146100a357806316c38b3c146100d357806334f9b1ba146100ef5780634011d7cd1461011f5780635c975abb1461013d575b600080fd5b6100bd60048036038101906100b891906107a7565b6101d9565b6040516100ca9190610902565b60405180910390f35b6100ed60048036038101906100e891906107d4565b6101f9565b005b610109600480360381019061010491906107a7565b610292565b6040516101169190610902565b60405180910390f35b6101276102e8565b604051610134919061099d565b60405180910390f35b6101456102ee565b6040516101529190610902565b60405180910390f35b610163610301565b005b61016d610389565b60405161017a91906108e7565b60405180910390f35b61018b6103b2565b005b6101a760048036038101906101a29190610801565b610565565b6040516101b491906108e7565b60405180910390f35b6101d760048036038101906101d291906107a7565b6105a4565b005b60016020528060005260406000206000915054906101000a900460ff1681565b61020161069c565b73ffffffffffffffffffffffffffffffffffffffff1661021f610389565b73ffffffffffffffffffffffffffffffffffffffff1614610275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026c9061093d565b60405180910390fd5b80600460006101000a81548160ff02191690831515021790555050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60035481565b600460009054906101000a900460ff1681565b61030961069c565b73ffffffffffffffffffffffffffffffffffffffff16610327610389565b73ffffffffffffffffffffffffffffffffffffffff161461037d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103749061093d565b60405180910390fd5b61038760006106a4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561043f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104369061097d565b60405180910390fd5b600460009054906101000a900460ff161561048f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104869061095d565b60405180910390fd5b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060016003600082825461055c91906109c9565b92505081905550565b6002818154811061057557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105ac61069c565b73ffffffffffffffffffffffffffffffffffffffff166105ca610389565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106179061093d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106879061091d565b60405180910390fd5b610699816106a4565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008135905061077781610b8b565b92915050565b60008135905061078c81610ba2565b92915050565b6000813590506107a181610bb9565b92915050565b6000602082840312156107bd576107bc610a96565b5b60006107cb84828501610768565b91505092915050565b6000602082840312156107ea576107e9610a96565b5b60006107f88482850161077d565b91505092915050565b60006020828403121561081757610816610a96565b5b600061082584828501610792565b91505092915050565b61083781610a1f565b82525050565b61084681610a31565b82525050565b60006108596026836109b8565b915061086482610a9b565b604082019050919050565b600061087c6020836109b8565b915061088782610aea565b602082019050919050565b600061089f6017836109b8565b91506108aa82610b13565b602082019050919050565b60006108c26023836109b8565b91506108cd82610b3c565b604082019050919050565b6108e181610a5d565b82525050565b60006020820190506108fc600083018461082e565b92915050565b6000602082019050610917600083018461083d565b92915050565b600060208201905081810360008301526109368161084c565b9050919050565b600060208201905081810360008301526109568161086f565b9050919050565b6000602082019050818103600083015261097681610892565b9050919050565b60006020820190508181036000830152610996816108b5565b9050919050565b60006020820190506109b260008301846108d8565b92915050565b600082825260208201905092915050565b60006109d482610a5d565b91506109df83610a5d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a1457610a13610a67565b5b828201905092915050565b6000610a2a82610a3d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f53656e6465722068617320616c7265616479206265656e2077686974656c697360008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b610b9481610a1f565b8114610b9f57600080fd5b50565b610bab81610a31565b8114610bb657600080fd5b50565b610bc281610a5d565b8114610bcd57600080fd5b5056fea26469706673582212203e94dd218eef5c40db6c5ad53d9d1eaebad0917b636ab419de8e9793e92cbc5964736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461015b5780638da5cb5b146101655780638e7314d914610183578063dacc53701461018d578063f2fde38b146101bd5761009e565b806306c933d8146100a357806316c38b3c146100d357806334f9b1ba146100ef5780634011d7cd1461011f5780635c975abb1461013d575b600080fd5b6100bd60048036038101906100b891906107a7565b6101d9565b6040516100ca9190610902565b60405180910390f35b6100ed60048036038101906100e891906107d4565b6101f9565b005b610109600480360381019061010491906107a7565b610292565b6040516101169190610902565b60405180910390f35b6101276102e8565b604051610134919061099d565b60405180910390f35b6101456102ee565b6040516101529190610902565b60405180910390f35b610163610301565b005b61016d610389565b60405161017a91906108e7565b60405180910390f35b61018b6103b2565b005b6101a760048036038101906101a29190610801565b610565565b6040516101b491906108e7565b60405180910390f35b6101d760048036038101906101d291906107a7565b6105a4565b005b60016020528060005260406000206000915054906101000a900460ff1681565b61020161069c565b73ffffffffffffffffffffffffffffffffffffffff1661021f610389565b73ffffffffffffffffffffffffffffffffffffffff1614610275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026c9061093d565b60405180910390fd5b80600460006101000a81548160ff02191690831515021790555050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60035481565b600460009054906101000a900460ff1681565b61030961069c565b73ffffffffffffffffffffffffffffffffffffffff16610327610389565b73ffffffffffffffffffffffffffffffffffffffff161461037d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103749061093d565b60405180910390fd5b61038760006106a4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561043f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104369061097d565b60405180910390fd5b600460009054906101000a900460ff161561048f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104869061095d565b60405180910390fd5b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060016003600082825461055c91906109c9565b92505081905550565b6002818154811061057557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105ac61069c565b73ffffffffffffffffffffffffffffffffffffffff166105ca610389565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106179061093d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106879061091d565b60405180910390fd5b610699816106a4565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008135905061077781610b8b565b92915050565b60008135905061078c81610ba2565b92915050565b6000813590506107a181610bb9565b92915050565b6000602082840312156107bd576107bc610a96565b5b60006107cb84828501610768565b91505092915050565b6000602082840312156107ea576107e9610a96565b5b60006107f88482850161077d565b91505092915050565b60006020828403121561081757610816610a96565b5b600061082584828501610792565b91505092915050565b61083781610a1f565b82525050565b61084681610a31565b82525050565b60006108596026836109b8565b915061086482610a9b565b604082019050919050565b600061087c6020836109b8565b915061088782610aea565b602082019050919050565b600061089f6017836109b8565b91506108aa82610b13565b602082019050919050565b60006108c26023836109b8565b91506108cd82610b3c565b604082019050919050565b6108e181610a5d565b82525050565b60006020820190506108fc600083018461082e565b92915050565b6000602082019050610917600083018461083d565b92915050565b600060208201905081810360008301526109368161084c565b9050919050565b600060208201905081810360008301526109568161086f565b9050919050565b6000602082019050818103600083015261097681610892565b9050919050565b60006020820190508181036000830152610996816108b5565b9050919050565b60006020820190506109b260008301846108d8565b92915050565b600082825260208201905092915050565b60006109d482610a5d565b91506109df83610a5d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a1457610a13610a67565b5b828201905092915050565b6000610a2a82610a3d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f53656e6465722068617320616c7265616479206265656e2077686974656c697360008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b610b9481610a1f565b8114610b9f57600080fd5b50565b610bab81610a31565b8114610bb657600080fd5b50565b610bc281610a5d565b8114610bcd57600080fd5b5056fea26469706673582212203e94dd218eef5c40db6c5ad53d9d1eaebad0917b636ab419de8e9793e92cbc5964736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.