ETH Price: $2,493.63 (-0.42%)

Token

DiamondTicket (DIAMOND)
 

Overview

Max Total Supply

4,981 DIAMOND

Holders

2,624

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 DIAMOND
0x1e3c2c6996f02f326fd6cfc8f805adf63915bfa3
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:
DiamondTicket

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 3000 runs

Other Settings:
default evmVersion
File 1 of 18 : DiamondTicket.sol
//SPDX-License-Identifier: MIT

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
-██████▀"                                                                                                        '▀███▀'                                    "▀██████-
-█████                                                                                                              ▀                                          █████-
-████:        ////// /////// //// //// ///////                                                                             ////// /////// //// //// ///////    :████-
-████        ///       ////           ///                                                                                 ///       ////           ///          ████-
-████       /// ///// //// //// //// ///////                            █ █▀█ █ █ █▀▄ █  █ █▀ █ █  █▀█ █▀▄ █▀█ █▀█       /// ///// //// //// //// ///////       ████-
-████      /// // // //// //// //       ///                             █ █ █ █ █ █ █ █▄ █ █  █ █  █ █ █ █ █ ▀ █ ▀      /// // // //// //// //       ///        ████-
-████     /// ///// //// //// //// ///////                              █ █ █ █ █ █▄▀ █ ██ █▀ ▀▄▀  █▄█ █▄█ ▀▀▄ ▀▀▄     /// ///// //// //// //// ///////         ████-
-████    ///       ////. C  O  Z  I  E  S .                           █▄█ █▄█ ▀▄▀ █ █ █  █ █▄  █   █   █ █ █▄█ █▄█    ///       ////. C  O  Z  I  E  S .        ████-
-████   ///////// ////////////// // // //                                                                            ///////// ////////////// // // //          ████-
-████                                                                                                                                                           ████-
-████                                                                                                                                                           ████-
-████                                                                                                                                                           ████-
-████   ::::  :::  :::: :::::::  ::::::.     .::::.       :.               .::::.   .:::::.   ::::::::: :::   :::   █   █ █▀ █▀█ █▀█   █▄     ▄▀▄ ▄▀▄ █▀█ █ █   ████-
-████   ::::  :::  :::: :::::::  ::::::::   ::::::::      :::.            :::::::  .:::::::.  ::::::::: :::   :::   █ █ █ █  █ █   █   ███▄   █   █ █ ▀ █ █ █   ████-
-████   ::::  :::  :::: ::::     :::: :::   ::: ::::      :::::.         .:::"  "  :::' ':::       :::: :::. .:::   █ █ █ █▀ █▀▄  ▀█   ███▀   █   █ █ ▄▀▀ ▀▄▀   ████-
-████   ::::..:::..:::: ::::     :::: :::   ::: ::::      :::::::.       ::::      :::   :::      ::::  ":::::::"   ▀▄▀▄▀ █▄ █▄█ █▄█   █▀     ▀▄▀ ▀▄▀ █▄█  █    ████-
-████   ::::::::::::::: ::::     :::: :::      .:::.      ::::::::.      :::"      :::   :::     .:::'   :::::::                                                ████-
-████   ::::::::::::::: :::::::  :::::::      .::::       ::::::::::     :::'      :::   :::     :::"     :::::                                                 ████-
-████    :::::::::::::  :::::::  ::::::::      ::::.      ::::::::.      :::'      :::   :::    ::::       :::      :::::::::::::::::::::::                     ████-
-████    :::::: ::::::  ::::     :::: :::       .:::      :::::::'       :::,      :::   :::   ::::        :::      ::::::: ::::: :: :   ::: :: ::::: :         ████-
-████     ::::   ::::   ::::     :::: :::   ::: .:::      :::::'         ":::   .  :::. .:::  ::::         :::                                                  ████-
-████      :::   :::    :::::::  ::::::::   ::::::::      :::"           ':::::::  ":::::::"  :::::::::    :::               █▀▀▀▀▀█ ▄ █ ▀█▄█▄ █▀▀▀▀▀█          ████-
-████       ::   ::     :::::::  :::::::     "::::"       :"               "::::'   ":::::"   :::::::::    :::               █ ███ █ ▄▄▄ █▀▄ ▀ █ ███ █          ████-
-████                                                                                                                        █ ▀▀▀ █ ▄█ ▄▄  ▄█ █ ▀▀▀ █          ████-
-████                                                                                                                        ▀▀▀▀▀▀▀ ▀▄█▄▀ █▄▀ ▀▀▀▀▀▀▀          ████-
-████                                                                                                                        ▀▀▀▀▀ ▀██▀▄▀▄▄▄ ▄▀ █ ▀ █           ████-
-████       █▀▄ ▄▀▄ ▄▀▀ ▄▀▀ ██▀ █▄ █ ▄▀  ██▀ █▀▄      ▄▀▀ ▄▀▄ █▀▄ ██▀       █▀▄ ██▀ █▀▄ ▄▀▄ █▀▄ ▀█▀ █ █ █▀▄ ██▀              ▀▀▀▄▄█▀▀█ ▀ ▄█▀▀▄█ ▀▀▀ ▀█          ████-
-████       █▀  █▀█ ▄██ ▄██ █▄▄ █ ▀█ ▀▄█ █▄▄ █▀▄      ▀▄▄ ▀▄▀ █▄▀ █▄▄       █▄▀ █▄▄ █▀  █▀█ █▀▄  █  ▀▄█ █▀▄ █▄▄              ▄▀▄ ▀ ▀▀▄▀▀ ▀ ▀  █▀▄▀▄▀█▀          ████-
-████                                                                                                                        █ ▀ ██▀▀▄█ █▀ ▄▀▀  ██▀ ▀█          ████-
-████                                             ▄▀▀ ▄▀▄ ▀█▀    ▄█ ▀██ █▄     ▄▀▀ ▀█▀ ▄▀▄ █▄ █ █▀▄   ██▄ ▀▄▀                ▀  ▀  ▀▀▄  ▀▄▄▄▀█▀▀▀█▄▀            ████-
-████                                             ▀▄▄ ▀▄▀ █▄▄ ▀▀  █ ▄▄█ ▄█     ▄██  █  █▀█ █ ▀█ █▄▀   █▄█  █                 █▀▀▀▀▀█ ▀ █ ▄█▀ █ ▀ █▄▀██          ████-
-████:                                                                                                                       █ ███ █ █▀▀ ▀ ▀▀▀██▀█▄█▄█         :████-
-████:                                                                                                                       █ ▀▀▀ █ ██ █▀ ▄▄▄  ▄▄█▀ █         :████-
-█████                                                                                                              ▄        ▀▀▀▀▀▀▀ ▀▀▀▀     ▀▀▀▀▀▀▀▀         █████-
-██████▄_                                                                                                        _▄███▄_                                   ._▄██████-
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
-███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████-
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Cozies Whitepaper [https://cozies.gitbook.io/cozies/]

Cozies NFT Terms & Conditions [https://cozies.io/terms]

CantBeEvil NFT License (written by a16z) Non-Exclusive Commercial Rights with Creator Retention & Hate Speech Termination (“CBE-NECR-HS”) 

[https://7q7win2vvm2wnqvltzauqamrnuyhq3jn57yqad2nrgau4fe3l5ya.arweave.net/_D9kN1WrNWbCq55BSAGRbTB4bS3v8QAPTYmBThSbX3A/3]*/ 

pragma solidity 0.8.9;

import "./interfaces/ICozies.sol";
import "./interfaces/IDiamondTicket.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";

error InvalidTime();
error InvalidInput();
error InvalidSignature();
error InvalidAddress();
error InvalidAmountETH();
error ExceedAmount();
error TokenNotExist();

contract DiamondTicketStorage {
    address public constant cozies = address(0xEf5C87717aA196D215b4F872FaC3dA77fC5A10E1);

    /// Set with #setSigner
    address public signer;
    /// Set with #setTreasury
    address public treasury;
    /// Set with #setMintPrice
    uint256 public mintPrice;
    /// Set with #setCutPrice
    uint256 public cutPrice;
    /// Set with #setMaxTicketAmount
    uint256 public maxTicketAmount = 9547;

    /// Set with #setWhitelistMintPhase
    uint256 public mintWhitelistStartTime;
    uint256 public mintWhitelistEndTime;
    /// Set with #setPublicMintPhase
    uint256 public mintPublicStartTime;
    uint256 public mintPublicEndTime;
    /// Set with #setCutTicketPhase
    uint256 public cutTicketStartTime;
    uint256 public cutTicketEndTime;

    /// Set with #setBaseURI
    string public baseURI;
    string public uriSuffix;

    /// @notice An address can only mint once during whitelist mint
    mapping (address => uint256) public whitelistMintedAmount;
}

contract DiamondTicket is 
    IDiamondTicket, 
    DiamondTicketStorage,
    ReentrancyGuard,
    Ownable,
    ERC721AQueryable,
    ERC721ABurnable,
    ERC2981 {

    using Strings for uint256;

    constructor(
        uint256 _mintPrice,
        uint256 _cutPrice,
        uint96 _royaltyFee,
        string memory _tokenURI,
        string memory _uriSuffix
    )
        ERC721A("DiamondTicket", "DIAMOND")
    {
        // If any price is zer0
        if (_cutPrice == 0) {
            revert InvalidInput();
        }

        mintPrice = _mintPrice;
        cutPrice = _cutPrice;
        baseURI = _tokenURI;
        uriSuffix = _uriSuffix;

        treasury = owner();
        signer = owner();

        _setDefaultRoyalty(owner(), _royaltyFee);
    }

      ///////////////
     // Modifiers //
    ///////////////

    modifier mintWhitelistActive() {
        // If it's not yet or after the public mint time
        if (block.timestamp <= mintWhitelistStartTime || block.timestamp >= mintWhitelistEndTime) {
            revert InvalidTime();
        }
        _;
    }

    modifier mintPublicActive() {
        // If it's not yet or after the public mint time
        if (block.timestamp <= mintPublicStartTime || block.timestamp >= mintPublicEndTime) {
            revert InvalidTime();
        }
        _;
    }

    modifier cutTicketActive() {
        // If it's not yet or after the cut ticket time
        if (block.timestamp <= cutTicketStartTime || block.timestamp >= cutTicketEndTime) {
            revert InvalidTime();
        }
        _;
    }

    modifier notDuringSales() {
        // If it's during mint time, we shouldn't be modifying mint related parameters
        if ((block.timestamp > mintWhitelistStartTime &&
            block.timestamp < mintWhitelistEndTime) ||
            (block.timestamp > mintPublicStartTime &&
            block.timestamp < mintPublicEndTime)) {
            revert InvalidTime();
        }
        _;
    }

    modifier setTimeCheck(uint256 _startTime, uint256 _endTime) {
        // If we set the start time before end time
        if (_startTime > _endTime) {
            revert InvalidInput();
        }
        _;
    }

    modifier timeInBetween(uint256 _startTime, uint256 _endTime) {
        // If it's between start time and end time, we shouldn't be modifying related parameters
        if (block.timestamp > _startTime && block.timestamp < _endTime) {
            revert InvalidTime();
        } 
        _;
    }

    modifier priceCheck(uint256 _price) {
        // If the price is zero
        if (_price == 0) {
            revert InvalidInput();
        }
        _;
    }

      //////////////////////////////
     // User Execution Functions //
    //////////////////////////////

    /** 
     * @dev Override same interface function in different inheritance.
     * @param interfaceId Id of an interface to check whether the contract support
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721A, ERC2981)
        returns (bool)
    {
        return 
            ERC721A.supportsInterface(interfaceId) || 
            ERC2981.supportsInterface(interfaceId);
    }

    /**
     * @dev Check whether an address is in the list
     * @dev Check whether the signature generation process is abnormal
     * @param _maxMintableQuantity Maximum Quantity of tokens that an address can mint
     * @param _signature Signature used to verify the address is in the list
     */
    function verify(
        uint256 _maxMintableQuantity, 
        bytes calldata _signature
    ) 
        public
        override
        view
        returns(bool _whitelisted)
    {
        bytes32 hash = ECDSA.toEthSignedMessageHash(
            keccak256(
                abi.encodePacked(msg.sender, _maxMintableQuantity)
            )
        );

        return ECDSA.recover(hash, _signature) == signer;
    }

    /** 
     * @dev Mint designated amount of tickets to an address as owner
     * @param _to Address to transfer the tickets
     * @param _quantity Designated amount of tickets
     */
    function giveawayTicket(
        address _to, 
        uint256 _quantity
    ) 
        external
        override
        onlyOwner
    {
        _safeMint(_to, _quantity);
    }

    /**
     * @dev Mint tickets as whitelisted addresses
     * @param _quantity Quantity of ticket that the address wants to mint
     * @param _maxMintableQuantity Maximum Quantity of ticket that the address can mint
     * @param _signature Signature used to verify the address is in the whitelist
     */
    function mintWhitelistTicket(
        uint256 _quantity, 
        uint256 _maxMintableQuantity, 
        bytes calldata _signature
    )
        external
        override
        mintWhitelistActive
    {
        // If this signature is from a valid signer
        if (!verify(_maxMintableQuantity, _signature)) {
            revert InvalidSignature();
        }

        whitelistMintedAmount[msg.sender] += _quantity;

        // If the address has already minted
        if (whitelistMintedAmount[msg.sender] > _maxMintableQuantity) {
            revert ExceedAmount();
        }

        _safeMint(msg.sender, _quantity);
    }

    /** 
     * @notice Each Tx can only mint one ticket
     * @dev Mint tickets with any address
     */
    function mintPublicTicket()
        external
        override
        payable
        mintPublicActive
    {
        // If the mint price is activated
        if (msg.value != mintPrice) {
            revert InvalidAmountETH();
        }

        _safeMint(msg.sender, 1);
    }

    /**
     * @dev Internal minting called by #giveawayTicket, #mintWhitelistTicket, and #mintPublicTicket
     * @param _to Address to mint tickets
     * @param _quantity Amount of tickets
     */
    function _safeMint(
        address _to, 
        uint256 _quantity
    ) 
        internal 
        override 
    {
        // Check if the mint amount will exceed the maximum token supply
        if (_totalMinted() + _quantity > maxTicketAmount) {
            revert ExceedAmount();
        }

        super._safeMint(_to, _quantity);
    }

    /** 
     * @dev User can burn tickets and mint Cozies
     * @dev Every ticket has a unique tokenId
     * @param _tokenIds List of tickets to be burned
     */
    function cutTicket(uint256[] calldata _tokenIds) 
        external
        override
        payable
        nonReentrant
        cutTicketActive
    {
        uint256 quantity = _tokenIds.length;

        if (msg.value != quantity * cutPrice) {
            revert InvalidAmountETH();
        }

        for (uint256 i; i < quantity; ) {
            burn(_tokenIds[i]);
            // increase i without checking overflow
            unchecked {
                i++;
            }
        }

        ICozies(cozies).mintForAddress(quantity, msg.sender);
        emit CutTicket(msg.sender, quantity);
    }

    /** 
     * @dev Retrieve token URI to get the metadata of a token
     * @param _tokenId TokenId which caller wants to get the metadata of
     */
	function tokenURI(uint256 _tokenId) 
        public 
        view 
        override 
        returns (string memory _tokenURI) 
    {
        if (!_exists(_tokenId)) {
            revert TokenNotExist();
        }
        
		return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, _tokenId.toString(), uriSuffix))
            : '';
	}

    /**
     * @dev For UI to get the total minted and determine if sold out
     */
    function totalMinted()
        public
        view
        returns (uint256 _minted)
    {
        return _totalMinted();
    }

      /////////////////////////
     // Set Phase Functions //
    /////////////////////////
    
    /** 
     * @dev Set the mint time for whitelist users
     * @param _startTime After this timestamp the mint phase will be enabled
     * @param _endTime After this timestamp the mint phase will be disabled
     */
    function setWhitelistMintPhase(
        uint256 _startTime,
        uint256 _endTime
    ) 
        external
        override
        onlyOwner
        setTimeCheck(_startTime, _endTime)
    {
        // If public mint time overlaps with whitelist mint time
        if ((_startTime >= mintPublicStartTime &&_startTime <= mintPublicEndTime) ||
            (_endTime >= mintPublicStartTime && _endTime <= mintPublicEndTime) ||
            (_startTime <= mintPublicStartTime && _endTime >= mintPublicEndTime)) {
            revert InvalidInput();
        }
        
        mintWhitelistStartTime = _startTime;
        mintWhitelistEndTime = _endTime;
        emit PhaseSet(_startTime, _endTime, "Whitelist");
    }

    /** 
     * @dev Set the mint time for all users
     * @param _startTime After this timestamp the mint phase will be enabled
     * @param _endTime After this timestamp the mint phase will be disabled
     */
    function setPublicMintPhase(
        uint256 _startTime,
        uint256 _endTime
    )
        external
        override
        onlyOwner
        setTimeCheck(_startTime, _endTime)
    {
        // If public mint time overlaps with whitelist mint time
        // Or the public mint time is after mint price init time
        if ((_startTime >= mintWhitelistStartTime && _startTime <= mintWhitelistEndTime) ||
            (_endTime >= mintWhitelistStartTime && _endTime <= mintWhitelistEndTime) ||
            (_startTime <= mintWhitelistStartTime && _endTime >= mintWhitelistEndTime)) {
            revert InvalidInput();
        }
        
        mintPublicStartTime = _startTime;
        mintPublicEndTime = _endTime;
        emit PhaseSet(_startTime, _endTime, "Public");
    }

    /** 
     * @dev Set the cut ticket time for ticket holders
     * @param _startTime After this timestamp the cut ticket phase will be enabled
     * @param _endTime After this timestamp the cut ticket phase will be disabled
     */
    function setCutTicketPhase(
        uint256 _startTime,
        uint256 _endTime
    )
        external
        override
        onlyOwner
        setTimeCheck(_startTime, _endTime)
    {
        cutTicketStartTime = _startTime;
        cutTicketEndTime = _endTime;
        emit PhaseSet(_startTime, _endTime, "Cut");
    }

      //////////////////////////
     // Set Params Functions //
    //////////////////////////

    /**
     * @dev Set the price of public mint price
     * @notice Price will be activated after mint price init time
     * @param _price New mint price
     */
    function setMintPrice(uint256 _price) 
        external
        override
        onlyOwner
        priceCheck(_price)
        timeInBetween(mintPublicStartTime, mintPublicEndTime)
    {
        mintPrice = _price;
        emit NumberSet(_price, "MintPrice");
    }

    /**
     * @dev Set the price to cut tickets and mint Cozies
     * @param _price New cut price
     */
    function setCutPrice(uint256 _price) 
        external
        override
        onlyOwner
        priceCheck(_price)
        timeInBetween(cutTicketStartTime, cutTicketEndTime)
    {
        cutPrice = _price;  
        emit NumberSet(_price, "CutPrice");
    }

    /**
     * @dev Set the maximum mintable tier amount in each phase
     * @param _amount Maximum tier amount
     */
    function setMaxTicketAmount(uint256 _amount)
        external
        override
        onlyOwner
        notDuringSales
    {
        // If the new maximum tier token supply is 
        // larger than the maximum token supply or
        // smaller than the total supply
        if (_amount > 9547 || _amount < _totalMinted()) {
            revert InvalidInput();
        }

        maxTicketAmount = _amount;
        emit NumberSet(_amount, "Max");
    }

    /** 
     * @dev Set the royalties information for platforms that support ERC2981, LooksRare & X2Y2
     * @param _receiver Address that should receive royalties
     * @param _feeNumerator Amount of royalties that collection creator wants to receive
     */
    function setDefaultRoyalty(
        address _receiver, 
        uint96 _feeNumerator
    )
        external
        override
        onlyOwner
    {
        _setDefaultRoyalty(_receiver, _feeNumerator);
    }

    /** 
     * @dev Set the royalties information for platforms that support ERC2981, LooksRare & X2Y2
     * @param _tokenId Id of the token we are setting
     * @param _receiver Address that should receive royalties
     * @param _feeNumerator Amount of royalties that collection creator wants to receive
     */
    function setTokenRoyalty(
        uint256 _tokenId,
        address _receiver,
        uint96 _feeNumerator
    ) 
        external 
        override
        onlyOwner 
    {
        _setTokenRoyalty(_tokenId, _receiver, _feeNumerator);
    }

    /** 
     * @dev Set the base URI for tokenURI, which returns the metadata of the tokens
     * @param _baseURI Base URI that caller wants to set with tokenURI
     */
    function setBaseURI(string memory _baseURI)
        external
        override
        onlyOwner
    {
        baseURI = _baseURI;
        emit URISet(_baseURI, "BaseURI");
    }

    /** 
     * @dev Set the URI suffix for tokenURI, which returns the metadata of the tokens
     * @param _uriSuffix URI suffix that caller wants to set with tokenURI
     */
    function setURISuffix(string memory _uriSuffix)
        external
        override
        onlyOwner
    {
        uriSuffix = _uriSuffix;
        emit URISet(_uriSuffix, "Suffix");
    }

    /** 
     * @dev Set the address that act as treasury and recieve all the fund in this contract
     * @param _treasury New address that caller wants to set as the treasury address
     */
    function setTreasury(address _treasury)
        external
        override
        onlyOwner
    {
        // If the new address is zero
        if (_treasury == address(0)) {
            revert InvalidAddress();
        }

        treasury = _treasury;
        emit AddressSet(_treasury, "Treasury");
    }

    /** 
     * @dev Set the address that act as the signer for whitelist address
     * @param _signer New signer address
     */
    function setSigner(address _signer)
        external
        override
        onlyOwner
    {
        // If the new address is zero
        if (_signer == address(0)) {
            revert InvalidAddress();
        }

        signer = _signer;
        emit AddressSet(_signer, "Signer");
    }

      /////////////////////
     // Admin Functions //
    /////////////////////

    /**
     * @dev Transfer the ownership of Cozies to another address (EOA)
     * @param _owner Address of Cozies new onwer
     */
    function transferCoziesOwnership(address _owner)
        external
        override
        onlyOwner
    {
        // If the new owner address is zero
        if (_owner == address(0)) {
            revert InvalidAddress();
        }

        ICozies(cozies).transferOwnership(_owner);
    }

    /** 
     * @dev Retrieve fund from this contract to the treasury with the according amount
     * @param _amount The amount of fund that the caller wants to retrieve
     */
    function withdraw(uint256 _amount)
        external
        override
        onlyOwner
    {
        payable(treasury).transfer(_amount);
        emit FundWithdraw(_amount, treasury);
    }
}

File 2 of 18 : ICozies.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface ICozies {
    function mintForAddress(uint256 _mintAmount, address _receiver) external;

    function transferOwnership(address _owner) external;
}

File 3 of 18 : IDiamondTicket.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IDiamondTicket {

    //////////////////////////////
   // User Execution Functions //
  //////////////////////////////

  // Verify whether an address is in the whitelist;
  function verify(uint256 _maxMintableQuantity, bytes calldata _signature) external view returns(bool _whitelisted);
  // Owner can giveaway tickets to designated address.
  function giveawayTicket(address _to, uint256 _quantity) external;
  // User with whitelisted address can mint tickets.
  function mintWhitelistTicket(uint256 _quantity, uint256 _maxMintableQuantity, bytes calldata _signature) external;
  // User can mint tickets with any address.
  function mintPublicTicket() external payable;
  // User can cut their ticket to mint Cozeis.
  function cutTicket(uint256[] calldata _tokenId) external payable;
  // Get the total minted tickets.
  function totalMinted() external view returns (uint256 _minted);

    /////////////////////////
   // Set Phase Functions //
  /////////////////////////

  // Set the variables to enable the whitelist mint phase by owner.
  function setWhitelistMintPhase(uint256 _startTime, uint256 _endTime) external;
  // Set the variables to enable the public mint phase by owner.
  function setPublicMintPhase(uint256 _startTime, uint256 _endTime) external;
  // Set the variables to enable the cut ticket phase by owner.
  function setCutTicketPhase(uint256 _startTime, uint256 _endTime) external;

    //////////////////////////
   // Set Params Functions //
  //////////////////////////

  // Set the price of public mint.
  function setMintPrice(uint256 _price) external;
  // Set the price of cutting the ticket.
  function setCutPrice(uint256 _price) external;
  // Set the maximum mintable amount during each phase.
  function setMaxTicketAmount(uint256 _amount) external;
  // Set collection royalties with platforms that support ERC2981.
  function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external;
  // Set royalties of specific token with platforms that support ERC2981.
  function setTokenRoyalty(uint256 _tokenId, address _receiver, uint96 _feeNumerator) external;
  // Set the URI to return the tokens metadata.
  function setBaseURI(string memory _baseURI) external;
  // Set the URI suffix to return the tokens metadata.
  function setURISuffix(string memory _uriSuffix) external;
  // Set the address to transfer the fund in this contract.
  function setTreasury(address _treasury) external;
  // Set the address to sign for whitelist address.
  function setSigner(address _signer) external;

    /////////////////////
   // Admin Functions //
  /////////////////////

  // Transfer the ownership of the Cozies smart contract
  function transferCoziesOwnership(address _owner) external;
  // Withdraw all the fund inside the contract to the treasury address.
  function withdraw(uint256 _amount) external;

  // This event is triggered whenever a call to #cutTicket succeeds.
  event CutTicket(address _from, uint256 _quantity);
  // This event is triggered whenever a call to #setWhitelistMintPhase, #setPublicMintPhase, and #setCutTicketPhase succeeds.
  event PhaseSet(uint256 _startTime, uint256 _endTime, string _type);
  // This event is triggered whenever a call to #setTreasury and #setSigner succeeds.
  event AddressSet(address _address, string _type);
  // This event is triggered whenever a call to #setCutPrice and #setMaxTicketTierAmount succeeds.
  event NumberSet(uint256 _amount, string _type);
  // This event is triggered whenever a call to #setBaseURI succeeds.
  event URISet(string _context, string _type);
  // This event is triggered whenever a call to #withdraw
  event FundWithdraw(uint256 _amount, address _treasury);
  // This event is triggered whenever a call to #transferCoziesOwnership
  event TransferOwnership(address _owner, address _contract);
}

File 4 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 5 of 18 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (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) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            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 6 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 7 of 18 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

File 8 of 18 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721ABurnable.
 *
 * @dev ERC721A token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 9 of 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

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

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

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

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 16 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 17 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 18 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_cutPrice","type":"uint256"},{"internalType":"uint96","name":"_royaltyFee","type":"uint96"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"string","name":"_uriSuffix","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceedAmount","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidAmountETH","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidTime","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TokenNotExist","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":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"AddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"CutTicket","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"_treasury","type":"address"}],"name":"FundWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"NumberSet","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":"uint256","name":"_startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_endTime","type":"uint256"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"PhaseSet","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":"_owner","type":"address"},{"indexed":false,"internalType":"address","name":"_contract","type":"address"}],"name":"TransferOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_context","type":"string"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"URISet","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cozies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cutPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"cutTicket","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cutTicketEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cutTicketStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"giveawayTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTicketAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPublicEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPublicStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPublicTicket","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWhitelistEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintWhitelistStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_maxMintableQuantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWhitelistTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setCutPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setCutTicketPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxTicketAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setPublicMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setURISuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setWhitelistMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"_minted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferCoziesOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintableQuantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"_whitelisted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261254b6004553480156200001757600080fd5b5060405162004303380380620043038339810160408190526200003a9162000425565b604080518082018252600d81526c111a585b5bdb99151a58dad95d609a1b602080830191909152825180840190935260078352661112505353d39160ca1b908301526001600e55906200008d336200015b565b8151620000a2906012906020850190620002b2565b508051620000b8906013906020840190620002b2565b506000601055505083620000df5760405163b4fa3fb360e01b815260040160405180910390fd5b600285905560038490558151620000fe90600b906020850190620002b2565b5080516200011490600c906020840190620002b2565b50600f54600180546001600160a01b03199081166001600160a01b039093169283179091556000805490911682179055620001509084620001ad565b505050505062000501565b600f80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002215760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002795760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000218565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601855565b828054620002c090620004c4565b90600052602060002090601f016020900481019282620002e457600085556200032f565b82601f10620002ff57805160ff19168380011785556200032f565b828001600101855582156200032f579182015b828111156200032f57825182559160200191906001019062000312565b506200033d92915062000341565b5090565b5b808211156200033d576000815560010162000342565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200038057600080fd5b81516001600160401b03808211156200039d576200039d62000358565b604051601f8301601f19908116603f01168101908282118183101715620003c857620003c862000358565b81604052838152602092508683858801011115620003e557600080fd5b600091505b83821015620004095785820183015181830184015290820190620003ea565b838211156200041b5760008385830101525b9695505050505050565b600080600080600060a086880312156200043e57600080fd5b85516020870151604088015191965094506001600160601b03811681146200046557600080fd5b60608701519093506001600160401b03808211156200048357600080fd5b6200049189838a016200036e565b93506080880151915080821115620004a857600080fd5b50620004b7888289016200036e565b9150509295509295909350565b600181811c90821680620004d957607f821691505b60208210811415620004fb57634e487b7160e01b600052602260045260246000fd5b50919050565b613df280620005116000396000f3fe6080604052600436106103815760003560e01c806378a52573116101d1578063b88d4fde11610102578063ed342501116100a0578063f4a0a5281161006f578063f4a0a52814610a1c578063f80983af14610a3c578063f93e56c714610a5c578063fb54a06b14610a7c57600080fd5b8063ed3425011461099c578063ed675fba146109bc578063f0f44260146109dc578063f2fde38b146109fc57600080fd5b8063c87b56dd116100dc578063c87b56dd1461090a578063d0524a721461092a578063dd591c291461093d578063e985e9c51461095357600080fd5b8063b88d4fde146108aa578063c23dc68f146108bd578063c605d1ca146108ea57600080fd5b806399a2557a1161016f578063a284b6d311610149578063a284b6d314610836578063a365b4f41461084c578063ac4aa53b1461086c578063b0b5b06a1461088257600080fd5b806399a2557a146107e1578063a22cb46514610801578063a2309ff81461082157600080fd5b806385852ce4116101ab57806385852ce4146107785780638da5cb5b146107985780639512d2d5146107b657806395d89b41146107cc57600080fd5b806378a525731461071557806381b3e5751461072b5780638462151c1461074b57600080fd5b806341cabcea116102b657806361d027b3116102545780636c0360eb116102235780636c0360eb146106ab5780636c19e783146106c057806370a08231146106e0578063715018a61461070057600080fd5b806361d027b31461063557806362fed9f2146106555780636352211e146106755780636817c76c1461069557600080fd5b80635503a0e8116102905780635503a0e8146105b357806355f804b3146105c85780635944c753146105e85780635bbb21771461060857600080fd5b806341cabcea1461056a57806342842e0e1461058057806342966c681461059357600080fd5b80631fac2a35116103235780632a55205a116102fd5780632a55205a146104d55780632e1a7d4d1461051457806334163bd114610534578063344cacf51461054a57600080fd5b80631fac2a3514610475578063238ac933146104a257806323b872dd146104c257600080fd5b8063081812fc1161035f578063081812fc146103ff578063095ea7b31461043757806318160ddd1461044a5780631d8b0ba51461046d57600080fd5b806301ffc9a71461038657806304634d8d146103bb57806306fdde03146103dd575b600080fd5b34801561039257600080fd5b506103a66103a13660046134a9565b610a92565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d63660046134fe565b610ab2565b005b3480156103e957600080fd5b506103f2610ac8565b6040516103b29190613589565b34801561040b57600080fd5b5061041f61041a36600461359c565b610b5a565b6040516001600160a01b0390911681526020016103b2565b6103db6104453660046135b5565b610bb7565b34801561045657600080fd5b50601154601054035b6040519081526020016103b2565b6103db610c88565b34801561048157600080fd5b5061045f6104903660046135df565b600d6020526000908152604090205481565b3480156104ae57600080fd5b5060005461041f906001600160a01b031681565b6103db6104d03660046135fa565b610d01565b3480156104e157600080fd5b506104f56104f0366004613636565b610f1a565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561052057600080fd5b506103db61052f36600461359c565b610ff9565b34801561054057600080fd5b5061045f60095481565b34801561055657600080fd5b506103db61056536600461369a565b611085565b34801561057657600080fd5b5061045f60085481565b6103db61058e3660046135fa565b611174565b34801561059f57600080fd5b506103db6105ae36600461359c565b611194565b3480156105bf57600080fd5b506103f26111a2565b3480156105d457600080fd5b506103db6105e3366004613779565b611230565b3480156105f457600080fd5b506103db6106033660046137c2565b61127b565b34801561061457600080fd5b506106286106233660046137fe565b61128e565b6040516103b29190613873565b34801561064157600080fd5b5060015461041f906001600160a01b031681565b34801561066157600080fd5b506103db61067036600461359c565b61135a565b34801561068157600080fd5b5061041f61069036600461359c565b61142d565b3480156106a157600080fd5b5061045f60025481565b3480156106b757600080fd5b506103f2611438565b3480156106cc57600080fd5b506103db6106db3660046135df565b611445565b3480156106ec57600080fd5b5061045f6106fb3660046135df565b611527565b34801561070c57600080fd5b506103db61158f565b34801561072157600080fd5b5061045f600a5481565b34801561073757600080fd5b506103db610746366004613779565b6115a1565b34801561075757600080fd5b5061076b6107663660046135df565b6115ec565b6040516103b291906138f0565b34801561078457600080fd5b506103a6610793366004613928565b6116f4565b3480156107a457600080fd5b50600f546001600160a01b031661041f565b3480156107c257600080fd5b5061045f60035481565b3480156107d857600080fd5b506103f2611805565b3480156107ed57600080fd5b5061076b6107fc366004613974565b611814565b34801561080d57600080fd5b506103db61081c3660046139a7565b6119a9565b34801561082d57600080fd5b5061045f611a15565b34801561084257600080fd5b5061045f60045481565b34801561085857600080fd5b506103db6108673660046135b5565b611a25565b34801561087857600080fd5b5061045f60065481565b34801561088e57600080fd5b5061041f73ef5c87717aa196d215b4f872fac3da77fc5a10e181565b6103db6108b83660046139e3565b611a37565b3480156108c957600080fd5b506108dd6108d836600461359c565b611a94565b6040516103b29190613a5f565b3480156108f657600080fd5b506103db610905366004613636565b611b0c565b34801561091657600080fd5b506103f261092536600461359c565b611c17565b6103db6109383660046137fe565b611cb7565b34801561094957600080fd5b5061045f60055481565b34801561095f57600080fd5b506103a661096e366004613aa4565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205460ff1690565b3480156109a857600080fd5b506103db6109b7366004613636565b611e89565b3480156109c857600080fd5b506103db6109d73660046135df565b611f94565b3480156109e857600080fd5b506103db6109f73660046135df565b612065565b348015610a0857600080fd5b506103db610a173660046135df565b612147565b348015610a2857600080fd5b506103db610a3736600461359c565b6121d4565b348015610a4857600080fd5b506103db610a5736600461359c565b612299565b348015610a6857600080fd5b506103db610a77366004613636565b612384565b348015610a8857600080fd5b5061045f60075481565b6000610a9d82612429565b80610aac5750610aac8261250a565b92915050565b610aba6125a1565b610ac482826125fb565b5050565b606060128054610ad790613ace565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0390613ace565b8015610b505780601f10610b2557610100808354040283529160200191610b50565b820191906000526020600020905b815481529060010190602001808311610b3357829003601f168201915b5050505050905090565b6000610b6582612726565b610b9b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152601660205260409020546001600160a01b031690565b6000610bc28261142d565b9050336001600160a01b03821614610c1457610bde813361096e565b610c14576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526016602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60075442111580610c9b57506008544210155b15610cb9576040516337bf561360e11b815260040160405180910390fd5b6002543414610cf4576040517f393d858500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cff33600161274e565b565b6000610d0c826127a7565b9050836001600160a01b0316816001600160a01b031614610d59576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526016602052604090208054610d858187335b6001600160a01b039081169116811491141790565b610dc957610d93863361096e565b610dc9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610e09576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610e1457600082555b6001600160a01b038681166000908152601560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152601460205260409020557c02000000000000000000000000000000000000000000000000000000008316610ed15760018401600081815260146020526040902054610ecf576010548114610ecf5760008181526014602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60008281526019602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610fbb5750604080518082019091526018546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610fdf906bffffffffffffffffffffffff1687613b1f565b610fe99190613b54565b91519350909150505b9250929050565b6110016125a1565b6001546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561103b573d6000803e3d6000fd5b50600154604080518381526001600160a01b0390921660208301527f762a1dcd34d83e028e3a33f2f61733f2a00746b58e932bf3210cf3771414df6791015b60405180910390a150565b6005544211158061109857506006544210155b156110b6576040516337bf561360e11b815260040160405180910390fd5b6110c18383836116f4565b6110f7576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600d602052604081208054869290611116908490613b68565b9091555050336000908152600d6020526040902054831015611164576040517fe9d1b1a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61116e338561274e565b50505050565b61118f83838360405180602001604052806000815250611a37565b505050565b61119f816001612821565b50565b600c80546111af90613ace565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90613ace565b80156112285780601f106111fd57610100808354040283529160200191611228565b820191906000526020600020905b81548152906001019060200180831161120b57829003601f168201915b505050505081565b6112386125a1565b805161124b90600b9060208401906133e2565b507f0e34f618521d6b391596557c60180d51e440208b6c02367bb8b829a06c58cda78160405161107a9190613b80565b6112836125a1565b61118f8383836129b0565b60608160008167ffffffffffffffff8111156112ac576112ac6136ed565b6040519080825280602002602001820160405280156112fe57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816112ca5790505b50905060005b8281146113515761132c86868381811061132057611320613bd2565b90506020020135611a94565b82828151811061133e5761133e613bd2565b6020908102919091010152600101611304565b50949350505050565b6113626125a1565b80806113815760405163b4fa3fb360e01b815260040160405180910390fd5b600954600a54814211801561139557508042105b156113b3576040516337bf561360e11b815260040160405180910390fd5b60038490556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061141f908681526040602082018190526008908201527f4375745072696365000000000000000000000000000000000000000000000000606082015260800190565b60405180910390a150505050565b6000610aac826127a7565b600b80546111af90613ace565b61144d6125a1565b6001600160a01b03811661148d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560408051918252602082018190526006908201527f5369676e6572000000000000000000000000000000000000000000000000000060608201527fff0500fd0200c9944150c5641906ff120bef6d95d50bafaca62702874ef5a3d59060800161107a565b60006001600160a01b038216611569576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526015602052604090205467ffffffffffffffff1690565b6115976125a1565b610cff6000612aec565b6115a96125a1565b80516115bc90600c9060208401906133e2565b507f0e34f618521d6b391596557c60180d51e440208b6c02367bb8b829a06c58cda78160405161107a9190613be8565b606060008060006115fc85611527565b905060008167ffffffffffffffff811115611619576116196136ed565b604051908082528060200260200182016040528015611642578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b8386146116e85761167a81612b56565b915081604001511561168b576116e0565b81516001600160a01b0316156116a057815194505b876001600160a01b0316856001600160a01b031614156116e057808387806001019850815181106116d3576116d3613bd2565b6020026020010181815250505b60010161166a565b50909695505050505050565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101849052600090819061179e90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600054604080516020601f88018190048102820181019092528681529293506001600160a01b03909116916117f0918491908890889081908401838280828437600092019190915250612bd592505050565b6001600160a01b0316149150505b9392505050565b606060138054610ad790613ace565b606081831061184f576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061185b60105490565b905080841115611869578093505b600061187487611527565b905084861015611893578585038181101561188d578091505b50611897565b5060005b60008167ffffffffffffffff8111156118b2576118b26136ed565b6040519080825280602002602001820160405280156118db578160200160208202803683370190505b509050816118ee5793506117fe92505050565b60006118f988611a94565b90506000816040015161190a575080515b885b88811415801561191c5750848714155b156119985761192a81612b56565b925082604001511561193b57611990565b82516001600160a01b03161561195057825191505b8a6001600160a01b0316826001600160a01b03161415611990578084888060010199508151811061198357611983613bd2565b6020026020010181815250505b60010161190c565b505050928352509095945050505050565b3360008181526017602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611a2060105490565b905090565b611a2d6125a1565b610ac4828261274e565b611a42848484610d01565b6001600160a01b0383163b1561116e57611a5e84848484612bf9565b61116e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506010548310611ae85792915050565b611af183612b56565b9050806040015115611b035792915050565b6117fe83612d54565b611b146125a1565b818180821115611b375760405163b4fa3fb360e01b815260040160405180910390fd5b6005548410158015611b4b57506006548411155b80611b6557506005548310158015611b6557506006548311155b80611b7f57506005548411158015611b7f57506006548310155b15611b9d5760405163b4fa3fb360e01b815260040160405180910390fd5b600784905560088390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526006908201527f5075626c69630000000000000000000000000000000000000000000000000000608082015260a00190565b6060611c2282612726565b611c58576040517f4494362200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8054611c6790613ace565b905011611c835760405180602001604052806000815250610aac565b600b611c8e83612dcc565b600c604051602001611ca293929190613cd4565b60405160208183030381529060405292915050565b6002600e541415611d0f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600e5560095442111580611d275750600a544210155b15611d45576040516337bf561360e11b815260040160405180910390fd5b6003548190611d549082613b1f565b3414611d8c576040517f393d858500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611dc057611db8848483818110611dac57611dac613bd2565b90506020020135611194565b600101611d8f565b506040517fefbd73f40000000000000000000000000000000000000000000000000000000081526004810182905233602482015273ef5c87717aa196d215b4f872fac3da77fc5a10e19063efbd73f490604401600060405180830381600087803b158015611e2d57600080fd5b505af1158015611e41573d6000803e3d6000fd5b505060408051338152602081018590527faff88686a3d897df714be1c658cac45b2e751038229f49a8cb120c9cb674856d935001905060405180910390a150506001600e5550565b611e916125a1565b818180821115611eb45760405163b4fa3fb360e01b815260040160405180910390fd5b6007548410158015611ec857506008548411155b80611ee257506007548310158015611ee257506008548311155b80611efc57506007548411158015611efc57506008548310155b15611f1a5760405163b4fa3fb360e01b815260040160405180910390fd5b600584905560068390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526009908201527f57686974656c6973740000000000000000000000000000000000000000000000608082015260a00190565b611f9c6125a1565b6001600160a01b038116611fdc576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015273ef5c87717aa196d215b4f872fac3da77fc5a10e19063f2fde38b90602401600060405180830381600087803b15801561204a57600080fd5b505af115801561205e573d6000803e3d6000fd5b5050505050565b61206d6125a1565b6001600160a01b0381166120ad576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560408051918252602082018190526008908201527f547265617375727900000000000000000000000000000000000000000000000060608201527fff0500fd0200c9944150c5641906ff120bef6d95d50bafaca62702874ef5a3d59060800161107a565b61214f6125a1565b6001600160a01b0381166121cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611d06565b61119f81612aec565b6121dc6125a1565b80806121fb5760405163b4fa3fb360e01b815260040160405180910390fd5b600754600854814211801561220f57508042105b1561222d576040516337bf561360e11b815260040160405180910390fd5b60028490556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061141f908681526040602082018190526009908201527f4d696e7450726963650000000000000000000000000000000000000000000000606082015260800190565b6122a16125a1565b600554421180156122b3575060065442105b806122cb5750600754421180156122cb575060085442105b156122e9576040516337bf561360e11b815260040160405180910390fd5b61254b8111806122fa575060105481105b156123185760405163b4fa3fb360e01b815260040160405180910390fd5b60048190556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061107a908381526040602082018190526003908201527f4d61780000000000000000000000000000000000000000000000000000000000606082015260800190565b61238c6125a1565b8181808211156123af5760405163b4fa3fb360e01b815260040160405180910390fd5b6009849055600a8390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526003908201527f4375740000000000000000000000000000000000000000000000000000000000608082015260a00190565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806124bc57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610aac5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610aac57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610aac565b600f546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611d06565b6127106bffffffffffffffffffffffff821611156126815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611d06565b6001600160a01b0382166126d75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611d06565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217601855565b600060105482108015610aac575050600090815260146020526040902054600160e01b161590565b6004548161275b60105490565b6127659190613b68565b111561279d576040517fe9d1b1a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac48282612efe565b6000816010548110156127ef57600081815260146020526040902054600160e01b81166127ed575b806117fe5750600019016000818152601460205260409020546127cf565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061282c836127a7565b90508060008061284a86600090815260166020526040902080549091565b9150915084156128a35761285f818433610d70565b6128a35761286d833361096e565b6128a3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156128ae57600082555b6001600160a01b038316600081815260156020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152601460205260409020557c0200000000000000000000000000000000000000000000000000000000841661296757600186016000818152601460205260409020546129655760105481146129655760008181526014602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060118054600101905550505050565b6127106bffffffffffffffffffffffff82161115612a365760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611d06565b6001600160a01b038216612a8c5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401611d06565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff9283166020808301918252600096875260199052919094209351905190911674010000000000000000000000000000000000000000029116179055565b600f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260146020526040902054610aac90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000806000612be48585612f18565b91509150612bf181612f5b565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612c47903390899088908890600401613d07565b602060405180830381600087803b158015612c6157600080fd5b505af1925050508015612c91575060408051601f3d908101601f19168201909252612c8e91810190613d43565b60015b612d05573d808015612cbf576040519150601f19603f3d011682016040523d82523d6000602084013e612cc4565b606091505b508051612cfd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610aac612d84836127a7565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b606081612e0c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e365780612e2081613d60565b9150612e2f9050600a83613b54565b9150612e10565b60008167ffffffffffffffff811115612e5157612e516136ed565b6040519080825280601f01601f191660200182016040528015612e7b576020820181803683370190505b5090505b8415612d4c57612e90600183613d7b565b9150612e9d600a86613d92565b612ea8906030613b68565b60f81b818381518110612ebd57612ebd613bd2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ef7600a86613b54565b9450612e7f565b610ac482826040518060200160405280600081525061314c565b600080825160411415612f4f5760208301516040840151606085015160001a612f43878285856131cb565b94509450505050610ff2565b50600090506002610ff2565b6000816004811115612f6f57612f6f613da6565b1415612f785750565b6001816004811115612f8c57612f8c613da6565b1415612fda5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611d06565b6002816004811115612fee57612fee613da6565b141561303c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611d06565b600381600481111561305057613050613da6565b14156130c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611d06565b60048160048111156130d8576130d8613da6565b141561119f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611d06565b61315683836132b8565b6001600160a01b0383163b1561118f576010548281035b6131806000868380600101945086612bf9565b6131b6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061316d57816010541461205e57600080fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561320257506000905060036132af565b8460ff16601b1415801561321a57508460ff16601c14155b1561322b57506000905060046132af565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561327f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132a8576000600192509250506132af565b9150600090505b94509492505050565b601054816132f2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526015602090815260408083208054680100000000000000018802019055848352601490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146133a157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613369565b50816133d9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105550505050565b8280546133ee90613ace565b90600052602060002090601f0160209004810192826134105760008555613456565b82601f1061342957805160ff1916838001178555613456565b82800160010185558215613456579182015b8281111561345657825182559160200191906001019061343b565b50613462929150613466565b5090565b5b808211156134625760008155600101613467565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461119f57600080fd5b6000602082840312156134bb57600080fd5b81356117fe8161347b565b80356001600160a01b03811681146134dd57600080fd5b919050565b80356bffffffffffffffffffffffff811681146134dd57600080fd5b6000806040838503121561351157600080fd5b61351a836134c6565b9150613528602084016134e2565b90509250929050565b60005b8381101561354c578181015183820152602001613534565b8381111561116e5750506000910152565b60008151808452613575816020860160208601613531565b601f01601f19169290920160200192915050565b6020815260006117fe602083018461355d565b6000602082840312156135ae57600080fd5b5035919050565b600080604083850312156135c857600080fd5b6135d1836134c6565b946020939093013593505050565b6000602082840312156135f157600080fd5b6117fe826134c6565b60008060006060848603121561360f57600080fd5b613618846134c6565b9250613626602085016134c6565b9150604084013590509250925092565b6000806040838503121561364957600080fd5b50508035926020909101359150565b60008083601f84011261366a57600080fd5b50813567ffffffffffffffff81111561368257600080fd5b602083019150836020828501011115610ff257600080fd5b600080600080606085870312156136b057600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156136d557600080fd5b6136e187828801613658565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561371e5761371e6136ed565b604051601f8501601f19908116603f01168101908282118183101715613746576137466136ed565b8160405280935085815286868601111561375f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561378b57600080fd5b813567ffffffffffffffff8111156137a257600080fd5b8201601f810184136137b357600080fd5b612d4c84823560208401613703565b6000806000606084860312156137d757600080fd5b833592506137e7602085016134c6565b91506137f5604085016134e2565b90509250925092565b6000806020838503121561381157600080fd5b823567ffffffffffffffff8082111561382957600080fd5b818501915085601f83011261383d57600080fd5b81358181111561384c57600080fd5b8660208260051b850101111561386157600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b818110156116e8576138dd8385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161388f565b6020808252825182820181905260009190848201906040850190845b818110156116e85783518352928401929184019160010161390c565b60008060006040848603121561393d57600080fd5b83359250602084013567ffffffffffffffff81111561395b57600080fd5b61396786828701613658565b9497909650939450505050565b60008060006060848603121561398957600080fd5b613992846134c6565b95602085013595506040909401359392505050565b600080604083850312156139ba57600080fd5b6139c3836134c6565b9150602083013580151581146139d857600080fd5b809150509250929050565b600080600080608085870312156139f957600080fd5b613a02856134c6565b9350613a10602086016134c6565b925060408501359150606085013567ffffffffffffffff811115613a3357600080fd5b8501601f81018713613a4457600080fd5b613a5387823560208401613703565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610aac565b60008060408385031215613ab757600080fd5b613ac0836134c6565b9150613528602084016134c6565b600181811c90821680613ae257607f821691505b60208210811415613b0357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613b3957613b39613b09565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b6357613b63613b3e565b500490565b60008219821115613b7b57613b7b613b09565b500190565b604081526000613b93604083018461355d565b8281036020840152600781527f426173655552490000000000000000000000000000000000000000000000000060208201526040810191505092915050565b634e487b7160e01b600052603260045260246000fd5b604081526000613bfb604083018461355d565b8281036020840152600681527f537566666978000000000000000000000000000000000000000000000000000060208201526040810191505092915050565b8054600090600181811c9080831680613c5457607f831692505b6020808410821415613c7657634e487b7160e01b600052602260045260246000fd5b818015613c8a5760018114613c9b57613cc8565b60ff19861689528489019650613cc8565b60008881526020902060005b86811015613cc05781548b820152908501908301613ca7565b505084890196505b50505050505092915050565b6000613ce08286613c3a565b8451613cf0818360208901613531565b613cfc81830186613c3a565b979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d39608083018461355d565b9695505050505050565b600060208284031215613d5557600080fd5b81516117fe8161347b565b6000600019821415613d7457613d74613b09565b5060010190565b600082821015613d8d57613d8d613b09565b500390565b600082613da157613da1613b3e565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220fad3ace6e7232aea08e11f1ddda8266bc6b6fba4bb0233d5431270fe4fbdaa9e64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61336f753671464132397932504635674c6f6653324c6f706d4e33464c555332456846513942715172556b4b2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103815760003560e01c806378a52573116101d1578063b88d4fde11610102578063ed342501116100a0578063f4a0a5281161006f578063f4a0a52814610a1c578063f80983af14610a3c578063f93e56c714610a5c578063fb54a06b14610a7c57600080fd5b8063ed3425011461099c578063ed675fba146109bc578063f0f44260146109dc578063f2fde38b146109fc57600080fd5b8063c87b56dd116100dc578063c87b56dd1461090a578063d0524a721461092a578063dd591c291461093d578063e985e9c51461095357600080fd5b8063b88d4fde146108aa578063c23dc68f146108bd578063c605d1ca146108ea57600080fd5b806399a2557a1161016f578063a284b6d311610149578063a284b6d314610836578063a365b4f41461084c578063ac4aa53b1461086c578063b0b5b06a1461088257600080fd5b806399a2557a146107e1578063a22cb46514610801578063a2309ff81461082157600080fd5b806385852ce4116101ab57806385852ce4146107785780638da5cb5b146107985780639512d2d5146107b657806395d89b41146107cc57600080fd5b806378a525731461071557806381b3e5751461072b5780638462151c1461074b57600080fd5b806341cabcea116102b657806361d027b3116102545780636c0360eb116102235780636c0360eb146106ab5780636c19e783146106c057806370a08231146106e0578063715018a61461070057600080fd5b806361d027b31461063557806362fed9f2146106555780636352211e146106755780636817c76c1461069557600080fd5b80635503a0e8116102905780635503a0e8146105b357806355f804b3146105c85780635944c753146105e85780635bbb21771461060857600080fd5b806341cabcea1461056a57806342842e0e1461058057806342966c681461059357600080fd5b80631fac2a35116103235780632a55205a116102fd5780632a55205a146104d55780632e1a7d4d1461051457806334163bd114610534578063344cacf51461054a57600080fd5b80631fac2a3514610475578063238ac933146104a257806323b872dd146104c257600080fd5b8063081812fc1161035f578063081812fc146103ff578063095ea7b31461043757806318160ddd1461044a5780631d8b0ba51461046d57600080fd5b806301ffc9a71461038657806304634d8d146103bb57806306fdde03146103dd575b600080fd5b34801561039257600080fd5b506103a66103a13660046134a9565b610a92565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d63660046134fe565b610ab2565b005b3480156103e957600080fd5b506103f2610ac8565b6040516103b29190613589565b34801561040b57600080fd5b5061041f61041a36600461359c565b610b5a565b6040516001600160a01b0390911681526020016103b2565b6103db6104453660046135b5565b610bb7565b34801561045657600080fd5b50601154601054035b6040519081526020016103b2565b6103db610c88565b34801561048157600080fd5b5061045f6104903660046135df565b600d6020526000908152604090205481565b3480156104ae57600080fd5b5060005461041f906001600160a01b031681565b6103db6104d03660046135fa565b610d01565b3480156104e157600080fd5b506104f56104f0366004613636565b610f1a565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561052057600080fd5b506103db61052f36600461359c565b610ff9565b34801561054057600080fd5b5061045f60095481565b34801561055657600080fd5b506103db61056536600461369a565b611085565b34801561057657600080fd5b5061045f60085481565b6103db61058e3660046135fa565b611174565b34801561059f57600080fd5b506103db6105ae36600461359c565b611194565b3480156105bf57600080fd5b506103f26111a2565b3480156105d457600080fd5b506103db6105e3366004613779565b611230565b3480156105f457600080fd5b506103db6106033660046137c2565b61127b565b34801561061457600080fd5b506106286106233660046137fe565b61128e565b6040516103b29190613873565b34801561064157600080fd5b5060015461041f906001600160a01b031681565b34801561066157600080fd5b506103db61067036600461359c565b61135a565b34801561068157600080fd5b5061041f61069036600461359c565b61142d565b3480156106a157600080fd5b5061045f60025481565b3480156106b757600080fd5b506103f2611438565b3480156106cc57600080fd5b506103db6106db3660046135df565b611445565b3480156106ec57600080fd5b5061045f6106fb3660046135df565b611527565b34801561070c57600080fd5b506103db61158f565b34801561072157600080fd5b5061045f600a5481565b34801561073757600080fd5b506103db610746366004613779565b6115a1565b34801561075757600080fd5b5061076b6107663660046135df565b6115ec565b6040516103b291906138f0565b34801561078457600080fd5b506103a6610793366004613928565b6116f4565b3480156107a457600080fd5b50600f546001600160a01b031661041f565b3480156107c257600080fd5b5061045f60035481565b3480156107d857600080fd5b506103f2611805565b3480156107ed57600080fd5b5061076b6107fc366004613974565b611814565b34801561080d57600080fd5b506103db61081c3660046139a7565b6119a9565b34801561082d57600080fd5b5061045f611a15565b34801561084257600080fd5b5061045f60045481565b34801561085857600080fd5b506103db6108673660046135b5565b611a25565b34801561087857600080fd5b5061045f60065481565b34801561088e57600080fd5b5061041f73ef5c87717aa196d215b4f872fac3da77fc5a10e181565b6103db6108b83660046139e3565b611a37565b3480156108c957600080fd5b506108dd6108d836600461359c565b611a94565b6040516103b29190613a5f565b3480156108f657600080fd5b506103db610905366004613636565b611b0c565b34801561091657600080fd5b506103f261092536600461359c565b611c17565b6103db6109383660046137fe565b611cb7565b34801561094957600080fd5b5061045f60055481565b34801561095f57600080fd5b506103a661096e366004613aa4565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205460ff1690565b3480156109a857600080fd5b506103db6109b7366004613636565b611e89565b3480156109c857600080fd5b506103db6109d73660046135df565b611f94565b3480156109e857600080fd5b506103db6109f73660046135df565b612065565b348015610a0857600080fd5b506103db610a173660046135df565b612147565b348015610a2857600080fd5b506103db610a3736600461359c565b6121d4565b348015610a4857600080fd5b506103db610a5736600461359c565b612299565b348015610a6857600080fd5b506103db610a77366004613636565b612384565b348015610a8857600080fd5b5061045f60075481565b6000610a9d82612429565b80610aac5750610aac8261250a565b92915050565b610aba6125a1565b610ac482826125fb565b5050565b606060128054610ad790613ace565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0390613ace565b8015610b505780601f10610b2557610100808354040283529160200191610b50565b820191906000526020600020905b815481529060010190602001808311610b3357829003601f168201915b5050505050905090565b6000610b6582612726565b610b9b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152601660205260409020546001600160a01b031690565b6000610bc28261142d565b9050336001600160a01b03821614610c1457610bde813361096e565b610c14576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526016602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60075442111580610c9b57506008544210155b15610cb9576040516337bf561360e11b815260040160405180910390fd5b6002543414610cf4576040517f393d858500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cff33600161274e565b565b6000610d0c826127a7565b9050836001600160a01b0316816001600160a01b031614610d59576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526016602052604090208054610d858187335b6001600160a01b039081169116811491141790565b610dc957610d93863361096e565b610dc9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610e09576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610e1457600082555b6001600160a01b038681166000908152601560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152601460205260409020557c02000000000000000000000000000000000000000000000000000000008316610ed15760018401600081815260146020526040902054610ecf576010548114610ecf5760008181526014602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60008281526019602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610fbb5750604080518082019091526018546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610fdf906bffffffffffffffffffffffff1687613b1f565b610fe99190613b54565b91519350909150505b9250929050565b6110016125a1565b6001546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561103b573d6000803e3d6000fd5b50600154604080518381526001600160a01b0390921660208301527f762a1dcd34d83e028e3a33f2f61733f2a00746b58e932bf3210cf3771414df6791015b60405180910390a150565b6005544211158061109857506006544210155b156110b6576040516337bf561360e11b815260040160405180910390fd5b6110c18383836116f4565b6110f7576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600d602052604081208054869290611116908490613b68565b9091555050336000908152600d6020526040902054831015611164576040517fe9d1b1a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61116e338561274e565b50505050565b61118f83838360405180602001604052806000815250611a37565b505050565b61119f816001612821565b50565b600c80546111af90613ace565b80601f01602080910402602001604051908101604052809291908181526020018280546111db90613ace565b80156112285780601f106111fd57610100808354040283529160200191611228565b820191906000526020600020905b81548152906001019060200180831161120b57829003601f168201915b505050505081565b6112386125a1565b805161124b90600b9060208401906133e2565b507f0e34f618521d6b391596557c60180d51e440208b6c02367bb8b829a06c58cda78160405161107a9190613b80565b6112836125a1565b61118f8383836129b0565b60608160008167ffffffffffffffff8111156112ac576112ac6136ed565b6040519080825280602002602001820160405280156112fe57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816112ca5790505b50905060005b8281146113515761132c86868381811061132057611320613bd2565b90506020020135611a94565b82828151811061133e5761133e613bd2565b6020908102919091010152600101611304565b50949350505050565b6113626125a1565b80806113815760405163b4fa3fb360e01b815260040160405180910390fd5b600954600a54814211801561139557508042105b156113b3576040516337bf561360e11b815260040160405180910390fd5b60038490556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061141f908681526040602082018190526008908201527f4375745072696365000000000000000000000000000000000000000000000000606082015260800190565b60405180910390a150505050565b6000610aac826127a7565b600b80546111af90613ace565b61144d6125a1565b6001600160a01b03811661148d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560408051918252602082018190526006908201527f5369676e6572000000000000000000000000000000000000000000000000000060608201527fff0500fd0200c9944150c5641906ff120bef6d95d50bafaca62702874ef5a3d59060800161107a565b60006001600160a01b038216611569576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526015602052604090205467ffffffffffffffff1690565b6115976125a1565b610cff6000612aec565b6115a96125a1565b80516115bc90600c9060208401906133e2565b507f0e34f618521d6b391596557c60180d51e440208b6c02367bb8b829a06c58cda78160405161107a9190613be8565b606060008060006115fc85611527565b905060008167ffffffffffffffff811115611619576116196136ed565b604051908082528060200260200182016040528015611642578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b8386146116e85761167a81612b56565b915081604001511561168b576116e0565b81516001600160a01b0316156116a057815194505b876001600160a01b0316856001600160a01b031614156116e057808387806001019850815181106116d3576116d3613bd2565b6020026020010181815250505b60010161166a565b50909695505050505050565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101849052600090819061179e90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600054604080516020601f88018190048102820181019092528681529293506001600160a01b03909116916117f0918491908890889081908401838280828437600092019190915250612bd592505050565b6001600160a01b0316149150505b9392505050565b606060138054610ad790613ace565b606081831061184f576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061185b60105490565b905080841115611869578093505b600061187487611527565b905084861015611893578585038181101561188d578091505b50611897565b5060005b60008167ffffffffffffffff8111156118b2576118b26136ed565b6040519080825280602002602001820160405280156118db578160200160208202803683370190505b509050816118ee5793506117fe92505050565b60006118f988611a94565b90506000816040015161190a575080515b885b88811415801561191c5750848714155b156119985761192a81612b56565b925082604001511561193b57611990565b82516001600160a01b03161561195057825191505b8a6001600160a01b0316826001600160a01b03161415611990578084888060010199508151811061198357611983613bd2565b6020026020010181815250505b60010161190c565b505050928352509095945050505050565b3360008181526017602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000611a2060105490565b905090565b611a2d6125a1565b610ac4828261274e565b611a42848484610d01565b6001600160a01b0383163b1561116e57611a5e84848484612bf9565b61116e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506010548310611ae85792915050565b611af183612b56565b9050806040015115611b035792915050565b6117fe83612d54565b611b146125a1565b818180821115611b375760405163b4fa3fb360e01b815260040160405180910390fd5b6005548410158015611b4b57506006548411155b80611b6557506005548310158015611b6557506006548311155b80611b7f57506005548411158015611b7f57506006548310155b15611b9d5760405163b4fa3fb360e01b815260040160405180910390fd5b600784905560088390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526006908201527f5075626c69630000000000000000000000000000000000000000000000000000608082015260a00190565b6060611c2282612726565b611c58576040517f4494362200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8054611c6790613ace565b905011611c835760405180602001604052806000815250610aac565b600b611c8e83612dcc565b600c604051602001611ca293929190613cd4565b60405160208183030381529060405292915050565b6002600e541415611d0f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600e5560095442111580611d275750600a544210155b15611d45576040516337bf561360e11b815260040160405180910390fd5b6003548190611d549082613b1f565b3414611d8c576040517f393d858500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611dc057611db8848483818110611dac57611dac613bd2565b90506020020135611194565b600101611d8f565b506040517fefbd73f40000000000000000000000000000000000000000000000000000000081526004810182905233602482015273ef5c87717aa196d215b4f872fac3da77fc5a10e19063efbd73f490604401600060405180830381600087803b158015611e2d57600080fd5b505af1158015611e41573d6000803e3d6000fd5b505060408051338152602081018590527faff88686a3d897df714be1c658cac45b2e751038229f49a8cb120c9cb674856d935001905060405180910390a150506001600e5550565b611e916125a1565b818180821115611eb45760405163b4fa3fb360e01b815260040160405180910390fd5b6007548410158015611ec857506008548411155b80611ee257506007548310158015611ee257506008548311155b80611efc57506007548411158015611efc57506008548310155b15611f1a5760405163b4fa3fb360e01b815260040160405180910390fd5b600584905560068390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526009908201527f57686974656c6973740000000000000000000000000000000000000000000000608082015260a00190565b611f9c6125a1565b6001600160a01b038116611fdc576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015273ef5c87717aa196d215b4f872fac3da77fc5a10e19063f2fde38b90602401600060405180830381600087803b15801561204a57600080fd5b505af115801561205e573d6000803e3d6000fd5b5050505050565b61206d6125a1565b6001600160a01b0381166120ad576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03831690811790915560408051918252602082018190526008908201527f547265617375727900000000000000000000000000000000000000000000000060608201527fff0500fd0200c9944150c5641906ff120bef6d95d50bafaca62702874ef5a3d59060800161107a565b61214f6125a1565b6001600160a01b0381166121cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611d06565b61119f81612aec565b6121dc6125a1565b80806121fb5760405163b4fa3fb360e01b815260040160405180910390fd5b600754600854814211801561220f57508042105b1561222d576040516337bf561360e11b815260040160405180910390fd5b60028490556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061141f908681526040602082018190526009908201527f4d696e7450726963650000000000000000000000000000000000000000000000606082015260800190565b6122a16125a1565b600554421180156122b3575060065442105b806122cb5750600754421180156122cb575060085442105b156122e9576040516337bf561360e11b815260040160405180910390fd5b61254b8111806122fa575060105481105b156123185760405163b4fa3fb360e01b815260040160405180910390fd5b60048190556040517fe5d2289ff8acc724c3994077a7dffa36cd7cac0891c44888115e811179293e7e9061107a908381526040602082018190526003908201527f4d61780000000000000000000000000000000000000000000000000000000000606082015260800190565b61238c6125a1565b8181808211156123af5760405163b4fa3fb360e01b815260040160405180910390fd5b6009849055600a8390556040517f4a09b8d9133b26914e8d8acf9ab35456f919c6513ded3d7fce2c88c4eb8bd0e99061141f908690869091825260208201526060604082018190526003908201527f4375740000000000000000000000000000000000000000000000000000000000608082015260a00190565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806124bc57507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610aac5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610aac57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610aac565b600f546001600160a01b03163314610cff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611d06565b6127106bffffffffffffffffffffffff821611156126815760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611d06565b6001600160a01b0382166126d75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611d06565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217601855565b600060105482108015610aac575050600090815260146020526040902054600160e01b161590565b6004548161275b60105490565b6127659190613b68565b111561279d576040517fe9d1b1a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac48282612efe565b6000816010548110156127ef57600081815260146020526040902054600160e01b81166127ed575b806117fe5750600019016000818152601460205260409020546127cf565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061282c836127a7565b90508060008061284a86600090815260166020526040902080549091565b9150915084156128a35761285f818433610d70565b6128a35761286d833361096e565b6128a3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156128ae57600082555b6001600160a01b038316600081815260156020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152601460205260409020557c0200000000000000000000000000000000000000000000000000000000841661296757600186016000818152601460205260409020546129655760105481146129655760008181526014602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060118054600101905550505050565b6127106bffffffffffffffffffffffff82161115612a365760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611d06565b6001600160a01b038216612a8c5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401611d06565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff9283166020808301918252600096875260199052919094209351905190911674010000000000000000000000000000000000000000029116179055565b600f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260146020526040902054610aac90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000806000612be48585612f18565b91509150612bf181612f5b565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612c47903390899088908890600401613d07565b602060405180830381600087803b158015612c6157600080fd5b505af1925050508015612c91575060408051601f3d908101601f19168201909252612c8e91810190613d43565b60015b612d05573d808015612cbf576040519150601f19603f3d011682016040523d82523d6000602084013e612cc4565b606091505b508051612cfd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610aac612d84836127a7565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b606081612e0c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e365780612e2081613d60565b9150612e2f9050600a83613b54565b9150612e10565b60008167ffffffffffffffff811115612e5157612e516136ed565b6040519080825280601f01601f191660200182016040528015612e7b576020820181803683370190505b5090505b8415612d4c57612e90600183613d7b565b9150612e9d600a86613d92565b612ea8906030613b68565b60f81b818381518110612ebd57612ebd613bd2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ef7600a86613b54565b9450612e7f565b610ac482826040518060200160405280600081525061314c565b600080825160411415612f4f5760208301516040840151606085015160001a612f43878285856131cb565b94509450505050610ff2565b50600090506002610ff2565b6000816004811115612f6f57612f6f613da6565b1415612f785750565b6001816004811115612f8c57612f8c613da6565b1415612fda5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611d06565b6002816004811115612fee57612fee613da6565b141561303c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611d06565b600381600481111561305057613050613da6565b14156130c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611d06565b60048160048111156130d8576130d8613da6565b141561119f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611d06565b61315683836132b8565b6001600160a01b0383163b1561118f576010548281035b6131806000868380600101945086612bf9565b6131b6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061316d57816010541461205e57600080fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561320257506000905060036132af565b8460ff16601b1415801561321a57508460ff16601c14155b1561322b57506000905060046132af565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561327f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132a8576000600192509250506132af565b9150600090505b94509492505050565b601054816132f2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526015602090815260408083208054680100000000000000018802019055848352601490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146133a157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613369565b50816133d9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105550505050565b8280546133ee90613ace565b90600052602060002090601f0160209004810192826134105760008555613456565b82601f1061342957805160ff1916838001178555613456565b82800160010185558215613456579182015b8281111561345657825182559160200191906001019061343b565b50613462929150613466565b5090565b5b808211156134625760008155600101613467565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461119f57600080fd5b6000602082840312156134bb57600080fd5b81356117fe8161347b565b80356001600160a01b03811681146134dd57600080fd5b919050565b80356bffffffffffffffffffffffff811681146134dd57600080fd5b6000806040838503121561351157600080fd5b61351a836134c6565b9150613528602084016134e2565b90509250929050565b60005b8381101561354c578181015183820152602001613534565b8381111561116e5750506000910152565b60008151808452613575816020860160208601613531565b601f01601f19169290920160200192915050565b6020815260006117fe602083018461355d565b6000602082840312156135ae57600080fd5b5035919050565b600080604083850312156135c857600080fd5b6135d1836134c6565b946020939093013593505050565b6000602082840312156135f157600080fd5b6117fe826134c6565b60008060006060848603121561360f57600080fd5b613618846134c6565b9250613626602085016134c6565b9150604084013590509250925092565b6000806040838503121561364957600080fd5b50508035926020909101359150565b60008083601f84011261366a57600080fd5b50813567ffffffffffffffff81111561368257600080fd5b602083019150836020828501011115610ff257600080fd5b600080600080606085870312156136b057600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156136d557600080fd5b6136e187828801613658565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561371e5761371e6136ed565b604051601f8501601f19908116603f01168101908282118183101715613746576137466136ed565b8160405280935085815286868601111561375f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561378b57600080fd5b813567ffffffffffffffff8111156137a257600080fd5b8201601f810184136137b357600080fd5b612d4c84823560208401613703565b6000806000606084860312156137d757600080fd5b833592506137e7602085016134c6565b91506137f5604085016134e2565b90509250925092565b6000806020838503121561381157600080fd5b823567ffffffffffffffff8082111561382957600080fd5b818501915085601f83011261383d57600080fd5b81358181111561384c57600080fd5b8660208260051b850101111561386157600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b818110156116e8576138dd8385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161388f565b6020808252825182820181905260009190848201906040850190845b818110156116e85783518352928401929184019160010161390c565b60008060006040848603121561393d57600080fd5b83359250602084013567ffffffffffffffff81111561395b57600080fd5b61396786828701613658565b9497909650939450505050565b60008060006060848603121561398957600080fd5b613992846134c6565b95602085013595506040909401359392505050565b600080604083850312156139ba57600080fd5b6139c3836134c6565b9150602083013580151581146139d857600080fd5b809150509250929050565b600080600080608085870312156139f957600080fd5b613a02856134c6565b9350613a10602086016134c6565b925060408501359150606085013567ffffffffffffffff811115613a3357600080fd5b8501601f81018713613a4457600080fd5b613a5387823560208401613703565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610aac565b60008060408385031215613ab757600080fd5b613ac0836134c6565b9150613528602084016134c6565b600181811c90821680613ae257607f821691505b60208210811415613b0357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613b3957613b39613b09565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613b6357613b63613b3e565b500490565b60008219821115613b7b57613b7b613b09565b500190565b604081526000613b93604083018461355d565b8281036020840152600781527f426173655552490000000000000000000000000000000000000000000000000060208201526040810191505092915050565b634e487b7160e01b600052603260045260246000fd5b604081526000613bfb604083018461355d565b8281036020840152600681527f537566666978000000000000000000000000000000000000000000000000000060208201526040810191505092915050565b8054600090600181811c9080831680613c5457607f831692505b6020808410821415613c7657634e487b7160e01b600052602260045260246000fd5b818015613c8a5760018114613c9b57613cc8565b60ff19861689528489019650613cc8565b60008881526020902060005b86811015613cc05781548b820152908501908301613ca7565b505084890196505b50505050505092915050565b6000613ce08286613c3a565b8451613cf0818360208901613531565b613cfc81830186613c3a565b979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d39608083018461355d565b9695505050505050565b600060208284031215613d5557600080fd5b81516117fe8161347b565b6000600019821415613d7457613d74613b09565b5060010190565b600082821015613d8d57613d8d613b09565b500390565b600082613da157613da1613b3e565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220fad3ace6e7232aea08e11f1ddda8266bc6b6fba4bb0233d5431270fe4fbdaa9e64736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000000002ee00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61336f753671464132397932504635674c6f6653324c6f706d4e33464c555332456846513942715172556b4b2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _mintPrice (uint256): 0
Arg [1] : _cutPrice (uint256): 50000000000000000
Arg [2] : _royaltyFee (uint96): 750
Arg [3] : _tokenURI (string): ipfs://Qma3ou6qFA29y2PF5gLofS2LopmN3FLUS2EhFQ9BqQrUkK/
Arg [4] : _uriSuffix (string): .json

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [6] : 697066733a2f2f516d61336f753671464132397932504635674c6f6653324c6f
Arg [7] : 706d4e33464c555332456846513942715172556b4b2f00000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 2e6a736f6e000000000000000000000000000000000000000000000000000000


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.