ETH Price: $3,883.13 (+0.37%)

Token

CryptoPons (CTP)
 

Overview

Max Total Supply

3,333 CTP

Holders

1,759

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 CTP
0xEA77468Fce5696aCa70bc81dD0A020B6Ea50d49a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Cryptopons

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : Cryptopons.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;  
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; 
import 'erc721a/contracts/extensions/ERC721AQueryable.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol"; 
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {DefaultOperatorFilterer} from "../DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
 
error InvalidCall();

contract Cryptopons is  Ownable,AccessControl,ERC2981,ReentrancyGuard,ERC721AQueryable,DefaultOperatorFilterer{ 
  using Strings for uint256;
  struct NewCollection{ 
    uint256 supplies;
    uint256 startTokenID;
    uint256 endTokenID;
    string collectionName;
    string baseURI;
  }

  address public signer = 0x00A5bAc26C0BE6A598d0E524725C85ad8F188BaF;   
  bytes32 private constant _APPROVED_ROLE = keccak256("APPROVED_ROLE"); 
  uint16 public constant MAX_SUPPLY = 3333;  
  string private _baseTokenURI = "ipfs:///";    
  
  mapping(address => uint256) public minted; 
  mapping(uint256 => NewCollection) public newCollections;
  
  bool public isStartPublicSale = false; 
  bool public isStartWhiteListSale = false; 
  bool public isStartWaitListSale = false; 

  uint256 public maxPerWallet = 1; 
  uint256 public mintPrice = 0 ether;    
  uint256 public nextNewCollectionID = 1; 
  mapping(uint256 => string) customBaseUri; 

  constructor(
    string memory _tokenName,
    string memory _tokenSymbol
    )  ERC721A(_tokenName, _tokenSymbol) { 
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);  
    _safeMint(msg.sender, 1); // Setup 
    setRoyaltyInfo(0xE25345d9F65AB40B5F1aD5295d59a19D6D27fDDf, 750);
  } 

  function isApprovedForAll(
    address owner, 
    address operator
  ) public view override(ERC721A,IERC721A) returns(bool) {
    return hasRole(_APPROVED_ROLE, operator) 
      || super.isApprovedForAll(owner, operator);
  }  

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

  function tokenURI(uint256 tokenId) 
  public view virtual override(ERC721A,IERC721A) returns (string memory) {
    if(!_exists(tokenId)) revert InvalidCall();
 
    if (bytes(customBaseUri[tokenId]).length > 0) { 
        return customBaseUri[tokenId]; // Complete URL format
    }

    if(tokenId > MAX_SUPPLY){
        string memory newTokenURI = "";
        unchecked{ 
            for(uint256 i = 1 ; i < nextNewCollectionID ; i++){ 
                if(tokenId >= newCollections[i].startTokenID && tokenId <= newCollections[i].endTokenID){
                    newTokenURI = newCollections[i].baseURI;
                    break;
                }
            } 
        }
        return string(
            abi.encodePacked(newTokenURI, tokenId.toString(), ".json") // ipfs://newcollection/ format
        );
    }else{  
        return string( abi.encodePacked(_baseTokenURI, tokenId.toString(), ".json") );
    } 
  }  

  function mint(uint256 quantity) external payable nonReentrant {
    address recipient = _msgSender(); 
    if (recipient.code.length > 0 
      || !isStartPublicSale 
      || quantity == 0  
      || (quantity + minted[recipient]) > maxPerWallet 
      || (quantity * mintPrice) > msg.value 
      || (totalSupply() + quantity) > MAX_SUPPLY
    ) revert InvalidCall(); 
    minted[recipient] += quantity;
    _safeMint(recipient, quantity);
  } 

  function specialMint(
    uint256 quantity, 
    bytes memory proof
  ) external payable nonReentrant {
    address recipient = _msgSender(); 
    if (quantity == 0  
        || (!isStartWhiteListSale && !isStartWaitListSale)
        || (quantity + minted[recipient]) > maxPerWallet 
        || (quantity * mintPrice) > msg.value 
        || (totalSupply() + quantity) > MAX_SUPPLY 
        || ECDSA.recover( 
            ECDSA.toEthSignedMessageHash( 
            keccak256(abi.encodePacked("specialMint", recipient)) 
            ),  proof )  != signer
    ) revert InvalidCall(); 

    minted[recipient] += quantity;
    _safeMint(recipient, quantity);
  }  

  function setCustomBaseUri(uint256 _tokenID,string memory _customBaseUri,bytes memory _proof) external nonReentrant {
    if(!(owner() == msg.sender || ownerOf(_tokenID) == msg.sender)) revert InvalidCall(); 
    if(ECDSA.recover( 
      ECDSA.toEthSignedMessageHash( 
      keccak256(abi.encodePacked("setCustomBaseUri", _tokenID,_customBaseUri)) 
      ),  _proof )  != signer) revert InvalidCall(); 
    customBaseUri[_tokenID] = _customBaseUri;
  }

  function burnNFT(uint256 _tokenID,bytes memory _proof) external nonReentrant {
    if(!(owner() == msg.sender || ownerOf(_tokenID) == msg.sender)) revert InvalidCall(); 
    if(ECDSA.recover( 
      ECDSA.toEthSignedMessageHash( 
      keccak256(abi.encodePacked("burnNFT", _tokenID)) 
      ),  _proof )  != signer) revert InvalidCall(); 
    _burn(_tokenID);
  }

  function mintForAddress(
    address recipient,
    uint256 quantity
  ) external onlyOwner nonReentrant { 
    if (quantity == 0  
      || (totalSupply() + quantity) > MAX_SUPPLY
    ) revert InvalidCall();

    _safeMint(recipient, quantity);
  }
  
  function mintNewCollection( 
    address _recipient,
    uint256 _supplies,
    string memory _collectionName,
    string memory _baseURI
  ) external onlyOwner nonReentrant {   
    if(totalSupply() < MAX_SUPPLY) revert InvalidCall();
    if(address(0) == _recipient) revert InvalidCall();
    if(_supplies <= 0) revert InvalidCall();
    if(bytes(_baseURI).length <= 0) revert InvalidCall();
    if(bytes(_collectionName).length <= 0) revert InvalidCall();

    newCollections[nextNewCollectionID].collectionName = _collectionName;
    newCollections[nextNewCollectionID].supplies = _supplies;
    newCollections[nextNewCollectionID].baseURI = _baseURI;
    newCollections[nextNewCollectionID].startTokenID = totalSupply() + 1;
    newCollections[nextNewCollectionID].endTokenID = totalSupply() + _supplies;
    unchecked {
        nextNewCollectionID = nextNewCollectionID + 1;
    }
    _safeMint(_recipient, _supplies);
  }
  
  function modifyNewCollection( 
    uint256 _newCollectionID,
    string memory _collectionName,
    string memory _baseURI
  ) external onlyOwner nonReentrant { 
    if(newCollections[_newCollectionID].supplies <= 0) revert InvalidCall(); 
    if(bytes(_baseURI).length <= 0) revert InvalidCall();
    if(bytes(_collectionName).length <= 0) revert InvalidCall();

    newCollections[_newCollectionID].collectionName = _collectionName;
    newCollections[_newCollectionID].baseURI = _baseURI;
  }  

  function setSigner(address signer_) public onlyOwner{
      signer = signer_;
  } 

  function setBaseURI(string memory uri) external onlyOwner {
    _baseTokenURI = uri;
  } 
  
  function setMaxPerWallet(uint256 max) external onlyOwner {
    maxPerWallet = max;
  }  

  function setMintPrice(uint256 price) external onlyOwner {
    mintPrice = price;
  }  

  function setPausesStates(bool _isStartPublicSale,bool _isStartWhiteListSale,bool _isStartWaitListSale) 
  external onlyOwner {
    isStartPublicSale = _isStartPublicSale;
    isStartWhiteListSale = _isStartWhiteListSale;
    isStartWaitListSale = _isStartWaitListSale;
  }  
  
  function withdraw(address to) external onlyOwner nonReentrant {  
    payable(to).transfer(address(this).balance);
  }  

  function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner {
    _setDefaultRoyalty(_receiver, _royaltyFeesInBips);
  } 

  function supportsInterface(
    bytes4 interfaceId
  ) public view override(AccessControl,ERC2981, ERC721A, IERC721A) returns(bool) { 
    return interfaceId == type(IERC721Metadata).interfaceId  
      || interfaceId == 0x2a55205a 
      || super.supportsInterface(interfaceId);
  }
  
  function transferFrom(address from, address to, uint256 tokenId) public payable virtual override(ERC721A,IERC721A) onlyAllowedOperator {
      super.transferFrom(from, to, tokenId);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId) public payable virtual override(ERC721A,IERC721A) onlyAllowedOperator {
      super.safeTransferFrom(from, to, tokenId);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
      public payable virtual override(ERC721A,IERC721A)
      onlyAllowedOperator
  {
      super.safeTransferFrom(from, to, tokenId, data);
  } 
}

File 2 of 22 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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) public 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:
     *
     * - `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 3 of 22 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 4 of 22 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 5 of 22 : 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 6 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 8 of 22 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 9 of 22 : 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 10 of 22 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 {}

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

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 11 of 22 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 12 of 22 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator() virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }
}

File 13 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 14 of 22 : 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 15 of 22 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/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 paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 22 : 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 18 of 22 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 19 of 22 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 20 of 22 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {EnumerableSet} from "openzeppelin-contracts-1/utils/structs/EnumerableSet.sol";

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 21 of 22 : 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 22 of 22 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidCall","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"burnNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStartPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStartWaitListSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStartWhiteListSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_supplies","type":"uint256"},{"internalType":"string","name":"_collectionName","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"mintNewCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCollectionID","type":"uint256"},{"internalType":"string","name":"_collectionName","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"modifyNewCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"newCollections","outputs":[{"internalType":"uint256","name":"supplies","type":"uint256"},{"internalType":"uint256","name":"startTokenID","type":"uint256"},{"internalType":"uint256","name":"endTokenID","type":"uint256"},{"internalType":"string","name":"collectionName","type":"string"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextNewCollectionID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"payable","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":"payable","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"string","name":"_customBaseUri","type":"string"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"setCustomBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isStartPublicSale","type":"bool"},{"internalType":"bool","name":"_isStartWhiteListSale","type":"bool"},{"internalType":"bool","name":"_isStartWaitListSale","type":"bool"}],"name":"setPausesStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"specialMint","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600d80546001600160a01b03191672a5bac26c0be6a598d0e524725c85ad8f188baf17905560c06040526008608090815267697066733a2f2f2f60c01b60a052600e906200004e9082620007e6565b506011805462ffffff191690556001601281905560006013556014553480156200007757600080fd5b506040516200470a3803806200470a8339810160408190526200009a9162000969565b733cc6cdda760b79bafa08df41ecfa224f810dceb660018383620000be3362000274565b60016004556007620000d18382620007e6565b506008620000e08282620007e6565b50600160055550506daaeb6d7670e522a718067333cd4e3b156200022d5780156200017b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015c57600080fd5b505af115801562000171573d6000803e3d6000fd5b505050506200022d565b6001600160a01b03821615620001cc5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000141565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021357600080fd5b505af115801562000228573d6000803e3d6000fd5b505050505b506200023d9050600033620002c4565b6200024a336001620002d4565b6200026c73e25345d9f65ab40b5f1ad5295d59a19d6d27fddf6102ee620002f6565b505062000a5c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620002d082826200030c565b5050565b620002d08282604051806020016040528060008152506200039460201b60201c565b620003006200040b565b620002d082826200046d565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620002d05760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b620003a083836200056e565b6001600160a01b0383163b1562000406576005548281035b6001810190620003ce906000908790866200064e565b620003ec576040516368d2bf6b60e11b815260040160405180910390fd5b818110620003b85781600554146200040357600080fd5b50505b505050565b6000546001600160a01b031633146200046b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620004dd5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000462565b6001600160a01b038216620005355760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000462565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600255565b6005546000829003620005945760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000818152600a602090815260408083208054680100000000000000018802019055848352600990915281206001851460e11b4260a01b17831790558284019083908390600080516020620046ea8339815191528180a4600183015b818114620006235780836000600080516020620046ea833981519152600080a4600101620005fa565b50816000036200064557604051622e076360e81b815260040160405180910390fd5b60055550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000685903390899088908890600401620009d3565b6020604051808303816000875af1925050508015620006c3575060408051601f3d908101601f19168201909252620006c09181019062000a29565b60015b62000725573d808015620006f4576040519150601f19603f3d011682016040523d82523d6000602084013e620006f9565b606091505b5080516000036200071d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200076d57607f821691505b6020821081036200078e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040657600081815260208120601f850160051c81016020861015620007bd5750805b601f850160051c820191505b81811015620007de57828155600101620007c9565b505050505050565b81516001600160401b0381111562000802576200080262000742565b6200081a8162000813845462000758565b8462000794565b602080601f831160018114620008525760008415620008395750858301515b600019600386901b1c1916600185901b178555620007de565b600085815260208120601f198616915b82811015620008835788860151825594840194600190910190840162000862565b5085821015620008a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60005b83811015620008cf578181015183820152602001620008b5565b50506000910152565b600082601f830112620008ea57600080fd5b81516001600160401b038082111562000907576200090762000742565b604051601f8301601f19908116603f0116810190828211818310171562000932576200093262000742565b816040528381528660208588010111156200094c57600080fd5b6200095f846020830160208901620008b2565b9695505050505050565b600080604083850312156200097d57600080fd5b82516001600160401b03808211156200099557600080fd5b620009a386838701620008d8565b93506020850151915080821115620009ba57600080fd5b50620009c985828601620008d8565b9150509250929050565b600060018060a01b03808716835280861660208401525083604083015260806060830152825180608084015262000a128160a0850160208701620008b2565b601f01601f19169190910160a00195945050505050565b60006020828403121562000a3c57600080fd5b81516001600160e01b03198116811462000a5557600080fd5b9392505050565b613c7e8062000a6c6000396000f3fe6080604052600436106102ff5760003560e01c80636ce8263e11610190578063b88d4fde116100dc578063d6b40e2711610095578063f254933d1161006f578063f254933d14610926578063f2fde38b14610946578063f4a0a52814610966578063ff29fdaf1461098657600080fd5b8063d6b40e27146108c6578063e268e4d3146108e6578063e985e9c51461090657600080fd5b8063b88d4fde14610810578063b981842e14610823578063c23dc68f14610839578063c87b56dd14610866578063d3548f7414610886578063d547741f146108a657600080fd5b80638da5cb5b1161014957806399a2557a1161012357806399a2557a146107a8578063a0712d68146107c8578063a217fddf146107db578063a22cb465146107f057600080fd5b80638da5cb5b1461075557806391d148541461077357806395d89b411461079357600080fd5b80636ce8263e1461069357806370a08231146106b3578063715018a6146106d35780637704b793146106e85780638462151c14610708578063859a881f1461073557600080fd5b80632f2ff15d1161024f5780634e6b25f6116102085780635bbb2177116101e25780635bbb2177146106105780636352211e1461063d5780636817c76c1461065d5780636c19e7831461067357600080fd5b80634e6b25f6146105bd57806351cff8d9146105d057806355f804b3146105f057600080fd5b80632f2ff15d1461050b57806332cb6b0c1461052b57806336568abe14610554578063422d86a71461057457806342842e0e14610594578063453c2310146105a757600080fd5b806318160ddd116102bc578063238ac93311610296578063238ac9331461046857806323b872dd14610488578063248a9ca31461049b5780632a55205a146104cc57600080fd5b806318160ddd146103f95780631e7269c51461041c5780631fe4d4841461044957600080fd5b806301ffc9a71461030457806302fa7c4714610339578063036204741461035b57806306fdde031461038c578063081812fc146103ae578063095ea7b3146103e6575b600080fd5b34801561031057600080fd5b5061032461031f366004613156565b6109a0565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061035961035436600461318a565b6109e6565b005b34801561036757600080fd5b5061037b6103763660046131cd565b6109fc565b604051610330959493929190613236565b34801561039857600080fd5b506103a1610b3d565b6040516103309190613279565b3480156103ba57600080fd5b506103ce6103c93660046131cd565b610bcf565b6040516001600160a01b039091168152602001610330565b6103596103f436600461328c565b610c13565b34801561040557600080fd5b5061040e610cb3565b604051908152602001610330565b34801561042857600080fd5b5061040e6104373660046132b6565b600f6020526000908152604090205481565b34801561045557600080fd5b5060115461032490610100900460ff1681565b34801561047457600080fd5b50600d546103ce906001600160a01b031681565b6103596104963660046132d1565b610cc1565b3480156104a757600080fd5b5061040e6104b63660046131cd565b6000908152600160208190526040909120015490565b3480156104d857600080fd5b506104ec6104e736600461330d565b610d7f565b604080516001600160a01b039093168352602083019190915201610330565b34801561051757600080fd5b5061035961052636600461332f565b610e2d565b34801561053757600080fd5b50610541610d0581565b60405161ffff9091168152602001610330565b34801561056057600080fd5b5061035961056f36600461332f565b610e53565b34801561058057600080fd5b5061035961058f3660046133fd565b610ecd565b6103596105a23660046132d1565b611023565b3480156105b357600080fd5b5061040e60125481565b6103596105cb366004613469565b6110d7565b3480156105dc57600080fd5b506103596105eb3660046132b6565b611252565b3480156105fc57600080fd5b5061035961060b3660046134af565b6112bf565b34801561061c57600080fd5b5061063061062b3660046134e3565b6112d3565b6040516103309190613593565b34801561064957600080fd5b506103ce6106583660046131cd565b61139e565b34801561066957600080fd5b5061040e60135481565b34801561067f57600080fd5b5061035961068e3660046132b6565b6113a9565b34801561069f57600080fd5b506103596106ae3660046133fd565b6113d3565b3480156106bf57600080fd5b5061040e6106ce3660046132b6565b6114a9565b3480156106df57600080fd5b506103596114f7565b3480156106f457600080fd5b506011546103249062010000900460ff1681565b34801561071457600080fd5b506107286107233660046132b6565b61150b565b60405161033091906135d5565b34801561074157600080fd5b5061035961075036600461361b565b611613565b34801561076157600080fd5b506000546001600160a01b03166103ce565b34801561077f57600080fd5b5061032461078e36600461332f565b611654565b34801561079f57600080fd5b506103a161167f565b3480156107b457600080fd5b506107286107c3366004613666565b61168e565b6103596107d63660046131cd565b611815565b3480156107e757600080fd5b5061040e600081565b3480156107fc57600080fd5b5061035961080b366004613699565b611911565b61035961081e3660046136c5565b61197d565b34801561082f57600080fd5b5061040e60145481565b34801561084557600080fd5b506108596108543660046131cd565b611a38565b604051610330919061372c565b34801561087257600080fd5b506103a16108813660046131cd565b611ac0565b34801561089257600080fd5b506103596108a136600461373a565b611d17565b3480156108b257600080fd5b506103596108c136600461332f565b611eac565b3480156108d257600080fd5b506103596108e1366004613469565b611ed2565b3480156108f257600080fd5b506103596109013660046131cd565b611fb7565b34801561091257600080fd5b506103246109213660046137ab565b611fc4565b34801561093257600080fd5b5061035961094136600461328c565b612024565b34801561095257600080fd5b506103596109613660046132b6565b61209b565b34801561097257600080fd5b506103596109813660046131cd565b612114565b34801561099257600080fd5b506011546103249060ff1681565b60006001600160e01b03198216635b5e139f60e01b14806109d1575063152a902d60e11b6001600160e01b03198316145b806109e057506109e082612121565b92915050565b6109ee61216f565b6109f882826121c9565b5050565b601060205260009081526040902080546001820154600283015460038401805493949293919291610a2c906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a58906137d5565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b505050505090806004018054610aba906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae6906137d5565b8015610b335780601f10610b0857610100808354040283529160200191610b33565b820191906000526020600020905b815481529060010190602001808311610b1657829003601f168201915b5050505050905085565b606060078054610b4c906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b78906137d5565b8015610bc55780601f10610b9a57610100808354040283529160200191610bc5565b820191906000526020600020905b815481529060010190602001808311610ba857829003601f168201915b5050505050905090565b6000610bda826122c6565b610bf7576040516333d1c03960e21b815260040160405180910390fd5b506000908152600b60205260409020546001600160a01b031690565b6000610c1e8261139e565b9050336001600160a01b03821614610c5757610c3a8133611fc4565b610c57576040516367d9dca160e11b815260040160405180910390fd5b6000828152600b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600654600554036000190190565b6daaeb6d7670e522a718067333cd4e3b15610d6f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b919061380f565b610d6f57604051633b79c77360e21b81523360048201526024015b60405180910390fd5b610d7a8383836122fb565b505050565b60008281526003602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610df45750604080518082019091526002546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e13906001600160601b031687613842565b610e1d9190613877565b91519350909150505b9250929050565b60008281526001602081905260409091200154610e498161248c565b610d7a8383612496565b6001600160a01b0381163314610ec35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d66565b6109f88282612501565b600260045403610eef5760405162461bcd60e51b8152600401610d669061388b565b600260045533610f076000546001600160a01b031690565b6001600160a01b03161480610f2c575033610f218461139e565b6001600160a01b0316145b610f495760405163574b16a760e11b815260040160405180910390fd5b600d546040516001600160a01b0390911690610fd990610fd390610f7390879087906020016138c2565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b83612568565b6001600160a01b0316146110005760405163574b16a760e11b815260040160405180910390fd5b60008381526015602052604090206110188382613947565b505060016004555050565b6daaeb6d7670e522a718067333cd4e3b156110cc57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611089573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ad919061380f565b6110cc57604051633b79c77360e21b8152336004820152602401610d66565b610d7a83838361258c565b6002600454036110f95760405162461bcd60e51b8152600401610d669061388b565b6002600455338215806111285750601154610100900460ff16158015611128575060115462010000900460ff16155b8061115657506012546001600160a01b0382166000908152600f60205260409020546111549085613a06565b115b8061116d5750346013548461116b9190613842565b115b8061118b5750610d058361117f610cb3565b6111899190613a06565b115b806111f25750600d546040516a1cdc1958da585b135a5b9d60aa1b60208201526bffffffffffffffffffffffff19606084901b16602b8201526001600160a01b03909116906111e6906111e090603f01610f73565b84612568565b6001600160a01b031614155b156112105760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604081208054859290611238908490613a06565b90915550611248905081846125a7565b5050600160045550565b61125a61216f565b60026004540361127c5760405162461bcd60e51b8152600401610d669061388b565b60026004556040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112b6573d6000803e3d6000fd5b50506001600455565b6112c761216f565b600e6109f88282613947565b6060816000816001600160401b038111156112f0576112f061335b565b60405190808252806020026020018201604052801561134257816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161130e5790505b50905060005b8281146113955761137086868381811061136457611364613a19565b90506020020135611a38565b82828151811061138257611382613a19565b6020908102919091010152600101611348565b50949350505050565b60006109e0826125c1565b6113b161216f565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6113db61216f565b6002600454036113fd5760405162461bcd60e51b8152600401610d669061388b565b600260045560008381526010602052604090205461142e5760405163574b16a760e11b815260040160405180910390fd5b60008151116114505760405163574b16a760e11b815260040160405180910390fd5b60008251116114725760405163574b16a760e11b815260040160405180910390fd5b600083815260106020526040902060030161148d8382613947565b5060008381526010602052604090206004016110188282613947565b60006001600160a01b0382166114d2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600a60205260409020546001600160401b031690565b6114ff61216f565b6115096000612630565b565b6060600080600061151b856114a9565b90506000816001600160401b038111156115375761153761335b565b604051908082528060200260200182016040528015611560578160200160208202803683370190505b50905061158d60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611607576115a081612680565b915081604001516115ff5781516001600160a01b0316156115c057815194505b876001600160a01b0316856001600160a01b0316036115ff57808387806001019850815181106115f2576115f2613a19565b6020026020010181815250505b600101611590565b50909695505050505050565b61161b61216f565b6011805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060088054610b4c906137d5565b60608183106116b057604051631960ccad60e11b815260040160405180910390fd5b6000806116bc60055490565b905060018510156116cc57600194505b808411156116d8578093505b60006116e3876114a9565b90508486101561170257858503818110156116fc578091505b50611706565b5060005b6000816001600160401b038111156117205761172061335b565b604051908082528060200260200182016040528015611749578160200160208202803683370190505b5090508160000361175f57935061180e92505050565b600061176a88611a38565b90506000816040015161177b575080515b885b88811415801561178d5750848714155b156118025761179b81612680565b925082604001516117fa5782516001600160a01b0316156117bb57825191505b8a6001600160a01b0316826001600160a01b0316036117fa57808488806001019950815181106117ed576117ed613a19565b6020026020010181815250505b60010161177d565b50505092835250909150505b9392505050565b6002600454036118375760405162461bcd60e51b8152600401610d669061388b565b600260045533803b15158061184f575060115460ff16155b80611858575081155b8061188657506012546001600160a01b0382166000908152600f60205260409020546118849084613a06565b115b8061189d5750346013548361189b9190613842565b115b806118bb5750610d05826118af610cb3565b6118b99190613a06565b115b156118d95760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604081208054849290611901908490613a06565b909155506112b6905081836125a7565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6daaeb6d7670e522a718067333cd4e3b15611a2657604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a07919061380f565b611a2657604051633b79c77360e21b8152336004820152602401610d66565b611a32848484846126bc565b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611a9157506005548310155b15611a9c5792915050565b611aa583612680565b9050806040015115611ab75792915050565b61180e83612700565b6060611acb826122c6565b611ae85760405163574b16a760e11b815260040160405180910390fd5b60008281526015602052604081208054611b01906137d5565b90501115611ba75760008281526015602052604090208054611b22906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4e906137d5565b8015611b9b5780601f10611b7057610100808354040283529160200191611b9b565b820191906000526020600020905b815481529060010190602001808311611b7e57829003601f168201915b50505050509050919050565b610d05821115611ce05760408051602081019091526000815260015b601454811015611cad576000818152601060205260409020600101548410801590611bff57506000818152601060205260409020600201548411155b15611ca55760008181526010602052604090206004018054611c20906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4c906137d5565b8015611c995780601f10611c6e57610100808354040283529160200191611c99565b820191906000526020600020905b815481529060010190602001808311611c7c57829003601f168201915b50505050509150611cad565b600101611bc3565b5080611cb884612735565b604051602001611cc9929190613a2f565b604051602081830303815290604052915050919050565b600e611ceb83612735565b604051602001611cfc929190613a6e565b6040516020818303038152906040529050919050565b919050565b611d1f61216f565b600260045403611d415760405162461bcd60e51b8152600401610d669061388b565b6002600455610d05611d51610cb3565b1015611d705760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b038416600003611d9a5760405163574b16a760e11b815260040160405180910390fd5b60008311611dbb5760405163574b16a760e11b815260040160405180910390fd5b6000815111611ddd5760405163574b16a760e11b815260040160405180910390fd5b6000825111611dff5760405163574b16a760e11b815260040160405180910390fd5b6014546000908152601060205260409020600301611e1d8382613947565b50601480546000908152601060205260408082208690559154815220600401611e468282613947565b50611e4f610cb3565b611e5a906001613a06565b60145460009081526010602052604090206001015582611e78610cb3565b611e829190613a06565b601480546000908152601060205260409020600201919091558054600101905561101884846125a7565b60008281526001602081905260409091200154611ec88161248c565b610d7a8383612501565b600260045403611ef45760405162461bcd60e51b8152600401610d669061388b565b600260045533611f0c6000546001600160a01b031690565b6001600160a01b03161480611f31575033611f268361139e565b6001600160a01b0316145b611f4e5760405163574b16a760e11b815260040160405180910390fd5b600d5460405166189d5c9b93919560ca1b6020820152602781018490526001600160a01b0390911690611f8790610fd390604701610f73565b6001600160a01b031614611fae5760405163574b16a760e11b815260040160405180910390fd5b6112b68261283d565b611fbf61216f565b601255565b6000611ff07f4a0c3698e72495f6d49f6ef074f2b34cac5b153c817a7cc37789cccbb873cf5d83611654565b8061180e57506001600160a01b038084166000908152600c602090815260408083209386168352929052205460ff1661180e565b61202c61216f565b60026004540361204e5760405162461bcd60e51b8152600401610d669061388b565b60026004558015806120735750610d0581612067610cb3565b6120719190613a06565b115b156120915760405163574b16a760e11b815260040160405180910390fd5b6112b682826125a7565b6120a361216f565b6001600160a01b0381166121085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d66565b61211181612630565b50565b61211c61216f565b601355565b60006301ffc9a760e01b6001600160e01b03198316148061215257506380ac58cd60e01b6001600160e01b03198316145b806109e05750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b031633146115095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d66565b6127106001600160601b03821611156122375760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d66565b6001600160a01b03821661228d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d66565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600255565b6000816001111580156122da575060055482105b80156109e0575050600090815260096020526040902054600160e01b161590565b6000612306826125c1565b9050836001600160a01b0316816001600160a01b0316146123395760405162a1148160e81b815260040160405180910390fd5b6000828152600b6020526040902080546123658187335b6001600160a01b039081169116811491141790565b612390576123738633611fc4565b61239057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123b757604051633a954ecd60e21b815260040160405180910390fd5b80156123c257600082555b6001600160a01b038681166000908152600a60205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260096020526040812091909155600160e11b84169003612454576001840160008181526009602052604081205490036124525760055481146124525760008181526009602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613c2983398151915260405160405180910390a45b505050505050565b6121118133612848565b6124a08282611654565b6109f85760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b61250b8282611654565b156109f85760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080600061257785856128ac565b9150915061258481612917565b509392505050565b610d7a8383836040518060200160405280600081525061197d565b6109f8828260405180602001604052806000815250612acd565b60008180600111612617576005548110156126175760008181526009602052604081205490600160e01b82169003612615575b8060000361180e5750600019016000818152600960205260409020546125f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600960205260409020546109e090612b3a565b6126c7848484610cc1565b6001600160a01b0383163b15611a32576126e384848484612b81565b611a32576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526109e0612730836125c1565b612b3a565b60608160000361275c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612786578061277081613aec565b915061277f9050600a83613877565b9150612760565b6000816001600160401b038111156127a0576127a061335b565b6040519080825280601f01601f1916602001820160405280156127ca576020820181803683370190505b5090505b8415612835576127df600183613b05565b91506127ec600a86613b18565b6127f7906030613a06565b60f81b81838151811061280c5761280c613a19565b60200101906001600160f81b031916908160001a90535061282e600a86613877565b94506127ce565b949350505050565b612111816000612c6c565b6128528282611654565b6109f85761286a816001600160a01b03166014612da5565b612875836020612da5565b604051602001612886929190613b2c565b60408051601f198184030181529082905262461bcd60e51b8252610d6691600401613279565b60008082516041036128e25760208301516040840151606085015160001a6128d687828585612f40565b94509450505050610e26565b825160400361290b576020830151604084015161290086838361302d565b935093505050610e26565b50600090506002610e26565b600081600481111561292b5761292b613ba1565b036129335750565b600181600481111561294757612947613ba1565b036129945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d66565b60028160048111156129a8576129a8613ba1565b036129f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d66565b6003816004811115612a0957612a09613ba1565b03612a615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d66565b6004816004811115612a7557612a75613ba1565b036121115760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d66565b612ad78383613066565b6001600160a01b0383163b15610d7a576005548281035b612b016000868380600101945086612b81565b612b1e576040516368d2bf6b60e11b815260040160405180910390fd5b818110612aee578160055414612b3357600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bb6903390899088908890600401613bb7565b6020604051808303816000875af1925050508015612bf1575060408051601f3d908101601f19168201909252612bee91810190613bf4565b60015b612c4f573d808015612c1f576040519150601f19603f3d011682016040523d82523d6000602084013e612c24565b606091505b508051600003612c47576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000612c77836125c1565b905080600080612c95866000908152600b6020526040902080549091565b915091508415612cd557612caa818433612350565b612cd557612cb88333611fc4565b612cd557604051632ce44b5f60e11b815260040160405180910390fd5b8015612ce057600082555b6001600160a01b0383166000818152600a6020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260096020526040812091909155600160e11b85169003612d6e57600186016000818152600960205260408120549003612d6c576005548114612d6c5760008181526009602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613c29833981519152908390a4505060068054600101905550505050565b60606000612db4836002613842565b612dbf906002613a06565b6001600160401b03811115612dd657612dd661335b565b6040519080825280601f01601f191660200182016040528015612e00576020820181803683370190505b509050600360fc1b81600081518110612e1b57612e1b613a19565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612e4a57612e4a613a19565b60200101906001600160f81b031916908160001a9053506000612e6e846002613842565b612e79906001613a06565b90505b6001811115612ef1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ead57612ead613a19565b1a60f81b828281518110612ec357612ec3613a19565b60200101906001600160f81b031916908160001a90535060049490941c93612eea81613c11565b9050612e7c565b50831561180e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d66565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f775750600090506003613024565b8460ff16601b14158015612f8f57508460ff16601c14155b15612fa05750600090506004613024565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ff4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661301d57600060019250925050613024565b9150600090505b94509492505050565b6000806001600160ff1b0383168161304a60ff86901c601b613a06565b905061305887828885612f40565b935093505050935093915050565b600554600082900361308b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000818152600a602090815260408083208054680100000000000000018802019055848352600990915281206001851460e11b4260a01b17831790558284019083908390600080516020613c298339815191528180a4600183015b8181146131165780836000600080516020613c29833981519152600080a46001016130f0565b508160000361313757604051622e076360e81b815260040160405180910390fd5b60055550505050565b6001600160e01b03198116811461211157600080fd5b60006020828403121561316857600080fd5b813561180e81613140565b80356001600160a01b0381168114611d1257600080fd5b6000806040838503121561319d57600080fd5b6131a683613173565b915060208301356001600160601b03811681146131c257600080fd5b809150509250929050565b6000602082840312156131df57600080fd5b5035919050565b60005b838110156132015781810151838201526020016131e9565b50506000910152565b600081518084526132228160208601602086016131e6565b601f01601f19169290920160200192915050565b85815284602082015283604082015260a06060820152600061325b60a083018561320a565b828103608084015261326d818561320a565b98975050505050505050565b60208152600061180e602083018461320a565b6000806040838503121561329f57600080fd5b6132a883613173565b946020939093013593505050565b6000602082840312156132c857600080fd5b61180e82613173565b6000806000606084860312156132e657600080fd5b6132ef84613173565b92506132fd60208501613173565b9150604084013590509250925092565b6000806040838503121561332057600080fd5b50508035926020909101359150565b6000806040838503121561334257600080fd5b8235915061335260208401613173565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261338257600080fd5b81356001600160401b038082111561339c5761339c61335b565b604051601f8301601f19908116603f011681019082821181831017156133c4576133c461335b565b816040528381528660208588010111156133dd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561341257600080fd5b8335925060208401356001600160401b038082111561343057600080fd5b61343c87838801613371565b9350604086013591508082111561345257600080fd5b5061345f86828701613371565b9150509250925092565b6000806040838503121561347c57600080fd5b8235915060208301356001600160401b0381111561349957600080fd5b6134a585828601613371565b9150509250929050565b6000602082840312156134c157600080fd5b81356001600160401b038111156134d757600080fd5b61283584828501613371565b600080602083850312156134f657600080fd5b82356001600160401b038082111561350d57600080fd5b818501915085601f83011261352157600080fd5b81358181111561353057600080fd5b8660208260051b850101111561354557600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611607576135c2838551613557565b92840192608092909201916001016135af565b6020808252825182820181905260009190848201906040850190845b81811015611607578351835292840192918401916001016135f1565b801515811461211157600080fd5b60008060006060848603121561363057600080fd5b833561363b8161360d565b9250602084013561364b8161360d565b9150604084013561365b8161360d565b809150509250925092565b60008060006060848603121561367b57600080fd5b61368484613173565b95602085013595506040909401359392505050565b600080604083850312156136ac57600080fd5b6136b583613173565b915060208301356131c28161360d565b600080600080608085870312156136db57600080fd5b6136e485613173565b93506136f260208601613173565b92506040850135915060608501356001600160401b0381111561371457600080fd5b61372087828801613371565b91505092959194509250565b608081016109e08284613557565b6000806000806080858703121561375057600080fd5b61375985613173565b93506020850135925060408501356001600160401b038082111561377c57600080fd5b61378888838901613371565b9350606087013591508082111561379e57600080fd5b5061372087828801613371565b600080604083850312156137be57600080fd5b6137c783613173565b915061335260208401613173565b600181811c908216806137e957607f821691505b60208210810361380957634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561382157600080fd5b815161180e8161360d565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561385c5761385c61382c565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261388657613886613861565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6f736574437573746f6d4261736555726960801b8152826010820152600082516138f38160308501602087016131e6565b919091016030019392505050565b601f821115610d7a57600081815260208120601f850160051c810160208610156139285750805b601f850160051c820191505b8181101561248457828155600101613934565b81516001600160401b038111156139605761396061335b565b6139748161396e84546137d5565b84613901565b602080601f8311600181146139a957600084156139915750858301515b600019600386901b1c1916600185901b178555612484565b600085815260208120601f198616915b828110156139d8578886015182559484019460019091019084016139b9565b50858210156139f65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156109e0576109e061382c565b634e487b7160e01b600052603260045260246000fd5b60008351613a418184602088016131e6565b835190830190613a558183602088016131e6565b64173539b7b760d91b9101908152600501949350505050565b6000808454613a7c816137d5565b60018281168015613a945760018114613aa957613ad8565b60ff1984168752821515830287019450613ad8565b8860005260208060002060005b85811015613acf5781548a820152908401908201613ab6565b50505082870194505b505050508351613a558183602088016131e6565b600060018201613afe57613afe61382c565b5060010190565b818103818111156109e0576109e061382c565b600082613b2757613b27613861565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613b648160178501602088016131e6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613b958160288401602088016131e6565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bea9083018461320a565b9695505050505050565b600060208284031215613c0657600080fd5b815161180e81613140565b600081613c2057613c2061382c565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a2fa77f3f46680e1e9629168a4d3a7c0ae3f742f54027bab8534fc970d3cdf9864736f6c63430008100033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a43727970746f506f6e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034354500000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80636ce8263e11610190578063b88d4fde116100dc578063d6b40e2711610095578063f254933d1161006f578063f254933d14610926578063f2fde38b14610946578063f4a0a52814610966578063ff29fdaf1461098657600080fd5b8063d6b40e27146108c6578063e268e4d3146108e6578063e985e9c51461090657600080fd5b8063b88d4fde14610810578063b981842e14610823578063c23dc68f14610839578063c87b56dd14610866578063d3548f7414610886578063d547741f146108a657600080fd5b80638da5cb5b1161014957806399a2557a1161012357806399a2557a146107a8578063a0712d68146107c8578063a217fddf146107db578063a22cb465146107f057600080fd5b80638da5cb5b1461075557806391d148541461077357806395d89b411461079357600080fd5b80636ce8263e1461069357806370a08231146106b3578063715018a6146106d35780637704b793146106e85780638462151c14610708578063859a881f1461073557600080fd5b80632f2ff15d1161024f5780634e6b25f6116102085780635bbb2177116101e25780635bbb2177146106105780636352211e1461063d5780636817c76c1461065d5780636c19e7831461067357600080fd5b80634e6b25f6146105bd57806351cff8d9146105d057806355f804b3146105f057600080fd5b80632f2ff15d1461050b57806332cb6b0c1461052b57806336568abe14610554578063422d86a71461057457806342842e0e14610594578063453c2310146105a757600080fd5b806318160ddd116102bc578063238ac93311610296578063238ac9331461046857806323b872dd14610488578063248a9ca31461049b5780632a55205a146104cc57600080fd5b806318160ddd146103f95780631e7269c51461041c5780631fe4d4841461044957600080fd5b806301ffc9a71461030457806302fa7c4714610339578063036204741461035b57806306fdde031461038c578063081812fc146103ae578063095ea7b3146103e6575b600080fd5b34801561031057600080fd5b5061032461031f366004613156565b6109a0565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061035961035436600461318a565b6109e6565b005b34801561036757600080fd5b5061037b6103763660046131cd565b6109fc565b604051610330959493929190613236565b34801561039857600080fd5b506103a1610b3d565b6040516103309190613279565b3480156103ba57600080fd5b506103ce6103c93660046131cd565b610bcf565b6040516001600160a01b039091168152602001610330565b6103596103f436600461328c565b610c13565b34801561040557600080fd5b5061040e610cb3565b604051908152602001610330565b34801561042857600080fd5b5061040e6104373660046132b6565b600f6020526000908152604090205481565b34801561045557600080fd5b5060115461032490610100900460ff1681565b34801561047457600080fd5b50600d546103ce906001600160a01b031681565b6103596104963660046132d1565b610cc1565b3480156104a757600080fd5b5061040e6104b63660046131cd565b6000908152600160208190526040909120015490565b3480156104d857600080fd5b506104ec6104e736600461330d565b610d7f565b604080516001600160a01b039093168352602083019190915201610330565b34801561051757600080fd5b5061035961052636600461332f565b610e2d565b34801561053757600080fd5b50610541610d0581565b60405161ffff9091168152602001610330565b34801561056057600080fd5b5061035961056f36600461332f565b610e53565b34801561058057600080fd5b5061035961058f3660046133fd565b610ecd565b6103596105a23660046132d1565b611023565b3480156105b357600080fd5b5061040e60125481565b6103596105cb366004613469565b6110d7565b3480156105dc57600080fd5b506103596105eb3660046132b6565b611252565b3480156105fc57600080fd5b5061035961060b3660046134af565b6112bf565b34801561061c57600080fd5b5061063061062b3660046134e3565b6112d3565b6040516103309190613593565b34801561064957600080fd5b506103ce6106583660046131cd565b61139e565b34801561066957600080fd5b5061040e60135481565b34801561067f57600080fd5b5061035961068e3660046132b6565b6113a9565b34801561069f57600080fd5b506103596106ae3660046133fd565b6113d3565b3480156106bf57600080fd5b5061040e6106ce3660046132b6565b6114a9565b3480156106df57600080fd5b506103596114f7565b3480156106f457600080fd5b506011546103249062010000900460ff1681565b34801561071457600080fd5b506107286107233660046132b6565b61150b565b60405161033091906135d5565b34801561074157600080fd5b5061035961075036600461361b565b611613565b34801561076157600080fd5b506000546001600160a01b03166103ce565b34801561077f57600080fd5b5061032461078e36600461332f565b611654565b34801561079f57600080fd5b506103a161167f565b3480156107b457600080fd5b506107286107c3366004613666565b61168e565b6103596107d63660046131cd565b611815565b3480156107e757600080fd5b5061040e600081565b3480156107fc57600080fd5b5061035961080b366004613699565b611911565b61035961081e3660046136c5565b61197d565b34801561082f57600080fd5b5061040e60145481565b34801561084557600080fd5b506108596108543660046131cd565b611a38565b604051610330919061372c565b34801561087257600080fd5b506103a16108813660046131cd565b611ac0565b34801561089257600080fd5b506103596108a136600461373a565b611d17565b3480156108b257600080fd5b506103596108c136600461332f565b611eac565b3480156108d257600080fd5b506103596108e1366004613469565b611ed2565b3480156108f257600080fd5b506103596109013660046131cd565b611fb7565b34801561091257600080fd5b506103246109213660046137ab565b611fc4565b34801561093257600080fd5b5061035961094136600461328c565b612024565b34801561095257600080fd5b506103596109613660046132b6565b61209b565b34801561097257600080fd5b506103596109813660046131cd565b612114565b34801561099257600080fd5b506011546103249060ff1681565b60006001600160e01b03198216635b5e139f60e01b14806109d1575063152a902d60e11b6001600160e01b03198316145b806109e057506109e082612121565b92915050565b6109ee61216f565b6109f882826121c9565b5050565b601060205260009081526040902080546001820154600283015460038401805493949293919291610a2c906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a58906137d5565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b505050505090806004018054610aba906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae6906137d5565b8015610b335780601f10610b0857610100808354040283529160200191610b33565b820191906000526020600020905b815481529060010190602001808311610b1657829003601f168201915b5050505050905085565b606060078054610b4c906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b78906137d5565b8015610bc55780601f10610b9a57610100808354040283529160200191610bc5565b820191906000526020600020905b815481529060010190602001808311610ba857829003601f168201915b5050505050905090565b6000610bda826122c6565b610bf7576040516333d1c03960e21b815260040160405180910390fd5b506000908152600b60205260409020546001600160a01b031690565b6000610c1e8261139e565b9050336001600160a01b03821614610c5757610c3a8133611fc4565b610c57576040516367d9dca160e11b815260040160405180910390fd5b6000828152600b602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600654600554036000190190565b6daaeb6d7670e522a718067333cd4e3b15610d6f57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4b919061380f565b610d6f57604051633b79c77360e21b81523360048201526024015b60405180910390fd5b610d7a8383836122fb565b505050565b60008281526003602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610df45750604080518082019091526002546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e13906001600160601b031687613842565b610e1d9190613877565b91519350909150505b9250929050565b60008281526001602081905260409091200154610e498161248c565b610d7a8383612496565b6001600160a01b0381163314610ec35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d66565b6109f88282612501565b600260045403610eef5760405162461bcd60e51b8152600401610d669061388b565b600260045533610f076000546001600160a01b031690565b6001600160a01b03161480610f2c575033610f218461139e565b6001600160a01b0316145b610f495760405163574b16a760e11b815260040160405180910390fd5b600d546040516001600160a01b0390911690610fd990610fd390610f7390879087906020016138c2565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b83612568565b6001600160a01b0316146110005760405163574b16a760e11b815260040160405180910390fd5b60008381526015602052604090206110188382613947565b505060016004555050565b6daaeb6d7670e522a718067333cd4e3b156110cc57604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611089573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ad919061380f565b6110cc57604051633b79c77360e21b8152336004820152602401610d66565b610d7a83838361258c565b6002600454036110f95760405162461bcd60e51b8152600401610d669061388b565b6002600455338215806111285750601154610100900460ff16158015611128575060115462010000900460ff16155b8061115657506012546001600160a01b0382166000908152600f60205260409020546111549085613a06565b115b8061116d5750346013548461116b9190613842565b115b8061118b5750610d058361117f610cb3565b6111899190613a06565b115b806111f25750600d546040516a1cdc1958da585b135a5b9d60aa1b60208201526bffffffffffffffffffffffff19606084901b16602b8201526001600160a01b03909116906111e6906111e090603f01610f73565b84612568565b6001600160a01b031614155b156112105760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604081208054859290611238908490613a06565b90915550611248905081846125a7565b5050600160045550565b61125a61216f565b60026004540361127c5760405162461bcd60e51b8152600401610d669061388b565b60026004556040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112b6573d6000803e3d6000fd5b50506001600455565b6112c761216f565b600e6109f88282613947565b6060816000816001600160401b038111156112f0576112f061335b565b60405190808252806020026020018201604052801561134257816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161130e5790505b50905060005b8281146113955761137086868381811061136457611364613a19565b90506020020135611a38565b82828151811061138257611382613a19565b6020908102919091010152600101611348565b50949350505050565b60006109e0826125c1565b6113b161216f565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6113db61216f565b6002600454036113fd5760405162461bcd60e51b8152600401610d669061388b565b600260045560008381526010602052604090205461142e5760405163574b16a760e11b815260040160405180910390fd5b60008151116114505760405163574b16a760e11b815260040160405180910390fd5b60008251116114725760405163574b16a760e11b815260040160405180910390fd5b600083815260106020526040902060030161148d8382613947565b5060008381526010602052604090206004016110188282613947565b60006001600160a01b0382166114d2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600a60205260409020546001600160401b031690565b6114ff61216f565b6115096000612630565b565b6060600080600061151b856114a9565b90506000816001600160401b038111156115375761153761335b565b604051908082528060200260200182016040528015611560578160200160208202803683370190505b50905061158d60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611607576115a081612680565b915081604001516115ff5781516001600160a01b0316156115c057815194505b876001600160a01b0316856001600160a01b0316036115ff57808387806001019850815181106115f2576115f2613a19565b6020026020010181815250505b600101611590565b50909695505050505050565b61161b61216f565b6011805461ffff191693151561ff00191693909317610100921515929092029190911762ff000019166201000091151591909102179055565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060088054610b4c906137d5565b60608183106116b057604051631960ccad60e11b815260040160405180910390fd5b6000806116bc60055490565b905060018510156116cc57600194505b808411156116d8578093505b60006116e3876114a9565b90508486101561170257858503818110156116fc578091505b50611706565b5060005b6000816001600160401b038111156117205761172061335b565b604051908082528060200260200182016040528015611749578160200160208202803683370190505b5090508160000361175f57935061180e92505050565b600061176a88611a38565b90506000816040015161177b575080515b885b88811415801561178d5750848714155b156118025761179b81612680565b925082604001516117fa5782516001600160a01b0316156117bb57825191505b8a6001600160a01b0316826001600160a01b0316036117fa57808488806001019950815181106117ed576117ed613a19565b6020026020010181815250505b60010161177d565b50505092835250909150505b9392505050565b6002600454036118375760405162461bcd60e51b8152600401610d669061388b565b600260045533803b15158061184f575060115460ff16155b80611858575081155b8061188657506012546001600160a01b0382166000908152600f60205260409020546118849084613a06565b115b8061189d5750346013548361189b9190613842565b115b806118bb5750610d05826118af610cb3565b6118b99190613a06565b115b156118d95760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604081208054849290611901908490613a06565b909155506112b6905081836125a7565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6daaeb6d7670e522a718067333cd4e3b15611a2657604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a07919061380f565b611a2657604051633b79c77360e21b8152336004820152602401610d66565b611a32848484846126bc565b50505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611a9157506005548310155b15611a9c5792915050565b611aa583612680565b9050806040015115611ab75792915050565b61180e83612700565b6060611acb826122c6565b611ae85760405163574b16a760e11b815260040160405180910390fd5b60008281526015602052604081208054611b01906137d5565b90501115611ba75760008281526015602052604090208054611b22906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4e906137d5565b8015611b9b5780601f10611b7057610100808354040283529160200191611b9b565b820191906000526020600020905b815481529060010190602001808311611b7e57829003601f168201915b50505050509050919050565b610d05821115611ce05760408051602081019091526000815260015b601454811015611cad576000818152601060205260409020600101548410801590611bff57506000818152601060205260409020600201548411155b15611ca55760008181526010602052604090206004018054611c20906137d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611c4c906137d5565b8015611c995780601f10611c6e57610100808354040283529160200191611c99565b820191906000526020600020905b815481529060010190602001808311611c7c57829003601f168201915b50505050509150611cad565b600101611bc3565b5080611cb884612735565b604051602001611cc9929190613a2f565b604051602081830303815290604052915050919050565b600e611ceb83612735565b604051602001611cfc929190613a6e565b6040516020818303038152906040529050919050565b919050565b611d1f61216f565b600260045403611d415760405162461bcd60e51b8152600401610d669061388b565b6002600455610d05611d51610cb3565b1015611d705760405163574b16a760e11b815260040160405180910390fd5b6001600160a01b038416600003611d9a5760405163574b16a760e11b815260040160405180910390fd5b60008311611dbb5760405163574b16a760e11b815260040160405180910390fd5b6000815111611ddd5760405163574b16a760e11b815260040160405180910390fd5b6000825111611dff5760405163574b16a760e11b815260040160405180910390fd5b6014546000908152601060205260409020600301611e1d8382613947565b50601480546000908152601060205260408082208690559154815220600401611e468282613947565b50611e4f610cb3565b611e5a906001613a06565b60145460009081526010602052604090206001015582611e78610cb3565b611e829190613a06565b601480546000908152601060205260409020600201919091558054600101905561101884846125a7565b60008281526001602081905260409091200154611ec88161248c565b610d7a8383612501565b600260045403611ef45760405162461bcd60e51b8152600401610d669061388b565b600260045533611f0c6000546001600160a01b031690565b6001600160a01b03161480611f31575033611f268361139e565b6001600160a01b0316145b611f4e5760405163574b16a760e11b815260040160405180910390fd5b600d5460405166189d5c9b93919560ca1b6020820152602781018490526001600160a01b0390911690611f8790610fd390604701610f73565b6001600160a01b031614611fae5760405163574b16a760e11b815260040160405180910390fd5b6112b68261283d565b611fbf61216f565b601255565b6000611ff07f4a0c3698e72495f6d49f6ef074f2b34cac5b153c817a7cc37789cccbb873cf5d83611654565b8061180e57506001600160a01b038084166000908152600c602090815260408083209386168352929052205460ff1661180e565b61202c61216f565b60026004540361204e5760405162461bcd60e51b8152600401610d669061388b565b60026004558015806120735750610d0581612067610cb3565b6120719190613a06565b115b156120915760405163574b16a760e11b815260040160405180910390fd5b6112b682826125a7565b6120a361216f565b6001600160a01b0381166121085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d66565b61211181612630565b50565b61211c61216f565b601355565b60006301ffc9a760e01b6001600160e01b03198316148061215257506380ac58cd60e01b6001600160e01b03198316145b806109e05750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b031633146115095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d66565b6127106001600160601b03821611156122375760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d66565b6001600160a01b03821661228d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d66565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600255565b6000816001111580156122da575060055482105b80156109e0575050600090815260096020526040902054600160e01b161590565b6000612306826125c1565b9050836001600160a01b0316816001600160a01b0316146123395760405162a1148160e81b815260040160405180910390fd5b6000828152600b6020526040902080546123658187335b6001600160a01b039081169116811491141790565b612390576123738633611fc4565b61239057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123b757604051633a954ecd60e21b815260040160405180910390fd5b80156123c257600082555b6001600160a01b038681166000908152600a60205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260096020526040812091909155600160e11b84169003612454576001840160008181526009602052604081205490036124525760055481146124525760008181526009602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613c2983398151915260405160405180910390a45b505050505050565b6121118133612848565b6124a08282611654565b6109f85760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b61250b8282611654565b156109f85760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080600061257785856128ac565b9150915061258481612917565b509392505050565b610d7a8383836040518060200160405280600081525061197d565b6109f8828260405180602001604052806000815250612acd565b60008180600111612617576005548110156126175760008181526009602052604081205490600160e01b82169003612615575b8060000361180e5750600019016000818152600960205260409020546125f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600960205260409020546109e090612b3a565b6126c7848484610cc1565b6001600160a01b0383163b15611a32576126e384848484612b81565b611a32576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526109e0612730836125c1565b612b3a565b60608160000361275c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612786578061277081613aec565b915061277f9050600a83613877565b9150612760565b6000816001600160401b038111156127a0576127a061335b565b6040519080825280601f01601f1916602001820160405280156127ca576020820181803683370190505b5090505b8415612835576127df600183613b05565b91506127ec600a86613b18565b6127f7906030613a06565b60f81b81838151811061280c5761280c613a19565b60200101906001600160f81b031916908160001a90535061282e600a86613877565b94506127ce565b949350505050565b612111816000612c6c565b6128528282611654565b6109f85761286a816001600160a01b03166014612da5565b612875836020612da5565b604051602001612886929190613b2c565b60408051601f198184030181529082905262461bcd60e51b8252610d6691600401613279565b60008082516041036128e25760208301516040840151606085015160001a6128d687828585612f40565b94509450505050610e26565b825160400361290b576020830151604084015161290086838361302d565b935093505050610e26565b50600090506002610e26565b600081600481111561292b5761292b613ba1565b036129335750565b600181600481111561294757612947613ba1565b036129945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d66565b60028160048111156129a8576129a8613ba1565b036129f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d66565b6003816004811115612a0957612a09613ba1565b03612a615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d66565b6004816004811115612a7557612a75613ba1565b036121115760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d66565b612ad78383613066565b6001600160a01b0383163b15610d7a576005548281035b612b016000868380600101945086612b81565b612b1e576040516368d2bf6b60e11b815260040160405180910390fd5b818110612aee578160055414612b3357600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bb6903390899088908890600401613bb7565b6020604051808303816000875af1925050508015612bf1575060408051601f3d908101601f19168201909252612bee91810190613bf4565b60015b612c4f573d808015612c1f576040519150601f19603f3d011682016040523d82523d6000602084013e612c24565b606091505b508051600003612c47576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000612c77836125c1565b905080600080612c95866000908152600b6020526040902080549091565b915091508415612cd557612caa818433612350565b612cd557612cb88333611fc4565b612cd557604051632ce44b5f60e11b815260040160405180910390fd5b8015612ce057600082555b6001600160a01b0383166000818152600a6020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260096020526040812091909155600160e11b85169003612d6e57600186016000818152600960205260408120549003612d6c576005548114612d6c5760008181526009602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613c29833981519152908390a4505060068054600101905550505050565b60606000612db4836002613842565b612dbf906002613a06565b6001600160401b03811115612dd657612dd661335b565b6040519080825280601f01601f191660200182016040528015612e00576020820181803683370190505b509050600360fc1b81600081518110612e1b57612e1b613a19565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612e4a57612e4a613a19565b60200101906001600160f81b031916908160001a9053506000612e6e846002613842565b612e79906001613a06565b90505b6001811115612ef1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ead57612ead613a19565b1a60f81b828281518110612ec357612ec3613a19565b60200101906001600160f81b031916908160001a90535060049490941c93612eea81613c11565b9050612e7c565b50831561180e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d66565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f775750600090506003613024565b8460ff16601b14158015612f8f57508460ff16601c14155b15612fa05750600090506004613024565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ff4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661301d57600060019250925050613024565b9150600090505b94509492505050565b6000806001600160ff1b0383168161304a60ff86901c601b613a06565b905061305887828885612f40565b935093505050935093915050565b600554600082900361308b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383166000818152600a602090815260408083208054680100000000000000018802019055848352600990915281206001851460e11b4260a01b17831790558284019083908390600080516020613c298339815191528180a4600183015b8181146131165780836000600080516020613c29833981519152600080a46001016130f0565b508160000361313757604051622e076360e81b815260040160405180910390fd5b60055550505050565b6001600160e01b03198116811461211157600080fd5b60006020828403121561316857600080fd5b813561180e81613140565b80356001600160a01b0381168114611d1257600080fd5b6000806040838503121561319d57600080fd5b6131a683613173565b915060208301356001600160601b03811681146131c257600080fd5b809150509250929050565b6000602082840312156131df57600080fd5b5035919050565b60005b838110156132015781810151838201526020016131e9565b50506000910152565b600081518084526132228160208601602086016131e6565b601f01601f19169290920160200192915050565b85815284602082015283604082015260a06060820152600061325b60a083018561320a565b828103608084015261326d818561320a565b98975050505050505050565b60208152600061180e602083018461320a565b6000806040838503121561329f57600080fd5b6132a883613173565b946020939093013593505050565b6000602082840312156132c857600080fd5b61180e82613173565b6000806000606084860312156132e657600080fd5b6132ef84613173565b92506132fd60208501613173565b9150604084013590509250925092565b6000806040838503121561332057600080fd5b50508035926020909101359150565b6000806040838503121561334257600080fd5b8235915061335260208401613173565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261338257600080fd5b81356001600160401b038082111561339c5761339c61335b565b604051601f8301601f19908116603f011681019082821181831017156133c4576133c461335b565b816040528381528660208588010111156133dd57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561341257600080fd5b8335925060208401356001600160401b038082111561343057600080fd5b61343c87838801613371565b9350604086013591508082111561345257600080fd5b5061345f86828701613371565b9150509250925092565b6000806040838503121561347c57600080fd5b8235915060208301356001600160401b0381111561349957600080fd5b6134a585828601613371565b9150509250929050565b6000602082840312156134c157600080fd5b81356001600160401b038111156134d757600080fd5b61283584828501613371565b600080602083850312156134f657600080fd5b82356001600160401b038082111561350d57600080fd5b818501915085601f83011261352157600080fd5b81358181111561353057600080fd5b8660208260051b850101111561354557600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611607576135c2838551613557565b92840192608092909201916001016135af565b6020808252825182820181905260009190848201906040850190845b81811015611607578351835292840192918401916001016135f1565b801515811461211157600080fd5b60008060006060848603121561363057600080fd5b833561363b8161360d565b9250602084013561364b8161360d565b9150604084013561365b8161360d565b809150509250925092565b60008060006060848603121561367b57600080fd5b61368484613173565b95602085013595506040909401359392505050565b600080604083850312156136ac57600080fd5b6136b583613173565b915060208301356131c28161360d565b600080600080608085870312156136db57600080fd5b6136e485613173565b93506136f260208601613173565b92506040850135915060608501356001600160401b0381111561371457600080fd5b61372087828801613371565b91505092959194509250565b608081016109e08284613557565b6000806000806080858703121561375057600080fd5b61375985613173565b93506020850135925060408501356001600160401b038082111561377c57600080fd5b61378888838901613371565b9350606087013591508082111561379e57600080fd5b5061372087828801613371565b600080604083850312156137be57600080fd5b6137c783613173565b915061335260208401613173565b600181811c908216806137e957607f821691505b60208210810361380957634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561382157600080fd5b815161180e8161360d565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561385c5761385c61382c565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261388657613886613861565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6f736574437573746f6d4261736555726960801b8152826010820152600082516138f38160308501602087016131e6565b919091016030019392505050565b601f821115610d7a57600081815260208120601f850160051c810160208610156139285750805b601f850160051c820191505b8181101561248457828155600101613934565b81516001600160401b038111156139605761396061335b565b6139748161396e84546137d5565b84613901565b602080601f8311600181146139a957600084156139915750858301515b600019600386901b1c1916600185901b178555612484565b600085815260208120601f198616915b828110156139d8578886015182559484019460019091019084016139b9565b50858210156139f65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156109e0576109e061382c565b634e487b7160e01b600052603260045260246000fd5b60008351613a418184602088016131e6565b835190830190613a558183602088016131e6565b64173539b7b760d91b9101908152600501949350505050565b6000808454613a7c816137d5565b60018281168015613a945760018114613aa957613ad8565b60ff1984168752821515830287019450613ad8565b8860005260208060002060005b85811015613acf5781548a820152908401908201613ab6565b50505082870194505b505050508351613a558183602088016131e6565b600060018201613afe57613afe61382c565b5060010190565b818103818111156109e0576109e061382c565b600082613b2757613b27613861565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613b648160178501602088016131e6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613b958160288401602088016131e6565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bea9083018461320a565b9695505050505050565b600060208284031215613c0657600080fd5b815161180e81613140565b600081613c2057613c2061382c565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a2fa77f3f46680e1e9629168a4d3a7c0ae3f742f54027bab8534fc970d3cdf9864736f6c63430008100033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a43727970746f506f6e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034354500000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): CryptoPons
Arg [1] : _tokenSymbol (string): CTP

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 43727970746f506f6e7300000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4354500000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.