ETH Price: $3,497.61 (+2.98%)
Gas: 4.2 Gwei

Token

SixthReseau: Lost Identities (SRS1)
 

Overview

Max Total Supply

2,000 SRS1

Holders

717

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 SRS1
0xf38cbf57dd2864d68dbde9a710949ce4cb583fba
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:
SixthReseauLostIdentities

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : SixthReseauLostIdentities.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "erc721a/contracts/ERC721A.sol";
import "./MysteryBoxInterface.sol";

/// @title SixthRéseau - Lost Identities Contract
/// @author SphericonIO
contract SixthReseauLostIdentities is ERC721A, Ownable, Pausable, ReentrancyGuard {
    using Counters for Counters.Counter;
    using ECDSA for bytes32;

    uint public maxSupply = 7777;
    uint public maxPriority = 660;
    uint public maxPublic = 2777;
    uint public maxPrivate = 4340;

    uint public reservedTokens = 60;

    uint public priorityPrice = 0.16 ether;
    uint public whitelistPrice = 0.16 ether;

    Counters.Counter private _priorityCounter;
    Counters.Counter private _publicCounter;
    Counters.Counter private _whitelistCounter;
    Counters.Counter private _teamCounter;

    mapping(address => uint) private _mintedPriority;
    mapping(address => uint) private _mintedPublic;
    mapping(address => uint) private _mintedWhitelist;
    mapping(address => uint) private _mintedReserve;

    uint public maxPriorityMint = 1;
    uint public maxPublicMint = 5;
    uint public maxWhitelistMint = 1;
    uint public maxReserveMint = 2;

    address public mysteryBox;
    address private _signer;

    bool public isPrioritySale = false;
    bool public isPublicSale = false;
    bool public isWhitelistSale = false;
    bool public isReserveSale = false;

    string public baseTokenURI;

    struct Dutch {
        uint start;
        uint duration;
        uint startPrice;
        uint endPrice;
    }

    Dutch public dutch;

    modifier onlyEOA() {
        require(tx.origin == msg.sender,"SixthReseau: Lost Identities: Only EOA can mint!");
        _;
    }

    modifier enoughSupply(uint256 _amount) {
        require(getTotalSupply() + _amount <= maxSupply - reservedTokens, "SixthReseau: Lost Identities: Minting would exceed max supply!");
        _;
    }

    uint[] private _shares = [150, 100, 40, 30, 25, 25, 10, 12, 3, 605];
    address[] private _shareholders = [
        0x75deaE57E2e554E19a91b42C845a924F93d69384,
        0xaB5F926d88D0017D1D491B44DF7e1E0230f7475c,
        0x0F8948E0E62522340637e641B2C59a0532C4868C,
        0x7f3fF11ec16fa5112a9cd9Fee3E8E6325D9F9124,
        0x28069c8F53dcfC862001bFB0d009985906B8Fb57,
        0xD87b1E3F99B4e389B35f47eE4539224d4cc30fE5,
        0x61776dfC15aC86dD7679BfB4eFc0cAD0c6b2461f,
        0xff744b4Ba28f833903F746909353225a29CfbC7a,
        0x47ba534ACA981c0F78a8597C95e97F0Ae6B1b3a2,
        0x48b858899aB554EC433f3D8C15ef7447afBF2e5A
    ];

    constructor(address _mysteryBox, string memory _baseTokenURI, address _signerNew) ERC721A("SixthReseau: Lost Identities","SRS1") {
        mysteryBox = _mysteryBox;
        baseTokenURI = _baseTokenURI;
        _signer = _signerNew;
        dutch.start = 1652904000;
        dutch.duration = 4 hours;
        dutch.startPrice = 0.4 ether;
        dutch.endPrice = 0.19 ether;
    }

    function isAllowedToMint(bytes memory _signature, uint _saleType) public view returns (bool) {
        bytes32 hash;
        if(_saleType == 1) {
            hash = keccak256(abi.encodePacked(msg.sender, "PRIORITY"));
        } else if (_saleType == 2) {
            hash = keccak256(abi.encodePacked(msg.sender, "WHITELIST"));
        } else if (_saleType == 3) {
            hash = keccak256(abi.encodePacked(msg.sender, "RESERVE"));
        }
        bytes32 messageHash = hash.toEthSignedMessageHash();
        return messageHash.recover(_signature) == _signer;
    }

    function mintPriority(uint _amount, bytes memory _signature) external payable nonReentrant onlyEOA enoughSupply(_amount) {
        require(isPrioritySale, "SixthReseau: Lost Identities: Priority Minting didn't start yet!");
        require(_amount <= maxPriorityMint, "SixthReseau: Lost Identities: Minting more than max amount!");
        require(msg.value >= _amount * priorityPrice, "SixthReseau: Lost Identities: Not enough ETH!");
        require(_priorityCounter.current() + _amount <= maxPriority, "SixthReseau: Lost Identities: Minting would exceed max supply for priority sale!");
        require(_mintedPriority[msg.sender] + _amount <= maxPriorityMint, "SixthReseau: Lost Identities: You already minted all your tokens!");
        require(isAllowedToMint(_signature, 1), "SixthReseau: Lost Identities: Not allowed to mint during priority sale!");
        _mintedPriority[msg.sender] += _amount;
        _mint(msg.sender, _amount);
        for(uint i = 0; i < _amount; i++) {
            _priorityCounter.increment();
            MysteryBoxInterface(mysteryBox).mint(msg.sender);
        }
    }

    function mintPublic(uint _amount) external payable nonReentrant onlyEOA enoughSupply(_amount) {
        require(isPublicSale, "SixthReseau: Lost Identities: Public Minting didn't start yet!");
        require(_amount <= maxPublicMint, "SixthReseau: Lost Identities: Minting more than max amount!");
        require(msg.value >= getPrice(_amount), "SixthReseau: Lost Identities: Not enough ETH!");
        require(_publicCounter.current() + _amount <= maxPublic, "SixthReseau: Lost Identities: Minting would exceed max supply for public sale!");
        require(_mintedPublic[msg.sender] + _amount <= maxPublicMint, "SixthReseau: Lost Identities: You already minted all your tokens!");
        _mintedPublic[msg.sender] += _amount;
        _mint(msg.sender, _amount);
        for(uint i = 0; i < _amount; i++) {
            _publicCounter.increment();
            MysteryBoxInterface(mysteryBox).mint(msg.sender);
        }
    }

    function mintWhitelist(uint _amount, bytes memory _signature) external payable nonReentrant onlyEOA enoughSupply(_amount) {
        require(isWhitelistSale, "SixthReseau: Lost Identities: Whitelist Minting didn't start yet!");
        require(_amount <= maxWhitelistMint, "SixthReseau: Lost Identities: Minting more than max amount!");
        require(msg.value >= _amount * whitelistPrice, "SixthReseau: Lost Identities: Not enough ETH!");
        require(_whitelistCounter.current() + _amount <= maxPrivate, "SixthReseau: Lost Identities: Minting would exceed max supply for whitelist sale!");
        require(_mintedWhitelist[msg.sender] + _amount <= maxWhitelistMint, "SixthReseau: Lost Identities: You already minted all your tokens!");
        require(isAllowedToMint(_signature, 2), "SixthReseau: Lost Identities: Not allowed to mint during whitelist sale!");
        _mintedWhitelist[msg.sender] += _amount;
        _mint(msg.sender, _amount);
        for(uint i = 0; i < _amount; i++) {
            _whitelistCounter.increment();
            MysteryBoxInterface(mysteryBox).mint(msg.sender);
        }
    }

    function mintReserve(uint _amount, bytes memory _signature) external payable nonReentrant onlyEOA enoughSupply(_amount) {
        require(isReserveSale, "SixthReseau: Lost Identities: Reserve Minting didn't start yet!");
        require(_amount <= maxReserveMint, "SixthReseau: Lost Identities: Minting more than max amount!");
        require(msg.value >= _amount * whitelistPrice, "SixthReseau: Lost Identities: Not enough ETH!");
        require(_whitelistCounter.current() + _amount <= maxPrivate, "SixthReseau: Lost Identities: Minting would exceed max supply for reserve sale!");
        require(_mintedReserve[msg.sender] + _amount <= maxReserveMint, "SixthReseau: Lost Identities: You already minted all your tokens!");
        require(isAllowedToMint(_signature, 3), "SixthReseau: Lost Identities: Not allowed to mint during reserve sale!");
        _mintedReserve[msg.sender] += _amount;
        _mint(msg.sender, _amount);
        for(uint i = 0; i < _amount; i++) {
            _whitelistCounter.increment();
            MysteryBoxInterface(mysteryBox).mint(msg.sender);
        }
    }

    function mintTeam(uint _amount, address _to) external onlyOwner {
        require(reservedTokens >= _amount, "SixthReseau: Lost Identities: Not enough reserved tokens!");
        reservedTokens -= _amount;
        _mint(_to, _amount);
            for(uint i = 0; i < _amount; i++) {
            _teamCounter.increment();
            MysteryBoxInterface(mysteryBox).mint(_to);
        }
    }
    
    //Dutch Auction

    /// @notice Returns true if the dutch auction started
    function dutchIsStarted() public view returns (bool) {
        return block.timestamp >= dutch.start;
    }

    /// @notice Calculates the current dutch auction price
    /// @param _timestamp The timestamp to get the price for
    /// @return _price The price for the given timestamp
    function getMintPrice(uint256 _timestamp) public view returns (uint256 _price) {
        if(!dutchIsStarted()) {
            return dutch.startPrice;
        }

        _timestamp = _timestamp == 0 ? block.timestamp : _timestamp;
        uint duration = _timestamp - dutch.start;

        if(duration >= dutch.duration) {
            return dutch.endPrice;
        }

        uint currentPrice = dutch.startPrice - ((((duration * 100000) / dutch.duration) * (dutch.startPrice - dutch.endPrice)) / 100000);
        return  currentPrice > dutch.endPrice ? currentPrice : dutch.endPrice;
    }

    //Getters

    /// @notice Returns the total supply
    /// @return _supply The total supply
    function getTotalSupply() public view returns (uint256 _supply) {
        _supply = _priorityCounter.current() + _publicCounter.current() + _whitelistCounter.current() + _teamCounter.current();
        return _supply;
    }

    /// @notice Get price for multiple tokens
    /// @param _amount The amount of tokens to get the price for
    /// @return _price The price for the given amount
    function getPrice(uint256 _amount) public view returns (uint256 _price) {
        return _amount * getMintPrice(0);
    }

    function getMintedPriority(address _address) public view returns (uint256 _amount) {
        return _mintedPriority[_address];
    }

    function getMintedPublic(address _address) public view returns (uint256 _amount) {
        return _mintedPublic[_address];
    }

    function getMintedReserve(address _address) public view returns (uint256 _amount) {
        return _mintedReserve[_address];
    }

    function getMintedWhitelist(address _address) public view returns (uint256 _amount) {
        return _mintedWhitelist[_address];
    }

    function getPublicCounter() public view returns (uint256 _counter) { 
        return _publicCounter.current();
    }

    function getPriorityCounter() public view returns (uint256 _counter) { 
        return _priorityCounter.current();
    }

    function getWhitelistCounter() public view returns (uint256 _counter) { 
        return _whitelistCounter.current();
    }
    
    // Setters
    function setPriorityPrice(uint _priorityPrice) external onlyOwner {
        priorityPrice = _priorityPrice;
    }

    function setWhitelistPrice(uint _whitelistPrice) external onlyOwner {
        whitelistPrice = _whitelistPrice;
    }

    function setMaxReserveMint(uint _maxReserveMint) external onlyOwner {
        maxReserveMint = _maxReserveMint;
    }

    function setMysteryBox(address _mysteryBox) external onlyOwner {
        mysteryBox = _mysteryBox;
    }

    function setDutchStart(uint _start) external onlyOwner {
        dutch.start = _start;
    }

    function setDutchDuration(uint _duration) external onlyOwner {
        dutch.duration = _duration;
    }

    function setDutchStartPrice(uint _startPrice) external onlyOwner {
        dutch.startPrice = _startPrice;
    }

    function setDutchEndPrice(uint _endPrice) external onlyOwner {
        dutch.endPrice = _endPrice;
    }

    function togglePrioritySale() external onlyOwner {
        isPrioritySale = !isPrioritySale;
    }

    function toggleWhitelistSale() external onlyOwner {
        isWhitelistSale = !isWhitelistSale;
    }

    function toggleReserveSale() external onlyOwner {
        isReserveSale = !isReserveSale;
    }

    function togglePublicSale() external onlyOwner {
        isPublicSale = !isPublicSale;
    }

    function setSigner(address _newSigner) external onlyOwner {
        _signer = _newSigner;
    }

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

    function setBaseTokenURI(string memory _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

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

    function withdrawAll() external onlyOwner {
        uint balance = address(this).balance;
        require(balance > 0);
        for (uint256 sh = 0; sh < _shareholders.length; sh++) {
            _widthdraw(_shareholders[sh], (balance * _shares[sh]) / 1000);
        }
    }
    
    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 8 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

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

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

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

File 9 of 18 : MysteryBoxInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract MysteryBoxInterface {
    function mint(address _to) public {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 12 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 13 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 14 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 16 of 18 : 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 17 of 18 : 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 18 of 18 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mysteryBox","type":"address"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address","name":"_signerNew","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutch","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchIsStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedPriority","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedPublic","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedReserve","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedWhitelist","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPriorityCounter","outputs":[{"internalType":"uint256","name":"_counter","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicCounter","outputs":[{"internalType":"uint256","name":"_counter","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistCounter","outputs":[{"internalType":"uint256","name":"_counter","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_saleType","type":"uint256"}],"name":"isAllowedToMint","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":"isPrioritySale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isReserveSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPriority","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPriorityMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPrivate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReserveMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWhitelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintPriority","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintReserve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mysteryBox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priorityPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDutchDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endPrice","type":"uint256"}],"name":"setDutchEndPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"setDutchStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startPrice","type":"uint256"}],"name":"setDutchStartPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxReserveMint","type":"uint256"}],"name":"setMaxReserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mysteryBox","type":"address"}],"name":"setMysteryBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priorityPrice","type":"uint256"}],"name":"setPriorityPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePrioritySale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReserveSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

611e61600a908155610294600b55610ad9600c9081556110f4600d55603c600e556702386f26fc100000600f819055601055600160198181556005601a55601b919091556002601c55601e805463ffffffff60a01b191681556101c060405260966080908152606460a052602860c05260e091909152610100829052610120919091526101408390526101609190915260036101805261025d6101a052620000ab91602491906200036a565b5060408051610140810182527375deae57e2e554e19a91b42c845a924f93d69384815273ab5f926d88d0017d1d491b44df7e1e0230f7475c6020820152730f8948e0e62522340637e641b2c59a0532c4868c91810191909152737f3ff11ec16fa5112a9cd9fee3e8e6325d9f912460608201527328069c8f53dcfc862001bfb0d009985906b8fb57608082015273d87b1e3f99b4e389b35f47ee4539224d4cc30fe560a08201527361776dfc15ac86dd7679bfb4efc0cad0c6b2461f60c082015273ff744b4ba28f833903f746909353225a29cfbc7a60e08201527347ba534aca981c0f78a8597c95e97f0ae6b1b3a26101008201527348b858899ab554ec433f3d8c15ef7447afbf2e5a610120820152620001cc90602590600a620003c0565b50348015620001da57600080fd5b5060405162003fd138038062003fd1833981016040819052620001fd91620004df565b604080518082018252601c81527f53697874685265736561753a204c6f7374204964656e746974696573000000006020808301918252835180850190945260048452635352533160e01b9084015281519192916200025e9160029162000418565b5080516200027490600390602084019062000418565b5050600160005550620002873362000318565b6008805460ff60a01b191690556001600955601d80546001600160a01b0319166001600160a01b0385161790558151620002c990601f90602085019062000418565b50601e80546001600160a01b0319166001600160a01b03929092169190911790555050636285504060205561384060215567058d15e1762800006022556702a303fe4b53000060235562000621565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620003ae579160200282015b82811115620003ae578251829061ffff169055916020019190600101906200038b565b50620003bc92915062000495565b5090565b828054828255906000526020600020908101928215620003ae579160200282015b82811115620003ae57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620003e1565b8280546200042690620005e4565b90600052602060002090601f0160209004810192826200044a5760008555620003ae565b82601f106200046557805160ff1916838001178555620003ae565b82800160010185558215620003ae579182015b82811115620003ae57825182559160200191906001019062000478565b5b80821115620003bc576000815560010162000496565b80516001600160a01b0381168114620004c457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215620004f557600080fd5b6200050084620004ac565b602085810151919450906001600160401b03808211156200052057600080fd5b818701915087601f8301126200053557600080fd5b8151818111156200054a576200054a620004c9565b604051601f8201601f19908116603f01168101908382118183101715620005755762000575620004c9565b816040528281528a868487010111156200058e57600080fd5b600093505b82841015620005b2578484018601518185018701529285019262000593565b82841115620005c45760008684830101525b809750505050505050620005db60408501620004ac565b90509250925092565b600181811c90821680620005f957607f821691505b602082108114156200061b57634e487b7160e01b600052602260045260246000fd5b50919050565b6139a080620006316000396000f3fe6080604052600436106103ef5760003560e01c8063773326fe11610208578063b88d4fde11610118578063e7229e39116100ab578063efd0cbf91161007a578063efd0cbf914610b9c578063f2fde38b14610baf578063f5850a4f14610bcf578063f82be42914610bf0578063fc1a1c3614610c1157600080fd5b8063e7229e3914610add578063e757223014610afd578063e985e9c514610b1d578063ec23f81e14610b6657600080fd5b8063cabadaa0116100e7578063cabadaa014610a87578063d547cfb714610a9d578063d5abeb0114610ab2578063e222c7f914610ac857600080fd5b8063b88d4fde14610a12578063c38b761c14610a32578063c4e41b2214610a52578063c87b56dd14610a6757600080fd5b8063853828b61161019b5780639f41554a1161016a5780639f41554a1461097e578063a22cb46514610991578063a5a865dc146109b1578063ac992511146109d2578063ad81e130146109f257600080fd5b8063853828b61461091e5780638da5cb5b146109335780638ddfec381461095157806395d89b411461096957600080fd5b80637b43b827116101d75780637b43b827146108b35780637bffd755146108d35780637dc42975146108f35780638455da961461090957600080fd5b8063773326fe1461083c578063785e222d146108525780637917f6071461086757806379afdefe1461089d57600080fd5b8063309a3686116103035780635c975abb1161029657806370a082311161026557806370a082311461079b578063715018a6146107bb578063717d57d3146107d0578063739e97ff146107f05780637431dadc1461080657600080fd5b80635c975abb1461071c5780636352211e1461073b5780636c19e7831461075b5780636e8279171461077b57600080fd5b806343b22055116102d257806343b22055146106bc57806344442a73146106d1578063559e775b146106e757806359eda1b51461070757600080fd5b8063309a368614610653578063380662721461066957806339888bba1461067c57806342842e0e1461069c57600080fd5b80631455b1e2116103865780631a2bec99116103555780631a2bec99146105a85780631b332351146105bd5780631e0b269d1461060057806323b872dd1461061357806330176e131461063357600080fd5b80631455b1e21461053e578063150dad821461055f57806315a553471461057557806318160ddd1461058b57600080fd5b8063095ea7b3116103c2578063095ea7b31461049a57806309a7c788146104ba5780630df300db146104fe5780630f5329531461051e57600080fd5b806301ffc9a7146103f4578063034d77941461042957806306fdde0314610440578063081812fc14610462575b600080fd5b34801561040057600080fd5b5061041461040f3660046131b0565b610c27565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c79565b005b34801561044c57600080fd5b50610455610ccd565b6040516104209190613225565b34801561046e57600080fd5b5061048261047d366004613238565b610d5f565b6040516001600160a01b039091168152602001610420565b3480156104a657600080fd5b5061043e6104b536600461326d565b610da3565b3480156104c657600080fd5b506104f06104d5366004613297565b6001600160a01b031660009081526015602052604090205490565b604051908152602001610420565b34801561050a57600080fd5b5061043e610519366004613238565b610e2a565b34801561052a57600080fd5b5061043e610539366004613238565b610e59565b34801561054a57600080fd5b50601e5461041490600160b01b900460ff1681565b34801561056b57600080fd5b506104f0601c5481565b34801561058157600080fd5b506104f0600e5481565b34801561059757600080fd5b5060015460005403600019016104f0565b3480156105b457600080fd5b506104f0610e88565b3480156105c957600080fd5b506020546021546022546023546105e09392919084565b604080519485526020850193909352918301526060820152608001610420565b61043e61060e36600461335e565b610e98565b34801561061f57600080fd5b5061043e61062e3660046133a5565b6111ea565b34801561063f57600080fd5b5061043e61064e3660046133e1565b6111f5565b34801561065f57600080fd5b506104f0601b5481565b61043e61067736600461335e565b611236565b34801561068857600080fd5b5061043e610697366004613238565b611579565b3480156106a857600080fd5b5061043e6106b73660046133a5565b6115a8565b3480156106c857600080fd5b506104f06115c3565b3480156106dd57600080fd5b506104f0600b5481565b3480156106f357600080fd5b506104f0610702366004613238565b6115ce565b34801561071357600080fd5b5061043e611690565b34801561072857600080fd5b50600854600160a01b900460ff16610414565b34801561074757600080fd5b50610482610756366004613238565b6116db565b34801561076757600080fd5b5061043e610776366004613297565b6116ed565b34801561078757600080fd5b5061043e610796366004613238565b611739565b3480156107a757600080fd5b506104f06107b6366004613297565b611768565b3480156107c757600080fd5b5061043e6117b7565b3480156107dc57600080fd5b5061043e6107eb366004613238565b6117ed565b3480156107fc57600080fd5b506104f060195481565b34801561081257600080fd5b506104f0610821366004613297565b6001600160a01b031660009081526017602052604090205490565b34801561084857600080fd5b506104f0600d5481565b34801561085e57600080fd5b5061043e61181c565b34801561087357600080fd5b506104f0610882366004613297565b6001600160a01b031660009081526018602052604090205490565b3480156108a957600080fd5b506104f0600f5481565b3480156108bf57600080fd5b5061043e6108ce366004613297565b611867565b3480156108df57600080fd5b5061043e6108ee36600461342a565b6118b3565b3480156108ff57600080fd5b506104f0600c5481565b34801561091557600080fd5b506104f06119f0565b34801561092a57600080fd5b5061043e6119fb565b34801561093f57600080fd5b506008546001600160a01b0316610482565b34801561095d57600080fd5b50602054421015610414565b34801561097557600080fd5b50610455611abe565b61043e61098c36600461335e565b611acd565b34801561099d57600080fd5b5061043e6109ac366004613456565b611e1e565b3480156109bd57600080fd5b50601e5461041490600160a81b900460ff1681565b3480156109de57600080fd5b5061043e6109ed366004613238565b611eb4565b3480156109fe57600080fd5b5061043e610a0d366004613238565b611ee3565b348015610a1e57600080fd5b5061043e610a2d366004613492565b611f12565b348015610a3e57600080fd5b50601d54610482906001600160a01b031681565b348015610a5e57600080fd5b506104f0611f5c565b348015610a7357600080fd5b50610455610a82366004613238565b611f8e565b348015610a9357600080fd5b506104f0601a5481565b348015610aa957600080fd5b50610455612013565b348015610abe57600080fd5b506104f0600a5481565b348015610ad457600080fd5b5061043e6120a1565b348015610ae957600080fd5b50610414610af83660046134fa565b6120ec565b348015610b0957600080fd5b506104f0610b18366004613238565b612249565b348015610b2957600080fd5b50610414610b3836600461353f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b7257600080fd5b506104f0610b81366004613297565b6001600160a01b031660009081526016602052604090205490565b61043e610baa366004613238565b61225f565b348015610bbb57600080fd5b5061043e610bca366004613297565b61252d565b348015610bdb57600080fd5b50601e5461041490600160a01b900460ff1681565b348015610bfc57600080fd5b50601e5461041490600160b81b900460ff1681565b348015610c1d57600080fd5b506104f060105481565b60006001600160e01b031982166380ac58cd60e01b1480610c5857506001600160e01b03198216635b5e139f60e01b145b80610c7357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610cac5760405162461bcd60e51b8152600401610ca390613569565b60405180910390fd5b601e805460ff60b81b198116600160b81b9182900460ff1615909102179055565b606060028054610cdc9061359e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d089061359e565b8015610d555780601f10610d2a57610100808354040283529160200191610d55565b820191906000526020600020905b815481529060010190602001808311610d3857829003601f168201915b5050505050905090565b6000610d6a826125c8565b610d87576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dae826116db565b9050806001600160a01b0316836001600160a01b03161415610de35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e1a57610dfd8133610b38565b610e1a576040516367d9dca160e11b815260040160405180910390fd5b610e25838383612601565b505050565b6008546001600160a01b03163314610e545760405162461bcd60e51b8152600401610ca390613569565b602255565b6008546001600160a01b03163314610e835760405162461bcd60e51b8152600401610ca390613569565b602155565b6000610e9360135490565b905090565b60026009541415610ebb5760405162461bcd60e51b8152600401610ca3906135d9565b6002600955323314610edf5760405162461bcd60e51b8152600401610ca390613610565b81600e54600a54610ef09190613676565b81610ef9611f5c565b610f03919061368d565b1115610f215760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160a01b900460ff16610fa2576040805162461bcd60e51b81526020600482015260248101919091527f53697874685265736561753a204c6f7374204964656e7469746965733a20507260448201527f696f72697479204d696e74696e67206469646e277420737461727420796574216064820152608401610ca3565b601954831115610fc45760405162461bcd60e51b8152600401610ca3906136f0565b600f54610fd1908461373b565b341015610ff05760405162461bcd60e51b8152600401610ca39061375a565b600b5483610ffd60115490565b611007919061368d565b11156110705760405162461bcd60e51b8152602060048201526050602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526f72207072696f726974792073616c652160801b608482015260a401610ca3565b6019543360009081526015602052604090205461108e90859061368d565b11156110ac5760405162461bcd60e51b8152600401610ca390613795565b6110b78260016120ec565b6111275760405162461bcd60e51b8152602060048201526047602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e67207072696f726974606482015266792073616c652160c81b608482015260a401610ca3565b336000908152601560205260408120805485929061114690849061368d565b909155506111569050338461265d565b60005b838110156111df5761116f601180546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156111b457600080fd5b505af11580156111c8573d6000803e3d6000fd5b5050505080806111d7906137fc565b915050611159565b505060016009555050565b610e2583838361278d565b6008546001600160a01b0316331461121f5760405162461bcd60e51b8152600401610ca390613569565b805161123290601f906020840190613101565b5050565b600260095414156112595760405162461bcd60e51b8152600401610ca3906135d9565b600260095532331461127d5760405162461bcd60e51b8152600401610ca390613610565b81600e54600a5461128e9190613676565b81611297611f5c565b6112a1919061368d565b11156112bf5760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160b81b900460ff1661133e5760405162461bcd60e51b815260206004820152603f60248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20526560448201527f7365727665204d696e74696e67206469646e27742073746172742079657421006064820152608401610ca3565b601c548311156113605760405162461bcd60e51b8152600401610ca3906136f0565b60105461136d908461373b565b34101561138c5760405162461bcd60e51b8152600401610ca39061375a565b600d548361139960135490565b6113a3919061368d565b111561140b5760405162461bcd60e51b815260206004820152604f602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526e7220726573657276652073616c652160881b608482015260a401610ca3565b601c543360009081526018602052604090205461142990859061368d565b11156114475760405162461bcd60e51b8152600401610ca390613795565b6114528260036120ec565b6114c15760405162461bcd60e51b8152602060048201526046602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e6720726573657276656064820152652073616c652160d01b608482015260a401610ca3565b33600090815260186020526040812080548592906114e090849061368d565b909155506114f09050338461265d565b60005b838110156111df57611509601380546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b15801561154e57600080fd5b505af1158015611562573d6000803e3d6000fd5b505050508080611571906137fc565b9150506114f3565b6008546001600160a01b031633146115a35760405162461bcd60e51b8152600401610ca390613569565b602355565b610e2583838360405180602001604052806000815250611f12565b6000610e9360115490565b60006115dc60205442101590565b6115e857505060225490565b81156115f457816115f6565b425b6020549092506000906116099084613676565b602154909150811061161f575050602354919050565b602354602254600091620186a0916116379190613676565b60215461164785620186a061373b565b611651919061382d565b61165b919061373b565b611665919061382d565b6022546116729190613676565b602354909150811161168657602354611688565b805b949350505050565b6008546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60b01b198116600160b01b9182900460ff1615909102179055565b60006116e68261297c565b5192915050565b6008546001600160a01b031633146117175760405162461bcd60e51b8152600401610ca390613569565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146117635760405162461bcd60e51b8152600401610ca390613569565b600f55565b60006001600160a01b038216611791576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146117e15760405162461bcd60e51b8152600401610ca390613569565b6117eb6000612aa0565b565b6008546001600160a01b031633146118175760405162461bcd60e51b8152600401610ca390613569565b601055565b6008546001600160a01b031633146118465760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6008546001600160a01b031633146118915760405162461bcd60e51b8152600401610ca390613569565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610ca390613569565b81600e5410156119435760405162461bcd60e51b8152602060048201526039602482015260008051602061394b83398151915260448201527f7420656e6f75676820726573657276656420746f6b656e7321000000000000006064820152608401610ca3565b81600e60008282546119559190613676565b909155506119659050818361265d565b60005b82811015610e255761197e601480546001019055565b601d546040516335313c2160e11b81526001600160a01b03848116600483015290911690636a62784290602401600060405180830381600087803b1580156119c557600080fd5b505af11580156119d9573d6000803e3d6000fd5b5050505080806119e8906137fc565b915050611968565b6000610e9360125490565b6008546001600160a01b03163314611a255760405162461bcd60e51b8152600401610ca390613569565b4780611a3057600080fd5b60005b60255481101561123257611aac60258281548110611a5357611a53613841565b9060005260206000200160009054906101000a90046001600160a01b03166103e860248481548110611a8757611a87613841565b906000526020600020015485611a9d919061373b565b611aa7919061382d565b612af2565b80611ab6816137fc565b915050611a33565b606060038054610cdc9061359e565b60026009541415611af05760405162461bcd60e51b8152600401610ca3906135d9565b6002600955323314611b145760405162461bcd60e51b8152600401610ca390613610565b81600e54600a54611b259190613676565b81611b2e611f5c565b611b38919061368d565b1115611b565760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160b01b900460ff16611bdf5760405162461bcd60e51b815260206004820152604160248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20576860448201527f6974656c697374204d696e74696e67206469646e2774207374617274207965746064820152602160f81b608482015260a401610ca3565b601b54831115611c015760405162461bcd60e51b8152600401610ca3906136f0565b601054611c0e908461373b565b341015611c2d5760405162461bcd60e51b8152600401610ca39061375a565b600d5483611c3a60135490565b611c44919061368d565b1115611cae5760405162461bcd60e51b8152602060048201526051602482015260008051602061390b833981519152604482015260008051602061392b833981519152606482015270722077686974656c6973742073616c652160781b608482015260a401610ca3565b601b5433600090815260176020526040902054611ccc90859061368d565b1115611cea5760405162461bcd60e51b8152600401610ca390613795565b611cf58260026120ec565b611d665760405162461bcd60e51b8152602060048201526048602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e672077686974656c6960648201526773742073616c652160c01b608482015260a401610ca3565b3360009081526017602052604081208054859290611d8590849061368d565b90915550611d959050338461265d565b60005b838110156111df57611dae601380546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015611df357600080fd5b505af1158015611e07573d6000803e3d6000fd5b505050508080611e16906137fc565b915050611d98565b6001600160a01b038216331415611e485760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611ede5760405162461bcd60e51b8152600401610ca390613569565b601c55565b6008546001600160a01b03163314611f0d5760405162461bcd60e51b8152600401610ca390613569565b602055565b611f1d84848461278d565b6001600160a01b0383163b15611f5657611f3984848484612b88565b611f56576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000611f6760145490565b601354601254601154611f7a919061368d565b611f84919061368d565b610e93919061368d565b6060611f99826125c8565b611fb657604051630a14c4b560e41b815260040160405180910390fd5b6000611fc0612c7f565b9050805160001415611fe1576040518060200160405280600081525061200c565b80611feb84612c8e565b604051602001611ffc929190613857565b6040516020818303038152906040525b9392505050565b601f80546120209061359e565b80601f016020809104026020016040519081016040528092919081815260200182805461204c9061359e565b80156120995780601f1061206e57610100808354040283529160200191612099565b820191906000526020600020905b81548152906001019060200180831161207c57829003601f168201915b505050505081565b6008546001600160a01b031633146120cb5760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6000808260011415612140576040516001600160601b03193360601b166020820152675052494f5249545960c01b6034820152603c015b6040516020818303038152906040528051906020012090506121c4565b8260021415612179576040516001600160601b03193360601b1660208201526815d2125511531254d560ba1b6034820152603d01612123565b82600314156121c4576040516001600160601b03193360601b166020820152665245534552564560c81b6034820152603b016040516020818303038152906040528051906020012090505b600061221d826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b601e549091506001600160a01b03166122368287612d8c565b6001600160a01b03161495945050505050565b600061225560006115ce565b610c73908361373b565b600260095414156122825760405162461bcd60e51b8152600401610ca3906135d9565b60026009553233146122a65760405162461bcd60e51b8152600401610ca390613610565b80600e54600a546122b79190613676565b816122c0611f5c565b6122ca919061368d565b11156122e85760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160a81b900460ff166123675760405162461bcd60e51b815260206004820152603e60248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20507560448201527f626c6963204d696e74696e67206469646e2774207374617274207965742100006064820152608401610ca3565b601a548211156123895760405162461bcd60e51b8152600401610ca3906136f0565b61239282612249565b3410156123b15760405162461bcd60e51b8152600401610ca39061375a565b600c54826123be60125490565b6123c8919061368d565b111561242f5760405162461bcd60e51b815260206004820152604e602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526d72207075626c69632073616c652160901b608482015260a401610ca3565b601a543360009081526016602052604090205461244d90849061368d565b111561246b5760405162461bcd60e51b8152600401610ca390613795565b336000908152601660205260408120805484929061248a90849061368d565b9091555061249a9050338361265d565b60005b82811015612523576124b3601280546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156124f857600080fd5b505af115801561250c573d6000803e3d6000fd5b50505050808061251b906137fc565b91505061249d565b5050600160095550565b6008546001600160a01b031633146125575760405162461bcd60e51b8152600401610ca390613569565b6001600160a01b0381166125bc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca3565b6125c581612aa0565b50565b6000816001111580156125dc575060005482105b8015610c73575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b03831661268657604051622e076360e81b815260040160405180910390fd5b816126a45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106127415750600055505050565b60006127988261297c565b9050836001600160a01b031681600001516001600160a01b0316146127cf5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806127ed57506127ed8533610b38565b806128085750336127fd84610d5f565b6001600160a01b0316145b90508061282857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661284f57604051633a954ecd60e21b815260040160405180910390fd5b61285b60008487612601565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612931576000548214612931578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612a8757600054811015612a8757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a855780516001600160a01b031615612a1b579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a80579392505050565b612a1b565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b3f576040519150601f19603f3d011682016040523d82523d6000602084013e612b44565b606091505b5050905080610e255760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ca3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bbd903390899088908890600401613886565b602060405180830381600087803b158015612bd757600080fd5b505af1925050508015612c07575060408051601f3d908101601f19168201909252612c04918101906138c3565b60015b612c62573d808015612c35576040519150601f19603f3d011682016040523d82523d6000602084013e612c3a565b606091505b508051612c5a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601f8054610cdc9061359e565b606081612cb25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612cdc5780612cc6816137fc565b9150612cd59050600a8361382d565b9150612cb6565b60008167ffffffffffffffff811115612cf757612cf76132b2565b6040519080825280601f01601f191660200182016040528015612d21576020820181803683370190505b5090505b841561168857612d36600183613676565b9150612d43600a866138e0565b612d4e90603061368d565b60f81b818381518110612d6357612d63613841565b60200101906001600160f81b031916908160001a905350612d85600a8661382d565b9450612d25565b6000806000612d9b8585612db0565b91509150612da881612e20565b509392505050565b600080825160411415612de75760208301516040840151606085015160001a612ddb87828585612fdb565b94509450505050612e19565b825160401415612e115760208301516040840151612e068683836130c8565b935093505050612e19565b506000905060025b9250929050565b6000816004811115612e3457612e346138f4565b1415612e3d5750565b6001816004811115612e5157612e516138f4565b1415612e9f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ca3565b6002816004811115612eb357612eb36138f4565b1415612f015760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ca3565b6003816004811115612f1557612f156138f4565b1415612f6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ca3565b6004816004811115612f8257612f826138f4565b14156125c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ca3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561301257506000905060036130bf565b8460ff16601b1415801561302a57508460ff16601c14155b1561303b57506000905060046130bf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561308f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130b8576000600192509250506130bf565b9150600090505b94509492505050565b6000806001600160ff1b038316816130e560ff86901c601b61368d565b90506130f387828885612fdb565b935093505050935093915050565b82805461310d9061359e565b90600052602060002090601f01602090048101928261312f5760008555613175565b82601f1061314857805160ff1916838001178555613175565b82800160010185558215613175579182015b8281111561317557825182559160200191906001019061315a565b50613181929150613185565b5090565b5b808211156131815760008155600101613186565b6001600160e01b0319811681146125c557600080fd5b6000602082840312156131c257600080fd5b813561200c8161319a565b60005b838110156131e85781810151838201526020016131d0565b83811115611f565750506000910152565b600081518084526132118160208601602086016131cd565b601f01601f19169290920160200192915050565b60208152600061200c60208301846131f9565b60006020828403121561324a57600080fd5b5035919050565b80356001600160a01b038116811461326857600080fd5b919050565b6000806040838503121561328057600080fd5b61328983613251565b946020939093013593505050565b6000602082840312156132a957600080fd5b61200c82613251565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132e3576132e36132b2565b604051601f8501601f19908116603f0116810190828211818310171561330b5761330b6132b2565b8160405280935085815286868601111561332457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261334f57600080fd5b61200c838335602085016132c8565b6000806040838503121561337157600080fd5b82359150602083013567ffffffffffffffff81111561338f57600080fd5b61339b8582860161333e565b9150509250929050565b6000806000606084860312156133ba57600080fd5b6133c384613251565b92506133d160208501613251565b9150604084013590509250925092565b6000602082840312156133f357600080fd5b813567ffffffffffffffff81111561340a57600080fd5b8201601f8101841361341b57600080fd5b611688848235602084016132c8565b6000806040838503121561343d57600080fd5b8235915061344d60208401613251565b90509250929050565b6000806040838503121561346957600080fd5b61347283613251565b91506020830135801515811461348757600080fd5b809150509250929050565b600080600080608085870312156134a857600080fd5b6134b185613251565b93506134bf60208601613251565b925060408501359150606085013567ffffffffffffffff8111156134e257600080fd5b6134ee8782880161333e565b91505092959194509250565b6000806040838503121561350d57600080fd5b823567ffffffffffffffff81111561352457600080fd5b6135308582860161333e565b95602094909401359450505050565b6000806040838503121561355257600080fd5b61355b83613251565b915061344d60208401613251565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806135b257607f821691505b602082108114156135d357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f53697874685265736561753a204c6f7374204964656e7469746965733a204f6e60408201526f6c7920454f412063616e206d696e742160801b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561368857613688613660565b500390565b600082198211156136a0576136a0613660565b500190565b6020808252603e9082015260008051602061390b83398151915260408201527f6e74696e6720776f756c6420657863656564206d617820737570706c79210000606082015260800190565b6020808252603b9082015260008051602061390b83398151915260408201527f6e74696e67206d6f7265207468616e206d617820616d6f756e74210000000000606082015260800190565b600081600019048311821515161561375557613755613660565b500290565b6020808252602d9082015260008051602061394b83398151915260408201526c7420656e6f756768204554482160981b606082015260800190565b60208082526041908201527f53697874685265736561753a204c6f7374204964656e7469746965733a20596f60408201527f7520616c7265616479206d696e74656420616c6c20796f757220746f6b656e736060820152602160f81b608082015260a00190565b600060001982141561381057613810613660565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261383c5761383c613817565b500490565b634e487b7160e01b600052603260045260246000fd5b600083516138698184602088016131cd565b83519083019061387d8183602088016131cd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138b9908301846131f9565b9695505050505050565b6000602082840312156138d557600080fd5b815161200c8161319a565b6000826138ef576138ef613817565b500690565b634e487b7160e01b600052602160045260246000fdfe53697874685265736561753a204c6f7374204964656e7469746965733a204d696e74696e6720776f756c6420657863656564206d617820737570706c7920666f53697874685265736561753a204c6f7374204964656e7469746965733a204e6fa26469706673582212208ff0830f1c8e94b9167cb483be67421dfbdbbc7c33738e00fc7c0dd3035071d364736f6c6343000809003300000000000000000000000032b249ba9fb9d79f536402dfd71190866433a777000000000000000000000000000000000000000000000000000000000000006000000000000000000000000034527c295252c2cdf8f760e09cc37db7759f1b4c0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d584e4a7156774a387736344568343167366e74513132386753616d7232676e3473476b667a547752465557532f00000000000000000000

Deployed Bytecode

0x6080604052600436106103ef5760003560e01c8063773326fe11610208578063b88d4fde11610118578063e7229e39116100ab578063efd0cbf91161007a578063efd0cbf914610b9c578063f2fde38b14610baf578063f5850a4f14610bcf578063f82be42914610bf0578063fc1a1c3614610c1157600080fd5b8063e7229e3914610add578063e757223014610afd578063e985e9c514610b1d578063ec23f81e14610b6657600080fd5b8063cabadaa0116100e7578063cabadaa014610a87578063d547cfb714610a9d578063d5abeb0114610ab2578063e222c7f914610ac857600080fd5b8063b88d4fde14610a12578063c38b761c14610a32578063c4e41b2214610a52578063c87b56dd14610a6757600080fd5b8063853828b61161019b5780639f41554a1161016a5780639f41554a1461097e578063a22cb46514610991578063a5a865dc146109b1578063ac992511146109d2578063ad81e130146109f257600080fd5b8063853828b61461091e5780638da5cb5b146109335780638ddfec381461095157806395d89b411461096957600080fd5b80637b43b827116101d75780637b43b827146108b35780637bffd755146108d35780637dc42975146108f35780638455da961461090957600080fd5b8063773326fe1461083c578063785e222d146108525780637917f6071461086757806379afdefe1461089d57600080fd5b8063309a3686116103035780635c975abb1161029657806370a082311161026557806370a082311461079b578063715018a6146107bb578063717d57d3146107d0578063739e97ff146107f05780637431dadc1461080657600080fd5b80635c975abb1461071c5780636352211e1461073b5780636c19e7831461075b5780636e8279171461077b57600080fd5b806343b22055116102d257806343b22055146106bc57806344442a73146106d1578063559e775b146106e757806359eda1b51461070757600080fd5b8063309a368614610653578063380662721461066957806339888bba1461067c57806342842e0e1461069c57600080fd5b80631455b1e2116103865780631a2bec99116103555780631a2bec99146105a85780631b332351146105bd5780631e0b269d1461060057806323b872dd1461061357806330176e131461063357600080fd5b80631455b1e21461053e578063150dad821461055f57806315a553471461057557806318160ddd1461058b57600080fd5b8063095ea7b3116103c2578063095ea7b31461049a57806309a7c788146104ba5780630df300db146104fe5780630f5329531461051e57600080fd5b806301ffc9a7146103f4578063034d77941461042957806306fdde0314610440578063081812fc14610462575b600080fd5b34801561040057600080fd5b5061041461040f3660046131b0565b610c27565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c79565b005b34801561044c57600080fd5b50610455610ccd565b6040516104209190613225565b34801561046e57600080fd5b5061048261047d366004613238565b610d5f565b6040516001600160a01b039091168152602001610420565b3480156104a657600080fd5b5061043e6104b536600461326d565b610da3565b3480156104c657600080fd5b506104f06104d5366004613297565b6001600160a01b031660009081526015602052604090205490565b604051908152602001610420565b34801561050a57600080fd5b5061043e610519366004613238565b610e2a565b34801561052a57600080fd5b5061043e610539366004613238565b610e59565b34801561054a57600080fd5b50601e5461041490600160b01b900460ff1681565b34801561056b57600080fd5b506104f0601c5481565b34801561058157600080fd5b506104f0600e5481565b34801561059757600080fd5b5060015460005403600019016104f0565b3480156105b457600080fd5b506104f0610e88565b3480156105c957600080fd5b506020546021546022546023546105e09392919084565b604080519485526020850193909352918301526060820152608001610420565b61043e61060e36600461335e565b610e98565b34801561061f57600080fd5b5061043e61062e3660046133a5565b6111ea565b34801561063f57600080fd5b5061043e61064e3660046133e1565b6111f5565b34801561065f57600080fd5b506104f0601b5481565b61043e61067736600461335e565b611236565b34801561068857600080fd5b5061043e610697366004613238565b611579565b3480156106a857600080fd5b5061043e6106b73660046133a5565b6115a8565b3480156106c857600080fd5b506104f06115c3565b3480156106dd57600080fd5b506104f0600b5481565b3480156106f357600080fd5b506104f0610702366004613238565b6115ce565b34801561071357600080fd5b5061043e611690565b34801561072857600080fd5b50600854600160a01b900460ff16610414565b34801561074757600080fd5b50610482610756366004613238565b6116db565b34801561076757600080fd5b5061043e610776366004613297565b6116ed565b34801561078757600080fd5b5061043e610796366004613238565b611739565b3480156107a757600080fd5b506104f06107b6366004613297565b611768565b3480156107c757600080fd5b5061043e6117b7565b3480156107dc57600080fd5b5061043e6107eb366004613238565b6117ed565b3480156107fc57600080fd5b506104f060195481565b34801561081257600080fd5b506104f0610821366004613297565b6001600160a01b031660009081526017602052604090205490565b34801561084857600080fd5b506104f0600d5481565b34801561085e57600080fd5b5061043e61181c565b34801561087357600080fd5b506104f0610882366004613297565b6001600160a01b031660009081526018602052604090205490565b3480156108a957600080fd5b506104f0600f5481565b3480156108bf57600080fd5b5061043e6108ce366004613297565b611867565b3480156108df57600080fd5b5061043e6108ee36600461342a565b6118b3565b3480156108ff57600080fd5b506104f0600c5481565b34801561091557600080fd5b506104f06119f0565b34801561092a57600080fd5b5061043e6119fb565b34801561093f57600080fd5b506008546001600160a01b0316610482565b34801561095d57600080fd5b50602054421015610414565b34801561097557600080fd5b50610455611abe565b61043e61098c36600461335e565b611acd565b34801561099d57600080fd5b5061043e6109ac366004613456565b611e1e565b3480156109bd57600080fd5b50601e5461041490600160a81b900460ff1681565b3480156109de57600080fd5b5061043e6109ed366004613238565b611eb4565b3480156109fe57600080fd5b5061043e610a0d366004613238565b611ee3565b348015610a1e57600080fd5b5061043e610a2d366004613492565b611f12565b348015610a3e57600080fd5b50601d54610482906001600160a01b031681565b348015610a5e57600080fd5b506104f0611f5c565b348015610a7357600080fd5b50610455610a82366004613238565b611f8e565b348015610a9357600080fd5b506104f0601a5481565b348015610aa957600080fd5b50610455612013565b348015610abe57600080fd5b506104f0600a5481565b348015610ad457600080fd5b5061043e6120a1565b348015610ae957600080fd5b50610414610af83660046134fa565b6120ec565b348015610b0957600080fd5b506104f0610b18366004613238565b612249565b348015610b2957600080fd5b50610414610b3836600461353f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b7257600080fd5b506104f0610b81366004613297565b6001600160a01b031660009081526016602052604090205490565b61043e610baa366004613238565b61225f565b348015610bbb57600080fd5b5061043e610bca366004613297565b61252d565b348015610bdb57600080fd5b50601e5461041490600160a01b900460ff1681565b348015610bfc57600080fd5b50601e5461041490600160b81b900460ff1681565b348015610c1d57600080fd5b506104f060105481565b60006001600160e01b031982166380ac58cd60e01b1480610c5857506001600160e01b03198216635b5e139f60e01b145b80610c7357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610cac5760405162461bcd60e51b8152600401610ca390613569565b60405180910390fd5b601e805460ff60b81b198116600160b81b9182900460ff1615909102179055565b606060028054610cdc9061359e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d089061359e565b8015610d555780601f10610d2a57610100808354040283529160200191610d55565b820191906000526020600020905b815481529060010190602001808311610d3857829003601f168201915b5050505050905090565b6000610d6a826125c8565b610d87576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dae826116db565b9050806001600160a01b0316836001600160a01b03161415610de35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e1a57610dfd8133610b38565b610e1a576040516367d9dca160e11b815260040160405180910390fd5b610e25838383612601565b505050565b6008546001600160a01b03163314610e545760405162461bcd60e51b8152600401610ca390613569565b602255565b6008546001600160a01b03163314610e835760405162461bcd60e51b8152600401610ca390613569565b602155565b6000610e9360135490565b905090565b60026009541415610ebb5760405162461bcd60e51b8152600401610ca3906135d9565b6002600955323314610edf5760405162461bcd60e51b8152600401610ca390613610565b81600e54600a54610ef09190613676565b81610ef9611f5c565b610f03919061368d565b1115610f215760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160a01b900460ff16610fa2576040805162461bcd60e51b81526020600482015260248101919091527f53697874685265736561753a204c6f7374204964656e7469746965733a20507260448201527f696f72697479204d696e74696e67206469646e277420737461727420796574216064820152608401610ca3565b601954831115610fc45760405162461bcd60e51b8152600401610ca3906136f0565b600f54610fd1908461373b565b341015610ff05760405162461bcd60e51b8152600401610ca39061375a565b600b5483610ffd60115490565b611007919061368d565b11156110705760405162461bcd60e51b8152602060048201526050602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526f72207072696f726974792073616c652160801b608482015260a401610ca3565b6019543360009081526015602052604090205461108e90859061368d565b11156110ac5760405162461bcd60e51b8152600401610ca390613795565b6110b78260016120ec565b6111275760405162461bcd60e51b8152602060048201526047602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e67207072696f726974606482015266792073616c652160c81b608482015260a401610ca3565b336000908152601560205260408120805485929061114690849061368d565b909155506111569050338461265d565b60005b838110156111df5761116f601180546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156111b457600080fd5b505af11580156111c8573d6000803e3d6000fd5b5050505080806111d7906137fc565b915050611159565b505060016009555050565b610e2583838361278d565b6008546001600160a01b0316331461121f5760405162461bcd60e51b8152600401610ca390613569565b805161123290601f906020840190613101565b5050565b600260095414156112595760405162461bcd60e51b8152600401610ca3906135d9565b600260095532331461127d5760405162461bcd60e51b8152600401610ca390613610565b81600e54600a5461128e9190613676565b81611297611f5c565b6112a1919061368d565b11156112bf5760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160b81b900460ff1661133e5760405162461bcd60e51b815260206004820152603f60248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20526560448201527f7365727665204d696e74696e67206469646e27742073746172742079657421006064820152608401610ca3565b601c548311156113605760405162461bcd60e51b8152600401610ca3906136f0565b60105461136d908461373b565b34101561138c5760405162461bcd60e51b8152600401610ca39061375a565b600d548361139960135490565b6113a3919061368d565b111561140b5760405162461bcd60e51b815260206004820152604f602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526e7220726573657276652073616c652160881b608482015260a401610ca3565b601c543360009081526018602052604090205461142990859061368d565b11156114475760405162461bcd60e51b8152600401610ca390613795565b6114528260036120ec565b6114c15760405162461bcd60e51b8152602060048201526046602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e6720726573657276656064820152652073616c652160d01b608482015260a401610ca3565b33600090815260186020526040812080548592906114e090849061368d565b909155506114f09050338461265d565b60005b838110156111df57611509601380546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b15801561154e57600080fd5b505af1158015611562573d6000803e3d6000fd5b505050508080611571906137fc565b9150506114f3565b6008546001600160a01b031633146115a35760405162461bcd60e51b8152600401610ca390613569565b602355565b610e2583838360405180602001604052806000815250611f12565b6000610e9360115490565b60006115dc60205442101590565b6115e857505060225490565b81156115f457816115f6565b425b6020549092506000906116099084613676565b602154909150811061161f575050602354919050565b602354602254600091620186a0916116379190613676565b60215461164785620186a061373b565b611651919061382d565b61165b919061373b565b611665919061382d565b6022546116729190613676565b602354909150811161168657602354611688565b805b949350505050565b6008546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60b01b198116600160b01b9182900460ff1615909102179055565b60006116e68261297c565b5192915050565b6008546001600160a01b031633146117175760405162461bcd60e51b8152600401610ca390613569565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146117635760405162461bcd60e51b8152600401610ca390613569565b600f55565b60006001600160a01b038216611791576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146117e15760405162461bcd60e51b8152600401610ca390613569565b6117eb6000612aa0565b565b6008546001600160a01b031633146118175760405162461bcd60e51b8152600401610ca390613569565b601055565b6008546001600160a01b031633146118465760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6008546001600160a01b031633146118915760405162461bcd60e51b8152600401610ca390613569565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146118dd5760405162461bcd60e51b8152600401610ca390613569565b81600e5410156119435760405162461bcd60e51b8152602060048201526039602482015260008051602061394b83398151915260448201527f7420656e6f75676820726573657276656420746f6b656e7321000000000000006064820152608401610ca3565b81600e60008282546119559190613676565b909155506119659050818361265d565b60005b82811015610e255761197e601480546001019055565b601d546040516335313c2160e11b81526001600160a01b03848116600483015290911690636a62784290602401600060405180830381600087803b1580156119c557600080fd5b505af11580156119d9573d6000803e3d6000fd5b5050505080806119e8906137fc565b915050611968565b6000610e9360125490565b6008546001600160a01b03163314611a255760405162461bcd60e51b8152600401610ca390613569565b4780611a3057600080fd5b60005b60255481101561123257611aac60258281548110611a5357611a53613841565b9060005260206000200160009054906101000a90046001600160a01b03166103e860248481548110611a8757611a87613841565b906000526020600020015485611a9d919061373b565b611aa7919061382d565b612af2565b80611ab6816137fc565b915050611a33565b606060038054610cdc9061359e565b60026009541415611af05760405162461bcd60e51b8152600401610ca3906135d9565b6002600955323314611b145760405162461bcd60e51b8152600401610ca390613610565b81600e54600a54611b259190613676565b81611b2e611f5c565b611b38919061368d565b1115611b565760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160b01b900460ff16611bdf5760405162461bcd60e51b815260206004820152604160248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20576860448201527f6974656c697374204d696e74696e67206469646e2774207374617274207965746064820152602160f81b608482015260a401610ca3565b601b54831115611c015760405162461bcd60e51b8152600401610ca3906136f0565b601054611c0e908461373b565b341015611c2d5760405162461bcd60e51b8152600401610ca39061375a565b600d5483611c3a60135490565b611c44919061368d565b1115611cae5760405162461bcd60e51b8152602060048201526051602482015260008051602061390b833981519152604482015260008051602061392b833981519152606482015270722077686974656c6973742073616c652160781b608482015260a401610ca3565b601b5433600090815260176020526040902054611ccc90859061368d565b1115611cea5760405162461bcd60e51b8152600401610ca390613795565b611cf58260026120ec565b611d665760405162461bcd60e51b8152602060048201526048602482015260008051602061394b83398151915260448201527f7420616c6c6f77656420746f206d696e7420647572696e672077686974656c6960648201526773742073616c652160c01b608482015260a401610ca3565b3360009081526017602052604081208054859290611d8590849061368d565b90915550611d959050338461265d565b60005b838110156111df57611dae601380546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b158015611df357600080fd5b505af1158015611e07573d6000803e3d6000fd5b505050508080611e16906137fc565b915050611d98565b6001600160a01b038216331415611e485760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611ede5760405162461bcd60e51b8152600401610ca390613569565b601c55565b6008546001600160a01b03163314611f0d5760405162461bcd60e51b8152600401610ca390613569565b602055565b611f1d84848461278d565b6001600160a01b0383163b15611f5657611f3984848484612b88565b611f56576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000611f6760145490565b601354601254601154611f7a919061368d565b611f84919061368d565b610e93919061368d565b6060611f99826125c8565b611fb657604051630a14c4b560e41b815260040160405180910390fd5b6000611fc0612c7f565b9050805160001415611fe1576040518060200160405280600081525061200c565b80611feb84612c8e565b604051602001611ffc929190613857565b6040516020818303038152906040525b9392505050565b601f80546120209061359e565b80601f016020809104026020016040519081016040528092919081815260200182805461204c9061359e565b80156120995780601f1061206e57610100808354040283529160200191612099565b820191906000526020600020905b81548152906001019060200180831161207c57829003601f168201915b505050505081565b6008546001600160a01b031633146120cb5760405162461bcd60e51b8152600401610ca390613569565b601e805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6000808260011415612140576040516001600160601b03193360601b166020820152675052494f5249545960c01b6034820152603c015b6040516020818303038152906040528051906020012090506121c4565b8260021415612179576040516001600160601b03193360601b1660208201526815d2125511531254d560ba1b6034820152603d01612123565b82600314156121c4576040516001600160601b03193360601b166020820152665245534552564560c81b6034820152603b016040516020818303038152906040528051906020012090505b600061221d826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b601e549091506001600160a01b03166122368287612d8c565b6001600160a01b03161495945050505050565b600061225560006115ce565b610c73908361373b565b600260095414156122825760405162461bcd60e51b8152600401610ca3906135d9565b60026009553233146122a65760405162461bcd60e51b8152600401610ca390613610565b80600e54600a546122b79190613676565b816122c0611f5c565b6122ca919061368d565b11156122e85760405162461bcd60e51b8152600401610ca3906136a5565b601e54600160a81b900460ff166123675760405162461bcd60e51b815260206004820152603e60248201527f53697874685265736561753a204c6f7374204964656e7469746965733a20507560448201527f626c6963204d696e74696e67206469646e2774207374617274207965742100006064820152608401610ca3565b601a548211156123895760405162461bcd60e51b8152600401610ca3906136f0565b61239282612249565b3410156123b15760405162461bcd60e51b8152600401610ca39061375a565b600c54826123be60125490565b6123c8919061368d565b111561242f5760405162461bcd60e51b815260206004820152604e602482015260008051602061390b833981519152604482015260008051602061392b83398151915260648201526d72207075626c69632073616c652160901b608482015260a401610ca3565b601a543360009081526016602052604090205461244d90849061368d565b111561246b5760405162461bcd60e51b8152600401610ca390613795565b336000908152601660205260408120805484929061248a90849061368d565b9091555061249a9050338361265d565b60005b82811015612523576124b3601280546001019055565b601d546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156124f857600080fd5b505af115801561250c573d6000803e3d6000fd5b50505050808061251b906137fc565b91505061249d565b5050600160095550565b6008546001600160a01b031633146125575760405162461bcd60e51b8152600401610ca390613569565b6001600160a01b0381166125bc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca3565b6125c581612aa0565b50565b6000816001111580156125dc575060005482105b8015610c73575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b03831661268657604051622e076360e81b815260040160405180910390fd5b816126a45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106127415750600055505050565b60006127988261297c565b9050836001600160a01b031681600001516001600160a01b0316146127cf5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806127ed57506127ed8533610b38565b806128085750336127fd84610d5f565b6001600160a01b0316145b90508061282857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661284f57604051633a954ecd60e21b815260040160405180910390fd5b61285b60008487612601565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612931576000548214612931578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60408051606081018252600080825260208201819052918101919091528180600111612a8757600054811015612a8757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a855780516001600160a01b031615612a1b579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a80579392505050565b612a1b565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612b3f576040519150601f19603f3d011682016040523d82523d6000602084013e612b44565b606091505b5050905080610e255760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610ca3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612bbd903390899088908890600401613886565b602060405180830381600087803b158015612bd757600080fd5b505af1925050508015612c07575060408051601f3d908101601f19168201909252612c04918101906138c3565b60015b612c62573d808015612c35576040519150601f19603f3d011682016040523d82523d6000602084013e612c3a565b606091505b508051612c5a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601f8054610cdc9061359e565b606081612cb25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612cdc5780612cc6816137fc565b9150612cd59050600a8361382d565b9150612cb6565b60008167ffffffffffffffff811115612cf757612cf76132b2565b6040519080825280601f01601f191660200182016040528015612d21576020820181803683370190505b5090505b841561168857612d36600183613676565b9150612d43600a866138e0565b612d4e90603061368d565b60f81b818381518110612d6357612d63613841565b60200101906001600160f81b031916908160001a905350612d85600a8661382d565b9450612d25565b6000806000612d9b8585612db0565b91509150612da881612e20565b509392505050565b600080825160411415612de75760208301516040840151606085015160001a612ddb87828585612fdb565b94509450505050612e19565b825160401415612e115760208301516040840151612e068683836130c8565b935093505050612e19565b506000905060025b9250929050565b6000816004811115612e3457612e346138f4565b1415612e3d5750565b6001816004811115612e5157612e516138f4565b1415612e9f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ca3565b6002816004811115612eb357612eb36138f4565b1415612f015760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ca3565b6003816004811115612f1557612f156138f4565b1415612f6e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ca3565b6004816004811115612f8257612f826138f4565b14156125c55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ca3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561301257506000905060036130bf565b8460ff16601b1415801561302a57508460ff16601c14155b1561303b57506000905060046130bf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561308f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130b8576000600192509250506130bf565b9150600090505b94509492505050565b6000806001600160ff1b038316816130e560ff86901c601b61368d565b90506130f387828885612fdb565b935093505050935093915050565b82805461310d9061359e565b90600052602060002090601f01602090048101928261312f5760008555613175565b82601f1061314857805160ff1916838001178555613175565b82800160010185558215613175579182015b8281111561317557825182559160200191906001019061315a565b50613181929150613185565b5090565b5b808211156131815760008155600101613186565b6001600160e01b0319811681146125c557600080fd5b6000602082840312156131c257600080fd5b813561200c8161319a565b60005b838110156131e85781810151838201526020016131d0565b83811115611f565750506000910152565b600081518084526132118160208601602086016131cd565b601f01601f19169290920160200192915050565b60208152600061200c60208301846131f9565b60006020828403121561324a57600080fd5b5035919050565b80356001600160a01b038116811461326857600080fd5b919050565b6000806040838503121561328057600080fd5b61328983613251565b946020939093013593505050565b6000602082840312156132a957600080fd5b61200c82613251565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132e3576132e36132b2565b604051601f8501601f19908116603f0116810190828211818310171561330b5761330b6132b2565b8160405280935085815286868601111561332457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261334f57600080fd5b61200c838335602085016132c8565b6000806040838503121561337157600080fd5b82359150602083013567ffffffffffffffff81111561338f57600080fd5b61339b8582860161333e565b9150509250929050565b6000806000606084860312156133ba57600080fd5b6133c384613251565b92506133d160208501613251565b9150604084013590509250925092565b6000602082840312156133f357600080fd5b813567ffffffffffffffff81111561340a57600080fd5b8201601f8101841361341b57600080fd5b611688848235602084016132c8565b6000806040838503121561343d57600080fd5b8235915061344d60208401613251565b90509250929050565b6000806040838503121561346957600080fd5b61347283613251565b91506020830135801515811461348757600080fd5b809150509250929050565b600080600080608085870312156134a857600080fd5b6134b185613251565b93506134bf60208601613251565b925060408501359150606085013567ffffffffffffffff8111156134e257600080fd5b6134ee8782880161333e565b91505092959194509250565b6000806040838503121561350d57600080fd5b823567ffffffffffffffff81111561352457600080fd5b6135308582860161333e565b95602094909401359450505050565b6000806040838503121561355257600080fd5b61355b83613251565b915061344d60208401613251565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806135b257607f821691505b602082108114156135d357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526030908201527f53697874685265736561753a204c6f7374204964656e7469746965733a204f6e60408201526f6c7920454f412063616e206d696e742160801b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561368857613688613660565b500390565b600082198211156136a0576136a0613660565b500190565b6020808252603e9082015260008051602061390b83398151915260408201527f6e74696e6720776f756c6420657863656564206d617820737570706c79210000606082015260800190565b6020808252603b9082015260008051602061390b83398151915260408201527f6e74696e67206d6f7265207468616e206d617820616d6f756e74210000000000606082015260800190565b600081600019048311821515161561375557613755613660565b500290565b6020808252602d9082015260008051602061394b83398151915260408201526c7420656e6f756768204554482160981b606082015260800190565b60208082526041908201527f53697874685265736561753a204c6f7374204964656e7469746965733a20596f60408201527f7520616c7265616479206d696e74656420616c6c20796f757220746f6b656e736060820152602160f81b608082015260a00190565b600060001982141561381057613810613660565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261383c5761383c613817565b500490565b634e487b7160e01b600052603260045260246000fd5b600083516138698184602088016131cd565b83519083019061387d8183602088016131cd565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138b9908301846131f9565b9695505050505050565b6000602082840312156138d557600080fd5b815161200c8161319a565b6000826138ef576138ef613817565b500690565b634e487b7160e01b600052602160045260246000fdfe53697874685265736561753a204c6f7374204964656e7469746965733a204d696e74696e6720776f756c6420657863656564206d617820737570706c7920666f53697874685265736561753a204c6f7374204964656e7469746965733a204e6fa26469706673582212208ff0830f1c8e94b9167cb483be67421dfbdbbc7c33738e00fc7c0dd3035071d364736f6c63430008090033

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

00000000000000000000000032b249ba9fb9d79f536402dfd71190866433a777000000000000000000000000000000000000000000000000000000000000006000000000000000000000000034527c295252c2cdf8f760e09cc37db7759f1b4c0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d584e4a7156774a387736344568343167366e74513132386753616d7232676e3473476b667a547752465557532f00000000000000000000

-----Decoded View---------------
Arg [0] : _mysteryBox (address): 0x32B249BA9Fb9D79f536402DfD71190866433A777
Arg [1] : _baseTokenURI (string): ipfs://QmXNJqVwJ8w64Eh41g6ntQ128gSamr2gn4sGkfzTwRFUWS/
Arg [2] : _signerNew (address): 0x34527c295252C2cdF8F760E09CC37db7759F1b4C

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000032b249ba9fb9d79f536402dfd71190866433a777
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000034527c295252c2cdf8f760e09cc37db7759f1b4c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d584e4a7156774a387736344568343167366e7451313238
Arg [5] : 6753616d7232676e3473476b667a547752465557532f00000000000000000000


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.