ERC-721
Overview
Max Total Supply
1,111 BTD
Holders
57
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 BTDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BoredtoDeath
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "ERC721URIStorage.sol"; import "ERC721Burnable.sol"; import "MerkleProof.sol"; import "ERC721.sol"; import "Pausable.sol"; import "Ownable.sol"; import "Counters.sol"; import "Strings.sol"; /// @custom:security-contact [email protected] contract BoredtoDeath is ERC721, ERC721URIStorage, Pausable, Ownable, ERC721Burnable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; uint8 public freeMints = 2; uint8 public maxPerWL = 10; bool public publicSale = false; bool public isRevealed = false; uint256 public totalSupply = 1111; uint256 public mintPrice = 5000000000000000; string public baseURI = "ipfs://"; // will change to IPFS directory at reveal bytes32 public merkleRoot; mapping(string => uint256) public mintedURItoId; // User groups address[] public admins; // Fixed array at construction, cannot be changed later. mapping(address => uint16) public amountMinted; constructor(string memory _placeholderTokenURI, bytes32 _merkleRoot, address[] memory _admins) payable ERC721("Bored To Death v2", "BTD") { // Admins must be defined at the construction of the contract // and cannot be changed later on. admins = _admins; // Make sure tokens start from 1 rather than uint16 _tokenIdCounter.increment(); // NOTE: The baseURI has to have a / at the end baseURI = string.concat(baseURI, _placeholderTokenURI, "/"); // Set merkle root merkleRoot = _merkleRoot; } // Modifiers // -------------------------------------------------------------------------------------- modifier beforeReveal { require(isRevealed == false, "This function is no longer working after the reveal."); _; } modifier afterReveal { require(isRevealed == true, "Token has not yet been revealed"); _; } modifier onlyAdmin { bool foundAdmin = false; for (uint8 i = 0; i < admins.length; i++) { if (admins[i] == msg.sender) foundAdmin = true; } require(foundAdmin, "Only an admins can access this function"); _; } // State and information // -------------------------------------------------------------------------------------- function _baseURI() internal view override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } /* * @notice Return the total number of minted tokens. */ function minted() public view returns(uint256) { return _tokenIdCounter.current() -1; // Because we are not counting from 0 } // Other // -------------------------------------------------------------------------------------- function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal whenNotPaused override { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } // Admin tools // -------------------------------------------------------------------------------------- /* * @notice Mint function to be used by all other functions * if they need to mint a new token. * * Its best to keep this centralised, so no other * function should call _mint or _safeMint directly. */ function mintInternal(address to) internal { uint256 tokenId = _tokenIdCounter.current(); require(tokenId <= totalSupply, "Cannot Mint any more tokens"); _tokenIdCounter.increment(); _safeMint(to, tokenId); _setTokenURI(tokenId, Strings.toString(tokenId)); } /* * @notice Pause transfers of NFT's */ function pause() onlyAdmin public { _pause(); } /* * @notice Resume transfers of NFT's */ function unpause() onlyAdmin public { _unpause(); } function setPublicSale(bool value) onlyAdmin public { publicSale = value; } /* * @notice Function allows an admin to mint tokens for free and send them * to an arbitrary address. This is used for airdrops before reveal. */ function adminMint(address to, uint256 amount) onlyAdmin beforeReveal public { require(_tokenIdCounter.current() < totalSupply, "No more tokens to mint!"); for (uint8 i = 0; i < amount; i++) { mintInternal(to); } } /* * @notice Admins can burn tokens if they need to. */ function burnToken(uint256 _tokenId) onlyAdmin public { _burn(_tokenId); } /* * @notice Withdraw ether from the contract. * The amount set will be sent to each admin, so there * must be at least amount * admins.length ether in the * contract. */ function withdraw(uint256 amount) onlyAdmin public { for (uint8 i = 0; i < admins.length; i++) { payable(admins[i]).transfer(amount); } } /* * @notice Set the mint price for second time minters or * the public. */ function setMintPrice(uint256 _priceInWei) onlyAdmin public { mintPrice = _priceInWei; } /* * @notice Update the merkle root if we needed to change * the whitelist. * * @dev This is also a simple way of controlling when people * can mint. */ function setMerkleRoot(bytes32 _merkleRoot) onlyAdmin public { merkleRoot = _merkleRoot; } /* * @notice Change the placeholder URI to an ipfs folder * where all the json files are stored. * * @dev This is not set to before reveal only as we might * fuck it up and need to change it again. * */ function reveal(string memory _folder_uri) onlyAdmin public { baseURI = string.concat("ipfs://", _folder_uri, "/"); } // Whitelist tools // -------------------------------------------------------------------------------------- /* * @notice Allow white-listed accounts to mint up to 10 tokens, with the first 2 being free * these numbers can change ofc with instance variables: maxPerWL and freeMints */ function whiteListMint(uint16 amount, bytes32[] memory _merkleProof) beforeReveal public payable { // Verify that the account is on the whitelist with merkle proof. bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "You are not on the whitelist"); // NOTE: If there is any other method that needs these checks // then break it out into a modifier require(amount > 0, "You have to mint at least one token"); // Calculate how many free mints the wallet still has uint16 free; if (amountMinted[msg.sender] > freeMints) free = 0; else free = freeMints - amountMinted[msg.sender]; // Calculate the price of the mint after excluding the free mints if (free < amount) require(msg.value >= (amount-free)*mintPrice, "Not enough ETH sent for minting this many tokens."); // Make sure the wallet doesn't overstep its limit require(amountMinted[msg.sender] + amount <= maxPerWL, "Overstepped the maximum mint per white listed wallet."); // Add to the already minted counter // It's better to do this here than in mintInteral for a few reasons: // - We don't want airdrops to take a way from the free and allowed mints. // - We can do it in one step instead of with a loop to hopefully save gas. amountMinted[msg.sender] += amount; for (uint16 i = 0; i < amount; i++) mintInternal(msg.sender); } // Public mint // -------------------------------------------------------------------------------------- /* * @notice function handles public mint if we need to switch from wl only. */ function publicMint(uint16 amount) beforeReveal public payable { require(publicSale == true, "The public sale has not yet been opened. This will only open if there are issues with the wl."); require(amount > 0, "Must mint at least one token."); require(msg.value >= amount * mintPrice, "Not enough ETH sent for minting this many tokens"); // NOTE: there is just no use restricting the amount of tokens per wallet on a public mint. amountMinted[msg.sender] += amount; for (uint16 i = 0; i < amount; i++) mintInternal(msg.sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "ERC721.sol"; /** * @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) { _requireMinted(tokenId); 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 See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @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: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden 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 token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-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` and `to` are never both zero. * * 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "ERC721.sol"; import "Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "main.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_placeholderTokenURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"_admins","type":"address[]"}],"stateMutability":"payable","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"admins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mintedURItoId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_folder_uri","type":"string"}],"name":"reveal","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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInWei","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","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":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6009805463ffffffff1916610a02179055610457600a556611c37937e08000600b5560c06040526007608090815266697066733a2f2f60c81b60a052600c906200004a9082620002e2565b50604051620034c1380380620034c18339810160408190526200006d91620004a6565b604051806040016040528060118152602001702137b932b2102a37902232b0ba34103b1960791b8152506040518060400160405280600381526020016210951160ea1b8152508160009081620000c49190620002e2565b506001620000d38282620002e2565b50506007805460ff1916905550620000eb3362000159565b80516200010090600f906020840190620001bc565b50620001186008620001b360201b620018141760201c565b600c836040516020016200012e92919062000575565b604051602081830303815290604052600c90816200014d9190620002e2565b5050600d555062000612565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b82805482825590600052602060002090810192821562000214579160200282015b828111156200021457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620001dd565b506200022292915062000226565b5090565b5b8082111562000222576000815560010162000227565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200026857607f821691505b6020821081036200028957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002dd57600081815260208120601f850160051c81016020861015620002b85750805b601f850160051c820191505b81811015620002d957828155600101620002c4565b5050505b505050565b81516001600160401b03811115620002fe57620002fe6200023d565b62000316816200030f845462000253565b846200028f565b602080601f8311600181146200034e5760008415620003355750858301515b600019600386901b1c1916600185901b178555620002d9565b600085815260208120601f198616915b828110156200037f578886015182559484019460019091019084016200035e565b50858210156200039e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604051601f8201601f191681016001600160401b0381118282101715620003d957620003d96200023d565b604052919050565b60005b83811015620003fe578181015183820152602001620003e4565b50506000910152565b600082601f8301126200041957600080fd5b815160206001600160401b038211156200043757620004376200023d565b8160051b62000448828201620003ae565b92835284810182019282810190878511156200046357600080fd5b83870192505b848310156200049b5782516001600160a01b03811681146200048b5760008081fd5b8252918301919083019062000469565b979650505050505050565b600080600060608486031215620004bc57600080fd5b83516001600160401b0380821115620004d457600080fd5b818601915086601f830112620004e957600080fd5b815181811115620004fe57620004fe6200023d565b62000513601f8201601f1916602001620003ae565b8181528860208386010111156200052957600080fd5b6200053c826020830160208701620003e1565b602088015160408901519197509550925050808211156200055c57600080fd5b506200056b8682870162000407565b9150509250925092565b6000808454620005858162000253565b60018281168015620005a05760018114620005b657620005e7565b60ff1984168752821515830287019450620005e7565b8860005260208060002060005b85811015620005de5781548a820152908401908201620005c3565b50505082870194505b5086519250620005fc838560208a01620003e1565b602f60f81b939092019283525001949350505050565b612e9f80620006226000396000f3fe6080604052600436106102465760003560e01c80636352211e116101395780638da5cb5b116100b6578063e58306f91161007a578063e58306f9146106c1578063e985e9c5146106e1578063ee64aefb14610701578063f2fde38b14610720578063f4a0a52814610740578063f607cc4c1461076057600080fd5b80638da5cb5b1461062957806395d89b411461064c578063a22cb46514610661578063b88d4fde14610681578063c87b56dd146106a157600080fd5b8063715018a6116100fd578063715018a6146105935780637b47ec1a146105a85780637cb64759146105c857806380b17335146105e85780638456cb591461061457600080fd5b80636352211e146104f05780636817c76c146105105780636c0360eb146105265780636df27bdf1461053b57806370a082311461057357600080fd5b806333bc1c5c116101c75780634c2612471161018b5780634c261247146104625780634f02c4201461048257806354214f69146104975780635aca1bb6146104b85780635c975abb146104d857600080fd5b806333bc1c5c146103a95780633f4ba83a146103c957806342842e0e146103de57806342966c68146103fe578063438a67e71461041e57600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd146103405780632812c9f8146103605780632e1a7d4d146103735780632eb4a7ab1461039357600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da57806314bfd6d0146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046125de565b610773565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107c5565b604051610277919061264b565b3480156102ae57600080fd5b506102c26102bd36600461265e565b610857565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004612693565b61087e565b005b34801561030857600080fd5b506102c261031736600461265e565b610998565b34801561032857600080fd5b50610332600a5481565b604051908152602001610277565b34801561034c57600080fd5b506102fa61035b3660046126bd565b6109c2565b6102fa61036e366004612752565b6109f4565b34801561037f57600080fd5b506102fa61038e36600461265e565b610d05565b34801561039f57600080fd5b50610332600d5481565b3480156103b557600080fd5b5060095461026b9062010000900460ff1681565b3480156103d557600080fd5b506102fa610dfe565b3480156103ea57600080fd5b506102fa6103f93660046126bd565b610e89565b34801561040a57600080fd5b506102fa61041936600461265e565b610ea4565b34801561042a57600080fd5b5061044f61043936600461280b565b60106020526000908152604090205461ffff1681565b60405161ffff9091168152602001610277565b34801561046e57600080fd5b506102fa61047d36600461287e565b610ed2565b34801561048e57600080fd5b50610332610f80565b3480156104a357600080fd5b5060095461026b906301000000900460ff1681565b3480156104c457600080fd5b506102fa6104d33660046128d7565b610f9c565b3480156104e457600080fd5b5060075460ff1661026b565b3480156104fc57600080fd5b506102c261050b36600461265e565b611039565b34801561051c57600080fd5b50610332600b5481565b34801561053257600080fd5b50610295611099565b34801561054757600080fd5b5061033261055636600461287e565b8051602081830181018051600e8252928201919093012091525481565b34801561057f57600080fd5b5061033261058e36600461280b565b611127565b34801561059f57600080fd5b506102fa6111ad565b3480156105b457600080fd5b506102fa6105c336600461265e565b6111c1565b3480156105d457600080fd5b506102fa6105e336600461265e565b61124e565b3480156105f457600080fd5b506009546106029060ff1681565b60405160ff9091168152602001610277565b34801561062057600080fd5b506102fa6112d4565b34801561063557600080fd5b5060075461010090046001600160a01b03166102c2565b34801561065857600080fd5b5061029561135c565b34801561066d57600080fd5b506102fa61067c3660046128f2565b61136b565b34801561068d57600080fd5b506102fa61069c366004612925565b611376565b3480156106ad57600080fd5b506102956106bc36600461265e565b6113ae565b3480156106cd57600080fd5b506102fa6106dc366004612693565b6113b9565b3480156106ed57600080fd5b5061026b6106fc3660046129a1565b6114df565b34801561070d57600080fd5b5060095461060290610100900460ff1681565b34801561072c57600080fd5b506102fa61073b36600461280b565b61150d565b34801561074c57600080fd5b506102fa61075b36600461265e565b611583565b6102fa61076e3660046129cb565b611609565b60006001600160e01b031982166380ac58cd60e01b14806107a457506001600160e01b03198216635b5e139f60e01b145b806107bf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107d4906129e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610800906129e6565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261181d565b506000908152600460205260409020546001600160a01b031690565b600061088982611039565b9050806001600160a01b0316836001600160a01b0316036108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610917575061091781336114df565b6109895760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b610993838361187c565b505050565b600f81815481106109a857600080fd5b6000918252602090912001546001600160a01b0316905081565b6109cd335b826118ea565b6109e95760405162461bcd60e51b81526004016108f290612a20565b610993838383611949565b6009546301000000900460ff1615610a1e5760405162461bcd60e51b81526004016108f290612a6e565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610a6482600d5483611af0565b610ab05760405162461bcd60e51b815260206004820152601c60248201527f596f7520617265206e6f74206f6e207468652077686974656c6973740000000060448201526064016108f2565b60008361ffff1611610b105760405162461bcd60e51b815260206004820152602360248201527f596f75206861766520746f206d696e74206174206c65617374206f6e6520746f60448201526235b2b760e91b60648201526084016108f2565b60095433600090815260106020526040812054909160ff1661ffff9091161115610b3c57506000610b63565b33600090815260106020526040902054600954610b609161ffff169060ff16612ad8565b90505b8361ffff168161ffff161015610bf757600b54610b808286612ad8565b61ffff16610b8e9190612afa565b341015610bf75760405162461bcd60e51b815260206004820152603160248201527f4e6f7420656e6f756768204554482073656e7420666f72206d696e74696e67206044820152703a3434b99036b0b73c903a37b5b2b7399760791b60648201526084016108f2565b6009543360009081526010602052604090205461010090910460ff1690610c2390869061ffff16612b11565b61ffff161115610c935760405162461bcd60e51b815260206004820152603560248201527f4f7665727374657070656420746865206d6178696d756d206d696e7420706572604482015274103bb434ba32903634b9ba32b2103bb0b63632ba1760591b60648201526084016108f2565b3360009081526010602052604081208054869290610cb690849061ffff16612b11565b92506101000a81548161ffff021916908361ffff16021790555060005b8461ffff168161ffff161015610cfe57610cec33611b06565b80610cf681612b2c565b915050610cd3565b5050505050565b6000805b600f5460ff82161015610d6757336001600160a01b0316600f8260ff1681548110610d3657610d36612b4d565b6000918252602090912001546001600160a01b031603610d5557600191505b80610d5f81612b63565b915050610d09565b5080610d855760405162461bcd60e51b81526004016108f290612b82565b60005b600f5460ff8216101561099357600f8160ff1681548110610dab57610dab612b4d565b60009182526020822001546040516001600160a01b039091169185156108fc02918691818181858888f19350505050158015610deb573d6000803e3d6000fd5b5080610df681612b63565b915050610d88565b6000805b600f5460ff82161015610e6057336001600160a01b0316600f8260ff1681548110610e2f57610e2f612b4d565b6000918252602090912001546001600160a01b031603610e4e57600191505b80610e5881612b63565b915050610e02565b5080610e7e5760405162461bcd60e51b81526004016108f290612b82565b610e86611b8f565b50565b61099383838360405180602001604052806000815250611376565b610ead336109c7565b610ec95760405162461bcd60e51b81526004016108f290612a20565b610e8681611be1565b6000805b600f5460ff82161015610f3457336001600160a01b0316600f8260ff1681548110610f0357610f03612b4d565b6000918252602090912001546001600160a01b031603610f2257600191505b80610f2c81612b63565b915050610ed6565b5080610f525760405162461bcd60e51b81526004016108f290612b82565b81604051602001610f639190612bc9565b604051602081830303815290604052600c90816109939190612c51565b60006001610f8d60085490565b610f979190612d11565b905090565b6000805b600f5460ff82161015610ffe57336001600160a01b0316600f8260ff1681548110610fcd57610fcd612b4d565b6000918252602090912001546001600160a01b031603610fec57600191505b80610ff681612b63565b915050610fa0565b508061101c5760405162461bcd60e51b81526004016108f290612b82565b5060098054911515620100000262ff000019909216919091179055565b6000818152600260205260408120546001600160a01b0316806107bf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600c80546110a6906129e6565b80601f01602080910402602001604051908101604052809291908181526020018280546110d2906129e6565b801561111f5780601f106110f45761010080835404028352916020019161111f565b820191906000526020600020905b81548152906001019060200180831161110257829003601f168201915b505050505081565b60006001600160a01b0382166111915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526003602052604090205490565b6111b5611bea565b6111bf6000611c4a565b565b6000805b600f5460ff8216101561122357336001600160a01b0316600f8260ff16815481106111f2576111f2612b4d565b6000918252602090912001546001600160a01b03160361121157600191505b8061121b81612b63565b9150506111c5565b50806112415760405162461bcd60e51b81526004016108f290612b82565b61124a82611be1565b5050565b6000805b600f5460ff821610156112b057336001600160a01b0316600f8260ff168154811061127f5761127f612b4d565b6000918252602090912001546001600160a01b03160361129e57600191505b806112a881612b63565b915050611252565b50806112ce5760405162461bcd60e51b81526004016108f290612b82565b50600d55565b6000805b600f5460ff8216101561133657336001600160a01b0316600f8260ff168154811061130557611305612b4d565b6000918252602090912001546001600160a01b03160361132457600191505b8061132e81612b63565b9150506112d8565b50806113545760405162461bcd60e51b81526004016108f290612b82565b610e86611ca4565b6060600180546107d4906129e6565b61124a338383611ce1565b61138033836118ea565b61139c5760405162461bcd60e51b81526004016108f290612a20565b6113a884848484611daf565b50505050565b60606107bf82611de2565b6000805b600f5460ff8216101561141b57336001600160a01b0316600f8260ff16815481106113ea576113ea612b4d565b6000918252602090912001546001600160a01b03160361140957600191505b8061141381612b63565b9150506113bd565b50806114395760405162461bcd60e51b81526004016108f290612b82565b6009546301000000900460ff16156114635760405162461bcd60e51b81526004016108f290612a6e565b600a54600854106114b65760405162461bcd60e51b815260206004820152601760248201527f4e6f206d6f726520746f6b656e7320746f206d696e742100000000000000000060448201526064016108f2565b60005b828160ff1610156113a8576114cd84611b06565b806114d781612b63565b9150506114b9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611515611bea565b6001600160a01b03811661157a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b610e8681611c4a565b6000805b600f5460ff821610156115e557336001600160a01b0316600f8260ff16815481106115b4576115b4612b4d565b6000918252602090912001546001600160a01b0316036115d357600191505b806115dd81612b63565b915050611587565b50806116035760405162461bcd60e51b81526004016108f290612b82565b50600b55565b6009546301000000900460ff16156116335760405162461bcd60e51b81526004016108f290612a6e565b60095462010000900460ff1615156001146116dc5760405162461bcd60e51b815260206004820152605d60248201527f546865207075626c69632073616c6520686173206e6f7420796574206265656e60448201527f206f70656e65642e20546869732077696c6c206f6e6c79206f70656e2069662060648201527f7468657265206172652069737375657320776974682074686520776c2e000000608482015260a4016108f2565b60008161ffff16116117305760405162461bcd60e51b815260206004820152601d60248201527f4d757374206d696e74206174206c65617374206f6e6520746f6b656e2e00000060448201526064016108f2565b600b546117419061ffff8316612afa565b3410156117a95760405162461bcd60e51b815260206004820152603060248201527f4e6f7420656e6f756768204554482073656e7420666f72206d696e74696e672060448201526f74686973206d616e7920746f6b656e7360801b60648201526084016108f2565b33600090815260106020526040812080548392906117cc90849061ffff16612b11565b92506101000a81548161ffff021916908361ffff16021790555060005b8161ffff168161ffff16101561124a5761180233611b06565b8061180c81612b2c565b9150506117e9565b80546001019055565b6000818152600260205260409020546001600160a01b0316610e865760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b182611039565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118f683611039565b9050806001600160a01b0316846001600160a01b0316148061191d575061191d81856114df565b806119415750836001600160a01b031661193684610857565b6001600160a01b0316145b949350505050565b826001600160a01b031661195c82611039565b6001600160a01b0316146119c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b038216611a225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b611a2d838383611edd565b611a3860008261187c565b6001600160a01b0383166000908152600360205260408120805460019290611a61908490612d11565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a8f908490612d24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082611afd8584611ee5565b14949350505050565b6000611b1160085490565b9050600a54811115611b655760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74204d696e7420616e79206d6f726520746f6b656e73000000000060448201526064016108f2565b611b73600880546001019055565b611b7d8282611f32565b61124a81611b8a83611f4c565b61204d565b611b976120e0565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610e8681612129565b6007546001600160a01b036101009091041633146111bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f2565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cac612169565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bc43390565b816001600160a01b0316836001600160a01b031603611d425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611dba848484611949565b611dc6848484846121af565b6113a85760405162461bcd60e51b81526004016108f290612d37565b6060611ded8261181d565b60008281526006602052604081208054611e06906129e6565b80601f0160208091040260200160405190810160405280929190818152602001828054611e32906129e6565b8015611e7f5780601f10611e5457610100808354040283529160200191611e7f565b820191906000526020600020905b815481529060010190602001808311611e6257829003601f168201915b505050505090506000611e906122b0565b90508051600003611ea2575092915050565b815115611ed4578082604051602001611ebc929190612d89565b60405160208183030381529060405292505050919050565b611941846122bf565b610993612169565b600081815b8451811015611f2a57611f1682868381518110611f0957611f09612b4d565b6020026020010151612326565b915080611f2281612db8565b915050611eea565b509392505050565b61124a828260405180602001604052806000815250612352565b606081600003611f735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f9d5780611f8781612db8565b9150611f969050600a83612de7565b9150611f77565b60008167ffffffffffffffff811115611fb857611fb861270b565b6040519080825280601f01601f191660200182016040528015611fe2576020820181803683370190505b5090505b841561194157611ff7600183612d11565b9150612004600a86612dfb565b61200f906030612d24565b60f81b81838151811061202457612024612b4d565b60200101906001600160f81b031916908160001a905350612046600a86612de7565b9450611fe6565b6000828152600260205260409020546001600160a01b03166120c85760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108f2565b60008281526006602052604090206109938282612c51565b60075460ff166111bf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108f2565b61213281612385565b6000818152600660205260409020805461214b906129e6565b159050610e86576000818152600660205260408120610e869161257a565b60075460ff16156111bf5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108f2565b60006001600160a01b0384163b156122a557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f3903390899088908890600401612e0f565b6020604051808303816000875af192505050801561222e575060408051601f3d908101601f1916820190925261222b91810190612e4c565b60015b61228b573d80801561225c576040519150601f19603f3d011682016040523d82523d6000602084013e612261565b606091505b5080516000036122835760405162461bcd60e51b81526004016108f290612d37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611941565b506001949350505050565b6060600c80546107d4906129e6565b60606122ca8261181d565b60006122d46122b0565b905060008151116122f4576040518060200160405280600081525061231f565b806122fe84611f4c565b60405160200161230f929190612d89565b6040516020818303038152906040525b9392505050565b600081831061234257600082815260208490526040902061231f565b5060009182526020526040902090565b61235c838361242c565b61236960008484846121af565b6109935760405162461bcd60e51b81526004016108f290612d37565b600061239082611039565b905061239e81600084611edd565b6123a960008361187c565b6001600160a01b03811660009081526003602052604081208054600192906123d2908490612d11565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166124825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600260205260409020546001600160a01b0316156124e75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b6124f360008383611edd565b6001600160a01b038216600090815260036020526040812080546001929061251c908490612d24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612586906129e6565b6000825580601f10612596575050565b601f016020900490600052602060002090810190610e8691905b808211156125c457600081556001016125b0565b5090565b6001600160e01b031981168114610e8657600080fd5b6000602082840312156125f057600080fd5b813561231f816125c8565b60005b838110156126165781810151838201526020016125fe565b50506000910152565b600081518084526126378160208601602086016125fb565b601f01601f19169290920160200192915050565b60208152600061231f602083018461261f565b60006020828403121561267057600080fd5b5035919050565b80356001600160a01b038116811461268e57600080fd5b919050565b600080604083850312156126a657600080fd5b6126af83612677565b946020939093013593505050565b6000806000606084860312156126d257600080fd5b6126db84612677565b92506126e960208501612677565b9150604084013590509250925092565b803561ffff8116811461268e57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561274a5761274a61270b565b604052919050565b6000806040838503121561276557600080fd5b61276e836126f9565b915060208084013567ffffffffffffffff8082111561278c57600080fd5b818601915086601f8301126127a057600080fd5b8135818111156127b2576127b261270b565b8060051b91506127c3848301612721565b81815291830184019184810190898411156127dd57600080fd5b938501935b838510156127fb578435825293850193908501906127e2565b8096505050505050509250929050565b60006020828403121561281d57600080fd5b61231f82612677565b600067ffffffffffffffff8311156128405761284061270b565b612853601f8401601f1916602001612721565b905082815283838301111561286757600080fd5b828260208301376000602084830101529392505050565b60006020828403121561289057600080fd5b813567ffffffffffffffff8111156128a757600080fd5b8201601f810184136128b857600080fd5b61194184823560208401612826565b8035801515811461268e57600080fd5b6000602082840312156128e957600080fd5b61231f826128c7565b6000806040838503121561290557600080fd5b61290e83612677565b915061291c602084016128c7565b90509250929050565b6000806000806080858703121561293b57600080fd5b61294485612677565b935061295260208601612677565b925060408501359150606085013567ffffffffffffffff81111561297557600080fd5b8501601f8101871361298657600080fd5b61299587823560208401612826565b91505092959194509250565b600080604083850312156129b457600080fd5b6129bd83612677565b915061291c60208401612677565b6000602082840312156129dd57600080fd5b61231f826126f9565b600181811c908216806129fa57607f821691505b602082108103612a1a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526034908201527f546869732066756e6374696f6e206973206e6f206c6f6e67657220776f726b6960408201527337339030b33a32b9103a3432903932bb32b0b61760611b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115612af357612af3612ac2565b5092915050565b80820281158282048414176107bf576107bf612ac2565b61ffff818116838216019080821115612af357612af3612ac2565b600061ffff808316818103612b4357612b43612ac2565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8103612b7957612b79612ac2565b60010192915050565b60208082526027908201527f4f6e6c7920616e2061646d696e732063616e20616363657373207468697320666040820152663ab731ba34b7b760c91b606082015260800190565b66697066733a2f2f60c81b815260008251612beb8160078501602087016125fb565b602f60f81b6007939091019283015250600801919050565b601f82111561099357600081815260208120601f850160051c81016020861015612c2a5750805b601f850160051c820191505b81811015612c4957828155600101612c36565b505050505050565b815167ffffffffffffffff811115612c6b57612c6b61270b565b612c7f81612c7984546129e6565b84612c03565b602080601f831160018114612cb45760008415612c9c5750858301515b600019600386901b1c1916600185901b178555612c49565b600085815260208120601f198616915b82811015612ce357888601518255948401946001909101908401612cc4565b5085821015612d015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156107bf576107bf612ac2565b808201808211156107bf576107bf612ac2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612d9b8184602088016125fb565b835190830190612daf8183602088016125fb565b01949350505050565b600060018201612dca57612dca612ac2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612df657612df6612dd1565b500490565b600082612e0a57612e0a612dd1565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e429083018461261f565b9695505050505050565b600060208284031215612e5e57600080fd5b815161231f816125c856fea2646970667358221220a049871c41aa404fbf97cefa3ee0d22edf2e5b98c867979d7a3833c33150024464736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006008dca4a3853ca2817560eb63d5819b18a091ec787babc9120ec8e6724dfaf69900000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002e516d50386d667566596a6d764148504d686159396144483464634773556645367266345441554b643656615668790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000c61dea390759235091a60152fc7923de392ee715000000000000000000000000be46e89825a4b01334507922bacdfb374d66a908000000000000000000000000258ad032eee1cc71264fd8f9abe9c74d50ff8c4f000000000000000000000000ae0ba69c19828ef4899e0effd71fcbb8a56e25ad
Deployed Bytecode
0x6080604052600436106102465760003560e01c80636352211e116101395780638da5cb5b116100b6578063e58306f91161007a578063e58306f9146106c1578063e985e9c5146106e1578063ee64aefb14610701578063f2fde38b14610720578063f4a0a52814610740578063f607cc4c1461076057600080fd5b80638da5cb5b1461062957806395d89b411461064c578063a22cb46514610661578063b88d4fde14610681578063c87b56dd146106a157600080fd5b8063715018a6116100fd578063715018a6146105935780637b47ec1a146105a85780637cb64759146105c857806380b17335146105e85780638456cb591461061457600080fd5b80636352211e146104f05780636817c76c146105105780636c0360eb146105265780636df27bdf1461053b57806370a082311461057357600080fd5b806333bc1c5c116101c75780634c2612471161018b5780634c261247146104625780634f02c4201461048257806354214f69146104975780635aca1bb6146104b85780635c975abb146104d857600080fd5b806333bc1c5c146103a95780633f4ba83a146103c957806342842e0e146103de57806342966c68146103fe578063438a67e71461041e57600080fd5b806318160ddd1161020e57806318160ddd1461031c57806323b872dd146103405780632812c9f8146103605780632e1a7d4d146103735780632eb4a7ab1461039357600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da57806314bfd6d0146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046125de565b610773565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107c5565b604051610277919061264b565b3480156102ae57600080fd5b506102c26102bd36600461265e565b610857565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f5366004612693565b61087e565b005b34801561030857600080fd5b506102c261031736600461265e565b610998565b34801561032857600080fd5b50610332600a5481565b604051908152602001610277565b34801561034c57600080fd5b506102fa61035b3660046126bd565b6109c2565b6102fa61036e366004612752565b6109f4565b34801561037f57600080fd5b506102fa61038e36600461265e565b610d05565b34801561039f57600080fd5b50610332600d5481565b3480156103b557600080fd5b5060095461026b9062010000900460ff1681565b3480156103d557600080fd5b506102fa610dfe565b3480156103ea57600080fd5b506102fa6103f93660046126bd565b610e89565b34801561040a57600080fd5b506102fa61041936600461265e565b610ea4565b34801561042a57600080fd5b5061044f61043936600461280b565b60106020526000908152604090205461ffff1681565b60405161ffff9091168152602001610277565b34801561046e57600080fd5b506102fa61047d36600461287e565b610ed2565b34801561048e57600080fd5b50610332610f80565b3480156104a357600080fd5b5060095461026b906301000000900460ff1681565b3480156104c457600080fd5b506102fa6104d33660046128d7565b610f9c565b3480156104e457600080fd5b5060075460ff1661026b565b3480156104fc57600080fd5b506102c261050b36600461265e565b611039565b34801561051c57600080fd5b50610332600b5481565b34801561053257600080fd5b50610295611099565b34801561054757600080fd5b5061033261055636600461287e565b8051602081830181018051600e8252928201919093012091525481565b34801561057f57600080fd5b5061033261058e36600461280b565b611127565b34801561059f57600080fd5b506102fa6111ad565b3480156105b457600080fd5b506102fa6105c336600461265e565b6111c1565b3480156105d457600080fd5b506102fa6105e336600461265e565b61124e565b3480156105f457600080fd5b506009546106029060ff1681565b60405160ff9091168152602001610277565b34801561062057600080fd5b506102fa6112d4565b34801561063557600080fd5b5060075461010090046001600160a01b03166102c2565b34801561065857600080fd5b5061029561135c565b34801561066d57600080fd5b506102fa61067c3660046128f2565b61136b565b34801561068d57600080fd5b506102fa61069c366004612925565b611376565b3480156106ad57600080fd5b506102956106bc36600461265e565b6113ae565b3480156106cd57600080fd5b506102fa6106dc366004612693565b6113b9565b3480156106ed57600080fd5b5061026b6106fc3660046129a1565b6114df565b34801561070d57600080fd5b5060095461060290610100900460ff1681565b34801561072c57600080fd5b506102fa61073b36600461280b565b61150d565b34801561074c57600080fd5b506102fa61075b36600461265e565b611583565b6102fa61076e3660046129cb565b611609565b60006001600160e01b031982166380ac58cd60e01b14806107a457506001600160e01b03198216635b5e139f60e01b145b806107bf57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107d4906129e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610800906129e6565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261181d565b506000908152600460205260409020546001600160a01b031690565b600061088982611039565b9050806001600160a01b0316836001600160a01b0316036108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610917575061091781336114df565b6109895760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f2565b610993838361187c565b505050565b600f81815481106109a857600080fd5b6000918252602090912001546001600160a01b0316905081565b6109cd335b826118ea565b6109e95760405162461bcd60e51b81526004016108f290612a20565b610993838383611949565b6009546301000000900460ff1615610a1e5760405162461bcd60e51b81526004016108f290612a6e565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610a6482600d5483611af0565b610ab05760405162461bcd60e51b815260206004820152601c60248201527f596f7520617265206e6f74206f6e207468652077686974656c6973740000000060448201526064016108f2565b60008361ffff1611610b105760405162461bcd60e51b815260206004820152602360248201527f596f75206861766520746f206d696e74206174206c65617374206f6e6520746f60448201526235b2b760e91b60648201526084016108f2565b60095433600090815260106020526040812054909160ff1661ffff9091161115610b3c57506000610b63565b33600090815260106020526040902054600954610b609161ffff169060ff16612ad8565b90505b8361ffff168161ffff161015610bf757600b54610b808286612ad8565b61ffff16610b8e9190612afa565b341015610bf75760405162461bcd60e51b815260206004820152603160248201527f4e6f7420656e6f756768204554482073656e7420666f72206d696e74696e67206044820152703a3434b99036b0b73c903a37b5b2b7399760791b60648201526084016108f2565b6009543360009081526010602052604090205461010090910460ff1690610c2390869061ffff16612b11565b61ffff161115610c935760405162461bcd60e51b815260206004820152603560248201527f4f7665727374657070656420746865206d6178696d756d206d696e7420706572604482015274103bb434ba32903634b9ba32b2103bb0b63632ba1760591b60648201526084016108f2565b3360009081526010602052604081208054869290610cb690849061ffff16612b11565b92506101000a81548161ffff021916908361ffff16021790555060005b8461ffff168161ffff161015610cfe57610cec33611b06565b80610cf681612b2c565b915050610cd3565b5050505050565b6000805b600f5460ff82161015610d6757336001600160a01b0316600f8260ff1681548110610d3657610d36612b4d565b6000918252602090912001546001600160a01b031603610d5557600191505b80610d5f81612b63565b915050610d09565b5080610d855760405162461bcd60e51b81526004016108f290612b82565b60005b600f5460ff8216101561099357600f8160ff1681548110610dab57610dab612b4d565b60009182526020822001546040516001600160a01b039091169185156108fc02918691818181858888f19350505050158015610deb573d6000803e3d6000fd5b5080610df681612b63565b915050610d88565b6000805b600f5460ff82161015610e6057336001600160a01b0316600f8260ff1681548110610e2f57610e2f612b4d565b6000918252602090912001546001600160a01b031603610e4e57600191505b80610e5881612b63565b915050610e02565b5080610e7e5760405162461bcd60e51b81526004016108f290612b82565b610e86611b8f565b50565b61099383838360405180602001604052806000815250611376565b610ead336109c7565b610ec95760405162461bcd60e51b81526004016108f290612a20565b610e8681611be1565b6000805b600f5460ff82161015610f3457336001600160a01b0316600f8260ff1681548110610f0357610f03612b4d565b6000918252602090912001546001600160a01b031603610f2257600191505b80610f2c81612b63565b915050610ed6565b5080610f525760405162461bcd60e51b81526004016108f290612b82565b81604051602001610f639190612bc9565b604051602081830303815290604052600c90816109939190612c51565b60006001610f8d60085490565b610f979190612d11565b905090565b6000805b600f5460ff82161015610ffe57336001600160a01b0316600f8260ff1681548110610fcd57610fcd612b4d565b6000918252602090912001546001600160a01b031603610fec57600191505b80610ff681612b63565b915050610fa0565b508061101c5760405162461bcd60e51b81526004016108f290612b82565b5060098054911515620100000262ff000019909216919091179055565b6000818152600260205260408120546001600160a01b0316806107bf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600c80546110a6906129e6565b80601f01602080910402602001604051908101604052809291908181526020018280546110d2906129e6565b801561111f5780601f106110f45761010080835404028352916020019161111f565b820191906000526020600020905b81548152906001019060200180831161110257829003601f168201915b505050505081565b60006001600160a01b0382166111915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f2565b506001600160a01b031660009081526003602052604090205490565b6111b5611bea565b6111bf6000611c4a565b565b6000805b600f5460ff8216101561122357336001600160a01b0316600f8260ff16815481106111f2576111f2612b4d565b6000918252602090912001546001600160a01b03160361121157600191505b8061121b81612b63565b9150506111c5565b50806112415760405162461bcd60e51b81526004016108f290612b82565b61124a82611be1565b5050565b6000805b600f5460ff821610156112b057336001600160a01b0316600f8260ff168154811061127f5761127f612b4d565b6000918252602090912001546001600160a01b03160361129e57600191505b806112a881612b63565b915050611252565b50806112ce5760405162461bcd60e51b81526004016108f290612b82565b50600d55565b6000805b600f5460ff8216101561133657336001600160a01b0316600f8260ff168154811061130557611305612b4d565b6000918252602090912001546001600160a01b03160361132457600191505b8061132e81612b63565b9150506112d8565b50806113545760405162461bcd60e51b81526004016108f290612b82565b610e86611ca4565b6060600180546107d4906129e6565b61124a338383611ce1565b61138033836118ea565b61139c5760405162461bcd60e51b81526004016108f290612a20565b6113a884848484611daf565b50505050565b60606107bf82611de2565b6000805b600f5460ff8216101561141b57336001600160a01b0316600f8260ff16815481106113ea576113ea612b4d565b6000918252602090912001546001600160a01b03160361140957600191505b8061141381612b63565b9150506113bd565b50806114395760405162461bcd60e51b81526004016108f290612b82565b6009546301000000900460ff16156114635760405162461bcd60e51b81526004016108f290612a6e565b600a54600854106114b65760405162461bcd60e51b815260206004820152601760248201527f4e6f206d6f726520746f6b656e7320746f206d696e742100000000000000000060448201526064016108f2565b60005b828160ff1610156113a8576114cd84611b06565b806114d781612b63565b9150506114b9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611515611bea565b6001600160a01b03811661157a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f2565b610e8681611c4a565b6000805b600f5460ff821610156115e557336001600160a01b0316600f8260ff16815481106115b4576115b4612b4d565b6000918252602090912001546001600160a01b0316036115d357600191505b806115dd81612b63565b915050611587565b50806116035760405162461bcd60e51b81526004016108f290612b82565b50600b55565b6009546301000000900460ff16156116335760405162461bcd60e51b81526004016108f290612a6e565b60095462010000900460ff1615156001146116dc5760405162461bcd60e51b815260206004820152605d60248201527f546865207075626c69632073616c6520686173206e6f7420796574206265656e60448201527f206f70656e65642e20546869732077696c6c206f6e6c79206f70656e2069662060648201527f7468657265206172652069737375657320776974682074686520776c2e000000608482015260a4016108f2565b60008161ffff16116117305760405162461bcd60e51b815260206004820152601d60248201527f4d757374206d696e74206174206c65617374206f6e6520746f6b656e2e00000060448201526064016108f2565b600b546117419061ffff8316612afa565b3410156117a95760405162461bcd60e51b815260206004820152603060248201527f4e6f7420656e6f756768204554482073656e7420666f72206d696e74696e672060448201526f74686973206d616e7920746f6b656e7360801b60648201526084016108f2565b33600090815260106020526040812080548392906117cc90849061ffff16612b11565b92506101000a81548161ffff021916908361ffff16021790555060005b8161ffff168161ffff16101561124a5761180233611b06565b8061180c81612b2c565b9150506117e9565b80546001019055565b6000818152600260205260409020546001600160a01b0316610e865760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f2565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b182611039565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118f683611039565b9050806001600160a01b0316846001600160a01b0316148061191d575061191d81856114df565b806119415750836001600160a01b031661193684610857565b6001600160a01b0316145b949350505050565b826001600160a01b031661195c82611039565b6001600160a01b0316146119c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f2565b6001600160a01b038216611a225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f2565b611a2d838383611edd565b611a3860008261187c565b6001600160a01b0383166000908152600360205260408120805460019290611a61908490612d11565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a8f908490612d24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082611afd8584611ee5565b14949350505050565b6000611b1160085490565b9050600a54811115611b655760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74204d696e7420616e79206d6f726520746f6b656e73000000000060448201526064016108f2565b611b73600880546001019055565b611b7d8282611f32565b61124a81611b8a83611f4c565b61204d565b611b976120e0565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610e8681612129565b6007546001600160a01b036101009091041633146111bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f2565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cac612169565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bc43390565b816001600160a01b0316836001600160a01b031603611d425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611dba848484611949565b611dc6848484846121af565b6113a85760405162461bcd60e51b81526004016108f290612d37565b6060611ded8261181d565b60008281526006602052604081208054611e06906129e6565b80601f0160208091040260200160405190810160405280929190818152602001828054611e32906129e6565b8015611e7f5780601f10611e5457610100808354040283529160200191611e7f565b820191906000526020600020905b815481529060010190602001808311611e6257829003601f168201915b505050505090506000611e906122b0565b90508051600003611ea2575092915050565b815115611ed4578082604051602001611ebc929190612d89565b60405160208183030381529060405292505050919050565b611941846122bf565b610993612169565b600081815b8451811015611f2a57611f1682868381518110611f0957611f09612b4d565b6020026020010151612326565b915080611f2281612db8565b915050611eea565b509392505050565b61124a828260405180602001604052806000815250612352565b606081600003611f735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f9d5780611f8781612db8565b9150611f969050600a83612de7565b9150611f77565b60008167ffffffffffffffff811115611fb857611fb861270b565b6040519080825280601f01601f191660200182016040528015611fe2576020820181803683370190505b5090505b841561194157611ff7600183612d11565b9150612004600a86612dfb565b61200f906030612d24565b60f81b81838151811061202457612024612b4d565b60200101906001600160f81b031916908160001a905350612046600a86612de7565b9450611fe6565b6000828152600260205260409020546001600160a01b03166120c85760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108f2565b60008281526006602052604090206109938282612c51565b60075460ff166111bf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108f2565b61213281612385565b6000818152600660205260409020805461214b906129e6565b159050610e86576000818152600660205260408120610e869161257a565b60075460ff16156111bf5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108f2565b60006001600160a01b0384163b156122a557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121f3903390899088908890600401612e0f565b6020604051808303816000875af192505050801561222e575060408051601f3d908101601f1916820190925261222b91810190612e4c565b60015b61228b573d80801561225c576040519150601f19603f3d011682016040523d82523d6000602084013e612261565b606091505b5080516000036122835760405162461bcd60e51b81526004016108f290612d37565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611941565b506001949350505050565b6060600c80546107d4906129e6565b60606122ca8261181d565b60006122d46122b0565b905060008151116122f4576040518060200160405280600081525061231f565b806122fe84611f4c565b60405160200161230f929190612d89565b6040516020818303038152906040525b9392505050565b600081831061234257600082815260208490526040902061231f565b5060009182526020526040902090565b61235c838361242c565b61236960008484846121af565b6109935760405162461bcd60e51b81526004016108f290612d37565b600061239082611039565b905061239e81600084611edd565b6123a960008361187c565b6001600160a01b03811660009081526003602052604081208054600192906123d2908490612d11565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166124825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f2565b6000818152600260205260409020546001600160a01b0316156124e75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f2565b6124f360008383611edd565b6001600160a01b038216600090815260036020526040812080546001929061251c908490612d24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612586906129e6565b6000825580601f10612596575050565b601f016020900490600052602060002090810190610e8691905b808211156125c457600081556001016125b0565b5090565b6001600160e01b031981168114610e8657600080fd5b6000602082840312156125f057600080fd5b813561231f816125c8565b60005b838110156126165781810151838201526020016125fe565b50506000910152565b600081518084526126378160208601602086016125fb565b601f01601f19169290920160200192915050565b60208152600061231f602083018461261f565b60006020828403121561267057600080fd5b5035919050565b80356001600160a01b038116811461268e57600080fd5b919050565b600080604083850312156126a657600080fd5b6126af83612677565b946020939093013593505050565b6000806000606084860312156126d257600080fd5b6126db84612677565b92506126e960208501612677565b9150604084013590509250925092565b803561ffff8116811461268e57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561274a5761274a61270b565b604052919050565b6000806040838503121561276557600080fd5b61276e836126f9565b915060208084013567ffffffffffffffff8082111561278c57600080fd5b818601915086601f8301126127a057600080fd5b8135818111156127b2576127b261270b565b8060051b91506127c3848301612721565b81815291830184019184810190898411156127dd57600080fd5b938501935b838510156127fb578435825293850193908501906127e2565b8096505050505050509250929050565b60006020828403121561281d57600080fd5b61231f82612677565b600067ffffffffffffffff8311156128405761284061270b565b612853601f8401601f1916602001612721565b905082815283838301111561286757600080fd5b828260208301376000602084830101529392505050565b60006020828403121561289057600080fd5b813567ffffffffffffffff8111156128a757600080fd5b8201601f810184136128b857600080fd5b61194184823560208401612826565b8035801515811461268e57600080fd5b6000602082840312156128e957600080fd5b61231f826128c7565b6000806040838503121561290557600080fd5b61290e83612677565b915061291c602084016128c7565b90509250929050565b6000806000806080858703121561293b57600080fd5b61294485612677565b935061295260208601612677565b925060408501359150606085013567ffffffffffffffff81111561297557600080fd5b8501601f8101871361298657600080fd5b61299587823560208401612826565b91505092959194509250565b600080604083850312156129b457600080fd5b6129bd83612677565b915061291c60208401612677565b6000602082840312156129dd57600080fd5b61231f826126f9565b600181811c908216806129fa57607f821691505b602082108103612a1a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526034908201527f546869732066756e6374696f6e206973206e6f206c6f6e67657220776f726b6960408201527337339030b33a32b9103a3432903932bb32b0b61760611b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115612af357612af3612ac2565b5092915050565b80820281158282048414176107bf576107bf612ac2565b61ffff818116838216019080821115612af357612af3612ac2565b600061ffff808316818103612b4357612b43612ac2565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8103612b7957612b79612ac2565b60010192915050565b60208082526027908201527f4f6e6c7920616e2061646d696e732063616e20616363657373207468697320666040820152663ab731ba34b7b760c91b606082015260800190565b66697066733a2f2f60c81b815260008251612beb8160078501602087016125fb565b602f60f81b6007939091019283015250600801919050565b601f82111561099357600081815260208120601f850160051c81016020861015612c2a5750805b601f850160051c820191505b81811015612c4957828155600101612c36565b505050505050565b815167ffffffffffffffff811115612c6b57612c6b61270b565b612c7f81612c7984546129e6565b84612c03565b602080601f831160018114612cb45760008415612c9c5750858301515b600019600386901b1c1916600185901b178555612c49565b600085815260208120601f198616915b82811015612ce357888601518255948401946001909101908401612cc4565b5085821015612d015787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156107bf576107bf612ac2565b808201808211156107bf576107bf612ac2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612d9b8184602088016125fb565b835190830190612daf8183602088016125fb565b01949350505050565b600060018201612dca57612dca612ac2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612df657612df6612dd1565b500490565b600082612e0a57612e0a612dd1565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e429083018461261f565b9695505050505050565b600060208284031215612e5e57600080fd5b815161231f816125c856fea2646970667358221220a049871c41aa404fbf97cefa3ee0d22edf2e5b98c867979d7a3833c33150024464736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006008dca4a3853ca2817560eb63d5819b18a091ec787babc9120ec8e6724dfaf69900000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002e516d50386d667566596a6d764148504d686159396144483464634773556645367266345441554b643656615668790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000c61dea390759235091a60152fc7923de392ee715000000000000000000000000be46e89825a4b01334507922bacdfb374d66a908000000000000000000000000258ad032eee1cc71264fd8f9abe9c74d50ff8c4f000000000000000000000000ae0ba69c19828ef4899e0effd71fcbb8a56e25ad
-----Decoded View---------------
Arg [0] : _placeholderTokenURI (string): QmP8mfufYjmvAHPMhaY9aDH4dcGsUfE6rf4TAUKd6VaVhy
Arg [1] : _merkleRoot (bytes32): 0x08dca4a3853ca2817560eb63d5819b18a091ec787babc9120ec8e6724dfaf699
Arg [2] : _admins (address[]): 0xc61deA390759235091A60152fc7923dE392EE715,0xbe46e89825A4B01334507922baCDFB374D66a908,0x258aD032EeE1cc71264FD8f9ABE9C74d50FF8c4f,0xaE0bA69C19828Ef4899e0EfFd71fcBb8A56E25AD
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 08dca4a3853ca2817560eb63d5819b18a091ec787babc9120ec8e6724dfaf699
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [4] : 516d50386d667566596a6d764148504d68615939614448346463477355664536
Arg [5] : 7266345441554b64365661566879000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 000000000000000000000000c61dea390759235091a60152fc7923de392ee715
Arg [8] : 000000000000000000000000be46e89825a4b01334507922bacdfb374d66a908
Arg [9] : 000000000000000000000000258ad032eee1cc71264fd8f9abe9c74d50ff8c4f
Arg [10] : 000000000000000000000000ae0ba69c19828ef4899e0effd71fcbb8a56e25ad
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.