ETH Price: $3,565.77 (+6.88%)

Contract

0xce735F825732f23ce52674e3C5cC048D461637D2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...212234112024-11-19 17:55:597 days ago1732038959IN
Latino Society: LATINO Token
0 ETH0.0009848721.32967971
Set Approval For...198639212024-05-13 21:56:35197 days ago1715637395IN
Latino Society: LATINO Token
0 ETH0.000218074.72290565
Set Approval For...190612342024-01-22 8:57:47310 days ago1705913867IN
Latino Society: LATINO Token
0 ETH0.0009281720.10163964
Set Approval For...179704872023-08-22 13:15:23463 days ago1692710123IN
Latino Society: LATINO Token
0 ETH0.0019566642.29899802
Safe Transfer Fr...175642262023-06-26 14:35:11520 days ago1687790111IN
Latino Society: LATINO Token
0 ETH0.0026151321.96210424
Safe Transfer Fr...174623242023-06-12 6:53:11534 days ago1686552791IN
Latino Society: LATINO Token
0 ETH0.0029884715.5112461
Set Approval For...174147122023-06-05 13:48:35541 days ago1685972915IN
Latino Society: LATINO Token
0 ETH0.0021808647.20698967
Set Approval For...169138102023-03-26 19:55:23611 days ago1679860523IN
Latino Society: LATINO Token
0 ETH0.0011735425.41578907
Safe Transfer Fr...167734042023-03-07 2:16:59631 days ago1678155419IN
Latino Society: LATINO Token
0 ETH0.0017562927.05231758
Set Approval For...167545322023-03-04 10:37:47634 days ago1677926267IN
Latino Society: LATINO Token
0 ETH0.0004450118.34190037
Safe Transfer Fr...166819502023-02-22 5:36:11644 days ago1677044171IN
Latino Society: LATINO Token
0 ETH0.0025577522.85917814
Safe Transfer Fr...166819502023-02-22 5:36:11644 days ago1677044171IN
Latino Society: LATINO Token
0 ETH0.0020034922.25217859
Safe Transfer Fr...166816712023-02-22 4:39:35644 days ago1677040775IN
Latino Society: LATINO Token
0 ETH0.0018617226.70211276
Safe Transfer Fr...166805502023-02-22 0:51:35644 days ago1677027095IN
Latino Society: LATINO Token
0 ETH0.0027387223
Set Approval For...166009442023-02-10 21:08:11655 days ago1676063291IN
Latino Society: LATINO Token
0 ETH0.0013031428.22245597
Set Approval For...165225862023-01-30 22:20:23666 days ago1675117223IN
Latino Society: LATINO Token
0 ETH0.0011511724.9313341
Set Approval For...164968312023-01-27 8:02:59670 days ago1674806579IN
Latino Society: LATINO Token
0 ETH0.0007428216.08745431
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
Set Approval For...164933442023-01-26 20:21:23670 days ago1674764483IN
Latino Society: LATINO Token
0 ETH0.001240826.87242816
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
151948342022-07-22 21:16:07858 days ago1658524567
Latino Society: LATINO Token
1.35 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LatinoSociety

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : LatinoSociety.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9 <0.9.0;

// --------------------------------------------------------------------------
// Bilbioteca de módulos verificados existentes
// --------------------------------------------------------------------------

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";


/**---------------------------------------------------------------------------
 * @title Latino Society Contract
 * @author Danny Sanchez 
 *         https://twitter.com/latino_society
 * @notice Main contract - Contrato principal 
 * Con la gran ayuda del equipo de Neftify en Puerto Rico 
 * Twitter --> https://twitter.com.neftify 
 ----------------------------------------------------------------------------*/

contract LatinoSociety is ERC721A, Ownable, ReentrancyGuard {

  using Strings for uint256;

// --------------------------------------------------------------------------
// Variables y declaraciones 
// - La idea es reutilizar el proceso merkleRoot con las 2 primeras fases 
// - El Image Hash de cada imagen determinará el hash del Provenance, 
//   garantizando que no se movieron/re-generaron
// - El equipo se reservará 300 tokens (ver Roadmap) - con un contador
//   público que será transparente.
// --------------------------------------------------------------------------

  bytes32 public merkleRoot;
  mapping(address => bool) public whitelistClaimed;
  mapping(address => bool) public presaleClaimed;

  string public uriPrefix = '';
  string public uriSuffix = '.json';
  string public hiddenMetadataUri;
  string public baseTokenURI;

  uint256 public cost;
  uint256 public immutable maxSupply = 10000;            // No hay más 
  uint256 public TempSupply;                             // Para ir implementando las fases
  uint256 public maxMintAmountPerTx;      
  
  bool public paused = true;  
  bool public whitelistMintEnabled = false;
  bool public revealed = false;

  uint256 public presaleBeginDate;                        // Unix Time 
  uint256 public presaleEndDate;                          // Unix Time 
  uint256 public startingIndex;
  uint256 public reservedMinted = 0;   
  uint256 public constant LS_MAX_RESERVED_COUNT = 300; 
  string public PROVENANCE;

  address public vault = msg.sender;
  address payable public royaltyAddress;
  uint256 public royaltyBps;

  constructor(
    string memory _tokenName,
    string memory _tokenSymbol,
    uint256 _cost,
    uint256 _TempSupply,                             
    uint256 _maxMintAmountPerTx,
    string memory _hiddenMetadataUri
  ) ERC721A(_tokenName, _tokenSymbol) {
    setCost(_cost);
    TempSupply = _TempSupply;                      
    setMaxMintAmountPerTx(_maxMintAmountPerTx);
    setHiddenMetadataUri(_hiddenMetadataUri);
  }

  modifier mintCompliance(uint256 _mintAmount) {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!");
    require(totalSupply() + _mintAmount <= TempSupply, "Lo sentimos - Temp/Max supply exceeded!");
    require(totalSupply() + _mintAmount <= maxSupply, "Lo sentimos - Max Supply Exceeded");
    _;
  }

  modifier mintPriceCompliance(uint256 _mintAmount) {
    uint256 supply = totalSupply();
    require(msg.value >= cost * _mintAmount, "We are sorry, Not enough ETH | Lo sentimos, no tienes suficiente ETH.");
    _;
    } 


// --------------------------------------------------------------------------
// WhiteListMint - err.... Allowlist/Pre-Sale Pass Mint 
// - Casi las mismas funciones de chequeo que el mint 
// - Verifica que no haya minteado el wallet. Una transaccion por wallet 
// - El MerkleProof se hace antes de cada fase.  
// - Se verifica que cada fase se efectúe entre la fecha/hora definida 
// --------------------------------------------------------------------------

  function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) {
    // Verify PreSale requirements
    require(whitelistMintEnabled, "Lo sentimos - The Pre-Sale is not enabled | La PreVenta no esta Activa");
           address minter = _msgSender();
    require(tx.origin == minter, "Nice try - Contracts are not allowed to mint");

    if (cost == 0) 
    {
       require(!whitelistClaimed[_msgSender()], "Lo sentimos - Address already claimed! | Esta direccion ya ha sido usada!");
       bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
       require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Lo sentimos - Invalid proof! | Firma equivocada");
       require(presaleBeginDate <= block.timestamp &&
               presaleEndDate >= block.timestamp, "Lo sentimos, Phase I Not Active"); 

       whitelistClaimed[_msgSender()] = true;
       _safeMint(_msgSender(), _mintAmount);

    } else if (cost > 0)                             // PreSale Phase Below  
    {
       require(!presaleClaimed[_msgSender()], "Lo sentimos - Address already claimed! | Esta direccion ya ha sido usada!");
       bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
       require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Lo sentimos - Invalid proof! | Firma equivocada");
       require(presaleBeginDate <= block.timestamp &&
               presaleEndDate >= block.timestamp, "Lo sentimos, Phase II Not Active"); 

       presaleClaimed[_msgSender()] = true;
       _safeMint(_msgSender(), _mintAmount);
    }

  }


  function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) {
    address minter = _msgSender();
    require(!paused, "The contract is Paused | El Contrato esta en Pausa");
    require(tx.origin == minter, "Contracts are not allowed to mint");
    _safeMint(_msgSender(), _mintAmount);
  }
  

 // --------------------------------------------------------------------------
 // Funciones administrativas
 // --------------------------------------------------------------------------

  function walletOfOwner(address _owner) public view returns (uint256[] memory) {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = _startTokenId();
    uint256 ownedTokenIndex = 0;
    address latestOwnerAddress;

    while (ownedTokenIndex < ownerTokenCount && currentTokenId < _currentIndex) {
      TokenOwnership memory ownership = _ownerships[currentTokenId];

      if (!ownership.burned) {
        if (ownership.addr != address(0)) {
          latestOwnerAddress = ownership.addr;
        }

        if (latestOwnerAddress == _owner) {
          ownedTokenIds[ownedTokenIndex] = currentTokenId;

          ownedTokenIndex++;
        }
      }
      currentTokenId++;
    }

    return ownedTokenIds;
  }

  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }

  function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    merkleRoot = _merkleRoot;
  }

  function setCost(uint256 _cost) public onlyOwner {
    cost = _cost;
  }

  function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
    maxMintAmountPerTx = _maxMintAmountPerTx;
  }

 // --------------------------------------------------------------------------
 // El Provenance Hash garantiza que las imágenes no se hayan alterado desde
 // un principio. Cada imagen tiene un hash a la hora de generarla, 
 // y el Provenance Hash es el hash del hash de TODAS las imágenes.
 // --------------------------------------------------------------------------

 function setProvenance(string memory _provenance) public onlyOwner {
    PROVENANCE = _provenance;
  }

  function setPaused(bool _state) public onlyOwner {
    paused = _state;
  }

  function setWhitelistMintEnabled(bool _state) public onlyOwner {
    whitelistMintEnabled = _state;
  }

  function setPreSaleTimes(uint256 _PreSaleBeginDt, uint256 _PreSaleEndDt) public onlyOwner {
    presaleBeginDate = _PreSaleBeginDt;
    presaleEndDate = _PreSaleEndDt;
  }

   /*
     * Royalty setup - in BPS                      
     * En adelanto de lo que hagan los marketplaces - Por ahora lo hacemos
     * aqui publico en espera que se adopte el estándar. 
     * Este codigo sigue el ejemplo de VeeFriendsv2 de cierta forma. 
     *-----------------------------------------------------------------------*/
    function setDropRoyalties(
        address payable newRoyaltyAddress,
        uint256 newRoyaltyBps
    ) public onlyOwner {
        royaltyAddress = newRoyaltyAddress;
        royaltyBps = newRoyaltyBps;
        vault = newRoyaltyAddress;
    }

    function getFeeRecipients(uint256)
        public
        view
        returns (address payable[] memory)
    {
        address payable[] memory result = new address payable[](1);
        result[0] = royaltyAddress;
        return result;
    }

    function getFeeBps(uint256) public view returns (uint256[] memory) {
        uint256[] memory result = new uint256[](1);
        result[0] = royaltyBps;
        return result;
    }

    /*
     *  Set Base URI - Para el Reveal, 
     *  y tambien HiddenMD como salvaguarda.  
     *----------------------------------------------------------*/

  function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner {
    hiddenMetadataUri = _hiddenMetadataUri;
  }

  function setBaseTokenURI(string calldata _newBaseURI) external onlyOwner {
        baseTokenURI = _newBaseURI;
  }

  function setRevealed(bool _state) public onlyOwner {
    revealed = _state;
  }


  function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
  }


  function setUriPrefix(string memory _baseTokenURI) public onlyOwner {
    uriPrefix = _baseTokenURI;
  }

  function setUriSuffix(string memory _uriSuffix) public onlyOwner {
    uriSuffix = _uriSuffix;
  }

  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
    require(_exists(_tokenId), 'URI query for nonexistent token');

    if (revealed == false) {
      return hiddenMetadataUri;
    }

    string memory currentBaseURI = _baseURI();
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(_baseURI(), _tokenId.toString(), uriSuffix))
        : '';
  }


    /*
     *  Reservando tokens para el equipo         
     *  Esperamos que nos dejen... ;o)             *
     *---------------------------------------------*/

    function reserve(uint numberOfTokens) public onlyOwner {
      uint256 ts = totalSupply();

      require(ts + numberOfTokens <= TempSupply, "Aguas - Reserve amount would exceed max tokens for Phase!");
      require(ts + numberOfTokens <= maxSupply, "Aguas - Reserve amount would exceed max supply");
      require(numberOfTokens + reservedMinted <= LS_MAX_RESERVED_COUNT, "Sorry! Ya te pasaste con los tokens del equipo");

          _safeMint(msg.sender, numberOfTokens);
          reservedMinted = reservedMinted + numberOfTokens;
 
    }

    /*
     *  Gift - Allows us to regalar tokens a gente que nos apoya
     *  Y en efecto, cualquier regalo cuenta contra los reservados.        *
     *---------------------------------------------------------------------*/
    function gift(address receivers, uint256 mintNumber) external onlyOwner {
        require(totalSupply() +  mintNumber <= TempSupply, "MINT TOO LARGE - TE PASASTE");
        require(totalSupply() +  mintNumber <= maxSupply, "MINT WAY TOO LARGE - TE PASASTE EL LIMITE MAXIMO");
        require(mintNumber + reservedMinted <= LS_MAX_RESERVED_COUNT, "Sorry! Ya te pasaste con los tokens del equipo");

            _safeMint(receivers, mintNumber);
            reservedMinted = reservedMinted + mintNumber;
    }

    function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner {
    _safeMint(_receiver, _mintAmount);
    }

    /*
     * Allow contract owner to withdraw funds to its own account ONLY.     *
     *---------------------------------------------------------------------*/

    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

  
    /*
     *  WithdrawAllToVault -Allow contract owner to withdraw to specific account(s) 
     *  Basicamente es un splitter - te permite hacer retiros a cuenta(s) especifica(s)  *
     *-----------------------------------------------------------------------------------*/
    function withdrawAllToVault() external onlyOwner {
        uint256 balance = address(this).balance;
        require(payable(vault).send(balance));     
//      Les dejo este método por si quieren implementar un split en sus cuentas - 
//      Sólo tienen que declarar y definir acct1 y acct2 como address payable. 
//      Y los porcentajes, por supuesto.         
//        require(payable(acct1).send(balance / 100 * 50));     // 50% aquí
//        require(payable(acct2).send(balance / 100 * 50));     // 50% acá.  
    }

     function SetTempSupply(uint256 _supply) public onlyOwner {
        require (_supply <= maxSupply && _supply >= totalSupply(),"WARNING - Invalid parameters for Phase");
        TempSupply = _supply;
     } 


}

File 2 of 20 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 20 : 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 4 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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.
 */
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 Merklee 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 6 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 20 : 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 8 of 20 : 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 9 of 20 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 10 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 11 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 20 : 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 20 : 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 20 : 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 20 : 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 20 : 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 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 overriden 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 18 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 19 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 20 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_TempSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LS_MAX_RESERVED_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"SetTempSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"TempSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receivers","type":"address"},{"internalType":"uint256","name":"mintNumber","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleBeginDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newRoyaltyAddress","type":"address"},{"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"setDropRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_PreSaleBeginDt","type":"uint256"},{"internalType":"uint256","name":"_PreSaleEndDt","type":"uint256"}],"name":"setPreSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllToVault","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040819052600060a08190526200001b91600d916200027a565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200004a91600e916200027a565b506127106080526014805462ffffff191660011790556000601855601a80546001600160a01b031916331790553480156200008457600080fd5b5060405162003b2a38038062003b2a833981016040819052620000a791620003ed565b855186908690620000c09060029060208501906200027a565b508051620000d69060039060208401906200027a565b5050600160005550620000e93362000120565b6001600955620000f98462000172565b60128390556200010982620001c6565b620001148162000216565b505050505050620004d7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001c15760405162461bcd60e51b8152602060048201819052602482015260008051602062003b0a83398151915260448201526064015b60405180910390fd5b601155565b6008546001600160a01b03163314620002115760405162461bcd60e51b8152602060048201819052602482015260008051602062003b0a8339815191526044820152606401620001b8565b601355565b6008546001600160a01b03163314620002615760405162461bcd60e51b8152602060048201819052602482015260008051602062003b0a8339815191526044820152606401620001b8565b80516200027690600f9060208401906200027a565b5050565b82805462000288906200049a565b90600052602060002090601f016020900481019282620002ac5760008555620002f7565b82601f10620002c757805160ff1916838001178555620002f7565b82800160010185558215620002f7579182015b82811115620002f7578251825591602001919060010190620002da565b506200030592915062000309565b5090565b5b808211156200030557600081556001016200030a565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200034857600080fd5b81516001600160401b038082111562000365576200036562000320565b604051601f8301601f19908116603f0116810190828211818310171562000390576200039062000320565b81604052838152602092508683858801011115620003ad57600080fd5b600091505b83821015620003d15785820183015181830184015290820190620003b2565b83821115620003e35760008385830101525b9695505050505050565b60008060008060008060c087890312156200040757600080fd5b86516001600160401b03808211156200041f57600080fd5b6200042d8a838b0162000336565b975060208901519150808211156200044457600080fd5b620004528a838b0162000336565b965060408901519550606089015194506080890151935060a08901519150808211156200047e57600080fd5b506200048d89828a0162000336565b9150509295509295509295565b600181811c90821680620004af57607f821691505b60208210811415620004d157634e487b7160e01b600052602260045260246000fd5b50919050565b6080516135ed6200051d60003960008181610a08015281816113840152818161148c0152818161159501528181611b1801528181611c5d015261214401526135ed6000f3fe6080604052600436106103c35760003560e01c8063819b25ba116101f2578063c63adb2b1161010d578063e0a80853116100a0578063f2fde38b1161006f578063f2fde38b14610af9578063f9765bc114610b19578063fbfa77cf14610b49578063ffe630b514610b6957600080fd5b8063e0a8085314610a5a578063e985e9c514610a7a578063ed258bff14610ac3578063efbd73f414610ad957600080fd5b8063d2cab056116100dc578063d2cab056146109ce578063d547cfb7146109e1578063d5abeb01146109f6578063db4bec4414610a2a57600080fd5b8063c63adb2b14610962578063c87b56dd14610978578063cb774d4714610998578063cbce4c97146109ae57600080fd5b8063a45ba8e711610185578063b88d4fde11610154578063b88d4fde146108ea578063b9c4d9fb1461090a578063bfd131f114610937578063c38e2a951461094c57600080fd5b8063a45ba8e714610875578063ad2f852a1461088a578063b071401b146108aa578063b767a098146108ca57600080fd5b806395d89b41116101c157806395d89b41146108175780639a2e27f81461082c578063a0712d6814610842578063a22cb4651461085557600080fd5b8063819b25ba146107a3578063827e620e146107c35780638da5cb5b146107e357806394354fd01461080157600080fd5b806344a0d68a116102e25780636352211e1161027557806370a082311161024457806370a082311461072e578063715018a61461074e5780637cb64759146107635780637ec4a6591461078357600080fd5b80636352211e146106ba5780636373a6b1146106da5780636bce809a146106ef5780636caede3d1461070f57600080fd5b806351830227116102b157806351830227146106565780635503a0e8146106765780635c975abb1461068b57806362b99ad4146106a557600080fd5b806344a0d68a146105ea578063460a78021461060a5780634f297ccc146106205780634fdd43cb1461063657600080fd5b806318160ddd1161035a57806330176e131161032957806330176e13146105755780633ccfd60b1461059557806342842e0e146105aa578063438b6300146105ca57600080fd5b806318160ddd1461050a57806323b872dd1461051f5780632931f14c1461053f5780632eb4a7ab1461055f57600080fd5b80630ebd4c7f116103965780630ebd4c7f1461047957806313faede6146104a657806316ba10e0146104ca57806316c38b3c146104ea57600080fd5b806301ffc9a7146103c857806306fdde03146103fd578063081812fc1461041f578063095ea7b314610457575b600080fd5b3480156103d457600080fd5b506103e86103e3366004612c3e565b610b89565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b50610412610bdb565b6040516103f49190612cb3565b34801561042b57600080fd5b5061043f61043a366004612cc6565b610c6d565b6040516001600160a01b0390911681526020016103f4565b34801561046357600080fd5b50610477610472366004612cf4565b610cb1565b005b34801561048557600080fd5b50610499610494366004612cc6565b610d3f565b6040516103f49190612d20565b3480156104b257600080fd5b506104bc60115481565b6040519081526020016103f4565b3480156104d657600080fd5b506104776104e5366004612def565b610d8c565b3480156104f657600080fd5b50610477610505366004612e4c565b610dd6565b34801561051657600080fd5b506104bc610e13565b34801561052b57600080fd5b5061047761053a366004612e67565b610e21565b34801561054b57600080fd5b5061047761055a366004612ea8565b610e2c565b34801561056b57600080fd5b506104bc600a5481565b34801561058157600080fd5b50610477610590366004612eca565b610e61565b3480156105a157600080fd5b50610477610e97565b3480156105b657600080fd5b506104776105c5366004612e67565b610efd565b3480156105d657600080fd5b506104996105e5366004612f3b565b610f18565b3480156105f657600080fd5b50610477610605366004612cc6565b611058565b34801561061657600080fd5b506104bc61012c81565b34801561062c57600080fd5b506104bc60185481565b34801561064257600080fd5b50610477610651366004612def565b611087565b34801561066257600080fd5b506014546103e89062010000900460ff1681565b34801561068257600080fd5b506104126110c4565b34801561069757600080fd5b506014546103e89060ff1681565b3480156106b157600080fd5b50610412611152565b3480156106c657600080fd5b5061043f6106d5366004612cc6565b61115f565b3480156106e657600080fd5b50610412611171565b3480156106fb57600080fd5b5061047761070a366004612cf4565b61117e565b34801561071b57600080fd5b506014546103e890610100900460ff1681565b34801561073a57600080fd5b506104bc610749366004612f3b565b6111da565b34801561075a57600080fd5b50610477611228565b34801561076f57600080fd5b5061047761077e366004612cc6565b61125e565b34801561078f57600080fd5b5061047761079e366004612def565b61128d565b3480156107af57600080fd5b506104776107be366004612cc6565b6112ca565b3480156107cf57600080fd5b506104776107de366004612cc6565b611460565b3480156107ef57600080fd5b506008546001600160a01b031661043f565b34801561080d57600080fd5b506104bc60135481565b34801561082357600080fd5b50610412611521565b34801561083857600080fd5b506104bc60165481565b610477610850366004612cc6565b611530565b34801561086157600080fd5b50610477610870366004612f58565b611702565b34801561088157600080fd5b50610412611798565b34801561089657600080fd5b50601b5461043f906001600160a01b031681565b3480156108b657600080fd5b506104776108c5366004612cc6565b6117a5565b3480156108d657600080fd5b506104776108e5366004612e4c565b6117d4565b3480156108f657600080fd5b50610477610905366004612f8d565b611818565b34801561091657600080fd5b5061092a610925366004612cc6565b611869565b6040516103f4919061300c565b34801561094357600080fd5b506104776118cd565b34801561095857600080fd5b506104bc60125481565b34801561096e57600080fd5b506104bc601c5481565b34801561098457600080fd5b50610412610993366004612cc6565b611929565b3480156109a457600080fd5b506104bc60175481565b3480156109ba57600080fd5b506104776109c9366004612cf4565b611a88565b6104776109dc36600461304d565b611bf8565b3480156109ed57600080fd5b5061041261208c565b348015610a0257600080fd5b506104bc7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a3657600080fd5b506103e8610a45366004612f3b565b600b6020526000908152604090205460ff1681565b348015610a6657600080fd5b50610477610a75366004612e4c565b612099565b348015610a8657600080fd5b506103e8610a953660046130cb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610acf57600080fd5b506104bc60155481565b348015610ae557600080fd5b50610477610af4366004613104565b6120df565b348015610b0557600080fd5b50610477610b14366004612f3b565b6121c8565b348015610b2557600080fd5b506103e8610b34366004612f3b565b600c6020526000908152604090205460ff1681565b348015610b5557600080fd5b50601a5461043f906001600160a01b031681565b348015610b7557600080fd5b50610477610b84366004612def565b612260565b60006001600160e01b031982166380ac58cd60e01b1480610bba57506001600160e01b03198216635b5e139f60e01b145b80610bd557506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610bea90613129565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1690613129565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c788261229d565b610c95576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610cbc8261115f565b9050806001600160a01b0316836001600160a01b03161415610cf15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d115750610d0f8133610a95565b155b15610d2f576040516367d9dca160e11b815260040160405180910390fd5b610d3a8383836122d6565b505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050601c5481600081518110610d7b57610d7b613164565b602090810291909101015292915050565b6008546001600160a01b03163314610dbf5760405162461bcd60e51b8152600401610db69061317a565b60405180910390fd5b8051610dd290600e906020840190612b1b565b5050565b6008546001600160a01b03163314610e005760405162461bcd60e51b8152600401610db69061317a565b6014805460ff1916911515919091179055565b600154600054036000190190565b610d3a838383612332565b6008546001600160a01b03163314610e565760405162461bcd60e51b8152600401610db69061317a565b601591909155601655565b6008546001600160a01b03163314610e8b5760405162461bcd60e51b8152600401610db69061317a565b610d3a60108383612b9f565b6008546001600160a01b03163314610ec15760405162461bcd60e51b8152600401610db69061317a565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610efa573d6000803e3d6000fd5b50565b610d3a83838360405180602001604052806000815250611818565b60606000610f25836111da565b90506000816001600160401b03811115610f4157610f41612d64565b604051908082528060200260200182016040528015610f6a578160200160208202803683370190505b50905060016000805b8482108015610f83575060005483105b1561104d57600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061103a5780516001600160a01b031615610ff457805191505b876001600160a01b0316826001600160a01b0316141561103a578385848151811061102157611021613164565b602090810291909101015282611036816131c5565b9350505b83611044816131c5565b94505050610f73565b509195945050505050565b6008546001600160a01b031633146110825760405162461bcd60e51b8152600401610db69061317a565b601155565b6008546001600160a01b031633146110b15760405162461bcd60e51b8152600401610db69061317a565b8051610dd290600f906020840190612b1b565b600e80546110d190613129565b80601f01602080910402602001604051908101604052809291908181526020018280546110fd90613129565b801561114a5780601f1061111f5761010080835404028352916020019161114a565b820191906000526020600020905b81548152906001019060200180831161112d57829003601f168201915b505050505081565b600d80546110d190613129565b600061116a8261251d565b5192915050565b601980546110d190613129565b6008546001600160a01b031633146111a85760405162461bcd60e51b8152600401610db69061317a565b601b80546001600160a01b039093166001600160a01b03199384168117909155601c91909155601a8054909216179055565b60006001600160a01b038216611203576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146112525760405162461bcd60e51b8152600401610db69061317a565b61125c6000612644565b565b6008546001600160a01b031633146112885760405162461bcd60e51b8152600401610db69061317a565b600a55565b6008546001600160a01b031633146112b75760405162461bcd60e51b8152600401610db69061317a565b8051610dd290600d906020840190612b1b565b6008546001600160a01b031633146112f45760405162461bcd60e51b8152600401610db69061317a565b60006112fe610e13565b60125490915061130e83836131e0565b11156113825760405162461bcd60e51b815260206004820152603960248201527f4167756173202d205265736572766520616d6f756e7420776f756c642065786360448201527f656564206d617820746f6b656e7320666f7220506861736521000000000000006064820152608401610db6565b7f00000000000000000000000000000000000000000000000000000000000000006113ad83836131e0565b11156114125760405162461bcd60e51b815260206004820152602e60248201527f4167756173202d205265736572766520616d6f756e7420776f756c642065786360448201526d656564206d617820737570706c7960901b6064820152608401610db6565b61012c6018548361142391906131e0565b11156114415760405162461bcd60e51b8152600401610db6906131f8565b61144b3383612696565b8160185461145991906131e0565b6018555050565b6008546001600160a01b0316331461148a5760405162461bcd60e51b8152600401610db69061317a565b7f000000000000000000000000000000000000000000000000000000000000000081111580156114c157506114bd610e13565b8110155b61151c5760405162461bcd60e51b815260206004820152602660248201527f5741524e494e47202d20496e76616c696420706172616d657465727320666f7260448201526520506861736560d01b6064820152608401610db6565b601255565b606060038054610bea90613129565b8060008111801561154357506013548111155b61155f5760405162461bcd60e51b8152600401610db690613246565b6012548161156b610e13565b61157591906131e0565b11156115935760405162461bcd60e51b8152600401610db690613274565b7f0000000000000000000000000000000000000000000000000000000000000000816115bd610e13565b6115c791906131e0565b11156115e55760405162461bcd60e51b8152600401610db6906132bb565b8160006115f0610e13565b90508160115461160091906132fc565b34101561161f5760405162461bcd60e51b8152600401610db69061331b565b601454339060ff161561168f5760405162461bcd60e51b815260206004820152603260248201527f54686520636f6e747261637420697320506175736564207c20456c20436f6e746044820152717261746f206573746120656e20506175736160701b6064820152608401610db6565b326001600160a01b038216146116f15760405162461bcd60e51b815260206004820152602160248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6044820152601d60fa1b6064820152608401610db6565b6116fb3386612696565b5050505050565b6001600160a01b03821633141561172c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f80546110d190613129565b6008546001600160a01b031633146117cf5760405162461bcd60e51b8152600401610db69061317a565b601355565b6008546001600160a01b031633146117fe5760405162461bcd60e51b8152600401610db69061317a565b601480549115156101000261ff0019909216919091179055565b611823848484612332565b6001600160a01b0383163b151580156118455750611843848484846126b0565b155b15611863576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051600180825281830190925260609160009190602080830190803683375050601b5482519293506001600160a01b0316918391506000906118af576118af613164565b6001600160a01b039092166020928302919091019091015292915050565b6008546001600160a01b031633146118f75760405162461bcd60e51b8152600401610db69061317a565b601a5460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050610efa57600080fd5b60606119348261229d565b6119805760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610db6565b60145462010000900460ff16611a2257600f805461199d90613129565b80601f01602080910402602001604051908101604052809291908181526020018280546119c990613129565b8015611a165780601f106119eb57610100808354040283529160200191611a16565b820191906000526020600020905b8154815290600101906020018083116119f957829003601f168201915b50505050509050919050565b6000611a2c6127a8565b90506000815111611a4c5760405180602001604052806000815250611a81565b611a546127a8565b611a5d846127b7565b600e604051602001611a7193929190613386565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314611ab25760405162461bcd60e51b8152600401610db69061317a565b60125481611abe610e13565b611ac891906131e0565b1115611b165760405162461bcd60e51b815260206004820152601b60248201527f4d494e5420544f4f204c41524745202d205445205041534153544500000000006044820152606401610db6565b7f000000000000000000000000000000000000000000000000000000000000000081611b40610e13565b611b4a91906131e0565b1115611bb15760405162461bcd60e51b815260206004820152603060248201527f4d494e542057415920544f4f204c41524745202d20544520504153415354452060448201526f454c204c494d495445204d4158494d4f60801b6064820152608401610db6565b61012c60185482611bc291906131e0565b1115611be05760405162461bcd60e51b8152600401610db6906131f8565b611bea8282612696565b8060185461145991906131e0565b82600081118015611c0b57506013548111155b611c275760405162461bcd60e51b8152600401610db690613246565b60125481611c33610e13565b611c3d91906131e0565b1115611c5b5760405162461bcd60e51b8152600401610db690613274565b7f000000000000000000000000000000000000000000000000000000000000000081611c85610e13565b611c8f91906131e0565b1115611cad5760405162461bcd60e51b8152600401610db6906132bb565b836000611cb8610e13565b905081601154611cc891906132fc565b341015611ce75760405162461bcd60e51b8152600401610db69061331b565b601454610100900460ff16611d735760405162461bcd60e51b815260206004820152604660248201527f4c6f2073656e74696d6f73202d20546865205072652d53616c65206973206e6f60448201527f7420656e61626c6564207c204c612050726556656e7461206e6f20657374612060648201526541637469766160d01b608482015260a401610db6565b33328114611dd85760405162461bcd60e51b815260206004820152602c60248201527f4e69636520747279202d20436f6e74726163747320617265206e6f7420616c6c60448201526b1bddd959081d1bc81b5a5b9d60a21b6064820152608401610db6565b601154611f3057336000908152600b602052604090205460ff1615611e0f5760405162461bcd60e51b8152600401610db69061344a565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611e8987878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508490506128b4565b611ea55760405162461bcd60e51b8152600401610db6906134b9565b4260155411158015611eb957504260165410155b611f055760405162461bcd60e51b815260206004820152601f60248201527f4c6f2073656e74696d6f732c2050686173652049204e6f7420416374697665006044820152606401610db6565b336000818152600b60205260409020805460ff19166001179055611f2a905b89612696565b50612083565b6011541561208357336000908152600c602052604090205460ff1615611f685760405162461bcd60e51b8152600401610db69061344a565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611fe287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508490506128b4565b611ffe5760405162461bcd60e51b8152600401610db6906134b9565b426015541115801561201257504260165410155b61205e5760405162461bcd60e51b815260206004820181905260248201527f4c6f2073656e74696d6f732c205068617365204949204e6f74204163746976656044820152606401610db6565b336000818152600c60205260409020805460ff1916600117905561208190611f24565b505b50505050505050565b601080546110d190613129565b6008546001600160a01b031633146120c35760405162461bcd60e51b8152600401610db69061317a565b60148054911515620100000262ff000019909216919091179055565b816000811180156120f257506013548111155b61210e5760405162461bcd60e51b8152600401610db690613246565b6012548161211a610e13565b61212491906131e0565b11156121425760405162461bcd60e51b8152600401610db690613274565b7f00000000000000000000000000000000000000000000000000000000000000008161216c610e13565b61217691906131e0565b11156121945760405162461bcd60e51b8152600401610db6906132bb565b6008546001600160a01b031633146121be5760405162461bcd60e51b8152600401610db69061317a565b610d3a8284612696565b6008546001600160a01b031633146121f25760405162461bcd60e51b8152600401610db69061317a565b6001600160a01b0381166122575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610db6565b610efa81612644565b6008546001600160a01b0316331461228a5760405162461bcd60e51b8152600401610db69061317a565b8051610dd2906019906020840190612b1b565b6000816001111580156122b1575060005482105b8015610bd5575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061233d8261251d565b9050836001600160a01b031681600001516001600160a01b0316146123745760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061239257506123928533610a95565b806123ad5750336123a284610c6d565b6001600160a01b0316145b9050806123cd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166123f457604051633a954ecd60e21b815260040160405180910390fd5b612400600084876122d6565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166124d45760005482146124d457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116fb565b6040805160608101825260008082526020820181905291810191909152818060011115801561254d575060005481105b1561262b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126295780516001600160a01b0316156125c0579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612624579392505050565b6125c0565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610dd28282604051806020016040528060008152506128ca565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126e5903390899088908890600401613508565b602060405180830381600087803b1580156126ff57600080fd5b505af192505050801561272f575060408051601f3d908101601f1916820190925261272c91810190613545565b60015b61278a573d80801561275d576040519150601f19603f3d011682016040523d82523d6000602084013e612762565b606091505b508051612782576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060108054610bea90613129565b6060816127db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280557806127ef816131c5565b91506127fe9050600a83613578565b91506127df565b6000816001600160401b0381111561281f5761281f612d64565b6040519080825280601f01601f191660200182016040528015612849576020820181803683370190505b5090505b84156127a05761285e60018361358c565b915061286b600a866135a3565b6128769060306131e0565b60f81b81838151811061288b5761288b613164565b60200101906001600160f81b031916908160001a9053506128ad600a86613578565b945061284d565b6000826128c185846128d7565b14949350505050565b610d3a838383600161294b565b600081815b84518110156129435760008582815181106128f9576128f9613164565b6020026020010151905080831161291f5760008381526020829052604090209250612930565b600081815260208490526040902092505b508061293b816131c5565b9150506128dc565b509392505050565b6000546001600160a01b03851661297457604051622e076360e81b815260040160405180910390fd5b836129925760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a4357506001600160a01b0387163b15155b15612acc575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612a9460008884806001019550886126b0565b612ab1576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a49578260005414612ac757600080fd5b612b12565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612acd575b506000556116fb565b828054612b2790613129565b90600052602060002090601f016020900481019282612b495760008555612b8f565b82601f10612b6257805160ff1916838001178555612b8f565b82800160010185558215612b8f579182015b82811115612b8f578251825591602001919060010190612b74565b50612b9b929150612c13565b5090565b828054612bab90613129565b90600052602060002090601f016020900481019282612bcd5760008555612b8f565b82601f10612be65782800160ff19823516178555612b8f565b82800160010185558215612b8f579182015b82811115612b8f578235825591602001919060010190612bf8565b5b80821115612b9b5760008155600101612c14565b6001600160e01b031981168114610efa57600080fd5b600060208284031215612c5057600080fd5b8135611a8181612c28565b60005b83811015612c76578181015183820152602001612c5e565b838111156118635750506000910152565b60008151808452612c9f816020860160208601612c5b565b601f01601f19169290920160200192915050565b602081526000611a816020830184612c87565b600060208284031215612cd857600080fd5b5035919050565b6001600160a01b0381168114610efa57600080fd5b60008060408385031215612d0757600080fd5b8235612d1281612cdf565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015612d5857835183529284019291840191600101612d3c565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612d9457612d94612d64565b604051601f8501601f19908116603f01168101908282118183101715612dbc57612dbc612d64565b81604052809350858152868686011115612dd557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612e0157600080fd5b81356001600160401b03811115612e1757600080fd5b8201601f81018413612e2857600080fd5b6127a084823560208401612d7a565b80358015158114612e4757600080fd5b919050565b600060208284031215612e5e57600080fd5b611a8182612e37565b600080600060608486031215612e7c57600080fd5b8335612e8781612cdf565b92506020840135612e9781612cdf565b929592945050506040919091013590565b60008060408385031215612ebb57600080fd5b50508035926020909101359150565b60008060208385031215612edd57600080fd5b82356001600160401b0380821115612ef457600080fd5b818501915085601f830112612f0857600080fd5b813581811115612f1757600080fd5b866020828501011115612f2957600080fd5b60209290920196919550909350505050565b600060208284031215612f4d57600080fd5b8135611a8181612cdf565b60008060408385031215612f6b57600080fd5b8235612f7681612cdf565b9150612f8460208401612e37565b90509250929050565b60008060008060808587031215612fa357600080fd5b8435612fae81612cdf565b93506020850135612fbe81612cdf565b92506040850135915060608501356001600160401b03811115612fe057600080fd5b8501601f81018713612ff157600080fd5b61300087823560208401612d7a565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612d585783516001600160a01b031683529284019291840191600101613028565b60008060006040848603121561306257600080fd5b8335925060208401356001600160401b038082111561308057600080fd5b818601915086601f83011261309457600080fd5b8135818111156130a357600080fd5b8760208260051b85010111156130b857600080fd5b6020830194508093505050509250925092565b600080604083850312156130de57600080fd5b82356130e981612cdf565b915060208301356130f981612cdf565b809150509250929050565b6000806040838503121561311757600080fd5b8235915060208301356130f981612cdf565b600181811c9082168061313d57607f821691505b6020821081141561315e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156131d9576131d96131af565b5060010190565b600082198211156131f3576131f36131af565b500190565b6020808252602e908201527f536f72727921205961207465207061736173746520636f6e206c6f7320746f6b60408201526d656e732064656c2065717569706f60901b606082015260800190565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b60208082526027908201527f4c6f2073656e74696d6f73202d2054656d702f4d617820737570706c792065786040820152666365656465642160c81b606082015260800190565b60208082526021908201527f4c6f2073656e74696d6f73202d204d617820537570706c7920457863656564656040820152601960fa1b606082015260800190565b6000816000190483118215151615613316576133166131af565b500290565b60208082526045908201527f57652061726520736f7272792c204e6f7420656e6f75676820455448207c204c60408201527f6f2073656e74696d6f732c206e6f207469656e657320737566696369656e74656060820152641022aa241760d91b608082015260a00190565b6000845160206133998285838a01612c5b565b8551918401916133ac8184848a01612c5b565b8554920191600090600181811c90808316806133c957607f831692505b8583108114156133e757634e487b7160e01b85526022600452602485fd5b8080156133fb576001811461340c57613439565b60ff19851688528388019550613439565b60008b81526020902060005b858110156134315781548a820152908401908801613418565b505083880195505b50939b9a5050505050505050505050565b60208082526049908201527f4c6f2073656e74696d6f73202d204164647265737320616c726561647920636c60408201527f61696d656421207c204573746120646972656363696f6e207961206861207369606082015268646f2075736164612160b81b608082015260a00190565b6020808252602f908201527f4c6f2073656e74696d6f73202d20496e76616c69642070726f6f6621207c204660408201526e69726d612065717569766f6361646160881b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061353b90830184612c87565b9695505050505050565b60006020828403121561355757600080fd5b8151611a8181612c28565b634e487b7160e01b600052601260045260246000fd5b60008261358757613587613562565b500490565b60008282101561359e5761359e6131af565b500390565b6000826135b2576135b2613562565b50069056fea26469706673582212207ee0c7838156e010aefc635a2da06fa1fed150eb27e8397bde0814b10090e6c864736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000e4c6174696e6f20536f636965747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c4154494e4f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6c6174736f632e6d7970696e6174612e636c6f75642f697066732f516d656758355354667831655077687037676952614d54326a59765064317341575570396170617337473962745a000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103c35760003560e01c8063819b25ba116101f2578063c63adb2b1161010d578063e0a80853116100a0578063f2fde38b1161006f578063f2fde38b14610af9578063f9765bc114610b19578063fbfa77cf14610b49578063ffe630b514610b6957600080fd5b8063e0a8085314610a5a578063e985e9c514610a7a578063ed258bff14610ac3578063efbd73f414610ad957600080fd5b8063d2cab056116100dc578063d2cab056146109ce578063d547cfb7146109e1578063d5abeb01146109f6578063db4bec4414610a2a57600080fd5b8063c63adb2b14610962578063c87b56dd14610978578063cb774d4714610998578063cbce4c97146109ae57600080fd5b8063a45ba8e711610185578063b88d4fde11610154578063b88d4fde146108ea578063b9c4d9fb1461090a578063bfd131f114610937578063c38e2a951461094c57600080fd5b8063a45ba8e714610875578063ad2f852a1461088a578063b071401b146108aa578063b767a098146108ca57600080fd5b806395d89b41116101c157806395d89b41146108175780639a2e27f81461082c578063a0712d6814610842578063a22cb4651461085557600080fd5b8063819b25ba146107a3578063827e620e146107c35780638da5cb5b146107e357806394354fd01461080157600080fd5b806344a0d68a116102e25780636352211e1161027557806370a082311161024457806370a082311461072e578063715018a61461074e5780637cb64759146107635780637ec4a6591461078357600080fd5b80636352211e146106ba5780636373a6b1146106da5780636bce809a146106ef5780636caede3d1461070f57600080fd5b806351830227116102b157806351830227146106565780635503a0e8146106765780635c975abb1461068b57806362b99ad4146106a557600080fd5b806344a0d68a146105ea578063460a78021461060a5780634f297ccc146106205780634fdd43cb1461063657600080fd5b806318160ddd1161035a57806330176e131161032957806330176e13146105755780633ccfd60b1461059557806342842e0e146105aa578063438b6300146105ca57600080fd5b806318160ddd1461050a57806323b872dd1461051f5780632931f14c1461053f5780632eb4a7ab1461055f57600080fd5b80630ebd4c7f116103965780630ebd4c7f1461047957806313faede6146104a657806316ba10e0146104ca57806316c38b3c146104ea57600080fd5b806301ffc9a7146103c857806306fdde03146103fd578063081812fc1461041f578063095ea7b314610457575b600080fd5b3480156103d457600080fd5b506103e86103e3366004612c3e565b610b89565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b50610412610bdb565b6040516103f49190612cb3565b34801561042b57600080fd5b5061043f61043a366004612cc6565b610c6d565b6040516001600160a01b0390911681526020016103f4565b34801561046357600080fd5b50610477610472366004612cf4565b610cb1565b005b34801561048557600080fd5b50610499610494366004612cc6565b610d3f565b6040516103f49190612d20565b3480156104b257600080fd5b506104bc60115481565b6040519081526020016103f4565b3480156104d657600080fd5b506104776104e5366004612def565b610d8c565b3480156104f657600080fd5b50610477610505366004612e4c565b610dd6565b34801561051657600080fd5b506104bc610e13565b34801561052b57600080fd5b5061047761053a366004612e67565b610e21565b34801561054b57600080fd5b5061047761055a366004612ea8565b610e2c565b34801561056b57600080fd5b506104bc600a5481565b34801561058157600080fd5b50610477610590366004612eca565b610e61565b3480156105a157600080fd5b50610477610e97565b3480156105b657600080fd5b506104776105c5366004612e67565b610efd565b3480156105d657600080fd5b506104996105e5366004612f3b565b610f18565b3480156105f657600080fd5b50610477610605366004612cc6565b611058565b34801561061657600080fd5b506104bc61012c81565b34801561062c57600080fd5b506104bc60185481565b34801561064257600080fd5b50610477610651366004612def565b611087565b34801561066257600080fd5b506014546103e89062010000900460ff1681565b34801561068257600080fd5b506104126110c4565b34801561069757600080fd5b506014546103e89060ff1681565b3480156106b157600080fd5b50610412611152565b3480156106c657600080fd5b5061043f6106d5366004612cc6565b61115f565b3480156106e657600080fd5b50610412611171565b3480156106fb57600080fd5b5061047761070a366004612cf4565b61117e565b34801561071b57600080fd5b506014546103e890610100900460ff1681565b34801561073a57600080fd5b506104bc610749366004612f3b565b6111da565b34801561075a57600080fd5b50610477611228565b34801561076f57600080fd5b5061047761077e366004612cc6565b61125e565b34801561078f57600080fd5b5061047761079e366004612def565b61128d565b3480156107af57600080fd5b506104776107be366004612cc6565b6112ca565b3480156107cf57600080fd5b506104776107de366004612cc6565b611460565b3480156107ef57600080fd5b506008546001600160a01b031661043f565b34801561080d57600080fd5b506104bc60135481565b34801561082357600080fd5b50610412611521565b34801561083857600080fd5b506104bc60165481565b610477610850366004612cc6565b611530565b34801561086157600080fd5b50610477610870366004612f58565b611702565b34801561088157600080fd5b50610412611798565b34801561089657600080fd5b50601b5461043f906001600160a01b031681565b3480156108b657600080fd5b506104776108c5366004612cc6565b6117a5565b3480156108d657600080fd5b506104776108e5366004612e4c565b6117d4565b3480156108f657600080fd5b50610477610905366004612f8d565b611818565b34801561091657600080fd5b5061092a610925366004612cc6565b611869565b6040516103f4919061300c565b34801561094357600080fd5b506104776118cd565b34801561095857600080fd5b506104bc60125481565b34801561096e57600080fd5b506104bc601c5481565b34801561098457600080fd5b50610412610993366004612cc6565b611929565b3480156109a457600080fd5b506104bc60175481565b3480156109ba57600080fd5b506104776109c9366004612cf4565b611a88565b6104776109dc36600461304d565b611bf8565b3480156109ed57600080fd5b5061041261208c565b348015610a0257600080fd5b506104bc7f000000000000000000000000000000000000000000000000000000000000271081565b348015610a3657600080fd5b506103e8610a45366004612f3b565b600b6020526000908152604090205460ff1681565b348015610a6657600080fd5b50610477610a75366004612e4c565b612099565b348015610a8657600080fd5b506103e8610a953660046130cb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610acf57600080fd5b506104bc60155481565b348015610ae557600080fd5b50610477610af4366004613104565b6120df565b348015610b0557600080fd5b50610477610b14366004612f3b565b6121c8565b348015610b2557600080fd5b506103e8610b34366004612f3b565b600c6020526000908152604090205460ff1681565b348015610b5557600080fd5b50601a5461043f906001600160a01b031681565b348015610b7557600080fd5b50610477610b84366004612def565b612260565b60006001600160e01b031982166380ac58cd60e01b1480610bba57506001600160e01b03198216635b5e139f60e01b145b80610bd557506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610bea90613129565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1690613129565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c788261229d565b610c95576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610cbc8261115f565b9050806001600160a01b0316836001600160a01b03161415610cf15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d115750610d0f8133610a95565b155b15610d2f576040516367d9dca160e11b815260040160405180910390fd5b610d3a8383836122d6565b505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050601c5481600081518110610d7b57610d7b613164565b602090810291909101015292915050565b6008546001600160a01b03163314610dbf5760405162461bcd60e51b8152600401610db69061317a565b60405180910390fd5b8051610dd290600e906020840190612b1b565b5050565b6008546001600160a01b03163314610e005760405162461bcd60e51b8152600401610db69061317a565b6014805460ff1916911515919091179055565b600154600054036000190190565b610d3a838383612332565b6008546001600160a01b03163314610e565760405162461bcd60e51b8152600401610db69061317a565b601591909155601655565b6008546001600160a01b03163314610e8b5760405162461bcd60e51b8152600401610db69061317a565b610d3a60108383612b9f565b6008546001600160a01b03163314610ec15760405162461bcd60e51b8152600401610db69061317a565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610efa573d6000803e3d6000fd5b50565b610d3a83838360405180602001604052806000815250611818565b60606000610f25836111da565b90506000816001600160401b03811115610f4157610f41612d64565b604051908082528060200260200182016040528015610f6a578160200160208202803683370190505b50905060016000805b8482108015610f83575060005483105b1561104d57600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061103a5780516001600160a01b031615610ff457805191505b876001600160a01b0316826001600160a01b0316141561103a578385848151811061102157611021613164565b602090810291909101015282611036816131c5565b9350505b83611044816131c5565b94505050610f73565b509195945050505050565b6008546001600160a01b031633146110825760405162461bcd60e51b8152600401610db69061317a565b601155565b6008546001600160a01b031633146110b15760405162461bcd60e51b8152600401610db69061317a565b8051610dd290600f906020840190612b1b565b600e80546110d190613129565b80601f01602080910402602001604051908101604052809291908181526020018280546110fd90613129565b801561114a5780601f1061111f5761010080835404028352916020019161114a565b820191906000526020600020905b81548152906001019060200180831161112d57829003601f168201915b505050505081565b600d80546110d190613129565b600061116a8261251d565b5192915050565b601980546110d190613129565b6008546001600160a01b031633146111a85760405162461bcd60e51b8152600401610db69061317a565b601b80546001600160a01b039093166001600160a01b03199384168117909155601c91909155601a8054909216179055565b60006001600160a01b038216611203576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146112525760405162461bcd60e51b8152600401610db69061317a565b61125c6000612644565b565b6008546001600160a01b031633146112885760405162461bcd60e51b8152600401610db69061317a565b600a55565b6008546001600160a01b031633146112b75760405162461bcd60e51b8152600401610db69061317a565b8051610dd290600d906020840190612b1b565b6008546001600160a01b031633146112f45760405162461bcd60e51b8152600401610db69061317a565b60006112fe610e13565b60125490915061130e83836131e0565b11156113825760405162461bcd60e51b815260206004820152603960248201527f4167756173202d205265736572766520616d6f756e7420776f756c642065786360448201527f656564206d617820746f6b656e7320666f7220506861736521000000000000006064820152608401610db6565b7f00000000000000000000000000000000000000000000000000000000000027106113ad83836131e0565b11156114125760405162461bcd60e51b815260206004820152602e60248201527f4167756173202d205265736572766520616d6f756e7420776f756c642065786360448201526d656564206d617820737570706c7960901b6064820152608401610db6565b61012c6018548361142391906131e0565b11156114415760405162461bcd60e51b8152600401610db6906131f8565b61144b3383612696565b8160185461145991906131e0565b6018555050565b6008546001600160a01b0316331461148a5760405162461bcd60e51b8152600401610db69061317a565b7f000000000000000000000000000000000000000000000000000000000000271081111580156114c157506114bd610e13565b8110155b61151c5760405162461bcd60e51b815260206004820152602660248201527f5741524e494e47202d20496e76616c696420706172616d657465727320666f7260448201526520506861736560d01b6064820152608401610db6565b601255565b606060038054610bea90613129565b8060008111801561154357506013548111155b61155f5760405162461bcd60e51b8152600401610db690613246565b6012548161156b610e13565b61157591906131e0565b11156115935760405162461bcd60e51b8152600401610db690613274565b7f0000000000000000000000000000000000000000000000000000000000002710816115bd610e13565b6115c791906131e0565b11156115e55760405162461bcd60e51b8152600401610db6906132bb565b8160006115f0610e13565b90508160115461160091906132fc565b34101561161f5760405162461bcd60e51b8152600401610db69061331b565b601454339060ff161561168f5760405162461bcd60e51b815260206004820152603260248201527f54686520636f6e747261637420697320506175736564207c20456c20436f6e746044820152717261746f206573746120656e20506175736160701b6064820152608401610db6565b326001600160a01b038216146116f15760405162461bcd60e51b815260206004820152602160248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6044820152601d60fa1b6064820152608401610db6565b6116fb3386612696565b5050505050565b6001600160a01b03821633141561172c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f80546110d190613129565b6008546001600160a01b031633146117cf5760405162461bcd60e51b8152600401610db69061317a565b601355565b6008546001600160a01b031633146117fe5760405162461bcd60e51b8152600401610db69061317a565b601480549115156101000261ff0019909216919091179055565b611823848484612332565b6001600160a01b0383163b151580156118455750611843848484846126b0565b155b15611863576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051600180825281830190925260609160009190602080830190803683375050601b5482519293506001600160a01b0316918391506000906118af576118af613164565b6001600160a01b039092166020928302919091019091015292915050565b6008546001600160a01b031633146118f75760405162461bcd60e51b8152600401610db69061317a565b601a5460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050610efa57600080fd5b60606119348261229d565b6119805760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610db6565b60145462010000900460ff16611a2257600f805461199d90613129565b80601f01602080910402602001604051908101604052809291908181526020018280546119c990613129565b8015611a165780601f106119eb57610100808354040283529160200191611a16565b820191906000526020600020905b8154815290600101906020018083116119f957829003601f168201915b50505050509050919050565b6000611a2c6127a8565b90506000815111611a4c5760405180602001604052806000815250611a81565b611a546127a8565b611a5d846127b7565b600e604051602001611a7193929190613386565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314611ab25760405162461bcd60e51b8152600401610db69061317a565b60125481611abe610e13565b611ac891906131e0565b1115611b165760405162461bcd60e51b815260206004820152601b60248201527f4d494e5420544f4f204c41524745202d205445205041534153544500000000006044820152606401610db6565b7f000000000000000000000000000000000000000000000000000000000000271081611b40610e13565b611b4a91906131e0565b1115611bb15760405162461bcd60e51b815260206004820152603060248201527f4d494e542057415920544f4f204c41524745202d20544520504153415354452060448201526f454c204c494d495445204d4158494d4f60801b6064820152608401610db6565b61012c60185482611bc291906131e0565b1115611be05760405162461bcd60e51b8152600401610db6906131f8565b611bea8282612696565b8060185461145991906131e0565b82600081118015611c0b57506013548111155b611c275760405162461bcd60e51b8152600401610db690613246565b60125481611c33610e13565b611c3d91906131e0565b1115611c5b5760405162461bcd60e51b8152600401610db690613274565b7f000000000000000000000000000000000000000000000000000000000000271081611c85610e13565b611c8f91906131e0565b1115611cad5760405162461bcd60e51b8152600401610db6906132bb565b836000611cb8610e13565b905081601154611cc891906132fc565b341015611ce75760405162461bcd60e51b8152600401610db69061331b565b601454610100900460ff16611d735760405162461bcd60e51b815260206004820152604660248201527f4c6f2073656e74696d6f73202d20546865205072652d53616c65206973206e6f60448201527f7420656e61626c6564207c204c612050726556656e7461206e6f20657374612060648201526541637469766160d01b608482015260a401610db6565b33328114611dd85760405162461bcd60e51b815260206004820152602c60248201527f4e69636520747279202d20436f6e74726163747320617265206e6f7420616c6c60448201526b1bddd959081d1bc81b5a5b9d60a21b6064820152608401610db6565b601154611f3057336000908152600b602052604090205460ff1615611e0f5760405162461bcd60e51b8152600401610db69061344a565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611e8987878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508490506128b4565b611ea55760405162461bcd60e51b8152600401610db6906134b9565b4260155411158015611eb957504260165410155b611f055760405162461bcd60e51b815260206004820152601f60248201527f4c6f2073656e74696d6f732c2050686173652049204e6f7420416374697665006044820152606401610db6565b336000818152600b60205260409020805460ff19166001179055611f2a905b89612696565b50612083565b6011541561208357336000908152600c602052604090205460ff1615611f685760405162461bcd60e51b8152600401610db69061344a565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611fe287878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508490506128b4565b611ffe5760405162461bcd60e51b8152600401610db6906134b9565b426015541115801561201257504260165410155b61205e5760405162461bcd60e51b815260206004820181905260248201527f4c6f2073656e74696d6f732c205068617365204949204e6f74204163746976656044820152606401610db6565b336000818152600c60205260409020805460ff1916600117905561208190611f24565b505b50505050505050565b601080546110d190613129565b6008546001600160a01b031633146120c35760405162461bcd60e51b8152600401610db69061317a565b60148054911515620100000262ff000019909216919091179055565b816000811180156120f257506013548111155b61210e5760405162461bcd60e51b8152600401610db690613246565b6012548161211a610e13565b61212491906131e0565b11156121425760405162461bcd60e51b8152600401610db690613274565b7f00000000000000000000000000000000000000000000000000000000000027108161216c610e13565b61217691906131e0565b11156121945760405162461bcd60e51b8152600401610db6906132bb565b6008546001600160a01b031633146121be5760405162461bcd60e51b8152600401610db69061317a565b610d3a8284612696565b6008546001600160a01b031633146121f25760405162461bcd60e51b8152600401610db69061317a565b6001600160a01b0381166122575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610db6565b610efa81612644565b6008546001600160a01b0316331461228a5760405162461bcd60e51b8152600401610db69061317a565b8051610dd2906019906020840190612b1b565b6000816001111580156122b1575060005482105b8015610bd5575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061233d8261251d565b9050836001600160a01b031681600001516001600160a01b0316146123745760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061239257506123928533610a95565b806123ad5750336123a284610c6d565b6001600160a01b0316145b9050806123cd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166123f457604051633a954ecd60e21b815260040160405180910390fd5b612400600084876122d6565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166124d45760005482146124d457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116fb565b6040805160608101825260008082526020820181905291810191909152818060011115801561254d575060005481105b1561262b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126295780516001600160a01b0316156125c0579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612624579392505050565b6125c0565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610dd28282604051806020016040528060008152506128ca565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126e5903390899088908890600401613508565b602060405180830381600087803b1580156126ff57600080fd5b505af192505050801561272f575060408051601f3d908101601f1916820190925261272c91810190613545565b60015b61278a573d80801561275d576040519150601f19603f3d011682016040523d82523d6000602084013e612762565b606091505b508051612782576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060108054610bea90613129565b6060816127db5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280557806127ef816131c5565b91506127fe9050600a83613578565b91506127df565b6000816001600160401b0381111561281f5761281f612d64565b6040519080825280601f01601f191660200182016040528015612849576020820181803683370190505b5090505b84156127a05761285e60018361358c565b915061286b600a866135a3565b6128769060306131e0565b60f81b81838151811061288b5761288b613164565b60200101906001600160f81b031916908160001a9053506128ad600a86613578565b945061284d565b6000826128c185846128d7565b14949350505050565b610d3a838383600161294b565b600081815b84518110156129435760008582815181106128f9576128f9613164565b6020026020010151905080831161291f5760008381526020829052604090209250612930565b600081815260208490526040902092505b508061293b816131c5565b9150506128dc565b509392505050565b6000546001600160a01b03851661297457604051622e076360e81b815260040160405180910390fd5b836129925760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a4357506001600160a01b0387163b15155b15612acc575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612a9460008884806001019550886126b0565b612ab1576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a49578260005414612ac757600080fd5b612b12565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612acd575b506000556116fb565b828054612b2790613129565b90600052602060002090601f016020900481019282612b495760008555612b8f565b82601f10612b6257805160ff1916838001178555612b8f565b82800160010185558215612b8f579182015b82811115612b8f578251825591602001919060010190612b74565b50612b9b929150612c13565b5090565b828054612bab90613129565b90600052602060002090601f016020900481019282612bcd5760008555612b8f565b82601f10612be65782800160ff19823516178555612b8f565b82800160010185558215612b8f579182015b82811115612b8f578235825591602001919060010190612bf8565b5b80821115612b9b5760008155600101612c14565b6001600160e01b031981168114610efa57600080fd5b600060208284031215612c5057600080fd5b8135611a8181612c28565b60005b83811015612c76578181015183820152602001612c5e565b838111156118635750506000910152565b60008151808452612c9f816020860160208601612c5b565b601f01601f19169290920160200192915050565b602081526000611a816020830184612c87565b600060208284031215612cd857600080fd5b5035919050565b6001600160a01b0381168114610efa57600080fd5b60008060408385031215612d0757600080fd5b8235612d1281612cdf565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015612d5857835183529284019291840191600101612d3c565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612d9457612d94612d64565b604051601f8501601f19908116603f01168101908282118183101715612dbc57612dbc612d64565b81604052809350858152868686011115612dd557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612e0157600080fd5b81356001600160401b03811115612e1757600080fd5b8201601f81018413612e2857600080fd5b6127a084823560208401612d7a565b80358015158114612e4757600080fd5b919050565b600060208284031215612e5e57600080fd5b611a8182612e37565b600080600060608486031215612e7c57600080fd5b8335612e8781612cdf565b92506020840135612e9781612cdf565b929592945050506040919091013590565b60008060408385031215612ebb57600080fd5b50508035926020909101359150565b60008060208385031215612edd57600080fd5b82356001600160401b0380821115612ef457600080fd5b818501915085601f830112612f0857600080fd5b813581811115612f1757600080fd5b866020828501011115612f2957600080fd5b60209290920196919550909350505050565b600060208284031215612f4d57600080fd5b8135611a8181612cdf565b60008060408385031215612f6b57600080fd5b8235612f7681612cdf565b9150612f8460208401612e37565b90509250929050565b60008060008060808587031215612fa357600080fd5b8435612fae81612cdf565b93506020850135612fbe81612cdf565b92506040850135915060608501356001600160401b03811115612fe057600080fd5b8501601f81018713612ff157600080fd5b61300087823560208401612d7a565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612d585783516001600160a01b031683529284019291840191600101613028565b60008060006040848603121561306257600080fd5b8335925060208401356001600160401b038082111561308057600080fd5b818601915086601f83011261309457600080fd5b8135818111156130a357600080fd5b8760208260051b85010111156130b857600080fd5b6020830194508093505050509250925092565b600080604083850312156130de57600080fd5b82356130e981612cdf565b915060208301356130f981612cdf565b809150509250929050565b6000806040838503121561311757600080fd5b8235915060208301356130f981612cdf565b600181811c9082168061313d57607f821691505b6020821081141561315e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156131d9576131d96131af565b5060010190565b600082198211156131f3576131f36131af565b500190565b6020808252602e908201527f536f72727921205961207465207061736173746520636f6e206c6f7320746f6b60408201526d656e732064656c2065717569706f60901b606082015260800190565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b60208082526027908201527f4c6f2073656e74696d6f73202d2054656d702f4d617820737570706c792065786040820152666365656465642160c81b606082015260800190565b60208082526021908201527f4c6f2073656e74696d6f73202d204d617820537570706c7920457863656564656040820152601960fa1b606082015260800190565b6000816000190483118215151615613316576133166131af565b500290565b60208082526045908201527f57652061726520736f7272792c204e6f7420656e6f75676820455448207c204c60408201527f6f2073656e74696d6f732c206e6f207469656e657320737566696369656e74656060820152641022aa241760d91b608082015260a00190565b6000845160206133998285838a01612c5b565b8551918401916133ac8184848a01612c5b565b8554920191600090600181811c90808316806133c957607f831692505b8583108114156133e757634e487b7160e01b85526022600452602485fd5b8080156133fb576001811461340c57613439565b60ff19851688528388019550613439565b60008b81526020902060005b858110156134315781548a820152908401908801613418565b505083880195505b50939b9a5050505050505050505050565b60208082526049908201527f4c6f2073656e74696d6f73202d204164647265737320616c726561647920636c60408201527f61696d656421207c204573746120646972656363696f6e207961206861207369606082015268646f2075736164612160b81b608082015260a00190565b6020808252602f908201527f4c6f2073656e74696d6f73202d20496e76616c69642070726f6f6621207c204660408201526e69726d612065717569766f6361646160881b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061353b90830184612c87565b9695505050505050565b60006020828403121561355757600080fd5b8151611a8181612c28565b634e487b7160e01b600052601260045260246000fd5b60008261358757613587613562565b500490565b60008282101561359e5761359e6131af565b500390565b6000826135b2576135b2613562565b50069056fea26469706673582212207ee0c7838156e010aefc635a2da06fa1fed150eb27e8397bde0814b10090e6c864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000e4c6174696e6f20536f636965747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c4154494e4f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6c6174736f632e6d7970696e6174612e636c6f75642f697066732f516d656758355354667831655077687037676952614d54326a59765064317341575570396170617337473962745a000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Latino Society
Arg [1] : _tokenSymbol (string): LATINO
Arg [2] : _cost (uint256): 0
Arg [3] : _TempSupply (uint256): 2000
Arg [4] : _maxMintAmountPerTx (uint256): 1
Arg [5] : _hiddenMetadataUri (string): https://latsoc.mypinata.cloud/ipfs/QmegX5STfx1ePwhp7giRaMT2jYvPd1sAWUp9apas7G9btZ

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [7] : 4c6174696e6f20536f6369657479000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 4c4154494e4f0000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [11] : 68747470733a2f2f6c6174736f632e6d7970696e6174612e636c6f75642f6970
Arg [12] : 66732f516d656758355354667831655077687037676952614d54326a59765064
Arg [13] : 317341575570396170617337473962745a000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Latino Society is a collection of 10,000 PFPs generated from hundreds of hand-drawn traits that showcase the beauty and diversity of Latinos , and stored as ERC-721 tokens on the Ethereum Blockchain.

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.