Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Add Address To W... | 15041984 | 743 days ago | IN | 0 ETH | 0.00358653 | ||||
Add Address To W... | 15004498 | 750 days ago | IN | 0 ETH | 0.00216375 | ||||
Add Address To W... | 15004413 | 750 days ago | IN | 0 ETH | 0.00190638 | ||||
Add Address To W... | 14972670 | 755 days ago | IN | 0 ETH | 0.00218363 | ||||
Add Address To W... | 14968173 | 756 days ago | IN | 0 ETH | 0.00538917 | ||||
Add Address To W... | 14967428 | 756 days ago | IN | 0 ETH | 0.00422479 | ||||
Add Address To W... | 14964917 | 757 days ago | IN | 0 ETH | 0.00188437 | ||||
Add Address To W... | 14962693 | 757 days ago | IN | 0 ETH | 0.00384934 | ||||
Add Address To W... | 14958500 | 758 days ago | IN | 0 ETH | 0.0038028 | ||||
Transfer Ownersh... | 14939064 | 761 days ago | IN | 0 ETH | 0.00247953 | ||||
0x60806040 | 14906004 | 767 days ago | IN | Create: ZCoreWhitelist | 0 ETH | 0.02993785 |
Loading...
Loading
Contract Name:
ZCoreWhitelist
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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]; } **/ }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
60806040526000600460006101000a81548160ff02191690831515021790555034801561002b57600080fd5b5061004861003d61004d60201b60201c565b61005560201b60201c565b610119565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610c06806101286000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461015b5780638da5cb5b146101655780638e7314d914610183578063dacc53701461018d578063f2fde38b146101bd5761009e565b806306c933d8146100a357806316c38b3c146100d357806334f9b1ba146100ef5780634011d7cd1461011f5780635c975abb1461013d575b600080fd5b6100bd60048036038101906100b891906107a7565b6101d9565b6040516100ca9190610902565b60405180910390f35b6100ed60048036038101906100e891906107d4565b6101f9565b005b610109600480360381019061010491906107a7565b610292565b6040516101169190610902565b60405180910390f35b6101276102e8565b604051610134919061099d565b60405180910390f35b6101456102ee565b6040516101529190610902565b60405180910390f35b610163610301565b005b61016d610389565b60405161017a91906108e7565b60405180910390f35b61018b6103b2565b005b6101a760048036038101906101a29190610801565b610565565b6040516101b491906108e7565b60405180910390f35b6101d760048036038101906101d291906107a7565b6105a4565b005b60016020528060005260406000206000915054906101000a900460ff1681565b61020161069c565b73ffffffffffffffffffffffffffffffffffffffff1661021f610389565b73ffffffffffffffffffffffffffffffffffffffff1614610275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026c9061093d565b60405180910390fd5b80600460006101000a81548160ff02191690831515021790555050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60035481565b600460009054906101000a900460ff1681565b61030961069c565b73ffffffffffffffffffffffffffffffffffffffff16610327610389565b73ffffffffffffffffffffffffffffffffffffffff161461037d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103749061093d565b60405180910390fd5b61038760006106a4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561043f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104369061097d565b60405180910390fd5b600460009054906101000a900460ff161561048f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104869061095d565b60405180910390fd5b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060016003600082825461055c91906109c9565b92505081905550565b6002818154811061057557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105ac61069c565b73ffffffffffffffffffffffffffffffffffffffff166105ca610389565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106179061093d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106879061091d565b60405180910390fd5b610699816106a4565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008135905061077781610b8b565b92915050565b60008135905061078c81610ba2565b92915050565b6000813590506107a181610bb9565b92915050565b6000602082840312156107bd576107bc610a96565b5b60006107cb84828501610768565b91505092915050565b6000602082840312156107ea576107e9610a96565b5b60006107f88482850161077d565b91505092915050565b60006020828403121561081757610816610a96565b5b600061082584828501610792565b91505092915050565b61083781610a1f565b82525050565b61084681610a31565b82525050565b60006108596026836109b8565b915061086482610a9b565b604082019050919050565b600061087c6020836109b8565b915061088782610aea565b602082019050919050565b600061089f6017836109b8565b91506108aa82610b13565b602082019050919050565b60006108c26023836109b8565b91506108cd82610b3c565b604082019050919050565b6108e181610a5d565b82525050565b60006020820190506108fc600083018461082e565b92915050565b6000602082019050610917600083018461083d565b92915050565b600060208201905081810360008301526109368161084c565b9050919050565b600060208201905081810360008301526109568161086f565b9050919050565b6000602082019050818103600083015261097681610892565b9050919050565b60006020820190508181036000830152610996816108b5565b9050919050565b60006020820190506109b260008301846108d8565b92915050565b600082825260208201905092915050565b60006109d482610a5d565b91506109df83610a5d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a1457610a13610a67565b5b828201905092915050565b6000610a2a82610a3d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f53656e6465722068617320616c7265616479206265656e2077686974656c697360008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b610b9481610a1f565b8114610b9f57600080fd5b50565b610bab81610a31565b8114610bb657600080fd5b50565b610bc281610a5d565b8114610bcd57600080fd5b5056fea26469706673582212203e94dd218eef5c40db6c5ad53d9d1eaebad0917b636ab419de8e9793e92cbc5964736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461015b5780638da5cb5b146101655780638e7314d914610183578063dacc53701461018d578063f2fde38b146101bd5761009e565b806306c933d8146100a357806316c38b3c146100d357806334f9b1ba146100ef5780634011d7cd1461011f5780635c975abb1461013d575b600080fd5b6100bd60048036038101906100b891906107a7565b6101d9565b6040516100ca9190610902565b60405180910390f35b6100ed60048036038101906100e891906107d4565b6101f9565b005b610109600480360381019061010491906107a7565b610292565b6040516101169190610902565b60405180910390f35b6101276102e8565b604051610134919061099d565b60405180910390f35b6101456102ee565b6040516101529190610902565b60405180910390f35b610163610301565b005b61016d610389565b60405161017a91906108e7565b60405180910390f35b61018b6103b2565b005b6101a760048036038101906101a29190610801565b610565565b6040516101b491906108e7565b60405180910390f35b6101d760048036038101906101d291906107a7565b6105a4565b005b60016020528060005260406000206000915054906101000a900460ff1681565b61020161069c565b73ffffffffffffffffffffffffffffffffffffffff1661021f610389565b73ffffffffffffffffffffffffffffffffffffffff1614610275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026c9061093d565b60405180910390fd5b80600460006101000a81548160ff02191690831515021790555050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60035481565b600460009054906101000a900460ff1681565b61030961069c565b73ffffffffffffffffffffffffffffffffffffffff16610327610389565b73ffffffffffffffffffffffffffffffffffffffff161461037d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103749061093d565b60405180910390fd5b61038760006106a4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561043f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104369061097d565b60405180910390fd5b600460009054906101000a900460ff161561048f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104869061095d565b60405180910390fd5b60018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506002339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060016003600082825461055c91906109c9565b92505081905550565b6002818154811061057557600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105ac61069c565b73ffffffffffffffffffffffffffffffffffffffff166105ca610389565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106179061093d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106879061091d565b60405180910390fd5b610699816106a4565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008135905061077781610b8b565b92915050565b60008135905061078c81610ba2565b92915050565b6000813590506107a181610bb9565b92915050565b6000602082840312156107bd576107bc610a96565b5b60006107cb84828501610768565b91505092915050565b6000602082840312156107ea576107e9610a96565b5b60006107f88482850161077d565b91505092915050565b60006020828403121561081757610816610a96565b5b600061082584828501610792565b91505092915050565b61083781610a1f565b82525050565b61084681610a31565b82525050565b60006108596026836109b8565b915061086482610a9b565b604082019050919050565b600061087c6020836109b8565b915061088782610aea565b602082019050919050565b600061089f6017836109b8565b91506108aa82610b13565b602082019050919050565b60006108c26023836109b8565b91506108cd82610b3c565b604082019050919050565b6108e181610a5d565b82525050565b60006020820190506108fc600083018461082e565b92915050565b6000602082019050610917600083018461083d565b92915050565b600060208201905081810360008301526109368161084c565b9050919050565b600060208201905081810360008301526109568161086f565b9050919050565b6000602082019050818103600083015261097681610892565b9050919050565b60006020820190508181036000830152610996816108b5565b9050919050565b60006020820190506109b260008301846108d8565b92915050565b600082825260208201905092915050565b60006109d482610a5d565b91506109df83610a5d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610a1457610a13610a67565b5b828201905092915050565b6000610a2a82610a3d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f53656e6465722068617320616c7265616479206265656e2077686974656c697360008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b610b9481610a1f565b8114610b9f57600080fd5b50565b610bab81610a31565b8114610bb657600080fd5b50565b610bc281610a5d565b8114610bcd57600080fd5b5056fea26469706673582212203e94dd218eef5c40db6c5ad53d9d1eaebad0917b636ab419de8e9793e92cbc5964736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.