Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
10,000 V3PUNK
Holders
2,018
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 V3PUNKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
V3Punks
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * \ \ / /\_____ \ \______ \ | \ \ | |/ _| / _____/ \ Y / _(__ < | ___/ | / | \| < \_____ \ \ / / \ | | | | / | \ | \ / \ \___/ /______ / |____| |______/\____|__ /____|__ \/_______ / \/ \/ \/ \/ * **/ contract V3Punks 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 internal currentIndex = 0; // mint price uint256 public _price = 20000000000000000; // Token name string private _name; address private _owner = msg.sender; // 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) internal _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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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(totalSupply). 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); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), 'ERC721A: owner query for nonexistent token'); for (uint256 curr = tokenId; ; 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(), '.json')) : ''; } /** * @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 'ipfs://QmWGvf6hiVrfXRPySTQn12jNQa98QiHq4BoK4r2ftk38eW/'; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = V3Punks.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' ); } function setPrice(uint256 newPrice) external { require(msg.sender == _owner); _price = newPrice; } /** * @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 reserveBulk(address[] memory to) external { require(msg.sender == _owner); for (uint i = 0; i < to.length;i++) { _safeMint(to[i], 1); } } function reserve(address to, uint256 quantity) external { require(msg.sender == _owner); require(currentIndex + quantity <= 10000); _safeMint(to, quantity); } function mint(address to, uint256 quantity) external payable { require(quantity <= 30 && quantity > 0); require(_price * quantity == msg.value); require(currentIndex + quantity <= 10000); payable(_owner).transfer(msg.value); _safeMint(to, quantity); } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) 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 > 0, 'ERC721A: quantity must be greater than 0'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { 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); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; } _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = 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].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = 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); } /** * @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 ownefr 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_price","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"}],"name":"reserveBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","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"}]
Contract Creation Code
60806040526000805566470de4df820000600155600380546001600160a01b031916331790553480156200003257600080fd5b50604051620022ab380380620022ab8339810160408190526200005591620001da565b81516200006a90600290602085019062000089565b5080516200008090600490602084019062000089565b50505062000294565b828054620000979062000241565b90600052602060002090601f016020900481019282620000bb576000855562000106565b82601f10620000d657805160ff191683800117855562000106565b8280016001018555821562000106579182015b8281111562000106578251825591602001919060010190620000e9565b506200011492915062000118565b5090565b5b8082111562000114576000815560010162000119565b600082601f83011262000140578081fd5b81516001600160401b03808211156200015d576200015d6200027e565b6040516020601f8401601f19168201810183811183821017156200018557620001856200027e565b60405283825285840181018710156200019c578485fd5b8492505b83831015620001bf5785830181015182840182015291820191620001a0565b83831115620001d057848185840101525b5095945050505050565b60008060408385031215620001ed578182fd5b82516001600160401b038082111562000204578384fd5b62000212868387016200012f565b9350602085015191508082111562000228578283fd5b5062000237858286016200012f565b9150509250929050565b6002810460018216806200025657607f821691505b602082108114156200027857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61200780620002a46000396000f3fe60806040526004361061016a5760003560e01c80634f6ccce7116100cb57806395d89b411161007f578063c87b56dd11610059578063c87b56dd146103b5578063cc47a40b146103d5578063e985e9c5146103f55761016a565b806395d89b4114610360578063a22cb46514610375578063b88d4fde146103955761016a565b806370a08231116100b057806370a08231146103005780637ba5b5fb1461032057806391b7f5ed146103405761016a565b80634f6ccce7146102c05780636352211e146102e05761016a565b8063235b6ea1116101225780632f745c59116101075780632f745c591461026d57806340c10f191461028d57806342842e0e146102a05761016a565b8063235b6ea11461023857806323b872dd1461024d5761016a565b8063081812fc11610153578063081812fc146101c7578063095ea7b3146101f457806318160ddd146102165761016a565b806301ffc9a71461016f57806306fdde03146101a5575b600080fd5b34801561017b57600080fd5b5061018f61018a3660046116a8565b610415565b60405161019c91906117cb565b60405180910390f35b3480156101b157600080fd5b506101ba6104c3565b60405161019c91906117d6565b3480156101d357600080fd5b506101e76101e23660046116e0565b610555565b60405161019c919061177b565b34801561020057600080fd5b5061021461020f3660046115d1565b6105a1565b005b34801561022257600080fd5b5061022b61063a565b60405161019c9190611dca565b34801561024457600080fd5b5061022b610640565b34801561025957600080fd5b506102146102683660046114a4565b610646565b34801561027957600080fd5b5061022b6102883660046115d1565b610651565b61021461029b3660046115d1565b61074d565b3480156102ac57600080fd5b506102146102bb3660046114a4565b6107e4565b3480156102cc57600080fd5b5061022b6102db3660046116e0565b6107ff565b3480156102ec57600080fd5b506101e76102fb3660046116e0565b61082b565b34801561030c57600080fd5b5061022b61031b366004611458565b61083d565b34801561032c57600080fd5b5061021461033b3660046115fa565b610893565b34801561034c57600080fd5b5061021461035b3660046116e0565b6108fa565b34801561036c57600080fd5b506101ba610916565b34801561038157600080fd5b50610214610390366004611597565b610925565b3480156103a157600080fd5b506102146103b03660046114df565b6109f3565b3480156103c157600080fd5b506101ba6103d03660046116e0565b610a2c565b3480156103e157600080fd5b506102146103f03660046115d1565b610aaf565b34801561040157600080fd5b5061018f610410366004611472565b610aec565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061047857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104ac57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b806104bb57506104bb82610b1a565b90505b919050565b6060600280546104d290611ed6565b80601f01602080910402602001604051908101604052809291908181526020018280546104fe90611ed6565b801561054b5780601f106105205761010080835404028352916020019161054b565b820191906000526020600020905b81548152906001019060200180831161052e57829003601f168201915b5050505050905090565b600061056082610b4c565b6105855760405162461bcd60e51b815260040161057c90611d6d565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105ac8261082b565b9050806001600160a01b0316836001600160a01b031614156105e05760405162461bcd60e51b815260040161057c90611b65565b806001600160a01b03166105f2610b53565b6001600160a01b0316148061060e575061060e81610410610b53565b61062a5760405162461bcd60e51b815260040161057c9061195d565b610635838383610b57565b505050565b60005490565b60015481565b610635838383610bc0565b600061065c8361083d565b821061067a5760405162461bcd60e51b815260040161057c906117e9565b600061068461063a565b905060008060005b8381101561072e576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156106df57805192505b876001600160a01b0316836001600160a01b0316141561071b578684141561070d5750935061074792505050565b8361071781611f11565b9450505b508061072681611f11565b91505061068c565b5060405162461bcd60e51b815260040161057c90611d10565b92915050565b601e811115801561075e5750600081115b61076757600080fd5b34816001546107769190611e5d565b1461078057600080fd5b612710816000546107919190611e31565b111561079c57600080fd5b6003546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156107d5573d6000803e3d6000fd5b506107e08282610e82565b5050565b610635838383604051806020016040528060008152506109f3565b600061080961063a565b82106108275760405162461bcd60e51b815260040161057c906118a3565b5090565b600061083682610e9c565b5192915050565b60006001600160a01b0382166108655760405162461bcd60e51b815260040161057c906119ba565b506001600160a01b03166000908152600660205260409020546fffffffffffffffffffffffffffffffff1690565b6003546001600160a01b031633146108aa57600080fd5b60005b81518110156107e0576108e88282815181106108d957634e487b7160e01b600052603260045260246000fd5b60200260200101516001610e82565b806108f281611f11565b9150506108ad565b6003546001600160a01b0316331461091157600080fd5b600155565b6060600480546104d290611ed6565b61092d610b53565b6001600160a01b0316826001600160a01b0316141561095e5760405162461bcd60e51b815260040161057c90611ad1565b806008600061096b610b53565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556109af610b53565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516109e791906117cb565b60405180910390a35050565b6109fe848484610bc0565b610a0a84848484610f2d565b610a265760405162461bcd60e51b815260040161057c90611bc2565b50505050565b6060610a3782610b4c565b610a535760405162461bcd60e51b815260040161057c90611a74565b6000610a5d611062565b90506000815111610a7d5760405180602001604052806000815250610aa8565b80610a8784611082565b604051602001610a98929190611724565b6040516020818303038152906040525b9392505050565b6003546001600160a01b03163314610ac657600080fd5b61271081600054610ad79190611e31565b1115610ae257600080fd5b6107e08282610e82565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000541190565b3390565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610bcb82610e9c565b9050600081600001516001600160a01b0316610be5610b53565b6001600160a01b03161480610c1a5750610bfd610b53565b6001600160a01b0316610c0f84610555565b6001600160a01b0316145b80610c2e57508151610c2e90610410610b53565b905080610c4d5760405162461bcd60e51b815260040161057c90611b08565b846001600160a01b031682600001516001600160a01b031614610c825760405162461bcd60e51b815260040161057c90611a17565b6001600160a01b038416610ca85760405162461bcd60e51b815260040161057c90611900565b610cb58585856001610a26565b610cc56000848460000151610b57565b6001600160a01b03858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffff000000000000000000000000000000008082166fffffffffffffffffffffffffffffffff92831660001901831617909255948916808552828520805492831692871660019081019097169290921790915587845260059092528220805473ffffffffffffffffffffffffffffffffffffffff191690911767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905590610d99908590611e31565b6000818152600560205260409020549091506001600160a01b0316610e2c57610dc181610b4c565b15610e2c578251600082815260056020908152604090912080549186015167ffffffffffffffff16600160a01b0267ffffffffffffffff60a01b196001600160a01b0390941673ffffffffffffffffffffffffffffffffffffffff1990931692909217929092161790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e7a8686866001610a26565b505050505050565b6107e08282604051806020016040528060008152506111d1565b610ea461142a565b610ead82610b4c565b610ec95760405162461bcd60e51b815260040161057c90611846565b815b6000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610f1a5791506104be9050565b5080610f2581611ebf565b915050610ecb565b6000610f41846001600160a01b03166111de565b1561105657836001600160a01b031663150b7a02610f5d610b53565b8786866040518563ffffffff1660e01b8152600401610f7f949392919061178f565b602060405180830381600087803b158015610f9957600080fd5b505af1925050508015610fc9575060408051601f3d908101601f19168201909252610fc6918101906116c4565b60015b611023573d808015610ff7576040519150601f19603f3d011682016040523d82523d6000602084013e610ffc565b606091505b50805161101b5760405162461bcd60e51b815260040161057c90611bc2565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061105a565b5060015b949350505050565b6060604051806060016040528060368152602001611f9c60369139905090565b6060816110c3575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526104be565b8160005b81156110ed57806110d781611f11565b91506110e69050600a83611e49565b91506110c7565b60008167ffffffffffffffff81111561111657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611140576020820181803683370190505b5090505b841561105a57611155600183611e7c565b9150611162600a86611f2c565b61116d906030611e31565b60f81b81838151811061119057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506111ca600a86611e49565b9450611144565b61063583838360016111e4565b3b151590565b6000546001600160a01b03851661120d5760405162461bcd60e51b815260040161057c90611c56565b61121681610b4c565b156112335760405162461bcd60e51b815260040161057c90611c1f565b600084116112535760405162461bcd60e51b815260040161057c90611cb3565b6112606000868387610a26565b6001600160a01b0385166000908152600660205260408120805486929061129a9084906fffffffffffffffffffffffffffffffff16611dfd565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b038716600090815260066020526040902080548793509091601091611305918591700100000000000000000000000000000000900416611dfd565b82546101009290920a6fffffffffffffffffffffffffffffffff818102199093169190921691909102179055506000818152600560205260408120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388161767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905581905b858110156114185760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483156113f8576113dc6000888488610f2d565b6113f85760405162461bcd60e51b815260040161057c90611bc2565b8161140281611f11565b925050808061141090611f11565b915050611389565b506000818155610e7a90878488610a26565b604080518082019091526000808252602082015290565b80356001600160a01b03811681146104be57600080fd5b600060208284031215611469578081fd5b610aa882611441565b60008060408385031215611484578081fd5b61148d83611441565b915061149b60208401611441565b90509250929050565b6000806000606084860312156114b8578081fd5b6114c184611441565b92506114cf60208501611441565b9150604084013590509250925092565b600080600080608085870312156114f4578081fd5b6114fd85611441565b9350602061150c818701611441565b935060408601359250606086013567ffffffffffffffff8082111561152f578384fd5b818801915088601f830112611542578384fd5b81358181111561155457611554611f6c565b611566601f8201601f19168501611dd3565b9150808252898482850101111561157b578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156115a9578182fd5b6115b283611441565b9150602083013580151581146115c6578182fd5b809150509250929050565b600080604083850312156115e3578182fd5b6115ec83611441565b946020939093013593505050565b6000602080838503121561160c578182fd5b823567ffffffffffffffff80821115611623578384fd5b818501915085601f830112611636578384fd5b81358181111561164857611648611f6c565b8381029150611658848301611dd3565b8181528481019084860184860187018a1015611672578788fd5b8795505b8386101561169b5761168781611441565b835260019590950194918601918601611676565b5098975050505050505050565b6000602082840312156116b9578081fd5b8135610aa881611f82565b6000602082840312156116d5578081fd5b8151610aa881611f82565b6000602082840312156116f1578081fd5b5035919050565b60008151808452611710816020860160208601611e93565b601f01601f19169290920160200192915050565b60008351611736818460208801611e93565b83519083019061174a818360208801611e93565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526117c160808301846116f8565b9695505050505050565b901515815260200190565b600060208252610aa860208301846116f8565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360408201527f74656e7420746f6b656e00000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560408201527f6e64730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460408201527f206f776e65720000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201527f6572000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243373231413a207175616e74697479206d7573742062652067726561746560408201527f72207468616e2030000000000000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201527f6f776e657220627920696e646578000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201527f78697374656e7420746f6b656e00000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715611df557611df5611f6c565b604052919050565b60006fffffffffffffffffffffffffffffffff808316818516808303821115611e2857611e28611f40565b01949350505050565b60008219821115611e4457611e44611f40565b500190565b600082611e5857611e58611f56565b500490565b6000816000190483118215151615611e7757611e77611f40565b500290565b600082821015611e8e57611e8e611f40565b500390565b60005b83811015611eae578181015183820152602001611e96565b83811115610a265750506000910152565b600081611ece57611ece611f40565b506000190190565b600281046001821680611eea57607f821691505b60208210811415611f0b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f2557611f25611f40565b5060010190565b600082611f3b57611f3b611f56565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611f9857600080fd5b5056fe697066733a2f2f516d57477666366869567266585250795354516e31326a4e516139385169487134426f4b34723266746b333865572fa2646970667358221220d915255beee9b3270844b245a239874dd9eefd1a1e7f242a26af7f292c8a129364736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000e43727970746f70756e6b732056330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006563350554e4b0000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061016a5760003560e01c80634f6ccce7116100cb57806395d89b411161007f578063c87b56dd11610059578063c87b56dd146103b5578063cc47a40b146103d5578063e985e9c5146103f55761016a565b806395d89b4114610360578063a22cb46514610375578063b88d4fde146103955761016a565b806370a08231116100b057806370a08231146103005780637ba5b5fb1461032057806391b7f5ed146103405761016a565b80634f6ccce7146102c05780636352211e146102e05761016a565b8063235b6ea1116101225780632f745c59116101075780632f745c591461026d57806340c10f191461028d57806342842e0e146102a05761016a565b8063235b6ea11461023857806323b872dd1461024d5761016a565b8063081812fc11610153578063081812fc146101c7578063095ea7b3146101f457806318160ddd146102165761016a565b806301ffc9a71461016f57806306fdde03146101a5575b600080fd5b34801561017b57600080fd5b5061018f61018a3660046116a8565b610415565b60405161019c91906117cb565b60405180910390f35b3480156101b157600080fd5b506101ba6104c3565b60405161019c91906117d6565b3480156101d357600080fd5b506101e76101e23660046116e0565b610555565b60405161019c919061177b565b34801561020057600080fd5b5061021461020f3660046115d1565b6105a1565b005b34801561022257600080fd5b5061022b61063a565b60405161019c9190611dca565b34801561024457600080fd5b5061022b610640565b34801561025957600080fd5b506102146102683660046114a4565b610646565b34801561027957600080fd5b5061022b6102883660046115d1565b610651565b61021461029b3660046115d1565b61074d565b3480156102ac57600080fd5b506102146102bb3660046114a4565b6107e4565b3480156102cc57600080fd5b5061022b6102db3660046116e0565b6107ff565b3480156102ec57600080fd5b506101e76102fb3660046116e0565b61082b565b34801561030c57600080fd5b5061022b61031b366004611458565b61083d565b34801561032c57600080fd5b5061021461033b3660046115fa565b610893565b34801561034c57600080fd5b5061021461035b3660046116e0565b6108fa565b34801561036c57600080fd5b506101ba610916565b34801561038157600080fd5b50610214610390366004611597565b610925565b3480156103a157600080fd5b506102146103b03660046114df565b6109f3565b3480156103c157600080fd5b506101ba6103d03660046116e0565b610a2c565b3480156103e157600080fd5b506102146103f03660046115d1565b610aaf565b34801561040157600080fd5b5061018f610410366004611472565b610aec565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061047857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104ac57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b806104bb57506104bb82610b1a565b90505b919050565b6060600280546104d290611ed6565b80601f01602080910402602001604051908101604052809291908181526020018280546104fe90611ed6565b801561054b5780601f106105205761010080835404028352916020019161054b565b820191906000526020600020905b81548152906001019060200180831161052e57829003601f168201915b5050505050905090565b600061056082610b4c565b6105855760405162461bcd60e51b815260040161057c90611d6d565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105ac8261082b565b9050806001600160a01b0316836001600160a01b031614156105e05760405162461bcd60e51b815260040161057c90611b65565b806001600160a01b03166105f2610b53565b6001600160a01b0316148061060e575061060e81610410610b53565b61062a5760405162461bcd60e51b815260040161057c9061195d565b610635838383610b57565b505050565b60005490565b60015481565b610635838383610bc0565b600061065c8361083d565b821061067a5760405162461bcd60e51b815260040161057c906117e9565b600061068461063a565b905060008060005b8381101561072e576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156106df57805192505b876001600160a01b0316836001600160a01b0316141561071b578684141561070d5750935061074792505050565b8361071781611f11565b9450505b508061072681611f11565b91505061068c565b5060405162461bcd60e51b815260040161057c90611d10565b92915050565b601e811115801561075e5750600081115b61076757600080fd5b34816001546107769190611e5d565b1461078057600080fd5b612710816000546107919190611e31565b111561079c57600080fd5b6003546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156107d5573d6000803e3d6000fd5b506107e08282610e82565b5050565b610635838383604051806020016040528060008152506109f3565b600061080961063a565b82106108275760405162461bcd60e51b815260040161057c906118a3565b5090565b600061083682610e9c565b5192915050565b60006001600160a01b0382166108655760405162461bcd60e51b815260040161057c906119ba565b506001600160a01b03166000908152600660205260409020546fffffffffffffffffffffffffffffffff1690565b6003546001600160a01b031633146108aa57600080fd5b60005b81518110156107e0576108e88282815181106108d957634e487b7160e01b600052603260045260246000fd5b60200260200101516001610e82565b806108f281611f11565b9150506108ad565b6003546001600160a01b0316331461091157600080fd5b600155565b6060600480546104d290611ed6565b61092d610b53565b6001600160a01b0316826001600160a01b0316141561095e5760405162461bcd60e51b815260040161057c90611ad1565b806008600061096b610b53565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556109af610b53565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516109e791906117cb565b60405180910390a35050565b6109fe848484610bc0565b610a0a84848484610f2d565b610a265760405162461bcd60e51b815260040161057c90611bc2565b50505050565b6060610a3782610b4c565b610a535760405162461bcd60e51b815260040161057c90611a74565b6000610a5d611062565b90506000815111610a7d5760405180602001604052806000815250610aa8565b80610a8784611082565b604051602001610a98929190611724565b6040516020818303038152906040525b9392505050565b6003546001600160a01b03163314610ac657600080fd5b61271081600054610ad79190611e31565b1115610ae257600080fd5b6107e08282610e82565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000541190565b3390565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610bcb82610e9c565b9050600081600001516001600160a01b0316610be5610b53565b6001600160a01b03161480610c1a5750610bfd610b53565b6001600160a01b0316610c0f84610555565b6001600160a01b0316145b80610c2e57508151610c2e90610410610b53565b905080610c4d5760405162461bcd60e51b815260040161057c90611b08565b846001600160a01b031682600001516001600160a01b031614610c825760405162461bcd60e51b815260040161057c90611a17565b6001600160a01b038416610ca85760405162461bcd60e51b815260040161057c90611900565b610cb58585856001610a26565b610cc56000848460000151610b57565b6001600160a01b03858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffff000000000000000000000000000000008082166fffffffffffffffffffffffffffffffff92831660001901831617909255948916808552828520805492831692871660019081019097169290921790915587845260059092528220805473ffffffffffffffffffffffffffffffffffffffff191690911767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905590610d99908590611e31565b6000818152600560205260409020549091506001600160a01b0316610e2c57610dc181610b4c565b15610e2c578251600082815260056020908152604090912080549186015167ffffffffffffffff16600160a01b0267ffffffffffffffff60a01b196001600160a01b0390941673ffffffffffffffffffffffffffffffffffffffff1990931692909217929092161790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e7a8686866001610a26565b505050505050565b6107e08282604051806020016040528060008152506111d1565b610ea461142a565b610ead82610b4c565b610ec95760405162461bcd60e51b815260040161057c90611846565b815b6000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610f1a5791506104be9050565b5080610f2581611ebf565b915050610ecb565b6000610f41846001600160a01b03166111de565b1561105657836001600160a01b031663150b7a02610f5d610b53565b8786866040518563ffffffff1660e01b8152600401610f7f949392919061178f565b602060405180830381600087803b158015610f9957600080fd5b505af1925050508015610fc9575060408051601f3d908101601f19168201909252610fc6918101906116c4565b60015b611023573d808015610ff7576040519150601f19603f3d011682016040523d82523d6000602084013e610ffc565b606091505b50805161101b5760405162461bcd60e51b815260040161057c90611bc2565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061105a565b5060015b949350505050565b6060604051806060016040528060368152602001611f9c60369139905090565b6060816110c3575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526104be565b8160005b81156110ed57806110d781611f11565b91506110e69050600a83611e49565b91506110c7565b60008167ffffffffffffffff81111561111657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611140576020820181803683370190505b5090505b841561105a57611155600183611e7c565b9150611162600a86611f2c565b61116d906030611e31565b60f81b81838151811061119057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506111ca600a86611e49565b9450611144565b61063583838360016111e4565b3b151590565b6000546001600160a01b03851661120d5760405162461bcd60e51b815260040161057c90611c56565b61121681610b4c565b156112335760405162461bcd60e51b815260040161057c90611c1f565b600084116112535760405162461bcd60e51b815260040161057c90611cb3565b6112606000868387610a26565b6001600160a01b0385166000908152600660205260408120805486929061129a9084906fffffffffffffffffffffffffffffffff16611dfd565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b038716600090815260066020526040902080548793509091601091611305918591700100000000000000000000000000000000900416611dfd565b82546101009290920a6fffffffffffffffffffffffffffffffff818102199093169190921691909102179055506000818152600560205260408120805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388161767ffffffffffffffff60a01b1916600160a01b4267ffffffffffffffff160217905581905b858110156114185760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483156113f8576113dc6000888488610f2d565b6113f85760405162461bcd60e51b815260040161057c90611bc2565b8161140281611f11565b925050808061141090611f11565b915050611389565b506000818155610e7a90878488610a26565b604080518082019091526000808252602082015290565b80356001600160a01b03811681146104be57600080fd5b600060208284031215611469578081fd5b610aa882611441565b60008060408385031215611484578081fd5b61148d83611441565b915061149b60208401611441565b90509250929050565b6000806000606084860312156114b8578081fd5b6114c184611441565b92506114cf60208501611441565b9150604084013590509250925092565b600080600080608085870312156114f4578081fd5b6114fd85611441565b9350602061150c818701611441565b935060408601359250606086013567ffffffffffffffff8082111561152f578384fd5b818801915088601f830112611542578384fd5b81358181111561155457611554611f6c565b611566601f8201601f19168501611dd3565b9150808252898482850101111561157b578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156115a9578182fd5b6115b283611441565b9150602083013580151581146115c6578182fd5b809150509250929050565b600080604083850312156115e3578182fd5b6115ec83611441565b946020939093013593505050565b6000602080838503121561160c578182fd5b823567ffffffffffffffff80821115611623578384fd5b818501915085601f830112611636578384fd5b81358181111561164857611648611f6c565b8381029150611658848301611dd3565b8181528481019084860184860187018a1015611672578788fd5b8795505b8386101561169b5761168781611441565b835260019590950194918601918601611676565b5098975050505050505050565b6000602082840312156116b9578081fd5b8135610aa881611f82565b6000602082840312156116d5578081fd5b8151610aa881611f82565b6000602082840312156116f1578081fd5b5035919050565b60008151808452611710816020860160208601611e93565b601f01601f19169290920160200192915050565b60008351611736818460208801611e93565b83519083019061174a818360208801611e93565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526117c160808301846116f8565b9695505050505050565b901515815260200190565b600060208252610aa860208301846116f8565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360408201527f74656e7420746f6b656e00000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560408201527f6e64730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460408201527f206f776e65720000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201527f6572000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527f6563656976657220696d706c656d656e74657200000000000000000000000000606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243373231413a207175616e74697479206d7573742062652067726561746560408201527f72207468616e2030000000000000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201527f6f776e657220627920696e646578000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201527f78697374656e7420746f6b656e00000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715611df557611df5611f6c565b604052919050565b60006fffffffffffffffffffffffffffffffff808316818516808303821115611e2857611e28611f40565b01949350505050565b60008219821115611e4457611e44611f40565b500190565b600082611e5857611e58611f56565b500490565b6000816000190483118215151615611e7757611e77611f40565b500290565b600082821015611e8e57611e8e611f40565b500390565b60005b83811015611eae578181015183820152602001611e96565b83811115610a265750506000910152565b600081611ece57611ece611f40565b506000190190565b600281046001821680611eea57607f821691505b60208210811415611f0b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611f2557611f25611f40565b5060010190565b600082611f3b57611f3b611f56565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611f9857600080fd5b5056fe697066733a2f2f516d57477666366869567266585250795354516e31326a4e516139385169487134426f4b34723266746b333865572fa2646970667358221220d915255beee9b3270844b245a239874dd9eefd1a1e7f242a26af7f292c8a129364736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000e43727970746f70756e6b732056330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006563350554e4b0000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Cryptopunks V3
Arg [1] : symbol_ (string): V3PUNK
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [3] : 43727970746f70756e6b73205633000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 563350554e4b0000000000000000000000000000000000000000000000000000
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.