ETH Price: $3,462.82 (+5.24%)

Token

SerumLabz (SLBZ)
 

Overview

Max Total Supply

2,555 SLBZ

Holders

183

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
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:
SerumLabz

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : SerumLabz.sol
// SPDX-License-Identifier: MIT
// SerumLabz brought to you by blockgeni3 - Testnet 1
pragma solidity 0.8.15;

import "./extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract SerumLabz is ERC721AQueryable, Ownable {
    using Strings for uint256;
    using MerkleProof for bytes32[];

    address payable immutable private bgaddress = payable(0xddC3A364260e619316E0A5dE60ef00326E8F164d);
    address payable immutable private lpaddress = payable(0x772CAC9Bbccd07Ef28b1c6da3AEc4E62611C43Ef);
    address payable immutable private maddress = payable(0x4A938B9D5b631f26aFBC014f7beB234090350D40);
    address payable immutable private sladdress = payable(0x8798eDF9dc9A46511D9EFaD6418Ead87f3A6624f);



    uint256 private constant MAX_SUPPLY = 7777;
    uint256 private constant MAX_PER_WALLET = 10;

    uint256 public cost = 1 * 10 ** 16;
    bool public publicMintStarted = false;
    bool public privateMintStarted = false;
    bool private revealedState = false;
    
    string private baseURI;
    string private notRevealedURI;
    bytes32 private presaleMerkleRoot;

    mapping(address => uint256) private numberMinted;

    constructor(string memory _initBaseURI, string memory _initNotRevealedURI, bytes32 _root) ERC721A("SerumLabz", "SLBZ") {
        require(bytes(_initBaseURI).length > 0, "[Error] Base URI Cannot Be Blank");
        require(bytes(_initNotRevealedURI).length > 0, "[Error] Not Revealed URI Cannot Be Blank");
        require(_root.length > 0, "[Error] Empty Root");

        baseURI = _initBaseURI;
        notRevealedURI = _initNotRevealedURI;
        presaleMerkleRoot = _root;
    }

    // ===== Check Caller Is User =====
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "[Error] Function cannot be called by a contract");
        _;
    }

    // ===== Check Mint Compliance =====
    modifier maxWalletCheck(uint8 quantity) {
        require(balanceOf(msg.sender) + quantity <= MAX_PER_WALLET && numberMinted[msg.sender] + quantity <= MAX_PER_WALLET, "[Error] Max Per Wallet Reached");
        _;
    }

    // ===== Check Supply =====
    modifier supplyCheck(uint8 quantity) {
        require(totalSupply() + quantity < MAX_SUPPLY, "[Error] Max Mint Reached");
        require(quantity > 0, "[Error] Quantity cannot be zero");
        _;
    }

    // ===== Check Not Null Value =======
    modifier notNull(string memory str){
        require(bytes(str).length > 0, "[Error] Null Value Received");
        _;
    }

    // ===== Dev Mint =====
    function devMint(uint8 quantity) external onlyOwner supplyCheck(quantity) {
        _mint(msg.sender, quantity);
    }

    // ===== Private Mint =====
    function privateMint(bytes32[] memory proof, uint8 quantity) external payable maxWalletCheck(quantity) supplyCheck(quantity) callerIsUser {
        require(!publicMintStarted && privateMintStarted, "[Error] Private Mint Not Started");
        require(proof.verify(presaleMerkleRoot, keccak256(abi.encodePacked(msg.sender))), "[Error] You are not on the whitelist");

        if(numberMinted[msg.sender] == 0) {
            require(msg.value >= (cost * (quantity - 1)), "[Error] Not enough funds supplied");
        } else {
            require(msg.value >= cost * quantity, "[Error] Not enough funds supplied");
        }

        numberMinted[msg.sender] += quantity;

        revealedState = (totalSupply() + quantity == MAX_SUPPLY);

        _mint(msg.sender, quantity);

        sendFunds(msg.value);
    }
    
    // ===== Mint =====
    function mint(uint8 quantity) external payable maxWalletCheck(quantity) supplyCheck(quantity) callerIsUser {
        require(publicMintStarted && !privateMintStarted, "[Error] Public Mint Not Started");
        require(msg.value < (cost * quantity), "[Error] Public Mint Not Started");

        numberMinted[msg.sender] += quantity;

        revealedState = (totalSupply() + quantity == MAX_SUPPLY);

        _mint(msg.sender, quantity);

        sendFunds(msg.value);
    }

    // ===== Stop Mint =====
    function stopMint() external onlyOwner {
        publicMintStarted = false;
        privateMintStarted = false;
    }

    // ===== Turn on public mint =====
    function turnOnPublicMint() external onlyOwner {
        publicMintStarted = true;
        privateMintStarted = false;
    }

    // ===== Turn on private mint =====
    function turnOnPrivateMint() external onlyOwner {
        publicMintStarted = false;
        privateMintStarted = true;
    }

    // ===== Toggle Revealed State =====
    function toggleReveal() external onlyOwner {
        revealedState = !revealedState;
    }

    // ===== Update Merkle Root =====
    function setMerkleRoot(bytes32 root) external onlyOwner {
        require(root.length > 0, "[Error] Empty Root");
        presaleMerkleRoot = root;
    }

    // ===== Change Mint Price =====
    function setMintPrice(uint256 value) external onlyOwner {
        require(value > 0, "[Error] Value cannot be 0");
        cost = value;
    }

    // ===== Change Base URI =====
    function setBaseURI(string memory newBaseURI) external onlyOwner notNull(newBaseURI){
        baseURI = newBaseURI;
    }

    // ===== Change Not Revealed URI =====
    function setNotRevealedURI(string memory newNotRevealedURI) external onlyOwner notNull(newNotRevealedURI) {
        notRevealedURI = newNotRevealedURI;
    }

    // ===== Change Not Revealed URI =====
    function withdraw() external onlyOwner {
        sendFunds(address(this).balance);
    }

    // ===== Set Start Token ID =====
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    // ===== Set Base URI =====
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    // ===== Set Token URI =====
    function tokenURI(uint256 tokenId) public view virtual override(IERC721A, ERC721A) returns (string memory) {
        string memory currentUri = (revealedState == true) ? baseURI : notRevealedURI;
        return bytes(currentUri).length > 0 ? string(abi.encodePacked(currentUri, tokenId.toString(), ".json")) : "";
    }

    // ===== Split Funds =====
    function sendFunds(uint256 _totalMsgValue) internal {
        (bool s1,) = bgaddress.call{value: (_totalMsgValue * 25) / 100}("");
        (bool s2,) = lpaddress.call{value: (_totalMsgValue * 35) / 100}("");
        (bool s3,) = maddress.call{value: (_totalMsgValue * 20) / 100}("");
        (bool s4,) = sladdress.call{value: (_totalMsgValue * 20) / 100}("");
        require(s1 && s2 && s3 && s4, "[Error] Payment Splitter Failure");
    }

    // ===== Fallbacks =====
    receive() external payable {
        sendFunds(address(this).balance);
    }

    fallback() external payable {
        sendFunds(address(this).balance);
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 10 : Strings.sol
// SPDX-License-Identifier: MIT

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 6 of 10 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 10 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedURI","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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":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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newNotRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMint","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":"toggleReveal","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"turnOnPrivateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"turnOnPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

61010060405273ddc3a364260e619316e0a5de60ef00326e8f164d60805273772cac9bbccd07ef28b1c6da3aec4e62611c43ef60a052734a938b9d5b631f26afbc014f7beb234090350d4060c052738798edf9dc9a46511d9efad6418ead87f3a6624f60e052662386f26fc10000600955600a805462ffffff191690553480156200008957600080fd5b50604051620034b6380380620034b6833981016040819052620000ac9162000331565b6040518060400160405280600981526020016829b2b93ab6a630b13d60b91b8152506040518060400160405280600481526020016329a6212d60e11b8152508160029081620000fc9190620004bd565b5060036200010b8282620004bd565b50506001600055506200011e3362000199565b60008351116200014b5760405162461bcd60e51b815260040162000142906200058d565b60405180910390fd5b60008251116200016f5760405162461bcd60e51b81526004016200014290620005c8565b600b6200017d8482620004bd565b50600c6200018c8382620004bd565b50600d5550620006159050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715620002295762000229620001eb565b6040525050565b60006200023c60405190565b90506200024a828262000201565b919050565b60006001600160401b038211156200026b576200026b620001eb565b601f19601f83011660200192915050565b60005b83811015620002995781810151838201526020016200027f565b83811115620002a9576000848401525b50505050565b6000620002c6620002c0846200024f565b62000230565b905082815260208101848484011115620002e357620002e3600080fd5b620002f08482856200027c565b509392505050565b600082601f8301126200030e576200030e600080fd5b815162000320848260208601620002af565b949350505050565b80515b92915050565b6000806000606084860312156200034b576200034b600080fd5b83516001600160401b03811115620003665762000366600080fd5b6200037486828701620002f8565b93505060208401516001600160401b03811115620003955762000395600080fd5b620003a386828701620002f8565b9250506040620003b68682870162000328565b9150509250925092565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620003eb57607f821691505b602082108103620004005762000400620003c0565b50919050565b60006200032b620004148381565b90565b620004228362000406565b81546008840282811b60001990911b908116901990911617825550505050565b60006200045181848462000417565b505050565b8181101562000475576200046c60008262000442565b60010162000456565b5050565b601f82111562000451576000818152602090206020601f85010481016020851015620004a25750805b620004b66020601f86010483018262000456565b5050505050565b81516001600160401b03811115620004d957620004d9620001eb565b620004e58254620003d6565b620004f282828562000479565b6020601f831160018114620005295760008415620005105750858201515b600019600886021c198116600286021786555062000585565b600085815260208120601f198616915b828110156200055b578885015182556020948501946001909201910162000539565b86831015620005785784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60208082528181019081527f5b4572726f725d2042617365205552492043616e6e6f7420426520426c616e6b6040830152606082016200032b565b602080825281016200032b81602881527f5b4572726f725d204e6f742052657665616c6564205552492043616e6e6f7420602082015267426520426c616e6b60c01b604082015260600190565b60805160a05160c05160e051612e676200064f600039600061083c015260006107a50152600061070e015260006106810152612e676000f3fe6080604052600436106102135760003560e01c8063715018a611610118578063c87b56dd116100a0578063e6c812861161006f578063e6c81286146105b7578063e985e9c5146105cc578063f2c4ce1e14610615578063f2fde38b14610635578063f4a0a5281461065557610223565b8063c87b56dd1461055a578063d55829651461057a578063dfb9eb561461058f578063e5949a65146105a257610223565b806395d89b41116100e757806395d89b41146104c557806399a2557a146104da578063a22cb465146104fa578063b88d4fde1461051a578063c23dc68f1461052d57610223565b8063715018a6146104455780637cb647591461045a5780638462151c1461047a5780638da5cb5b146104a757610223565b80633ccfd60b1161019b5780635b8ad4291161016a5780635b8ad429146103b05780635bbb2177146103c55780636352211e146103f25780636ecd23061461041257806370a082311461042557610223565b80633ccfd60b1461034957806342842e0e1461035e5780634705772f1461037157806355f804b31461039057610223565b8063095ea7b3116101e2578063095ea7b3146102cb57806313faede6146102de57806318160ddd1461030157806323b872dd146103165780633497d1651461032957610223565b806301ffc9a71461022c578063035240051461026257806306fdde031461027c578063081812fc1461029e57610223565b366102235761022147610675565b005b61022147610675565b34801561023857600080fd5b5061024c610247366004611f9b565b610917565b6040516102599190611fc6565b60405180910390f35b34801561026e57600080fd5b50600a5461024c9060ff1681565b34801561028857600080fd5b50610291610969565b6040516102599190612032565b3480156102aa57600080fd5b506102be6102b9366004612054565b6109fb565b604051610259919061208f565b6102216102d93660046120b1565b610a3f565b3480156102ea57600080fd5b506102f460095481565b60405161025991906120f4565b34801561030d57600080fd5b506102f4610adf565b610221610324366004612102565b610aed565b34801561033557600080fd5b50610221610344366004612166565b610c86565b34801561035557600080fd5b50610221610d1b565b61022161036c366004612102565b610d50565b34801561037d57600080fd5b50600a5461024c90610100900460ff1681565b34801561039c57600080fd5b506102216103ab366004612280565b610d70565b3480156103bc57600080fd5b50610221610dc8565b3480156103d157600080fd5b506103e56103e036600461230b565b610e11565b6040516102599190612413565b3480156103fe57600080fd5b506102be61040d366004612054565b610edc565b610221610420366004612166565b610ee7565b34801561043157600080fd5b506102f4610440366004612424565b611095565b34801561045157600080fd5b506102216110e3565b34801561046657600080fd5b50610221610475366004612054565b611117565b34801561048657600080fd5b5061049a610495366004612424565b611146565b6040516102599190612497565b3480156104b357600080fd5b506008546001600160a01b03166102be565b3480156104d157600080fd5b5061029161124e565b3480156104e657600080fd5b5061049a6104f53660046124a8565b61125d565b34801561050657600080fd5b506102216105153660046124f0565b6113e4565b610221610528366004612523565b611453565b34801561053957600080fd5b5061054d610548366004612054565b61149d565b60405161025991906125a1565b34801561056657600080fd5b50610291610575366004612054565b611525565b34801561058657600080fd5b50610221611628565b61022161059d366004612651565b61165f565b3480156105ae57600080fd5b506102216118bc565b3480156105c357600080fd5b506102216118f6565b3480156105d857600080fd5b5061024c6105e736600461269d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561062157600080fd5b50610221610630366004612280565b611931565b34801561064157600080fd5b50610221610650366004612424565b611989565b34801561066157600080fd5b50610221610670366004612054565b6119e5565b60006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660646106ae8460196126e6565b6106b8919061271b565b6040516106c490612732565b60006040518083038185875af1925050503d8060008114610701576040519150601f19603f3d011682016040523d82523d6000602084013e610706565b606091505b5050905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316606484602361074591906126e6565b61074f919061271b565b60405161075b90612732565b60006040518083038185875af1925050503d8060008114610798576040519150601f19603f3d011682016040523d82523d6000602084013e61079d565b606091505b5050905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031660648560146107dc91906126e6565b6107e6919061271b565b6040516107f290612732565b60006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b5050905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316606486601461087391906126e6565b61087d919061271b565b60405161088990612732565b60006040518083038185875af1925050503d80600081146108c6576040519150601f19603f3d011682016040523d82523d6000602084013e6108cb565b606091505b505090508380156108d95750825b80156108e25750815b80156108eb5750805b6109105760405162461bcd60e51b81526004016109079061276f565b60405180910390fd5b5050505050565b60006301ffc9a760e01b6001600160e01b03198316148061094857506380ac58cd60e01b6001600160e01b03198316145b806109635750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461097890612795565b80601f01602080910402602001604051908101604052809291908181526020018280546109a490612795565b80156109f15780601f106109c6576101008083540402835291602001916109f1565b820191906000526020600020905b8154815290600101906020018083116109d457829003601f168201915b5050505050905090565b6000610a0682611a34565b610a23576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a4a82610edc565b9050336001600160a01b03821614610a8357610a6681336105e7565b610a83576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600154600054036000190190565b6000610af882611a69565b9050836001600160a01b0316816001600160a01b031614610b2b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b7857610b5b86336105e7565b610b7857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b9f57604051633a954ecd60e21b815260040160405180910390fd5b8015610baa57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610c3c57600184016000818152600460205260408120549003610c3a576000548114610c3a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610cb05760405162461bcd60e51b8152600401610907906127f3565b80611e618160ff16610cc0610adf565b610cca9190612803565b10610ce75760405162461bcd60e51b81526004016109079061284f565b60008160ff1611610d0a5760405162461bcd60e51b815260040161090790612893565b610d17338360ff16611ad8565b5050565b6008546001600160a01b03163314610d455760405162461bcd60e51b8152600401610907906127f3565b610d4e47610675565b565b610d6b83838360405180602001604052806000815250611453565b505050565b6008546001600160a01b03163314610d9a5760405162461bcd60e51b8152600401610907906127f3565b806000815111610dbc5760405162461bcd60e51b8152600401610907906128d7565b600b610d6b838261297d565b6008546001600160a01b03163314610df25760405162461bcd60e51b8152600401610907906127f3565b600a805462ff0000198116620100009182900460ff1615909102179055565b6060816000816001600160401b03811115610e2e57610e2e612187565b604051908082528060200260200182016040528015610e8057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610e4c5790505b50905060005b828114610ed357610eae868683818110610ea257610ea2612a3f565b9050602002013561149d565b828281518110610ec057610ec0612a3f565b6020908102919091010152600101610e86565b50949350505050565b600061096382611a69565b80600a8160ff16610ef733611095565b610f019190612803565b11158015610f2e5750336000908152600e6020526040902054600a90610f2b9060ff841690612803565b11155b610f4a5760405162461bcd60e51b815260040161090790612a89565b81611e618160ff16610f5a610adf565b610f649190612803565b10610f815760405162461bcd60e51b81526004016109079061284f565b60008160ff1611610fa45760405162461bcd60e51b815260040161090790612893565b323314610fc35760405162461bcd60e51b815260040161090790612ae8565b600a5460ff168015610fdd5750600a54610100900460ff16155b610ff95760405162461bcd60e51b815260040161090790612b2c565b8260ff1660095461100a91906126e6565b34106110285760405162461bcd60e51b815260040161090790612b2c565b336000908152600e60205260408120805460ff8616929061104a908490612803565b90915550611e61905060ff841661105f610adf565b6110699190612803565b600a805462ff0000191691909214620100000217905561108c3360ff8516611ad8565b610d6b34610675565b60006001600160a01b0382166110be576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461110d5760405162461bcd60e51b8152600401610907906127f3565b610d4e6000611bd6565b6008546001600160a01b031633146111415760405162461bcd60e51b8152600401610907906127f3565b600d55565b6060600080600061115685611095565b90506000816001600160401b0381111561117257611172612187565b60405190808252806020026020018201604052801561119b578160200160208202803683370190505b5090506111c860408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611242576111db81611c28565b9150816040015161123a5781516001600160a01b0316156111fb57815194505b876001600160a01b0316856001600160a01b03160361123a578083878060010198508151811061122d5761122d612a3f565b6020026020010181815250505b6001016111cb565b50909695505050505050565b60606003805461097890612795565b606081831061127f57604051631960ccad60e11b815260040160405180910390fd5b60008061128b60005490565b9050600185101561129b57600194505b808411156112a7578093505b60006112b287611095565b9050848610156112d157858503818110156112cb578091505b506112d5565b5060005b6000816001600160401b038111156112ef576112ef612187565b604051908082528060200260200182016040528015611318578160200160208202803683370190505b5090508160000361132e5793506113dd92505050565b60006113398861149d565b90506000816040015161134a575080515b885b88811415801561135c5750848714155b156113d15761136a81611c28565b925082604001516113c95782516001600160a01b03161561138a57825191505b8a6001600160a01b0316826001600160a01b0316036113c957808488806001019950815181106113bc576113bc612a3f565b6020026020010181815250505b60010161134c565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611447908590611fc6565b60405180910390a35050565b61145e848484610aed565b6001600160a01b0383163b156114975761147a84848484611c64565b611497576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608081018252600080825260208201819052918101829052606081019190915260408051608081018252600080825260208201819052918101829052606081019190915260018310806114f657506000548310155b156115015792915050565b61150a83611c28565b905080604001511561151c5792915050565b6113dd83611d50565b60606000600a60029054906101000a900460ff161515600115151461154b57600c61154e565b600b5b805461155990612795565b80601f016020809104026020016040519081016040528092919081815260200182805461158590612795565b80156115d25780601f106115a7576101008083540402835291602001916115d2565b820191906000526020600020905b8154815290600101906020018083116115b557829003601f168201915b5050505050905060008151116115f757604051806020016040528060008152506113dd565b8061160184611d85565b604051602001611612929190612b5e565b6040516020818303038152906040529392505050565b6008546001600160a01b031633146116525760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff19169055565b80600a8160ff1661166f33611095565b6116799190612803565b111580156116a65750336000908152600e6020526040902054600a906116a39060ff841690612803565b11155b6116c25760405162461bcd60e51b815260040161090790612a89565b81611e618160ff166116d2610adf565b6116dc9190612803565b106116f95760405162461bcd60e51b81526004016109079061284f565b60008160ff161161171c5760405162461bcd60e51b815260040161090790612893565b32331461173b5760405162461bcd60e51b815260040161090790612ae8565b600a5460ff161580156117555750600a54610100900460ff165b6117715760405162461bcd60e51b815260040161090790612bbe565b6117ae600d54336040516020016117889190612bf6565b6040516020818303038152906040528051906020012086611e859092919063ffffffff16565b6117ca5760405162461bcd60e51b815260040161090790612c4c565b336000908152600e6020526040812054900361181f576117eb600184612c5c565b60ff166009546117fb91906126e6565b34101561181a5760405162461bcd60e51b815260040161090790612cbe565b61184f565b8260ff1660095461183091906126e6565b34101561184f5760405162461bcd60e51b815260040161090790612cbe565b336000908152600e60205260408120805460ff86169290611871908490612803565b90915550611e61905060ff8416611886610adf565b6118909190612803565b600a805462ff000019169190921462010000021790556118b33360ff8516611ad8565b61149734610675565b6008546001600160a01b031633146118e65760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff19166001179055565b6008546001600160a01b031633146119205760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff1916610100179055565b6008546001600160a01b0316331461195b5760405162461bcd60e51b8152600401610907906127f3565b80600081511161197d5760405162461bcd60e51b8152600401610907906128d7565b600c610d6b838261297d565b6008546001600160a01b031633146119b35760405162461bcd60e51b8152600401610907906127f3565b6001600160a01b0381166119d95760405162461bcd60e51b815260040161090790612d11565b6119e281611bd6565b50565b6008546001600160a01b03163314611a0f5760405162461bcd60e51b8152600401610907906127f3565b60008111611a2f5760405162461bcd60e51b815260040161090790612d55565b600955565b600081600111158015611a48575060005482105b8015610963575050600090815260046020526040902054600160e01b161590565b60008180600111611abf57600054811015611abf5760008181526004602052604081205490600160e01b82169003611abd575b806000036113dd575060001901600081815260046020526040902054611a9c565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490829003611afd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611bac57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611b74565b5081600003611bcd57604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461096390611f32565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c99903390899088908890600401612d65565b6020604051808303816000875af1925050508015611cd4575060408051601f3d908101601f19168201909252611cd191810190612db4565b60015b611d32573d808015611d02576040519150601f19603f3d011682016040523d82523d6000602084013e611d07565b606091505b508051600003611d2a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610963611d8083611a69565b611f32565b606081600003611dac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dd65780611dc081612dd5565b9150611dcf9050600a8361271b565b9150611db0565b6000816001600160401b03811115611df057611df0612187565b6040519080825280601f01601f191660200182016040528015611e1a576020820181803683370190505b5090505b8415611d4857611e2f600183612def565b9150611e3c600a86612df7565b611e47906030612803565b60f81b818381518110611e5c57611e5c612a3f565b60200101906001600160f81b031916908160001a905350611e7e600a8661271b565b9450611e1e565b600081815b8551811015611f27576000868281518110611ea757611ea7612a3f565b60200260200101519050808311611ee8578281604051602001611ecb929190612e0b565b604051602081830303815290604052805190602001209250611f14565b8083604051602001611efb929190612e0b565b6040516020818303038152906040528051906020012092505b5080611f1f81612dd5565b915050611e8a565b509092149392505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981165b81146119e257600080fd5b803561096381611f79565b600060208284031215611fb057611fb0600080fd5b6000611d488484611f90565b8015155b82525050565b602081016109638284611fbc565b60005b83811015611fef578181015183820152602001611fd7565b838111156114975750506000910152565b600061200a825190565b808452602084019350612021818560208601611fd4565b601f01601f19169290920192915050565b602080825281016113dd8184612000565b80611f85565b803561096381612043565b60006020828403121561206957612069600080fd5b6000611d488484612049565b60006001600160a01b038216610963565b611fc081612075565b602081016109638284612086565b611f8581612075565b80356109638161209d565b600080604083850312156120c7576120c7600080fd5b60006120d385856120a6565b92505060206120e485828601612049565b9150509250929050565b80611fc0565b6020810161096382846120ee565b60008060006060848603121561211a5761211a600080fd5b600061212686866120a6565b9350506020612137868287016120a6565b925050604061214886828701612049565b9150509250925092565b60ff8116611f85565b803561096381612152565b60006020828403121561217b5761217b600080fd5b6000611d48848461215b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156121c2576121c2612187565b6040525050565b60006121d460405190565b90506121e0828261219d565b919050565b60006001600160401b038211156121fe576121fe612187565b601f19601f83011660200192915050565b82818337506000910152565b600061222e612229846121e5565b6121c9565b90508281526020810184848401111561224957612249600080fd5b61225484828561220f565b509392505050565b600082601f83011261227057612270600080fd5b8135611d4884826020860161221b565b60006020828403121561229557612295600080fd5b81356001600160401b038111156122ae576122ae600080fd5b611d488482850161225c565b60008083601f8401126122cf576122cf600080fd5b5081356001600160401b038111156122e9576122e9600080fd5b60208301915083602082028301111561230457612304600080fd5b9250929050565b6000806020838503121561232157612321600080fd5b82356001600160401b0381111561233a5761233a600080fd5b612346858286016122ba565b92509250509250929050565b6001600160401b038116611fc0565b62ffffff8116611fc0565b8051608083019061237d8482612086565b5060208201516123906020850182612352565b5060408201516123a36040850182611fbc565b5060608201516114976060850182612361565b60006123c2838361236c565b505060800190565b60006123d4825190565b80845260209384019383018060005b838110156124085781516123f788826123b6565b9750602083019250506001016123e3565b509495945050505050565b602080825281016113dd81846123ca565b60006020828403121561243957612439600080fd5b6000611d4884846120a6565b600061245183836120ee565b505060200190565b6000612463825190565b80845260209384019383018060005b838110156124085781516124868882612445565b975060208301925050600101612472565b602080825281016113dd8184612459565b6000806000606084860312156124c0576124c0600080fd5b60006124cc86866120a6565b935050602061213786828701612049565b801515611f85565b8035610963816124dd565b6000806040838503121561250657612506600080fd5b600061251285856120a6565b92505060206120e4858286016124e5565b6000806000806080858703121561253c5761253c600080fd5b600061254887876120a6565b9450506020612559878288016120a6565b935050604061256a87828801612049565b92505060608501356001600160401b0381111561258957612589600080fd5b6125958782880161225c565b91505092959194509250565b60808101610963828461236c565b60006001600160401b038211156125c8576125c8612187565b5060209081020190565b60006125e0612229846125af565b838152905060208082019084028301858111156125ff576125ff600080fd5b835b8181101561262357806126148882612049565b84525060209283019201612601565b5050509392505050565b600082601f83011261264157612641600080fd5b8135611d488482602086016125d2565b6000806040838503121561266757612667600080fd5b82356001600160401b0381111561268057612680600080fd5b61268c8582860161262d565b92505060206120e48582860161215b565b600080604083850312156126b3576126b3600080fd5b60006126bf85856120a6565b92505060206120e4858286016120a6565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612700576127006126d0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261272a5761272a612705565b500490565b90565b600081610963565b60208082527f5b4572726f725d205061796d656e742053706c6974746572204661696c757265910190815260005b5060200190565b602080825281016109638161273a565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806127a957607f821691505b6020821081036127bb576127bb61277f565b50919050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612768565b60208082528101610963816127c1565b60008219821115612816576128166126d0565b500190565b601881526000602082017f5b4572726f725d204d6178204d696e742052656163686564000000000000000081529150612768565b602080825281016109638161281b565b601f81526000602082017f5b4572726f725d205175616e746974792063616e6e6f74206265207a65726f0081529150612768565b602080825281016109638161285f565b601b81526000602082017f5b4572726f725d204e756c6c2056616c7565205265636569766564000000000081529150612768565b60208082528101610963816128a3565b600061096361272f8381565b6128fc836128e7565b81546008840282811b60001990911b908116901990911617825550505050565b6000610d6b8184846128f3565b81811015610d175761293c60008261291c565b600101612929565b601f821115610d6b576000818152602090206020601f8501048101602085101561296b5750805b6109106020601f860104830182612929565b81516001600160401b0381111561299657612996612187565b6129a08254612795565b6129ab828285612944565b6020601f8311600181146129df57600084156129c75750858201515b600019600886021c1981166002860217865550610c7e565b600085815260208120601f198616915b82811015612a0f57888501518255602094850194600190920191016129ef565b86831015612a2b5784890151600019601f89166008021c191682555b600160028802018855505050505050505050565b634e487b7160e01b600052603260045260246000fd5b601e81526000602082017f5b4572726f725d204d6178205065722057616c6c65742052656163686564000081529150612768565b6020808252810161096381612a55565b602f81526000602082017f5b4572726f725d2046756e6374696f6e2063616e6e6f742062652063616c6c6581526e1908189e48184818dbdb9d1c9858dd608a1b602082015291505b5060400190565b6020808252810161096381612a99565b601f81526000602082017f5b4572726f725d205075626c6963204d696e74204e6f7420537461727465640081529150612768565b6020808252810161096381612af8565b6000612b46825190565b612b54818560208601611fd4565b9290920192915050565b6000612b6a8285612b3c565b9150612b768284612b3c565b64173539b7b760d91b8152915060058201611d48565b60208082527f5b4572726f725d2050726976617465204d696e74204e6f74205374617274656491019081526000612768565b6020808252810161096381612b8c565b60006109638260601b90565b600061096382612bce565b611fc0612bf182612075565b612bda565b6000612c028284612be5565b50601401919050565b602481526000602082017f5b4572726f725d20596f7520617265206e6f74206f6e207468652077686974658152631b1a5cdd60e21b60208201529150612ae1565b6020808252810161096381612c0b565b600060ff8216915060ff83165b925082821015612c7b57612c7b6126d0565b500390565b602181526000602082017f5b4572726f725d204e6f7420656e6f7567682066756e647320737570706c69658152601960fa1b60208201529150612ae1565b6020808252810161096381612c80565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612ae1565b6020808252810161096381612cce565b601981526000602082017f5b4572726f725d2056616c75652063616e6e6f7420626520300000000000000081529150612768565b6020808252810161096381612d21565b60808101612d738287612086565b612d806020830186612086565b612d8d60408301856120ee565b8181036060830152612d9f8184612000565b9695505050505050565b805161096381611f79565b600060208284031215612dc957612dc9600080fd5b6000611d488484612da9565b60006000198203612de857612de86126d0565b5060010190565b600082612c69565b600082612e0657612e06612705565b500690565b6000612e1782856120ee565b602082019150612e2782846120ee565b506020019291505056fea264697066735822122021fa201a699844bbf96ad21ec6487b9da01d5582dc561139bf05951b3bc648b164736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0bff3738e1fdc64debf7dde303d0d21145f278e0b8548d64ce1d1069ffa7c8704000000000000000000000000000000000000000000000000000000000000000f62617365757269676f6573686572650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696835726b6578756871623761376e3578346c78736771326f6a36776b37677334786c3566676b3764347064746232666761796a752e697066732e6e667473746f726167652e6c696e6b2f00000000000000

Deployed Bytecode

0x6080604052600436106102135760003560e01c8063715018a611610118578063c87b56dd116100a0578063e6c812861161006f578063e6c81286146105b7578063e985e9c5146105cc578063f2c4ce1e14610615578063f2fde38b14610635578063f4a0a5281461065557610223565b8063c87b56dd1461055a578063d55829651461057a578063dfb9eb561461058f578063e5949a65146105a257610223565b806395d89b41116100e757806395d89b41146104c557806399a2557a146104da578063a22cb465146104fa578063b88d4fde1461051a578063c23dc68f1461052d57610223565b8063715018a6146104455780637cb647591461045a5780638462151c1461047a5780638da5cb5b146104a757610223565b80633ccfd60b1161019b5780635b8ad4291161016a5780635b8ad429146103b05780635bbb2177146103c55780636352211e146103f25780636ecd23061461041257806370a082311461042557610223565b80633ccfd60b1461034957806342842e0e1461035e5780634705772f1461037157806355f804b31461039057610223565b8063095ea7b3116101e2578063095ea7b3146102cb57806313faede6146102de57806318160ddd1461030157806323b872dd146103165780633497d1651461032957610223565b806301ffc9a71461022c578063035240051461026257806306fdde031461027c578063081812fc1461029e57610223565b366102235761022147610675565b005b61022147610675565b34801561023857600080fd5b5061024c610247366004611f9b565b610917565b6040516102599190611fc6565b60405180910390f35b34801561026e57600080fd5b50600a5461024c9060ff1681565b34801561028857600080fd5b50610291610969565b6040516102599190612032565b3480156102aa57600080fd5b506102be6102b9366004612054565b6109fb565b604051610259919061208f565b6102216102d93660046120b1565b610a3f565b3480156102ea57600080fd5b506102f460095481565b60405161025991906120f4565b34801561030d57600080fd5b506102f4610adf565b610221610324366004612102565b610aed565b34801561033557600080fd5b50610221610344366004612166565b610c86565b34801561035557600080fd5b50610221610d1b565b61022161036c366004612102565b610d50565b34801561037d57600080fd5b50600a5461024c90610100900460ff1681565b34801561039c57600080fd5b506102216103ab366004612280565b610d70565b3480156103bc57600080fd5b50610221610dc8565b3480156103d157600080fd5b506103e56103e036600461230b565b610e11565b6040516102599190612413565b3480156103fe57600080fd5b506102be61040d366004612054565b610edc565b610221610420366004612166565b610ee7565b34801561043157600080fd5b506102f4610440366004612424565b611095565b34801561045157600080fd5b506102216110e3565b34801561046657600080fd5b50610221610475366004612054565b611117565b34801561048657600080fd5b5061049a610495366004612424565b611146565b6040516102599190612497565b3480156104b357600080fd5b506008546001600160a01b03166102be565b3480156104d157600080fd5b5061029161124e565b3480156104e657600080fd5b5061049a6104f53660046124a8565b61125d565b34801561050657600080fd5b506102216105153660046124f0565b6113e4565b610221610528366004612523565b611453565b34801561053957600080fd5b5061054d610548366004612054565b61149d565b60405161025991906125a1565b34801561056657600080fd5b50610291610575366004612054565b611525565b34801561058657600080fd5b50610221611628565b61022161059d366004612651565b61165f565b3480156105ae57600080fd5b506102216118bc565b3480156105c357600080fd5b506102216118f6565b3480156105d857600080fd5b5061024c6105e736600461269d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561062157600080fd5b50610221610630366004612280565b611931565b34801561064157600080fd5b50610221610650366004612424565b611989565b34801561066157600080fd5b50610221610670366004612054565b6119e5565b60006001600160a01b037f000000000000000000000000ddc3a364260e619316e0a5de60ef00326e8f164d1660646106ae8460196126e6565b6106b8919061271b565b6040516106c490612732565b60006040518083038185875af1925050503d8060008114610701576040519150601f19603f3d011682016040523d82523d6000602084013e610706565b606091505b5050905060007f000000000000000000000000772cac9bbccd07ef28b1c6da3aec4e62611c43ef6001600160a01b0316606484602361074591906126e6565b61074f919061271b565b60405161075b90612732565b60006040518083038185875af1925050503d8060008114610798576040519150601f19603f3d011682016040523d82523d6000602084013e61079d565b606091505b5050905060007f0000000000000000000000004a938b9d5b631f26afbc014f7beb234090350d406001600160a01b031660648560146107dc91906126e6565b6107e6919061271b565b6040516107f290612732565b60006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b5050905060007f0000000000000000000000008798edf9dc9a46511d9efad6418ead87f3a6624f6001600160a01b0316606486601461087391906126e6565b61087d919061271b565b60405161088990612732565b60006040518083038185875af1925050503d80600081146108c6576040519150601f19603f3d011682016040523d82523d6000602084013e6108cb565b606091505b505090508380156108d95750825b80156108e25750815b80156108eb5750805b6109105760405162461bcd60e51b81526004016109079061276f565b60405180910390fd5b5050505050565b60006301ffc9a760e01b6001600160e01b03198316148061094857506380ac58cd60e01b6001600160e01b03198316145b806109635750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461097890612795565b80601f01602080910402602001604051908101604052809291908181526020018280546109a490612795565b80156109f15780601f106109c6576101008083540402835291602001916109f1565b820191906000526020600020905b8154815290600101906020018083116109d457829003601f168201915b5050505050905090565b6000610a0682611a34565b610a23576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a4a82610edc565b9050336001600160a01b03821614610a8357610a6681336105e7565b610a83576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600154600054036000190190565b6000610af882611a69565b9050836001600160a01b0316816001600160a01b031614610b2b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b7857610b5b86336105e7565b610b7857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b9f57604051633a954ecd60e21b815260040160405180910390fd5b8015610baa57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610c3c57600184016000818152600460205260408120549003610c3a576000548114610c3a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610cb05760405162461bcd60e51b8152600401610907906127f3565b80611e618160ff16610cc0610adf565b610cca9190612803565b10610ce75760405162461bcd60e51b81526004016109079061284f565b60008160ff1611610d0a5760405162461bcd60e51b815260040161090790612893565b610d17338360ff16611ad8565b5050565b6008546001600160a01b03163314610d455760405162461bcd60e51b8152600401610907906127f3565b610d4e47610675565b565b610d6b83838360405180602001604052806000815250611453565b505050565b6008546001600160a01b03163314610d9a5760405162461bcd60e51b8152600401610907906127f3565b806000815111610dbc5760405162461bcd60e51b8152600401610907906128d7565b600b610d6b838261297d565b6008546001600160a01b03163314610df25760405162461bcd60e51b8152600401610907906127f3565b600a805462ff0000198116620100009182900460ff1615909102179055565b6060816000816001600160401b03811115610e2e57610e2e612187565b604051908082528060200260200182016040528015610e8057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610e4c5790505b50905060005b828114610ed357610eae868683818110610ea257610ea2612a3f565b9050602002013561149d565b828281518110610ec057610ec0612a3f565b6020908102919091010152600101610e86565b50949350505050565b600061096382611a69565b80600a8160ff16610ef733611095565b610f019190612803565b11158015610f2e5750336000908152600e6020526040902054600a90610f2b9060ff841690612803565b11155b610f4a5760405162461bcd60e51b815260040161090790612a89565b81611e618160ff16610f5a610adf565b610f649190612803565b10610f815760405162461bcd60e51b81526004016109079061284f565b60008160ff1611610fa45760405162461bcd60e51b815260040161090790612893565b323314610fc35760405162461bcd60e51b815260040161090790612ae8565b600a5460ff168015610fdd5750600a54610100900460ff16155b610ff95760405162461bcd60e51b815260040161090790612b2c565b8260ff1660095461100a91906126e6565b34106110285760405162461bcd60e51b815260040161090790612b2c565b336000908152600e60205260408120805460ff8616929061104a908490612803565b90915550611e61905060ff841661105f610adf565b6110699190612803565b600a805462ff0000191691909214620100000217905561108c3360ff8516611ad8565b610d6b34610675565b60006001600160a01b0382166110be576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461110d5760405162461bcd60e51b8152600401610907906127f3565b610d4e6000611bd6565b6008546001600160a01b031633146111415760405162461bcd60e51b8152600401610907906127f3565b600d55565b6060600080600061115685611095565b90506000816001600160401b0381111561117257611172612187565b60405190808252806020026020018201604052801561119b578160200160208202803683370190505b5090506111c860408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611242576111db81611c28565b9150816040015161123a5781516001600160a01b0316156111fb57815194505b876001600160a01b0316856001600160a01b03160361123a578083878060010198508151811061122d5761122d612a3f565b6020026020010181815250505b6001016111cb565b50909695505050505050565b60606003805461097890612795565b606081831061127f57604051631960ccad60e11b815260040160405180910390fd5b60008061128b60005490565b9050600185101561129b57600194505b808411156112a7578093505b60006112b287611095565b9050848610156112d157858503818110156112cb578091505b506112d5565b5060005b6000816001600160401b038111156112ef576112ef612187565b604051908082528060200260200182016040528015611318578160200160208202803683370190505b5090508160000361132e5793506113dd92505050565b60006113398861149d565b90506000816040015161134a575080515b885b88811415801561135c5750848714155b156113d15761136a81611c28565b925082604001516113c95782516001600160a01b03161561138a57825191505b8a6001600160a01b0316826001600160a01b0316036113c957808488806001019950815181106113bc576113bc612a3f565b6020026020010181815250505b60010161134c565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611447908590611fc6565b60405180910390a35050565b61145e848484610aed565b6001600160a01b0383163b156114975761147a84848484611c64565b611497576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608081018252600080825260208201819052918101829052606081019190915260408051608081018252600080825260208201819052918101829052606081019190915260018310806114f657506000548310155b156115015792915050565b61150a83611c28565b905080604001511561151c5792915050565b6113dd83611d50565b60606000600a60029054906101000a900460ff161515600115151461154b57600c61154e565b600b5b805461155990612795565b80601f016020809104026020016040519081016040528092919081815260200182805461158590612795565b80156115d25780601f106115a7576101008083540402835291602001916115d2565b820191906000526020600020905b8154815290600101906020018083116115b557829003601f168201915b5050505050905060008151116115f757604051806020016040528060008152506113dd565b8061160184611d85565b604051602001611612929190612b5e565b6040516020818303038152906040529392505050565b6008546001600160a01b031633146116525760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff19169055565b80600a8160ff1661166f33611095565b6116799190612803565b111580156116a65750336000908152600e6020526040902054600a906116a39060ff841690612803565b11155b6116c25760405162461bcd60e51b815260040161090790612a89565b81611e618160ff166116d2610adf565b6116dc9190612803565b106116f95760405162461bcd60e51b81526004016109079061284f565b60008160ff161161171c5760405162461bcd60e51b815260040161090790612893565b32331461173b5760405162461bcd60e51b815260040161090790612ae8565b600a5460ff161580156117555750600a54610100900460ff165b6117715760405162461bcd60e51b815260040161090790612bbe565b6117ae600d54336040516020016117889190612bf6565b6040516020818303038152906040528051906020012086611e859092919063ffffffff16565b6117ca5760405162461bcd60e51b815260040161090790612c4c565b336000908152600e6020526040812054900361181f576117eb600184612c5c565b60ff166009546117fb91906126e6565b34101561181a5760405162461bcd60e51b815260040161090790612cbe565b61184f565b8260ff1660095461183091906126e6565b34101561184f5760405162461bcd60e51b815260040161090790612cbe565b336000908152600e60205260408120805460ff86169290611871908490612803565b90915550611e61905060ff8416611886610adf565b6118909190612803565b600a805462ff000019169190921462010000021790556118b33360ff8516611ad8565b61149734610675565b6008546001600160a01b031633146118e65760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff19166001179055565b6008546001600160a01b031633146119205760405162461bcd60e51b8152600401610907906127f3565b600a805461ffff1916610100179055565b6008546001600160a01b0316331461195b5760405162461bcd60e51b8152600401610907906127f3565b80600081511161197d5760405162461bcd60e51b8152600401610907906128d7565b600c610d6b838261297d565b6008546001600160a01b031633146119b35760405162461bcd60e51b8152600401610907906127f3565b6001600160a01b0381166119d95760405162461bcd60e51b815260040161090790612d11565b6119e281611bd6565b50565b6008546001600160a01b03163314611a0f5760405162461bcd60e51b8152600401610907906127f3565b60008111611a2f5760405162461bcd60e51b815260040161090790612d55565b600955565b600081600111158015611a48575060005482105b8015610963575050600090815260046020526040902054600160e01b161590565b60008180600111611abf57600054811015611abf5760008181526004602052604081205490600160e01b82169003611abd575b806000036113dd575060001901600081815260046020526040902054611a9c565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490829003611afd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611bac57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611b74565b5081600003611bcd57604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461096390611f32565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c99903390899088908890600401612d65565b6020604051808303816000875af1925050508015611cd4575060408051601f3d908101601f19168201909252611cd191810190612db4565b60015b611d32573d808015611d02576040519150601f19603f3d011682016040523d82523d6000602084013e611d07565b606091505b508051600003611d2a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610963611d8083611a69565b611f32565b606081600003611dac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dd65780611dc081612dd5565b9150611dcf9050600a8361271b565b9150611db0565b6000816001600160401b03811115611df057611df0612187565b6040519080825280601f01601f191660200182016040528015611e1a576020820181803683370190505b5090505b8415611d4857611e2f600183612def565b9150611e3c600a86612df7565b611e47906030612803565b60f81b818381518110611e5c57611e5c612a3f565b60200101906001600160f81b031916908160001a905350611e7e600a8661271b565b9450611e1e565b600081815b8551811015611f27576000868281518110611ea757611ea7612a3f565b60200260200101519050808311611ee8578281604051602001611ecb929190612e0b565b604051602081830303815290604052805190602001209250611f14565b8083604051602001611efb929190612e0b565b6040516020818303038152906040528051906020012092505b5080611f1f81612dd5565b915050611e8a565b509092149392505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981165b81146119e257600080fd5b803561096381611f79565b600060208284031215611fb057611fb0600080fd5b6000611d488484611f90565b8015155b82525050565b602081016109638284611fbc565b60005b83811015611fef578181015183820152602001611fd7565b838111156114975750506000910152565b600061200a825190565b808452602084019350612021818560208601611fd4565b601f01601f19169290920192915050565b602080825281016113dd8184612000565b80611f85565b803561096381612043565b60006020828403121561206957612069600080fd5b6000611d488484612049565b60006001600160a01b038216610963565b611fc081612075565b602081016109638284612086565b611f8581612075565b80356109638161209d565b600080604083850312156120c7576120c7600080fd5b60006120d385856120a6565b92505060206120e485828601612049565b9150509250929050565b80611fc0565b6020810161096382846120ee565b60008060006060848603121561211a5761211a600080fd5b600061212686866120a6565b9350506020612137868287016120a6565b925050604061214886828701612049565b9150509250925092565b60ff8116611f85565b803561096381612152565b60006020828403121561217b5761217b600080fd5b6000611d48848461215b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156121c2576121c2612187565b6040525050565b60006121d460405190565b90506121e0828261219d565b919050565b60006001600160401b038211156121fe576121fe612187565b601f19601f83011660200192915050565b82818337506000910152565b600061222e612229846121e5565b6121c9565b90508281526020810184848401111561224957612249600080fd5b61225484828561220f565b509392505050565b600082601f83011261227057612270600080fd5b8135611d4884826020860161221b565b60006020828403121561229557612295600080fd5b81356001600160401b038111156122ae576122ae600080fd5b611d488482850161225c565b60008083601f8401126122cf576122cf600080fd5b5081356001600160401b038111156122e9576122e9600080fd5b60208301915083602082028301111561230457612304600080fd5b9250929050565b6000806020838503121561232157612321600080fd5b82356001600160401b0381111561233a5761233a600080fd5b612346858286016122ba565b92509250509250929050565b6001600160401b038116611fc0565b62ffffff8116611fc0565b8051608083019061237d8482612086565b5060208201516123906020850182612352565b5060408201516123a36040850182611fbc565b5060608201516114976060850182612361565b60006123c2838361236c565b505060800190565b60006123d4825190565b80845260209384019383018060005b838110156124085781516123f788826123b6565b9750602083019250506001016123e3565b509495945050505050565b602080825281016113dd81846123ca565b60006020828403121561243957612439600080fd5b6000611d4884846120a6565b600061245183836120ee565b505060200190565b6000612463825190565b80845260209384019383018060005b838110156124085781516124868882612445565b975060208301925050600101612472565b602080825281016113dd8184612459565b6000806000606084860312156124c0576124c0600080fd5b60006124cc86866120a6565b935050602061213786828701612049565b801515611f85565b8035610963816124dd565b6000806040838503121561250657612506600080fd5b600061251285856120a6565b92505060206120e4858286016124e5565b6000806000806080858703121561253c5761253c600080fd5b600061254887876120a6565b9450506020612559878288016120a6565b935050604061256a87828801612049565b92505060608501356001600160401b0381111561258957612589600080fd5b6125958782880161225c565b91505092959194509250565b60808101610963828461236c565b60006001600160401b038211156125c8576125c8612187565b5060209081020190565b60006125e0612229846125af565b838152905060208082019084028301858111156125ff576125ff600080fd5b835b8181101561262357806126148882612049565b84525060209283019201612601565b5050509392505050565b600082601f83011261264157612641600080fd5b8135611d488482602086016125d2565b6000806040838503121561266757612667600080fd5b82356001600160401b0381111561268057612680600080fd5b61268c8582860161262d565b92505060206120e48582860161215b565b600080604083850312156126b3576126b3600080fd5b60006126bf85856120a6565b92505060206120e4858286016120a6565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612700576127006126d0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261272a5761272a612705565b500490565b90565b600081610963565b60208082527f5b4572726f725d205061796d656e742053706c6974746572204661696c757265910190815260005b5060200190565b602080825281016109638161273a565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806127a957607f821691505b6020821081036127bb576127bb61277f565b50919050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612768565b60208082528101610963816127c1565b60008219821115612816576128166126d0565b500190565b601881526000602082017f5b4572726f725d204d6178204d696e742052656163686564000000000000000081529150612768565b602080825281016109638161281b565b601f81526000602082017f5b4572726f725d205175616e746974792063616e6e6f74206265207a65726f0081529150612768565b602080825281016109638161285f565b601b81526000602082017f5b4572726f725d204e756c6c2056616c7565205265636569766564000000000081529150612768565b60208082528101610963816128a3565b600061096361272f8381565b6128fc836128e7565b81546008840282811b60001990911b908116901990911617825550505050565b6000610d6b8184846128f3565b81811015610d175761293c60008261291c565b600101612929565b601f821115610d6b576000818152602090206020601f8501048101602085101561296b5750805b6109106020601f860104830182612929565b81516001600160401b0381111561299657612996612187565b6129a08254612795565b6129ab828285612944565b6020601f8311600181146129df57600084156129c75750858201515b600019600886021c1981166002860217865550610c7e565b600085815260208120601f198616915b82811015612a0f57888501518255602094850194600190920191016129ef565b86831015612a2b5784890151600019601f89166008021c191682555b600160028802018855505050505050505050565b634e487b7160e01b600052603260045260246000fd5b601e81526000602082017f5b4572726f725d204d6178205065722057616c6c65742052656163686564000081529150612768565b6020808252810161096381612a55565b602f81526000602082017f5b4572726f725d2046756e6374696f6e2063616e6e6f742062652063616c6c6581526e1908189e48184818dbdb9d1c9858dd608a1b602082015291505b5060400190565b6020808252810161096381612a99565b601f81526000602082017f5b4572726f725d205075626c6963204d696e74204e6f7420537461727465640081529150612768565b6020808252810161096381612af8565b6000612b46825190565b612b54818560208601611fd4565b9290920192915050565b6000612b6a8285612b3c565b9150612b768284612b3c565b64173539b7b760d91b8152915060058201611d48565b60208082527f5b4572726f725d2050726976617465204d696e74204e6f74205374617274656491019081526000612768565b6020808252810161096381612b8c565b60006109638260601b90565b600061096382612bce565b611fc0612bf182612075565b612bda565b6000612c028284612be5565b50601401919050565b602481526000602082017f5b4572726f725d20596f7520617265206e6f74206f6e207468652077686974658152631b1a5cdd60e21b60208201529150612ae1565b6020808252810161096381612c0b565b600060ff8216915060ff83165b925082821015612c7b57612c7b6126d0565b500390565b602181526000602082017f5b4572726f725d204e6f7420656e6f7567682066756e647320737570706c69658152601960fa1b60208201529150612ae1565b6020808252810161096381612c80565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612ae1565b6020808252810161096381612cce565b601981526000602082017f5b4572726f725d2056616c75652063616e6e6f7420626520300000000000000081529150612768565b6020808252810161096381612d21565b60808101612d738287612086565b612d806020830186612086565b612d8d60408301856120ee565b8181036060830152612d9f8184612000565b9695505050505050565b805161096381611f79565b600060208284031215612dc957612dc9600080fd5b6000611d488484612da9565b60006000198203612de857612de86126d0565b5060010190565b600082612c69565b600082612e0657612e06612705565b500690565b6000612e1782856120ee565b602082019150612e2782846120ee565b506020019291505056fea264697066735822122021fa201a699844bbf96ad21ec6487b9da01d5582dc561139bf05951b3bc648b164736f6c634300080f0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0bff3738e1fdc64debf7dde303d0d21145f278e0b8548d64ce1d1069ffa7c8704000000000000000000000000000000000000000000000000000000000000000f62617365757269676f6573686572650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696835726b6578756871623761376e3578346c78736771326f6a36776b37677334786c3566676b3764347064746232666761796a752e697066732e6e667473746f726167652e6c696e6b2f00000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): baseurigoeshere
Arg [1] : _initNotRevealedURI (string): https://bafybeih5rkexuhqb7a7n5x4lxsgq2oj6wk7gs4xl5fgk7d4pdtb2fgayju.ipfs.nftstorage.link/
Arg [2] : _root (bytes32): 0xbff3738e1fdc64debf7dde303d0d21145f278e0b8548d64ce1d1069ffa7c8704

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : bff3738e1fdc64debf7dde303d0d21145f278e0b8548d64ce1d1069ffa7c8704
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 62617365757269676f6573686572650000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [6] : 68747470733a2f2f626166796265696835726b6578756871623761376e357834
Arg [7] : 6c78736771326f6a36776b37677334786c3566676b3764347064746232666761
Arg [8] : 796a752e697066732e6e667473746f726167652e6c696e6b2f00000000000000


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.