ERC-721
Overview
Max Total Supply
691 ME
Holders
212
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 MELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
NFT
Compiler Version
v0.8.3+commit.8d00100c
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-02-18 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.3; // Part: Address library Address { function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } 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" ); } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } 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" ); } 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); } function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } 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); } function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } 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); } 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: Context /** * @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; } } // Part: IERC165 /** * @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); } // Part: IERC721Receiver /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // Part: Strings /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // Part: ERC165 /** * @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; } } // Part: IERC721 /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // Part: Ownable /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Part: IERC721Enumerable /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // Part: IERC721Metadata /** * @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); } // Part: ERC721A /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require( owner != address(0), "ERC721A: balance query for the zero address" ); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require( _exists(tokenId), "ERC721A: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721A: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // File: NFT.sol contract NFT is ERC721A, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.1 ether; uint256 public maxSupply = 300; uint256 public maxMintAmount = 10; uint256 public nftPerAddressLimit = 3; uint256 public nftClaimLimit = 1; bool public paused = false; bool public revealed = false; bool public onlyWhitelisted = true; mapping(address => bool) whitelistedAddresses; mapping(address => uint256) public addressMintedBalance; mapping(address => bool) public hasClaimed; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNonRevealURI ) ERC721A(_name, _symbol, maxMintAmount, maxSupply) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNonRevealURI); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function mint(uint256 _mintAmount) public payable { require(!paused, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require( _mintAmount <= maxMintAmount, "max mint amount per session exceeded" ); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { if (onlyWhitelisted == true) { require( whitelistedAddresses[msg.sender], "user is not whitelisted" ); uint256 ownerMintedCountWL = addressMintedBalance[msg.sender]; require( ownerMintedCountWL + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded" ); } uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require( ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded" ); require(msg.value >= cost * _mintAmount, "insufficient funds"); } _safeMint(msg.sender, _mintAmount); addressMintedBalance[msg.sender] = addressMintedBalance[msg.sender] + _mintAmount; } function claimFree() public { uint256 ownerBalance = addressMintedBalance[msg.sender]; require(ownerBalance >= nftClaimLimit, "Must be minted 2"); require(!hasClaimed[msg.sender]); _safeMint(msg.sender, 1); hasClaimed[msg.sender] = true; } function isWhitelisted(address _user) public view returns (bool) { return whitelistedAddresses[_user]; } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), baseExtension ) ) : ""; } //only owner function reveal() public onlyOwner { revealed = true; } function setNftPerAddressLimit(uint256 _limit) public onlyOwner { nftPerAddressLimit = _limit; } function setNftClaimLimit(uint256 _limit) public onlyOwner { nftClaimLimit = _limit; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function pause(bool _state) public onlyOwner { paused = _state; } function setOnlyWhitelisted(bool _state) public onlyOwner { onlyWhitelisted = _state; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function whitelistUsers(address[] memory addresses) public onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { whitelistedAddresses[addresses[i]] = true; } } function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNonRevealURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftClaimLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftClaimLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6000808055600755610100604052600560c081905264173539b7b760d91b60e09081526200003191600a9190620002df565b5067016345785d8a0000600c5561012c600d55600a600e556003600f5560016010556011805462ffffff1916620100001790553480156200007157600080fd5b506040516200330238038062003302833981016040819052620000949162000438565b8383600e54600d5460008111620001095760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b600082116200016b5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000100565b835162000180906001906020870190620002df565b50825162000196906002906020860190620002df565b5060a09190915260805250620001ae905033620001ce565b620001b98262000220565b620001c48162000284565b505050506200053f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b031633146200026b5760405162461bcd60e51b81526020600482018190526024820152600080516020620032e2833981519152604482015260640162000100565b805162000280906009906020840190620002df565b5050565b6008546001600160a01b03163314620002cf5760405162461bcd60e51b81526020600482018190526024820152600080516020620032e2833981519152604482015260640162000100565b80516200028090600b9060208401905b828054620002ed90620004ec565b90600052602060002090601f0160209004810192826200031157600085556200035c565b82601f106200032c57805160ff19168380011785556200035c565b828001600101855582156200035c579182015b828111156200035c5782518255916020019190600101906200033f565b506200036a9291506200036e565b5090565b5b808211156200036a57600081556001016200036f565b600082601f83011262000396578081fd5b81516001600160401b0380821115620003b357620003b362000529565b604051601f8301601f19908116603f01168101908282118183101715620003de57620003de62000529565b81604052838152602092508683858801011115620003fa578485fd5b8491505b838210156200041d5785820183015181830184015290820190620003fe565b838211156200042e57848385830101525b9695505050505050565b600080600080608085870312156200044e578384fd5b84516001600160401b038082111562000465578586fd5b620004738883890162000385565b9550602087015191508082111562000489578485fd5b620004978883890162000385565b94506040870151915080821115620004ad578384fd5b620004bb8883890162000385565b93506060870151915080821115620004d1578283fd5b50620004e08782880162000385565b91505092959194509250565b600181811c908216806200050157607f821691505b602082108114156200052357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a051612d726200057060003960008181611ede01528181611f080152612369015260005050612d726000f3fe6080604052600436106102c95760003560e01c806370a0823111610175578063bfe45d39116100dc578063da3ef23f11610095578063edec5f271161006f578063edec5f2714610882578063f2c4ce1e146108a2578063f2fde38b146108c2578063f366afc9146108e2576102c9565b8063da3ef23f146107f9578063e17f9b6414610819578063e985e9c514610839576102c9565b8063bfe45d3914610762578063c668286214610778578063c87b56dd1461078d578063d0eb26b0146107ad578063d5abeb01146107cd578063d7224ba0146107e3576102c9565b80639c70b5121161012e5780639c70b512146106c4578063a0712d68146106e4578063a22cb465146106f7578063a475b5dd14610717578063b88d4fde1461072c578063ba7d2c761461074c576102c9565b806370a082311461060c578063715018a61461062c57806373b2e80e146106415780637f00c7a6146106715780638da5cb5b1461069157806395d89b41146106af576102c9565b80633af32abf116102345780634f6ccce7116101ed5780635c975abb116101c75780635c975abb1461059d5780636352211e146105b75780636c0360eb146105d75780636f8b44b0146105ec576102c9565b80634f6ccce71461053e578063518302271461055e57806355f804b31461057d576102c9565b80633af32abf146104705780633c952764146104a95780633ccfd60b146104c957806342842e0e146104d1578063438b6300146104f157806344a0d68a1461051e576102c9565b806313faede61161028657806313faede6146103b457806318160ddd146103d857806318cae269146103ed578063239c70ae1461041a57806323b872dd146104305780632f745c5914610450576102c9565b806301ffc9a7146102ce57806302329a291461030357806306fdde0314610325578063081812fc14610347578063081c8c441461037f578063095ea7b314610394575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046128b1565b6108f7565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061032361031e366004612897565b610966565b005b34801561033157600080fd5b5061033a6109ac565b6040516102fa9190612ab6565b34801561035357600080fd5b5061036761036236600461292f565b610a3e565b6040516001600160a01b0390911681526020016102fa565b34801561038b57600080fd5b5061033a610ac9565b3480156103a057600080fd5b506103236103af3660046127bf565b610b57565b3480156103c057600080fd5b506103ca600c5481565b6040519081526020016102fa565b3480156103e457600080fd5b506000546103ca565b3480156103f957600080fd5b506103ca610408366004612696565b60136020526000908152604090205481565b34801561042657600080fd5b506103ca600e5481565b34801561043c57600080fd5b5061032361044b3660046126e2565b610c6f565b34801561045c57600080fd5b506103ca61046b3660046127bf565b610c7a565b34801561047c57600080fd5b506102ee61048b366004612696565b6001600160a01b031660009081526012602052604090205460ff1690565b3480156104b557600080fd5b506103236104c4366004612897565b610dee565b610323610e34565b3480156104dd57600080fd5b506103236104ec3660046126e2565b610ed2565b3480156104fd57600080fd5b5061051161050c366004612696565b610eed565b6040516102fa9190612a72565b34801561052a57600080fd5b5061032361053936600461292f565b610fab565b34801561054a57600080fd5b506103ca61055936600461292f565b610fda565b34801561056a57600080fd5b506011546102ee90610100900460ff1681565b34801561058957600080fd5b506103236105983660046128e9565b61103c565b3480156105a957600080fd5b506011546102ee9060ff1681565b3480156105c357600080fd5b506103676105d236600461292f565b61107d565b3480156105e357600080fd5b5061033a61108f565b3480156105f857600080fd5b5061032361060736600461292f565b61109c565b34801561061857600080fd5b506103ca610627366004612696565b6110cb565b34801561063857600080fd5b5061032361115c565b34801561064d57600080fd5b506102ee61065c366004612696565b60146020526000908152604090205460ff1681565b34801561067d57600080fd5b5061032361068c36600461292f565b611192565b34801561069d57600080fd5b506008546001600160a01b0316610367565b3480156106bb57600080fd5b5061033a6111c1565b3480156106d057600080fd5b506011546102ee9062010000900460ff1681565b6103236106f236600461292f565b6111d0565b34801561070357600080fd5b50610323610712366004612796565b61150a565b34801561072357600080fd5b506103236115dc565b34801561073857600080fd5b5061032361074736600461271d565b611617565b34801561075857600080fd5b506103ca600f5481565b34801561076e57600080fd5b506103ca60105481565b34801561078457600080fd5b5061033a611650565b34801561079957600080fd5b5061033a6107a836600461292f565b61165d565b3480156107b957600080fd5b506103236107c836600461292f565b6117ce565b3480156107d957600080fd5b506103ca600d5481565b3480156107ef57600080fd5b506103ca60075481565b34801561080557600080fd5b506103236108143660046128e9565b6117fd565b34801561082557600080fd5b5061032361083436600461292f565b61183a565b34801561084557600080fd5b506102ee6108543660046126b0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088e57600080fd5b5061032361089d3660046127e8565b611869565b3480156108ae57600080fd5b506103236108bd3660046128e9565b611909565b3480156108ce57600080fd5b506103236108dd366004612696565b611946565b3480156108ee57600080fd5b506103236119de565b60006001600160e01b031982166380ac58cd60e01b148061092857506001600160e01b03198216635b5e139f60e01b145b8061094357506001600160e01b0319821663780e9d6360e01b145b8061095e57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6008546001600160a01b031633146109995760405162461bcd60e51b815260040161099090612ac9565b60405180910390fd5b6011805460ff1916911515919091179055565b6060600180546109bb90612c7a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e790612c7a565b8015610a345780601f10610a0957610100808354040283529160200191610a34565b820191906000526020600020905b815481529060010190602001808311610a1757829003601f168201915b5050505050905090565b6000610a4b826000541190565b610aad5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610990565b506000908152600560205260409020546001600160a01b031690565b600b8054610ad690612c7a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0290612c7a565b8015610b4f5780601f10610b2457610100808354040283529160200191610b4f565b820191906000526020600020905b815481529060010190602001808311610b3257829003601f168201915b505050505081565b6000610b628261107d565b9050806001600160a01b0316836001600160a01b03161415610bd15760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610990565b336001600160a01b0382161480610bed5750610bed8133610854565b610c5f5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610990565b610c6a838383611a78565b505050565b610c6a838383611ad4565b6000610c85836110cb565b8210610cde5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610990565b600080549080805b83811015610d88576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610d3957805192505b876001600160a01b0316836001600160a01b03161415610d755786841415610d6757509350610de892505050565b83610d7181612cb5565b9450505b5080610d8081612cb5565b915050610ce6565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610990565b92915050565b6008546001600160a01b03163314610e185760405162461bcd60e51b815260040161099090612ac9565b60118054911515620100000262ff000019909216919091179055565b6008546001600160a01b03163314610e5e5760405162461bcd60e51b815260040161099090612ac9565b6000610e726008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ebc576040519150601f19603f3d011682016040523d82523d6000602084013e610ec1565b606091505b5050905080610ecf57600080fd5b50565b610c6a83838360405180602001604052806000815250611617565b60606000610efa836110cb565b905060008167ffffffffffffffff811115610f2557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f4e578160200160208202803683370190505b50905060005b82811015610fa357610f668582610c7a565b828281518110610f8657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f9b81612cb5565b915050610f54565b509392505050565b6008546001600160a01b03163314610fd55760405162461bcd60e51b815260040161099090612ac9565b600c55565b6000805482106110385760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610990565b5090565b6008546001600160a01b031633146110665760405162461bcd60e51b815260040161099090612ac9565b8051611079906009906020840190612587565b5050565b600061108882611e5c565b5192915050565b60098054610ad690612c7a565b6008546001600160a01b031633146110c65760405162461bcd60e51b815260040161099090612ac9565b600d55565b60006001600160a01b0382166111375760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610990565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146111865760405162461bcd60e51b815260040161099090612ac9565b6111906000612008565b565b6008546001600160a01b031633146111bc5760405162461bcd60e51b815260040161099090612ac9565b600e55565b6060600280546109bb90612c7a565b60115460ff161561121c5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610990565b6000548161126c5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610990565b600e548211156112ca5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610990565b600d546112d78383612bad565b111561131e5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610990565b6008546001600160a01b031633146114d15760115462010000900460ff16151560011415611412573360009081526012602052604090205460ff166113a55760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610990565b33600090815260136020526040902054600f546113c28483612bad565b11156114105760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610990565b505b33600090815260136020526040902054600f5461142f8483612bad565b111561147d5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610990565b82600c5461148b9190612bd9565b3410156114cf5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610990565b505b6114db338361205a565b336000908152601360205260409020546114f6908390612bad565b336000908152601360205260409020555050565b6001600160a01b0382163314156115635760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610990565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115d0911515815260200190565b60405180910390a35050565b6008546001600160a01b031633146116065760405162461bcd60e51b815260040161099090612ac9565b6011805461ff001916610100179055565b611622848484611ad4565b61162e84848484612074565b61164a5760405162461bcd60e51b815260040161099090612afe565b50505050565b600a8054610ad690612c7a565b606061166a826000541190565b6116ce5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610990565b601154610100900460ff1661176f57600b80546116ea90612c7a565b80601f016020809104026020016040519081016040528092919081815260200182805461171690612c7a565b80156117635780601f1061173857610100808354040283529160200191611763565b820191906000526020600020905b81548152906001019060200180831161174657829003601f168201915b50505050509050610961565b6000611779612182565b9050600081511161179957604051806020016040528060008152506117c7565b806117a384612191565b600a6040516020016117b793929190612973565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146117f85760405162461bcd60e51b815260040161099090612ac9565b600f55565b6008546001600160a01b031633146118275760405162461bcd60e51b815260040161099090612ac9565b805161107990600a906020840190612587565b6008546001600160a01b031633146118645760405162461bcd60e51b815260040161099090612ac9565b601055565b6008546001600160a01b031633146118935760405162461bcd60e51b815260040161099090612ac9565b60005b8151811015611079576001601260008484815181106118c557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061190181612cb5565b915050611896565b6008546001600160a01b031633146119335760405162461bcd60e51b815260040161099090612ac9565b805161107990600b906020840190612587565b6008546001600160a01b031633146119705760405162461bcd60e51b815260040161099090612ac9565b6001600160a01b0381166119d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610990565b610ecf81612008565b33600090815260136020526040902054601054811015611a335760405162461bcd60e51b815260206004820152601060248201526f26bab9ba1031329036b4b73a32b2101960811b6044820152606401610990565b3360009081526014602052604090205460ff1615611a5057600080fd5b611a5b33600161205a565b50336000908152601460205260409020805460ff19166001179055565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611adf82611e5c565b80519091506000906001600160a01b0316336001600160a01b03161480611b16575033611b0b84610a3e565b6001600160a01b0316145b80611b2857508151611b289033610854565b905080611b925760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610990565b846001600160a01b031682600001516001600160a01b031614611c065760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610990565b6001600160a01b038416611c6a5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610990565b611c7a6000848460000151611a78565b6001600160a01b0385166000908152600460205260408120805460019290611cac9084906001600160801b0316612bf8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611cf891859116612b82565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611d80846001612bad565b6000818152600360205260409020549091506001600160a01b0316611e1257611daa816000541190565b15611e125760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611e7b826000541190565b611eda5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610990565b60007f00000000000000000000000000000000000000000000000000000000000000008310611f3b57611f2d7f000000000000000000000000000000000000000000000000000000000000000084612c20565b611f38906001612bad565b90505b825b818110611fa7576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611f94579250610961915050565b5080611f9f81612c63565b915050611f3d565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610990565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110798282604051806020016040528060008152506122ac565b60006001600160a01b0384163b1561217657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120b8903390899088908890600401612a35565b602060405180830381600087803b1580156120d257600080fd5b505af1925050508015612102575060408051601f3d908101601f191682019092526120ff918101906128cd565b60015b61215c573d808015612130576040519150601f19603f3d011682016040523d82523d6000602084013e612135565b606091505b5080516121545760405162461bcd60e51b815260040161099090612afe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061217a565b5060015b949350505050565b6060600980546109bb90612c7a565b6060816121b657506040805180820190915260018152600360fc1b6020820152610961565b8160005b81156121e057806121ca81612cb5565b91506121d99050600a83612bc5565b91506121ba565b60008167ffffffffffffffff81111561220957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612233576020820181803683370190505b5090505b841561217a57612248600183612c20565b9150612255600a86612cd0565b612260906030612bad565b60f81b81838151811061228357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122a5600a86612bc5565b9450612237565b6000546001600160a01b03841661230f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610990565b61231a816000541190565b156123675760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610990565b7f00000000000000000000000000000000000000000000000000000000000000008311156123e25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610990565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061243e908790612b82565b6001600160801b0316815260200185836020015161245c9190612b82565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561257c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125406000888488612074565b61255c5760405162461bcd60e51b815260040161099090612afe565b8161256681612cb5565b925050808061257490612cb5565b9150506124f3565b506000819055611e54565b82805461259390612c7a565b90600052602060002090601f0160209004810192826125b557600085556125fb565b82601f106125ce57805160ff19168380011785556125fb565b828001600101855582156125fb579182015b828111156125fb5782518255916020019190600101906125e0565b506110389291505b808211156110385760008155600101612603565b600067ffffffffffffffff83111561263157612631612d10565b612644601f8401601f1916602001612b51565b905082815283838301111561265857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461096157600080fd5b8035801515811461096157600080fd5b6000602082840312156126a7578081fd5b6117c78261266f565b600080604083850312156126c2578081fd5b6126cb8361266f565b91506126d96020840161266f565b90509250929050565b6000806000606084860312156126f6578081fd5b6126ff8461266f565b925061270d6020850161266f565b9150604084013590509250925092565b60008060008060808587031215612732578081fd5b61273b8561266f565b93506127496020860161266f565b925060408501359150606085013567ffffffffffffffff81111561276b578182fd5b8501601f8101871361277b578182fd5b61278a87823560208401612617565b91505092959194509250565b600080604083850312156127a8578182fd5b6127b18361266f565b91506126d960208401612686565b600080604083850312156127d1578182fd5b6127da8361266f565b946020939093013593505050565b600060208083850312156127fa578182fd5b823567ffffffffffffffff80821115612811578384fd5b818501915085601f830112612824578384fd5b81358181111561283657612836612d10565b8060051b9150612847848301612b51565b8181528481019084860184860187018a1015612861578788fd5b8795505b8386101561288a576128768161266f565b835260019590950194918601918601612865565b5098975050505050505050565b6000602082840312156128a8578081fd5b6117c782612686565b6000602082840312156128c2578081fd5b81356117c781612d26565b6000602082840312156128de578081fd5b81516117c781612d26565b6000602082840312156128fa578081fd5b813567ffffffffffffffff811115612910578182fd5b8201601f81018413612920578182fd5b61217a84823560208401612617565b600060208284031215612940578081fd5b5035919050565b6000815180845261295f816020860160208601612c37565b601f01601f19169290920160200192915050565b6000845160206129868285838a01612c37565b8551918401916129998184848a01612c37565b85549201918390600181811c90808316806129b557607f831692505b8583108114156129d357634e487b7160e01b88526022600452602488fd5b8080156129e757600181146129f857612a24565b60ff19851688528388019550612a24565b60008b815260209020895b85811015612a1c5781548a820152908401908801612a03565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a6890830184612947565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612aaa57835183529284019291840191600101612a8e565b50909695505050505050565b6000602082526117c76020830184612947565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b7a57612b7a612d10565b604052919050565b60006001600160801b03808316818516808303821115612ba457612ba4612ce4565b01949350505050565b60008219821115612bc057612bc0612ce4565b500190565b600082612bd457612bd4612cfa565b500490565b6000816000190483118215151615612bf357612bf3612ce4565b500290565b60006001600160801b0383811690831681811015612c1857612c18612ce4565b039392505050565b600082821015612c3257612c32612ce4565b500390565b60005b83811015612c52578181015183820152602001612c3a565b8381111561164a5750506000910152565b600081612c7257612c72612ce4565b506000190190565b600181811c90821680612c8e57607f821691505b60208210811415612caf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cc957612cc9612ce4565b5060010190565b600082612cdf57612cdf612cfa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ecf57600080fdfea264697066735822122000cdfa16c4af3c16f6cce28c74ffec6bcee366ed51137c23464bb1a56b3b1b4964736f6c634300080300334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000b4d6574612045737461746500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d517667396b54745a394778757474325862483579516f55656a4d6d33514d773545453255414e594e366d695400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d517667396b54745a394778757474325862483579516f55656a4d6d33514d773545453255414e594e366d695400000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c806370a0823111610175578063bfe45d39116100dc578063da3ef23f11610095578063edec5f271161006f578063edec5f2714610882578063f2c4ce1e146108a2578063f2fde38b146108c2578063f366afc9146108e2576102c9565b8063da3ef23f146107f9578063e17f9b6414610819578063e985e9c514610839576102c9565b8063bfe45d3914610762578063c668286214610778578063c87b56dd1461078d578063d0eb26b0146107ad578063d5abeb01146107cd578063d7224ba0146107e3576102c9565b80639c70b5121161012e5780639c70b512146106c4578063a0712d68146106e4578063a22cb465146106f7578063a475b5dd14610717578063b88d4fde1461072c578063ba7d2c761461074c576102c9565b806370a082311461060c578063715018a61461062c57806373b2e80e146106415780637f00c7a6146106715780638da5cb5b1461069157806395d89b41146106af576102c9565b80633af32abf116102345780634f6ccce7116101ed5780635c975abb116101c75780635c975abb1461059d5780636352211e146105b75780636c0360eb146105d75780636f8b44b0146105ec576102c9565b80634f6ccce71461053e578063518302271461055e57806355f804b31461057d576102c9565b80633af32abf146104705780633c952764146104a95780633ccfd60b146104c957806342842e0e146104d1578063438b6300146104f157806344a0d68a1461051e576102c9565b806313faede61161028657806313faede6146103b457806318160ddd146103d857806318cae269146103ed578063239c70ae1461041a57806323b872dd146104305780632f745c5914610450576102c9565b806301ffc9a7146102ce57806302329a291461030357806306fdde0314610325578063081812fc14610347578063081c8c441461037f578063095ea7b314610394575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046128b1565b6108f7565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061032361031e366004612897565b610966565b005b34801561033157600080fd5b5061033a6109ac565b6040516102fa9190612ab6565b34801561035357600080fd5b5061036761036236600461292f565b610a3e565b6040516001600160a01b0390911681526020016102fa565b34801561038b57600080fd5b5061033a610ac9565b3480156103a057600080fd5b506103236103af3660046127bf565b610b57565b3480156103c057600080fd5b506103ca600c5481565b6040519081526020016102fa565b3480156103e457600080fd5b506000546103ca565b3480156103f957600080fd5b506103ca610408366004612696565b60136020526000908152604090205481565b34801561042657600080fd5b506103ca600e5481565b34801561043c57600080fd5b5061032361044b3660046126e2565b610c6f565b34801561045c57600080fd5b506103ca61046b3660046127bf565b610c7a565b34801561047c57600080fd5b506102ee61048b366004612696565b6001600160a01b031660009081526012602052604090205460ff1690565b3480156104b557600080fd5b506103236104c4366004612897565b610dee565b610323610e34565b3480156104dd57600080fd5b506103236104ec3660046126e2565b610ed2565b3480156104fd57600080fd5b5061051161050c366004612696565b610eed565b6040516102fa9190612a72565b34801561052a57600080fd5b5061032361053936600461292f565b610fab565b34801561054a57600080fd5b506103ca61055936600461292f565b610fda565b34801561056a57600080fd5b506011546102ee90610100900460ff1681565b34801561058957600080fd5b506103236105983660046128e9565b61103c565b3480156105a957600080fd5b506011546102ee9060ff1681565b3480156105c357600080fd5b506103676105d236600461292f565b61107d565b3480156105e357600080fd5b5061033a61108f565b3480156105f857600080fd5b5061032361060736600461292f565b61109c565b34801561061857600080fd5b506103ca610627366004612696565b6110cb565b34801561063857600080fd5b5061032361115c565b34801561064d57600080fd5b506102ee61065c366004612696565b60146020526000908152604090205460ff1681565b34801561067d57600080fd5b5061032361068c36600461292f565b611192565b34801561069d57600080fd5b506008546001600160a01b0316610367565b3480156106bb57600080fd5b5061033a6111c1565b3480156106d057600080fd5b506011546102ee9062010000900460ff1681565b6103236106f236600461292f565b6111d0565b34801561070357600080fd5b50610323610712366004612796565b61150a565b34801561072357600080fd5b506103236115dc565b34801561073857600080fd5b5061032361074736600461271d565b611617565b34801561075857600080fd5b506103ca600f5481565b34801561076e57600080fd5b506103ca60105481565b34801561078457600080fd5b5061033a611650565b34801561079957600080fd5b5061033a6107a836600461292f565b61165d565b3480156107b957600080fd5b506103236107c836600461292f565b6117ce565b3480156107d957600080fd5b506103ca600d5481565b3480156107ef57600080fd5b506103ca60075481565b34801561080557600080fd5b506103236108143660046128e9565b6117fd565b34801561082557600080fd5b5061032361083436600461292f565b61183a565b34801561084557600080fd5b506102ee6108543660046126b0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561088e57600080fd5b5061032361089d3660046127e8565b611869565b3480156108ae57600080fd5b506103236108bd3660046128e9565b611909565b3480156108ce57600080fd5b506103236108dd366004612696565b611946565b3480156108ee57600080fd5b506103236119de565b60006001600160e01b031982166380ac58cd60e01b148061092857506001600160e01b03198216635b5e139f60e01b145b8061094357506001600160e01b0319821663780e9d6360e01b145b8061095e57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6008546001600160a01b031633146109995760405162461bcd60e51b815260040161099090612ac9565b60405180910390fd5b6011805460ff1916911515919091179055565b6060600180546109bb90612c7a565b80601f01602080910402602001604051908101604052809291908181526020018280546109e790612c7a565b8015610a345780601f10610a0957610100808354040283529160200191610a34565b820191906000526020600020905b815481529060010190602001808311610a1757829003601f168201915b5050505050905090565b6000610a4b826000541190565b610aad5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610990565b506000908152600560205260409020546001600160a01b031690565b600b8054610ad690612c7a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0290612c7a565b8015610b4f5780601f10610b2457610100808354040283529160200191610b4f565b820191906000526020600020905b815481529060010190602001808311610b3257829003601f168201915b505050505081565b6000610b628261107d565b9050806001600160a01b0316836001600160a01b03161415610bd15760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610990565b336001600160a01b0382161480610bed5750610bed8133610854565b610c5f5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610990565b610c6a838383611a78565b505050565b610c6a838383611ad4565b6000610c85836110cb565b8210610cde5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610990565b600080549080805b83811015610d88576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610d3957805192505b876001600160a01b0316836001600160a01b03161415610d755786841415610d6757509350610de892505050565b83610d7181612cb5565b9450505b5080610d8081612cb5565b915050610ce6565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610990565b92915050565b6008546001600160a01b03163314610e185760405162461bcd60e51b815260040161099090612ac9565b60118054911515620100000262ff000019909216919091179055565b6008546001600160a01b03163314610e5e5760405162461bcd60e51b815260040161099090612ac9565b6000610e726008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ebc576040519150601f19603f3d011682016040523d82523d6000602084013e610ec1565b606091505b5050905080610ecf57600080fd5b50565b610c6a83838360405180602001604052806000815250611617565b60606000610efa836110cb565b905060008167ffffffffffffffff811115610f2557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f4e578160200160208202803683370190505b50905060005b82811015610fa357610f668582610c7a565b828281518110610f8657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610f9b81612cb5565b915050610f54565b509392505050565b6008546001600160a01b03163314610fd55760405162461bcd60e51b815260040161099090612ac9565b600c55565b6000805482106110385760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610990565b5090565b6008546001600160a01b031633146110665760405162461bcd60e51b815260040161099090612ac9565b8051611079906009906020840190612587565b5050565b600061108882611e5c565b5192915050565b60098054610ad690612c7a565b6008546001600160a01b031633146110c65760405162461bcd60e51b815260040161099090612ac9565b600d55565b60006001600160a01b0382166111375760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610990565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146111865760405162461bcd60e51b815260040161099090612ac9565b6111906000612008565b565b6008546001600160a01b031633146111bc5760405162461bcd60e51b815260040161099090612ac9565b600e55565b6060600280546109bb90612c7a565b60115460ff161561121c5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610990565b6000548161126c5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610990565b600e548211156112ca5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610990565b600d546112d78383612bad565b111561131e5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610990565b6008546001600160a01b031633146114d15760115462010000900460ff16151560011415611412573360009081526012602052604090205460ff166113a55760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610990565b33600090815260136020526040902054600f546113c28483612bad565b11156114105760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610990565b505b33600090815260136020526040902054600f5461142f8483612bad565b111561147d5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610990565b82600c5461148b9190612bd9565b3410156114cf5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610990565b505b6114db338361205a565b336000908152601360205260409020546114f6908390612bad565b336000908152601360205260409020555050565b6001600160a01b0382163314156115635760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610990565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115d0911515815260200190565b60405180910390a35050565b6008546001600160a01b031633146116065760405162461bcd60e51b815260040161099090612ac9565b6011805461ff001916610100179055565b611622848484611ad4565b61162e84848484612074565b61164a5760405162461bcd60e51b815260040161099090612afe565b50505050565b600a8054610ad690612c7a565b606061166a826000541190565b6116ce5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610990565b601154610100900460ff1661176f57600b80546116ea90612c7a565b80601f016020809104026020016040519081016040528092919081815260200182805461171690612c7a565b80156117635780601f1061173857610100808354040283529160200191611763565b820191906000526020600020905b81548152906001019060200180831161174657829003601f168201915b50505050509050610961565b6000611779612182565b9050600081511161179957604051806020016040528060008152506117c7565b806117a384612191565b600a6040516020016117b793929190612973565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146117f85760405162461bcd60e51b815260040161099090612ac9565b600f55565b6008546001600160a01b031633146118275760405162461bcd60e51b815260040161099090612ac9565b805161107990600a906020840190612587565b6008546001600160a01b031633146118645760405162461bcd60e51b815260040161099090612ac9565b601055565b6008546001600160a01b031633146118935760405162461bcd60e51b815260040161099090612ac9565b60005b8151811015611079576001601260008484815181106118c557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061190181612cb5565b915050611896565b6008546001600160a01b031633146119335760405162461bcd60e51b815260040161099090612ac9565b805161107990600b906020840190612587565b6008546001600160a01b031633146119705760405162461bcd60e51b815260040161099090612ac9565b6001600160a01b0381166119d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610990565b610ecf81612008565b33600090815260136020526040902054601054811015611a335760405162461bcd60e51b815260206004820152601060248201526f26bab9ba1031329036b4b73a32b2101960811b6044820152606401610990565b3360009081526014602052604090205460ff1615611a5057600080fd5b611a5b33600161205a565b50336000908152601460205260409020805460ff19166001179055565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611adf82611e5c565b80519091506000906001600160a01b0316336001600160a01b03161480611b16575033611b0b84610a3e565b6001600160a01b0316145b80611b2857508151611b289033610854565b905080611b925760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610990565b846001600160a01b031682600001516001600160a01b031614611c065760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610990565b6001600160a01b038416611c6a5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610990565b611c7a6000848460000151611a78565b6001600160a01b0385166000908152600460205260408120805460019290611cac9084906001600160801b0316612bf8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611cf891859116612b82565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611d80846001612bad565b6000818152600360205260409020549091506001600160a01b0316611e1257611daa816000541190565b15611e125760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611e7b826000541190565b611eda5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610990565b60007f000000000000000000000000000000000000000000000000000000000000000a8310611f3b57611f2d7f000000000000000000000000000000000000000000000000000000000000000a84612c20565b611f38906001612bad565b90505b825b818110611fa7576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611f94579250610961915050565b5080611f9f81612c63565b915050611f3d565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610990565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110798282604051806020016040528060008152506122ac565b60006001600160a01b0384163b1561217657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120b8903390899088908890600401612a35565b602060405180830381600087803b1580156120d257600080fd5b505af1925050508015612102575060408051601f3d908101601f191682019092526120ff918101906128cd565b60015b61215c573d808015612130576040519150601f19603f3d011682016040523d82523d6000602084013e612135565b606091505b5080516121545760405162461bcd60e51b815260040161099090612afe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061217a565b5060015b949350505050565b6060600980546109bb90612c7a565b6060816121b657506040805180820190915260018152600360fc1b6020820152610961565b8160005b81156121e057806121ca81612cb5565b91506121d99050600a83612bc5565b91506121ba565b60008167ffffffffffffffff81111561220957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612233576020820181803683370190505b5090505b841561217a57612248600183612c20565b9150612255600a86612cd0565b612260906030612bad565b60f81b81838151811061228357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506122a5600a86612bc5565b9450612237565b6000546001600160a01b03841661230f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610990565b61231a816000541190565b156123675760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610990565b7f000000000000000000000000000000000000000000000000000000000000000a8311156123e25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610990565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061243e908790612b82565b6001600160801b0316815260200185836020015161245c9190612b82565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561257c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125406000888488612074565b61255c5760405162461bcd60e51b815260040161099090612afe565b8161256681612cb5565b925050808061257490612cb5565b9150506124f3565b506000819055611e54565b82805461259390612c7a565b90600052602060002090601f0160209004810192826125b557600085556125fb565b82601f106125ce57805160ff19168380011785556125fb565b828001600101855582156125fb579182015b828111156125fb5782518255916020019190600101906125e0565b506110389291505b808211156110385760008155600101612603565b600067ffffffffffffffff83111561263157612631612d10565b612644601f8401601f1916602001612b51565b905082815283838301111561265857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461096157600080fd5b8035801515811461096157600080fd5b6000602082840312156126a7578081fd5b6117c78261266f565b600080604083850312156126c2578081fd5b6126cb8361266f565b91506126d96020840161266f565b90509250929050565b6000806000606084860312156126f6578081fd5b6126ff8461266f565b925061270d6020850161266f565b9150604084013590509250925092565b60008060008060808587031215612732578081fd5b61273b8561266f565b93506127496020860161266f565b925060408501359150606085013567ffffffffffffffff81111561276b578182fd5b8501601f8101871361277b578182fd5b61278a87823560208401612617565b91505092959194509250565b600080604083850312156127a8578182fd5b6127b18361266f565b91506126d960208401612686565b600080604083850312156127d1578182fd5b6127da8361266f565b946020939093013593505050565b600060208083850312156127fa578182fd5b823567ffffffffffffffff80821115612811578384fd5b818501915085601f830112612824578384fd5b81358181111561283657612836612d10565b8060051b9150612847848301612b51565b8181528481019084860184860187018a1015612861578788fd5b8795505b8386101561288a576128768161266f565b835260019590950194918601918601612865565b5098975050505050505050565b6000602082840312156128a8578081fd5b6117c782612686565b6000602082840312156128c2578081fd5b81356117c781612d26565b6000602082840312156128de578081fd5b81516117c781612d26565b6000602082840312156128fa578081fd5b813567ffffffffffffffff811115612910578182fd5b8201601f81018413612920578182fd5b61217a84823560208401612617565b600060208284031215612940578081fd5b5035919050565b6000815180845261295f816020860160208601612c37565b601f01601f19169290920160200192915050565b6000845160206129868285838a01612c37565b8551918401916129998184848a01612c37565b85549201918390600181811c90808316806129b557607f831692505b8583108114156129d357634e487b7160e01b88526022600452602488fd5b8080156129e757600181146129f857612a24565b60ff19851688528388019550612a24565b60008b815260209020895b85811015612a1c5781548a820152908401908801612a03565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a6890830184612947565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612aaa57835183529284019291840191600101612a8e565b50909695505050505050565b6000602082526117c76020830184612947565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b7a57612b7a612d10565b604052919050565b60006001600160801b03808316818516808303821115612ba457612ba4612ce4565b01949350505050565b60008219821115612bc057612bc0612ce4565b500190565b600082612bd457612bd4612cfa565b500490565b6000816000190483118215151615612bf357612bf3612ce4565b500290565b60006001600160801b0383811690831681811015612c1857612c18612ce4565b039392505050565b600082821015612c3257612c32612ce4565b500390565b60005b83811015612c52578181015183820152602001612c3a565b8381111561164a5750506000910152565b600081612c7257612c72612ce4565b506000190190565b600181811c90821680612c8e57607f821691505b60208210811415612caf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cc957612cc9612ce4565b5060010190565b600082612cdf57612cdf612cfa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ecf57600080fdfea264697066735822122000cdfa16c4af3c16f6cce28c74ffec6bcee366ed51137c23464bb1a56b3b1b4964736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000b4d6574612045737461746500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d517667396b54745a394778757474325862483579516f55656a4d6d33514d773545453255414e594e366d695400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d517667396b54745a394778757474325862483579516f55656a4d6d33514d773545453255414e594e366d695400000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Meta Estate
Arg [1] : _symbol (string): ME
Arg [2] : _initBaseURI (string): https://gateway.pinata.cloud/ipfs/QmQvg9kTtZ9Gxutt2XbH5yQoUejMm3QMw5EE2UANYN6miT
Arg [3] : _initNonRevealURI (string): https://gateway.pinata.cloud/ipfs/QmQvg9kTtZ9Gxutt2XbH5yQoUejMm3QMw5EE2UANYN6miT
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 4d65746120457374617465000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 4d45000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [9] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [10] : 732f516d517667396b54745a394778757474325862483579516f55656a4d6d33
Arg [11] : 514d773545453255414e594e366d695400000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [13] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [14] : 732f516d517667396b54745a394778757474325862483579516f55656a4d6d33
Arg [15] : 514d773545453255414e594e366d695400000000000000000000000000000000
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.