ETH Price: $3,326.43 (-4.80%)

Token

BOT-X CLUB (BTX)
 

Overview

Max Total Supply

8,000 BTX

Holders

693

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 BTX
0xaa25494d72c8b137c7be09961644c8bab2b3d5d4
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:
BotXNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : BotXNFT.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.13;

/*
BOT-X-CLUB
Website: https://botx-club.com
2022
*/

// @author Arraya

////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//    ______  _____ _____    __   __      _____  _     _   _______    //
//    | ___ \|  _  |_   _|   \ \ / /     /  __ \| |   | | | | ___ \   //
//    | |_/ /| | | | | |______\ V /______| /  \/| |   | | | | |_/ /   //
//    | ___ \| | | | | |______/   \______| |    | |   | | | | ___ \   //
//    | |_/ /\ \_/ / | |     / /^\ \     | \__/\| |___| |_| | |_/ /   //
//    \____/  \___/  \_/     \/   \/      \____/\_____/\___/\____/    //
//                                                                    //
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./base/extensions/ERC721AQueryable.sol";
import "./interface/IBotXNFT.sol";
import "./interface/IBotXToken.sol";

contract BotXNFT is Pausable, Ownable, ERC721AQueryable, IBotXNFT {
    using Counters for Counters.Counter;
    using Strings for uint256;
    using SafeMath for uint256;

    IBotXToken public botXToken;

    // Image Placeholder URI
    string public placeHolderURI;

    // Public Reveal Status
    bool public PublicRevealStatus = false;

    bool public SaleStatus = false;

    address public raffleToken;

    // General details
    uint256 public constant maxSupply = 10000;

    bytes32 public merkleRoot;

    // Owner Wallet Address to withdraw
    address public constant ownerWallet =
        0xFea483E08BD1996b5bA1f29a3521BCf5CB4a5631;

    // Team Wallet Address to withdraw
    address public constant teamWallet =
        0x02405E4bfdc8DC4d61F5bA785988eb786606F6fB;

    // Public sale details
    uint256 public price = 0.12 ether; // Public sale price
    uint256 public publicSaleTransLimit = 10; // Public sale limit per transaction
    bool public publicSaleStarted; // Flag to enable public sale
    mapping(address => uint256) public mintListPurchases;
    //Address => tokenIDs
    mapping(address => uint256) public mintRecords;

    mapping(address => uint256) public raffleRecords;
    address[] public raffleTicketsHolders;

    uint256 public preSaleTransLimit = 5;
    // Presale sale details
    uint256 public preSalePrice = 0.085 ether;
    uint256 public raffleTicketPrice = 20 ether;
    uint256 public preSaleMintLimit = 10; // Presale limit per wallet
    uint256 public preSaleAmountMinted;
    mapping(address => uint256) public preSaleListPurchases;

    // Reserve details for founders / gifts
    uint256 private reservedSupply = 1000;

    mapping(address => bool) internal admins;

    // Metadata details
    string _baseTokenURI;
    string _contractURI;

    modifier onlyAdmin() {
        require(admins[_msgSender()], "Caller is not the admin");
        _;
    }

    constructor(
        string memory name,
        string memory symbol,
        string memory _placeHolderURI,
        string memory baseURI,
        IBotXToken _botXToken
    ) ERC721A(name, symbol) {
        placeHolderURI = _placeHolderURI;
        _baseTokenURI = baseURI;
        admins[_msgSender()] = true;
        botXToken = _botXToken;
        _pause();
    }

    // Public sale functions

    function mint(uint256 _nbTokens) external payable whenNotPaused {
        require(SaleStatus, "Public sale not yet started");

        // Public sale minting
        require(
            _nbTokens <= publicSaleTransLimit,
            "You cannot mint that many NFTs at once"
        );
        require(
            totalSupply() + _nbTokens <= maxSupply - reservedSupply,
            "Not enough Tokens left."
        );
        require(_nbTokens * price <= msg.value, "Insufficient ETH");
        mintListPurchases[msg.sender] += _nbTokens;
        _safeMint(msg.sender, _nbTokens);
    }

    function merkleMint(
        uint256 numberOfTokens,
        uint256 maxQuantity,
        bytes32[] memory _merkleProof
    ) public payable whenNotPaused {
        require(!SaleStatus, "Pre-sale not running");

        require(
            preSaleListPurchases[msg.sender] + numberOfTokens <=
                preSaleMintLimit,
            "Exceeded presale allowed buy limit"
        );

        require(preSalePrice * numberOfTokens <= msg.value, "Insufficient ETH");

        require(
            totalSupply() + numberOfTokens <= maxSupply,
            "MerkleMint: Mint would exceed max supply"
        );
        require(
            totalSupply() + numberOfTokens <= maxSupply - reservedSupply,
            "Not enough Tokens left."
        );
        bytes32 node = keccak256(abi.encode(msg.sender, maxQuantity));
        require(
            MerkleProof.verify(_merkleProof, merkleRoot, node),
            "MerkleMint: Address not eligible for mint"
        );

        require(
            balanceOf(msg.sender) + numberOfTokens <= maxQuantity,
            "MerkleMint: Mint would exceed max allowed"
        );

        preSaleAmountMinted += numberOfTokens;
        preSaleListPurchases[msg.sender] += numberOfTokens;
        _safeMint(msg.sender, numberOfTokens);
    }

    function setPublicSaleTransLimit(uint256 limit) external onlyAdmin {
        publicSaleTransLimit = limit;
    }

    function setPreSaleTransLimit(uint256 limit) external onlyAdmin {
        preSaleTransLimit = limit;
    }

    // Make it possible to change the price: just in case
    function setPublicPrice(uint256 _newPrice) external onlyAdmin {
        price = _newPrice;
    }

    function getPublicPrice() public view returns (uint256) {
        return price;
    }

    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override(ERC721A, IBotXNFT, IERC721A)
        returns (address)
    {
        return super.ownerOf(tokenId);
    }

    function setPreSalePrice(uint256 _newPreSalePrice) external onlyOwner {
        preSalePrice = _newPreSalePrice;
    }

    function getPreSalePrice() public view returns (uint256) {
        return preSalePrice;
    }

    function setPreSaleMintLimit(uint256 _newPresaleMintLimit)
        external
        onlyOwner
    {
        preSaleMintLimit = _newPresaleMintLimit;
    }

    function getReservedLeft() public view returns (uint256) {
        return reservedSupply;
    }

    // Make it possible to change the reserve only if sale not started: just in case
    function setReservedSupply(uint256 _newReservedSupply) external onlyOwner {
        reservedSupply = _newReservedSupply;
    }

    // Storefront metadata
    // https://docs.opensea.io/docs/contract-level-metadata
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function setContractURI(string memory _URI) external onlyOwner {
        _contractURI = _URI;
    }

    function setBaseURI(string memory _URI) external onlyOwner {
        _baseTokenURI = _URI;
    }

    function _baseURI()
        internal
        view
        override(ERC721A)
        returns (string memory)
    {
        return _baseTokenURI;
    }

    // Reserve functions
    // Owner to send reserve NFT to address
    function sendReserve(address _receiver, uint256 _nbTokens)
        public
        onlyAdmin
    {
        require(
            totalSupply() + _nbTokens <= maxSupply - reservedSupply,
            "Not enough supply left"
        );
        require(
            _nbTokens <= reservedSupply,
            "That would exceed the max reserved"
        );
        _safeMint(_receiver, _nbTokens);
        reservedSupply = reservedSupply - _nbTokens;
    }

    function withdraw() public onlyOwner {
        uint256 _balance = address(this).balance;
        uint256 ownerAmount = _balance.mul(95).div(100); // 95 % ETH amount
        require(payable(ownerWallet).send(ownerAmount)); // send the owner withdraw amount to constant owner wallet
        require(payable(teamWallet).send(address(this).balance)); // send the team withdraw amount to constant team wallet
    }

    function burn(uint256 tokenId) external onlyAdmin {
        super._burn(tokenId);
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override(ERC721A, IERC721A)
        returns (bool)
    {
        if (admins[owner] || admins[operator]) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

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

    function buyTickets(uint256 amount) public {
        require(
            address(botXToken) != address(0),
            "BotXNFT: CLUB Token address failed!"
        );
        uint256 totalPrice = amount.mul(raffleTicketPrice);
        if (!admins[_msgSender()]) {
            require(
                IERC20(address(botXToken)).balanceOf(_msgSender()) >=
                    totalPrice,
                "BotXNFT: caller's token amount is not enough!"
            );
            botXToken.burn(_msgSender(), totalPrice);
        }
        if (raffleRecords[_msgSender()] == 0) {
            raffleTicketsHolders.push(_msgSender());
        }
        raffleRecords[_msgSender()] += amount;
    }

    function getRaffleTicketsHolderList()
        public
        view
        returns (address[] memory, uint256)
    {
        return (raffleTicketsHolders, raffleTicketsHolders.length);
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        require(tokenId <= totalSupply(), "Token does not exist");
        if (PublicRevealStatus) {
            return string(abi.encodePacked(_baseURI(), tokenId.toString()));
        } else {
            return placeHolderURI;
        }
    }

    function setPlaceholderURI(string memory uri) public onlyAdmin {
        placeHolderURI = uri;
    }

    function togglePublicReveal() external onlyAdmin {
        PublicRevealStatus = !PublicRevealStatus;
    }

    function getMintRecord(address _minter) public view returns (uint256) {
        return mintRecords[_minter];
    }

    // Function to grant admin role
    function addAdminRole(address _address) external onlyOwner {
        admins[_address] = true;
    }

    // Function to revoke admin role
    function revokeAdminRole(address _address) external onlyOwner {
        admins[_address] = false;
    }

    function hasAdminRole(address _address) external view returns (bool) {
        return admins[_address];
    }

    function setPaused(bool _paused) public onlyAdmin {
        if (!_paused) {
            _unpause();
        } else {
            _pause();
        }
    }

    function setMerkleRoot(bytes32 _hash) external onlyAdmin {
        merkleRoot = _hash;
    }

    function flipSaleStatus() public onlyAdmin {
        SaleStatus = !SaleStatus;
    }

    function setRaffleToken(address _raffleToken) external onlyAdmin {
        raffleToken = _raffleToken;
    }

    function setRaffleTicketPrice(uint256 _price) external onlyAdmin {
        raffleTicketPrice = _price;
    }

    function setBotXTokenContract(IBotXToken _tokenAddress) public onlyAdmin {
        botXToken = _tokenAddress;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 8 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 9 of 15 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "./IERC721AQueryable.sol";
import "../ERC721A.sol";

/**
 * @title ERC721A Queryable
 * @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
        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[] memory tokenIds)
        external
        view
        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 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 pfp collections should be fine).
     */
    function tokensOfOwner(address owner)
        external
        view
        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 10 of 15 : IBotXNFT.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.13;

interface IBotXNFT {
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function ownerOf(uint256 tokenId) external view returns (address);
}

File 11 of 15 : IBotXToken.sol
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.13;

interface IBotXToken {
    function mint(address to, uint256 amount) external;

    function burn(address account, uint256 amount) external;
}

File 12 of 15 : 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 13 of 15 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
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`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    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 pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 14 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "./IERC721A.sol";

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

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

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

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

    /**
     * @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 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 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 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 returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    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: 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.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view 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 {
        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;
    }

    /**
     * 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 ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @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 See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length != 0
                ? string(abi.encodePacked(baseURI, _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 "";
    }

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // `balance` 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 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _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 {
        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 Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(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 `_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
        ) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(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++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try
            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))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        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 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;
    }

    /**
     * @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 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 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
        returns (string memory ptr)
    {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

File 15 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

    // ==============================
    //            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);

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

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

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

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

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

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

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

    // ==============================
    //        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 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_placeHolderURI","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"contract IBotXToken","name":"_botXToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PublicRevealStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"botXToken","outputs":[{"internalType":"contract IBotXToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyTickets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"flipSaleStatus","outputs":[],"stateMutability":"nonpayable","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":"_minter","type":"address"}],"name":"getMintRecord","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPreSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaffleTicketsHolderList","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReservedLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasAdminRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"maxQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"merkleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nbTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintRecords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeHolderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleTransLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleTransLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"raffleRecords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleTicketPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raffleTicketsHolders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_nbTokens","type":"uint256"}],"name":"sendReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBotXToken","name":"_tokenAddress","type":"address"}],"name":"setBotXTokenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPresaleMintLimit","type":"uint256"}],"name":"setPreSaleMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPreSalePrice","type":"uint256"}],"name":"setPreSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPreSaleTransLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setPublicSaleTransLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setRaffleTicketPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_raffleToken","type":"address"}],"name":"setRaffleToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newReservedSupply","type":"uint256"}],"name":"setReservedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805461ffff191690556701aa535d3d0c0000600d55600a600e819055600560145567012dfb0cb5e880006015556801158e460913d000006016556017556103e8601a553480156200005657600080fd5b5060405162003e1c38038062003e1c8339810160408190526200007991620003a4565b6000805460ff19169055848462000090336200013a565b8151620000a590600390602085019062000231565b508051620000bb90600490602084019062000231565b506001805550508251620000d790600a90602086019062000231565b508151620000ed90601c90602085019062000231565b50336000908152601b60205260409020805460ff19166001179055600980546001600160a01b0383166001600160a01b03199091161790556200012f62000193565b5050505050620004bd565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff1615620001de5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002143390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200023f9062000481565b90600052602060002090601f016020900481019282620002635760008555620002ae565b82601f106200027e57805160ff1916838001178555620002ae565b82800160010185558215620002ae579182015b82811115620002ae57825182559160200191906001019062000291565b50620002bc929150620002c0565b5090565b5b80821115620002bc5760008155600101620002c1565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002ff57600080fd5b81516001600160401b03808211156200031c576200031c620002d7565b604051601f8301601f19908116603f01168101908282118183101715620003475762000347620002d7565b816040528381526020925086838588010111156200036457600080fd5b600091505b8382101562000388578582018301518183018401529082019062000369565b838211156200039a5760008385830101525b9695505050505050565b600080600080600060a08688031215620003bd57600080fd5b85516001600160401b0380821115620003d557600080fd5b620003e389838a01620002ed565b96506020880151915080821115620003fa57600080fd5b6200040889838a01620002ed565b955060408801519150808211156200041f57600080fd5b6200042d89838a01620002ed565b945060608801519150808211156200044457600080fd5b506200045388828901620002ed565b608088015190935090506001600160a01b03811681146200047357600080fd5b809150509295509295909350565b600181811c908216806200049657607f821691505b602082108103620004b757634e487b7160e01b600052602260045260246000fd5b50919050565b61394f80620004cd6000396000f3fe60806040526004361061043c5760003560e01c8063715018a611610234578063a8a8b9101161012e578063cd95efac116100b6578063e757c17d1161007a578063e757c17d14610d03578063e8a3d48514610d19578063e985e9c514610d2e578063f2fde38b14610d4e578063f59003e914610d6e57600080fd5b8063cd95efac14610c8d578063ce03ec9314610ca3578063d5abeb0114610cb8578063daa023aa14610cce578063de59586a14610ce357600080fd5b8063be90cb3e116100fd578063be90cb3e14610bb1578063c23dc68f14610be7578063c395fcb314610c14578063c627525514610c4d578063c87b56dd14610c6d57600080fd5b8063a8a8b91014610b31578063a9ebc54e14610b51578063b009872914610b71578063b88d4fde14610b9157600080fd5b806395d89b41116101bc578063a035b1fe11610180578063a035b1fe14610aa1578063a0712d6814610ab7578063a22cb46514610aca578063a2e9147714610aea578063a4150ee314610b0457600080fd5b806395d89b4114610a0a57806396e5422914610a1f57806397562de414610a3457806399a2557a14610a615780639a19c7b014610a8157600080fd5b80638462151c116102035780638462151c1461095d5780638c81bc611461098a5780638da5cb5b1461099f5780639335dcb7146109c2578063938e3d7b146109ea57600080fd5b8063715018a6146108f35780637cb64759146109085780637d7eee4214610928578063816d6a5d1461094857600080fd5b8063363e86fe116103455780635bbb2177116102cd57806364b4fc8e1161029157806364b4fc8e146108575780636595171c1461087d5780636dfe929c1461089d57806370237718146108bd57806370a08231146108d357600080fd5b80635bbb2177146107af5780635c975abb146107dc5780635f2c0827146107f4578063612d33d4146108175780636352211e1461083757600080fd5b806342966c681161031457806342966c681461071e5780634b25f5fc1461073e57806355f804b3146107545780635756069814610774578063599270441461078757600080fd5b8063363e86fe146106a75780633aed5952146106bc5780633ccfd60b146106e957806342842e0e146106fe57600080fd5b80631e13f86b116103c85780632eb4a7ab116103975780632eb4a7ab1461060a5780632f366637146106205780632fbcd0321461064057806332cfa0241461065a5780633574a2dd1461068757600080fd5b80631e13f86b1461058a578063201f543e146105aa578063230b4d00146105ca57806323b872dd146105ea57600080fd5b8063095ea7b31161040f578063095ea7b3146104ef57806316c38b3c1461051157806318160ddd1461053157806319ac2672146105545780631d56bbad1461056a57600080fd5b806301ffc9a71461044157806306fdde0314610476578063081812fc14610498578063091babec146104d0575b600080fd5b34801561044d57600080fd5b5061046161045c3660046130f2565b610d84565b60405190151581526020015b60405180910390f35b34801561048257600080fd5b5061048b610dd6565b60405161046d9190613167565b3480156104a457600080fd5b506104b86104b336600461317a565b610e68565b6040516001600160a01b03909116815260200161046d565b3480156104dc57600080fd5b50600b5461046190610100900460ff1681565b3480156104fb57600080fd5b5061050f61050a3660046131a8565b610eac565b005b34801561051d57600080fd5b5061050f61052c3660046131e4565b610f4c565b34801561053d57600080fd5b50610546610f9c565b60405190815260200161046d565b34801561056057600080fd5b50610546600e5481565b34801561057657600080fd5b5061050f61058536600461317a565b610faa565b34801561059657600080fd5b5061050f6105a536600461317a565b610fdf565b3480156105b657600080fd5b5061050f6105c536600461317a565b611014565b3480156105d657600080fd5b506009546104b8906001600160a01b031681565b3480156105f657600080fd5b5061050f6106053660046131ff565b611048565b34801561061657600080fd5b50610546600c5481565b34801561062c57600080fd5b5061050f61063b36600461317a565b611058565b34801561064c57600080fd5b50600b546104619060ff1681565b34801561066657600080fd5b50610546610675366004613240565b60106020526000908152604090205481565b34801561069357600080fd5b5061050f6106a23660046132fa565b6112c1565b3480156106b357600080fd5b50600d54610546565b3480156106c857600080fd5b506105466106d7366004613240565b60126020526000908152604090205481565b3480156106f557600080fd5b5061050f611307565b34801561070a57600080fd5b5061050f6107193660046131ff565b6113c4565b34801561072a57600080fd5b5061050f61073936600461317a565b6113df565b34801561074a57600080fd5b5061054660145481565b34801561076057600080fd5b5061050f61076f3660046132fa565b611417565b61050f610782366004613365565b61145a565b34801561079357600080fd5b506104b87302405e4bfdc8dc4d61f5ba785988eb786606f6fb81565b3480156107bb57600080fd5b506107cf6107ca36600461340f565b6117cc565b60405161046d91906134db565b3480156107e857600080fd5b5060005460ff16610461565b34801561080057600080fd5b50610809611899565b60405161046d92919061351d565b34801561082357600080fd5b5061050f610832366004613240565b611908565b34801561084357600080fd5b506104b861085236600461317a565b611961565b34801561086357600080fd5b50600b546104b8906201000090046001600160a01b031681565b34801561088957600080fd5b5061050f610898366004613240565b61196c565b3480156108a957600080fd5b5061050f6108b8366004613240565b6119c0565b3480156108c957600080fd5b5061054660185481565b3480156108df57600080fd5b506105466108ee366004613240565b611a11565b3480156108ff57600080fd5b5061050f611a5f565b34801561091457600080fd5b5061050f61092336600461317a565b611a9b565b34801561093457600080fd5b5061050f61094336600461317a565b611acf565b34801561095457600080fd5b50601554610546565b34801561096957600080fd5b5061097d610978366004613240565b611b04565b60405161046d919061356e565b34801561099657600080fd5b5061048b611c0c565b3480156109ab57600080fd5b5060005461010090046001600160a01b03166104b8565b3480156109ce57600080fd5b506104b873fea483e08bd1996b5ba1f29a3521bcf5cb4a563181565b3480156109f657600080fd5b5061050f610a053660046132fa565b611c9a565b348015610a1657600080fd5b5061048b611cdd565b348015610a2b57600080fd5b5061050f611cec565b348015610a4057600080fd5b50610546610a4f366004613240565b60116020526000908152604090205481565b348015610a6d57600080fd5b5061097d610a7c3660046135a6565b611d2f565b348015610a8d57600080fd5b5061050f610a9c366004613240565b611eb6565b348015610aad57600080fd5b50610546600d5481565b61050f610ac536600461317a565b611f07565b348015610ad657600080fd5b5061050f610ae53660046135db565b6120cb565b348015610af657600080fd5b50600f546104619060ff1681565b348015610b1057600080fd5b50610546610b1f366004613240565b60196020526000908152604090205481565b348015610b3d57600080fd5b506104b8610b4c36600461317a565b612160565b348015610b5d57600080fd5b5061050f610b6c36600461317a565b61218a565b348015610b7d57600080fd5b5061050f610b8c3660046131a8565b6121be565b348015610b9d57600080fd5b5061050f610bac366004613610565b6122d2565b348015610bbd57600080fd5b50610546610bcc366004613240565b6001600160a01b031660009081526011602052604090205490565b348015610bf357600080fd5b50610c07610c0236600461317a565b612316565b60405161046d919061368f565b348015610c2057600080fd5b50610461610c2f366004613240565b6001600160a01b03166000908152601b602052604090205460ff1690565b348015610c5957600080fd5b5061050f610c6836600461317a565b61239e565b348015610c7957600080fd5b5061048b610c8836600461317a565b6123d2565b348015610c9957600080fd5b5061054660165481565b348015610caf57600080fd5b5061050f6124fc565b348015610cc457600080fd5b5061054661271081565b348015610cda57600080fd5b50601a54610546565b348015610cef57600080fd5b5061050f610cfe36600461317a565b612548565b348015610d0f57600080fd5b5061054660155481565b348015610d2557600080fd5b5061048b61257c565b348015610d3a57600080fd5b50610461610d4936600461369d565b61258b565b348015610d5a57600080fd5b5061050f610d69366004613240565b612606565b348015610d7a57600080fd5b5061054660175481565b60006301ffc9a760e01b6001600160e01b031983161480610db557506380ac58cd60e01b6001600160e01b03198316145b80610dd05750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610de5906136d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e11906136d6565b8015610e5e5780601f10610e3357610100808354040283529160200191610e5e565b820191906000526020600020905b815481529060010190602001808311610e4157829003601f168201915b5050505050905090565b6000610e73826126a4565b610e90576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610eb782611961565b9050336001600160a01b03821614610ef057610ed3813361258b565b610ef0576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336000908152601b602052604090205460ff16610f845760405162461bcd60e51b8152600401610f7b90613710565b60405180910390fd5b80610f9457610f916126d9565b50565b610f9161276c565b600254600154036000190190565b6000546001600160a01b03610100909104163314610fda5760405162461bcd60e51b8152600401610f7b90613747565b601755565b6000546001600160a01b0361010090910416331461100f5760405162461bcd60e51b8152600401610f7b90613747565b601a55565b336000908152601b602052604090205460ff166110435760405162461bcd60e51b8152600401610f7b90613710565b601655565b6110538383836127c4565b505050565b6009546001600160a01b03166110bc5760405162461bcd60e51b815260206004820152602360248201527f426f74584e46543a20434c554220546f6b656e2061646472657373206661696c60448201526265642160e81b6064820152608401610f7b565b60006110d36016548361296690919063ffffffff16565b336000908152601b602052604090205490915060ff166112405760095481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611169919061377c565b10156111cd5760405162461bcd60e51b815260206004820152602d60248201527f426f74584e46543a2063616c6c6572277320746f6b656e20616d6f756e74206960448201526c73206e6f7420656e6f7567682160981b6064820152608401610f7b565b6009546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561122757600080fd5b505af115801561123b573d6000803e3d6000fd5b505050505b33600090815260126020526040812054900361129957601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b031916331790555b33600090815260126020526040812080548492906112b89084906137ab565b90915550505050565b336000908152601b602052604090205460ff166112f05760405162461bcd60e51b8152600401610f7b90613710565b805161130390600a906020840190613043565b5050565b6000546001600160a01b036101009091041633146113375760405162461bcd60e51b8152600401610f7b90613747565b476000611350606461134a84605f612966565b90612972565b60405190915073fea483e08bd1996b5ba1f29a3521bcf5cb4a56319082156108fc029083906000818181858888f1935050505061138c57600080fd5b6040517302405e4bfdc8dc4d61f5ba785988eb786606f6fb904780156108fc02916000818181858888f1935050505061130357600080fd5b611053838383604051806020016040528060008152506122d2565b336000908152601b602052604090205460ff1661140e5760405162461bcd60e51b8152600401610f7b90613710565b610f918161297e565b6000546001600160a01b036101009091041633146114475760405162461bcd60e51b8152600401610f7b90613747565b805161130390601c906020840190613043565b60005460ff161561147d5760405162461bcd60e51b8152600401610f7b906137c3565b600b54610100900460ff16156114cc5760405162461bcd60e51b81526020600482015260146024820152735072652d73616c65206e6f742072756e6e696e6760601b6044820152606401610f7b565b601754336000908152601960205260409020546114ea9085906137ab565b11156115435760405162461bcd60e51b815260206004820152602260248201527f45786365656465642070726573616c6520616c6c6f77656420627579206c696d6044820152611a5d60f21b6064820152608401610f7b565b348360155461155291906137ed565b11156115935760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610f7b565b6127108361159f610f9c565b6115a991906137ab565b11156116085760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654d696e743a204d696e7420776f756c6420657863656564206d616044820152677820737570706c7960c01b6064820152608401610f7b565b601a546116179061271061380c565b83611620610f9c565b61162a91906137ab565b11156116725760405162461bcd60e51b81526020600482015260176024820152762737ba1032b737bab3b4102a37b5b2b739903632b33a1760491b6044820152606401610f7b565b604080513360208201529081018390526000906060016040516020818303038152906040528051906020012090506116ad82600c5483612989565b61170b5760405162461bcd60e51b815260206004820152602960248201527f4d65726b6c654d696e743a2041646472657373206e6f7420656c696769626c6560448201526808199bdc881b5a5b9d60ba1b6064820152608401610f7b565b828461171633611a11565b61172091906137ab565b11156117805760405162461bcd60e51b815260206004820152602960248201527f4d65726b6c654d696e743a204d696e7420776f756c6420657863656564206d616044820152681e08185b1b1bddd95960ba1b6064820152608401610f7b565b836018600082825461179291906137ab565b909155505033600090815260196020526040812080548692906117b69084906137ab565b909155506117c69050338561299f565b50505050565b80516060906000816001600160401b038111156117eb576117eb61325d565b60405190808252806020026020018201604052801561183d57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816118095790505b50905060005b8281146118915761186c85828151811061185f5761185f613823565b6020026020010151612316565b82828151811061187e5761187e613823565b6020908102919091010152600101611843565b509392505050565b6060600060138080549050818054806020026020016040519081016040528092919081815260200182805480156118f957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116118db575b50505050509150915091509091565b336000908152601b602052604090205460ff166119375760405162461bcd60e51b8152600401610f7b90613710565b600b80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000610dd0826129b9565b6000546001600160a01b0361010090910416331461199c5760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b336000908152601b602052604090205460ff166119ef5760405162461bcd60e51b8152600401610f7b90613710565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611a3a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03610100909104163314611a8f5760405162461bcd60e51b8152600401610f7b90613747565b611a9960006129c4565b565b336000908152601b602052604090205460ff16611aca5760405162461bcd60e51b8152600401610f7b90613710565b600c55565b6000546001600160a01b03610100909104163314611aff5760405162461bcd60e51b8152600401610f7b90613747565b601555565b60606000806000611b1485611a11565b90506000816001600160401b03811115611b3057611b3061325d565b604051908082528060200260200182016040528015611b59578160200160208202803683370190505b509050611b8660408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611c0057611b9981612a1d565b91508160400151611bf85781516001600160a01b031615611bb957815194505b876001600160a01b0316856001600160a01b031603611bf85780838780600101985081518110611beb57611beb613823565b6020026020010181815250505b600101611b89565b50909695505050505050565b600a8054611c19906136d6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c45906136d6565b8015611c925780601f10611c6757610100808354040283529160200191611c92565b820191906000526020600020905b815481529060010190602001808311611c7557829003601f168201915b505050505081565b6000546001600160a01b03610100909104163314611cca5760405162461bcd60e51b8152600401610f7b90613747565b805161130390601d906020840190613043565b606060048054610de5906136d6565b336000908152601b602052604090205460ff16611d1b5760405162461bcd60e51b8152600401610f7b90613710565b600b805460ff19811660ff90911615179055565b6060818310611d5157604051631960ccad60e11b815260040160405180910390fd5b600080611d5d60015490565b90506001851015611d6d57600194505b80841115611d79578093505b6000611d8487611a11565b905084861015611da35785850381811015611d9d578091505b50611da7565b5060005b6000816001600160401b03811115611dc157611dc161325d565b604051908082528060200260200182016040528015611dea578160200160208202803683370190505b50905081600003611e00579350611eaf92505050565b6000611e0b88612316565b905060008160400151611e1c575080515b885b888114158015611e2e5750848714155b15611ea357611e3c81612a1d565b92508260400151611e9b5782516001600160a01b031615611e5c57825191505b8a6001600160a01b0316826001600160a01b031603611e9b5780848880600101995081518110611e8e57611e8e613823565b6020026020010181815250505b600101611e1e565b50505092835250909150505b9392505050565b6000546001600160a01b03610100909104163314611ee65760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03166000908152601b60205260409020805460ff19169055565b60005460ff1615611f2a5760405162461bcd60e51b8152600401610f7b906137c3565b600b54610100900460ff16611f815760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206e6f7420796574207374617274656400000000006044820152606401610f7b565b600e54811115611fe25760405162461bcd60e51b815260206004820152602660248201527f596f752063616e6e6f74206d696e742074686174206d616e79204e465473206160448201526574206f6e636560d01b6064820152608401610f7b565b601a54611ff19061271061380c565b81611ffa610f9c565b61200491906137ab565b111561204c5760405162461bcd60e51b81526020600482015260176024820152762737ba1032b737bab3b4102a37b5b2b739903632b33a1760491b6044820152606401610f7b565b34600d548261205b91906137ed565b111561209c5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610f7b565b33600090815260106020526040812080548392906120bb9084906137ab565b90915550610f919050338261299f565b336001600160a01b038316036120f45760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6013818154811061217057600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152601b602052604090205460ff166121b95760405162461bcd60e51b8152600401610f7b90613710565b601455565b336000908152601b602052604090205460ff166121ed5760405162461bcd60e51b8152600401610f7b90613710565b601a546121fc9061271061380c565b81612205610f9c565b61220f91906137ab565b11156122565760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081cdd5c1c1b1e481b19599d60521b6044820152606401610f7b565b601a548111156122b35760405162461bcd60e51b815260206004820152602260248201527f5468617420776f756c642065786365656420746865206d617820726573657276604482015261195960f21b6064820152608401610f7b565b6122bd828261299f565b80601a546122cb919061380c565b601a555050565b6122dd848484611048565b6001600160a01b0383163b156117c6576122f984848484612a59565b6117c6576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061236f57506001548310155b1561237a5792915050565b61238383612a1d565b90508060400151156123955792915050565b611eaf83612b45565b336000908152601b602052604090205460ff166123cd5760405162461bcd60e51b8152600401610f7b90613710565b600d55565b60606123dc610f9c565b8211156124225760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610f7b565b600b5460ff161561246557612435612b7a565b61243e83612b89565b60405160200161244f929190613839565b6040516020818303038152906040529050919050565b600a8054612472906136d6565b80601f016020809104026020016040519081016040528092919081815260200182805461249e906136d6565b80156124eb5780601f106124c0576101008083540402835291602001916124eb565b820191906000526020600020905b8154815290600101906020018083116124ce57829003601f168201915b50505050509050919050565b919050565b336000908152601b602052604090205460ff1661252b5760405162461bcd60e51b8152600401610f7b90613710565b600b805461ff001981166101009182900460ff1615909102179055565b336000908152601b602052604090205460ff166125775760405162461bcd60e51b8152600401610f7b90613710565b600e55565b6060601d8054610de5906136d6565b6001600160a01b0382166000908152601b602052604081205460ff16806125ca57506001600160a01b0382166000908152601b602052604090205460ff165b156125d757506001610dd0565b506001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b036101009091041633146126365760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03811661269b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f7b565b610f91816129c4565b6000816001111580156126b8575060015482105b8015610dd0575050600090815260056020526040902054600160e01b161590565b60005460ff166127225760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f7b565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561278f5760405162461bcd60e51b8152600401610f7b906137c3565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861274f3390565b60006127cf82612c89565b9050836001600160a01b0316816001600160a01b0316146128025760405162a1148160e81b815260040160405180910390fd5b6000828152600760205260409020805461282e8187335b6001600160a01b039081169116811491141790565b6128595761283c863361258b565b61285957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661288057604051633a954ecd60e21b815260040160405180910390fd5b801561288b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361291d5760018401600081815260056020526040812054900361291b57600154811461291b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000611eaf82846137ed565b6000611eaf828461387e565b610f91816000612cf8565b6000826129968584612e43565b14949350505050565b611303828260405180602001604052806000815250612eaf565b6000610dd082612c89565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610dd090612f1c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612a8e903390899088908890600401613892565b6020604051808303816000875af1925050508015612ac9575060408051601f3d908101601f19168201909252612ac6918101906138cf565b60015b612b27573d808015612af7576040519150601f19603f3d011682016040523d82523d6000602084013e612afc565b606091505b508051600003612b1f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610dd0612b7583612c89565b612f1c565b6060601c8054610de5906136d6565b606081600003612bb05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bda5780612bc4816138ec565b9150612bd39050600a8361387e565b9150612bb4565b6000816001600160401b03811115612bf457612bf461325d565b6040519080825280601f01601f191660200182016040528015612c1e576020820181803683370190505b5090505b8415612b3d57612c3360018361380c565b9150612c40600a86613905565b612c4b9060306137ab565b60f81b818381518110612c6057612c60613823565b60200101906001600160f81b031916908160001a905350612c82600a8661387e565b9450612c22565b60008180600111612cdf57600154811015612cdf5760008181526005602052604081205490600160e01b82169003612cdd575b80600003611eaf575060001901600081815260056020526040902054612cbc565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612d0383612c89565b905080600080612d2186600090815260076020526040902080549091565b915091508415612d6157612d36818433612819565b612d6157612d44833361258b565b612d6157604051632ce44b5f60e11b815260040160405180910390fd5b8015612d6c57600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003612dfa57600186016000818152600560205260408120549003612df8576001548114612df85760008181526005602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060028054600101905550505050565b600081815b8451811015611891576000858281518110612e6557612e65613823565b60200260200101519050808311612e8b5760008381526020829052604090209250612e9c565b600081815260208490526040902092505b5080612ea7816138ec565b915050612e48565b612eb98383612f63565b6001600160a01b0383163b15611053576001548281035b612ee36000868380600101945086612a59565b612f00576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ed0578160015414612f1557600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001546001600160a01b038316612f8c57604051622e076360e81b815260040160405180910390fd5b81600003612fad5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612ff75760015550505050565b82805461304f906136d6565b90600052602060002090601f01602090048101928261307157600085556130b7565b82601f1061308a57805160ff19168380011785556130b7565b828001600101855582156130b7579182015b828111156130b757825182559160200191906001019061309c565b506130c39291506130c7565b5090565b5b808211156130c357600081556001016130c8565b6001600160e01b031981168114610f9157600080fd5b60006020828403121561310457600080fd5b8135611eaf816130dc565b60005b8381101561312a578181015183820152602001613112565b838111156117c65750506000910152565b6000815180845261315381602086016020860161310f565b601f01601f19169290920160200192915050565b602081526000611eaf602083018461313b565b60006020828403121561318c57600080fd5b5035919050565b6001600160a01b0381168114610f9157600080fd5b600080604083850312156131bb57600080fd5b82356131c681613193565b946020939093013593505050565b803580151581146124f757600080fd5b6000602082840312156131f657600080fd5b611eaf826131d4565b60008060006060848603121561321457600080fd5b833561321f81613193565b9250602084013561322f81613193565b929592945050506040919091013590565b60006020828403121561325257600080fd5b8135611eaf81613193565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561329b5761329b61325d565b604052919050565b60006001600160401b038311156132bc576132bc61325d565b6132cf601f8401601f1916602001613273565b90508281528383830111156132e357600080fd5b828260208301376000602084830101529392505050565b60006020828403121561330c57600080fd5b81356001600160401b0381111561332257600080fd5b8201601f8101841361333357600080fd5b612b3d848235602084016132a3565b60006001600160401b0382111561335b5761335b61325d565b5060051b60200190565b60008060006060848603121561337a57600080fd5b83359250602080850135925060408501356001600160401b0381111561339f57600080fd5b8501601f810187136133b057600080fd5b80356133c36133be82613342565b613273565b81815260059190911b820183019083810190898311156133e257600080fd5b928401925b82841015613400578335825292840192908401906133e7565b80955050505050509250925092565b6000602080838503121561342257600080fd5b82356001600160401b0381111561343857600080fd5b8301601f8101851361344957600080fd5b80356134576133be82613342565b81815260059190911b8201830190838101908783111561347657600080fd5b928401925b828410156134945783358252928401929084019061347b565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611c005761350a83855161349f565b92840192608092909201916001016134f7565b604080825283519082018190526000906020906060840190828701845b8281101561355f5781516001600160a01b03168452928401929084019060010161353a565b50505092019290925292915050565b6020808252825182820181905260009190848201906040850190845b81811015611c005783518352928401929184019160010161358a565b6000806000606084860312156135bb57600080fd5b83356135c681613193565b95602085013595506040909401359392505050565b600080604083850312156135ee57600080fd5b82356135f981613193565b9150613607602084016131d4565b90509250929050565b6000806000806080858703121561362657600080fd5b843561363181613193565b9350602085013561364181613193565b92506040850135915060608501356001600160401b0381111561366357600080fd5b8501601f8101871361367457600080fd5b613683878235602084016132a3565b91505092959194509250565b60808101610dd0828461349f565b600080604083850312156136b057600080fd5b82356136bb81613193565b915060208301356136cb81613193565b809150509250929050565b600181811c908216806136ea57607f821691505b60208210810361370a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561378e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156137be576137be613795565b500190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600081600019048311821515161561380757613807613795565b500290565b60008282101561381e5761381e613795565b500390565b634e487b7160e01b600052603260045260246000fd5b6000835161384b81846020880161310f565b83519083019061385f81836020880161310f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b60008261388d5761388d613868565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c59083018461313b565b9695505050505050565b6000602082840312156138e157600080fd5b8151611eaf816130dc565b6000600182016138fe576138fe613795565b5060010190565b60008261391457613914613868565b50069056fea2646970667358221220e6ccb6512d1f25d06392b7253c88a06d37b76e423474f8ed0faa93bbe7560cc564736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000039d52b50dd0a85baba50028a5722372329168737000000000000000000000000000000000000000000000000000000000000000a424f542d5820434c55420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b72656961716c71626a367132767a6e756c6967367872333271736b666c796f6f32616b706867323736647132796a33726a656c6671636100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f626f7478636c75622e6d7970696e6174612e636c6f75642f697066732f516d5338656f577259687145596e4e7653544a545842587a66504e315747464862626f764c477a664735556562682f000000000000000000000000

Deployed Bytecode

0x60806040526004361061043c5760003560e01c8063715018a611610234578063a8a8b9101161012e578063cd95efac116100b6578063e757c17d1161007a578063e757c17d14610d03578063e8a3d48514610d19578063e985e9c514610d2e578063f2fde38b14610d4e578063f59003e914610d6e57600080fd5b8063cd95efac14610c8d578063ce03ec9314610ca3578063d5abeb0114610cb8578063daa023aa14610cce578063de59586a14610ce357600080fd5b8063be90cb3e116100fd578063be90cb3e14610bb1578063c23dc68f14610be7578063c395fcb314610c14578063c627525514610c4d578063c87b56dd14610c6d57600080fd5b8063a8a8b91014610b31578063a9ebc54e14610b51578063b009872914610b71578063b88d4fde14610b9157600080fd5b806395d89b41116101bc578063a035b1fe11610180578063a035b1fe14610aa1578063a0712d6814610ab7578063a22cb46514610aca578063a2e9147714610aea578063a4150ee314610b0457600080fd5b806395d89b4114610a0a57806396e5422914610a1f57806397562de414610a3457806399a2557a14610a615780639a19c7b014610a8157600080fd5b80638462151c116102035780638462151c1461095d5780638c81bc611461098a5780638da5cb5b1461099f5780639335dcb7146109c2578063938e3d7b146109ea57600080fd5b8063715018a6146108f35780637cb64759146109085780637d7eee4214610928578063816d6a5d1461094857600080fd5b8063363e86fe116103455780635bbb2177116102cd57806364b4fc8e1161029157806364b4fc8e146108575780636595171c1461087d5780636dfe929c1461089d57806370237718146108bd57806370a08231146108d357600080fd5b80635bbb2177146107af5780635c975abb146107dc5780635f2c0827146107f4578063612d33d4146108175780636352211e1461083757600080fd5b806342966c681161031457806342966c681461071e5780634b25f5fc1461073e57806355f804b3146107545780635756069814610774578063599270441461078757600080fd5b8063363e86fe146106a75780633aed5952146106bc5780633ccfd60b146106e957806342842e0e146106fe57600080fd5b80631e13f86b116103c85780632eb4a7ab116103975780632eb4a7ab1461060a5780632f366637146106205780632fbcd0321461064057806332cfa0241461065a5780633574a2dd1461068757600080fd5b80631e13f86b1461058a578063201f543e146105aa578063230b4d00146105ca57806323b872dd146105ea57600080fd5b8063095ea7b31161040f578063095ea7b3146104ef57806316c38b3c1461051157806318160ddd1461053157806319ac2672146105545780631d56bbad1461056a57600080fd5b806301ffc9a71461044157806306fdde0314610476578063081812fc14610498578063091babec146104d0575b600080fd5b34801561044d57600080fd5b5061046161045c3660046130f2565b610d84565b60405190151581526020015b60405180910390f35b34801561048257600080fd5b5061048b610dd6565b60405161046d9190613167565b3480156104a457600080fd5b506104b86104b336600461317a565b610e68565b6040516001600160a01b03909116815260200161046d565b3480156104dc57600080fd5b50600b5461046190610100900460ff1681565b3480156104fb57600080fd5b5061050f61050a3660046131a8565b610eac565b005b34801561051d57600080fd5b5061050f61052c3660046131e4565b610f4c565b34801561053d57600080fd5b50610546610f9c565b60405190815260200161046d565b34801561056057600080fd5b50610546600e5481565b34801561057657600080fd5b5061050f61058536600461317a565b610faa565b34801561059657600080fd5b5061050f6105a536600461317a565b610fdf565b3480156105b657600080fd5b5061050f6105c536600461317a565b611014565b3480156105d657600080fd5b506009546104b8906001600160a01b031681565b3480156105f657600080fd5b5061050f6106053660046131ff565b611048565b34801561061657600080fd5b50610546600c5481565b34801561062c57600080fd5b5061050f61063b36600461317a565b611058565b34801561064c57600080fd5b50600b546104619060ff1681565b34801561066657600080fd5b50610546610675366004613240565b60106020526000908152604090205481565b34801561069357600080fd5b5061050f6106a23660046132fa565b6112c1565b3480156106b357600080fd5b50600d54610546565b3480156106c857600080fd5b506105466106d7366004613240565b60126020526000908152604090205481565b3480156106f557600080fd5b5061050f611307565b34801561070a57600080fd5b5061050f6107193660046131ff565b6113c4565b34801561072a57600080fd5b5061050f61073936600461317a565b6113df565b34801561074a57600080fd5b5061054660145481565b34801561076057600080fd5b5061050f61076f3660046132fa565b611417565b61050f610782366004613365565b61145a565b34801561079357600080fd5b506104b87302405e4bfdc8dc4d61f5ba785988eb786606f6fb81565b3480156107bb57600080fd5b506107cf6107ca36600461340f565b6117cc565b60405161046d91906134db565b3480156107e857600080fd5b5060005460ff16610461565b34801561080057600080fd5b50610809611899565b60405161046d92919061351d565b34801561082357600080fd5b5061050f610832366004613240565b611908565b34801561084357600080fd5b506104b861085236600461317a565b611961565b34801561086357600080fd5b50600b546104b8906201000090046001600160a01b031681565b34801561088957600080fd5b5061050f610898366004613240565b61196c565b3480156108a957600080fd5b5061050f6108b8366004613240565b6119c0565b3480156108c957600080fd5b5061054660185481565b3480156108df57600080fd5b506105466108ee366004613240565b611a11565b3480156108ff57600080fd5b5061050f611a5f565b34801561091457600080fd5b5061050f61092336600461317a565b611a9b565b34801561093457600080fd5b5061050f61094336600461317a565b611acf565b34801561095457600080fd5b50601554610546565b34801561096957600080fd5b5061097d610978366004613240565b611b04565b60405161046d919061356e565b34801561099657600080fd5b5061048b611c0c565b3480156109ab57600080fd5b5060005461010090046001600160a01b03166104b8565b3480156109ce57600080fd5b506104b873fea483e08bd1996b5ba1f29a3521bcf5cb4a563181565b3480156109f657600080fd5b5061050f610a053660046132fa565b611c9a565b348015610a1657600080fd5b5061048b611cdd565b348015610a2b57600080fd5b5061050f611cec565b348015610a4057600080fd5b50610546610a4f366004613240565b60116020526000908152604090205481565b348015610a6d57600080fd5b5061097d610a7c3660046135a6565b611d2f565b348015610a8d57600080fd5b5061050f610a9c366004613240565b611eb6565b348015610aad57600080fd5b50610546600d5481565b61050f610ac536600461317a565b611f07565b348015610ad657600080fd5b5061050f610ae53660046135db565b6120cb565b348015610af657600080fd5b50600f546104619060ff1681565b348015610b1057600080fd5b50610546610b1f366004613240565b60196020526000908152604090205481565b348015610b3d57600080fd5b506104b8610b4c36600461317a565b612160565b348015610b5d57600080fd5b5061050f610b6c36600461317a565b61218a565b348015610b7d57600080fd5b5061050f610b8c3660046131a8565b6121be565b348015610b9d57600080fd5b5061050f610bac366004613610565b6122d2565b348015610bbd57600080fd5b50610546610bcc366004613240565b6001600160a01b031660009081526011602052604090205490565b348015610bf357600080fd5b50610c07610c0236600461317a565b612316565b60405161046d919061368f565b348015610c2057600080fd5b50610461610c2f366004613240565b6001600160a01b03166000908152601b602052604090205460ff1690565b348015610c5957600080fd5b5061050f610c6836600461317a565b61239e565b348015610c7957600080fd5b5061048b610c8836600461317a565b6123d2565b348015610c9957600080fd5b5061054660165481565b348015610caf57600080fd5b5061050f6124fc565b348015610cc457600080fd5b5061054661271081565b348015610cda57600080fd5b50601a54610546565b348015610cef57600080fd5b5061050f610cfe36600461317a565b612548565b348015610d0f57600080fd5b5061054660155481565b348015610d2557600080fd5b5061048b61257c565b348015610d3a57600080fd5b50610461610d4936600461369d565b61258b565b348015610d5a57600080fd5b5061050f610d69366004613240565b612606565b348015610d7a57600080fd5b5061054660175481565b60006301ffc9a760e01b6001600160e01b031983161480610db557506380ac58cd60e01b6001600160e01b03198316145b80610dd05750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610de5906136d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e11906136d6565b8015610e5e5780601f10610e3357610100808354040283529160200191610e5e565b820191906000526020600020905b815481529060010190602001808311610e4157829003601f168201915b5050505050905090565b6000610e73826126a4565b610e90576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610eb782611961565b9050336001600160a01b03821614610ef057610ed3813361258b565b610ef0576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336000908152601b602052604090205460ff16610f845760405162461bcd60e51b8152600401610f7b90613710565b60405180910390fd5b80610f9457610f916126d9565b50565b610f9161276c565b600254600154036000190190565b6000546001600160a01b03610100909104163314610fda5760405162461bcd60e51b8152600401610f7b90613747565b601755565b6000546001600160a01b0361010090910416331461100f5760405162461bcd60e51b8152600401610f7b90613747565b601a55565b336000908152601b602052604090205460ff166110435760405162461bcd60e51b8152600401610f7b90613710565b601655565b6110538383836127c4565b505050565b6009546001600160a01b03166110bc5760405162461bcd60e51b815260206004820152602360248201527f426f74584e46543a20434c554220546f6b656e2061646472657373206661696c60448201526265642160e81b6064820152608401610f7b565b60006110d36016548361296690919063ffffffff16565b336000908152601b602052604090205490915060ff166112405760095481906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611169919061377c565b10156111cd5760405162461bcd60e51b815260206004820152602d60248201527f426f74584e46543a2063616c6c6572277320746f6b656e20616d6f756e74206960448201526c73206e6f7420656e6f7567682160981b6064820152608401610f7b565b6009546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561122757600080fd5b505af115801561123b573d6000803e3d6000fd5b505050505b33600090815260126020526040812054900361129957601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b031916331790555b33600090815260126020526040812080548492906112b89084906137ab565b90915550505050565b336000908152601b602052604090205460ff166112f05760405162461bcd60e51b8152600401610f7b90613710565b805161130390600a906020840190613043565b5050565b6000546001600160a01b036101009091041633146113375760405162461bcd60e51b8152600401610f7b90613747565b476000611350606461134a84605f612966565b90612972565b60405190915073fea483e08bd1996b5ba1f29a3521bcf5cb4a56319082156108fc029083906000818181858888f1935050505061138c57600080fd5b6040517302405e4bfdc8dc4d61f5ba785988eb786606f6fb904780156108fc02916000818181858888f1935050505061130357600080fd5b611053838383604051806020016040528060008152506122d2565b336000908152601b602052604090205460ff1661140e5760405162461bcd60e51b8152600401610f7b90613710565b610f918161297e565b6000546001600160a01b036101009091041633146114475760405162461bcd60e51b8152600401610f7b90613747565b805161130390601c906020840190613043565b60005460ff161561147d5760405162461bcd60e51b8152600401610f7b906137c3565b600b54610100900460ff16156114cc5760405162461bcd60e51b81526020600482015260146024820152735072652d73616c65206e6f742072756e6e696e6760601b6044820152606401610f7b565b601754336000908152601960205260409020546114ea9085906137ab565b11156115435760405162461bcd60e51b815260206004820152602260248201527f45786365656465642070726573616c6520616c6c6f77656420627579206c696d6044820152611a5d60f21b6064820152608401610f7b565b348360155461155291906137ed565b11156115935760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610f7b565b6127108361159f610f9c565b6115a991906137ab565b11156116085760405162461bcd60e51b815260206004820152602860248201527f4d65726b6c654d696e743a204d696e7420776f756c6420657863656564206d616044820152677820737570706c7960c01b6064820152608401610f7b565b601a546116179061271061380c565b83611620610f9c565b61162a91906137ab565b11156116725760405162461bcd60e51b81526020600482015260176024820152762737ba1032b737bab3b4102a37b5b2b739903632b33a1760491b6044820152606401610f7b565b604080513360208201529081018390526000906060016040516020818303038152906040528051906020012090506116ad82600c5483612989565b61170b5760405162461bcd60e51b815260206004820152602960248201527f4d65726b6c654d696e743a2041646472657373206e6f7420656c696769626c6560448201526808199bdc881b5a5b9d60ba1b6064820152608401610f7b565b828461171633611a11565b61172091906137ab565b11156117805760405162461bcd60e51b815260206004820152602960248201527f4d65726b6c654d696e743a204d696e7420776f756c6420657863656564206d616044820152681e08185b1b1bddd95960ba1b6064820152608401610f7b565b836018600082825461179291906137ab565b909155505033600090815260196020526040812080548692906117b69084906137ab565b909155506117c69050338561299f565b50505050565b80516060906000816001600160401b038111156117eb576117eb61325d565b60405190808252806020026020018201604052801561183d57816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816118095790505b50905060005b8281146118915761186c85828151811061185f5761185f613823565b6020026020010151612316565b82828151811061187e5761187e613823565b6020908102919091010152600101611843565b509392505050565b6060600060138080549050818054806020026020016040519081016040528092919081815260200182805480156118f957602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116118db575b50505050509150915091509091565b336000908152601b602052604090205460ff166119375760405162461bcd60e51b8152600401610f7b90613710565b600b80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000610dd0826129b9565b6000546001600160a01b0361010090910416331461199c5760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03166000908152601b60205260409020805460ff19166001179055565b336000908152601b602052604090205460ff166119ef5760405162461bcd60e51b8152600401610f7b90613710565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611a3a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03610100909104163314611a8f5760405162461bcd60e51b8152600401610f7b90613747565b611a9960006129c4565b565b336000908152601b602052604090205460ff16611aca5760405162461bcd60e51b8152600401610f7b90613710565b600c55565b6000546001600160a01b03610100909104163314611aff5760405162461bcd60e51b8152600401610f7b90613747565b601555565b60606000806000611b1485611a11565b90506000816001600160401b03811115611b3057611b3061325d565b604051908082528060200260200182016040528015611b59578160200160208202803683370190505b509050611b8660408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611c0057611b9981612a1d565b91508160400151611bf85781516001600160a01b031615611bb957815194505b876001600160a01b0316856001600160a01b031603611bf85780838780600101985081518110611beb57611beb613823565b6020026020010181815250505b600101611b89565b50909695505050505050565b600a8054611c19906136d6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c45906136d6565b8015611c925780601f10611c6757610100808354040283529160200191611c92565b820191906000526020600020905b815481529060010190602001808311611c7557829003601f168201915b505050505081565b6000546001600160a01b03610100909104163314611cca5760405162461bcd60e51b8152600401610f7b90613747565b805161130390601d906020840190613043565b606060048054610de5906136d6565b336000908152601b602052604090205460ff16611d1b5760405162461bcd60e51b8152600401610f7b90613710565b600b805460ff19811660ff90911615179055565b6060818310611d5157604051631960ccad60e11b815260040160405180910390fd5b600080611d5d60015490565b90506001851015611d6d57600194505b80841115611d79578093505b6000611d8487611a11565b905084861015611da35785850381811015611d9d578091505b50611da7565b5060005b6000816001600160401b03811115611dc157611dc161325d565b604051908082528060200260200182016040528015611dea578160200160208202803683370190505b50905081600003611e00579350611eaf92505050565b6000611e0b88612316565b905060008160400151611e1c575080515b885b888114158015611e2e5750848714155b15611ea357611e3c81612a1d565b92508260400151611e9b5782516001600160a01b031615611e5c57825191505b8a6001600160a01b0316826001600160a01b031603611e9b5780848880600101995081518110611e8e57611e8e613823565b6020026020010181815250505b600101611e1e565b50505092835250909150505b9392505050565b6000546001600160a01b03610100909104163314611ee65760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03166000908152601b60205260409020805460ff19169055565b60005460ff1615611f2a5760405162461bcd60e51b8152600401610f7b906137c3565b600b54610100900460ff16611f815760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206e6f7420796574207374617274656400000000006044820152606401610f7b565b600e54811115611fe25760405162461bcd60e51b815260206004820152602660248201527f596f752063616e6e6f74206d696e742074686174206d616e79204e465473206160448201526574206f6e636560d01b6064820152608401610f7b565b601a54611ff19061271061380c565b81611ffa610f9c565b61200491906137ab565b111561204c5760405162461bcd60e51b81526020600482015260176024820152762737ba1032b737bab3b4102a37b5b2b739903632b33a1760491b6044820152606401610f7b565b34600d548261205b91906137ed565b111561209c5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610f7b565b33600090815260106020526040812080548392906120bb9084906137ab565b90915550610f919050338261299f565b336001600160a01b038316036120f45760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6013818154811061217057600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152601b602052604090205460ff166121b95760405162461bcd60e51b8152600401610f7b90613710565b601455565b336000908152601b602052604090205460ff166121ed5760405162461bcd60e51b8152600401610f7b90613710565b601a546121fc9061271061380c565b81612205610f9c565b61220f91906137ab565b11156122565760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081cdd5c1c1b1e481b19599d60521b6044820152606401610f7b565b601a548111156122b35760405162461bcd60e51b815260206004820152602260248201527f5468617420776f756c642065786365656420746865206d617820726573657276604482015261195960f21b6064820152608401610f7b565b6122bd828261299f565b80601a546122cb919061380c565b601a555050565b6122dd848484611048565b6001600160a01b0383163b156117c6576122f984848484612a59565b6117c6576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061236f57506001548310155b1561237a5792915050565b61238383612a1d565b90508060400151156123955792915050565b611eaf83612b45565b336000908152601b602052604090205460ff166123cd5760405162461bcd60e51b8152600401610f7b90613710565b600d55565b60606123dc610f9c565b8211156124225760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610f7b565b600b5460ff161561246557612435612b7a565b61243e83612b89565b60405160200161244f929190613839565b6040516020818303038152906040529050919050565b600a8054612472906136d6565b80601f016020809104026020016040519081016040528092919081815260200182805461249e906136d6565b80156124eb5780601f106124c0576101008083540402835291602001916124eb565b820191906000526020600020905b8154815290600101906020018083116124ce57829003601f168201915b50505050509050919050565b919050565b336000908152601b602052604090205460ff1661252b5760405162461bcd60e51b8152600401610f7b90613710565b600b805461ff001981166101009182900460ff1615909102179055565b336000908152601b602052604090205460ff166125775760405162461bcd60e51b8152600401610f7b90613710565b600e55565b6060601d8054610de5906136d6565b6001600160a01b0382166000908152601b602052604081205460ff16806125ca57506001600160a01b0382166000908152601b602052604090205460ff165b156125d757506001610dd0565b506001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b036101009091041633146126365760405162461bcd60e51b8152600401610f7b90613747565b6001600160a01b03811661269b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f7b565b610f91816129c4565b6000816001111580156126b8575060015482105b8015610dd0575050600090815260056020526040902054600160e01b161590565b60005460ff166127225760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f7b565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561278f5760405162461bcd60e51b8152600401610f7b906137c3565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861274f3390565b60006127cf82612c89565b9050836001600160a01b0316816001600160a01b0316146128025760405162a1148160e81b815260040160405180910390fd5b6000828152600760205260409020805461282e8187335b6001600160a01b039081169116811491141790565b6128595761283c863361258b565b61285957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661288057604051633a954ecd60e21b815260040160405180910390fd5b801561288b57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361291d5760018401600081815260056020526040812054900361291b57600154811461291b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000611eaf82846137ed565b6000611eaf828461387e565b610f91816000612cf8565b6000826129968584612e43565b14949350505050565b611303828260405180602001604052806000815250612eaf565b6000610dd082612c89565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610dd090612f1c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612a8e903390899088908890600401613892565b6020604051808303816000875af1925050508015612ac9575060408051601f3d908101601f19168201909252612ac6918101906138cf565b60015b612b27573d808015612af7576040519150601f19603f3d011682016040523d82523d6000602084013e612afc565b606091505b508051600003612b1f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610dd0612b7583612c89565b612f1c565b6060601c8054610de5906136d6565b606081600003612bb05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bda5780612bc4816138ec565b9150612bd39050600a8361387e565b9150612bb4565b6000816001600160401b03811115612bf457612bf461325d565b6040519080825280601f01601f191660200182016040528015612c1e576020820181803683370190505b5090505b8415612b3d57612c3360018361380c565b9150612c40600a86613905565b612c4b9060306137ab565b60f81b818381518110612c6057612c60613823565b60200101906001600160f81b031916908160001a905350612c82600a8661387e565b9450612c22565b60008180600111612cdf57600154811015612cdf5760008181526005602052604081205490600160e01b82169003612cdd575b80600003611eaf575060001901600081815260056020526040902054612cbc565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612d0383612c89565b905080600080612d2186600090815260076020526040902080549091565b915091508415612d6157612d36818433612819565b612d6157612d44833361258b565b612d6157604051632ce44b5f60e11b815260040160405180910390fd5b8015612d6c57600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040812091909155600160e11b85169003612dfa57600186016000818152600560205260408120549003612df8576001548114612df85760008181526005602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060028054600101905550505050565b600081815b8451811015611891576000858281518110612e6557612e65613823565b60200260200101519050808311612e8b5760008381526020829052604090209250612e9c565b600081815260208490526040902092505b5080612ea7816138ec565b915050612e48565b612eb98383612f63565b6001600160a01b0383163b15611053576001548281035b612ee36000868380600101945086612a59565b612f00576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ed0578160015414612f1557600080fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001546001600160a01b038316612f8c57604051622e076360e81b815260040160405180910390fd5b81600003612fad5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612ff75760015550505050565b82805461304f906136d6565b90600052602060002090601f01602090048101928261307157600085556130b7565b82601f1061308a57805160ff19168380011785556130b7565b828001600101855582156130b7579182015b828111156130b757825182559160200191906001019061309c565b506130c39291506130c7565b5090565b5b808211156130c357600081556001016130c8565b6001600160e01b031981168114610f9157600080fd5b60006020828403121561310457600080fd5b8135611eaf816130dc565b60005b8381101561312a578181015183820152602001613112565b838111156117c65750506000910152565b6000815180845261315381602086016020860161310f565b601f01601f19169290920160200192915050565b602081526000611eaf602083018461313b565b60006020828403121561318c57600080fd5b5035919050565b6001600160a01b0381168114610f9157600080fd5b600080604083850312156131bb57600080fd5b82356131c681613193565b946020939093013593505050565b803580151581146124f757600080fd5b6000602082840312156131f657600080fd5b611eaf826131d4565b60008060006060848603121561321457600080fd5b833561321f81613193565b9250602084013561322f81613193565b929592945050506040919091013590565b60006020828403121561325257600080fd5b8135611eaf81613193565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561329b5761329b61325d565b604052919050565b60006001600160401b038311156132bc576132bc61325d565b6132cf601f8401601f1916602001613273565b90508281528383830111156132e357600080fd5b828260208301376000602084830101529392505050565b60006020828403121561330c57600080fd5b81356001600160401b0381111561332257600080fd5b8201601f8101841361333357600080fd5b612b3d848235602084016132a3565b60006001600160401b0382111561335b5761335b61325d565b5060051b60200190565b60008060006060848603121561337a57600080fd5b83359250602080850135925060408501356001600160401b0381111561339f57600080fd5b8501601f810187136133b057600080fd5b80356133c36133be82613342565b613273565b81815260059190911b820183019083810190898311156133e257600080fd5b928401925b82841015613400578335825292840192908401906133e7565b80955050505050509250925092565b6000602080838503121561342257600080fd5b82356001600160401b0381111561343857600080fd5b8301601f8101851361344957600080fd5b80356134576133be82613342565b81815260059190911b8201830190838101908783111561347657600080fd5b928401925b828410156134945783358252928401929084019061347b565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015611c005761350a83855161349f565b92840192608092909201916001016134f7565b604080825283519082018190526000906020906060840190828701845b8281101561355f5781516001600160a01b03168452928401929084019060010161353a565b50505092019290925292915050565b6020808252825182820181905260009190848201906040850190845b81811015611c005783518352928401929184019160010161358a565b6000806000606084860312156135bb57600080fd5b83356135c681613193565b95602085013595506040909401359392505050565b600080604083850312156135ee57600080fd5b82356135f981613193565b9150613607602084016131d4565b90509250929050565b6000806000806080858703121561362657600080fd5b843561363181613193565b9350602085013561364181613193565b92506040850135915060608501356001600160401b0381111561366357600080fd5b8501601f8101871361367457600080fd5b613683878235602084016132a3565b91505092959194509250565b60808101610dd0828461349f565b600080604083850312156136b057600080fd5b82356136bb81613193565b915060208301356136cb81613193565b809150509250929050565b600181811c908216806136ea57607f821691505b60208210810361370a57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526017908201527f43616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561378e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156137be576137be613795565b500190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600081600019048311821515161561380757613807613795565b500290565b60008282101561381e5761381e613795565b500390565b634e487b7160e01b600052603260045260246000fd5b6000835161384b81846020880161310f565b83519083019061385f81836020880161310f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b60008261388d5761388d613868565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138c59083018461313b565b9695505050505050565b6000602082840312156138e157600080fd5b8151611eaf816130dc565b6000600182016138fe576138fe613795565b5060010190565b60008261391457613914613868565b50069056fea2646970667358221220e6ccb6512d1f25d06392b7253c88a06d37b76e423474f8ed0faa93bbe7560cc564736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000039d52b50dd0a85baba50028a5722372329168737000000000000000000000000000000000000000000000000000000000000000a424f542d5820434c55420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034254580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b72656961716c71626a367132767a6e756c6967367872333271736b666c796f6f32616b706867323736647132796a33726a656c6671636100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f626f7478636c75622e6d7970696e6174612e636c6f75642f697066732f516d5338656f577259687145596e4e7653544a545842587a66504e315747464862626f764c477a664735556562682f000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): BOT-X CLUB
Arg [1] : symbol (string): BTX
Arg [2] : _placeHolderURI (string): https://ipfs.io/ipfs/bafkreiaqlqbj6q2vznulig6xr32qskflyoo2akphg276dq2yj3rjelfqca
Arg [3] : baseURI (string): https://botxclub.mypinata.cloud/ipfs/QmS8eoWrYhqEYnNvSTJTXBXzfPN1WGFHbbovLGzfG5Uebh/
Arg [4] : _botXToken (address): 0x39d52B50dd0a85bABA50028A5722372329168737

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000039d52b50dd0a85baba50028a5722372329168737
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 424f542d5820434c554200000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4254580000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [10] : 68747470733a2f2f697066732e696f2f697066732f6261666b72656961716c71
Arg [11] : 626a367132767a6e756c6967367872333271736b666c796f6f32616b70686732
Arg [12] : 3736647132796a33726a656c6671636100000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [14] : 68747470733a2f2f626f7478636c75622e6d7970696e6174612e636c6f75642f
Arg [15] : 697066732f516d5338656f577259687145596e4e7653544a545842587a66504e
Arg [16] : 315747464862626f764c477a664735556562682f000000000000000000000000


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.