ETH Price: $3,481.06 (+7.21%)
Gas: 11 Gwei

Contract

0x17138AdB4facBb88D66D6dFd1596a587eB97De4E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...187534042023-12-10 4:23:35218 days ago1702182215IN
0x17138AdB...7eB97De4E
0 ETH0.0009485520.52169505
Public Mint180045802023-08-27 7:41:23323 days ago1693122083IN
0x17138AdB...7eB97De4E
0 ETH0.000254311.78852952
Set Approval For...175043212023-06-18 4:34:35393 days ago1687062875IN
0x17138AdB...7eB97De4E
0 ETH0.0006458213.99773728
Set Approval For...170302462023-04-12 6:46:35460 days ago1681281995IN
0x17138AdB...7eB97De4E
0 ETH0.0004797719.74534195
Set Approval For...170302382023-04-12 6:44:59460 days ago1681281899IN
0x17138AdB...7eB97De4E
0 ETH0.0004802719.75638463
Set Approval For...170302282023-04-12 6:42:59460 days ago1681281779IN
0x17138AdB...7eB97De4E
0 ETH0.0004589418.94428803
Set Approval For...170093482023-04-09 7:43:11463 days ago1681026191IN
0x17138AdB...7eB97De4E
0 ETH0.0009739921.11043069
Set Approval For...170038142023-04-08 12:55:47464 days ago1680958547IN
0x17138AdB...7eB97De4E
0 ETH0.0008849519.18069753
Set Approval For...168770252023-03-21 15:52:47482 days ago1679413967IN
0x17138AdB...7eB97De4E
0 ETH0.0014590831.62431817
Set Approval For...167041982023-02-25 8:44:47506 days ago1677314687IN
0x17138AdB...7eB97De4E
0 ETH0.0010712323.17595594
Set Approval For...163889432023-01-12 6:30:23550 days ago1673505023IN
0x17138AdB...7eB97De4E
0 ETH0.0008072317.49618634
Set Approval For...163130412023-01-01 16:14:23561 days ago1672589663IN
0x17138AdB...7eB97De4E
0 ETH0.0006134413.27172137
Set Approval For...158729132022-11-01 4:49:11622 days ago1667278151IN
0x17138AdB...7eB97De4E
0 ETH0.0006105213.20859363
Set Approval For...158729092022-11-01 4:48:23622 days ago1667278103IN
0x17138AdB...7eB97De4E
0 ETH0.0006343513.72769751
Set Approval For...157880012022-10-20 8:05:23634 days ago1666253123IN
0x17138AdB...7eB97De4E
0 ETH0.0011487424.89796307
Set Approval For...156054842022-09-24 20:04:23660 days ago1664049863IN
0x17138AdB...7eB97De4E
0 ETH0.000072933
Set Approval For...154684062022-09-04 0:06:09680 days ago1662249969IN
0x17138AdB...7eB97De4E
0 ETH0.000078963
Set Approval For...154684062022-09-04 0:06:09680 days ago1662249969IN
0x17138AdB...7eB97De4E
0 ETH0.000078963
Set Approval For...154684062022-09-04 0:06:09680 days ago1662249969IN
0x17138AdB...7eB97De4E
0 ETH0.000138663
Public Mint154533082022-09-01 14:09:14683 days ago1662041354IN
0x17138AdB...7eB97De4E
0.005 ETH0.0133548169.979117
Set Approval For...154443952022-08-31 3:57:18684 days ago1661918238IN
0x17138AdB...7eB97De4E
0 ETH0.0006033113.07624934
Safe Transfer Fr...154405862022-08-30 13:21:08685 days ago1661865668IN
0x17138AdB...7eB97De4E
0 ETH0.0018102718.27845388
Public Mint154403752022-08-30 12:32:46685 days ago1661862766IN
0x17138AdB...7eB97De4E
0.01 ETH0.0094429530.69851791
Set Approval For...154398572022-08-30 10:27:14685 days ago1661855234IN
0x17138AdB...7eB97De4E
0 ETH0.0005718312.39401336
Set Approval For...154387022022-08-30 6:02:25685 days ago1661839345IN
0x17138AdB...7eB97De4E
0 ETH0.000389778.44810425
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
154533082022-09-01 14:09:14683 days ago1662041354
0x17138AdB...7eB97De4E
0.0025 ETH
154533082022-09-01 14:09:14683 days ago1662041354
0x17138AdB...7eB97De4E
0.0025 ETH
154403752022-08-30 12:32:46685 days ago1661862766
0x17138AdB...7eB97De4E
0.005 ETH
154403752022-08-30 12:32:46685 days ago1661862766
0x17138AdB...7eB97De4E
0.005 ETH
154363512022-08-29 21:04:06686 days ago1661807046
0x17138AdB...7eB97De4E
0.0025 ETH
154363512022-08-29 21:04:06686 days ago1661807046
0x17138AdB...7eB97De4E
0.0025 ETH
154363332022-08-29 20:58:40686 days ago1661806720
0x17138AdB...7eB97De4E
0.0075 ETH
154363332022-08-29 20:58:40686 days ago1661806720
0x17138AdB...7eB97De4E
0.0075 ETH
154361132022-08-29 20:08:29686 days ago1661803709
0x17138AdB...7eB97De4E
0.0025 ETH
154361132022-08-29 20:08:29686 days ago1661803709
0x17138AdB...7eB97De4E
0.0025 ETH
154338142022-08-29 11:27:00686 days ago1661772420
0x17138AdB...7eB97De4E
0.0025 ETH
154338142022-08-29 11:27:00686 days ago1661772420
0x17138AdB...7eB97De4E
0.0025 ETH
154332702022-08-29 9:11:45686 days ago1661764305
0x17138AdB...7eB97De4E
0.0025 ETH
154332702022-08-29 9:11:45686 days ago1661764305
0x17138AdB...7eB97De4E
0.0025 ETH
154321592022-08-29 4:56:42686 days ago1661749002
0x17138AdB...7eB97De4E
0.0025 ETH
154321592022-08-29 4:56:42686 days ago1661749002
0x17138AdB...7eB97De4E
0.0025 ETH
154320712022-08-29 4:37:31686 days ago1661747851
0x17138AdB...7eB97De4E
0.0025 ETH
154320712022-08-29 4:37:31686 days ago1661747851
0x17138AdB...7eB97De4E
0.0025 ETH
154302212022-08-28 21:37:44687 days ago1661722664
0x17138AdB...7eB97De4E
0.0075 ETH
154302212022-08-28 21:37:44687 days ago1661722664
0x17138AdB...7eB97De4E
0.0075 ETH
154300752022-08-28 21:08:15687 days ago1661720895
0x17138AdB...7eB97De4E
0.005 ETH
154300752022-08-28 21:08:15687 days ago1661720895
0x17138AdB...7eB97De4E
0.005 ETH
154299752022-08-28 20:45:14687 days ago1661719514
0x17138AdB...7eB97De4E
0.0075 ETH
154299752022-08-28 20:45:14687 days ago1661719514
0x17138AdB...7eB97De4E
0.0075 ETH
154299182022-08-28 20:29:46687 days ago1661718586
0x17138AdB...7eB97De4E
0.005 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Potatos

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 17 : Potatos.sol
//Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
/**

  _    _       _       _____      _     _______        _ _     
 | |  | |     | |     |  __ \    | |   |__   __|      | | |    
 | |  | | __ _| |_   _| |__) |__ | |_ __ _| |_ __ ___ | | |____
 | |  | |/ _` | | | | |  ___/ _ \| __/ _` | | '__/ _ \| | |_  /
 | |__| | (_| | | |_| | |  | (_) | || (_| | | | | (_) | | |/ / 
  \____/ \__, |_|\__, |_|   \___/ \__\__,_|_|_|  \___/|_|_/___|
          __/ |   __/ |                                        
         |___/   |___/                                         



*/
pragma solidity ^0.8.16;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract Potatos is ERC721URIStorage, Ownable, ERC721Enumerable {
    using Counters for Counters.Counter;
    using Strings for uint256;
    using ECDSA for bytes32;
    
    Counters.Counter private _tokenIds;

    bytes32 private _whitelistMerkleRoot;
    bool private _whitelistMint;

    uint256 private _maxSupply;
    uint256 private _tokensAvailable;
    bool private _isPaused;
    string private _customUriPrefix;
    string private _customUriExtension;
    address payable _ownerWallet1;
    address payable _ownerWallet2;

    mapping (uint256 => uint256) private _tierLimitsPerTx;
    mapping (uint256 => uint256) private _tierLimitsPerWallet;
    mapping (uint256 => uint256) private _tierPricing;
    
    mapping (uint256 => bool) private _redeemedPotatosStorage;
    uint256[] private _redeemedPotatos;


    //Fires on a new mint
    event NewMint(uint256 nftId, address nftOwner);
    event GoLive(bool weAreLive);


    constructor(uint256 initSupply, address payable ownerWallet, address payable ownerWallet2) ERC721("UglyPotaTrollz", "POTATROLLZ") {
        //Set the initial collection supply
        _maxSupply = initSupply;
        _tokensAvailable = _maxSupply;
        _whitelistMint = true; //By default, whitelist mints first
        

        //Set initial contract state and owner payable address
        _isPaused = true;
        _ownerWallet1 = ownerWallet;
        _ownerWallet2 = ownerWallet2;
        
        //Set token metadata location
        _customUriPrefix = "";
        _customUriExtension = "";

        //Set tiers configuration

        //Pricing
        _tierPricing[1] = 0;
        _tierPricing[2] = 5000000000000000;
        
        //Limits per transaction
        _tierLimitsPerTx[1] = 3;
        _tierLimitsPerTx[2] = 3;

        //Limits per wallet
        _tierLimitsPerWallet[1] = 3;
        _tierLimitsPerWallet[2] = 3;

    }
    function getMaxSupply()
    public
    view
    returns(uint256) 
    {
        return _maxSupply;
    }

    function getMintPrice(uint256 quantity)
    public
    view
    returns (uint256)
    {
        return _getPrice(quantity);
    }
    /**
        Tiered pricing and limits.
        These methods determine the tier and based on it the price and the limits of how many tokens one can mint
        at this stage of the mint cycle.

     */

     function _getTier(uint256 quantity)
     private
     view
     returns (uint256)
     {
         uint256 newTokenCount = _tokenIds.current() + quantity;

         //Tier 1: First 1000 tokens
         if (newTokenCount <= 1000) {
             return 1;
         }

         //Tier 2: Tokens 1001-2000
         if (newTokenCount > 1000) {
             return 2;
         }


     }
    
    function _getTierLimitPerTx(uint256 quantity)
    private
    view
    returns (uint256)
    {
        uint256 tier = _getTier(quantity);
        return _tierLimitsPerTx[tier];
    }

    function _getTierLimitPerWallet(uint256 quantity)
    private
    view
    returns (uint256)
    {
        uint256 tier = _getTier(quantity);
        return _tierLimitsPerWallet[tier];
    }

    function _getPrice(uint256 quantity) 
    private
    view
    returns (uint256)
    {
        uint256 tier = _getTier(quantity);
        uint256 price = _tierPricing[tier];

        return price * quantity;
    }

    //Return the array of UglyPotaTrollz that have been redemeed for IRL potatos
    function getRedeemedPotatos()
    external
    view
    returns(uint256[] memory) {
        return _redeemedPotatos;
    }

    function isPotatoRedeemed(uint256 potatoId)
    public
    view
    returns(bool){
        return _redeemedPotatosStorage[potatoId];
    }

    function redeemPotato(uint256 potatoId)
    public
    {
        require(ownerOf(potatoId) == msg.sender, "You can only redeem your own UglyPotaTrollz.");
        require(_redeemedPotatosStorage[potatoId] != true, "This potato is alreadt redeemed.");
        _redeemedPotatos.push(potatoId);
        _redeemedPotatosStorage[potatoId] = true;
    }

    /**
        Minting methods
     */
    function whitelistMint(address to, uint256 quantity, bytes32[] memory proof)
    public
    payable
    {
        require(!_isPaused,"Mint is currently paused.");
        require(msg.sender == to, "Sender must be the minter.");
        require(_whitelistMint, "Whitelist mint window has ended. Use public mint instead.");
        require(msg.value >= _getPrice(quantity), "Not enough ETH sent.");
        require(_tokensAvailable >= quantity,"Not enough tokens left, please reduce your quantity.");
        require(quantity <= _getTierLimitPerTx(quantity), "Desired quantity is over the limit of tokens per transaction.");
        require((balanceOf(to)+quantity) <= _getTierLimitPerWallet(quantity),"Desired quantity is over Max Mints Per Wallet limit.");
        require(MerkleProof.verify(proof,_whitelistMerkleRoot,keccak256(abi.encodePacked(to))),"Wallet not whitelisted.");


        if(msg.value > 0) {
            pay(msg.value);
        }
        for (uint256 i = 0; i<quantity; i++) {
            _masterMint(to);
        }
    }

    function publicMint(address to, uint256 quantity)
    public
    payable
    {
        require(!_isPaused,"Mint is currently paused.");
        require(msg.sender == to, "Sender must be the minter.");
        require(!_whitelistMint, "Whitelist mint is still ongoing. Please wait for WL mint to finish.");
        require(msg.value >= _getPrice(quantity), "Not enough ETH sent.");
        require(_tokensAvailable >= quantity,"Not enough tokens left, please reduce your quantity.");
        require(quantity <= _getTierLimitPerTx(quantity), "Desired quantity is over the limit of tokens per transaction.");
        require((balanceOf(to)+quantity) <= _getTierLimitPerWallet(quantity),"Desired quantity is over Max Mints Per Wallet limit.");


        if(msg.value > 0) {
            pay(msg.value);
        }
        for (uint256 i = 0; i<quantity; i++) {
            _masterMint(to);
        }
    }

    function _masterMint(address to)
    private
    {
        require(!_isPaused,"Mint is currently paused.");
        require(_tokensAvailable > 0, "All tokens have been minted already");
        _tokenIds.increment();
        uint256 newItemId = _tokenIds.current();
        _mint(to,newItemId);
        _tokensAvailable = _tokensAvailable - 1;
        emit NewMint(newItemId,to);
    }

    /**
        Internal methods
     */
    function _baseURI() 
    internal 
    view 
    virtual 
    override (ERC721) 
    returns (string memory) 
    {
        return _customUriPrefix;
    }

    function tokenURI(uint256 tokenId) public view virtual override (ERC721,ERC721URIStorage) 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(), _customUriExtension)) : "";
    }

    function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
    ) internal virtual override (ERC721,ERC721Enumerable)  {
        require(!_isPaused, "Contract is paused.");
        super._beforeTokenTransfer(from, to, tokenId);
        

    }

    function _burn(uint256 tokenId) 
	internal 
	virtual 
	override (ERC721, ERC721URIStorage) 
    {
        super._burn(tokenId);

    }

    function supportsInterface(bytes4 interfaceId) 
    public 
    view 
    virtual 
    override(ERC721, ERC721Enumerable) returns (bool) 
    {
        return super.supportsInterface(interfaceId);
    }

    /**
        Admin utility functions. These methods are used to reconfigure the contract after it has been deployed.
    */

    function setWhitelist(bytes32 newWhitelist)
    public
    onlyOwner {
        _whitelistMerkleRoot = newWhitelist;
    }

    function toggleWhitelistMintStatus()
    public
    onlyOwner {
        _whitelistMint = !_whitelistMint;
    }

    //Returns current status of the whitelsit mint. True if WL mint is on
    function getWhitelistMintStatus()
    public
    view
    returns(bool)
    {
        return _whitelistMint;
    }

    // Returns true if contract is paused
    function getIsContractPaused()
    public
    view
    returns(bool)
    {
        return _isPaused;
    }

    function _setUriPrefix(string memory newBaseUri)
    public
    onlyOwner
    {
        _customUriPrefix = newBaseUri;
    }

    function _setUriExtension(string memory newUriExtension)
    public
    onlyOwner
    {
        _customUriExtension = newUriExtension;
    }

    function toggleContract ()
    public
    onlyOwner 
    {
        _isPaused = !_isPaused;
    }

    function adminMint (address to, uint256 quantity)
    public
    onlyOwner {
        for (uint256 i = 0; i<quantity; i++) {
             _masterMint(to);
        }
    }

    function setMaxSupply (uint256 newMaxSupply) 
    public 
    onlyOwner 
    {
        require(_tokenIds.current() <= newMaxSupply, "Can not set max supply to less than current supply.");
        _maxSupply = newMaxSupply;
        _tokensAvailable = _maxSupply - _tokenIds.current();
    }

    function goLive()
    public
    onlyOwner
    {
        toggleContract();
        emit GoLive(true);
    }
    /**
        Payment processing
    */
    function pay(uint256 amount)
    public 
    payable 
    {
        uint256 finalAmount = 0;
        finalAmount = amount / 2;
        (bool owners, ) = _ownerWallet1.call{value: finalAmount}("");
        require(owners,"Faild to make a payment.");
        (bool owners2, ) = _ownerWallet2.call{value: finalAmount}("");
        require(owners,"Faild to make a payment.");


    }
}

File 2 of 17 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 3 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 4 of 17 : Ownable.sol
// 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);
    }
}

File 5 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 17 : Strings.sol
// 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);
    }
}

File 7 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 8 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 9 of 17 : ERC721.sol
// 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 {}
}

File 10 of 17 : IERC721.sol
// 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);
}

File 11 of 17 : IERC721Receiver.sol
// 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);
}

File 12 of 17 : IERC721Metadata.sol
// 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);
}

File 13 of 17 : Address.sol
// 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);
            }
        }
    }
}

File 14 of 17 : Context.sol
// 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;
    }
}

File 15 of 17 : ERC165.sol
// 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;
    }
}

File 16 of 17 : IERC165.sol
// 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);
}

File 17 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initSupply","type":"uint256"},{"internalType":"address payable","name":"ownerWallet","type":"address"},{"internalType":"address payable","name":"ownerWallet2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"weAreLive","type":"bool"}],"name":"GoLive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"address","name":"nftOwner","type":"address"}],"name":"NewMint","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":"string","name":"newUriExtension","type":"string"}],"name":"_setUriExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"_setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIsContractPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRedeemedPotatos","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"potatoId","type":"uint256"}],"name":"isPotatoRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pay","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"potatoId","type":"uint256"}],"name":"redeemPotato","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newWhitelist","type":"bytes32"}],"name":"setWhitelist","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":[],"name":"toggleContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003874380380620038748339810160408190526200003491620002b8565b6040518060400160405280600e81526020016d2ab3b63ca837ba30aa3937b6363d60911b8152506040518060400160405280600a8152602001692827aa20aa2927a6262d60b11b81525081600090816200008f91906200039e565b5060016200009e82826200039e565b505050620000bb620000b56200024560201b60201c565b62000249565b600f8390556010839055600e805460ff199081166001908117909255601180549091169091179055601480546001600160a01b038085166001600160a01b03199283161790925560158054928416929091169190911790556040805160208101909152600081526012906200013190826200039e565b506040805160208101909152600081526013906200015090826200039e565b505060007ff3794665d3af9b6fb6f858b70185898134f96768ef31c325d52e04f0ac195a4d8190556611c37937e080007f2bacf7cca723d030d12aee795132f2c5f2d14ad131f16f3f27eeba3e79d18b8c5560037f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf498190557fcaff291fe014adc6b72a172705750b4cabe8f8667664d2924a166caab288564881905560176020527ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f81905560029091527fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca55506200046a9050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620002b357600080fd5b919050565b600080600060608486031215620002ce57600080fd5b83519250620002e0602085016200029b565b9150620002f0604085016200029b565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200032457607f821691505b6020821081036200034557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039957600081815260208120601f850160051c81016020861015620003745750805b601f850160051c820191505b81811015620003955782815560010162000380565b5050505b505050565b81516001600160401b03811115620003ba57620003ba620002f9565b620003d281620003cb84546200030f565b846200034b565b602080601f8311600181146200040a5760008415620003f15750858301515b600019600386901b1c1916600185901b17855562000395565b600085815260208120601f198616915b828110156200043b578886015182559484019460019091019084016200041a565b50858210156200045a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6133fa806200047a6000396000f3fe60806040526004361061026a5760003560e01c806370a0823111610153578063c290d691116100cb578063e58306f91161007f578063e985e9c511610064578063e985e9c514610676578063f2fde38b146106bf578063f6a0a05f146106df57600080fd5b8063e58306f91461063e578063e59673a31461065e57600080fd5b8063c80fb6e7116100b0578063c80fb6e7146105eb578063c87b56dd1461060b578063ce6df2b91461062b57600080fd5b8063c290d691146105b6578063c69143f5146105c957600080fd5b806395d89b4111610122578063a22cb46511610107578063a22cb46514610561578063b4b7754014610581578063b88d4fde1461059657600080fd5b806395d89b41146105375780639df900281461054c57600080fd5b806370a08231146104cc578063715018a6146104ec57806387cac30d146105015780638da5cb5b1461051957600080fd5b8063440bc7f3116101e657806351ea272e116101b55780636352211e1161019a5780636352211e1461046c57806366f70c911461048c5780636f8b44b0146104ac57600080fd5b806351ea272e1461041c578063559e775b1461044c57600080fd5b8063440bc7f3146103b45780634b11faaf146103d45780634c0f38c2146103e75780634f6ccce7146103fc57600080fd5b806318160ddd1161023d5780632c28f579116102225780632c28f5791461035f5780632f745c591461037457806342842e0e1461039457600080fd5b806318160ddd1461032057806323b872dd1461033f57600080fd5b806301ffc9a71461026f57806306fdde03146102a4578063081812fc146102c6578063095ea7b3146102fe575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612c9c565b6106ff565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102b9610710565b60405161029b9190612d09565b3480156102d257600080fd5b506102e66102e1366004612d1c565b6107a2565b6040516001600160a01b03909116815260200161029b565b34801561030a57600080fd5b5061031e610319366004612d51565b61083c565b005b34801561032c57600080fd5b50600a545b60405190815260200161029b565b34801561034b57600080fd5b5061031e61035a366004612d7b565b61096d565b34801561036b57600080fd5b5061031e6109f4565b34801561038057600080fd5b5061033161038f366004612d51565b610a8c565b3480156103a057600080fd5b5061031e6103af366004612d7b565b610b34565b3480156103c057600080fd5b5061031e6103cf366004612d1c565b610b4f565b61031e6103e2366004612dfe565b610bae565b3480156103f357600080fd5b50600f54610331565b34801561040857600080fd5b50610331610417366004612d1c565b610f7a565b34801561042857600080fd5b5061028f610437366004612d1c565b60009081526019602052604090205460ff1690565b34801561045857600080fd5b50610331610467366004612d1c565b61101e565b34801561047857600080fd5b506102e6610487366004612d1c565b611029565b34801561049857600080fd5b5061031e6104a7366004612f18565b6110b4565b3480156104b857600080fd5b5061031e6104c7366004612d1c565b61111e565b3480156104d857600080fd5b506103316104e7366004612f61565b61120e565b3480156104f857600080fd5b5061031e6112a8565b34801561050d57600080fd5b50600e5460ff1661028f565b34801561052557600080fd5b506007546001600160a01b03166102e6565b34801561054357600080fd5b506102b961130e565b34801561055857600080fd5b5061031e61131d565b34801561056d57600080fd5b5061031e61057c366004612f7c565b61138b565b34801561058d57600080fd5b5061031e611396565b3480156105a257600080fd5b5061031e6105b1366004612fb8565b611404565b61031e6105c4366004612d1c565b61148c565b3480156105d557600080fd5b506105de6115e4565b60405161029b9190613034565b3480156105f757600080fd5b5061031e610606366004612d1c565b61163b565b34801561061757600080fd5b506102b9610626366004612d1c565b611771565b61031e610639366004612d51565b61185d565b34801561064a57600080fd5b5061031e610659366004612d51565b611bbb565b34801561066a57600080fd5b5060115460ff1661028f565b34801561068257600080fd5b5061028f610691366004613078565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106cb57600080fd5b5061031e6106da366004612f61565b611c3b565b3480156106eb57600080fd5b5061031e6106fa366004612f18565b611d1d565b600061070a82611d83565b92915050565b60606000805461071f906130ab565b80601f016020809104026020016040519081016040528092919081815260200182805461074b906130ab565b80156107985780601f1061076d57610100808354040283529160200191610798565b820191906000526020600020905b81548152906001019060200180831161077b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084782611029565b9050806001600160a01b0316836001600160a01b0316036108d05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610817565b336001600160a01b03821614806108ec57506108ec8133610691565b61095e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610817565b6109688383611dc1565b505050565b6109773382611e3c565b6109e95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610817565b610968838383611f33565b6007546001600160a01b03163314610a4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b610a5661131d565b604051600181527f45cad92eea8666d2c787783502c1f568a19500513ca605705c486113f70c76b29060200160405180910390a1565b6000610a978361120e565b8210610b0b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610817565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b61096883838360405180602001604052806000815250611404565b6007546001600160a01b03163314610ba95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b600d55565b60115460ff1615610c015760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b336001600160a01b03841614610c595760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206d75737420626520746865206d696e7465722e0000000000006044820152606401610817565b600e5460ff16610cd15760405162461bcd60e51b815260206004820152603960248201527f57686974656c697374206d696e742077696e646f772068617320656e6465642e60448201527f20557365207075626c6963206d696e7420696e73746561642e000000000000006064820152608401610817565b610cda82612118565b341015610d295760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204554482073656e742e0000000000000000000000006044820152606401610817565b816010541015610da15760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e73206c6566742c20706c65617365207260448201527f656475636520796f7572207175616e746974792e0000000000000000000000006064820152608401610817565b610daa82612140565b821115610e1f5760405162461bcd60e51b815260206004820152603d60248201527f44657369726564207175616e74697479206973206f76657220746865206c696d60448201527f6974206f6620746f6b656e7320706572207472616e73616374696f6e2e0000006064820152608401610817565b610e2882612162565b82610e328561120e565b610e3c91906130f5565b1115610eb05760405162461bcd60e51b815260206004820152603460248201527f44657369726564207175616e74697479206973206f766572204d6178204d696e60448201527f7473205065722057616c6c6574206c696d69742e0000000000000000000000006064820152608401610817565b600d546040516bffffffffffffffffffffffff19606086901b166020820152610ef391839160340160405160208183030381529060405280519060200120612184565b610f3f5760405162461bcd60e51b815260206004820152601760248201527f57616c6c6574206e6f742077686974656c69737465642e0000000000000000006044820152606401610817565b3415610f4e57610f4e3461148c565b60005b82811015610f7457610f628461219a565b80610f6c81613108565b915050610f51565b50505050565b6000610f85600a5490565b8210610ff95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610817565b600a828154811061100c5761100c613121565b90600052602060002001549050919050565b600061070a82612118565b6000818152600260205260408120546001600160a01b03168061070a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610817565b6007546001600160a01b0316331461110e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b601261111a8282613185565b5050565b6007546001600160a01b031633146111785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b80611182600c5490565b11156111f65760405162461bcd60e51b815260206004820152603360248201527f43616e206e6f7420736574206d617820737570706c7920746f206c657373207460448201527f68616e2063757272656e7420737570706c792e000000000000000000000000006064820152608401610817565b600f819055600c546112089082613245565b60105550565b60006001600160a01b03821661128c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610817565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146113025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61130c60006122e1565b565b60606001805461071f906130ab565b6007546001600160a01b031633146113775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b6011805460ff19811660ff90911615179055565b61111a338383612340565b6007546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b600e805460ff19811660ff90911615179055565b61140e3383611e3c565b6114805760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610817565b610f748484848461240e565b600061149960028361326e565b6014546040519192506000916001600160a01b039091169083908381818185875af1925050503d80600081146114eb576040519150601f19603f3d011682016040523d82523d6000602084013e6114f0565b606091505b50509050806115415760405162461bcd60e51b815260206004820152601860248201527f4661696c6420746f206d616b652061207061796d656e742e00000000000000006044820152606401610817565b6015546040516000916001600160a01b03169084908381818185875af1925050503d806000811461158e576040519150601f19603f3d011682016040523d82523d6000602084013e611593565b606091505b5050905081610f745760405162461bcd60e51b815260206004820152601860248201527f4661696c6420746f206d616b652061207061796d656e742e00000000000000006044820152606401610817565b6060601a80548060200260200160405190810160405280929190818152602001828054801561079857602002820191906000526020600020905b81548152602001906001019080831161161e575050505050905090565b3361164582611029565b6001600160a01b0316146116c15760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206f6e6c792072656465656d20796f7572206f776e2055676c60448201527f79506f746154726f6c6c7a2e00000000000000000000000000000000000000006064820152608401610817565b60008181526019602052604090205460ff1615156001036117245760405162461bcd60e51b815260206004820181905260248201527f5468697320706f7461746f20697320616c72656164742072656465656d65642e6044820152606401610817565b601a805460018181019092557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01829055600091825260196020526040909120805460ff19169091179055565b6000818152600260205260409020546060906001600160a01b03166117fe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610817565b6000611808612497565b905060008151116118285760405180602001604052806000815250611856565b80611832846124a6565b601360405160200161184693929190613282565b6040516020818303038152906040525b9392505050565b60115460ff16156118b05760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b336001600160a01b038316146119085760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206d75737420626520746865206d696e7465722e0000000000006044820152606401610817565b600e5460ff16156119a75760405162461bcd60e51b815260206004820152604360248201527f57686974656c697374206d696e74206973207374696c6c206f6e676f696e672e60448201527f20506c65617365207761697420666f7220574c206d696e7420746f2066696e6960648201527f73682e0000000000000000000000000000000000000000000000000000000000608482015260a401610817565b6119b081612118565b3410156119ff5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204554482073656e742e0000000000000000000000006044820152606401610817565b806010541015611a775760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e73206c6566742c20706c65617365207260448201527f656475636520796f7572207175616e746974792e0000000000000000000000006064820152608401610817565b611a8081612140565b811115611af55760405162461bcd60e51b815260206004820152603d60248201527f44657369726564207175616e74697479206973206f76657220746865206c696d60448201527f6974206f6620746f6b656e7320706572207472616e73616374696f6e2e0000006064820152608401610817565b611afe81612162565b81611b088461120e565b611b1291906130f5565b1115611b865760405162461bcd60e51b815260206004820152603460248201527f44657369726564207175616e74697479206973206f766572204d6178204d696e60448201527f7473205065722057616c6c6574206c696d69742e0000000000000000000000006064820152608401610817565b3415611b9557611b953461148c565b60005b8181101561096857611ba98361219a565b80611bb381613108565b915050611b98565b6007546001600160a01b03163314611c155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b60005b8181101561096857611c298361219a565b80611c3381613108565b915050611c18565b6007546001600160a01b03163314611c955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b6001600160a01b038116611d115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610817565b611d1a816122e1565b50565b6007546001600160a01b03163314611d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b601361111a8282613185565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061070a575061070a826125db565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611e0382611029565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611eb55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610817565b6000611ec083611029565b9050806001600160a01b0316846001600160a01b03161480611f0757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611f2b5750836001600160a01b0316611f20846107a2565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f4682611029565b6001600160a01b031614611fc25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610817565b6001600160a01b03821661203d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610817565b612048838383612676565b612053600082611dc1565b6001600160a01b038316600090815260036020526040812080546001929061207c908490613245565b90915550506001600160a01b03821660009081526003602052604081208054600192906120aa9084906130f5565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612124836126d4565b600081815260186020526040902054909150611f2b8482613322565b60008061214c836126d4565b6000908152601660205260409020549392505050565b60008061216e836126d4565b6000908152601760205260409020549392505050565b6000826121918584612718565b14949350505050565b60115460ff16156121ed5760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b6000601054116122655760405162461bcd60e51b815260206004820152602360248201527f416c6c20746f6b656e732068617665206265656e206d696e74656420616c726560448201527f61647900000000000000000000000000000000000000000000000000000000006064820152608401610817565b612273600c80546001019055565b600061227e600c5490565b905061228a828261278c565b60016010546122999190613245565b601055604080518281526001600160a01b03841660208201527f291d3f6c3ecab98acd02709c8abf1e57e33ba0c761ff7f68bcbe5af06b346fed910160405180910390a15050565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036123a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610817565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612419848484611f33565b612425848484846128e7565b610f745760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610817565b60606012805461071f906130ab565b6060816000036124e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561251357806124fd81613108565b915061250c9050600a8361326e565b91506124ed565b60008167ffffffffffffffff81111561252e5761252e612db7565b6040519080825280601f01601f191660200182016040528015612558576020820181803683370190505b5090505b8415611f2b5761256d600183613245565b915061257a600a86613341565b6125859060306130f5565b60f81b81838151811061259a5761259a613121565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125d4600a8661326e565b945061255c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061263e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461070a565b60115460ff16156126c95760405162461bcd60e51b815260206004820152601360248201527f436f6e7472616374206973207061757365642e000000000000000000000000006044820152606401610817565b610968838383612a3e565b600080826126e1600c5490565b6126eb91906130f5565b90506103e881116126ff5750600192915050565b6103e88111156127125750600292915050565b50919050565b600081815b845181101561278457600085828151811061273a5761273a613121565b602002602001015190508083116127605760008381526020829052604090209250612771565b600081815260208490526040902092505b508061277c81613108565b91505061271d565b509392505050565b6001600160a01b0382166127e25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610817565b6000818152600260205260409020546001600160a01b0316156128475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610817565b61285360008383612676565b6001600160a01b038216600090815260036020526040812080546001929061287c9084906130f5565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612a3357604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061292b903390899088908890600401613355565b6020604051808303816000875af1925050508015612966575060408051601f3d908101601f1916820190925261296391810190613391565b60015b612a19573d808015612994576040519150601f19603f3d011682016040523d82523d6000602084013e612999565b606091505b508051600003612a115760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610817565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f2b565b506001949350505050565b6001600160a01b038316612a9957612a9481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b612abc565b816001600160a01b0316836001600160a01b031614612abc57612abc8382612af6565b6001600160a01b038216612ad35761096881612b93565b826001600160a01b0316826001600160a01b031614610968576109688282612c42565b60006001612b038461120e565b612b0d9190613245565b600083815260096020526040902054909150808214612b60576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612ba590600190613245565b6000838152600b6020526040812054600a8054939450909284908110612bcd57612bcd613121565b9060005260206000200154905080600a8381548110612bee57612bee613121565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612c2657612c266133ae565b6001900381819060005260206000200160009055905550505050565b6000612c4d8361120e565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160e01b031981168114611d1a57600080fd5b600060208284031215612cae57600080fd5b813561185681612c86565b60005b83811015612cd4578181015183820152602001612cbc565b50506000910152565b60008151808452612cf5816020860160208601612cb9565b601f01601f19169290920160200192915050565b6020815260006118566020830184612cdd565b600060208284031215612d2e57600080fd5b5035919050565b80356001600160a01b0381168114612d4c57600080fd5b919050565b60008060408385031215612d6457600080fd5b612d6d83612d35565b946020939093013593505050565b600080600060608486031215612d9057600080fd5b612d9984612d35565b9250612da760208501612d35565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612df657612df6612db7565b604052919050565b600080600060608486031215612e1357600080fd5b612e1c84612d35565b92506020808501359250604085013567ffffffffffffffff80821115612e4157600080fd5b818701915087601f830112612e5557600080fd5b813581811115612e6757612e67612db7565b8060051b9150612e78848301612dcd565b818152918301840191848101908a841115612e9257600080fd5b938501935b83851015612eb057843582529385019390850190612e97565b8096505050505050509250925092565b600067ffffffffffffffff831115612eda57612eda612db7565b612eed601f8401601f1916602001612dcd565b9050828152838383011115612f0157600080fd5b828260208301376000602084830101529392505050565b600060208284031215612f2a57600080fd5b813567ffffffffffffffff811115612f4157600080fd5b8201601f81018413612f5257600080fd5b611f2b84823560208401612ec0565b600060208284031215612f7357600080fd5b61185682612d35565b60008060408385031215612f8f57600080fd5b612f9883612d35565b915060208301358015158114612fad57600080fd5b809150509250929050565b60008060008060808587031215612fce57600080fd5b612fd785612d35565b9350612fe560208601612d35565b925060408501359150606085013567ffffffffffffffff81111561300857600080fd5b8501601f8101871361301957600080fd5b61302887823560208401612ec0565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561306c57835183529284019291840191600101613050565b50909695505050505050565b6000806040838503121561308b57600080fd5b61309483612d35565b91506130a260208401612d35565b90509250929050565b600181811c908216806130bf57607f821691505b60208210810361271257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561070a5761070a6130df565b60006001820161311a5761311a6130df565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561096857600081815260208120601f850160051c8101602086101561315e5750805b601f850160051c820191505b8181101561317d5782815560010161316a565b505050505050565b815167ffffffffffffffff81111561319f5761319f612db7565b6131b3816131ad84546130ab565b84613137565b602080601f8311600181146131e857600084156131d05750858301515b600019600386901b1c1916600185901b17855561317d565b600085815260208120601f198616915b82811015613217578886015182559484019460019091019084016131f8565b50858210156132355787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561070a5761070a6130df565b634e487b7160e01b600052601260045260246000fd5b60008261327d5761327d613258565b500490565b6000845160206132958285838a01612cb9565b8551918401916132a88184848a01612cb9565b85549201916000906132b9816130ab565b600182811680156132d157600181146132e657613312565b60ff1984168752821515830287019450613312565b896000528560002060005b8481101561330a578154898201529083019087016132f1565b505082870194505b50929a9950505050505050505050565b600081600019048311821515161561333c5761333c6130df565b500290565b60008261335057613350613258565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133876080830184612cdd565b9695505050505050565b6000602082840312156133a357600080fd5b815161185681612c86565b634e487b7160e01b600052603160045260246000fdfea26469706673582212204bb1b0e4fd8f42660fc44a723b52facb567d6bba874bb02f93a31d8650cdea6664736f6c634300081000330000000000000000000000000000000000000000000000000000000000000d0500000000000000000000000023212c5913aa746cc716424e257859796e7f97b6000000000000000000000000e7554218a9c1636ce03ae0970615c4d6c7ac5c2e

Deployed Bytecode

0x60806040526004361061026a5760003560e01c806370a0823111610153578063c290d691116100cb578063e58306f91161007f578063e985e9c511610064578063e985e9c514610676578063f2fde38b146106bf578063f6a0a05f146106df57600080fd5b8063e58306f91461063e578063e59673a31461065e57600080fd5b8063c80fb6e7116100b0578063c80fb6e7146105eb578063c87b56dd1461060b578063ce6df2b91461062b57600080fd5b8063c290d691146105b6578063c69143f5146105c957600080fd5b806395d89b4111610122578063a22cb46511610107578063a22cb46514610561578063b4b7754014610581578063b88d4fde1461059657600080fd5b806395d89b41146105375780639df900281461054c57600080fd5b806370a08231146104cc578063715018a6146104ec57806387cac30d146105015780638da5cb5b1461051957600080fd5b8063440bc7f3116101e657806351ea272e116101b55780636352211e1161019a5780636352211e1461046c57806366f70c911461048c5780636f8b44b0146104ac57600080fd5b806351ea272e1461041c578063559e775b1461044c57600080fd5b8063440bc7f3146103b45780634b11faaf146103d45780634c0f38c2146103e75780634f6ccce7146103fc57600080fd5b806318160ddd1161023d5780632c28f579116102225780632c28f5791461035f5780632f745c591461037457806342842e0e1461039457600080fd5b806318160ddd1461032057806323b872dd1461033f57600080fd5b806301ffc9a71461026f57806306fdde03146102a4578063081812fc146102c6578063095ea7b3146102fe575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612c9c565b6106ff565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102b9610710565b60405161029b9190612d09565b3480156102d257600080fd5b506102e66102e1366004612d1c565b6107a2565b6040516001600160a01b03909116815260200161029b565b34801561030a57600080fd5b5061031e610319366004612d51565b61083c565b005b34801561032c57600080fd5b50600a545b60405190815260200161029b565b34801561034b57600080fd5b5061031e61035a366004612d7b565b61096d565b34801561036b57600080fd5b5061031e6109f4565b34801561038057600080fd5b5061033161038f366004612d51565b610a8c565b3480156103a057600080fd5b5061031e6103af366004612d7b565b610b34565b3480156103c057600080fd5b5061031e6103cf366004612d1c565b610b4f565b61031e6103e2366004612dfe565b610bae565b3480156103f357600080fd5b50600f54610331565b34801561040857600080fd5b50610331610417366004612d1c565b610f7a565b34801561042857600080fd5b5061028f610437366004612d1c565b60009081526019602052604090205460ff1690565b34801561045857600080fd5b50610331610467366004612d1c565b61101e565b34801561047857600080fd5b506102e6610487366004612d1c565b611029565b34801561049857600080fd5b5061031e6104a7366004612f18565b6110b4565b3480156104b857600080fd5b5061031e6104c7366004612d1c565b61111e565b3480156104d857600080fd5b506103316104e7366004612f61565b61120e565b3480156104f857600080fd5b5061031e6112a8565b34801561050d57600080fd5b50600e5460ff1661028f565b34801561052557600080fd5b506007546001600160a01b03166102e6565b34801561054357600080fd5b506102b961130e565b34801561055857600080fd5b5061031e61131d565b34801561056d57600080fd5b5061031e61057c366004612f7c565b61138b565b34801561058d57600080fd5b5061031e611396565b3480156105a257600080fd5b5061031e6105b1366004612fb8565b611404565b61031e6105c4366004612d1c565b61148c565b3480156105d557600080fd5b506105de6115e4565b60405161029b9190613034565b3480156105f757600080fd5b5061031e610606366004612d1c565b61163b565b34801561061757600080fd5b506102b9610626366004612d1c565b611771565b61031e610639366004612d51565b61185d565b34801561064a57600080fd5b5061031e610659366004612d51565b611bbb565b34801561066a57600080fd5b5060115460ff1661028f565b34801561068257600080fd5b5061028f610691366004613078565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106cb57600080fd5b5061031e6106da366004612f61565b611c3b565b3480156106eb57600080fd5b5061031e6106fa366004612f18565b611d1d565b600061070a82611d83565b92915050565b60606000805461071f906130ab565b80601f016020809104026020016040519081016040528092919081815260200182805461074b906130ab565b80156107985780601f1061076d57610100808354040283529160200191610798565b820191906000526020600020905b81548152906001019060200180831161077b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084782611029565b9050806001600160a01b0316836001600160a01b0316036108d05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610817565b336001600160a01b03821614806108ec57506108ec8133610691565b61095e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610817565b6109688383611dc1565b505050565b6109773382611e3c565b6109e95760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610817565b610968838383611f33565b6007546001600160a01b03163314610a4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b610a5661131d565b604051600181527f45cad92eea8666d2c787783502c1f568a19500513ca605705c486113f70c76b29060200160405180910390a1565b6000610a978361120e565b8210610b0b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610817565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b61096883838360405180602001604052806000815250611404565b6007546001600160a01b03163314610ba95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b600d55565b60115460ff1615610c015760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b336001600160a01b03841614610c595760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206d75737420626520746865206d696e7465722e0000000000006044820152606401610817565b600e5460ff16610cd15760405162461bcd60e51b815260206004820152603960248201527f57686974656c697374206d696e742077696e646f772068617320656e6465642e60448201527f20557365207075626c6963206d696e7420696e73746561642e000000000000006064820152608401610817565b610cda82612118565b341015610d295760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204554482073656e742e0000000000000000000000006044820152606401610817565b816010541015610da15760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e73206c6566742c20706c65617365207260448201527f656475636520796f7572207175616e746974792e0000000000000000000000006064820152608401610817565b610daa82612140565b821115610e1f5760405162461bcd60e51b815260206004820152603d60248201527f44657369726564207175616e74697479206973206f76657220746865206c696d60448201527f6974206f6620746f6b656e7320706572207472616e73616374696f6e2e0000006064820152608401610817565b610e2882612162565b82610e328561120e565b610e3c91906130f5565b1115610eb05760405162461bcd60e51b815260206004820152603460248201527f44657369726564207175616e74697479206973206f766572204d6178204d696e60448201527f7473205065722057616c6c6574206c696d69742e0000000000000000000000006064820152608401610817565b600d546040516bffffffffffffffffffffffff19606086901b166020820152610ef391839160340160405160208183030381529060405280519060200120612184565b610f3f5760405162461bcd60e51b815260206004820152601760248201527f57616c6c6574206e6f742077686974656c69737465642e0000000000000000006044820152606401610817565b3415610f4e57610f4e3461148c565b60005b82811015610f7457610f628461219a565b80610f6c81613108565b915050610f51565b50505050565b6000610f85600a5490565b8210610ff95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610817565b600a828154811061100c5761100c613121565b90600052602060002001549050919050565b600061070a82612118565b6000818152600260205260408120546001600160a01b03168061070a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610817565b6007546001600160a01b0316331461110e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b601261111a8282613185565b5050565b6007546001600160a01b031633146111785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b80611182600c5490565b11156111f65760405162461bcd60e51b815260206004820152603360248201527f43616e206e6f7420736574206d617820737570706c7920746f206c657373207460448201527f68616e2063757272656e7420737570706c792e000000000000000000000000006064820152608401610817565b600f819055600c546112089082613245565b60105550565b60006001600160a01b03821661128c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610817565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146113025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61130c60006122e1565b565b60606001805461071f906130ab565b6007546001600160a01b031633146113775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b6011805460ff19811660ff90911615179055565b61111a338383612340565b6007546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b600e805460ff19811660ff90911615179055565b61140e3383611e3c565b6114805760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610817565b610f748484848461240e565b600061149960028361326e565b6014546040519192506000916001600160a01b039091169083908381818185875af1925050503d80600081146114eb576040519150601f19603f3d011682016040523d82523d6000602084013e6114f0565b606091505b50509050806115415760405162461bcd60e51b815260206004820152601860248201527f4661696c6420746f206d616b652061207061796d656e742e00000000000000006044820152606401610817565b6015546040516000916001600160a01b03169084908381818185875af1925050503d806000811461158e576040519150601f19603f3d011682016040523d82523d6000602084013e611593565b606091505b5050905081610f745760405162461bcd60e51b815260206004820152601860248201527f4661696c6420746f206d616b652061207061796d656e742e00000000000000006044820152606401610817565b6060601a80548060200260200160405190810160405280929190818152602001828054801561079857602002820191906000526020600020905b81548152602001906001019080831161161e575050505050905090565b3361164582611029565b6001600160a01b0316146116c15760405162461bcd60e51b815260206004820152602c60248201527f596f752063616e206f6e6c792072656465656d20796f7572206f776e2055676c60448201527f79506f746154726f6c6c7a2e00000000000000000000000000000000000000006064820152608401610817565b60008181526019602052604090205460ff1615156001036117245760405162461bcd60e51b815260206004820181905260248201527f5468697320706f7461746f20697320616c72656164742072656465656d65642e6044820152606401610817565b601a805460018181019092557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01829055600091825260196020526040909120805460ff19169091179055565b6000818152600260205260409020546060906001600160a01b03166117fe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610817565b6000611808612497565b905060008151116118285760405180602001604052806000815250611856565b80611832846124a6565b601360405160200161184693929190613282565b6040516020818303038152906040525b9392505050565b60115460ff16156118b05760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b336001600160a01b038316146119085760405162461bcd60e51b815260206004820152601a60248201527f53656e646572206d75737420626520746865206d696e7465722e0000000000006044820152606401610817565b600e5460ff16156119a75760405162461bcd60e51b815260206004820152604360248201527f57686974656c697374206d696e74206973207374696c6c206f6e676f696e672e60448201527f20506c65617365207761697420666f7220574c206d696e7420746f2066696e6960648201527f73682e0000000000000000000000000000000000000000000000000000000000608482015260a401610817565b6119b081612118565b3410156119ff5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768204554482073656e742e0000000000000000000000006044820152606401610817565b806010541015611a775760405162461bcd60e51b815260206004820152603460248201527f4e6f7420656e6f75676820746f6b656e73206c6566742c20706c65617365207260448201527f656475636520796f7572207175616e746974792e0000000000000000000000006064820152608401610817565b611a8081612140565b811115611af55760405162461bcd60e51b815260206004820152603d60248201527f44657369726564207175616e74697479206973206f76657220746865206c696d60448201527f6974206f6620746f6b656e7320706572207472616e73616374696f6e2e0000006064820152608401610817565b611afe81612162565b81611b088461120e565b611b1291906130f5565b1115611b865760405162461bcd60e51b815260206004820152603460248201527f44657369726564207175616e74697479206973206f766572204d6178204d696e60448201527f7473205065722057616c6c6574206c696d69742e0000000000000000000000006064820152608401610817565b3415611b9557611b953461148c565b60005b8181101561096857611ba98361219a565b80611bb381613108565b915050611b98565b6007546001600160a01b03163314611c155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b60005b8181101561096857611c298361219a565b80611c3381613108565b915050611c18565b6007546001600160a01b03163314611c955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b6001600160a01b038116611d115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610817565b611d1a816122e1565b50565b6007546001600160a01b03163314611d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b601361111a8282613185565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061070a575061070a826125db565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611e0382611029565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611eb55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610817565b6000611ec083611029565b9050806001600160a01b0316846001600160a01b03161480611f0757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611f2b5750836001600160a01b0316611f20846107a2565b6001600160a01b0316145b949350505050565b826001600160a01b0316611f4682611029565b6001600160a01b031614611fc25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610817565b6001600160a01b03821661203d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610817565b612048838383612676565b612053600082611dc1565b6001600160a01b038316600090815260036020526040812080546001929061207c908490613245565b90915550506001600160a01b03821660009081526003602052604081208054600192906120aa9084906130f5565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612124836126d4565b600081815260186020526040902054909150611f2b8482613322565b60008061214c836126d4565b6000908152601660205260409020549392505050565b60008061216e836126d4565b6000908152601760205260409020549392505050565b6000826121918584612718565b14949350505050565b60115460ff16156121ed5760405162461bcd60e51b815260206004820152601960248201527f4d696e742069732063757272656e746c79207061757365642e000000000000006044820152606401610817565b6000601054116122655760405162461bcd60e51b815260206004820152602360248201527f416c6c20746f6b656e732068617665206265656e206d696e74656420616c726560448201527f61647900000000000000000000000000000000000000000000000000000000006064820152608401610817565b612273600c80546001019055565b600061227e600c5490565b905061228a828261278c565b60016010546122999190613245565b601055604080518281526001600160a01b03841660208201527f291d3f6c3ecab98acd02709c8abf1e57e33ba0c761ff7f68bcbe5af06b346fed910160405180910390a15050565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036123a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610817565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612419848484611f33565b612425848484846128e7565b610f745760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610817565b60606012805461071f906130ab565b6060816000036124e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561251357806124fd81613108565b915061250c9050600a8361326e565b91506124ed565b60008167ffffffffffffffff81111561252e5761252e612db7565b6040519080825280601f01601f191660200182016040528015612558576020820181803683370190505b5090505b8415611f2b5761256d600183613245565b915061257a600a86613341565b6125859060306130f5565b60f81b81838151811061259a5761259a613121565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125d4600a8661326e565b945061255c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061263e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461070a565b60115460ff16156126c95760405162461bcd60e51b815260206004820152601360248201527f436f6e7472616374206973207061757365642e000000000000000000000000006044820152606401610817565b610968838383612a3e565b600080826126e1600c5490565b6126eb91906130f5565b90506103e881116126ff5750600192915050565b6103e88111156127125750600292915050565b50919050565b600081815b845181101561278457600085828151811061273a5761273a613121565b602002602001015190508083116127605760008381526020829052604090209250612771565b600081815260208490526040902092505b508061277c81613108565b91505061271d565b509392505050565b6001600160a01b0382166127e25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610817565b6000818152600260205260409020546001600160a01b0316156128475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610817565b61285360008383612676565b6001600160a01b038216600090815260036020526040812080546001929061287c9084906130f5565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15612a3357604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061292b903390899088908890600401613355565b6020604051808303816000875af1925050508015612966575060408051601f3d908101601f1916820190925261296391810190613391565b60015b612a19573d808015612994576040519150601f19603f3d011682016040523d82523d6000602084013e612999565b606091505b508051600003612a115760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610817565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f2b565b506001949350505050565b6001600160a01b038316612a9957612a9481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b612abc565b816001600160a01b0316836001600160a01b031614612abc57612abc8382612af6565b6001600160a01b038216612ad35761096881612b93565b826001600160a01b0316826001600160a01b031614610968576109688282612c42565b60006001612b038461120e565b612b0d9190613245565b600083815260096020526040902054909150808214612b60576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612ba590600190613245565b6000838152600b6020526040812054600a8054939450909284908110612bcd57612bcd613121565b9060005260206000200154905080600a8381548110612bee57612bee613121565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612c2657612c266133ae565b6001900381819060005260206000200160009055905550505050565b6000612c4d8361120e565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160e01b031981168114611d1a57600080fd5b600060208284031215612cae57600080fd5b813561185681612c86565b60005b83811015612cd4578181015183820152602001612cbc565b50506000910152565b60008151808452612cf5816020860160208601612cb9565b601f01601f19169290920160200192915050565b6020815260006118566020830184612cdd565b600060208284031215612d2e57600080fd5b5035919050565b80356001600160a01b0381168114612d4c57600080fd5b919050565b60008060408385031215612d6457600080fd5b612d6d83612d35565b946020939093013593505050565b600080600060608486031215612d9057600080fd5b612d9984612d35565b9250612da760208501612d35565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612df657612df6612db7565b604052919050565b600080600060608486031215612e1357600080fd5b612e1c84612d35565b92506020808501359250604085013567ffffffffffffffff80821115612e4157600080fd5b818701915087601f830112612e5557600080fd5b813581811115612e6757612e67612db7565b8060051b9150612e78848301612dcd565b818152918301840191848101908a841115612e9257600080fd5b938501935b83851015612eb057843582529385019390850190612e97565b8096505050505050509250925092565b600067ffffffffffffffff831115612eda57612eda612db7565b612eed601f8401601f1916602001612dcd565b9050828152838383011115612f0157600080fd5b828260208301376000602084830101529392505050565b600060208284031215612f2a57600080fd5b813567ffffffffffffffff811115612f4157600080fd5b8201601f81018413612f5257600080fd5b611f2b84823560208401612ec0565b600060208284031215612f7357600080fd5b61185682612d35565b60008060408385031215612f8f57600080fd5b612f9883612d35565b915060208301358015158114612fad57600080fd5b809150509250929050565b60008060008060808587031215612fce57600080fd5b612fd785612d35565b9350612fe560208601612d35565b925060408501359150606085013567ffffffffffffffff81111561300857600080fd5b8501601f8101871361301957600080fd5b61302887823560208401612ec0565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b8181101561306c57835183529284019291840191600101613050565b50909695505050505050565b6000806040838503121561308b57600080fd5b61309483612d35565b91506130a260208401612d35565b90509250929050565b600181811c908216806130bf57607f821691505b60208210810361271257634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561070a5761070a6130df565b60006001820161311a5761311a6130df565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561096857600081815260208120601f850160051c8101602086101561315e5750805b601f850160051c820191505b8181101561317d5782815560010161316a565b505050505050565b815167ffffffffffffffff81111561319f5761319f612db7565b6131b3816131ad84546130ab565b84613137565b602080601f8311600181146131e857600084156131d05750858301515b600019600386901b1c1916600185901b17855561317d565b600085815260208120601f198616915b82811015613217578886015182559484019460019091019084016131f8565b50858210156132355787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561070a5761070a6130df565b634e487b7160e01b600052601260045260246000fd5b60008261327d5761327d613258565b500490565b6000845160206132958285838a01612cb9565b8551918401916132a88184848a01612cb9565b85549201916000906132b9816130ab565b600182811680156132d157600181146132e657613312565b60ff1984168752821515830287019450613312565b896000528560002060005b8481101561330a578154898201529083019087016132f1565b505082870194505b50929a9950505050505050505050565b600081600019048311821515161561333c5761333c6130df565b500290565b60008261335057613350613258565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133876080830184612cdd565b9695505050505050565b6000602082840312156133a357600080fd5b815161185681612c86565b634e487b7160e01b600052603160045260246000fdfea26469706673582212204bb1b0e4fd8f42660fc44a723b52facb567d6bba874bb02f93a31d8650cdea6664736f6c63430008100033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000d0500000000000000000000000023212c5913aa746cc716424e257859796e7f97b6000000000000000000000000e7554218a9c1636ce03ae0970615c4d6c7ac5c2e

-----Decoded View---------------
Arg [0] : initSupply (uint256): 3333
Arg [1] : ownerWallet (address): 0x23212c5913AA746Cc716424e257859796e7F97b6
Arg [2] : ownerWallet2 (address): 0xE7554218A9c1636Ce03ae0970615c4d6c7ac5C2E

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [1] : 00000000000000000000000023212c5913aa746cc716424e257859796e7f97b6
Arg [2] : 000000000000000000000000e7554218a9c1636ce03ae0970615c4d6c7ac5c2e


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.