ERC-721
Overview
Max Total Supply
1,411 MOONIEPUNKS
Holders
451
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 MOONIEPUNKSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MooniePunks
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /** ################&&&&&###############&&&&&########&&&&&###############&&&&&###### ######&&&&&####&GJJY#&#############&GJJY#&######&#YJJG&#############&#YJJG&##### ###############&Y .B&#############&Y .B&######&B. Y&#############&B. Y&##### #####&5::^B&###&BPPG###&&&&########&BPPG&&&&######GPP#&&&######&&&&###GPPB&##### #####&5^^~#&####&&&&##&BBBB&########&&&#PPPB&#####&&&GPPG&####&GPPG&##&&&&###### ######&&&&&&&&########&5JJ5&##########&B Y&#######&~ ~&##&&&~ ~&&&########## ######&&&#!!~P&&&#####&PYYP&########&&YYB&&&#####&PYYP&&#!~!. .!~!#&######## #######GGP. JBGB#####&5JJ5&#########################&&&&#&B:.. ..:B&######## #####&Y ~&####&!..!&##&&&&&&BYYYYYYYYYP&&&&&&##########~ ~############# #####&G??? ~??Y&###&&! !&&#GPGGGG5YYYYYYYYY5GGGGGPB&######&&Y??Y&&########### ######&&&#: 5@&&######! !###YYYYYYYYYYYYYYYYYYYYYYYG#########&&&&############# ##########GGG###&&&#^::. ~5Y5B######################PYYP&&&##########&&&####### ##########&&&##&GYYY. ^~^7PPP#######################GPPPGGB##########5YYG###### ###############&Y .. 7YYP&&#########################&&BJYY########&B Y&##### ###############&Y ..7??PBBB######?^^?#########5^~~B####&BYYY##########PP5B###### ###############&Y ..JYYB&&#######~ ~#########Y .B####&BYYY##########&&&####### ###&&&&########&Y ..JYYB&########~ ~#########Y .B####&BYYY#################### ###J!!J########&Y ..JYYB&########~ ~#########Y .B####&BYYY#################### ##&! !&#######&Y ..JYYB&########~ ~#########Y .B####&BYYY#######BBB########## ###BBBB########&Y ..JYYB&&#######~ ~#########Y .B####&BYYY###&&&5..:#&&####### ###############&Y ..!7!5GGB######J!!J#########P!!7B####&BYYY###5JJ! ?JJG###### ###############&Y .. 7YJP&###########################&BYYY##&~ Y&##### #####&5::^B#####BPGP:..:::!55P#&&GPPPPPPPPPPPPPPPG##&G55PBBB###GPG? 5PPB###### #####&5^^~B##BBBBBBG:.... ^?7?GBBP5555555555555555BBBY77Y&######&&P^~!#&&####### #############5JYYYYJ........ .JYYYYYYYYYYYYYYYYYYYYYY~. !&&##################### #############5YYYYYJ..........^~~~~~~~~~~~~~~~~~~~~~~:..:!!7#################### #############5YYYYYJ..................................... .PGGB#########BGGB### #############5YYYYYJ...........................................5&########~ ~### #############5YYYYYJ.......................................... Y&########Y??Y### ####BB####BB#5JYYYYJ...........................................Y&##BBB####&&#### ###!..!##B^:::::::::............... ^JJJYYYJJJ7 ...............Y&&Y..:B######### ###?~~?##B: ....................^~^7YYY555YYY?^~^............ Y##5~~!B######### #########B: ....................?YYY555555555YYYJ............ Y&############### ##########PPPJ?????7.............?5Y55555555555Y5Y:........... Y################ ############&PYYYYYJ.............?555555555555555Y:............Y#########GPPG### #############5YYYYYJ.............?YYY555555555YYYJ:............Y#########~ ~### #############5YYYYYJ.............^~~7YYY555YYYJ~~~.............Y#########5JJ5### #############5YYYYYJ.............. ~YYY555YYY7 ..............Y##########&&#### */ pragma solidity ^0.8.9; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract MooniePunks is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; mapping(address => uint256) public publicMinted; mapping(address => uint256) public blended; mapping(uint256 => uint256) public premiumMinted; mapping(uint256 => uint256) public vipMinted; string public uriPrefix = ""; string public uriSuffix = ".json"; uint256 public maxSupply; uint256 public maxMintAmount; uint256 public maxVipMintAmount; uint256 public remainingMembershipMints = 400; uint256 public remainingPromoMints = 100; uint256 public requiredToBlend; bool public paused = true; bool public blendEnabled = false; address public membershipContract; address public ownerWallet; address public blendContract; constructor( string memory _tokenName, string memory _tokenSymbol, string memory _uriPrefix, uint256 _maxSupply, uint256 _maxMintAmount, uint256 _maxVipMintAmount, address _ownerWallet, address _membershipContract ) ERC721A(_tokenName, _tokenSymbol) { maxSupply = _maxSupply; setUriPrefix(_uriPrefix); setMaxMintAmount(_maxMintAmount); setMaxVipMintAmount(_maxVipMintAmount); setMembershipContract(_membershipContract); setOwnerWallet(_ownerWallet); } /// @dev We are ensuring the user cannot mint more than the max amount /// that we specify, as well as the current max supply. //*************************************************************************** // MODIFIERS //*************************************************************************** modifier mintCompliance(uint256 _mintAmount, uint256 _maxMintAmount) { require( _mintAmount > 0 && _mintAmount <= _maxMintAmount, "Invalid mint amount!" ); require( _totalMinted() + _mintAmount <= maxSupply, "Max supply exceeded!" ); _; } /** * @dev We first verify the users membership status, and determine what * type of membership they are using to mint. * * We then check to confirm that the total mint amount does not exceed the * remaining membership mints. * * Finally, we check the token id of their membership NFT, and ensure that it * has not been used previously. */ modifier membershipCompliance( uint256 _mintAmount, uint256 _tokenId, MembershipType _memberType ) { (bool isMember, MembershipType memberType) = verifyMembership(_tokenId); require(isMember, "Membership not verified"); require( remainingMembershipMints > _mintAmount, "Exceeds membership supply" ); _; } /// @dev Users cannot mint if contract is paused modifier notPaused() { require(!paused, "The contract is paused!"); _; } //*************************************************************************** // ENUMS //*************************************************************************** enum MembershipType { PREMIUM, VIP } //*************************************************************************** // MINT FUNCTIONS //*************************************************************************** /** * @notice The premiumMint and vipMint functions can only be called once per membership token id. * We have provided a checkMembershipToken function that will allow users to check to see if a membership token has already minted. */ function premiumMint(uint256 _mintAmount, uint256 _tokenId) public notPaused mintCompliance(_mintAmount, maxMintAmount) membershipCompliance(maxMintAmount, _tokenId, MembershipType.PREMIUM) { require( premiumMinted[_tokenId] + _mintAmount <= maxMintAmount, "Exceeds max mint amount" ); premiumMinted[_tokenId] += _mintAmount; remainingMembershipMints -= _mintAmount; _safeMint(_msgSender(), _mintAmount); } /// @notice VIP perks include ten free mints per VIP Card holder. function vipMint(uint256 _mintAmount, uint256 _tokenId) public notPaused mintCompliance(_mintAmount, maxVipMintAmount) membershipCompliance(maxMintAmount, _tokenId, MembershipType.VIP) { require( vipMinted[_tokenId] + _mintAmount <= maxVipMintAmount, "Exceeds max mint amount" ); vipMinted[_tokenId] += _mintAmount; remainingMembershipMints -= _mintAmount; _safeMint(_msgSender(), _mintAmount); } function mint(uint256 _mintAmount) public notPaused mintCompliance(_mintAmount, maxMintAmount) { require( _totalMinted() + _mintAmount <= maxSupply - remainingReservedSupply(), "Max supply exceeded!" ); require( publicMinted[_msgSender()] + _mintAmount <= maxMintAmount, "Exceeds max mint amount" ); publicMinted[_msgSender()] += _mintAmount; _safeMint(_msgSender(), _mintAmount); } /// @dev The owner can mint tokens to any address. /// The mintCompliance modifier still governs the maximum amount. function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount, maxMintAmount) onlyOwner { _safeMint(_receiver, _mintAmount); } //*************************************************************************** // VIEW FUNCTIONS //*************************************************************************** function remainingReservedSupply() public view returns (uint256) { return remainingPromoMints + remainingMembershipMints; } function getMembershipType(uint256 _tokenId, uint256 _maxStandard) public pure returns (MembershipType _memberType) { MembershipType memberType = _tokenId <= _maxStandard ? MembershipType.PREMIUM : MembershipType.VIP; return memberType; } /// @dev Verifies that the user has a membership token. function verifyMembership(uint256 _tokenId) public view returns (bool _isMember, MembershipType _memberType) { IERC721 token = IERC721(membershipContract); bool isMember = token.ownerOf(_tokenId) == _msgSender(); return (isMember, getMembershipType(_tokenId, 100)); } /// @dev Checks to see if a membership token as been used to mint already. function checkMembershipToken(uint256 _tokenId) public view returns (bool _isMinted) { if (_tokenId <= 100) { return premiumMinted[_tokenId] < maxMintAmount; } else { return vipMinted[_tokenId] < maxVipMintAmount; } } function verifyOwnershipOfTokens(uint256[] memory _tokenIds) internal view returns (bool) { for (uint256 i = 0; i < _tokenIds.length; i++) { if (ownerOf(_tokenIds[i]) != _msgSender()) { return false; } } return true; } /// @dev Users can blend tokens for reasons... function blend(uint256[] calldata _tokenIds) public { require(blendEnabled, "Blend is not enabled"); require(requiredToBlend > 0, "Blend requirement not set"); require( _tokenIds.length == requiredToBlend, "Blend must equal the required amount" ); require( verifyOwnershipOfTokens(_tokenIds), "Membership tokens must be verified" ); for (uint256 i = 0; i < _tokenIds.length; i++) { _burn(_tokenIds[i]); } blended[_msgSender()] += 1; } function claimBlend(address _origin) public { require( _msgSender() == blendContract, "Only the blend contract can claim blends" ); require(blended[_origin] > 0, "No blends to claim"); blended[_origin] -= 1; } /// @dev Returns an array of token IDs that the provided address owns. function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = _startTokenId(); uint256 ownedTokenIndex = 0; address latestOwnerAddress; while ( ownedTokenIndex < ownerTokenCount && currentTokenId < _currentIndex ) { TokenOwnership memory ownership = _ownerships[currentTokenId]; if (!ownership.burned) { if (ownership.addr != address(0)) { latestOwnerAddress = ownership.addr; } if (latestOwnerAddress == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } } currentTokenId++; } return ownedTokenIds; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } //*************************************************************************** // CRUD FUNCTIONS //*************************************************************************** function setMaxMintAmount(uint256 _maxMintAmount) public onlyOwner { maxMintAmount = _maxMintAmount; } function setMaxVipMintAmount(uint256 _maxVipMintAmount) public onlyOwner { maxVipMintAmount = _maxVipMintAmount; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setBlendEnabled(bool _state) public onlyOwner { blendEnabled = _state; } function setBlendContract(address _blendContract) public onlyOwner { blendContract = _blendContract; } function setRequiredToBlend(uint256 _requiredToBlend) public onlyOwner { requiredToBlend = _requiredToBlend; } /// @dev Use this in the event that not all CREEK+ members mint, and you /// need to dispurse the remaining supply as promotions. function disableRedemptions() public onlyOwner { remainingPromoMints = remainingPromoMints + remainingMembershipMints; remainingMembershipMints = 0; } function setMembershipContract(address _membershipContract) public onlyOwner { membershipContract = _membershipContract; } function setOwnerWallet(address _ownerWallet) public onlyOwner { ownerWallet = payable(_ownerWallet); } /// @notice This is a free mint, so theoretially, this should never be called, /// but it's here in case funds are ever accidentally sent to the contract. function withdraw() public onlyOwner nonReentrant { bool success; (success, ) = ownerWallet.call{value: address(this).balance}(""); require(success, "Transaction Unsuccessful"); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // 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) 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_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _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); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.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; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @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 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `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 (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly 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 (last updated v4.6.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (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": 200 }, "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":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_uriPrefix","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"},{"internalType":"uint256","name":"_maxVipMintAmount","type":"uint256"},{"internalType":"address","name":"_ownerWallet","type":"address"},{"internalType":"address","name":"_membershipContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"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":"_tokenIds","type":"uint256[]"}],"name":"blend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blendContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blendEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blended","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkMembershipToken","outputs":[{"internalType":"bool","name":"_isMinted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_origin","type":"address"}],"name":"claimBlend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableRedemptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_maxStandard","type":"uint256"}],"name":"getMembershipType","outputs":[{"internalType":"enum MooniePunks.MembershipType","name":"_memberType","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"maxVipMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"membershipContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"premiumMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"premiumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingMembershipMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingPromoMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requiredToBlend","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":"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":"address","name":"_blendContract","type":"address"}],"name":"setBlendContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setBlendEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxVipMintAmount","type":"uint256"}],"name":"setMaxVipMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_membershipContract","type":"address"}],"name":"setMembershipContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ownerWallet","type":"address"}],"name":"setOwnerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requiredToBlend","type":"uint256"}],"name":"setRequiredToBlend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"verifyMembership","outputs":[{"internalType":"bool","name":"_isMember","type":"bool"},{"internalType":"enum MooniePunks.MembershipType","name":"_memberType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"vipMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vipMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040819052600060808190526200001b91600e9162000361565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200004a91600f9162000361565b5061019060135560646014556016805461ffff191660011790553480156200007157600080fd5b5060405162003464380380620034648339810160408190526200009491620004f1565b875188908890620000ad90600290602085019062000361565b508051620000c390600390602084019062000361565b5050600160005550620000d63362000125565b60016009556010859055620000eb8662000177565b620000f684620001df565b62000101836200022f565b6200010c816200027f565b6200011782620002f4565b505050505050505062000602565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001c65760405162461bcd60e51b815260206004820181905260248201526000805160206200344483398151915260448201526064015b60405180910390fd5b8051620001db90600e90602084019062000361565b5050565b6008546001600160a01b031633146200022a5760405162461bcd60e51b81526020600482018190526024820152600080516020620034448339815191526044820152606401620001bd565b601155565b6008546001600160a01b031633146200027a5760405162461bcd60e51b81526020600482018190526024820152600080516020620034448339815191526044820152606401620001bd565b601255565b6008546001600160a01b03163314620002ca5760405162461bcd60e51b81526020600482018190526024820152600080516020620034448339815191526044820152606401620001bd565b601680546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6008546001600160a01b031633146200033f5760405162461bcd60e51b81526020600482018190526024820152600080516020620034448339815191526044820152606401620001bd565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b8280546200036f90620005c5565b90600052602060002090601f016020900481019282620003935760008555620003de565b82601f10620003ae57805160ff1916838001178555620003de565b82800160010185558215620003de579182015b82811115620003de578251825591602001919060010190620003c1565b50620003ec929150620003f0565b5090565b5b80821115620003ec5760008155600101620003f1565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200042f57600080fd5b81516001600160401b03808211156200044c576200044c62000407565b604051601f8301601f19908116603f0116810190828211818310171562000477576200047762000407565b816040528381526020925086838588010111156200049457600080fd5b600091505b83821015620004b8578582018301518183018401529082019062000499565b83821115620004ca5760008385830101525b9695505050505050565b80516001600160a01b0381168114620004ec57600080fd5b919050565b600080600080600080600080610100898b0312156200050f57600080fd5b88516001600160401b03808211156200052757600080fd5b620005358c838d016200041d565b995060208b01519150808211156200054c57600080fd5b6200055a8c838d016200041d565b985060408b01519150808211156200057157600080fd5b50620005808b828c016200041d565b965050606089015194506080890151935060a08901519250620005a660c08a01620004d4565b9150620005b660e08a01620004d4565b90509295985092959890939650565b600181811c90821680620005da57607f821691505b60208210811415620005fc57634e487b7160e01b600052602260045260246000fd5b50919050565b612e3280620006126000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c80636f9dd92f116101de578063b88d4fde1161010f578063dac15d31116100ad578063eff057c01161007c578063eff057c014610769578063f0e6d05414610789578063f2fde38b146107a9578063ff96f957146107bc57600080fd5b8063dac15d3114610727578063e8cc61f514610730578063e985e9c514610743578063efbd73f41461075657600080fd5b8063c87b56dd116100e9578063c87b56dd146106e5578063d38fe43f146106f8578063d3e8049d1461070b578063d5abeb011461071e57600080fd5b8063b88d4fde146106ac578063bb542ef0146106bf578063c0e69657146106d257600080fd5b806385498ff81161017c57806395d89b411161015657806395d89b4114610675578063a0712d681461067d578063a22cb46514610690578063ad735384146106a357600080fd5b806385498ff81461063f5780638da5cb5b146106515780639335dcb71461066257600080fd5b806377b86c58116101b857806377b86c58146105f35780637e8fc6ca146106065780637ec4a6591461061957806380a0c6a81461062c57600080fd5b80636f9dd92f146105c557806370a08231146105d8578063715018a6146105eb57600080fd5b8063272cc181116102b8578063438b6300116102565780635503a0e8116102305780635503a0e8146105955780635c975abb1461059d57806362b99ad4146105aa5780636352211e146105b257600080fd5b8063438b6300146105495780634626f4a51461056957806351ec8d1e1461057c57600080fd5b8063342324a011610292578063342324a0146104ed578063355233f51461050d5780633ccfd60b1461052e57806342842e0e1461053657600080fd5b8063272cc181146104c957806328f84e6b146104d25780632965a834146104da57600080fd5b80631015805b1161032557806318160ddd116102ff57806318160ddd146104945780631cac531c146104a4578063239c70ae146104ad57806323b872dd146104b657600080fd5b80631015805b1461044e57806316ba10e01461046e57806316c38b3c1461048157600080fd5b8063081812fc11610361578063081812fc146103f3578063088a4ed01461041e578063095ea7b314610433578063099c008e1461044657600080fd5b806301ffc9a71461038857806302092b5d146103b057806306fdde03146103de575b600080fd5b61039b610396366004612643565b6107cf565b60405190151581526020015b60405180910390f35b6103d06103be366004612675565b600b6020526000908152604090205481565b6040519081526020016103a7565b6103e6610821565b6040516103a791906126ea565b6104066104013660046126fd565b6108b3565b6040516001600160a01b0390911681526020016103a7565b61043161042c3660046126fd565b6108f7565b005b610431610441366004612716565b61092f565b6103d06109b6565b6103d061045c366004612675565b600a6020526000908152604090205481565b61043161047c3660046127cd565b6109cd565b61043161048f366004612825565b610a0e565b60015460005403600019016103d0565b6103d060145481565b6103d060115481565b6104316104c4366004612840565b610a4b565b6103d060125481565b610431610a56565b6104316104e8366004612881565b610a9a565b6103d06104fb3660046126fd565b600c6020526000908152604090205481565b61052061051b3660046126fd565b610c5d565b6040516103a79291906128c5565b610431610d15565b610431610544366004612840565b610e44565b61055c610557366004612675565b610e5f565b6040516103a791906128db565b6104316105773660046126fd565b610f9f565b601654610406906201000090046001600160a01b031681565b6103e6610fce565b60165461039b9060ff1681565b6103e661105c565b6104066105c03660046126fd565b611069565b6104316105d336600461291f565b61107b565b6103d06105e6366004612675565b611273565b6104316112c1565b61039b6106013660046126fd565b6112f7565b610431610614366004612825565b611336565b6104316106273660046127cd565b61137a565b61043161063a366004612675565b6113b7565b60165461039b90610100900460ff1681565b6008546001600160a01b0316610406565b601754610406906001600160a01b031681565b6103e6611403565b61043161068b3660046126fd565b611412565b61043161069e366004612993565b611554565b6103d060155481565b6104316106ba3660046129c8565b6115ea565b6104316106cd366004612675565b611634565b6104316106e0366004612675565b611680565b6103e66106f33660046126fd565b61177f565b610431610706366004612675565b611835565b601854610406906001600160a01b031681565b6103d060105481565b6103d060135481565b61043161073e366004612881565b611889565b61039b610751366004612a47565b611a18565b610431610764366004612a80565b611a46565b61077c610777366004612881565b611ae3565b6040516103a79190612aa5565b6103d06107973660046126fd565b600d6020526000908152604090205481565b6104316107b7366004612675565b611b00565b6104316107ca3660046126fd565b611b9b565b60006001600160e01b031982166380ac58cd60e01b148061080057506001600160e01b03198216635b5e139f60e01b145b8061081b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461083090612ab3565b80601f016020809104026020016040519081016040528092919081815260200182805461085c90612ab3565b80156108a95780601f1061087e576101008083540402835291602001916108a9565b820191906000526020600020905b81548152906001019060200180831161088c57829003601f168201915b5050505050905090565b60006108be82611bca565b6108db576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b0316331461092a5760405162461bcd60e51b815260040161092190612aee565b60405180910390fd5b601155565b600061093a82611069565b9050806001600160a01b0316836001600160a01b0316141561096f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109a6576109898133611a18565b6109a6576040516367d9dca160e11b815260040160405180910390fd5b6109b1838383611c03565b505050565b60006013546014546109c89190612b39565b905090565b6008546001600160a01b031633146109f75760405162461bcd60e51b815260040161092190612aee565b8051610a0a90600f906020840190612594565b5050565b6008546001600160a01b03163314610a385760405162461bcd60e51b815260040161092190612aee565b6016805460ff1916911515919091179055565b6109b1838383611c5f565b6008546001600160a01b03163314610a805760405162461bcd60e51b815260040161092190612aee565b601354601454610a909190612b39565b6014556000601355565b60165460ff1615610abd5760405162461bcd60e51b815260040161092190612b51565b81601154600082118015610ad15750808211155b610aed5760405162461bcd60e51b815260040161092190612b88565b60105482610afe6000546000190190565b610b089190612b39565b1115610b265760405162461bcd60e51b815260040161092190612bb6565b601154836000806000610b3884610c5d565b9150915081610b835760405162461bcd60e51b815260206004820152601760248201527613595b58995c9cda1a5c081b9bdd081d995c9a599a5959604a1b6044820152606401610921565b8460135411610bd05760405162461bcd60e51b815260206004820152601960248201527845786365656473206d656d6265727368697020737570706c7960381b6044820152606401610921565b6011546000898152600c6020526040902054610bed908b90612b39565b1115610c0b5760405162461bcd60e51b815260040161092190612be4565b6000888152600c6020526040812080548b9290610c29908490612b39565b925050819055508860136000828254610c429190612c1b565b90915550610c529050338a611e3a565b505050505050505050565b60165460009081906201000090046001600160a01b031681336040516331a9108f60e11b8152600481018790526001600160a01b0391821691841690636352211e9060240160206040518083038186803b158015610cba57600080fd5b505afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf29190612c32565b6001600160a01b031614905080610d0a866064611ae3565b935093505050915091565b6008546001600160a01b03163314610d3f5760405162461bcd60e51b815260040161092190612aee565b60026009541415610d925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610921565b60026009556017546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610de4576040519150601f19603f3d011682016040523d82523d6000602084013e610de9565b606091505b50508091505080610e3c5760405162461bcd60e51b815260206004820152601860248201527f5472616e73616374696f6e20556e7375636365737366756c00000000000000006044820152606401610921565b506001600955565b6109b1838383604051806020016040528060008152506115ea565b60606000610e6c83611273565b90506000816001600160401b03811115610e8857610e88612742565b604051908082528060200260200182016040528015610eb1578160200160208202803683370190505b50905060016000805b8482108015610eca575060005483105b15610f9457600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610f815780516001600160a01b031615610f3b57805191505b876001600160a01b0316826001600160a01b03161415610f815783858481518110610f6857610f68612c4f565b602090810291909101015282610f7d81612c65565b9350505b83610f8b81612c65565b94505050610eba565b509195945050505050565b6008546001600160a01b03163314610fc95760405162461bcd60e51b815260040161092190612aee565b601555565b600f8054610fdb90612ab3565b80601f016020809104026020016040519081016040528092919081815260200182805461100790612ab3565b80156110545780601f1061102957610100808354040283529160200191611054565b820191906000526020600020905b81548152906001019060200180831161103757829003601f168201915b505050505081565b600e8054610fdb90612ab3565b600061107482611e54565b5192915050565b601654610100900460ff166110c95760405162461bcd60e51b8152602060048201526014602482015273109b195b99081a5cc81b9bdd08195b98589b195960621b6044820152606401610921565b60006015541161111b5760405162461bcd60e51b815260206004820152601960248201527f426c656e6420726571756972656d656e74206e6f7420736574000000000000006044820152606401610921565b60155481146111785760405162461bcd60e51b8152602060048201526024808201527f426c656e64206d75737420657175616c2074686520726571756972656420616d6044820152631bdd5b9d60e21b6064820152608401610921565b6111b4828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611f7692505050565b61120b5760405162461bcd60e51b815260206004820152602260248201527f4d656d6265727368697020746f6b656e73206d75737420626520766572696669604482015261195960f21b6064820152608401610921565b60005b818110156112495761123783838381811061122b5761122b612c4f565b90506020020135611fe1565b8061124181612c65565b91505061120e565b50336000908152600b6020526040812080546001929061126a908490612b39565b90915550505050565b60006001600160a01b03821661129c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146112eb5760405162461bcd60e51b815260040161092190612aee565b6112f56000611fec565b565b60006064821161131957506011546000918252600c6020526040909120541090565b506012546000918252600d6020526040909120541090565b919050565b6008546001600160a01b031633146113605760405162461bcd60e51b815260040161092190612aee565b601680549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146113a45760405162461bcd60e51b815260040161092190612aee565b8051610a0a90600e906020840190612594565b6008546001600160a01b031633146113e15760405162461bcd60e51b815260040161092190612aee565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461083090612ab3565b60165460ff16156114355760405162461bcd60e51b815260040161092190612b51565b806011546000821180156114495750808211155b6114655760405162461bcd60e51b815260040161092190612b88565b601054826114766000546000190190565b6114809190612b39565b111561149e5760405162461bcd60e51b815260040161092190612bb6565b6114a66109b6565b6010546114b39190612c1b565b836114c16000546000190190565b6114cb9190612b39565b11156114e95760405162461bcd60e51b815260040161092190612bb6565b601154336000908152600a6020526040902054611507908590612b39565b11156115255760405162461bcd60e51b815260040161092190612be4565b336000908152600a602052604081208054859290611544908490612b39565b909155506109b190503384611e3a565b6001600160a01b03821633141561157e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f5848484611c5f565b6001600160a01b0383163b1561162e576116118484848461203e565b61162e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461165e5760405162461bcd60e51b815260040161092190612aee565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6018546001600160a01b0316336001600160a01b0316146116f45760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792074686520626c656e6420636f6e74726163742063616e20636c61696044820152676d20626c656e647360c01b6064820152608401610921565b6001600160a01b0381166000908152600b602052604090205461174e5760405162461bcd60e51b81526020600482015260126024820152714e6f20626c656e647320746f20636c61696d60701b6044820152606401610921565b6001600160a01b0381166000908152600b60205260408120805460019290611777908490612c1b565b909155505050565b606061178a82611bca565b6117d65760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610921565b60006117e0612135565b90506000815111611800576040518060200160405280600081525061182e565b8061180a84612144565b600f60405160200161181e93929190612c80565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461185f5760405162461bcd60e51b815260040161092190612aee565b601680546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60165460ff16156118ac5760405162461bcd60e51b815260040161092190612b51565b816012546000821180156118c05750808211155b6118dc5760405162461bcd60e51b815260040161092190612b88565b601054826118ed6000546000190190565b6118f79190612b39565b11156119155760405162461bcd60e51b815260040161092190612bb6565b60115483600160008061192784610c5d565b91509150816119725760405162461bcd60e51b815260206004820152601760248201527613595b58995c9cda1a5c081b9bdd081d995c9a599a5959604a1b6044820152606401610921565b84601354116119bf5760405162461bcd60e51b815260206004820152601960248201527845786365656473206d656d6265727368697020737570706c7960381b6044820152606401610921565b6012546000898152600d60205260409020546119dc908b90612b39565b11156119fa5760405162461bcd60e51b815260040161092190612be4565b6000888152600d6020526040812080548b9290610c29908490612b39565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b81601154600082118015611a5a5750808211155b611a765760405162461bcd60e51b815260040161092190612b88565b60105482611a876000546000190190565b611a919190612b39565b1115611aaf5760405162461bcd60e51b815260040161092190612bb6565b6008546001600160a01b03163314611ad95760405162461bcd60e51b815260040161092190612aee565b61162e8385611e3a565b60008082841115611af5576001611af8565b60005b949350505050565b6008546001600160a01b03163314611b2a5760405162461bcd60e51b815260040161092190612aee565b6001600160a01b038116611b8f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610921565b611b9881611fec565b50565b6008546001600160a01b03163314611bc55760405162461bcd60e51b815260040161092190612aee565b601255565b600081600111158015611bde575060005482105b801561081b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611c6a82611e54565b9050836001600160a01b031681600001516001600160a01b031614611ca15760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611cbf5750611cbf8533611a18565b80611cda575033611ccf846108b3565b6001600160a01b0316145b905080611cfa57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611d2157604051633a954ecd60e21b815260040160405180910390fd5b611d2d60008487611c03565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e01576000548214611e0157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612ddd83398151915260405160405180910390a45050505050565b610a0a828260405180602001604052806000815250612241565b60408051606081018252600080825260208201819052918101919091528180600111611f5d57600054811015611f5d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611f5b5780516001600160a01b031615611ef2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611f56579392505050565b611ef2565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805b8251811015611fd857336001600160a01b0316611faf848381518110611fa257611fa2612c4f565b6020026020010151611069565b6001600160a01b031614611fc65750600092915050565b80611fd081612c65565b915050611f7a565b50600192915050565b611b988160006123e1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612073903390899088908890600401612d44565b602060405180830381600087803b15801561208d57600080fd5b505af19250505080156120bd575060408051601f3d908101601f191682019092526120ba91810190612d81565b60015b612118573d8080156120eb576040519150601f19603f3d011682016040523d82523d6000602084013e6120f0565b606091505b508051612110576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461083090612ab3565b6060816121685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612192578061217c81612c65565b915061218b9050600a83612db4565b915061216c565b6000816001600160401b038111156121ac576121ac612742565b6040519080825280601f01601f1916602001820160405280156121d6576020820181803683370190505b5090505b8415611af8576121eb600183612c1b565b91506121f8600a86612dc8565b612203906030612b39565b60f81b81838151811061221857612218612c4f565b60200101906001600160f81b031916908160001a90535061223a600a86612db4565b94506121da565b6000546001600160a01b03841661226a57604051622e076360e81b815260040160405180910390fd5b826122885760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561239e575b60405182906001600160a01b03881690600090600080516020612ddd833981519152908290a4612367600087848060010195508761203e565b612384576040516368d2bf6b60e11b815260040160405180910390fd5b80821061232e57826000541461239957600080fd5b6123d1565b5b6040516001830192906001600160a01b03881690600090600080516020612ddd833981519152908290a480821061239f575b50600090815561162e9085838684565b60006123ec83611e54565b80519091508215612452576000336001600160a01b038316148061241557506124158233611a18565b80612430575033612425866108b3565b6001600160a01b0316145b90508061245057604051632ce44b5f60e11b815260040160405180910390fd5b505b61245e60008583611c03565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661255c57600054821461255c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020612ddd833981519152908390a4505060018054810190555050565b8280546125a090612ab3565b90600052602060002090601f0160209004810192826125c25760008555612608565b82601f106125db57805160ff1916838001178555612608565b82800160010185558215612608579182015b828111156126085782518255916020019190600101906125ed565b50612614929150612618565b5090565b5b808211156126145760008155600101612619565b6001600160e01b031981168114611b9857600080fd5b60006020828403121561265557600080fd5b813561182e8161262d565b6001600160a01b0381168114611b9857600080fd5b60006020828403121561268757600080fd5b813561182e81612660565b60005b838110156126ad578181015183820152602001612695565b8381111561162e5750506000910152565b600081518084526126d6816020860160208601612692565b601f01601f19169290920160200192915050565b60208152600061182e60208301846126be565b60006020828403121561270f57600080fd5b5035919050565b6000806040838503121561272957600080fd5b823561273481612660565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561277257612772612742565b604051601f8501601f19908116603f0116810190828211818310171561279a5761279a612742565b816040528093508581528686860111156127b357600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156127df57600080fd5b81356001600160401b038111156127f557600080fd5b8201601f8101841361280657600080fd5b611af884823560208401612758565b8035801515811461133157600080fd5b60006020828403121561283757600080fd5b61182e82612815565b60008060006060848603121561285557600080fd5b833561286081612660565b9250602084013561287081612660565b929592945050506040919091013590565b6000806040838503121561289457600080fd5b50508035926020909101359150565b600281106128c157634e487b7160e01b600052602160045260246000fd5b9052565b82151581526040810161182e60208301846128a3565b6020808252825182820181905260009190848201906040850190845b81811015612913578351835292840192918401916001016128f7565b50909695505050505050565b6000806020838503121561293257600080fd5b82356001600160401b038082111561294957600080fd5b818501915085601f83011261295d57600080fd5b81358181111561296c57600080fd5b8660208260051b850101111561298157600080fd5b60209290920196919550909350505050565b600080604083850312156129a657600080fd5b82356129b181612660565b91506129bf60208401612815565b90509250929050565b600080600080608085870312156129de57600080fd5b84356129e981612660565b935060208501356129f981612660565b92506040850135915060608501356001600160401b03811115612a1b57600080fd5b8501601f81018713612a2c57600080fd5b612a3b87823560208401612758565b91505092959194509250565b60008060408385031215612a5a57600080fd5b8235612a6581612660565b91506020830135612a7581612660565b809150509250929050565b60008060408385031215612a9357600080fd5b823591506020830135612a7581612660565b6020810161081b82846128a3565b600181811c90821680612ac757607f821691505b60208210811415612ae857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b4c57612b4c612b23565b500190565b60208082526017908201527f54686520636f6e74726163742069732070617573656421000000000000000000604082015260600190565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b60208082526017908201527f45786365656473206d6178206d696e7420616d6f756e74000000000000000000604082015260600190565b600082821015612c2d57612c2d612b23565b500390565b600060208284031215612c4457600080fd5b815161182e81612660565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612c7957612c79612b23565b5060010190565b600084516020612c938285838a01612692565b855191840191612ca68184848a01612692565b8554920191600090600181811c9080831680612cc357607f831692505b858310811415612ce157634e487b7160e01b85526022600452602485fd5b808015612cf55760018114612d0657612d33565b60ff19851688528388019550612d33565b60008b81526020902060005b85811015612d2b5781548a820152908401908801612d12565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d77908301846126be565b9695505050505050565b600060208284031215612d9357600080fd5b815161182e8161262d565b634e487b7160e01b600052601260045260246000fd5b600082612dc357612dc3612d9e565b500490565b600082612dd757612dd7612d9e565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220c0b493dcd4935d7431d11a46d31e9d652ad2faac628c3a1242204fbd578d691364736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000007b10000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000054499a5fec4faf545610383ee52136136672e77000000000000000000000000bb3fce1de1a4817790389f2bbf4fce8f8f901a16000000000000000000000000000000000000000000000000000000000000000c4d6f6f6e69652050756e6b730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4f4e494550554e4b53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f697066732e637265656b64726f70732e696f2f697066732f516d5732477a54467151626648476f46574e7073316476326555416774506a636271344674726f736f6235694c6b000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c80636f9dd92f116101de578063b88d4fde1161010f578063dac15d31116100ad578063eff057c01161007c578063eff057c014610769578063f0e6d05414610789578063f2fde38b146107a9578063ff96f957146107bc57600080fd5b8063dac15d3114610727578063e8cc61f514610730578063e985e9c514610743578063efbd73f41461075657600080fd5b8063c87b56dd116100e9578063c87b56dd146106e5578063d38fe43f146106f8578063d3e8049d1461070b578063d5abeb011461071e57600080fd5b8063b88d4fde146106ac578063bb542ef0146106bf578063c0e69657146106d257600080fd5b806385498ff81161017c57806395d89b411161015657806395d89b4114610675578063a0712d681461067d578063a22cb46514610690578063ad735384146106a357600080fd5b806385498ff81461063f5780638da5cb5b146106515780639335dcb71461066257600080fd5b806377b86c58116101b857806377b86c58146105f35780637e8fc6ca146106065780637ec4a6591461061957806380a0c6a81461062c57600080fd5b80636f9dd92f146105c557806370a08231146105d8578063715018a6146105eb57600080fd5b8063272cc181116102b8578063438b6300116102565780635503a0e8116102305780635503a0e8146105955780635c975abb1461059d57806362b99ad4146105aa5780636352211e146105b257600080fd5b8063438b6300146105495780634626f4a51461056957806351ec8d1e1461057c57600080fd5b8063342324a011610292578063342324a0146104ed578063355233f51461050d5780633ccfd60b1461052e57806342842e0e1461053657600080fd5b8063272cc181146104c957806328f84e6b146104d25780632965a834146104da57600080fd5b80631015805b1161032557806318160ddd116102ff57806318160ddd146104945780631cac531c146104a4578063239c70ae146104ad57806323b872dd146104b657600080fd5b80631015805b1461044e57806316ba10e01461046e57806316c38b3c1461048157600080fd5b8063081812fc11610361578063081812fc146103f3578063088a4ed01461041e578063095ea7b314610433578063099c008e1461044657600080fd5b806301ffc9a71461038857806302092b5d146103b057806306fdde03146103de575b600080fd5b61039b610396366004612643565b6107cf565b60405190151581526020015b60405180910390f35b6103d06103be366004612675565b600b6020526000908152604090205481565b6040519081526020016103a7565b6103e6610821565b6040516103a791906126ea565b6104066104013660046126fd565b6108b3565b6040516001600160a01b0390911681526020016103a7565b61043161042c3660046126fd565b6108f7565b005b610431610441366004612716565b61092f565b6103d06109b6565b6103d061045c366004612675565b600a6020526000908152604090205481565b61043161047c3660046127cd565b6109cd565b61043161048f366004612825565b610a0e565b60015460005403600019016103d0565b6103d060145481565b6103d060115481565b6104316104c4366004612840565b610a4b565b6103d060125481565b610431610a56565b6104316104e8366004612881565b610a9a565b6103d06104fb3660046126fd565b600c6020526000908152604090205481565b61052061051b3660046126fd565b610c5d565b6040516103a79291906128c5565b610431610d15565b610431610544366004612840565b610e44565b61055c610557366004612675565b610e5f565b6040516103a791906128db565b6104316105773660046126fd565b610f9f565b601654610406906201000090046001600160a01b031681565b6103e6610fce565b60165461039b9060ff1681565b6103e661105c565b6104066105c03660046126fd565b611069565b6104316105d336600461291f565b61107b565b6103d06105e6366004612675565b611273565b6104316112c1565b61039b6106013660046126fd565b6112f7565b610431610614366004612825565b611336565b6104316106273660046127cd565b61137a565b61043161063a366004612675565b6113b7565b60165461039b90610100900460ff1681565b6008546001600160a01b0316610406565b601754610406906001600160a01b031681565b6103e6611403565b61043161068b3660046126fd565b611412565b61043161069e366004612993565b611554565b6103d060155481565b6104316106ba3660046129c8565b6115ea565b6104316106cd366004612675565b611634565b6104316106e0366004612675565b611680565b6103e66106f33660046126fd565b61177f565b610431610706366004612675565b611835565b601854610406906001600160a01b031681565b6103d060105481565b6103d060135481565b61043161073e366004612881565b611889565b61039b610751366004612a47565b611a18565b610431610764366004612a80565b611a46565b61077c610777366004612881565b611ae3565b6040516103a79190612aa5565b6103d06107973660046126fd565b600d6020526000908152604090205481565b6104316107b7366004612675565b611b00565b6104316107ca3660046126fd565b611b9b565b60006001600160e01b031982166380ac58cd60e01b148061080057506001600160e01b03198216635b5e139f60e01b145b8061081b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461083090612ab3565b80601f016020809104026020016040519081016040528092919081815260200182805461085c90612ab3565b80156108a95780601f1061087e576101008083540402835291602001916108a9565b820191906000526020600020905b81548152906001019060200180831161088c57829003601f168201915b5050505050905090565b60006108be82611bca565b6108db576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b0316331461092a5760405162461bcd60e51b815260040161092190612aee565b60405180910390fd5b601155565b600061093a82611069565b9050806001600160a01b0316836001600160a01b0316141561096f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109a6576109898133611a18565b6109a6576040516367d9dca160e11b815260040160405180910390fd5b6109b1838383611c03565b505050565b60006013546014546109c89190612b39565b905090565b6008546001600160a01b031633146109f75760405162461bcd60e51b815260040161092190612aee565b8051610a0a90600f906020840190612594565b5050565b6008546001600160a01b03163314610a385760405162461bcd60e51b815260040161092190612aee565b6016805460ff1916911515919091179055565b6109b1838383611c5f565b6008546001600160a01b03163314610a805760405162461bcd60e51b815260040161092190612aee565b601354601454610a909190612b39565b6014556000601355565b60165460ff1615610abd5760405162461bcd60e51b815260040161092190612b51565b81601154600082118015610ad15750808211155b610aed5760405162461bcd60e51b815260040161092190612b88565b60105482610afe6000546000190190565b610b089190612b39565b1115610b265760405162461bcd60e51b815260040161092190612bb6565b601154836000806000610b3884610c5d565b9150915081610b835760405162461bcd60e51b815260206004820152601760248201527613595b58995c9cda1a5c081b9bdd081d995c9a599a5959604a1b6044820152606401610921565b8460135411610bd05760405162461bcd60e51b815260206004820152601960248201527845786365656473206d656d6265727368697020737570706c7960381b6044820152606401610921565b6011546000898152600c6020526040902054610bed908b90612b39565b1115610c0b5760405162461bcd60e51b815260040161092190612be4565b6000888152600c6020526040812080548b9290610c29908490612b39565b925050819055508860136000828254610c429190612c1b565b90915550610c529050338a611e3a565b505050505050505050565b60165460009081906201000090046001600160a01b031681336040516331a9108f60e11b8152600481018790526001600160a01b0391821691841690636352211e9060240160206040518083038186803b158015610cba57600080fd5b505afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf29190612c32565b6001600160a01b031614905080610d0a866064611ae3565b935093505050915091565b6008546001600160a01b03163314610d3f5760405162461bcd60e51b815260040161092190612aee565b60026009541415610d925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610921565b60026009556017546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610de4576040519150601f19603f3d011682016040523d82523d6000602084013e610de9565b606091505b50508091505080610e3c5760405162461bcd60e51b815260206004820152601860248201527f5472616e73616374696f6e20556e7375636365737366756c00000000000000006044820152606401610921565b506001600955565b6109b1838383604051806020016040528060008152506115ea565b60606000610e6c83611273565b90506000816001600160401b03811115610e8857610e88612742565b604051908082528060200260200182016040528015610eb1578160200160208202803683370190505b50905060016000805b8482108015610eca575060005483105b15610f9457600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610f815780516001600160a01b031615610f3b57805191505b876001600160a01b0316826001600160a01b03161415610f815783858481518110610f6857610f68612c4f565b602090810291909101015282610f7d81612c65565b9350505b83610f8b81612c65565b94505050610eba565b509195945050505050565b6008546001600160a01b03163314610fc95760405162461bcd60e51b815260040161092190612aee565b601555565b600f8054610fdb90612ab3565b80601f016020809104026020016040519081016040528092919081815260200182805461100790612ab3565b80156110545780601f1061102957610100808354040283529160200191611054565b820191906000526020600020905b81548152906001019060200180831161103757829003601f168201915b505050505081565b600e8054610fdb90612ab3565b600061107482611e54565b5192915050565b601654610100900460ff166110c95760405162461bcd60e51b8152602060048201526014602482015273109b195b99081a5cc81b9bdd08195b98589b195960621b6044820152606401610921565b60006015541161111b5760405162461bcd60e51b815260206004820152601960248201527f426c656e6420726571756972656d656e74206e6f7420736574000000000000006044820152606401610921565b60155481146111785760405162461bcd60e51b8152602060048201526024808201527f426c656e64206d75737420657175616c2074686520726571756972656420616d6044820152631bdd5b9d60e21b6064820152608401610921565b6111b4828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611f7692505050565b61120b5760405162461bcd60e51b815260206004820152602260248201527f4d656d6265727368697020746f6b656e73206d75737420626520766572696669604482015261195960f21b6064820152608401610921565b60005b818110156112495761123783838381811061122b5761122b612c4f565b90506020020135611fe1565b8061124181612c65565b91505061120e565b50336000908152600b6020526040812080546001929061126a908490612b39565b90915550505050565b60006001600160a01b03821661129c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146112eb5760405162461bcd60e51b815260040161092190612aee565b6112f56000611fec565b565b60006064821161131957506011546000918252600c6020526040909120541090565b506012546000918252600d6020526040909120541090565b919050565b6008546001600160a01b031633146113605760405162461bcd60e51b815260040161092190612aee565b601680549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146113a45760405162461bcd60e51b815260040161092190612aee565b8051610a0a90600e906020840190612594565b6008546001600160a01b031633146113e15760405162461bcd60e51b815260040161092190612aee565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461083090612ab3565b60165460ff16156114355760405162461bcd60e51b815260040161092190612b51565b806011546000821180156114495750808211155b6114655760405162461bcd60e51b815260040161092190612b88565b601054826114766000546000190190565b6114809190612b39565b111561149e5760405162461bcd60e51b815260040161092190612bb6565b6114a66109b6565b6010546114b39190612c1b565b836114c16000546000190190565b6114cb9190612b39565b11156114e95760405162461bcd60e51b815260040161092190612bb6565b601154336000908152600a6020526040902054611507908590612b39565b11156115255760405162461bcd60e51b815260040161092190612be4565b336000908152600a602052604081208054859290611544908490612b39565b909155506109b190503384611e3a565b6001600160a01b03821633141561157e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f5848484611c5f565b6001600160a01b0383163b1561162e576116118484848461203e565b61162e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461165e5760405162461bcd60e51b815260040161092190612aee565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6018546001600160a01b0316336001600160a01b0316146116f45760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792074686520626c656e6420636f6e74726163742063616e20636c61696044820152676d20626c656e647360c01b6064820152608401610921565b6001600160a01b0381166000908152600b602052604090205461174e5760405162461bcd60e51b81526020600482015260126024820152714e6f20626c656e647320746f20636c61696d60701b6044820152606401610921565b6001600160a01b0381166000908152600b60205260408120805460019290611777908490612c1b565b909155505050565b606061178a82611bca565b6117d65760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610921565b60006117e0612135565b90506000815111611800576040518060200160405280600081525061182e565b8061180a84612144565b600f60405160200161181e93929190612c80565b6040516020818303038152906040525b9392505050565b6008546001600160a01b0316331461185f5760405162461bcd60e51b815260040161092190612aee565b601680546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60165460ff16156118ac5760405162461bcd60e51b815260040161092190612b51565b816012546000821180156118c05750808211155b6118dc5760405162461bcd60e51b815260040161092190612b88565b601054826118ed6000546000190190565b6118f79190612b39565b11156119155760405162461bcd60e51b815260040161092190612bb6565b60115483600160008061192784610c5d565b91509150816119725760405162461bcd60e51b815260206004820152601760248201527613595b58995c9cda1a5c081b9bdd081d995c9a599a5959604a1b6044820152606401610921565b84601354116119bf5760405162461bcd60e51b815260206004820152601960248201527845786365656473206d656d6265727368697020737570706c7960381b6044820152606401610921565b6012546000898152600d60205260409020546119dc908b90612b39565b11156119fa5760405162461bcd60e51b815260040161092190612be4565b6000888152600d6020526040812080548b9290610c29908490612b39565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b81601154600082118015611a5a5750808211155b611a765760405162461bcd60e51b815260040161092190612b88565b60105482611a876000546000190190565b611a919190612b39565b1115611aaf5760405162461bcd60e51b815260040161092190612bb6565b6008546001600160a01b03163314611ad95760405162461bcd60e51b815260040161092190612aee565b61162e8385611e3a565b60008082841115611af5576001611af8565b60005b949350505050565b6008546001600160a01b03163314611b2a5760405162461bcd60e51b815260040161092190612aee565b6001600160a01b038116611b8f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610921565b611b9881611fec565b50565b6008546001600160a01b03163314611bc55760405162461bcd60e51b815260040161092190612aee565b601255565b600081600111158015611bde575060005482105b801561081b575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611c6a82611e54565b9050836001600160a01b031681600001516001600160a01b031614611ca15760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611cbf5750611cbf8533611a18565b80611cda575033611ccf846108b3565b6001600160a01b0316145b905080611cfa57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611d2157604051633a954ecd60e21b815260040160405180910390fd5b611d2d60008487611c03565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e01576000548214611e0157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020612ddd83398151915260405160405180910390a45050505050565b610a0a828260405180602001604052806000815250612241565b60408051606081018252600080825260208201819052918101919091528180600111611f5d57600054811015611f5d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611f5b5780516001600160a01b031615611ef2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611f56579392505050565b611ef2565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805b8251811015611fd857336001600160a01b0316611faf848381518110611fa257611fa2612c4f565b6020026020010151611069565b6001600160a01b031614611fc65750600092915050565b80611fd081612c65565b915050611f7a565b50600192915050565b611b988160006123e1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612073903390899088908890600401612d44565b602060405180830381600087803b15801561208d57600080fd5b505af19250505080156120bd575060408051601f3d908101601f191682019092526120ba91810190612d81565b60015b612118573d8080156120eb576040519150601f19603f3d011682016040523d82523d6000602084013e6120f0565b606091505b508051612110576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461083090612ab3565b6060816121685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612192578061217c81612c65565b915061218b9050600a83612db4565b915061216c565b6000816001600160401b038111156121ac576121ac612742565b6040519080825280601f01601f1916602001820160405280156121d6576020820181803683370190505b5090505b8415611af8576121eb600183612c1b565b91506121f8600a86612dc8565b612203906030612b39565b60f81b81838151811061221857612218612c4f565b60200101906001600160f81b031916908160001a90535061223a600a86612db4565b94506121da565b6000546001600160a01b03841661226a57604051622e076360e81b815260040160405180910390fd5b826122885760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561239e575b60405182906001600160a01b03881690600090600080516020612ddd833981519152908290a4612367600087848060010195508761203e565b612384576040516368d2bf6b60e11b815260040160405180910390fd5b80821061232e57826000541461239957600080fd5b6123d1565b5b6040516001830192906001600160a01b03881690600090600080516020612ddd833981519152908290a480821061239f575b50600090815561162e9085838684565b60006123ec83611e54565b80519091508215612452576000336001600160a01b038316148061241557506124158233611a18565b80612430575033612425866108b3565b6001600160a01b0316145b90508061245057604051632ce44b5f60e11b815260040160405180910390fd5b505b61245e60008583611c03565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661255c57600054821461255c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020612ddd833981519152908390a4505060018054810190555050565b8280546125a090612ab3565b90600052602060002090601f0160209004810192826125c25760008555612608565b82601f106125db57805160ff1916838001178555612608565b82800160010185558215612608579182015b828111156126085782518255916020019190600101906125ed565b50612614929150612618565b5090565b5b808211156126145760008155600101612619565b6001600160e01b031981168114611b9857600080fd5b60006020828403121561265557600080fd5b813561182e8161262d565b6001600160a01b0381168114611b9857600080fd5b60006020828403121561268757600080fd5b813561182e81612660565b60005b838110156126ad578181015183820152602001612695565b8381111561162e5750506000910152565b600081518084526126d6816020860160208601612692565b601f01601f19169290920160200192915050565b60208152600061182e60208301846126be565b60006020828403121561270f57600080fd5b5035919050565b6000806040838503121561272957600080fd5b823561273481612660565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561277257612772612742565b604051601f8501601f19908116603f0116810190828211818310171561279a5761279a612742565b816040528093508581528686860111156127b357600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156127df57600080fd5b81356001600160401b038111156127f557600080fd5b8201601f8101841361280657600080fd5b611af884823560208401612758565b8035801515811461133157600080fd5b60006020828403121561283757600080fd5b61182e82612815565b60008060006060848603121561285557600080fd5b833561286081612660565b9250602084013561287081612660565b929592945050506040919091013590565b6000806040838503121561289457600080fd5b50508035926020909101359150565b600281106128c157634e487b7160e01b600052602160045260246000fd5b9052565b82151581526040810161182e60208301846128a3565b6020808252825182820181905260009190848201906040850190845b81811015612913578351835292840192918401916001016128f7565b50909695505050505050565b6000806020838503121561293257600080fd5b82356001600160401b038082111561294957600080fd5b818501915085601f83011261295d57600080fd5b81358181111561296c57600080fd5b8660208260051b850101111561298157600080fd5b60209290920196919550909350505050565b600080604083850312156129a657600080fd5b82356129b181612660565b91506129bf60208401612815565b90509250929050565b600080600080608085870312156129de57600080fd5b84356129e981612660565b935060208501356129f981612660565b92506040850135915060608501356001600160401b03811115612a1b57600080fd5b8501601f81018713612a2c57600080fd5b612a3b87823560208401612758565b91505092959194509250565b60008060408385031215612a5a57600080fd5b8235612a6581612660565b91506020830135612a7581612660565b809150509250929050565b60008060408385031215612a9357600080fd5b823591506020830135612a7581612660565b6020810161081b82846128a3565b600181811c90821680612ac757607f821691505b60208210811415612ae857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b4c57612b4c612b23565b500190565b60208082526017908201527f54686520636f6e74726163742069732070617573656421000000000000000000604082015260600190565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b60208082526017908201527f45786365656473206d6178206d696e7420616d6f756e74000000000000000000604082015260600190565b600082821015612c2d57612c2d612b23565b500390565b600060208284031215612c4457600080fd5b815161182e81612660565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612c7957612c79612b23565b5060010190565b600084516020612c938285838a01612692565b855191840191612ca68184848a01612692565b8554920191600090600181811c9080831680612cc357607f831692505b858310811415612ce157634e487b7160e01b85526022600452602485fd5b808015612cf55760018114612d0657612d33565b60ff19851688528388019550612d33565b60008b81526020902060005b85811015612d2b5781548a820152908401908801612d12565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d77908301846126be565b9695505050505050565b600060208284031215612d9357600080fd5b815161182e8161262d565b634e487b7160e01b600052601260045260246000fd5b600082612dc357612dc3612d9e565b500490565b600082612dd757612dd7612d9e565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220c0b493dcd4935d7431d11a46d31e9d652ad2faac628c3a1242204fbd578d691364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000007b10000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000054499a5fec4faf545610383ee52136136672e77000000000000000000000000bb3fce1de1a4817790389f2bbf4fce8f8f901a16000000000000000000000000000000000000000000000000000000000000000c4d6f6f6e69652050756e6b730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d4f4f4e494550554e4b53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e68747470733a2f2f697066732e637265656b64726f70732e696f2f697066732f516d5732477a54467151626648476f46574e7073316476326555416774506a636271344674726f736f6235694c6b000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Moonie Punks
Arg [1] : _tokenSymbol (string): MOONIEPUNKS
Arg [2] : _uriPrefix (string): https://ipfs.creekdrops.io/ipfs/QmW2GzTFqQbfHGoFWNps1dv2eUAgtPjcbq4Ftrosob5iLk
Arg [3] : _maxSupply (uint256): 1969
Arg [4] : _maxMintAmount (uint256): 3
Arg [5] : _maxVipMintAmount (uint256): 10
Arg [6] : _ownerWallet (address): 0x054499A5FEC4faf545610383ee52136136672e77
Arg [7] : _membershipContract (address): 0xBB3FcE1de1A4817790389f2bbF4fCe8f8f901A16
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007b1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 000000000000000000000000054499a5fec4faf545610383ee52136136672e77
Arg [7] : 000000000000000000000000bb3fce1de1a4817790389f2bbf4fce8f8f901a16
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [9] : 4d6f6f6e69652050756e6b730000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [11] : 4d4f4f4e494550554e4b53000000000000000000000000000000000000000000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000004e
Arg [13] : 68747470733a2f2f697066732e637265656b64726f70732e696f2f697066732f
Arg [14] : 516d5732477a54467151626648476f46574e7073316476326555416774506a63
Arg [15] : 6271344674726f736f6235694c6b000000000000000000000000000000000000
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.