ETH Price: $2,689.96 (-3.26%)

Rose Invasion (RoseInvasion)
 

Overview

TokenID

791

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
RoseInvasion

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : RoseInvasion.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "erc721a/contracts/ERC721A.sol";


contract RoseInvasion is Ownable, AccessControl, ReentrancyGuard, ERC721A {

    event Mint(address indexed account, uint256 indexed num);

    enum PreSaleIdentity {
        NONE,
        DOUBLELIST,
        WHITELIST
    }

    uint256 public maxSupply;
    uint256 public immutable maxPreSaleSupply;

    uint256 public preSaleMinted;

    bytes32 public merkleRootForDoublelist;
    bytes32 public merkleRootForWhitelist;

    address public benefit;

    uint256 public maxOneAccountForDoublelistMint;
    uint256 public maxOneAccountForWhitelistMint;
    uint256 public maxOneAccountForPublicMint;

    mapping(address => uint256) public amountNFTsDoubleMinted;
    mapping(address => uint256) public amountNFTsWhiteMinted;
    mapping(address => uint256) public amountNFTsPublicMinted;

    uint256 public doublelistSalePrice;
    uint256 public whitelistSalePrice;
    uint256 public publicSalePrice;

    uint256 public preMintStartTime;
    uint256 public pubMintStartTime;
    uint256 public mintEndTime;

    string private _internalBaseURI;
    string private _revealingURI;

    constructor(string memory name_, string memory symbol_, string memory revealingURI_, address benefit_) ERC721A(name_, symbol_) {

        maxSupply = 2222;
        maxPreSaleSupply = 2000;

        maxOneAccountForDoublelistMint = 2;
        maxOneAccountForWhitelistMint = 1;
        maxOneAccountForPublicMint = 1;

        doublelistSalePrice = 0.1 ether;
        whitelistSalePrice = 0.1 ether;
        publicSalePrice = 0.1 ether;

        preMintStartTime = 1662177600;
        pubMintStartTime = 1662264000;
        mintEndTime = 1662350400;

        benefit = benefit_;
        _revealingURI = revealingURI_;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function preSaleMint(PreSaleIdentity identify_, uint256 num_, bytes32[] calldata proof_) external payable notContract nonReentrant {
        require(block.timestamp >= preMintStartTime, "not time");
        require(block.timestamp <= pubMintStartTime, "pre sale end");
        require(identify_ == PreSaleIdentity.WHITELIST || identify_ == PreSaleIdentity.DOUBLELIST, "identity error");
        bytes32 merkleRoot = bytes32(0);
        uint256 numOfMinted = 0;
        uint256 numOfMaxMint = 0;
        uint256 mintPrice = 0;
        if (identify_ == PreSaleIdentity.DOUBLELIST) {
            require(num_ == maxOneAccountForDoublelistMint);
            merkleRoot = merkleRootForDoublelist;
            numOfMinted = amountNFTsDoubleMinted[_msgSender()];
            numOfMaxMint = maxOneAccountForDoublelistMint;
            mintPrice = doublelistSalePrice;
        } else if (identify_ == PreSaleIdentity.WHITELIST) {
            require(num_ == maxOneAccountForWhitelistMint);
            merkleRoot = merkleRootForWhitelist;
            numOfMinted = amountNFTsWhiteMinted[_msgSender()];
            numOfMaxMint = maxOneAccountForWhitelistMint;
            mintPrice = whitelistSalePrice;
        } else {
            revert();
        }
        require(numOfMinted + num_ <= numOfMaxMint, "over amount");
        require(totalSupply() + num_ <= maxSupply, "over supply");
        require(preSaleMinted + num_ <= maxPreSaleSupply, "over pre sale supply");
        require(isLegalListed(proof_, merkleRoot, _msgSender()), "not in list");
        require(msg.value >= mintPrice * num_, "insufficient funds");

        if (identify_ == PreSaleIdentity.DOUBLELIST) {
            amountNFTsDoubleMinted[_msgSender()] += num_;
        } else if (identify_ == PreSaleIdentity.WHITELIST) {
            amountNFTsWhiteMinted[_msgSender()] += num_;
        } else {
            revert();
        }

        preSaleMinted += num_;
        _internalMint(msg.sender, num_);
        refundIfOver(mintPrice * num_);
        payable(benefit).transfer(mintPrice * num_);
    }

    function publicMint(uint256 num_) external payable notContract nonReentrant {
        require(block.timestamp >= pubMintStartTime && block.timestamp <= mintEndTime, "not time");
        require(num_ != 0, "num cant be zero");
        require(totalSupply() + num_ <= maxSupply, "over amount");
        require(amountNFTsPublicMinted[_msgSender()] + num_ <= maxOneAccountForPublicMint, "over limit");
        require(msg.value >= publicSalePrice * num_, "insufficient funds");

        amountNFTsPublicMinted[_msgSender()] += num_;

        _internalMint(msg.sender, num_);
        refundIfOver(publicSalePrice * num_);
        payable(benefit).transfer(publicSalePrice * num_);
    }

    function claim(address to, uint256 num) external onlyOwner {
        require(totalSupply() + num <= maxSupply, "over amount");
        _internalMint(to, num);
    }

    function _internalMint(address to, uint256 num) internal {
        super._safeMint(to, num);
        emit Mint(to, num);
    }

    function setMerkleRoots(bytes32 merkleRootForDoublelist_, bytes32 merkleRootForWhitelist_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        merkleRootForDoublelist = merkleRootForDoublelist_;
        merkleRootForWhitelist = merkleRootForWhitelist_;
    }

    function setMintTimes(uint256 preMintStartTime_, uint256 pubMintStartTime_, uint256 mintEndTime_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(preMintStartTime_ < pubMintStartTime_ && pubMintStartTime_ < mintEndTime_);
        preMintStartTime = preMintStartTime_;
        pubMintStartTime = pubMintStartTime_;
        mintEndTime = mintEndTime_;
    }

    function setMintPrices(uint256 doublelistSalePrice_, uint256 whitelistSalePrice_, uint256 publicSalePrice_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        doublelistSalePrice = doublelistSalePrice_;
        whitelistSalePrice = whitelistSalePrice_;
        publicSalePrice = publicSalePrice_;
    }

    function setNumsToMint(uint256 maxOneAccountForDoublelistMint_, uint256 maxOneAccountForWhitelistMint_, uint256 maxOneAccountForpublicMint_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        maxOneAccountForDoublelistMint = maxOneAccountForDoublelistMint_;
        maxOneAccountForWhitelistMint = maxOneAccountForWhitelistMint_;
        maxOneAccountForPublicMint = maxOneAccountForpublicMint_;
    }

    function setRevealingURI(string memory revealingURI_) external onlyOwner {
        _revealingURI = revealingURI_;
    }

    function setBaseURI(string memory internalBaseURI_) external onlyOwner {
        _internalBaseURI = internalBaseURI_;
    }

    function burnLeft() external onlyOwner {
        maxSupply = totalSupply();
    }

    function grantAdminRole(address account) external onlyOwner {
        _grantRole(DEFAULT_ADMIN_ROLE, account);
    }

    function revokeAdminRole(address account) external onlyOwner {
        _revokeRole(DEFAULT_ADMIN_ROLE, account);
    }

    function refundIfOver(uint256 price) private {
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    function claimAll() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function setBenefit(address _benefit) external onlyOwner {
        benefit = _benefit;
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "query for nonexistent token");
        if (bytes(_baseURI()).length == 0) {
            return _revealingURI;
        }
        return super.tokenURI(tokenId);
    }

    function isLegalListed(
        bytes32[] calldata proof_,
        bytes32 merkleRoot_,
        address account_
    ) private pure returns (bool) {
        return MerkleProof.verify(proof_, merkleRoot_, leaf(account_));
    }

    function leaf(address account_) private pure returns (bytes32) {
        return keccak256(abi.encodePacked(account_));
    }

    function supportsInterface(bytes4 interfaceId) public view override(AccessControl, ERC721A) returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    modifier notContract() {
        uint256 size;
        address addr = msg.sender;
        assembly {
            size := extcodesize(addr)
        }
        require(size == 0, "contract not allowed");
        require(msg.sender == tx.origin, "proxy contract not allowed");
        _;
    }

    function tokensOfOwner(address owner)
        external
        view
        returns (uint256[] memory)
    {
        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 2 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// 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();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](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 3 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// 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 {
    // Reference type for token approval.
    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 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 {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _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]`.
        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 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 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 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.
            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`.
                )

                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 0x80 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // 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 4 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 6 of 12 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 9 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 10 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 11 of 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 12 of 12 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"revealingURI_","type":"string"},{"internalType":"address","name":"benefit_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"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":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"num","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsDoubleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsWhiteMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"benefit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLeft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doublelistSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOneAccountForDoublelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOneAccountForPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOneAccountForWhitelistMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPreSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootForDoublelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootForWhitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum RoseInvasion.PreSaleIdentity","name":"identify_","type":"uint8"},{"internalType":"uint256","name":"num_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num_","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"internalBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_benefit","type":"address"}],"name":"setBenefit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRootForDoublelist_","type":"bytes32"},{"internalType":"bytes32","name":"merkleRootForWhitelist_","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"doublelistSalePrice_","type":"uint256"},{"internalType":"uint256","name":"whitelistSalePrice_","type":"uint256"},{"internalType":"uint256","name":"publicSalePrice_","type":"uint256"}],"name":"setMintPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preMintStartTime_","type":"uint256"},{"internalType":"uint256","name":"pubMintStartTime_","type":"uint256"},{"internalType":"uint256","name":"mintEndTime_","type":"uint256"}],"name":"setMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOneAccountForDoublelistMint_","type":"uint256"},{"internalType":"uint256","name":"maxOneAccountForWhitelistMint_","type":"uint256"},{"internalType":"uint256","name":"maxOneAccountForpublicMint_","type":"uint256"}],"name":"setNumsToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"revealingURI_","type":"string"}],"name":"setRevealingURI","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":[{"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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b506040516200318738038062003187833981016040819052620000349162000365565b838362000041336200010a565b600160025581516200005b906005906020850190620001f2565b50805162000071906006906020840190620001f2565b50600060035550506108ae600b556107d060805260026010556001601181905560125567016345785d8a000060168190556017819055601855636312d14060195563631422c0601a556363157440601b55600f80546001600160a01b0319166001600160a01b0383161790558151620000f290601d906020850190620001f2565b50620001006000336200015a565b5050505062000455565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200016682826200016a565b5050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620001665760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b828054620002009062000418565b90600052602060002090601f0160209004810192826200022457600085556200026f565b82601f106200023f57805160ff19168380011785556200026f565b828001600101855582156200026f579182015b828111156200026f57825182559160200191906001019062000252565b506200027d92915062000281565b5090565b5b808211156200027d576000815560010162000282565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002c057600080fd5b81516001600160401b0380821115620002dd57620002dd62000298565b604051601f8301601f19908116603f0116810190828211818310171562000308576200030862000298565b816040528381526020925086838588010111156200032557600080fd5b600091505b838210156200034957858201830151818301840152908201906200032a565b838211156200035b5760008385830101525b9695505050505050565b600080600080608085870312156200037c57600080fd5b84516001600160401b03808211156200039457600080fd5b620003a288838901620002ae565b95506020870151915080821115620003b957600080fd5b620003c788838901620002ae565b94506040870151915080821115620003de57600080fd5b50620003ed87828801620002ae565b606087015190935090506001600160a01b03811681146200040d57600080fd5b939692955090935050565b600181811c908216806200042d57607f821691505b602082108114156200044f57634e487b7160e01b600052602260045260246000fd5b50919050565b608051612d0f620004786000396000818161097d01526114e40152612d0f6000f3fe60806040526004361061036b5760003560e01c80638da5cb5b116101c6578063bd031d01116100f7578063d5abeb0111610095578063e985e9c51161006f578063e985e9c51461099f578063ea9ca21f146109e8578063eb46fc4414610a08578063f2fde38b14610a3557600080fd5b8063d5abeb0114610935578063def601261461094b578063e0a59e2c1461096b57600080fd5b8063c87b56dd116100d1578063c87b56dd146108c0578063d1058e59146108e0578063d3e96658146108f5578063d547741f1461091557600080fd5b8063bd031d0114610874578063c11732501461088a578063c634b78e146108a057600080fd5b8063a217fddf11610164578063a3d814da1161013e578063a3d814da146107f2578063aa4be5bc1461081f578063aad3ec9614610834578063b88d4fde1461085457600080fd5b8063a217fddf146107a7578063a22cb465146107bc578063a32d3ac4146107dc57600080fd5b806395d89b41116101a057806395d89b411461073c5780639a19c7b0146107515780639a48eb51146107715780639b6860c81461079157600080fd5b80638da5cb5b146106de57806391d14854146106fc57806393f63e701461071c57600080fd5b8063335886b7116102a0578063699c2deb1161023e578063715018a611610218578063715018a614610673578063717a002b1461068857806378b398c71461069e5780638462151c146106b157600080fd5b8063699c2deb1461061d5780636fb081a41461063357806370a082311461065357600080fd5b806355bfb9951161027a57806355bfb9951461059a57806355f804b3146105c757806362f4fb2d146105e75780636352211e146105fd57600080fd5b8063335886b71461054457806336568abe1461055a57806342842e0e1461057a57600080fd5b806323b872dd1161030d5780632db11544116102e75780632db11544146104db5780632e5113b7146104ee5780632f2ff15d1461050e578063329072841461052e57600080fd5b806323b872dd14610474578063248a9ca3146104945780632687d340146104c557600080fd5b8063081812fc11610349578063081812fc146103eb578063095ea7b31461042357806312f33f051461044557806318160ddd1461045b57600080fd5b806301ffc9a71461037057806304a7ff6b146103a557806306fdde03146103c9575b600080fd5b34801561037c57600080fd5b5061039061038b366004612682565b610a55565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103bb60125481565b60405190815260200161039c565b3480156103d557600080fd5b506103de610a80565b60405161039c91906126f7565b3480156103f757600080fd5b5061040b61040636600461270a565b610b12565b6040516001600160a01b03909116815260200161039c565b34801561042f57600080fd5b5061044361043e36600461273f565b610b56565b005b34801561045157600080fd5b506103bb600d5481565b34801561046757600080fd5b50600454600354036103bb565b34801561048057600080fd5b5061044361048f366004612769565b610bf6565b3480156104a057600080fd5b506103bb6104af36600461270a565b6000908152600160208190526040909120015490565b3480156104d157600080fd5b506103bb600c5481565b6104436104e936600461270a565b610d87565b3480156104fa57600080fd5b50600f5461040b906001600160a01b031681565b34801561051a57600080fd5b506104436105293660046127a5565b611082565b34801561053a57600080fd5b506103bb601a5481565b34801561055057600080fd5b506103bb600e5481565b34801561056657600080fd5b506104436105753660046127a5565b6110ad565b34801561058657600080fd5b50610443610595366004612769565b61112b565b3480156105a657600080fd5b506103bb6105b53660046127d1565b60136020526000908152604090205481565b3480156105d357600080fd5b506104436105e2366004612878565b611146565b3480156105f357600080fd5b506103bb60195481565b34801561060957600080fd5b5061040b61061836600461270a565b611161565b34801561062957600080fd5b506103bb60105481565b34801561063f57600080fd5b5061044361064e3660046128c1565b61116c565b34801561065f57600080fd5b506103bb61066e3660046127d1565b611186565b34801561067f57600080fd5b506104436111d5565b34801561069457600080fd5b506103bb601b5481565b6104436106ac3660046128ed565b6111e9565b3480156106bd57600080fd5b506106d16106cc3660046127d1565b6116ec565b60405161039c919061297d565b3480156106ea57600080fd5b506000546001600160a01b031661040b565b34801561070857600080fd5b506103906107173660046127a5565b611809565b34801561072857600080fd5b506104436107373660046127d1565b611834565b34801561074857600080fd5b506103de61185e565b34801561075d57600080fd5b5061044361076c3660046127d1565b61186d565b34801561077d57600080fd5b5061044361078c3660046129b5565b611883565b34801561079d57600080fd5b506103bb60185481565b3480156107b357600080fd5b506103bb600081565b3480156107c857600080fd5b506104436107d73660046129d7565b61189a565b3480156107e857600080fd5b506103bb60165481565b3480156107fe57600080fd5b506103bb61080d3660046127d1565b60156020526000908152604090205481565b34801561082b57600080fd5b50610443611930565b34801561084057600080fd5b5061044361084f36600461273f565b611944565b34801561086057600080fd5b5061044361086f366004612a13565b61198f565b34801561088057600080fd5b506103bb60115481565b34801561089657600080fd5b506103bb60175481565b3480156108ac57600080fd5b506104436108bb3660046127d1565b6119d9565b3480156108cc57600080fd5b506103de6108db36600461270a565b6119ec565b3480156108ec57600080fd5b50610443611aeb565b34801561090157600080fd5b506104436109103660046128c1565b611b1f565b34801561092157600080fd5b506104436109303660046127a5565b611b50565b34801561094157600080fd5b506103bb600b5481565b34801561095757600080fd5b50610443610966366004612878565b611b76565b34801561097757600080fd5b506103bb7f000000000000000000000000000000000000000000000000000000000000000081565b3480156109ab57600080fd5b506103906109ba366004612a8f565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b3480156109f457600080fd5b50610443610a033660046128c1565b611b91565b348015610a1457600080fd5b506103bb610a233660046127d1565b60146020526000908152604090205481565b348015610a4157600080fd5b50610443610a503660046127d1565b611bab565b60006001600160e01b03198216637965db0b60e01b1480610a7a5750610a7a82611c21565b92915050565b606060058054610a8f90612ab9565b80601f0160208091040260200160405190810160405280929190818152602001828054610abb90612ab9565b8015610b085780601f10610add57610100808354040283529160200191610b08565b820191906000526020600020905b815481529060010190602001808311610aeb57829003601f168201915b5050505050905090565b6000610b1d82611c6f565b610b3a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610b6182611161565b9050336001600160a01b03821614610b9a57610b7d81336109ba565b610b9a576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610c0182611c97565b9050836001600160a01b0316816001600160a01b031614610c345760405162a1148160e81b815260040160405180910390fd5b60008281526009602052604090208054338082146001600160a01b03881690911417610c8157610c6486336109ba565b610c8157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ca857604051633a954ecd60e21b815260040160405180910390fd5b8015610cb357600082555b6001600160a01b038681166000908152600860205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260076020526040902055600160e11b8316610d3e5760018401600081815260076020526040902054610d3c576003548114610d3c5760008181526007602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b33803b908115610dd55760405162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b60448201526064015b60405180910390fd5b333214610e245760405162461bcd60e51b815260206004820152601a60248201527f70726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610dcc565b600280541415610e765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dcc565b60028055601a544210801590610e8e5750601b544211155b610ec55760405162461bcd60e51b81526020600482015260086024820152676e6f742074696d6560c01b6044820152606401610dcc565b82610f055760405162461bcd60e51b815260206004820152601060248201526f6e756d2063616e74206265207a65726f60801b6044820152606401610dcc565b600b5483610f166004546003540390565b610f209190612b0a565b1115610f3e5760405162461bcd60e51b8152600401610dcc90612b22565b60125433600090815260156020526040902054610f5c908590612b0a565b1115610f975760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610dcc565b82601854610fa59190612b47565b341015610fe95760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610dcc565b3360009081526015602052604081208054859290611008908490612b0a565b9091555061101890503384611cff565b61102e836018546110299190612b47565b611d43565b600f546018546001600160a01b03909116906108fc9061104f908690612b47565b6040518115909202916000818181858888f19350505050158015611077573d6000803e3d6000fd5b505060016002555050565b6000828152600160208190526040909120015461109e81611d81565b6110a88383611d8b565b505050565b6001600160a01b038116331461111d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610dcc565b6111278282611df6565b5050565b6110a88383836040518060200160405280600081525061198f565b61114e611e5d565b805161112790601c9060208401906125d3565b6000610a7a82611c97565b600061117781611d81565b50601692909255601755601855565b60006001600160a01b0382166111af576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6111dd611e5d565b6111e76000611eb7565b565b33803b9081156112325760405162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b6044820152606401610dcc565b3332146112815760405162461bcd60e51b815260206004820152601a60248201527f70726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610dcc565b6002805414156112d35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dcc565b600280556019544210156113145760405162461bcd60e51b81526020600482015260086024820152676e6f742074696d6560c01b6044820152606401610dcc565b601a544211156113555760405162461bcd60e51b815260206004820152600c60248201526b1c1c99481cd85b1948195b9960a21b6044820152606401610dcc565b600286600281111561136957611369612b66565b14806113865750600186600281111561138457611384612b66565b145b6113c35760405162461bcd60e51b815260206004820152600e60248201526d34b232b73a34ba3c9032b93937b960911b6044820152606401610dcc565b600080808060018a60028111156113dc576113dc612b66565b14156114175760105489146113f057600080fd5b5050600d543360009081526013602052604090205460105460165492945090925090611462565b60028a600281111561142b5761142b612b66565b141561036b57601154891461143f57600080fd5b5050600e5433600090815260146020526040902054601154601754929450909250905b8161146d8a85612b0a565b111561148b5760405162461bcd60e51b8152600401610dcc90612b22565b600b548961149c6004546003540390565b6114a69190612b0a565b11156114e25760405162461bcd60e51b815260206004820152600b60248201526a6f76657220737570706c7960a81b6044820152606401610dcc565b7f000000000000000000000000000000000000000000000000000000000000000089600c546115119190612b0a565b11156115565760405162461bcd60e51b81526020600482015260146024820152736f766572207072652073616c6520737570706c7960601b6044820152606401610dcc565b61156288888633611f07565b61159c5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd081a5b881b1a5cdd60aa1b6044820152606401610dcc565b6115a68982612b47565b3410156115ea5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610dcc565b60018a60028111156115fe576115fe612b66565b1415611645578860136000335b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461163a9190612b0a565b9091555061166a9050565b60028a600281111561165957611659612b66565b141561036b5788601460003361160b565b88600c600082825461167c9190612b0a565b9091555061168c9050338a611cff565b6116996110298a83612b47565b600f546001600160a01b03166108fc6116b28b84612b47565b6040518115909202916000818181858888f193505050501580156116da573d6000803e3d6000fd5b50506001600255505050505050505050565b606060008060006116fc85611186565b905060008167ffffffffffffffff811115611719576117196127ec565b604051908082528060200260200182016040528015611742578160200160208202803683370190505b50905061176f60408051608081018252600080825260208201819052918101829052606081019190915290565b60005b8386146117fd5761178281611f8a565b9150816040015115611793576117ed565b81516001600160a01b0316156117a857815194505b876001600160a01b0316856001600160a01b031614156117ed578083876117ce81612b7c565b9850815181106117e0576117e0612b97565b6020026020010181815250505b6117f681612b7c565b9050611772565b50909695505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61183c611e5d565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b606060068054610a8f90612ab9565b611875611e5d565b611880600082611df6565b50565b600061188e81611d81565b50600d91909155600e55565b6001600160a01b0382163314156118c45760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611938611e5d565b60045460035403600b55565b61194c611e5d565b600b548161195d6004546003540390565b6119679190612b0a565b11156119855760405162461bcd60e51b8152600401610dcc90612b22565b6111278282611cff565b61199a848484610bf6565b6001600160a01b0383163b156119d3576119b684848484612009565b6119d3576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6119e1611e5d565b611880600082611d8b565b60606119f782611c6f565b611a435760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610dcc565b611a4b6120ee565b51611ae257601d8054611a5d90612ab9565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8990612ab9565b8015611ad65780601f10611aab57610100808354040283529160200191611ad6565b820191906000526020600020905b815481529060010190602001808311611ab957829003601f168201915b50505050509050919050565b610a7a826120fd565b611af3611e5d565b60405133904780156108fc02916000818181858888f19350505050158015611880573d6000803e3d6000fd5b6000611b2a81611d81565b8284108015611b3857508183105b611b4157600080fd5b50601992909255601a55601b55565b60008281526001602081905260409091200154611b6c81611d81565b6110a88383611df6565b611b7e611e5d565b805161112790601d9060208401906125d3565b6000611b9c81611d81565b50601092909255601155601255565b611bb3611e5d565b6001600160a01b038116611c185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dcc565b61188081611eb7565b60006301ffc9a760e01b6001600160e01b031983161480611c5257506380ac58cd60e01b6001600160e01b03198316145b80610a7a5750506001600160e01b031916635b5e139f60e01b1490565b600060035482108015610a7a575050600090815260076020526040902054600160e01b161590565b600081600354811015611ce657600081815260076020526040902054600160e01b8116611ce4575b80611cdd575060001901600081815260076020526040902054611cbf565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b611d098282612181565b60405181906001600160a01b038416907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a35050565b8034111561188057336108fc611d598334612bad565b6040518115909202916000818181858888f19350505050158015611127573d6000803e3d6000fd5b611880813361219b565b611d958282611809565b6111275760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b611e008282611809565b156111275760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000546001600160a01b031633146111e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dcc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f7f8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051606088901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012087925090506121ff565b90505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260076020526040902054610a7a90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061203e903390899088908890600401612bc4565b6020604051808303816000875af1925050508015612079575060408051601f3d908101601f1916820190925261207691810190612c01565b60015b6120d4573d8080156120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b5080516120cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f82565b6060601c8054610a8f90612ab9565b606061210882611c6f565b61212557604051630a14c4b560e41b815260040160405180910390fd5b600061212f6120ee565b90508051600014156121505760405180602001604052806000815250611cdd565b8061215a84612215565b60405160200161216b929190612c1e565b6040516020818303038152906040529392505050565b611127828260405180602001604052806000815250612257565b6121a58282611809565b611127576121bd816001600160a01b031660146122c4565b6121c88360206122c4565b6040516020016121d9929190612c4d565b60408051601f198184030181529082905262461bcd60e51b8252610dcc916004016126f7565b60008261220c8584612460565b14949350505050565b604080516080019081905280825b600183039250600a81066030018353600a90048061224057612245565b612223565b50819003601f19909101908152919050565b61226183836124ad565b6001600160a01b0383163b156110a8576003548281035b61228b6000868380600101945086612009565b6122a8576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122785781600354146122bd57600080fd5b5050505050565b606060006122d3836002612b47565b6122de906002612b0a565b67ffffffffffffffff8111156122f6576122f66127ec565b6040519080825280601f01601f191660200182016040528015612320576020820181803683370190505b509050600360fc1b8160008151811061233b5761233b612b97565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061236a5761236a612b97565b60200101906001600160f81b031916908160001a905350600061238e846002612b47565b612399906001612b0a565b90505b6001811115612411576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123cd576123cd612b97565b1a60f81b8282815181106123e3576123e3612b97565b60200101906001600160f81b031916908160001a90535060049490941c9361240a81612cc2565b905061239c565b508315611cdd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dcc565b600081815b84518110156124a5576124918286838151811061248457612484612b97565b60200260200101516125a4565b91508061249d81612b7c565b915050612465565b509392505050565b600354816124ce5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526008602090815260408083208054680100000000000000018802019055848352600790915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461257d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612545565b508161259b57604051622e076360e81b815260040160405180910390fd5b60035550505050565b60008183106125c0576000828152602084905260409020611cdd565b6000838152602083905260409020611cdd565b8280546125df90612ab9565b90600052602060002090601f0160209004810192826126015760008555612647565b82601f1061261a57805160ff1916838001178555612647565b82800160010185558215612647579182015b8281111561264757825182559160200191906001019061262c565b50612653929150612657565b5090565b5b808211156126535760008155600101612658565b6001600160e01b03198116811461188057600080fd5b60006020828403121561269457600080fd5b8135611cdd8161266c565b60005b838110156126ba5781810151838201526020016126a2565b838111156119d35750506000910152565b600081518084526126e381602086016020860161269f565b601f01601f19169290920160200192915050565b602081526000611cdd60208301846126cb565b60006020828403121561271c57600080fd5b5035919050565b80356001600160a01b038116811461273a57600080fd5b919050565b6000806040838503121561275257600080fd5b61275b83612723565b946020939093013593505050565b60008060006060848603121561277e57600080fd5b61278784612723565b925061279560208501612723565b9150604084013590509250925092565b600080604083850312156127b857600080fd5b823591506127c860208401612723565b90509250929050565b6000602082840312156127e357600080fd5b611cdd82612723565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561281d5761281d6127ec565b604051601f8501601f19908116603f01168101908282118183101715612845576128456127ec565b8160405280935085815286868601111561285e57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561288a57600080fd5b813567ffffffffffffffff8111156128a157600080fd5b8201601f810184136128b257600080fd5b611f8284823560208401612802565b6000806000606084860312156128d657600080fd5b505081359360208301359350604090920135919050565b6000806000806060858703121561290357600080fd5b84356003811061291257600080fd5b935060208501359250604085013567ffffffffffffffff8082111561293657600080fd5b818701915087601f83011261294a57600080fd5b81358181111561295957600080fd5b8860208260051b850101111561296e57600080fd5b95989497505060200194505050565b6020808252825182820181905260009190848201906040850190845b818110156117fd57835183529284019291840191600101612999565b600080604083850312156129c857600080fd5b50508035926020909101359150565b600080604083850312156129ea57600080fd5b6129f383612723565b915060208301358015158114612a0857600080fd5b809150509250929050565b60008060008060808587031215612a2957600080fd5b612a3285612723565b9350612a4060208601612723565b925060408501359150606085013567ffffffffffffffff811115612a6357600080fd5b8501601f81018713612a7457600080fd5b612a8387823560208401612802565b91505092959194509250565b60008060408385031215612aa257600080fd5b612aab83612723565b91506127c860208401612723565b600181811c90821680612acd57607f821691505b60208210811415612aee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b1d57612b1d612af4565b500190565b6020808252600b908201526a1bdd995c88185b5bdd5b9d60aa1b604082015260600190565b6000816000190483118215151615612b6157612b61612af4565b500290565b634e487b7160e01b600052602160045260246000fd5b6000600019821415612b9057612b90612af4565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015612bbf57612bbf612af4565b500390565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bf7908301846126cb565b9695505050505050565b600060208284031215612c1357600080fd5b8151611cdd8161266c565b60008351612c3081846020880161269f565b835190830190612c4481836020880161269f565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c8581601785016020880161269f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612cb681602884016020880161269f565b01602801949350505050565b600081612cd157612cd1612af4565b50600019019056fea2646970667358221220f60cca5fd8fffd9e6d2d34a057c27485bca90190fc91aef443f17b0f649858f664736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000fbcc52207a2feca83a893e995f448f396f6098ee000000000000000000000000000000000000000000000000000000000000000d526f736520496e766173696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c526f7365496e766173696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656966673577666633356d7733636a66333370676276356361776b696b7a77703734757a79646171676361757078756e766663666e61000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036b5760003560e01c80638da5cb5b116101c6578063bd031d01116100f7578063d5abeb0111610095578063e985e9c51161006f578063e985e9c51461099f578063ea9ca21f146109e8578063eb46fc4414610a08578063f2fde38b14610a3557600080fd5b8063d5abeb0114610935578063def601261461094b578063e0a59e2c1461096b57600080fd5b8063c87b56dd116100d1578063c87b56dd146108c0578063d1058e59146108e0578063d3e96658146108f5578063d547741f1461091557600080fd5b8063bd031d0114610874578063c11732501461088a578063c634b78e146108a057600080fd5b8063a217fddf11610164578063a3d814da1161013e578063a3d814da146107f2578063aa4be5bc1461081f578063aad3ec9614610834578063b88d4fde1461085457600080fd5b8063a217fddf146107a7578063a22cb465146107bc578063a32d3ac4146107dc57600080fd5b806395d89b41116101a057806395d89b411461073c5780639a19c7b0146107515780639a48eb51146107715780639b6860c81461079157600080fd5b80638da5cb5b146106de57806391d14854146106fc57806393f63e701461071c57600080fd5b8063335886b7116102a0578063699c2deb1161023e578063715018a611610218578063715018a614610673578063717a002b1461068857806378b398c71461069e5780638462151c146106b157600080fd5b8063699c2deb1461061d5780636fb081a41461063357806370a082311461065357600080fd5b806355bfb9951161027a57806355bfb9951461059a57806355f804b3146105c757806362f4fb2d146105e75780636352211e146105fd57600080fd5b8063335886b71461054457806336568abe1461055a57806342842e0e1461057a57600080fd5b806323b872dd1161030d5780632db11544116102e75780632db11544146104db5780632e5113b7146104ee5780632f2ff15d1461050e578063329072841461052e57600080fd5b806323b872dd14610474578063248a9ca3146104945780632687d340146104c557600080fd5b8063081812fc11610349578063081812fc146103eb578063095ea7b31461042357806312f33f051461044557806318160ddd1461045b57600080fd5b806301ffc9a71461037057806304a7ff6b146103a557806306fdde03146103c9575b600080fd5b34801561037c57600080fd5b5061039061038b366004612682565b610a55565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103bb60125481565b60405190815260200161039c565b3480156103d557600080fd5b506103de610a80565b60405161039c91906126f7565b3480156103f757600080fd5b5061040b61040636600461270a565b610b12565b6040516001600160a01b03909116815260200161039c565b34801561042f57600080fd5b5061044361043e36600461273f565b610b56565b005b34801561045157600080fd5b506103bb600d5481565b34801561046757600080fd5b50600454600354036103bb565b34801561048057600080fd5b5061044361048f366004612769565b610bf6565b3480156104a057600080fd5b506103bb6104af36600461270a565b6000908152600160208190526040909120015490565b3480156104d157600080fd5b506103bb600c5481565b6104436104e936600461270a565b610d87565b3480156104fa57600080fd5b50600f5461040b906001600160a01b031681565b34801561051a57600080fd5b506104436105293660046127a5565b611082565b34801561053a57600080fd5b506103bb601a5481565b34801561055057600080fd5b506103bb600e5481565b34801561056657600080fd5b506104436105753660046127a5565b6110ad565b34801561058657600080fd5b50610443610595366004612769565b61112b565b3480156105a657600080fd5b506103bb6105b53660046127d1565b60136020526000908152604090205481565b3480156105d357600080fd5b506104436105e2366004612878565b611146565b3480156105f357600080fd5b506103bb60195481565b34801561060957600080fd5b5061040b61061836600461270a565b611161565b34801561062957600080fd5b506103bb60105481565b34801561063f57600080fd5b5061044361064e3660046128c1565b61116c565b34801561065f57600080fd5b506103bb61066e3660046127d1565b611186565b34801561067f57600080fd5b506104436111d5565b34801561069457600080fd5b506103bb601b5481565b6104436106ac3660046128ed565b6111e9565b3480156106bd57600080fd5b506106d16106cc3660046127d1565b6116ec565b60405161039c919061297d565b3480156106ea57600080fd5b506000546001600160a01b031661040b565b34801561070857600080fd5b506103906107173660046127a5565b611809565b34801561072857600080fd5b506104436107373660046127d1565b611834565b34801561074857600080fd5b506103de61185e565b34801561075d57600080fd5b5061044361076c3660046127d1565b61186d565b34801561077d57600080fd5b5061044361078c3660046129b5565b611883565b34801561079d57600080fd5b506103bb60185481565b3480156107b357600080fd5b506103bb600081565b3480156107c857600080fd5b506104436107d73660046129d7565b61189a565b3480156107e857600080fd5b506103bb60165481565b3480156107fe57600080fd5b506103bb61080d3660046127d1565b60156020526000908152604090205481565b34801561082b57600080fd5b50610443611930565b34801561084057600080fd5b5061044361084f36600461273f565b611944565b34801561086057600080fd5b5061044361086f366004612a13565b61198f565b34801561088057600080fd5b506103bb60115481565b34801561089657600080fd5b506103bb60175481565b3480156108ac57600080fd5b506104436108bb3660046127d1565b6119d9565b3480156108cc57600080fd5b506103de6108db36600461270a565b6119ec565b3480156108ec57600080fd5b50610443611aeb565b34801561090157600080fd5b506104436109103660046128c1565b611b1f565b34801561092157600080fd5b506104436109303660046127a5565b611b50565b34801561094157600080fd5b506103bb600b5481565b34801561095757600080fd5b50610443610966366004612878565b611b76565b34801561097757600080fd5b506103bb7f00000000000000000000000000000000000000000000000000000000000007d081565b3480156109ab57600080fd5b506103906109ba366004612a8f565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b3480156109f457600080fd5b50610443610a033660046128c1565b611b91565b348015610a1457600080fd5b506103bb610a233660046127d1565b60146020526000908152604090205481565b348015610a4157600080fd5b50610443610a503660046127d1565b611bab565b60006001600160e01b03198216637965db0b60e01b1480610a7a5750610a7a82611c21565b92915050565b606060058054610a8f90612ab9565b80601f0160208091040260200160405190810160405280929190818152602001828054610abb90612ab9565b8015610b085780601f10610add57610100808354040283529160200191610b08565b820191906000526020600020905b815481529060010190602001808311610aeb57829003601f168201915b5050505050905090565b6000610b1d82611c6f565b610b3a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610b6182611161565b9050336001600160a01b03821614610b9a57610b7d81336109ba565b610b9a576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610c0182611c97565b9050836001600160a01b0316816001600160a01b031614610c345760405162a1148160e81b815260040160405180910390fd5b60008281526009602052604090208054338082146001600160a01b03881690911417610c8157610c6486336109ba565b610c8157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ca857604051633a954ecd60e21b815260040160405180910390fd5b8015610cb357600082555b6001600160a01b038681166000908152600860205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260076020526040902055600160e11b8316610d3e5760018401600081815260076020526040902054610d3c576003548114610d3c5760008181526007602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b33803b908115610dd55760405162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b60448201526064015b60405180910390fd5b333214610e245760405162461bcd60e51b815260206004820152601a60248201527f70726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610dcc565b600280541415610e765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dcc565b60028055601a544210801590610e8e5750601b544211155b610ec55760405162461bcd60e51b81526020600482015260086024820152676e6f742074696d6560c01b6044820152606401610dcc565b82610f055760405162461bcd60e51b815260206004820152601060248201526f6e756d2063616e74206265207a65726f60801b6044820152606401610dcc565b600b5483610f166004546003540390565b610f209190612b0a565b1115610f3e5760405162461bcd60e51b8152600401610dcc90612b22565b60125433600090815260156020526040902054610f5c908590612b0a565b1115610f975760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610dcc565b82601854610fa59190612b47565b341015610fe95760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610dcc565b3360009081526015602052604081208054859290611008908490612b0a565b9091555061101890503384611cff565b61102e836018546110299190612b47565b611d43565b600f546018546001600160a01b03909116906108fc9061104f908690612b47565b6040518115909202916000818181858888f19350505050158015611077573d6000803e3d6000fd5b505060016002555050565b6000828152600160208190526040909120015461109e81611d81565b6110a88383611d8b565b505050565b6001600160a01b038116331461111d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610dcc565b6111278282611df6565b5050565b6110a88383836040518060200160405280600081525061198f565b61114e611e5d565b805161112790601c9060208401906125d3565b6000610a7a82611c97565b600061117781611d81565b50601692909255601755601855565b60006001600160a01b0382166111af576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6111dd611e5d565b6111e76000611eb7565b565b33803b9081156112325760405162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b6044820152606401610dcc565b3332146112815760405162461bcd60e51b815260206004820152601a60248201527f70726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610dcc565b6002805414156112d35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dcc565b600280556019544210156113145760405162461bcd60e51b81526020600482015260086024820152676e6f742074696d6560c01b6044820152606401610dcc565b601a544211156113555760405162461bcd60e51b815260206004820152600c60248201526b1c1c99481cd85b1948195b9960a21b6044820152606401610dcc565b600286600281111561136957611369612b66565b14806113865750600186600281111561138457611384612b66565b145b6113c35760405162461bcd60e51b815260206004820152600e60248201526d34b232b73a34ba3c9032b93937b960911b6044820152606401610dcc565b600080808060018a60028111156113dc576113dc612b66565b14156114175760105489146113f057600080fd5b5050600d543360009081526013602052604090205460105460165492945090925090611462565b60028a600281111561142b5761142b612b66565b141561036b57601154891461143f57600080fd5b5050600e5433600090815260146020526040902054601154601754929450909250905b8161146d8a85612b0a565b111561148b5760405162461bcd60e51b8152600401610dcc90612b22565b600b548961149c6004546003540390565b6114a69190612b0a565b11156114e25760405162461bcd60e51b815260206004820152600b60248201526a6f76657220737570706c7960a81b6044820152606401610dcc565b7f00000000000000000000000000000000000000000000000000000000000007d089600c546115119190612b0a565b11156115565760405162461bcd60e51b81526020600482015260146024820152736f766572207072652073616c6520737570706c7960601b6044820152606401610dcc565b61156288888633611f07565b61159c5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd081a5b881b1a5cdd60aa1b6044820152606401610dcc565b6115a68982612b47565b3410156115ea5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610dcc565b60018a60028111156115fe576115fe612b66565b1415611645578860136000335b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461163a9190612b0a565b9091555061166a9050565b60028a600281111561165957611659612b66565b141561036b5788601460003361160b565b88600c600082825461167c9190612b0a565b9091555061168c9050338a611cff565b6116996110298a83612b47565b600f546001600160a01b03166108fc6116b28b84612b47565b6040518115909202916000818181858888f193505050501580156116da573d6000803e3d6000fd5b50506001600255505050505050505050565b606060008060006116fc85611186565b905060008167ffffffffffffffff811115611719576117196127ec565b604051908082528060200260200182016040528015611742578160200160208202803683370190505b50905061176f60408051608081018252600080825260208201819052918101829052606081019190915290565b60005b8386146117fd5761178281611f8a565b9150816040015115611793576117ed565b81516001600160a01b0316156117a857815194505b876001600160a01b0316856001600160a01b031614156117ed578083876117ce81612b7c565b9850815181106117e0576117e0612b97565b6020026020010181815250505b6117f681612b7c565b9050611772565b50909695505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61183c611e5d565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b606060068054610a8f90612ab9565b611875611e5d565b611880600082611df6565b50565b600061188e81611d81565b50600d91909155600e55565b6001600160a01b0382163314156118c45760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611938611e5d565b60045460035403600b55565b61194c611e5d565b600b548161195d6004546003540390565b6119679190612b0a565b11156119855760405162461bcd60e51b8152600401610dcc90612b22565b6111278282611cff565b61199a848484610bf6565b6001600160a01b0383163b156119d3576119b684848484612009565b6119d3576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6119e1611e5d565b611880600082611d8b565b60606119f782611c6f565b611a435760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610dcc565b611a4b6120ee565b51611ae257601d8054611a5d90612ab9565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8990612ab9565b8015611ad65780601f10611aab57610100808354040283529160200191611ad6565b820191906000526020600020905b815481529060010190602001808311611ab957829003601f168201915b50505050509050919050565b610a7a826120fd565b611af3611e5d565b60405133904780156108fc02916000818181858888f19350505050158015611880573d6000803e3d6000fd5b6000611b2a81611d81565b8284108015611b3857508183105b611b4157600080fd5b50601992909255601a55601b55565b60008281526001602081905260409091200154611b6c81611d81565b6110a88383611df6565b611b7e611e5d565b805161112790601d9060208401906125d3565b6000611b9c81611d81565b50601092909255601155601255565b611bb3611e5d565b6001600160a01b038116611c185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dcc565b61188081611eb7565b60006301ffc9a760e01b6001600160e01b031983161480611c5257506380ac58cd60e01b6001600160e01b03198316145b80610a7a5750506001600160e01b031916635b5e139f60e01b1490565b600060035482108015610a7a575050600090815260076020526040902054600160e01b161590565b600081600354811015611ce657600081815260076020526040902054600160e01b8116611ce4575b80611cdd575060001901600081815260076020526040902054611cbf565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b611d098282612181565b60405181906001600160a01b038416907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a35050565b8034111561188057336108fc611d598334612bad565b6040518115909202916000818181858888f19350505050158015611127573d6000803e3d6000fd5b611880813361219b565b611d958282611809565b6111275760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b611e008282611809565b156111275760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000546001600160a01b031633146111e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dcc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f7f8585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051606088901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012087925090506121ff565b90505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260076020526040902054610a7a90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061203e903390899088908890600401612bc4565b6020604051808303816000875af1925050508015612079575060408051601f3d908101601f1916820190925261207691810190612c01565b60015b6120d4573d8080156120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b5080516120cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f82565b6060601c8054610a8f90612ab9565b606061210882611c6f565b61212557604051630a14c4b560e41b815260040160405180910390fd5b600061212f6120ee565b90508051600014156121505760405180602001604052806000815250611cdd565b8061215a84612215565b60405160200161216b929190612c1e565b6040516020818303038152906040529392505050565b611127828260405180602001604052806000815250612257565b6121a58282611809565b611127576121bd816001600160a01b031660146122c4565b6121c88360206122c4565b6040516020016121d9929190612c4d565b60408051601f198184030181529082905262461bcd60e51b8252610dcc916004016126f7565b60008261220c8584612460565b14949350505050565b604080516080019081905280825b600183039250600a81066030018353600a90048061224057612245565b612223565b50819003601f19909101908152919050565b61226183836124ad565b6001600160a01b0383163b156110a8576003548281035b61228b6000868380600101945086612009565b6122a8576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122785781600354146122bd57600080fd5b5050505050565b606060006122d3836002612b47565b6122de906002612b0a565b67ffffffffffffffff8111156122f6576122f66127ec565b6040519080825280601f01601f191660200182016040528015612320576020820181803683370190505b509050600360fc1b8160008151811061233b5761233b612b97565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061236a5761236a612b97565b60200101906001600160f81b031916908160001a905350600061238e846002612b47565b612399906001612b0a565b90505b6001811115612411576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123cd576123cd612b97565b1a60f81b8282815181106123e3576123e3612b97565b60200101906001600160f81b031916908160001a90535060049490941c9361240a81612cc2565b905061239c565b508315611cdd5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dcc565b600081815b84518110156124a5576124918286838151811061248457612484612b97565b60200260200101516125a4565b91508061249d81612b7c565b915050612465565b509392505050565b600354816124ce5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526008602090815260408083208054680100000000000000018802019055848352600790915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461257d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612545565b508161259b57604051622e076360e81b815260040160405180910390fd5b60035550505050565b60008183106125c0576000828152602084905260409020611cdd565b6000838152602083905260409020611cdd565b8280546125df90612ab9565b90600052602060002090601f0160209004810192826126015760008555612647565b82601f1061261a57805160ff1916838001178555612647565b82800160010185558215612647579182015b8281111561264757825182559160200191906001019061262c565b50612653929150612657565b5090565b5b808211156126535760008155600101612658565b6001600160e01b03198116811461188057600080fd5b60006020828403121561269457600080fd5b8135611cdd8161266c565b60005b838110156126ba5781810151838201526020016126a2565b838111156119d35750506000910152565b600081518084526126e381602086016020860161269f565b601f01601f19169290920160200192915050565b602081526000611cdd60208301846126cb565b60006020828403121561271c57600080fd5b5035919050565b80356001600160a01b038116811461273a57600080fd5b919050565b6000806040838503121561275257600080fd5b61275b83612723565b946020939093013593505050565b60008060006060848603121561277e57600080fd5b61278784612723565b925061279560208501612723565b9150604084013590509250925092565b600080604083850312156127b857600080fd5b823591506127c860208401612723565b90509250929050565b6000602082840312156127e357600080fd5b611cdd82612723565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561281d5761281d6127ec565b604051601f8501601f19908116603f01168101908282118183101715612845576128456127ec565b8160405280935085815286868601111561285e57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561288a57600080fd5b813567ffffffffffffffff8111156128a157600080fd5b8201601f810184136128b257600080fd5b611f8284823560208401612802565b6000806000606084860312156128d657600080fd5b505081359360208301359350604090920135919050565b6000806000806060858703121561290357600080fd5b84356003811061291257600080fd5b935060208501359250604085013567ffffffffffffffff8082111561293657600080fd5b818701915087601f83011261294a57600080fd5b81358181111561295957600080fd5b8860208260051b850101111561296e57600080fd5b95989497505060200194505050565b6020808252825182820181905260009190848201906040850190845b818110156117fd57835183529284019291840191600101612999565b600080604083850312156129c857600080fd5b50508035926020909101359150565b600080604083850312156129ea57600080fd5b6129f383612723565b915060208301358015158114612a0857600080fd5b809150509250929050565b60008060008060808587031215612a2957600080fd5b612a3285612723565b9350612a4060208601612723565b925060408501359150606085013567ffffffffffffffff811115612a6357600080fd5b8501601f81018713612a7457600080fd5b612a8387823560208401612802565b91505092959194509250565b60008060408385031215612aa257600080fd5b612aab83612723565b91506127c860208401612723565b600181811c90821680612acd57607f821691505b60208210811415612aee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612b1d57612b1d612af4565b500190565b6020808252600b908201526a1bdd995c88185b5bdd5b9d60aa1b604082015260600190565b6000816000190483118215151615612b6157612b61612af4565b500290565b634e487b7160e01b600052602160045260246000fd5b6000600019821415612b9057612b90612af4565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015612bbf57612bbf612af4565b500390565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612bf7908301846126cb565b9695505050505050565b600060208284031215612c1357600080fd5b8151611cdd8161266c565b60008351612c3081846020880161269f565b835190830190612c4481836020880161269f565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612c8581601785016020880161269f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612cb681602884016020880161269f565b01602801949350505050565b600081612cd157612cd1612af4565b50600019019056fea2646970667358221220f60cca5fd8fffd9e6d2d34a057c27485bca90190fc91aef443f17b0f649858f664736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000fbcc52207a2feca83a893e995f448f396f6098ee000000000000000000000000000000000000000000000000000000000000000d526f736520496e766173696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c526f7365496e766173696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656966673577666633356d7733636a66333370676276356361776b696b7a77703734757a79646171676361757078756e766663666e61000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Rose Invasion
Arg [1] : symbol_ (string): RoseInvasion
Arg [2] : revealingURI_ (string): ipfs://bafkreifg5wff35mw3cjf33pgbv5cawkikzwp74uzydaqgcaupxunvfcfna
Arg [3] : benefit_ (address): 0xfbcc52207A2FeCa83A893E995F448F396f6098Ee

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000fbcc52207a2feca83a893e995f448f396f6098ee
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 526f736520496e766173696f6e00000000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [7] : 526f7365496e766173696f6e0000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [9] : 697066733a2f2f6261666b72656966673577666633356d7733636a6633337067
Arg [10] : 6276356361776b696b7a77703734757a79646171676361757078756e76666366
Arg [11] : 6e61000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.