ERC-721
Overview
Max Total Supply
2,152 ZM
Holders
841
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 ZMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EtherMonkeyZombie
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Sources flattened with hardhat v2.5.0 https://hardhat.org // File contracts/utils/introspection/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File contracts/token/ERC721/IERC721.sol pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // File contracts/token/ERC721/IERC721Receiver.sol pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File contracts/token/ERC721/extensions/IERC721Metadata.sol pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File contracts/utils/Address.sol pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File contracts/utils/Context.sol 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File contracts/utils/Strings.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File contracts/utils/introspection/ERC165.sol pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File contracts/token/ERC721/ERC721.sol pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } } // File contracts/token/ERC721/extensions/ERC721URIStorage.sol pragma solidity ^0.8.0; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } // File contracts/access/Ownable.sol 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } pragma solidity ^0.8.0; contract EtherMonkeyZombie is ERC721URIStorage, Ownable{ event MintMonkeys (address indexed minter, uint256 startWith, uint256 times); uint256 public totalMonkeys; uint256 public totalCount = 8888; uint256 public maxBatch = 100; uint256 public price = 50000000000000000; string public baseURI; bool public started; bool public whiteListStart; mapping(address => bool) whiteList; mapping(address => uint256) whiteListMintCount; uint addressRegistryCount; constructor(string memory name_, string memory symbol_, string memory baseURI_) ERC721(name_, symbol_) { baseURI = baseURI_; } modifier canWhitelistMint() { require(whiteListStart, "Hang on boys, youll get in soon"); require(whiteList[msg.sender] == true, "Not whitelisted."); _; } modifier mintEnabled() { require(started, "not started"); _; } function totalSupply() public view virtual returns (uint256) { return totalMonkeys; } function _baseURI() internal view virtual override returns (string memory){ return baseURI; } function setBaseURI(string memory _newURI) public onlyOwner { baseURI = _newURI; } function changePrice(uint256 _newPrice) public onlyOwner { price = _newPrice; } function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwner { _setTokenURI(_tokenId, _tokenURI); } function setNormalStart(bool _start) public onlyOwner { started = _start; } function setWhiteListStart(bool _start) public onlyOwner { whiteListStart = _start; } function getWhitelistMintAmount(address _addr) public view virtual returns (uint256) { return whiteListMintCount[_addr]; } function mintMonkey(uint256 _times) payable public mintEnabled { require(_times >0 && _times <= maxBatch, "mint wrong number"); require(totalMonkeys + _times <= totalCount, "too much"); require(msg.value == _times * price, "value error"); payable(owner()).transfer(msg.value); emit MintMonkeys(_msgSender(), totalMonkeys+1, _times); for(uint256 i=0; i< _times; i++){ _mint(_msgSender(), 1 + totalMonkeys++); } } function adminMint(uint256 _times) payable public onlyOwner { require(_times >0 && _times <= maxBatch, "mint wrong number"); require(totalMonkeys + _times <= totalCount, "too much"); require(msg.value == _times * price, "value error"); payable(owner()).transfer(msg.value); emit MintMonkeys(_msgSender(), totalMonkeys+1, _times); for(uint256 i=0; i< _times; i++){ _mint(_msgSender(), 1 + totalMonkeys++); } } function whitelistMint(uint _times) payable public canWhitelistMint { require(whiteListMintCount[msg.sender] - _times >= 0, "Over mint limit for address."); require(totalMonkeys + _times <= totalCount, "Mint amount will exceed total collection amount."); require(msg.value == _times * price, "Incorrect transaction value."); payable(owner()).transfer(msg.value); whiteListMintCount[_msgSender()] -= _times; emit MintMonkeys(_msgSender(), totalMonkeys+1, _times); for(uint256 i=0; i< _times; i++){ _mint(_msgSender(), 1 + totalMonkeys++); } } function adminMintGiveaways(address _addr) public onlyOwner { require(totalMonkeys + 1 <= totalCount, "Mint amount will exceed total collection amount."); emit MintMonkeys(_addr, totalMonkeys+1, 1); _mint(_addr, 1 + totalMonkeys++); } function addToWhitelist(address _addr, uint numberOfMints) public onlyOwner { whiteList[_addr] = true; whiteListMintCount[_addr] = numberOfMints; addressRegistryCount++; } function addToWhitelistBulk(address[] memory _addr,uint[] memory _numberOfMints) public onlyOwner { for(uint256 i = 0; i < _addr.length; i++){ whiteList[_addr[i]] = true; whiteListMintCount[_addr[i]] = _numberOfMints[i]; } } //Check address is in whiteList function isAddressInWhitelist(address _addr) public view virtual returns(bool) { return whiteList[_addr] == true; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"startWith","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"times","type":"uint256"}],"name":"MintMonkeys","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256[]","name":"_numberOfMints","type":"uint256[]"}],"name":"addToWhitelistBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"adminMintGiveaways","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getWhitelistMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isAddressInWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"mintMonkey","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_start","type":"bool"}],"name":"setNormalStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_start","type":"bool"}],"name":"setWhiteListStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMonkeys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteListStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526122b86009556064600a5566b1a2bc2ec50000600b553480156200002757600080fd5b5060405162002e5b38038062002e5b8339810160408190526200004a9162000250565b82518390839062000063906000906020850190620000ff565b50805162000079906001906020840190620000ff565b50505060006200008e620000fb60201b60201c565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508051620000f190600c906020840190620000ff565b5050505062000330565b3390565b8280546200010d90620002dd565b90600052602060002090601f0160209004810192826200013157600085556200017c565b82601f106200014c57805160ff19168380011785556200017c565b828001600101855582156200017c579182015b828111156200017c5782518255916020019190600101906200015f565b506200018a9291506200018e565b5090565b5b808211156200018a57600081556001016200018f565b600082601f830112620001b6578081fd5b81516001600160401b0380821115620001d357620001d36200031a565b6040516020601f8401601f1916820181018381118382101715620001fb57620001fb6200031a565b604052838252858401810187101562000212578485fd5b8492505b8383101562000235578583018101518284018201529182019162000216565b838311156200024657848185840101525b5095945050505050565b60008060006060848603121562000265578283fd5b83516001600160401b03808211156200027c578485fd5b6200028a87838801620001a5565b94506020860151915080821115620002a0578384fd5b620002ae87838801620001a5565b93506040860151915080821115620002c4578283fd5b50620002d386828701620001a5565b9150509250925092565b600281046001821680620002f257607f821691505b602082108114156200031457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612b1b80620003406000396000f3fe60806040526004361061021a5760003560e01c806370a08231116101235780639afdf2f3116100ab578063bffb26ce1161006f578063bffb26ce146105c0578063c1f26123146105e0578063c87b56dd146105f3578063e985e9c514610613578063f2fde38b146106335761021a565b80639afdf2f31461052b578063a035b1fe1461054b578063a22cb46514610560578063a2b40d1914610580578063b88d4fde146105a05761021a565b80638da5cb5b116100f25780638da5cb5b146104ac5780638dee43be146104c1578063917bb57f146104d657806395d89b41146104f65780639a3132991461050b5761021a565b806370a082311461044f578063715018a61461046f578063868ff4a21461048457806388eae705146104975761021a565b806334eafb11116101a657806355f804b31161017557806355f804b3146103c55780635f4f603d146103e55780636352211e1461040557806367765b87146104255780636c0360eb1461043a5761021a565b806334eafb111461035d5780633c49a8a91461037257806342842e0e1461039257806355aabf5b146103b25761021a565b8063162094c4116101ed578063162094c4146102c657806318160ddd146102e65780631f2698ab14610308578063214405fc1461031d57806323b872dd1461033d5761021a565b806301ffc9a71461021f57806306fdde0314610255578063081812fc14610277578063095ea7b3146102a4575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046120cd565b610653565b60405161024c9190612237565b60405180910390f35b34801561026157600080fd5b5061026a61069b565b60405161024c9190612242565b34801561028357600080fd5b50610297610292366004612138565b61072d565b60405161024c91906121e6565b3480156102b057600080fd5b506102c46102bf366004611fcc565b610779565b005b3480156102d257600080fd5b506102c46102e1366004612150565b610811565b3480156102f257600080fd5b506102fb61085e565b60405161024c9190612910565b34801561031457600080fd5b5061023f610864565b34801561032957600080fd5b506102c4610338366004611fcc565b61086d565b34801561034957600080fd5b506102c4610358366004611eef565b6108f3565b34801561036957600080fd5b506102fb61092b565b34801561037e57600080fd5b506102c461038d366004611ea3565b610931565b34801561039e57600080fd5b506102c46103ad366004611eef565b610a0c565b6102c46103c0366004612138565b610a27565b3480156103d157600080fd5b506102c46103e0366004612105565b610b90565b3480156103f157600080fd5b506102c46104003660046120b3565b610be2565b34801561041157600080fd5b50610297610420366004612138565b610c3b565b34801561043157600080fd5b506102fb610c70565b34801561044657600080fd5b5061026a610c76565b34801561045b57600080fd5b506102fb61046a366004611ea3565b610d04565b34801561047b57600080fd5b506102c4610d48565b6102c4610492366004612138565b610dd1565b3480156104a357600080fd5b5061023f610fb0565b3480156104b857600080fd5b50610297610fbe565b3480156104cd57600080fd5b506102fb610fcd565b3480156104e257600080fd5b506102c46104f13660046120b3565b610fd3565b34801561050257600080fd5b5061026a611025565b34801561051757600080fd5b5061023f610526366004611ea3565b611034565b34801561053757600080fd5b506102fb610546366004611ea3565b611057565b34801561055757600080fd5b506102fb611072565b34801561056c57600080fd5b506102c461057b366004611fa3565b611078565b34801561058c57600080fd5b506102c461059b366004612138565b611146565b3480156105ac57600080fd5b506102c46105bb366004611f2a565b61118a565b3480156105cc57600080fd5b506102c46105db366004611ff5565b6111c9565b6102c46105ee366004612138565b611304565b3480156105ff57600080fd5b5061026a61060e366004612138565b61147a565b34801561061f57600080fd5b5061023f61062e366004611ebd565b61159b565b34801561063f57600080fd5b506102c461064e366004611ea3565b6115c9565b60006001600160e01b031982166380ac58cd60e01b148061068457506001600160e01b03198216635b5e139f60e01b145b8061069357506106938261168a565b90505b919050565b6060600080546106aa90612a03565b80601f01602080910402602001604051908101604052809291908181526020018280546106d690612a03565b80156107235780601f106106f857610100808354040283529160200191610723565b820191906000526020600020905b81548152906001019060200180831161070657829003601f168201915b5050505050905090565b6000610738826116a3565b61075d5760405162461bcd60e51b81526004016107549061266a565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061078482610c3b565b9050806001600160a01b0316836001600160a01b031614156107b85760405162461bcd60e51b815260040161075490612783565b806001600160a01b03166107ca6116c0565b6001600160a01b031614806107e657506107e68161062e6116c0565b6108025760405162461bcd60e51b81526004016107549061246f565b61080c83836116c4565b505050565b6108196116c0565b6001600160a01b031661082a610fbe565b6001600160a01b0316146108505760405162461bcd60e51b8152600401610754906126b6565b61085a8282611732565b5050565b60085490565b600d5460ff1681565b6108756116c0565b6001600160a01b0316610886610fbe565b6001600160a01b0316146108ac5760405162461bcd60e51b8152600401610754906126b6565b6001600160a01b0382166000908152600e60209081526040808320805460ff19166001179055600f909152812082905560108054916108ea83612a3e565b91905055505050565b6109046108fe6116c0565b82611776565b6109205760405162461bcd60e51b8152600401610754906127c4565b61080c8383836117f3565b60095481565b6109396116c0565b6001600160a01b031661094a610fbe565b6001600160a01b0316146109705760405162461bcd60e51b8152600401610754906126b6565b600954600854610981906001612975565b111561099f5760405162461bcd60e51b81526004016107549061283f565b806001600160a01b0316600080516020612ac683398151915260085460016109c79190612975565b60016040516109d7929190612919565b60405180910390a260088054610a099183919060006109f583612a3e565b90915550610a04906001612975565b611920565b50565b61080c8383836040518060200160405280600081525061118a565b600d5460ff16610a495760405162461bcd60e51b81526004016107549061288f565b600081118015610a5b5750600a548111155b610a775760405162461bcd60e51b815260040161075490612346565b60095481600854610a889190612975565b1115610aa65760405162461bcd60e51b815260040161075490612255565b600b54610ab390826129a1565b3414610ad15760405162461bcd60e51b8152600401610754906128eb565b610ad9610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610b11573d6000803e3d6000fd5b50610b1a6116c0565b6001600160a01b0316600080516020612ac68339815191526008546001610b419190612975565b83604051610b50929190612919565b60405180910390a260005b8181101561085a57610b7e610b6e6116c0565b600880549060006109f583612a3e565b80610b8881612a3e565b915050610b5b565b610b986116c0565b6001600160a01b0316610ba9610fbe565b6001600160a01b031614610bcf5760405162461bcd60e51b8152600401610754906126b6565b805161085a90600c906020840190611d00565b610bea6116c0565b6001600160a01b0316610bfb610fbe565b6001600160a01b031614610c215760405162461bcd60e51b8152600401610754906126b6565b600d80549115156101000261ff0019909216919091179055565b6000818152600260205260408120546001600160a01b0316806106935760405162461bcd60e51b815260040161075490612516565b600a5481565b600c8054610c8390612a03565b80601f0160208091040260200160405190810160405280929190818152602001828054610caf90612a03565b8015610cfc5780601f10610cd157610100808354040283529160200191610cfc565b820191906000526020600020905b815481529060010190602001808311610cdf57829003601f168201915b505050505081565b60006001600160a01b038216610d2c5760405162461bcd60e51b8152600401610754906124cc565b506001600160a01b031660009081526003602052604090205490565b610d506116c0565b6001600160a01b0316610d61610fbe565b6001600160a01b031614610d875760405162461bcd60e51b8152600401610754906126b6565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b600d54610100900460ff16610df85760405162461bcd60e51b8152600401610754906128b4565b336000908152600e602052604090205460ff161515600114610e2c5760405162461bcd60e51b815260040161075490612815565b336000908152600f6020526040812054610e479083906129c0565b1015610e655760405162461bcd60e51b8152600401610754906123ec565b60095481600854610e769190612975565b1115610e945760405162461bcd60e51b81526004016107549061283f565b600b54610ea190826129a1565b3414610ebf5760405162461bcd60e51b8152600401610754906125ad565b610ec7610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610eff573d6000803e3d6000fd5b5080600f6000610f0d6116c0565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610f3c91906129c0565b90915550610f4a90506116c0565b6001600160a01b0316600080516020612ac68339815191526008546001610f719190612975565b83604051610f80929190612919565b60405180910390a260005b8181101561085a57610f9e610b6e6116c0565b80610fa881612a3e565b915050610f8b565b600d54610100900460ff1681565b6007546001600160a01b031690565b60085481565b610fdb6116c0565b6001600160a01b0316610fec610fbe565b6001600160a01b0316146110125760405162461bcd60e51b8152600401610754906126b6565b600d805460ff1916911515919091179055565b6060600180546106aa90612a03565b6001600160a01b03166000908152600e602052604090205460ff16151560011490565b6001600160a01b03166000908152600f602052604090205490565b600b5481565b6110806116c0565b6001600160a01b0316826001600160a01b031614156110b15760405162461bcd60e51b8152600401610754906123b5565b80600560006110be6116c0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111026116c0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161113a9190612237565b60405180910390a35050565b61114e6116c0565b6001600160a01b031661115f610fbe565b6001600160a01b0316146111855760405162461bcd60e51b8152600401610754906126b6565b600b55565b61119b6111956116c0565b83611776565b6111b75760405162461bcd60e51b8152600401610754906127c4565b6111c3848484846119ff565b50505050565b6111d16116c0565b6001600160a01b03166111e2610fbe565b6001600160a01b0316146112085760405162461bcd60e51b8152600401610754906126b6565b60005b825181101561080c576001600e600085848151811061123a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081818151811061129957634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60008584815181106112c557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806112fc90612a3e565b91505061120b565b61130c6116c0565b6001600160a01b031661131d610fbe565b6001600160a01b0316146113435760405162461bcd60e51b8152600401610754906126b6565b6000811180156113555750600a548111155b6113715760405162461bcd60e51b815260040161075490612346565b600954816008546113829190612975565b11156113a05760405162461bcd60e51b815260040161075490612255565b600b546113ad90826129a1565b34146113cb5760405162461bcd60e51b8152600401610754906128eb565b6113d3610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f1935050505015801561140b573d6000803e3d6000fd5b506114146116c0565b6001600160a01b0316600080516020612ac6833981519152600854600161143b9190612975565b8360405161144a929190612919565b60405180910390a260005b8181101561085a57611468610b6e6116c0565b8061147281612a3e565b915050611455565b6060611485826116a3565b6114a15760405162461bcd60e51b815260040161075490612619565b600082815260066020526040812080546114ba90612a03565b80601f01602080910402602001604051908101604052809291908181526020018280546114e690612a03565b80156115335780601f1061150857610100808354040283529160200191611533565b820191906000526020600020905b81548152906001019060200180831161151657829003601f168201915b505050505090506000611544611a32565b905080516000141561155857509050610696565b81511561158a5780826040516020016115729291906121b7565b60405160208183030381529060405292505050610696565b61159384611a41565b949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6115d16116c0565b6001600160a01b03166115e2610fbe565b6001600160a01b0316146116085760405162461bcd60e51b8152600401610754906126b6565b6001600160a01b03811661162e5760405162461bcd60e51b8152600401610754906122c9565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116f982610c3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61173b826116a3565b6117575760405162461bcd60e51b81526004016107549061255f565b6000828152600660209081526040909120825161080c92840190611d00565b6000611781826116a3565b61179d5760405162461bcd60e51b815260040161075490612423565b60006117a883610c3b565b9050806001600160a01b0316846001600160a01b031614806117e35750836001600160a01b03166117d88461072d565b6001600160a01b0316145b806115935750611593818561159b565b826001600160a01b031661180682610c3b565b6001600160a01b03161461182c5760405162461bcd60e51b8152600401610754906126eb565b6001600160a01b0382166118525760405162461bcd60e51b815260040161075490612371565b61185d83838361080c565b6118686000826116c4565b6001600160a01b03831660009081526003602052604081208054600192906118919084906129c0565b90915550506001600160a01b03821660009081526003602052604081208054600192906118bf908490612975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166119465760405162461bcd60e51b8152600401610754906125e4565b61194f816116a3565b1561196c5760405162461bcd60e51b81526004016107549061230f565b6119786000838361080c565b6001600160a01b03821660009081526003602052604081208054600192906119a1908490612975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611a0a8484846117f3565b611a1684848484611ac4565b6111c35760405162461bcd60e51b815260040161075490612277565b6060600c80546106aa90612a03565b6060611a4c826116a3565b611a685760405162461bcd60e51b815260040161075490612734565b6000611a72611a32565b90506000815111611a925760405180602001604052806000815250611abd565b80611a9c84611bdf565b604051602001611aad9291906121b7565b6040516020818303038152906040525b9392505050565b6000611ad8846001600160a01b0316611cfa565b15611bd457836001600160a01b031663150b7a02611af46116c0565b8786866040518563ffffffff1660e01b8152600401611b1694939291906121fa565b602060405180830381600087803b158015611b3057600080fd5b505af1925050508015611b60575060408051601f3d908101601f19168201909252611b5d918101906120e9565b60015b611bba573d808015611b8e576040519150601f19603f3d011682016040523d82523d6000602084013e611b93565b606091505b508051611bb25760405162461bcd60e51b815260040161075490612277565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611593565b506001949350505050565b606081611c0457506040805180820190915260018152600360fc1b6020820152610696565b8160005b8115611c2e5780611c1881612a3e565b9150611c279050600a8361298d565b9150611c08565b60008167ffffffffffffffff811115611c5757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c81576020820181803683370190505b5090505b841561159357611c966001836129c0565b9150611ca3600a86612a59565b611cae906030612975565b60f81b818381518110611cd157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611cf3600a8661298d565b9450611c85565b3b151590565b828054611d0c90612a03565b90600052602060002090601f016020900481019282611d2e5760008555611d74565b82601f10611d4757805160ff1916838001178555611d74565b82800160010185558215611d74579182015b82811115611d74578251825591602001919060010190611d59565b50611d80929150611d84565b5090565b5b80821115611d805760008155600101611d85565b600067ffffffffffffffff831115611db357611db3612a99565b611dc6601f8401601f1916602001612927565b9050828152838383011115611dda57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461069657600080fd5b600082601f830112611e18578081fd5b81356020611e2d611e2883612951565b612927565b8281528181019085830183850287018401881015611e49578586fd5b855b85811015611e6757813584529284019290840190600101611e4b565b5090979650505050505050565b8035801515811461069657600080fd5b600082601f830112611e94578081fd5b611abd83833560208501611d99565b600060208284031215611eb4578081fd5b611abd82611df1565b60008060408385031215611ecf578081fd5b611ed883611df1565b9150611ee660208401611df1565b90509250929050565b600080600060608486031215611f03578081fd5b611f0c84611df1565b9250611f1a60208501611df1565b9150604084013590509250925092565b60008060008060808587031215611f3f578081fd5b611f4885611df1565b9350611f5660208601611df1565b925060408501359150606085013567ffffffffffffffff811115611f78578182fd5b8501601f81018713611f88578182fd5b611f9787823560208401611d99565b91505092959194509250565b60008060408385031215611fb5578182fd5b611fbe83611df1565b9150611ee660208401611e74565b60008060408385031215611fde578182fd5b611fe783611df1565b946020939093013593505050565b60008060408385031215612007578182fd5b823567ffffffffffffffff8082111561201e578384fd5b818501915085601f830112612031578384fd5b81356020612041611e2883612951565b82815281810190858301838502870184018b101561205d578889fd5b8896505b848710156120865761207281611df1565b835260019690960195918301918301612061565b509650508601359250508082111561209c578283fd5b506120a985828601611e08565b9150509250929050565b6000602082840312156120c4578081fd5b611abd82611e74565b6000602082840312156120de578081fd5b8135611abd81612aaf565b6000602082840312156120fa578081fd5b8151611abd81612aaf565b600060208284031215612116578081fd5b813567ffffffffffffffff81111561212c578182fd5b61159384828501611e84565b600060208284031215612149578081fd5b5035919050565b60008060408385031215612162578182fd5b82359150602083013567ffffffffffffffff81111561217f578182fd5b6120a985828601611e84565b600081518084526121a38160208601602086016129d7565b601f01601f19169290920160200192915050565b600083516121c98184602088016129d7565b8351908301906121dd8183602088016129d7565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061222d9083018461218b565b9695505050505050565b901515815260200190565b600060208252611abd602083018461218b565b6020808252600890820152670e8dede40daeac6d60c31b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526011908201527036b4b73a103bb937b73390373ab6b132b960791b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601c908201527f4f766572206d696e74206c696d697420666f7220616464726573732e00000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252601c908201527f496e636f7272656374207472616e73616374696f6e2076616c75652e00000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f2737ba103bb434ba32b634b9ba32b21760811b604082015260600190565b60208082526030908201527f4d696e7420616d6f756e742077696c6c2065786365656420746f74616c20636f60408201526f363632b1ba34b7b71030b6b7bab73a1760811b606082015260800190565b6020808252600b908201526a1b9bdd081cdd185c9d195960aa1b604082015260600190565b6020808252601f908201527f48616e67206f6e20626f79732c20796f756c6c2067657420696e20736f6f6e00604082015260600190565b6020808252600b908201526a3b30b63ab29032b93937b960a91b604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561294957612949612a99565b604052919050565b600067ffffffffffffffff82111561296b5761296b612a99565b5060209081020190565b6000821982111561298857612988612a6d565b500190565b60008261299c5761299c612a83565b500490565b60008160001904831182151516156129bb576129bb612a6d565b500290565b6000828210156129d2576129d2612a6d565b500390565b60005b838110156129f25781810151838201526020016129da565b838111156111c35750506000910152565b600281046001821680612a1757607f821691505b60208210811415612a3857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612a5257612a52612a6d565b5060010190565b600082612a6857612a68612a83565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a0957600080fdfe48cf13e6cf5a1f35533e8646c7359f682b77b35907ce6d9e0ff3619f8eee0dfba2646970667358221220bb0042e1e6b3bb1fef3261cf63828eefdb61a5d9b052f11408d243ec6f97f58664736f6c63430008000033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d5a6f6d6269654d6f6e6b6579730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025a4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806370a08231116101235780639afdf2f3116100ab578063bffb26ce1161006f578063bffb26ce146105c0578063c1f26123146105e0578063c87b56dd146105f3578063e985e9c514610613578063f2fde38b146106335761021a565b80639afdf2f31461052b578063a035b1fe1461054b578063a22cb46514610560578063a2b40d1914610580578063b88d4fde146105a05761021a565b80638da5cb5b116100f25780638da5cb5b146104ac5780638dee43be146104c1578063917bb57f146104d657806395d89b41146104f65780639a3132991461050b5761021a565b806370a082311461044f578063715018a61461046f578063868ff4a21461048457806388eae705146104975761021a565b806334eafb11116101a657806355f804b31161017557806355f804b3146103c55780635f4f603d146103e55780636352211e1461040557806367765b87146104255780636c0360eb1461043a5761021a565b806334eafb111461035d5780633c49a8a91461037257806342842e0e1461039257806355aabf5b146103b25761021a565b8063162094c4116101ed578063162094c4146102c657806318160ddd146102e65780631f2698ab14610308578063214405fc1461031d57806323b872dd1461033d5761021a565b806301ffc9a71461021f57806306fdde0314610255578063081812fc14610277578063095ea7b3146102a4575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046120cd565b610653565b60405161024c9190612237565b60405180910390f35b34801561026157600080fd5b5061026a61069b565b60405161024c9190612242565b34801561028357600080fd5b50610297610292366004612138565b61072d565b60405161024c91906121e6565b3480156102b057600080fd5b506102c46102bf366004611fcc565b610779565b005b3480156102d257600080fd5b506102c46102e1366004612150565b610811565b3480156102f257600080fd5b506102fb61085e565b60405161024c9190612910565b34801561031457600080fd5b5061023f610864565b34801561032957600080fd5b506102c4610338366004611fcc565b61086d565b34801561034957600080fd5b506102c4610358366004611eef565b6108f3565b34801561036957600080fd5b506102fb61092b565b34801561037e57600080fd5b506102c461038d366004611ea3565b610931565b34801561039e57600080fd5b506102c46103ad366004611eef565b610a0c565b6102c46103c0366004612138565b610a27565b3480156103d157600080fd5b506102c46103e0366004612105565b610b90565b3480156103f157600080fd5b506102c46104003660046120b3565b610be2565b34801561041157600080fd5b50610297610420366004612138565b610c3b565b34801561043157600080fd5b506102fb610c70565b34801561044657600080fd5b5061026a610c76565b34801561045b57600080fd5b506102fb61046a366004611ea3565b610d04565b34801561047b57600080fd5b506102c4610d48565b6102c4610492366004612138565b610dd1565b3480156104a357600080fd5b5061023f610fb0565b3480156104b857600080fd5b50610297610fbe565b3480156104cd57600080fd5b506102fb610fcd565b3480156104e257600080fd5b506102c46104f13660046120b3565b610fd3565b34801561050257600080fd5b5061026a611025565b34801561051757600080fd5b5061023f610526366004611ea3565b611034565b34801561053757600080fd5b506102fb610546366004611ea3565b611057565b34801561055757600080fd5b506102fb611072565b34801561056c57600080fd5b506102c461057b366004611fa3565b611078565b34801561058c57600080fd5b506102c461059b366004612138565b611146565b3480156105ac57600080fd5b506102c46105bb366004611f2a565b61118a565b3480156105cc57600080fd5b506102c46105db366004611ff5565b6111c9565b6102c46105ee366004612138565b611304565b3480156105ff57600080fd5b5061026a61060e366004612138565b61147a565b34801561061f57600080fd5b5061023f61062e366004611ebd565b61159b565b34801561063f57600080fd5b506102c461064e366004611ea3565b6115c9565b60006001600160e01b031982166380ac58cd60e01b148061068457506001600160e01b03198216635b5e139f60e01b145b8061069357506106938261168a565b90505b919050565b6060600080546106aa90612a03565b80601f01602080910402602001604051908101604052809291908181526020018280546106d690612a03565b80156107235780601f106106f857610100808354040283529160200191610723565b820191906000526020600020905b81548152906001019060200180831161070657829003601f168201915b5050505050905090565b6000610738826116a3565b61075d5760405162461bcd60e51b81526004016107549061266a565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061078482610c3b565b9050806001600160a01b0316836001600160a01b031614156107b85760405162461bcd60e51b815260040161075490612783565b806001600160a01b03166107ca6116c0565b6001600160a01b031614806107e657506107e68161062e6116c0565b6108025760405162461bcd60e51b81526004016107549061246f565b61080c83836116c4565b505050565b6108196116c0565b6001600160a01b031661082a610fbe565b6001600160a01b0316146108505760405162461bcd60e51b8152600401610754906126b6565b61085a8282611732565b5050565b60085490565b600d5460ff1681565b6108756116c0565b6001600160a01b0316610886610fbe565b6001600160a01b0316146108ac5760405162461bcd60e51b8152600401610754906126b6565b6001600160a01b0382166000908152600e60209081526040808320805460ff19166001179055600f909152812082905560108054916108ea83612a3e565b91905055505050565b6109046108fe6116c0565b82611776565b6109205760405162461bcd60e51b8152600401610754906127c4565b61080c8383836117f3565b60095481565b6109396116c0565b6001600160a01b031661094a610fbe565b6001600160a01b0316146109705760405162461bcd60e51b8152600401610754906126b6565b600954600854610981906001612975565b111561099f5760405162461bcd60e51b81526004016107549061283f565b806001600160a01b0316600080516020612ac683398151915260085460016109c79190612975565b60016040516109d7929190612919565b60405180910390a260088054610a099183919060006109f583612a3e565b90915550610a04906001612975565b611920565b50565b61080c8383836040518060200160405280600081525061118a565b600d5460ff16610a495760405162461bcd60e51b81526004016107549061288f565b600081118015610a5b5750600a548111155b610a775760405162461bcd60e51b815260040161075490612346565b60095481600854610a889190612975565b1115610aa65760405162461bcd60e51b815260040161075490612255565b600b54610ab390826129a1565b3414610ad15760405162461bcd60e51b8152600401610754906128eb565b610ad9610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610b11573d6000803e3d6000fd5b50610b1a6116c0565b6001600160a01b0316600080516020612ac68339815191526008546001610b419190612975565b83604051610b50929190612919565b60405180910390a260005b8181101561085a57610b7e610b6e6116c0565b600880549060006109f583612a3e565b80610b8881612a3e565b915050610b5b565b610b986116c0565b6001600160a01b0316610ba9610fbe565b6001600160a01b031614610bcf5760405162461bcd60e51b8152600401610754906126b6565b805161085a90600c906020840190611d00565b610bea6116c0565b6001600160a01b0316610bfb610fbe565b6001600160a01b031614610c215760405162461bcd60e51b8152600401610754906126b6565b600d80549115156101000261ff0019909216919091179055565b6000818152600260205260408120546001600160a01b0316806106935760405162461bcd60e51b815260040161075490612516565b600a5481565b600c8054610c8390612a03565b80601f0160208091040260200160405190810160405280929190818152602001828054610caf90612a03565b8015610cfc5780601f10610cd157610100808354040283529160200191610cfc565b820191906000526020600020905b815481529060010190602001808311610cdf57829003601f168201915b505050505081565b60006001600160a01b038216610d2c5760405162461bcd60e51b8152600401610754906124cc565b506001600160a01b031660009081526003602052604090205490565b610d506116c0565b6001600160a01b0316610d61610fbe565b6001600160a01b031614610d875760405162461bcd60e51b8152600401610754906126b6565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b600d54610100900460ff16610df85760405162461bcd60e51b8152600401610754906128b4565b336000908152600e602052604090205460ff161515600114610e2c5760405162461bcd60e51b815260040161075490612815565b336000908152600f6020526040812054610e479083906129c0565b1015610e655760405162461bcd60e51b8152600401610754906123ec565b60095481600854610e769190612975565b1115610e945760405162461bcd60e51b81526004016107549061283f565b600b54610ea190826129a1565b3414610ebf5760405162461bcd60e51b8152600401610754906125ad565b610ec7610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610eff573d6000803e3d6000fd5b5080600f6000610f0d6116c0565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610f3c91906129c0565b90915550610f4a90506116c0565b6001600160a01b0316600080516020612ac68339815191526008546001610f719190612975565b83604051610f80929190612919565b60405180910390a260005b8181101561085a57610f9e610b6e6116c0565b80610fa881612a3e565b915050610f8b565b600d54610100900460ff1681565b6007546001600160a01b031690565b60085481565b610fdb6116c0565b6001600160a01b0316610fec610fbe565b6001600160a01b0316146110125760405162461bcd60e51b8152600401610754906126b6565b600d805460ff1916911515919091179055565b6060600180546106aa90612a03565b6001600160a01b03166000908152600e602052604090205460ff16151560011490565b6001600160a01b03166000908152600f602052604090205490565b600b5481565b6110806116c0565b6001600160a01b0316826001600160a01b031614156110b15760405162461bcd60e51b8152600401610754906123b5565b80600560006110be6116c0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111026116c0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161113a9190612237565b60405180910390a35050565b61114e6116c0565b6001600160a01b031661115f610fbe565b6001600160a01b0316146111855760405162461bcd60e51b8152600401610754906126b6565b600b55565b61119b6111956116c0565b83611776565b6111b75760405162461bcd60e51b8152600401610754906127c4565b6111c3848484846119ff565b50505050565b6111d16116c0565b6001600160a01b03166111e2610fbe565b6001600160a01b0316146112085760405162461bcd60e51b8152600401610754906126b6565b60005b825181101561080c576001600e600085848151811061123a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081818151811061129957634e487b7160e01b600052603260045260246000fd5b6020026020010151600f60008584815181106112c557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555080806112fc90612a3e565b91505061120b565b61130c6116c0565b6001600160a01b031661131d610fbe565b6001600160a01b0316146113435760405162461bcd60e51b8152600401610754906126b6565b6000811180156113555750600a548111155b6113715760405162461bcd60e51b815260040161075490612346565b600954816008546113829190612975565b11156113a05760405162461bcd60e51b815260040161075490612255565b600b546113ad90826129a1565b34146113cb5760405162461bcd60e51b8152600401610754906128eb565b6113d3610fbe565b6001600160a01b03166108fc349081150290604051600060405180830381858888f1935050505015801561140b573d6000803e3d6000fd5b506114146116c0565b6001600160a01b0316600080516020612ac6833981519152600854600161143b9190612975565b8360405161144a929190612919565b60405180910390a260005b8181101561085a57611468610b6e6116c0565b8061147281612a3e565b915050611455565b6060611485826116a3565b6114a15760405162461bcd60e51b815260040161075490612619565b600082815260066020526040812080546114ba90612a03565b80601f01602080910402602001604051908101604052809291908181526020018280546114e690612a03565b80156115335780601f1061150857610100808354040283529160200191611533565b820191906000526020600020905b81548152906001019060200180831161151657829003601f168201915b505050505090506000611544611a32565b905080516000141561155857509050610696565b81511561158a5780826040516020016115729291906121b7565b60405160208183030381529060405292505050610696565b61159384611a41565b949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6115d16116c0565b6001600160a01b03166115e2610fbe565b6001600160a01b0316146116085760405162461bcd60e51b8152600401610754906126b6565b6001600160a01b03811661162e5760405162461bcd60e51b8152600401610754906122c9565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116f982610c3b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61173b826116a3565b6117575760405162461bcd60e51b81526004016107549061255f565b6000828152600660209081526040909120825161080c92840190611d00565b6000611781826116a3565b61179d5760405162461bcd60e51b815260040161075490612423565b60006117a883610c3b565b9050806001600160a01b0316846001600160a01b031614806117e35750836001600160a01b03166117d88461072d565b6001600160a01b0316145b806115935750611593818561159b565b826001600160a01b031661180682610c3b565b6001600160a01b03161461182c5760405162461bcd60e51b8152600401610754906126eb565b6001600160a01b0382166118525760405162461bcd60e51b815260040161075490612371565b61185d83838361080c565b6118686000826116c4565b6001600160a01b03831660009081526003602052604081208054600192906118919084906129c0565b90915550506001600160a01b03821660009081526003602052604081208054600192906118bf908490612975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166119465760405162461bcd60e51b8152600401610754906125e4565b61194f816116a3565b1561196c5760405162461bcd60e51b81526004016107549061230f565b6119786000838361080c565b6001600160a01b03821660009081526003602052604081208054600192906119a1908490612975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611a0a8484846117f3565b611a1684848484611ac4565b6111c35760405162461bcd60e51b815260040161075490612277565b6060600c80546106aa90612a03565b6060611a4c826116a3565b611a685760405162461bcd60e51b815260040161075490612734565b6000611a72611a32565b90506000815111611a925760405180602001604052806000815250611abd565b80611a9c84611bdf565b604051602001611aad9291906121b7565b6040516020818303038152906040525b9392505050565b6000611ad8846001600160a01b0316611cfa565b15611bd457836001600160a01b031663150b7a02611af46116c0565b8786866040518563ffffffff1660e01b8152600401611b1694939291906121fa565b602060405180830381600087803b158015611b3057600080fd5b505af1925050508015611b60575060408051601f3d908101601f19168201909252611b5d918101906120e9565b60015b611bba573d808015611b8e576040519150601f19603f3d011682016040523d82523d6000602084013e611b93565b606091505b508051611bb25760405162461bcd60e51b815260040161075490612277565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611593565b506001949350505050565b606081611c0457506040805180820190915260018152600360fc1b6020820152610696565b8160005b8115611c2e5780611c1881612a3e565b9150611c279050600a8361298d565b9150611c08565b60008167ffffffffffffffff811115611c5757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c81576020820181803683370190505b5090505b841561159357611c966001836129c0565b9150611ca3600a86612a59565b611cae906030612975565b60f81b818381518110611cd157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611cf3600a8661298d565b9450611c85565b3b151590565b828054611d0c90612a03565b90600052602060002090601f016020900481019282611d2e5760008555611d74565b82601f10611d4757805160ff1916838001178555611d74565b82800160010185558215611d74579182015b82811115611d74578251825591602001919060010190611d59565b50611d80929150611d84565b5090565b5b80821115611d805760008155600101611d85565b600067ffffffffffffffff831115611db357611db3612a99565b611dc6601f8401601f1916602001612927565b9050828152838383011115611dda57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461069657600080fd5b600082601f830112611e18578081fd5b81356020611e2d611e2883612951565b612927565b8281528181019085830183850287018401881015611e49578586fd5b855b85811015611e6757813584529284019290840190600101611e4b565b5090979650505050505050565b8035801515811461069657600080fd5b600082601f830112611e94578081fd5b611abd83833560208501611d99565b600060208284031215611eb4578081fd5b611abd82611df1565b60008060408385031215611ecf578081fd5b611ed883611df1565b9150611ee660208401611df1565b90509250929050565b600080600060608486031215611f03578081fd5b611f0c84611df1565b9250611f1a60208501611df1565b9150604084013590509250925092565b60008060008060808587031215611f3f578081fd5b611f4885611df1565b9350611f5660208601611df1565b925060408501359150606085013567ffffffffffffffff811115611f78578182fd5b8501601f81018713611f88578182fd5b611f9787823560208401611d99565b91505092959194509250565b60008060408385031215611fb5578182fd5b611fbe83611df1565b9150611ee660208401611e74565b60008060408385031215611fde578182fd5b611fe783611df1565b946020939093013593505050565b60008060408385031215612007578182fd5b823567ffffffffffffffff8082111561201e578384fd5b818501915085601f830112612031578384fd5b81356020612041611e2883612951565b82815281810190858301838502870184018b101561205d578889fd5b8896505b848710156120865761207281611df1565b835260019690960195918301918301612061565b509650508601359250508082111561209c578283fd5b506120a985828601611e08565b9150509250929050565b6000602082840312156120c4578081fd5b611abd82611e74565b6000602082840312156120de578081fd5b8135611abd81612aaf565b6000602082840312156120fa578081fd5b8151611abd81612aaf565b600060208284031215612116578081fd5b813567ffffffffffffffff81111561212c578182fd5b61159384828501611e84565b600060208284031215612149578081fd5b5035919050565b60008060408385031215612162578182fd5b82359150602083013567ffffffffffffffff81111561217f578182fd5b6120a985828601611e84565b600081518084526121a38160208601602086016129d7565b601f01601f19169290920160200192915050565b600083516121c98184602088016129d7565b8351908301906121dd8183602088016129d7565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061222d9083018461218b565b9695505050505050565b901515815260200190565b600060208252611abd602083018461218b565b6020808252600890820152670e8dede40daeac6d60c31b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526011908201527036b4b73a103bb937b73390373ab6b132b960791b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601c908201527f4f766572206d696e74206c696d697420666f7220616464726573732e00000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252601c908201527f496e636f7272656374207472616e73616374696f6e2076616c75652e00000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f2737ba103bb434ba32b634b9ba32b21760811b604082015260600190565b60208082526030908201527f4d696e7420616d6f756e742077696c6c2065786365656420746f74616c20636f60408201526f363632b1ba34b7b71030b6b7bab73a1760811b606082015260800190565b6020808252600b908201526a1b9bdd081cdd185c9d195960aa1b604082015260600190565b6020808252601f908201527f48616e67206f6e20626f79732c20796f756c6c2067657420696e20736f6f6e00604082015260600190565b6020808252600b908201526a3b30b63ab29032b93937b960a91b604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561294957612949612a99565b604052919050565b600067ffffffffffffffff82111561296b5761296b612a99565b5060209081020190565b6000821982111561298857612988612a6d565b500190565b60008261299c5761299c612a83565b500490565b60008160001904831182151516156129bb576129bb612a6d565b500290565b6000828210156129d2576129d2612a6d565b500390565b60005b838110156129f25781810151838201526020016129da565b838111156111c35750506000910152565b600281046001821680612a1757607f821691505b60208210811415612a3857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612a5257612a52612a6d565b5060010190565b600082612a6857612a68612a83565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a0957600080fdfe48cf13e6cf5a1f35533e8646c7359f682b77b35907ce6d9e0ff3619f8eee0dfba2646970667358221220bb0042e1e6b3bb1fef3261cf63828eefdb61a5d9b052f11408d243ec6f97f58664736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d5a6f6d6269654d6f6e6b6579730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025a4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): ZombieMonkeys
Arg [1] : symbol_ (string): ZM
Arg [2] : baseURI_ (string):
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 5a6f6d6269654d6f6e6b65797300000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 5a4d000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.