ETH Price: $3,492.21 (+2.82%)

Token

Meelier Milo (Meelier Milo)
 

Overview

Max Total Supply

1,555 Meelier Milo

Holders

211

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
baiqi.eth
Balance
0 Meelier Milo
0x110b638ffe130b8d0834f99532377d4f3009cb5d
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:
Meelier

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : Meelier.sol
/*
 * Meelier MIGU
 *
 *
 * Website: https://www.meelier.io/
 * Twitter: https://twitter.com/MiguMeelier
 * Discord: https://discord.gg/meelier
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/interfaces/IERC4906.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract Meelier is ERC721Enumerable, Ownable, IERC4906, AccessControl, ReentrancyGuard, ERC2981{
    using SafeMath for uint256;
    uint256 private _total_issue;
    string public _baseTokenURI;
    bytes32 public _merkleRoot;
    mapping(uint=>mapping(address=>bool)) public _whitelist;
    mapping(uint=>uint) public _whitelistCount;
    struct issueBatchData{
        uint256 startIndex;
        uint256 count;
        uint256 price;
        uint256 whitePrice;
        bool mintWhite;
    }
    mapping(uint=>issueBatchData) public _issueBatch;
    uint256 public _issueBatchCount;
    bool public _issueLock;
    mapping(uint=>bool) public _startMint;
    uint256 private _whitelistMintLimit;
    uint256 private _threshold;
    struct withdrawProposal {
        address proposer;
        address[] supporters;
        address beneficiary;
        bool execute;
    }
    mapping(uint=>withdrawProposal) public _withdrawProposalList;
    uint256 public _withdrawProposalCount;
    bool public _withdrawNeedProposal;
    bytes32 public constant WITHDRAW_ROLE = keccak256("WITHDRAW_ROLE");
    uint256 public _withdrawProposerCount;
    uint256 public _mintStartIndex;
    uint256 public _mintStartTokenId;
    mapping(address=>bool) public _subWhitelist;//Community subscription whitelist
    uint256 private _subWhitelistMintLimit;

    event makeWithdrawProposal(address proposer, address beneficiary, uint id);
    event executeWithdrawProposal(uint id);

    constructor(string memory name_, string memory symbol_, string memory baseTokenURI_) ERC721(name_, symbol_) {
        _baseTokenURI = baseTokenURI_;
        _issueBatch[0] = issueBatchData({
            startIndex: 1,
            count: 2000,
            price: 0.05 ether,
            whitePrice:0.026 ether,
            mintWhite: true
        });
        _issueBatchCount = 1;
        _total_issue = 2000;
        _whitelistMintLimit = 1;
        _subWhitelistMintLimit = 50;
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _grantRole(WITHDRAW_ROLE, _msgSender());
        _withdrawProposerCount = 1;
        _threshold = 2; // 2/3
        _setDefaultRoyalty(msg.sender, 500);//5% royalty
    }
    
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable,AccessControl,IERC165, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override(ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
    }
    
    function addIssueBatch(uint256 startIndex_, uint256 count_,uint256 price_, uint256 whitePrice_, bool mintWhite_) external onlyOwner() {
        require(!_issueLock, "Add issue forbid");
        _issueBatch[_issueBatchCount] = issueBatchData(startIndex_, count_, price_, whitePrice_, mintWhite_);
        _issueBatchCount = _issueBatchCount.add(1);
    }

    function updateIssueBatch(uint256 index_, uint256 startIndex_, uint256 count_,uint256 price_, uint256 whitePrice_,bool mintWhite_) external onlyOwner() {
        require(!_issueLock, "Update issue forbid");
        require(index_ < _issueBatchCount, "Index out of bound");
        _issueBatch[index_].startIndex =  startIndex_;
        _issueBatch[index_].count =  count_;
        _issueBatch[index_].price =  price_;
        _issueBatch[index_].whitePrice =  whitePrice_;
        _issueBatch[index_].mintWhite =  mintWhite_;
    }

    function removeIssueBatch() external onlyOwner() {
        require(!_issueLock, "Remove issue forbid");
        require(_issueBatchCount > 0, "Batch empty");
        delete _issueBatch[_issueBatchCount.sub(1)];
        _issueBatchCount = _issueBatchCount.sub(1);
    }

    //false:public sale,do not need whitelist.
    function publicSale(uint256 index_) external onlyOwner() {
        require(index_ < _issueBatchCount, "Index out of batch bound");
        _issueBatch[index_].mintWhite =  false;
    }

    function lockIssue() external onlyOwner() {
        _issueLock = true;
    }

    function setMintStartTokenId(uint256 mintStartTokenId_) external onlyOwner() {
        _mintStartTokenId = mintStartTokenId_;
    }

    function currentTokenId() public view returns (uint256) {
        return _mintStartIndex.add(1).add(_mintStartTokenId);
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner() {
        super._setDefaultRoyalty( receiver,  feeNumerator);
    }

    function burn(uint256 tokenId) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }

    function setTotalIssue(uint256 total_issue_) external onlyOwner() {
        require(!_issueLock, "Update issue forbid");
        _total_issue = total_issue_;
    }

    function setThreshold(uint256 threshold_) external onlyOwner() {
        _threshold = threshold_;
        if(_withdrawProposalCount > 0) {
            tryExecuteWithdrawProposal(_withdrawProposalCount.sub(1));
        }
    }

    function setSubWhitelistMintLimit(uint256 subWhitelistMintLimit_) external onlyOwner() {
        _subWhitelistMintLimit = subWhitelistMintLimit_;
    }

    function setWhitelistMintLimit(uint256 whitelistMintLimit_) external onlyOwner() {
        _whitelistMintLimit = whitelistMintLimit_;
    }

    function subWhitelistMintLimit() public view returns (uint256) {
        return _subWhitelistMintLimit;
    }

    function whitelistMintLimit() public view returns (uint256) {
        return _whitelistMintLimit;
    }

    function totalIssue() public view returns (uint256) {
        return _total_issue;
    }

    function setMerkleRoot(bytes32 merkleRoot_) external onlyOwner() {
        _merkleRoot = merkleRoot_;
    }
    
    function addWhitelist(uint256 index_,address lucky_) external onlyOwner() {
        require(index_ < _issueBatchCount, "Index out of batch bound");
        if(!_whitelist[index_][lucky_]) {
            _whitelist[index_][lucky_] = true;
            _whitelistCount[index_] = _whitelistCount[index_].add(1);
        }
    }

    function addWhitelistBatch(uint256 index_, address[] memory lucky_) external onlyOwner() {
        require(index_ < _issueBatchCount, "Index out of batch bound");
        uint256 count = lucky_.length;
        for (uint256 i = 0; i < count; i++) {
            if(!_whitelist[index_][lucky_[i]]) {
                _whitelist[index_][lucky_[i]] = true;
                _whitelistCount[index_] = _whitelistCount[index_].add(1);
            }
        }
    }

    function isWhitelist(uint256 index_, address lucky_) external view returns (bool) {
        return _whitelist[index_][lucky_] || _subWhitelist[lucky_];
    }

    function removeWhitelist(uint256 index_, address lucky_) external onlyOwner() {
        require(index_ < _issueBatchCount, "Index out of batch bound");
        if(_whitelist[index_][lucky_]) {
            _whitelist[index_][lucky_] = false;
            _whitelistCount[index_] = _whitelistCount[index_].sub(1);
        }
    }

    function removeWhitelistBatch(uint256 index_, address[] memory lucky_) external onlyOwner() {
        require(index_ < _issueBatchCount, "Index out of batch bound");
        uint256 count = lucky_.length;
        for (uint256 i = 0; i < count; i++) {
            if(_whitelist[index_][lucky_[i]]) {
                _whitelist[index_][lucky_[i]] = false;
                _whitelistCount[index_] = _whitelistCount[index_].sub(1);
            }
        }
    }

    function addSubWhitelistBatch(address[] memory lucky_) external onlyOwner() {
        uint256 count = lucky_.length;
        for (uint256 i = 0; i < count; i++) {
            if(!_subWhitelist[lucky_[i]]) {
                _subWhitelist[lucky_[i]] = true;
            }
        }
    }

    function removeSubWhitelistBatch(address[] memory lucky_) external onlyOwner() {
        uint256 count = lucky_.length;
        for (uint256 i = 0; i < count; i++) {
            if(_subWhitelist[lucky_[i]]) {
                _subWhitelist[lucky_[i]] = false;
            }
        }
    }

    function whitelistClaim(uint256 index_, bytes32[] calldata merkleProof_) public{
        require(!_whitelist[index_][_msgSender()], "Address has already claimed.");
        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(merkleProof_, _merkleRoot, leaf), "Invalid proof.");
        _whitelist[index_][_msgSender()] = true;
        _whitelistCount[index_] = _whitelistCount[index_].add(1);
    }

    function startMint(uint batchIndex_) external onlyOwner() {
        require(batchIndex_ < _issueBatchCount, "Index out of bound");
        _startMint[batchIndex_] = true;
    }

    function stopMint(uint batchIndex_) external onlyOwner() {
        require(batchIndex_ < _issueBatchCount, "Index out of bound");
        _startMint[batchIndex_] = false;
    }

    function setBaseURI(string memory baseURI_) external onlyOwner() {
        _baseTokenURI = baseURI_;
        emit BatchMetadataUpdate(1, _total_issue.sub(1));
    }

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

    function getMintPrice(uint tokenIdEx_) public view returns (uint256) {
        uint tokenId_ = tokenIdEx_.sub(_mintStartTokenId);
        uint256 startIndex = 0;
        uint256 endIndex = 0;
        uint256 price = 0;
        for (uint i = 0; i < _issueBatchCount; i++) {
            issueBatchData memory batchData = _issueBatch[i];
            startIndex = batchData.startIndex;
            endIndex = batchData.startIndex.add(batchData.count);
            if(tokenId_ >=startIndex && tokenId_ < endIndex) {
                if(batchData.mintWhite) {
                    price = batchData.whitePrice;
                } else {
                    price = batchData.price;
                }
                break;
            }
        }
        return price;
    }

    function tokenIndex2Batch(uint tokenId_) internal view returns (uint256){
        uint256 startIndex = 0;
        uint256 endIndex = 0;
        uint256 batch = type(uint256).max;
        for (uint i = 0; i < _issueBatchCount; i++) {
            issueBatchData memory batchData = _issueBatch[i];
            startIndex = batchData.startIndex;
            endIndex = batchData.startIndex.add(batchData.count);
            if(tokenId_ >=startIndex && tokenId_ < endIndex) {
                batch = i;
                break;
            }
        }
        return batch;
    }

    function mint(uint numberOfTokens_) public payable nonReentrant{
        uint256 firstId = _mintStartIndex.add(1);
        uint256 batch = tokenIndex2Batch(firstId);
        require(_startMint[batch]&& batch != type(uint256).max, "Mint not start");
        require(_mintStartIndex.add(numberOfTokens_) <= _total_issue, "Mint exceed max issued");
        require(numberOfTokens_ > 0, "At least mint one");
        require(_mintStartIndex.add(numberOfTokens_) < _issueBatch[batch].startIndex.add(_issueBatch[batch].count), "Mint exceed batch issued");
        if(_issueBatch[batch].mintWhite) {
            bool whitelistUser = _whitelist[batch][_msgSender()];
            bool subWhitelistUser = _subWhitelist[_msgSender()];
            require( whitelistUser || owner() == _msgSender() || subWhitelistUser, "Mint only whitelist");
            // owner can mint more
            uint256 afterBalance = balanceOf(_msgSender()).add(numberOfTokens_);
            if(owner() != _msgSender()) {
                if(subWhitelistUser) {
                    require(afterBalance <= _subWhitelistMintLimit, "Exceed whitelist mint limit");
                }
                else if(whitelistUser) {
                    require(afterBalance <= _whitelistMintLimit, "Exceed whitelist mint limit");
                }
            }
        }
        uint256 total_fee = 0;
        if(_issueBatch[batch].mintWhite) {
            total_fee = _issueBatch[batch].whitePrice.mul(numberOfTokens_);
        } else {
            total_fee = _issueBatch[batch].price.mul(numberOfTokens_);
        }
        require(total_fee <= msg.value, "Insufficient funds");
        //Checks-Effects-Interactions
        _mintStartIndex =_mintStartIndex.add(numberOfTokens_);

        for (uint256 i = 0; i < numberOfTokens_; i++) {
            _safeMint(_msgSender(), firstId.add(i).add(_mintStartTokenId));
        }
    }

    function freeMint(uint numberOfTokens_) public onlyOwner {
        uint256 firstId = _mintStartIndex.add(1);
        uint256 batch = tokenIndex2Batch(firstId);
        require(_startMint[batch]&& batch != type(uint256).max, "Mint not start");
        require(_mintStartIndex.add(numberOfTokens_) <= _total_issue, "Mint exceed max issued");
        require(numberOfTokens_ > 0, "At least mint one");
        require(_mintStartIndex.add(numberOfTokens_) < _issueBatch[batch].startIndex.add(_issueBatch[batch].count), "Mint exceed batch issued");
        _mintStartIndex =_mintStartIndex.add(numberOfTokens_);

        for (uint256 i = 0; i < numberOfTokens_; i++) {
            _safeMint(_msgSender(), firstId.add(i).add(_mintStartTokenId));
        }
    }

    function transferBatch2One(address newOwner_, uint256[] memory tokenIds_) external {
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            safeTransferFrom(_msgSender(), newOwner_, tokenIds_[i]);
        }
    }

    function transferBatch2Many(address [] memory newOwners_, uint256[] memory tokenIds_) external {
        require(newOwners_.length == tokenIds_.length, "array length inconsistent");
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            safeTransferFrom(_msgSender(), newOwners_[i], tokenIds_[i]);
        }
    }

    function transferAll2One(address newOwner_) external {
        uint count = balanceOf(_msgSender());
        uint256[] memory newArray = new uint256[](count);
        for (uint256 i = 0; i < count; i++) {
            newArray[i] = tokenOfOwnerByIndex(_msgSender(), i);
        }
        for (uint256 i = 0; i < count; i++) {
            safeTransferFrom(_msgSender(), newOwner_, newArray[i]);
        }
    }
    
    function mintList() external view returns (uint256[] memory) {
        uint256 count = balanceOf(_msgSender());
        uint256[] memory newArray = new uint256[](count);

        for (uint256 i = 0; i < count; i++) {
            newArray[i] = tokenOfOwnerByIndex(_msgSender(), i);
        }
        return newArray;
    }
    
    function isMinted(uint256 tokenId_) external view returns (bool) {
        require(
            tokenId_ <= _total_issue.add(_mintStartTokenId),
            "tokenId outside collection bounds"
        );
        return _exists(tokenId_);
    }

    function withdraw() public onlyOwner {
        require(!_withdrawNeedProposal, "Withdraw need proposal");
        uint balance = address(this).balance;
        Address.sendValue(payable(owner()), balance);
    }

    function withdrawAny(uint256 balance_) public onlyOwner {
        require(!_withdrawNeedProposal, "Withdraw need proposal");
        uint balance = address(this).balance;
        require(balance >= balance_, "Insufficient funds");
        Address.sendValue(payable(owner()), balance_);
    }

    function withdrawAnyToOne(uint256 balance_, address beneficiary_) public onlyOwner {
        require(beneficiary_ != address(0), "address zero is not a valid owner");
        require(!_withdrawNeedProposal, "Withdraw need proposal");
        uint balance = address(this).balance;
        require(balance >= balance_, "Insufficient funds");
        Address.sendValue(payable(beneficiary_), balance_);
    }

    function addProposer(address proposer_) external onlyOwner(){
        if(!hasRole(WITHDRAW_ROLE, proposer_)) {
            _withdrawProposerCount = _withdrawProposerCount.add(1);
        }
        _grantRole(WITHDRAW_ROLE, proposer_);
    }

    function removeProposer(address proposer_) external onlyOwner(){
        if(hasRole(WITHDRAW_ROLE, proposer_)) {
            _withdrawProposerCount = _withdrawProposerCount.sub(1);
        }
        _revokeRole(WITHDRAW_ROLE, proposer_);
    }

    function startWithdrawProposer()external onlyOwner(){
        require(_withdrawProposerCount>=_threshold, "need more proposer");
        _withdrawNeedProposal = true;
    }

    function makeProposalForWithdraw(address beneficiary_) public onlyRole(WITHDRAW_ROLE) {
        require(beneficiary_ != address(0), "address zero is not a valid owner");
        require(!_withdrawProposalList[_withdrawProposalCount].execute, "only one proposal on the same time");
        address [] memory supporters=new address[](1);
        supporters[0]=_msgSender();
        _withdrawProposalList[_withdrawProposalCount] = withdrawProposal(_msgSender(), supporters, beneficiary_, false);
        emit makeWithdrawProposal(_msgSender(), beneficiary_, _withdrawProposalCount);
        _withdrawProposalCount = _withdrawProposalCount.add(1);
    }

    function tryExecuteWithdrawProposal(uint256 proposalId_) private {
        address[] memory supporters = _withdrawProposalList[proposalId_].supporters;
        uint supporter_count = supporters.length;
        if(supporter_count>=_threshold && !_withdrawProposalList[proposalId_].execute) {
            uint balance = address(this).balance;
            Address.sendValue(payable(_withdrawProposalList[proposalId_].beneficiary), balance);
            _withdrawProposalList[proposalId_].execute = true;
            emit executeWithdrawProposal(proposalId_);
        }
    }

    function supportProposalForWithdraw(uint256 proposalId_) public onlyRole(WITHDRAW_ROLE) {
        require(proposalId_ < _withdrawProposalCount, "wrong proposalId");
        address[] memory supporters = _withdrawProposalList[proposalId_].supporters;
        for (uint i = 0; i < supporters.length; i++) {
            if(supporters[i]==_msgSender()) {
                return;
            }
        }
        _withdrawProposalList[proposalId_].supporters.push(_msgSender());
        tryExecuteWithdrawProposal(proposalId_);
    }

    function isPresale() external view returns (bool) {
        require(
            _issueBatchCount >= 1,
            "issue nft error"
        );
        return _issueBatch[_issueBatchCount.sub(1)].mintWhite;
    }
}

File 2 of 26 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
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(account),
                        " 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());
        }
    }
}

File 3 of 26 : 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 4 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 5 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 6 of 26 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 7 of 26 : IERC4906.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";
import "./IERC721.sol";

/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

File 8 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 9 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 10 of 26 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 11 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 12 of 26 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

File 13 of 26 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 14 of 26 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 16 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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);
}

File 17 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 19 of 26 : 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 20 of 26 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * 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.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
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 simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds 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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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 from 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds 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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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 from 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                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 21 of 26 : 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 22 of 26 : 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 23 of 26 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 24 of 26 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 25 of 26 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseTokenURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"executeWithdrawProposal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"proposer","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"makeWithdrawProposal","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_issueBatch","outputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"whitePrice","type":"uint256"},{"internalType":"bool","name":"mintWhite","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_issueBatchCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_issueLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintStartIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_startMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_subWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_whitelistCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_withdrawNeedProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_withdrawProposalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_withdrawProposalList","outputs":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"bool","name":"execute","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_withdrawProposerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"whitePrice_","type":"uint256"},{"internalType":"bool","name":"mintWhite_","type":"bool"}],"name":"addIssueBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proposer_","type":"address"}],"name":"addProposer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lucky_","type":"address[]"}],"name":"addSubWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"address","name":"lucky_","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"address[]","name":"lucky_","type":"address[]"}],"name":"addWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens_","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdEx_","type":"uint256"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"address","name":"lucky_","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockIssue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary_","type":"address"}],"name":"makeProposalForWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintList","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":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"publicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeIssueBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proposer_","type":"address"}],"name":"removeProposer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lucky_","type":"address[]"}],"name":"removeSubWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"address","name":"lucky_","type":"address"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"address[]","name":"lucky_","type":"address[]"}],"name":"removeWhitelistBatch","outputs":[],"stateMutability":"nonpayable","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintStartTokenId_","type":"uint256"}],"name":"setMintStartTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"subWhitelistMintLimit_","type":"uint256"}],"name":"setSubWhitelistMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"threshold_","type":"uint256"}],"name":"setThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"total_issue_","type":"uint256"}],"name":"setTotalIssue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistMintLimit_","type":"uint256"}],"name":"setWhitelistMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchIndex_","type":"uint256"}],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWithdrawProposer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchIndex_","type":"uint256"}],"name":"stopMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"subWhitelistMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId_","type":"uint256"}],"name":"supportProposalForWithdraw","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalIssue","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":"newOwner_","type":"address"}],"name":"transferAll2One","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"newOwners_","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"transferBatch2Many","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"transferBatch2One","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"uint256","name":"startIndex_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"whitePrice_","type":"uint256"},{"internalType":"bool","name":"mintWhite_","type":"bool"}],"name":"updateIssueBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof_","type":"bytes32[]"}],"name":"whitelistClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance_","type":"uint256"}],"name":"withdrawAny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance_","type":"uint256"},{"internalType":"address","name":"beneficiary_","type":"address"}],"name":"withdrawAnyToOne","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162005bb938038062005bb98339810160408190526200003491620004c6565b82826000620000448382620005e6565b506001620000538282620005e6565b505050620000706200006a6200020160201b60201c565b62000205565b6001600c556010620000838282620005e6565b506040805160a08101825260018082526107d0602080840182815266b1a2bc2ec50000958501958652665c5edcbc29000060608601908152608086018581526000808052601490945295517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c5590517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d5594517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e5593517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99f5591517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba9a0805460ff19169115159190911790556015819055600f919091556018556032602155620001b490620001ae3390565b62000257565b620001e07f5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108ec3362000257565b6001601d556002601955620001f8336101f4620002fc565b505050620006b2565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16620002f8576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002b73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6127106001600160601b0382161115620003705760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003c85760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000367565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600d55565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200042957600080fd5b81516001600160401b038082111562000446576200044662000401565b604051601f8301601f19908116603f0116810190828211818310171562000471576200047162000401565b816040528381526020925086838588010111156200048e57600080fd5b600091505b83821015620004b2578582018301518183018401529082019062000493565b600093810190920192909252949350505050565b600080600060608486031215620004dc57600080fd5b83516001600160401b0380821115620004f457600080fd5b620005028783880162000417565b945060208601519150808211156200051957600080fd5b620005278783880162000417565b935060408601519150808211156200053e57600080fd5b506200054d8682870162000417565b9150509250925092565b600181811c908216806200056c57607f821691505b6020821081036200058d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005e157600081815260208120601f850160051c81016020861015620005bc5750805b601f850160051c820191505b81811015620005dd57828155600101620005c8565b5050505b505050565b81516001600160401b0381111562000602576200060262000401565b6200061a8162000613845462000557565b8462000593565b602080601f831160018114620006525760008415620006395750858301515b600019600386901b1c1916600185901b178555620005dd565b600085815260208120601f198616915b82811015620006835788860151825594840194600190910190840162000662565b5085821015620006a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6154f780620006c26000396000f3fe6080604052600436106104be5760003560e01c806377ad99f011610276578063b03cd4181161014f578063d70eee5a116100c1578063e985e9c511610085578063e985e9c514610f68578063ea024bd114610fb1578063f1bf9a3714610fcb578063f285a37f14610feb578063f2fde38b14611000578063f32889a01461102057600080fd5b8063d70eee5a14610ed1578063d9c0c61414610ef1578063dcf1df0014610f11578063ddd1783a14610f31578063e02023a114610f4657600080fd5b8063c5abeb7711610113578063c5abeb7714610e30578063c87b56dd14610e46578063ce2af28614610e66578063cfc86f7b14610e7c578063d10a323814610e91578063d547741f14610eb157600080fd5b8063b03cd41814610d9a578063b287c8ed14610dba578063b6eb549d14610dda578063b88d4fde14610dfa578063c51d81c714610e1a57600080fd5b806395d89b41116101e85780639f18f7dd116101ac5780639f18f7dd14610ce2578063a0712d6814610d02578063a217fddf14610d15578063a22cb46514610d2a578063ab5a0cd114610d4a578063adba1d4514610d6a57600080fd5b806395d89b4114610bdd578063960bfe0414610bf25780639660d9e914610c1257806396e63ce014610c32578063982a6cc314610c6d57600080fd5b80638d0eddee1161023a5780638d0eddee14610b3a5780638d6993da14610b545780638da5cb5b14610b6a57806391d1485414610b8857806394008a6e14610ba857806395364a8414610bc857600080fd5b806377ad99f014610aa45780637c928fe914610ac45780637cb6475914610ae4578063822acd5214610b045780638c91801114610b1a57600080fd5b80632f2ff15d116103a857806342966c681161031a5780635ae67aee116102de5780635ae67aee146109f85780635e8754f814610a185780636352211e14610a3a57806370a0823114610a5a578063715018a614610a7a57806371c10ec214610a8f57600080fd5b806342966c68146109585780634e8e3abd146109785780634f6ccce714610998578063559e775b146109b857806355f804b3146109d857600080fd5b806336568abe1161036c57806336568abe146108a357806337ed52e0146108c3578063381b965c146108e35780633ccfd60b146109035780633e0b892a1461091857806342842e0e1461093857600080fd5b80632f2ff15d1461080d5780632f745c591461082d5780632fc37ab21461084d57806332dadded1461086357806333c41a901461088357600080fd5b80630d8bb316116104415780631aec74a9116104055780631aec74a9146107115780631bd54a5a14610731578063212922281461075157806323b872dd1461077e578063248a9ca31461079e5780632a55205a146107ce57600080fd5b80630d8bb3161461063057806313626fb214610650578063168b3a421461066557806318160ddd146106855780631a077d3f1461069a57600080fd5b806305e48a161161048857806305e48a161461058157806306fdde0314610596578063081812fc146105b8578063095ea7b3146105f057806309d632d31461061057600080fd5b80629a9b7b146104c3578062ffdf5f146104eb57806301f73e381461050257806301ffc9a71461054157806304634d8d14610561575b600080fd5b3480156104cf57600080fd5b506104d8611040565b6040519081526020015b60405180910390f35b3480156104f757600080fd5b50610500611069565b005b34801561050e57600080fd5b5061053161051d3660046148c0565b602080526000908152604090205460ff1681565b60405190151581526020016104e2565b34801561054d57600080fd5b5061053161055c3660046148f1565b6110ce565b34801561056d57600080fd5b5061050061057c36600461490e565b6110df565b34801561058d57600080fd5b506105006110f5565b3480156105a257600080fd5b506105ab61110c565b6040516104e291906149a1565b3480156105c457600080fd5b506105d86105d33660046149b4565b61119e565b6040516001600160a01b0390911681526020016104e2565b3480156105fc57600080fd5b5061050061060b3660046149cd565b6111c5565b34801561061c57600080fd5b5061050061062b3660046148c0565b6112da565b34801561063c57600080fd5b5061050061064b366004614a07565b61132c565b34801561065c57600080fd5b506021546104d8565b34801561067157600080fd5b506105006106803660046149b4565b611401565b34801561069157600080fd5b506008546104d8565b3480156106a657600080fd5b506106e76106b53660046149b4565b601460205260009081526040902080546001820154600283015460038401546004909401549293919290919060ff1685565b6040805195865260208601949094529284019190915260608301521515608082015260a0016104e2565b34801561071d57600080fd5b5061050061072c366004614a50565b611558565b34801561073d57600080fd5b5061050061074c3660046148c0565b6115d4565b34801561075d57600080fd5b506104d861076c3660046149b4565b60136020526000908152604090205481565b34801561078a57600080fd5b50610500610799366004614a7c565b6117fc565b3480156107aa57600080fd5b506104d86107b93660046149b4565b6000908152600b602052604090206001015490565b3480156107da57600080fd5b506107ee6107e9366004614ab8565b61182e565b604080516001600160a01b0390931683526020830191909152016104e2565b34801561081957600080fd5b50610500610828366004614a50565b6118da565b34801561083957600080fd5b506104d86108483660046149cd565b6118ff565b34801561085957600080fd5b506104d860115481565b34801561086f57600080fd5b5061050061087e3660046149b4565b611995565b34801561088f57600080fd5b5061053161089e3660046149b4565b6119eb565b3480156108af57600080fd5b506105006108be366004614a50565b611a7c565b3480156108cf57600080fd5b506105006108de366004614bb5565b611af6565b3480156108ef57600080fd5b506105006108fe3660046149b4565b611bb6565b34801561090f57600080fd5b50610500611bc3565b34801561092457600080fd5b50610500610933366004614a50565b611c0a565b34801561094457600080fd5b50610500610953366004614a7c565b611cb5565b34801561096457600080fd5b506105006109733660046149b4565b611cd0565b34801561098457600080fd5b50610531610993366004614a50565b611d0f565b3480156109a457600080fd5b506104d86109b33660046149b4565b611d5e565b3480156109c457600080fd5b506104d86109d33660046149b4565b611df1565b3480156109e457600080fd5b506105006109f3366004614c40565b611ed1565b348015610a0457600080fd5b50610500610a13366004614c88565b611f3a565b348015610a2457600080fd5b50610a2d61205d565b6040516104e29190614cce565b348015610a4657600080fd5b506105d8610a553660046149b4565b6120fe565b348015610a6657600080fd5b506104d8610a753660046148c0565b61215e565b348015610a8657600080fd5b506105006121e4565b348015610a9b57600080fd5b50600f546104d8565b348015610ab057600080fd5b50610500610abf3660046149b4565b6121f8565b348015610ad057600080fd5b50610500610adf3660046149b4565b61225f565b348015610af057600080fd5b50610500610aff3660046149b4565b61243a565b348015610b1057600080fd5b506104d8601d5481565b348015610b2657600080fd5b50610500610b35366004614c88565b612447565b348015610b4657600080fd5b50601c546105319060ff1681565b348015610b6057600080fd5b506104d8601e5481565b348015610b7657600080fd5b50600a546001600160a01b03166105d8565b348015610b9457600080fd5b50610531610ba3366004614a50565b612565565b348015610bb457600080fd5b50610500610bc3366004614a50565b612590565b348015610bd457600080fd5b50610531612624565b348015610be957600080fd5b506105ab6126a1565b348015610bfe57600080fd5b50610500610c0d3660046149b4565b6126b0565b348015610c1e57600080fd5b50610500610c2d3660046149b4565b6126dc565b348015610c3e57600080fd5b50610531610c4d366004614a50565b601260209081526000928352604080842090915290825290205460ff1681565b348015610c7957600080fd5b50610cba610c883660046149b4565b601a60205260009081526040902080546002909101546001600160a01b0391821691811690600160a01b900460ff1683565b604080516001600160a01b0394851681529390921660208401521515908201526060016104e2565b348015610cee57600080fd5b50610500610cfd366004614d12565b6126e9565b610500610d103660046149b4565b612793565b348015610d2157600080fd5b506104d8600081565b348015610d3657600080fd5b50610500610d45366004614d63565b612b72565b348015610d5657600080fd5b50610500610d65366004614de8565b612b7d565b348015610d7657600080fd5b50610531610d853660046149b4565b60176020526000908152604090205460ff1681565b348015610da657600080fd5b50610500610db53660046148c0565b612c29565b348015610dc657600080fd5b50610500610dd53660046149b4565b612c77565b348015610de657600080fd5b50610500610df53660046149b4565b612cbb565b348015610e0657600080fd5b50610500610e15366004614e41565b612cfc565b348015610e2657600080fd5b506104d860155481565b348015610e3c57600080fd5b506104d8601b5481565b348015610e5257600080fd5b506105ab610e613660046149b4565b612d2e565b348015610e7257600080fd5b506104d8601f5481565b348015610e8857600080fd5b506105ab612d94565b348015610e9d57600080fd5b50610500610eac366004614ebc565b612e22565b348015610ebd57600080fd5b50610500610ecc366004614a50565b612e57565b348015610edd57600080fd5b50610500610eec366004614eff565b612e7c565b348015610efd57600080fd5b50610500610f0c3660046149b4565b612ff1565b348015610f1d57600080fd5b50610500610f2c3660046148c0565b612ffe565b348015610f3d57600080fd5b506018546104d8565b348015610f5257600080fd5b506104d86000805160206154a283398151915281565b348015610f7457600080fd5b50610531610f83366004614f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610fbd57600080fd5b506016546105319060ff1681565b348015610fd757600080fd5b50610500610fe63660046149b4565b6130c9565b348015610ff757600080fd5b5061050061310d565b34801561100c57600080fd5b5061050061101b3660046148c0565b613200565b34801561102c57600080fd5b5061050061103b366004614bb5565b613276565b6000611064601f5461105e6001601e5461333790919063ffffffff16565b90613337565b905090565b611071613343565b601954601d5410156110bf5760405162461bcd60e51b81526020600482015260126024820152713732b2b21036b7b93290383937b837b9b2b960711b60448201526064015b60405180910390fd5b601c805460ff19166001179055565b60006110d98261339d565b92915050565b6110e7613343565b6110f182826133c2565b5050565b6110fd613343565b6016805460ff19166001179055565b60606000805461111b90614fa7565b80601f016020809104026020016040519081016040528092919081815260200182805461114790614fa7565b80156111945780601f1061116957610100808354040283529160200191611194565b820191906000526020600020905b81548152906001019060200180831161117757829003601f168201915b5050505050905090565b60006111a9826134bf565b506000908152600460205260409020546001600160a01b031690565b60006111d0826120fe565b9050806001600160a01b0316836001600160a01b03160361123d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016110b6565b336001600160a01b038216148061125957506112598133610f83565b6112cb5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016110b6565b6112d5838361351e565b505050565b6112e2613343565b6112fa6000805160206154a283398151915282612565565b1561131157601d5461130d90600161358c565b601d555b6113296000805160206154a283398151915282613598565b50565b611334613343565b60165460ff161561137a5760405162461bcd60e51b815260206004820152601060248201526f105919081a5cdcdd5948199bdc989a5960821b60448201526064016110b6565b6040805160a08101825286815260208082018781528284018781526060840187815286151560808601908152601580546000908152601490965296909420945185559151600180860191909155905160028501559051600384015590516004909201805460ff19169215159290921790915590546113f791613337565b6015555050505050565b6000805160206154a2833981519152611419816135ff565b601b54821061145d5760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c81c1c9bdc1bdcd85b125960821b60448201526064016110b6565b6000828152601a60209081526040808320600101805482518185028101850190935280835291929091908301828280156114c057602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116114a2575b5050505050905060005b815181101561151d57336001600160a01b03168282815181106114ef576114ef614fe1565b60200260200101516001600160a01b03160361150b5750505050565b806115158161500d565b9150506114ca565b506000838152601a602090815260408220600190810180549182018155835291200180546001600160a01b031916331790556112d583613609565b611560613343565b6001600160a01b0381166115865760405162461bcd60e51b81526004016110b690615026565b601c5460ff16156115a95760405162461bcd60e51b81526004016110b690615067565b47828110156115ca5760405162461bcd60e51b81526004016110b690615097565b6112d58284613732565b6000805160206154a28339815191526115ec816135ff565b6001600160a01b0382166116125760405162461bcd60e51b81526004016110b690615026565b601b546000908152601a6020526040902060020154600160a01b900460ff16156116895760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79206f6e652070726f706f73616c206f6e207468652073616d652074696044820152616d6560f01b60648201526084016110b6565b6040805160018082528183019092526000916020808301908036833701905050905033816000815181106116bf576116bf614fe1565b60200260200101906001600160a01b031690816001600160a01b03168152505060405180608001604052806116f13390565b6001600160a01b039081168252602080830185905286821660408085019190915260006060909401849052601b548452601a8252909220835181546001600160a01b031916921691909117815582820151805191926117589260018501929091019061482a565b506040820151600290910180546060909301511515600160a01b026001600160a81b03199093166001600160a01b03909216919091179190911790557fd73de6a2d52294554dc58cef38201041af0797569ebd6eb5de524ea8b14a04d66117bc3390565b601b54604080516001600160a01b039384168152928716602084015282015260600160405180910390a1601b546117f4906001613337565b601b55505050565b611807335b8261384b565b6118235760405162461bcd60e51b81526004016110b6906150c3565b6112d58383836138ca565b6000828152600e602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916118a3575060408051808201909152600d546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906118c2906001600160601b031687615110565b6118cc9190615127565b915196919550909350505050565b6000828152600b60205260409020600101546118f5816135ff565b6112d58383613a3b565b600061190a8361215e565b821061196c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016110b6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61199d613343565b60165460ff16156119e65760405162461bcd60e51b8152602060048201526013602482015272155c19185d19481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b600f55565b6000611a04601f54600f5461333790919063ffffffff16565b821115611a5d5760405162461bcd60e51b815260206004820152602160248201527f746f6b656e4964206f75747369646520636f6c6c656374696f6e20626f756e646044820152607360f81b60648201526084016110b6565b6000828152600260205260409020546001600160a01b031615156110d9565b6001600160a01b0381163314611aec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016110b6565b6110f18282613598565b611afe613343565b805160005b818110156112d55760206000848381518110611b2157611b21614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611ba457600160206000858481518110611b6457611b64614fe1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80611bae8161500d565b915050611b03565b611bbe613343565b601855565b611bcb613343565b601c5460ff1615611bee5760405162461bcd60e51b81526004016110b690615067565b47611329611c04600a546001600160a01b031690565b82613732565b611c12613343565b6015548210611c335760405162461bcd60e51b81526004016110b690615149565b60008281526012602090815260408083206001600160a01b038516845290915290205460ff166110f15760008281526012602090815260408083206001600160a01b03851684528252808320805460ff19166001908117909155858452601390925290912054611ca291613337565b6000838152601360205260409020555050565b6112d583838360405180602001604052806000815250612cfc565b611cd933611801565b611cf55760405162461bcd60e51b81526004016110b6906150c3565b611cfe81613ac1565b6000908152600e6020526040812055565b60008281526012602090815260408083206001600160a01b038516845290915281205460ff1680611d5757506001600160a01b038216600090815260208052604090205460ff165b9392505050565b6000611d6960085490565b8210611dcc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016110b6565b60088281548110611ddf57611ddf614fe1565b90600052602060002001549050919050565b600080611e09601f548461358c90919063ffffffff16565b90506000806000805b601554811015611ec757600081815260146020908152604091829020825160a081018452815480825260018301549382018490526002830154948201949094526003820154606082015260049091015460ff1615156080820152919550611e7a908690613337565b9350848610158015611e8b57508386105b15611eb457806080015115611ea65780606001519250611eae565b806040015192505b50611ec7565b5080611ebf8161500d565b915050611e12565b5095945050505050565b611ed9613343565b6010611ee582826151ce565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611f1f6001600f5461358c90919063ffffffff16565b6040805192835260208301919091520160405180910390a150565b611f42613343565b6015548210611f635760405162461bcd60e51b81526004016110b690615149565b805160005b8181101561205757601260008581526020019081526020016000206000848381518110611f9757611f97614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561204557600084815260126020526040812084518290869085908110611fe757611fe7614fe1565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120805460ff191694151594909417909355868352601390915290205461203590600161358c565b6000858152601360205260409020555b8061204f8161500d565b915050611f68565b50505050565b6060600061206a3361215e565b90506000816001600160401b0381111561208657612086614ada565b6040519080825280602002602001820160405280156120af578160200160208202803683370190505b50905060005b828110156120f7576120c8335b826118ff565b8282815181106120da576120da614fe1565b6020908102919091010152806120ef8161500d565b9150506120b5565b5092915050565b6000818152600260205260408120546001600160a01b0316806110d95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016110b6565b60006001600160a01b0382166121c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016110b6565b506001600160a01b031660009081526003602052604090205490565b6121ec613343565b6121f66000613b64565b565b612200613343565b601c5460ff16156122235760405162461bcd60e51b81526004016110b690615067565b47818110156122445760405162461bcd60e51b81526004016110b690615097565b6110f1612259600a546001600160a01b031690565b83613732565b612267613343565b601e54600090612278906001613337565b9050600061228582613bb6565b60008181526017602052604090205490915060ff1680156122a857506000198114155b6122e55760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081b9bdd081cdd185c9d60921b60448201526064016110b6565b600f54601e546122f59085613337565b111561233c5760405162461bcd60e51b8152602060048201526016602482015275135a5b9d08195e18d95959081b585e081a5cdcdd595960521b60448201526064016110b6565b600083116123805760405162461bcd60e51b81526020600482015260116024820152704174206c65617374206d696e74206f6e6560781b60448201526064016110b6565b60008181526014602052604090206001810154905461239e91613337565b601e546123ab9085613337565b106123f35760405162461bcd60e51b8152602060048201526018602482015277135a5b9d08195e18d959590818985d18da081a5cdcdd595960421b60448201526064016110b6565b601e546124009084613337565b601e5560005b838110156120575761242833601f546124239061105e8786613337565b613c62565b806124328161500d565b915050612406565b612442613343565b601155565b61244f613343565b60155482106124705760405162461bcd60e51b81526004016110b690615149565b805160005b81811015612057576012600085815260200190815260200160002060008483815181106124a4576124a4614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff166125535760008481526012602052604081208451600192908690859081106124f5576124f5614fe1565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120805460ff1916941515949094179093558683526013909152902054612543906001613337565b6000858152601360205260409020555b8061255d8161500d565b915050612475565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b612598613343565b60155482106125b95760405162461bcd60e51b81526004016110b690615149565b60008281526012602090815260408083206001600160a01b038516845290915290205460ff16156110f15760008281526012602090815260408083206001600160a01b03851684528252808320805460ff191690558483526013909152902054611ca290600161358c565b60006001601554101561266b5760405162461bcd60e51b815260206004820152600f60248201526e34b9b9bab29037333a1032b93937b960891b60448201526064016110b6565b60146000612685600160155461358c90919063ffffffff16565b815260208101919091526040016000206004015460ff16919050565b60606001805461111b90614fa7565b6126b8613343565b6019819055601b541561132957601b54611329906126d790600161358c565b613609565b6126e4613343565b602155565b6126f1613343565b60165460ff161561273a5760405162461bcd60e51b8152602060048201526013602482015272155c19185d19481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b601554861061275b5760405162461bcd60e51b81526004016110b69061528d565b600095865260146020526040909520938455600184019290925560028301556003820155600401805460ff1916911515919091179055565b61279b613c7c565b601e546000906127ac906001613337565b905060006127b982613bb6565b60008181526017602052604090205490915060ff1680156127dc57506000198114155b6128195760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081b9bdd081cdd185c9d60921b60448201526064016110b6565b600f54601e546128299085613337565b11156128705760405162461bcd60e51b8152602060048201526016602482015275135a5b9d08195e18d95959081b585e081a5cdcdd595960521b60448201526064016110b6565b600083116128b45760405162461bcd60e51b81526020600482015260116024820152704174206c65617374206d696e74206f6e6560781b60448201526064016110b6565b6000818152601460205260409020600181015490546128d291613337565b601e546128df9085613337565b106129275760405162461bcd60e51b8152602060048201526018602482015277135a5b9d08195e18d959590818985d18da081a5cdcdd595960421b60448201526064016110b6565b60008181526014602052604090206004015460ff1615612aa65760008181526012602090815260408083203384528252808320549180529091205460ff9182169116818061297f5750600a546001600160a01b031633145b806129875750805b6129c95760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081bdb9b1e481dda1a5d195b1a5cdd606a1b60448201526064016110b6565b60006129d88661105e3361215e565b600a549091506001600160a01b03163314612aa2578115612a4a57602154811115612a455760405162461bcd60e51b815260206004820152601b60248201527f4578636565642077686974656c697374206d696e74206c696d6974000000000060448201526064016110b6565b612aa2565b8215612aa257601854811115612aa25760405162461bcd60e51b815260206004820152601b60248201527f4578636565642077686974656c697374206d696e74206c696d6974000000000060448201526064016110b6565b5050505b60008181526014602052604081206004015460ff1615612ae357600082815260146020526040902060030154612adc9085613cd5565b9050612b02565b600082815260146020526040902060020154612aff9085613cd5565b90505b34811115612b225760405162461bcd60e51b81526004016110b690615097565b601e54612b2f9085613337565b601e5560005b84811015612b6457612b5233601f546124239061105e8886613337565b80612b5c8161500d565b915050612b35565b505050506113296001600c55565b6110f1338383613ce1565b8051825114612bce5760405162461bcd60e51b815260206004820152601960248201527f6172726179206c656e67746820696e636f6e73697374656e740000000000000060448201526064016110b6565b60005b81518110156112d557612c1733848381518110612bf057612bf0614fe1565b6020026020010151848481518110612c0a57612c0a614fe1565b6020026020010151611cb5565b80612c218161500d565b915050612bd1565b612c31613343565b612c496000805160206154a283398151915282612565565b612c5f57601d54612c5b906001613337565b601d555b6113296000805160206154a283398151915282613a3b565b612c7f613343565b6015548110612ca05760405162461bcd60e51b81526004016110b690615149565b6000908152601460205260409020600401805460ff19169055565b612cc3613343565b6015548110612ce45760405162461bcd60e51b81526004016110b69061528d565b6000908152601760205260409020805460ff19169055565b612d06338361384b565b612d225760405162461bcd60e51b81526004016110b6906150c3565b61205784848484613daf565b6060612d39826134bf565b6000612d43613de2565b90506000815111612d635760405180602001604052806000815250611d57565b80612d6d84613df1565b604051602001612d7e9291906152b9565b6040516020818303038152906040529392505050565b60108054612da190614fa7565b80601f0160208091040260200160405190810160405280929190818152602001828054612dcd90614fa7565b8015612e1a5780601f10612def57610100808354040283529160200191612e1a565b820191906000526020600020905b815481529060010190602001808311612dfd57829003601f168201915b505050505081565b60005b81518110156112d557612e453384848481518110612c0a57612c0a614fe1565b80612e4f8161500d565b915050612e25565b6000828152600b6020526040902060010154612e72816135ff565b6112d58383613598565b600083815260126020908152604080832033845290915290205460ff1615612ee65760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e0000000060448201526064016110b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050612f60838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050613e83565b612f9d5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b60448201526064016110b6565b60008481526012602090815260408083203384528252808320805460ff19166001908117909155878452601390925290912054612fd991613337565b60009485526013602052604090942093909355505050565b612ff9613343565b601f55565b60006130093361215e565b90506000816001600160401b0381111561302557613025614ada565b60405190808252806020026020018201604052801561304e578160200160208202803683370190505b50905060005b8281101561309457613065336120c2565b82828151811061307757613077614fe1565b60209081029190910101528061308c8161500d565b915050613054565b5060005b82811015612057576130b73385848481518110612c0a57612c0a614fe1565b806130c18161500d565b915050613098565b6130d1613343565b60155481106130f25760405162461bcd60e51b81526004016110b69061528d565b6000908152601760205260409020805460ff19166001179055565b613115613343565b60165460ff161561315e5760405162461bcd60e51b815260206004820152601360248201527214995b5bdd99481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b60006015541161319e5760405162461bcd60e51b815260206004820152600b60248201526a426174636820656d70747960a81b60448201526064016110b6565b601460006131b8600160155461358c90919063ffffffff16565b8152602081019190915260400160009081208181556001808201839055600282018390556003820192909255600401805460ff191690556015546131fb9161358c565b601555565b613208613343565b6001600160a01b03811661326d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110b6565b61132981613b64565b61327e613343565b805160005b818110156112d557602060008483815181106132a1576132a1614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615613325576000602060008584815181106132e5576132e5614fe1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8061332f8161500d565b915050613283565b6000611d5782846152e8565b600a546001600160a01b031633146121f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110b6565b60006001600160e01b0319821663152a902d60e11b14806110d957506110d982613e99565b6127106001600160601b03821611156134305760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016110b6565b6001600160a01b0382166134865760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016110b6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600d55565b6000818152600260205260409020546001600160a01b03166113295760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016110b6565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613553826120fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d5782846152fb565b6135a28282612565565b156110f1576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6113298133613ebe565b6000818152601a602090815260408083206001018054825181850281018501909352808352919290919083018282801561366c57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161364e575b5050505050905060008151905060195481101580156136a457506000838152601a6020526040902060020154600160a01b900460ff16155b156112d5576000838152601a602052604090206002015447906136d0906001600160a01b031682613732565b6000848152601a602052604090819020600201805460ff60a01b1916600160a01b179055517f08965c2d3dbff3f8d73612157e94da0c539239bb6750815b8b0e62f05f7d8cda906137249086815260200190565b60405180910390a150505050565b804710156137825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146137cf576040519150601f19603f3d011682016040523d82523d6000602084013e6137d4565b606091505b50509050806112d55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016110b6565b600080613857836120fe565b9050806001600160a01b0316846001600160a01b0316148061389e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806138c25750836001600160a01b03166138b78461119e565b6001600160a01b0316145b949350505050565b826001600160a01b03166138dd826120fe565b6001600160a01b0316146139035760405162461bcd60e51b81526004016110b69061530e565b6001600160a01b0382166139655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110b6565b6139728383836001613f17565b826001600160a01b0316613985826120fe565b6001600160a01b0316146139ab5760405162461bcd60e51b81526004016110b69061530e565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b613a458282612565565b6110f1576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613a7d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000613acc826120fe565b9050613adc816000846001613f17565b613ae5826120fe565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008080600019815b601554811015613c5957600081815260146020908152604091829020825160a081018452815480825260018301549382018490526002830154948201949094526003820154606082015260049091015460ff1615156080820152919550613c27908690613337565b9350848710158015613c3857508387105b15613c465781925050613c59565b5080613c518161500d565b915050613bbf565b50949350505050565b6110f1828260405180602001604052806000815250613f23565b6002600c5403613cce5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016110b6565b6002600c55565b6000611d578284615110565b816001600160a01b0316836001600160a01b031603613d425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110b6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613dba8484846138ca565b613dc684848484613f56565b6120575760405162461bcd60e51b81526004016110b690615353565b60606010805461111b90614fa7565b60606000613dfe83614057565b60010190506000816001600160401b03811115613e1d57613e1d614ada565b6040519080825280601f01601f191660200182016040528015613e47576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613e5157509392505050565b600082613e90858461412f565b14949350505050565b60006001600160e01b03198216637965db0b60e01b14806110d957506110d98261417c565b613ec88282612565565b6110f157613ed5816141a1565b613ee08360206141b3565b604051602001613ef19291906153a5565b60408051601f198184030181529082905262461bcd60e51b82526110b6916004016149a1565b6120578484848461434e565b613f2d8383614482565b613f3a6000848484613f56565b6112d55760405162461bcd60e51b81526004016110b690615353565b60006001600160a01b0384163b1561404c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f9a90339089908890889060040161541a565b6020604051808303816000875af1925050508015613fd5575060408051601f3d908101601f19168201909252613fd291810190615457565b60015b614032573d808015614003576040519150601f19603f3d011682016040523d82523d6000602084013e614008565b606091505b50805160000361402a5760405162461bcd60e51b81526004016110b690615353565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506138c2565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106140965772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106140c2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106140e057662386f26fc10000830492506010015b6305f5e10083106140f8576305f5e100830492506008015b612710831061410c57612710830492506004015b6064831061411e576064830492506002015b600a83106110d95760010192915050565b600081815b8451811015614174576141608286838151811061415357614153614fe1565b602002602001015161461b565b91508061416c8161500d565b915050614134565b509392505050565b60006001600160e01b0319821663780e9d6360e01b14806110d957506110d98261464a565b60606110d96001600160a01b03831660145b606060006141c2836002615110565b6141cd9060026152e8565b6001600160401b038111156141e4576141e4614ada565b6040519080825280601f01601f19166020018201604052801561420e576020820181803683370190505b509050600360fc1b8160008151811061422957614229614fe1565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061425857614258614fe1565b60200101906001600160f81b031916908160001a905350600061427c846002615110565b6142879060016152e8565b90505b60018111156142ff576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106142bb576142bb614fe1565b1a60f81b8282815181106142d1576142d1614fe1565b60200101906001600160f81b031916908160001a90535060049490941c936142f881615474565b905061428a565b508315611d575760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110b6565b60018111156143bd5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016110b6565b816001600160a01b0385166144195761441481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61443c565b836001600160a01b0316856001600160a01b03161461443c5761443c858261469a565b6001600160a01b0384166144585761445381614737565b61447b565b846001600160a01b0316846001600160a01b03161461447b5761447b84826147e6565b5050505050565b6001600160a01b0382166144d85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110b6565b6000818152600260205260409020546001600160a01b03161561453d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b6565b61454b600083836001613f17565b6000818152600260205260409020546001600160a01b0316156145b05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b6565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310614637576000828152602084905260409020611d57565b6000838152602083905260409020611d57565b60006001600160e01b031982166380ac58cd60e01b148061467b57506001600160e01b03198216635b5e139f60e01b145b806110d957506301ffc9a760e01b6001600160e01b03198316146110d9565b600060016146a78461215e565b6146b191906152fb565b600083815260076020526040902054909150808214614704576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614749906001906152fb565b6000838152600960205260408120546008805493945090928490811061477157614771614fe1565b90600052602060002001549050806008838154811061479257614792614fe1565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806147ca576147ca61548b565b6001900381819060005260206000200160009055905550505050565b60006147f18361215e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805482825590600052602060002090810192821561487f579160200282015b8281111561487f57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061484a565b5061488b92915061488f565b5090565b5b8082111561488b5760008155600101614890565b80356001600160a01b03811681146148bb57600080fd5b919050565b6000602082840312156148d257600080fd5b611d57826148a4565b6001600160e01b03198116811461132957600080fd5b60006020828403121561490357600080fd5b8135611d57816148db565b6000806040838503121561492157600080fd5b61492a836148a4565b915060208301356001600160601b038116811461494657600080fd5b809150509250929050565b60005b8381101561496c578181015183820152602001614954565b50506000910152565b6000815180845261498d816020860160208601614951565b601f01601f19169290920160200192915050565b602081526000611d576020830184614975565b6000602082840312156149c657600080fd5b5035919050565b600080604083850312156149e057600080fd5b6149e9836148a4565b946020939093013593505050565b803580151581146148bb57600080fd5b600080600080600060a08688031215614a1f57600080fd5b85359450602086013593506040860135925060608601359150614a44608087016149f7565b90509295509295909350565b60008060408385031215614a6357600080fd5b82359150614a73602084016148a4565b90509250929050565b600080600060608486031215614a9157600080fd5b614a9a846148a4565b9250614aa8602085016148a4565b9150604084013590509250925092565b60008060408385031215614acb57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614b1857614b18614ada565b604052919050565b60006001600160401b03821115614b3957614b39614ada565b5060051b60200190565b600082601f830112614b5457600080fd5b81356020614b69614b6483614b20565b614af0565b82815260059290921b84018101918181019086841115614b8857600080fd5b8286015b84811015614baa57614b9d816148a4565b8352918301918301614b8c565b509695505050505050565b600060208284031215614bc757600080fd5b81356001600160401b03811115614bdd57600080fd5b6138c284828501614b43565b60006001600160401b03831115614c0257614c02614ada565b614c15601f8401601f1916602001614af0565b9050828152838383011115614c2957600080fd5b828260208301376000602084830101529392505050565b600060208284031215614c5257600080fd5b81356001600160401b03811115614c6857600080fd5b8201601f81018413614c7957600080fd5b6138c284823560208401614be9565b60008060408385031215614c9b57600080fd5b8235915060208301356001600160401b03811115614cb857600080fd5b614cc485828601614b43565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015614d0657835183529284019291840191600101614cea565b50909695505050505050565b60008060008060008060c08789031215614d2b57600080fd5b8635955060208701359450604087013593506060870135925060808701359150614d5760a088016149f7565b90509295509295509295565b60008060408385031215614d7657600080fd5b614d7f836148a4565b9150614a73602084016149f7565b600082601f830112614d9e57600080fd5b81356020614dae614b6483614b20565b82815260059290921b84018101918181019086841115614dcd57600080fd5b8286015b84811015614baa5780358352918301918301614dd1565b60008060408385031215614dfb57600080fd5b82356001600160401b0380821115614e1257600080fd5b614e1e86838701614b43565b93506020850135915080821115614e3457600080fd5b50614cc485828601614d8d565b60008060008060808587031215614e5757600080fd5b614e60856148a4565b9350614e6e602086016148a4565b92506040850135915060608501356001600160401b03811115614e9057600080fd5b8501601f81018713614ea157600080fd5b614eb087823560208401614be9565b91505092959194509250565b60008060408385031215614ecf57600080fd5b614ed8836148a4565b915060208301356001600160401b03811115614ef357600080fd5b614cc485828601614d8d565b600080600060408486031215614f1457600080fd5b8335925060208401356001600160401b0380821115614f3257600080fd5b818601915086601f830112614f4657600080fd5b813581811115614f5557600080fd5b8760208260051b8501011115614f6a57600080fd5b6020830194508093505050509250925092565b60008060408385031215614f9057600080fd5b614f99836148a4565b9150614a73602084016148a4565b600181811c90821680614fbb57607f821691505b602082108103614fdb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161501f5761501f614ff7565b5060010190565b60208082526021908201527f61646472657373207a65726f206973206e6f7420612076616c6964206f776e656040820152603960f91b606082015260800190565b60208082526016908201527515da5d1a191c985dc81b995959081c1c9bdc1bdcd85b60521b604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b80820281158282048414176110d9576110d9614ff7565b60008261514457634e487b7160e01b600052601260045260246000fd5b500490565b60208082526018908201527f496e646578206f7574206f6620626174636820626f756e640000000000000000604082015260600190565b601f8211156112d557600081815260208120601f850160051c810160208610156151a75750805b601f850160051c820191505b818110156151c6578281556001016151b3565b505050505050565b81516001600160401b038111156151e7576151e7614ada565b6151fb816151f58454614fa7565b84615180565b602080601f83116001811461523057600084156152185750858301515b600019600386901b1c1916600185901b1785556151c6565b600085815260208120601f198616915b8281101561525f57888601518255948401946001909101908401615240565b508582101561527d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602080825260129082015271125b99195e081bdd5d081bd988189bdd5b9960721b604082015260600190565b600083516152cb818460208801614951565b8351908301906152df818360208801614951565b01949350505050565b808201808211156110d9576110d9614ff7565b818103818111156110d9576110d9614ff7565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516153dd816017850160208801614951565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161540e816028840160208801614951565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061544d90830184614975565b9695505050505050565b60006020828403121561546957600080fd5b8151611d57816148db565b60008161548357615483614ff7565b506000190190565b634e487b7160e01b600052603160045260246000fdfe5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108eca26469706673582212208d4f11ede65ea6b95f7a6e9ae2c852b03dc520d4556d040b036d41ae7542429d64736f6c63430008130033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c4d65656c696572204d696c6f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d65656c696572204d696c6f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d506d503877337177455a5a3475684e5257566854323873597a486539376d337772476d6f6a624439706448682f00000000000000000000

Deployed Bytecode

0x6080604052600436106104be5760003560e01c806377ad99f011610276578063b03cd4181161014f578063d70eee5a116100c1578063e985e9c511610085578063e985e9c514610f68578063ea024bd114610fb1578063f1bf9a3714610fcb578063f285a37f14610feb578063f2fde38b14611000578063f32889a01461102057600080fd5b8063d70eee5a14610ed1578063d9c0c61414610ef1578063dcf1df0014610f11578063ddd1783a14610f31578063e02023a114610f4657600080fd5b8063c5abeb7711610113578063c5abeb7714610e30578063c87b56dd14610e46578063ce2af28614610e66578063cfc86f7b14610e7c578063d10a323814610e91578063d547741f14610eb157600080fd5b8063b03cd41814610d9a578063b287c8ed14610dba578063b6eb549d14610dda578063b88d4fde14610dfa578063c51d81c714610e1a57600080fd5b806395d89b41116101e85780639f18f7dd116101ac5780639f18f7dd14610ce2578063a0712d6814610d02578063a217fddf14610d15578063a22cb46514610d2a578063ab5a0cd114610d4a578063adba1d4514610d6a57600080fd5b806395d89b4114610bdd578063960bfe0414610bf25780639660d9e914610c1257806396e63ce014610c32578063982a6cc314610c6d57600080fd5b80638d0eddee1161023a5780638d0eddee14610b3a5780638d6993da14610b545780638da5cb5b14610b6a57806391d1485414610b8857806394008a6e14610ba857806395364a8414610bc857600080fd5b806377ad99f014610aa45780637c928fe914610ac45780637cb6475914610ae4578063822acd5214610b045780638c91801114610b1a57600080fd5b80632f2ff15d116103a857806342966c681161031a5780635ae67aee116102de5780635ae67aee146109f85780635e8754f814610a185780636352211e14610a3a57806370a0823114610a5a578063715018a614610a7a57806371c10ec214610a8f57600080fd5b806342966c68146109585780634e8e3abd146109785780634f6ccce714610998578063559e775b146109b857806355f804b3146109d857600080fd5b806336568abe1161036c57806336568abe146108a357806337ed52e0146108c3578063381b965c146108e35780633ccfd60b146109035780633e0b892a1461091857806342842e0e1461093857600080fd5b80632f2ff15d1461080d5780632f745c591461082d5780632fc37ab21461084d57806332dadded1461086357806333c41a901461088357600080fd5b80630d8bb316116104415780631aec74a9116104055780631aec74a9146107115780631bd54a5a14610731578063212922281461075157806323b872dd1461077e578063248a9ca31461079e5780632a55205a146107ce57600080fd5b80630d8bb3161461063057806313626fb214610650578063168b3a421461066557806318160ddd146106855780631a077d3f1461069a57600080fd5b806305e48a161161048857806305e48a161461058157806306fdde0314610596578063081812fc146105b8578063095ea7b3146105f057806309d632d31461061057600080fd5b80629a9b7b146104c3578062ffdf5f146104eb57806301f73e381461050257806301ffc9a71461054157806304634d8d14610561575b600080fd5b3480156104cf57600080fd5b506104d8611040565b6040519081526020015b60405180910390f35b3480156104f757600080fd5b50610500611069565b005b34801561050e57600080fd5b5061053161051d3660046148c0565b602080526000908152604090205460ff1681565b60405190151581526020016104e2565b34801561054d57600080fd5b5061053161055c3660046148f1565b6110ce565b34801561056d57600080fd5b5061050061057c36600461490e565b6110df565b34801561058d57600080fd5b506105006110f5565b3480156105a257600080fd5b506105ab61110c565b6040516104e291906149a1565b3480156105c457600080fd5b506105d86105d33660046149b4565b61119e565b6040516001600160a01b0390911681526020016104e2565b3480156105fc57600080fd5b5061050061060b3660046149cd565b6111c5565b34801561061c57600080fd5b5061050061062b3660046148c0565b6112da565b34801561063c57600080fd5b5061050061064b366004614a07565b61132c565b34801561065c57600080fd5b506021546104d8565b34801561067157600080fd5b506105006106803660046149b4565b611401565b34801561069157600080fd5b506008546104d8565b3480156106a657600080fd5b506106e76106b53660046149b4565b601460205260009081526040902080546001820154600283015460038401546004909401549293919290919060ff1685565b6040805195865260208601949094529284019190915260608301521515608082015260a0016104e2565b34801561071d57600080fd5b5061050061072c366004614a50565b611558565b34801561073d57600080fd5b5061050061074c3660046148c0565b6115d4565b34801561075d57600080fd5b506104d861076c3660046149b4565b60136020526000908152604090205481565b34801561078a57600080fd5b50610500610799366004614a7c565b6117fc565b3480156107aa57600080fd5b506104d86107b93660046149b4565b6000908152600b602052604090206001015490565b3480156107da57600080fd5b506107ee6107e9366004614ab8565b61182e565b604080516001600160a01b0390931683526020830191909152016104e2565b34801561081957600080fd5b50610500610828366004614a50565b6118da565b34801561083957600080fd5b506104d86108483660046149cd565b6118ff565b34801561085957600080fd5b506104d860115481565b34801561086f57600080fd5b5061050061087e3660046149b4565b611995565b34801561088f57600080fd5b5061053161089e3660046149b4565b6119eb565b3480156108af57600080fd5b506105006108be366004614a50565b611a7c565b3480156108cf57600080fd5b506105006108de366004614bb5565b611af6565b3480156108ef57600080fd5b506105006108fe3660046149b4565b611bb6565b34801561090f57600080fd5b50610500611bc3565b34801561092457600080fd5b50610500610933366004614a50565b611c0a565b34801561094457600080fd5b50610500610953366004614a7c565b611cb5565b34801561096457600080fd5b506105006109733660046149b4565b611cd0565b34801561098457600080fd5b50610531610993366004614a50565b611d0f565b3480156109a457600080fd5b506104d86109b33660046149b4565b611d5e565b3480156109c457600080fd5b506104d86109d33660046149b4565b611df1565b3480156109e457600080fd5b506105006109f3366004614c40565b611ed1565b348015610a0457600080fd5b50610500610a13366004614c88565b611f3a565b348015610a2457600080fd5b50610a2d61205d565b6040516104e29190614cce565b348015610a4657600080fd5b506105d8610a553660046149b4565b6120fe565b348015610a6657600080fd5b506104d8610a753660046148c0565b61215e565b348015610a8657600080fd5b506105006121e4565b348015610a9b57600080fd5b50600f546104d8565b348015610ab057600080fd5b50610500610abf3660046149b4565b6121f8565b348015610ad057600080fd5b50610500610adf3660046149b4565b61225f565b348015610af057600080fd5b50610500610aff3660046149b4565b61243a565b348015610b1057600080fd5b506104d8601d5481565b348015610b2657600080fd5b50610500610b35366004614c88565b612447565b348015610b4657600080fd5b50601c546105319060ff1681565b348015610b6057600080fd5b506104d8601e5481565b348015610b7657600080fd5b50600a546001600160a01b03166105d8565b348015610b9457600080fd5b50610531610ba3366004614a50565b612565565b348015610bb457600080fd5b50610500610bc3366004614a50565b612590565b348015610bd457600080fd5b50610531612624565b348015610be957600080fd5b506105ab6126a1565b348015610bfe57600080fd5b50610500610c0d3660046149b4565b6126b0565b348015610c1e57600080fd5b50610500610c2d3660046149b4565b6126dc565b348015610c3e57600080fd5b50610531610c4d366004614a50565b601260209081526000928352604080842090915290825290205460ff1681565b348015610c7957600080fd5b50610cba610c883660046149b4565b601a60205260009081526040902080546002909101546001600160a01b0391821691811690600160a01b900460ff1683565b604080516001600160a01b0394851681529390921660208401521515908201526060016104e2565b348015610cee57600080fd5b50610500610cfd366004614d12565b6126e9565b610500610d103660046149b4565b612793565b348015610d2157600080fd5b506104d8600081565b348015610d3657600080fd5b50610500610d45366004614d63565b612b72565b348015610d5657600080fd5b50610500610d65366004614de8565b612b7d565b348015610d7657600080fd5b50610531610d853660046149b4565b60176020526000908152604090205460ff1681565b348015610da657600080fd5b50610500610db53660046148c0565b612c29565b348015610dc657600080fd5b50610500610dd53660046149b4565b612c77565b348015610de657600080fd5b50610500610df53660046149b4565b612cbb565b348015610e0657600080fd5b50610500610e15366004614e41565b612cfc565b348015610e2657600080fd5b506104d860155481565b348015610e3c57600080fd5b506104d8601b5481565b348015610e5257600080fd5b506105ab610e613660046149b4565b612d2e565b348015610e7257600080fd5b506104d8601f5481565b348015610e8857600080fd5b506105ab612d94565b348015610e9d57600080fd5b50610500610eac366004614ebc565b612e22565b348015610ebd57600080fd5b50610500610ecc366004614a50565b612e57565b348015610edd57600080fd5b50610500610eec366004614eff565b612e7c565b348015610efd57600080fd5b50610500610f0c3660046149b4565b612ff1565b348015610f1d57600080fd5b50610500610f2c3660046148c0565b612ffe565b348015610f3d57600080fd5b506018546104d8565b348015610f5257600080fd5b506104d86000805160206154a283398151915281565b348015610f7457600080fd5b50610531610f83366004614f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610fbd57600080fd5b506016546105319060ff1681565b348015610fd757600080fd5b50610500610fe63660046149b4565b6130c9565b348015610ff757600080fd5b5061050061310d565b34801561100c57600080fd5b5061050061101b3660046148c0565b613200565b34801561102c57600080fd5b5061050061103b366004614bb5565b613276565b6000611064601f5461105e6001601e5461333790919063ffffffff16565b90613337565b905090565b611071613343565b601954601d5410156110bf5760405162461bcd60e51b81526020600482015260126024820152713732b2b21036b7b93290383937b837b9b2b960711b60448201526064015b60405180910390fd5b601c805460ff19166001179055565b60006110d98261339d565b92915050565b6110e7613343565b6110f182826133c2565b5050565b6110fd613343565b6016805460ff19166001179055565b60606000805461111b90614fa7565b80601f016020809104026020016040519081016040528092919081815260200182805461114790614fa7565b80156111945780601f1061116957610100808354040283529160200191611194565b820191906000526020600020905b81548152906001019060200180831161117757829003601f168201915b5050505050905090565b60006111a9826134bf565b506000908152600460205260409020546001600160a01b031690565b60006111d0826120fe565b9050806001600160a01b0316836001600160a01b03160361123d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016110b6565b336001600160a01b038216148061125957506112598133610f83565b6112cb5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016110b6565b6112d5838361351e565b505050565b6112e2613343565b6112fa6000805160206154a283398151915282612565565b1561131157601d5461130d90600161358c565b601d555b6113296000805160206154a283398151915282613598565b50565b611334613343565b60165460ff161561137a5760405162461bcd60e51b815260206004820152601060248201526f105919081a5cdcdd5948199bdc989a5960821b60448201526064016110b6565b6040805160a08101825286815260208082018781528284018781526060840187815286151560808601908152601580546000908152601490965296909420945185559151600180860191909155905160028501559051600384015590516004909201805460ff19169215159290921790915590546113f791613337565b6015555050505050565b6000805160206154a2833981519152611419816135ff565b601b54821061145d5760405162461bcd60e51b815260206004820152601060248201526f1ddc9bdb99c81c1c9bdc1bdcd85b125960821b60448201526064016110b6565b6000828152601a60209081526040808320600101805482518185028101850190935280835291929091908301828280156114c057602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116114a2575b5050505050905060005b815181101561151d57336001600160a01b03168282815181106114ef576114ef614fe1565b60200260200101516001600160a01b03160361150b5750505050565b806115158161500d565b9150506114ca565b506000838152601a602090815260408220600190810180549182018155835291200180546001600160a01b031916331790556112d583613609565b611560613343565b6001600160a01b0381166115865760405162461bcd60e51b81526004016110b690615026565b601c5460ff16156115a95760405162461bcd60e51b81526004016110b690615067565b47828110156115ca5760405162461bcd60e51b81526004016110b690615097565b6112d58284613732565b6000805160206154a28339815191526115ec816135ff565b6001600160a01b0382166116125760405162461bcd60e51b81526004016110b690615026565b601b546000908152601a6020526040902060020154600160a01b900460ff16156116895760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79206f6e652070726f706f73616c206f6e207468652073616d652074696044820152616d6560f01b60648201526084016110b6565b6040805160018082528183019092526000916020808301908036833701905050905033816000815181106116bf576116bf614fe1565b60200260200101906001600160a01b031690816001600160a01b03168152505060405180608001604052806116f13390565b6001600160a01b039081168252602080830185905286821660408085019190915260006060909401849052601b548452601a8252909220835181546001600160a01b031916921691909117815582820151805191926117589260018501929091019061482a565b506040820151600290910180546060909301511515600160a01b026001600160a81b03199093166001600160a01b03909216919091179190911790557fd73de6a2d52294554dc58cef38201041af0797569ebd6eb5de524ea8b14a04d66117bc3390565b601b54604080516001600160a01b039384168152928716602084015282015260600160405180910390a1601b546117f4906001613337565b601b55505050565b611807335b8261384b565b6118235760405162461bcd60e51b81526004016110b6906150c3565b6112d58383836138ca565b6000828152600e602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916118a3575060408051808201909152600d546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906118c2906001600160601b031687615110565b6118cc9190615127565b915196919550909350505050565b6000828152600b60205260409020600101546118f5816135ff565b6112d58383613a3b565b600061190a8361215e565b821061196c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016110b6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61199d613343565b60165460ff16156119e65760405162461bcd60e51b8152602060048201526013602482015272155c19185d19481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b600f55565b6000611a04601f54600f5461333790919063ffffffff16565b821115611a5d5760405162461bcd60e51b815260206004820152602160248201527f746f6b656e4964206f75747369646520636f6c6c656374696f6e20626f756e646044820152607360f81b60648201526084016110b6565b6000828152600260205260409020546001600160a01b031615156110d9565b6001600160a01b0381163314611aec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016110b6565b6110f18282613598565b611afe613343565b805160005b818110156112d55760206000848381518110611b2157611b21614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611ba457600160206000858481518110611b6457611b64614fe1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80611bae8161500d565b915050611b03565b611bbe613343565b601855565b611bcb613343565b601c5460ff1615611bee5760405162461bcd60e51b81526004016110b690615067565b47611329611c04600a546001600160a01b031690565b82613732565b611c12613343565b6015548210611c335760405162461bcd60e51b81526004016110b690615149565b60008281526012602090815260408083206001600160a01b038516845290915290205460ff166110f15760008281526012602090815260408083206001600160a01b03851684528252808320805460ff19166001908117909155858452601390925290912054611ca291613337565b6000838152601360205260409020555050565b6112d583838360405180602001604052806000815250612cfc565b611cd933611801565b611cf55760405162461bcd60e51b81526004016110b6906150c3565b611cfe81613ac1565b6000908152600e6020526040812055565b60008281526012602090815260408083206001600160a01b038516845290915281205460ff1680611d5757506001600160a01b038216600090815260208052604090205460ff165b9392505050565b6000611d6960085490565b8210611dcc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016110b6565b60088281548110611ddf57611ddf614fe1565b90600052602060002001549050919050565b600080611e09601f548461358c90919063ffffffff16565b90506000806000805b601554811015611ec757600081815260146020908152604091829020825160a081018452815480825260018301549382018490526002830154948201949094526003820154606082015260049091015460ff1615156080820152919550611e7a908690613337565b9350848610158015611e8b57508386105b15611eb457806080015115611ea65780606001519250611eae565b806040015192505b50611ec7565b5080611ebf8161500d565b915050611e12565b5095945050505050565b611ed9613343565b6010611ee582826151ce565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611f1f6001600f5461358c90919063ffffffff16565b6040805192835260208301919091520160405180910390a150565b611f42613343565b6015548210611f635760405162461bcd60e51b81526004016110b690615149565b805160005b8181101561205757601260008581526020019081526020016000206000848381518110611f9757611f97614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161561204557600084815260126020526040812084518290869085908110611fe757611fe7614fe1565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120805460ff191694151594909417909355868352601390915290205461203590600161358c565b6000858152601360205260409020555b8061204f8161500d565b915050611f68565b50505050565b6060600061206a3361215e565b90506000816001600160401b0381111561208657612086614ada565b6040519080825280602002602001820160405280156120af578160200160208202803683370190505b50905060005b828110156120f7576120c8335b826118ff565b8282815181106120da576120da614fe1565b6020908102919091010152806120ef8161500d565b9150506120b5565b5092915050565b6000818152600260205260408120546001600160a01b0316806110d95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016110b6565b60006001600160a01b0382166121c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016110b6565b506001600160a01b031660009081526003602052604090205490565b6121ec613343565b6121f66000613b64565b565b612200613343565b601c5460ff16156122235760405162461bcd60e51b81526004016110b690615067565b47818110156122445760405162461bcd60e51b81526004016110b690615097565b6110f1612259600a546001600160a01b031690565b83613732565b612267613343565b601e54600090612278906001613337565b9050600061228582613bb6565b60008181526017602052604090205490915060ff1680156122a857506000198114155b6122e55760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081b9bdd081cdd185c9d60921b60448201526064016110b6565b600f54601e546122f59085613337565b111561233c5760405162461bcd60e51b8152602060048201526016602482015275135a5b9d08195e18d95959081b585e081a5cdcdd595960521b60448201526064016110b6565b600083116123805760405162461bcd60e51b81526020600482015260116024820152704174206c65617374206d696e74206f6e6560781b60448201526064016110b6565b60008181526014602052604090206001810154905461239e91613337565b601e546123ab9085613337565b106123f35760405162461bcd60e51b8152602060048201526018602482015277135a5b9d08195e18d959590818985d18da081a5cdcdd595960421b60448201526064016110b6565b601e546124009084613337565b601e5560005b838110156120575761242833601f546124239061105e8786613337565b613c62565b806124328161500d565b915050612406565b612442613343565b601155565b61244f613343565b60155482106124705760405162461bcd60e51b81526004016110b690615149565b805160005b81811015612057576012600085815260200190815260200160002060008483815181106124a4576124a4614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff166125535760008481526012602052604081208451600192908690859081106124f5576124f5614fe1565b6020908102919091018101516001600160a01b031682528181019290925260409081016000908120805460ff1916941515949094179093558683526013909152902054612543906001613337565b6000858152601360205260409020555b8061255d8161500d565b915050612475565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b612598613343565b60155482106125b95760405162461bcd60e51b81526004016110b690615149565b60008281526012602090815260408083206001600160a01b038516845290915290205460ff16156110f15760008281526012602090815260408083206001600160a01b03851684528252808320805460ff191690558483526013909152902054611ca290600161358c565b60006001601554101561266b5760405162461bcd60e51b815260206004820152600f60248201526e34b9b9bab29037333a1032b93937b960891b60448201526064016110b6565b60146000612685600160155461358c90919063ffffffff16565b815260208101919091526040016000206004015460ff16919050565b60606001805461111b90614fa7565b6126b8613343565b6019819055601b541561132957601b54611329906126d790600161358c565b613609565b6126e4613343565b602155565b6126f1613343565b60165460ff161561273a5760405162461bcd60e51b8152602060048201526013602482015272155c19185d19481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b601554861061275b5760405162461bcd60e51b81526004016110b69061528d565b600095865260146020526040909520938455600184019290925560028301556003820155600401805460ff1916911515919091179055565b61279b613c7c565b601e546000906127ac906001613337565b905060006127b982613bb6565b60008181526017602052604090205490915060ff1680156127dc57506000198114155b6128195760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d081b9bdd081cdd185c9d60921b60448201526064016110b6565b600f54601e546128299085613337565b11156128705760405162461bcd60e51b8152602060048201526016602482015275135a5b9d08195e18d95959081b585e081a5cdcdd595960521b60448201526064016110b6565b600083116128b45760405162461bcd60e51b81526020600482015260116024820152704174206c65617374206d696e74206f6e6560781b60448201526064016110b6565b6000818152601460205260409020600181015490546128d291613337565b601e546128df9085613337565b106129275760405162461bcd60e51b8152602060048201526018602482015277135a5b9d08195e18d959590818985d18da081a5cdcdd595960421b60448201526064016110b6565b60008181526014602052604090206004015460ff1615612aa65760008181526012602090815260408083203384528252808320549180529091205460ff9182169116818061297f5750600a546001600160a01b031633145b806129875750805b6129c95760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081bdb9b1e481dda1a5d195b1a5cdd606a1b60448201526064016110b6565b60006129d88661105e3361215e565b600a549091506001600160a01b03163314612aa2578115612a4a57602154811115612a455760405162461bcd60e51b815260206004820152601b60248201527f4578636565642077686974656c697374206d696e74206c696d6974000000000060448201526064016110b6565b612aa2565b8215612aa257601854811115612aa25760405162461bcd60e51b815260206004820152601b60248201527f4578636565642077686974656c697374206d696e74206c696d6974000000000060448201526064016110b6565b5050505b60008181526014602052604081206004015460ff1615612ae357600082815260146020526040902060030154612adc9085613cd5565b9050612b02565b600082815260146020526040902060020154612aff9085613cd5565b90505b34811115612b225760405162461bcd60e51b81526004016110b690615097565b601e54612b2f9085613337565b601e5560005b84811015612b6457612b5233601f546124239061105e8886613337565b80612b5c8161500d565b915050612b35565b505050506113296001600c55565b6110f1338383613ce1565b8051825114612bce5760405162461bcd60e51b815260206004820152601960248201527f6172726179206c656e67746820696e636f6e73697374656e740000000000000060448201526064016110b6565b60005b81518110156112d557612c1733848381518110612bf057612bf0614fe1565b6020026020010151848481518110612c0a57612c0a614fe1565b6020026020010151611cb5565b80612c218161500d565b915050612bd1565b612c31613343565b612c496000805160206154a283398151915282612565565b612c5f57601d54612c5b906001613337565b601d555b6113296000805160206154a283398151915282613a3b565b612c7f613343565b6015548110612ca05760405162461bcd60e51b81526004016110b690615149565b6000908152601460205260409020600401805460ff19169055565b612cc3613343565b6015548110612ce45760405162461bcd60e51b81526004016110b69061528d565b6000908152601760205260409020805460ff19169055565b612d06338361384b565b612d225760405162461bcd60e51b81526004016110b6906150c3565b61205784848484613daf565b6060612d39826134bf565b6000612d43613de2565b90506000815111612d635760405180602001604052806000815250611d57565b80612d6d84613df1565b604051602001612d7e9291906152b9565b6040516020818303038152906040529392505050565b60108054612da190614fa7565b80601f0160208091040260200160405190810160405280929190818152602001828054612dcd90614fa7565b8015612e1a5780601f10612def57610100808354040283529160200191612e1a565b820191906000526020600020905b815481529060010190602001808311612dfd57829003601f168201915b505050505081565b60005b81518110156112d557612e453384848481518110612c0a57612c0a614fe1565b80612e4f8161500d565b915050612e25565b6000828152600b6020526040902060010154612e72816135ff565b6112d58383613598565b600083815260126020908152604080832033845290915290205460ff1615612ee65760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e0000000060448201526064016110b6565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050612f60838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150849050613e83565b612f9d5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b60448201526064016110b6565b60008481526012602090815260408083203384528252808320805460ff19166001908117909155878452601390925290912054612fd991613337565b60009485526013602052604090942093909355505050565b612ff9613343565b601f55565b60006130093361215e565b90506000816001600160401b0381111561302557613025614ada565b60405190808252806020026020018201604052801561304e578160200160208202803683370190505b50905060005b8281101561309457613065336120c2565b82828151811061307757613077614fe1565b60209081029190910101528061308c8161500d565b915050613054565b5060005b82811015612057576130b73385848481518110612c0a57612c0a614fe1565b806130c18161500d565b915050613098565b6130d1613343565b60155481106130f25760405162461bcd60e51b81526004016110b69061528d565b6000908152601760205260409020805460ff19166001179055565b613115613343565b60165460ff161561315e5760405162461bcd60e51b815260206004820152601360248201527214995b5bdd99481a5cdcdd5948199bdc989a59606a1b60448201526064016110b6565b60006015541161319e5760405162461bcd60e51b815260206004820152600b60248201526a426174636820656d70747960a81b60448201526064016110b6565b601460006131b8600160155461358c90919063ffffffff16565b8152602081019190915260400160009081208181556001808201839055600282018390556003820192909255600401805460ff191690556015546131fb9161358c565b601555565b613208613343565b6001600160a01b03811661326d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110b6565b61132981613b64565b61327e613343565b805160005b818110156112d557602060008483815181106132a1576132a1614fe1565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615613325576000602060008584815181106132e5576132e5614fe1565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8061332f8161500d565b915050613283565b6000611d5782846152e8565b600a546001600160a01b031633146121f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110b6565b60006001600160e01b0319821663152a902d60e11b14806110d957506110d982613e99565b6127106001600160601b03821611156134305760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016110b6565b6001600160a01b0382166134865760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016110b6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600d55565b6000818152600260205260409020546001600160a01b03166113295760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016110b6565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613553826120fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d5782846152fb565b6135a28282612565565b156110f1576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6113298133613ebe565b6000818152601a602090815260408083206001018054825181850281018501909352808352919290919083018282801561366c57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161364e575b5050505050905060008151905060195481101580156136a457506000838152601a6020526040902060020154600160a01b900460ff16155b156112d5576000838152601a602052604090206002015447906136d0906001600160a01b031682613732565b6000848152601a602052604090819020600201805460ff60a01b1916600160a01b179055517f08965c2d3dbff3f8d73612157e94da0c539239bb6750815b8b0e62f05f7d8cda906137249086815260200190565b60405180910390a150505050565b804710156137825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110b6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146137cf576040519150601f19603f3d011682016040523d82523d6000602084013e6137d4565b606091505b50509050806112d55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016110b6565b600080613857836120fe565b9050806001600160a01b0316846001600160a01b0316148061389e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806138c25750836001600160a01b03166138b78461119e565b6001600160a01b0316145b949350505050565b826001600160a01b03166138dd826120fe565b6001600160a01b0316146139035760405162461bcd60e51b81526004016110b69061530e565b6001600160a01b0382166139655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110b6565b6139728383836001613f17565b826001600160a01b0316613985826120fe565b6001600160a01b0316146139ab5760405162461bcd60e51b81526004016110b69061530e565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b613a458282612565565b6110f1576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613a7d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000613acc826120fe565b9050613adc816000846001613f17565b613ae5826120fe565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008080600019815b601554811015613c5957600081815260146020908152604091829020825160a081018452815480825260018301549382018490526002830154948201949094526003820154606082015260049091015460ff1615156080820152919550613c27908690613337565b9350848710158015613c3857508387105b15613c465781925050613c59565b5080613c518161500d565b915050613bbf565b50949350505050565b6110f1828260405180602001604052806000815250613f23565b6002600c5403613cce5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016110b6565b6002600c55565b6000611d578284615110565b816001600160a01b0316836001600160a01b031603613d425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110b6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613dba8484846138ca565b613dc684848484613f56565b6120575760405162461bcd60e51b81526004016110b690615353565b60606010805461111b90614fa7565b60606000613dfe83614057565b60010190506000816001600160401b03811115613e1d57613e1d614ada565b6040519080825280601f01601f191660200182016040528015613e47576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613e5157509392505050565b600082613e90858461412f565b14949350505050565b60006001600160e01b03198216637965db0b60e01b14806110d957506110d98261417c565b613ec88282612565565b6110f157613ed5816141a1565b613ee08360206141b3565b604051602001613ef19291906153a5565b60408051601f198184030181529082905262461bcd60e51b82526110b6916004016149a1565b6120578484848461434e565b613f2d8383614482565b613f3a6000848484613f56565b6112d55760405162461bcd60e51b81526004016110b690615353565b60006001600160a01b0384163b1561404c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f9a90339089908890889060040161541a565b6020604051808303816000875af1925050508015613fd5575060408051601f3d908101601f19168201909252613fd291810190615457565b60015b614032573d808015614003576040519150601f19603f3d011682016040523d82523d6000602084013e614008565b606091505b50805160000361402a5760405162461bcd60e51b81526004016110b690615353565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506138c2565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106140965772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106140c2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106140e057662386f26fc10000830492506010015b6305f5e10083106140f8576305f5e100830492506008015b612710831061410c57612710830492506004015b6064831061411e576064830492506002015b600a83106110d95760010192915050565b600081815b8451811015614174576141608286838151811061415357614153614fe1565b602002602001015161461b565b91508061416c8161500d565b915050614134565b509392505050565b60006001600160e01b0319821663780e9d6360e01b14806110d957506110d98261464a565b60606110d96001600160a01b03831660145b606060006141c2836002615110565b6141cd9060026152e8565b6001600160401b038111156141e4576141e4614ada565b6040519080825280601f01601f19166020018201604052801561420e576020820181803683370190505b509050600360fc1b8160008151811061422957614229614fe1565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061425857614258614fe1565b60200101906001600160f81b031916908160001a905350600061427c846002615110565b6142879060016152e8565b90505b60018111156142ff576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106142bb576142bb614fe1565b1a60f81b8282815181106142d1576142d1614fe1565b60200101906001600160f81b031916908160001a90535060049490941c936142f881615474565b905061428a565b508315611d575760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110b6565b60018111156143bd5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016110b6565b816001600160a01b0385166144195761441481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61443c565b836001600160a01b0316856001600160a01b03161461443c5761443c858261469a565b6001600160a01b0384166144585761445381614737565b61447b565b846001600160a01b0316846001600160a01b03161461447b5761447b84826147e6565b5050505050565b6001600160a01b0382166144d85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110b6565b6000818152600260205260409020546001600160a01b03161561453d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b6565b61454b600083836001613f17565b6000818152600260205260409020546001600160a01b0316156145b05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b6565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310614637576000828152602084905260409020611d57565b6000838152602083905260409020611d57565b60006001600160e01b031982166380ac58cd60e01b148061467b57506001600160e01b03198216635b5e139f60e01b145b806110d957506301ffc9a760e01b6001600160e01b03198316146110d9565b600060016146a78461215e565b6146b191906152fb565b600083815260076020526040902054909150808214614704576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614749906001906152fb565b6000838152600960205260408120546008805493945090928490811061477157614771614fe1565b90600052602060002001549050806008838154811061479257614792614fe1565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806147ca576147ca61548b565b6001900381819060005260206000200160009055905550505050565b60006147f18361215e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805482825590600052602060002090810192821561487f579160200282015b8281111561487f57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061484a565b5061488b92915061488f565b5090565b5b8082111561488b5760008155600101614890565b80356001600160a01b03811681146148bb57600080fd5b919050565b6000602082840312156148d257600080fd5b611d57826148a4565b6001600160e01b03198116811461132957600080fd5b60006020828403121561490357600080fd5b8135611d57816148db565b6000806040838503121561492157600080fd5b61492a836148a4565b915060208301356001600160601b038116811461494657600080fd5b809150509250929050565b60005b8381101561496c578181015183820152602001614954565b50506000910152565b6000815180845261498d816020860160208601614951565b601f01601f19169290920160200192915050565b602081526000611d576020830184614975565b6000602082840312156149c657600080fd5b5035919050565b600080604083850312156149e057600080fd5b6149e9836148a4565b946020939093013593505050565b803580151581146148bb57600080fd5b600080600080600060a08688031215614a1f57600080fd5b85359450602086013593506040860135925060608601359150614a44608087016149f7565b90509295509295909350565b60008060408385031215614a6357600080fd5b82359150614a73602084016148a4565b90509250929050565b600080600060608486031215614a9157600080fd5b614a9a846148a4565b9250614aa8602085016148a4565b9150604084013590509250925092565b60008060408385031215614acb57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614b1857614b18614ada565b604052919050565b60006001600160401b03821115614b3957614b39614ada565b5060051b60200190565b600082601f830112614b5457600080fd5b81356020614b69614b6483614b20565b614af0565b82815260059290921b84018101918181019086841115614b8857600080fd5b8286015b84811015614baa57614b9d816148a4565b8352918301918301614b8c565b509695505050505050565b600060208284031215614bc757600080fd5b81356001600160401b03811115614bdd57600080fd5b6138c284828501614b43565b60006001600160401b03831115614c0257614c02614ada565b614c15601f8401601f1916602001614af0565b9050828152838383011115614c2957600080fd5b828260208301376000602084830101529392505050565b600060208284031215614c5257600080fd5b81356001600160401b03811115614c6857600080fd5b8201601f81018413614c7957600080fd5b6138c284823560208401614be9565b60008060408385031215614c9b57600080fd5b8235915060208301356001600160401b03811115614cb857600080fd5b614cc485828601614b43565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015614d0657835183529284019291840191600101614cea565b50909695505050505050565b60008060008060008060c08789031215614d2b57600080fd5b8635955060208701359450604087013593506060870135925060808701359150614d5760a088016149f7565b90509295509295509295565b60008060408385031215614d7657600080fd5b614d7f836148a4565b9150614a73602084016149f7565b600082601f830112614d9e57600080fd5b81356020614dae614b6483614b20565b82815260059290921b84018101918181019086841115614dcd57600080fd5b8286015b84811015614baa5780358352918301918301614dd1565b60008060408385031215614dfb57600080fd5b82356001600160401b0380821115614e1257600080fd5b614e1e86838701614b43565b93506020850135915080821115614e3457600080fd5b50614cc485828601614d8d565b60008060008060808587031215614e5757600080fd5b614e60856148a4565b9350614e6e602086016148a4565b92506040850135915060608501356001600160401b03811115614e9057600080fd5b8501601f81018713614ea157600080fd5b614eb087823560208401614be9565b91505092959194509250565b60008060408385031215614ecf57600080fd5b614ed8836148a4565b915060208301356001600160401b03811115614ef357600080fd5b614cc485828601614d8d565b600080600060408486031215614f1457600080fd5b8335925060208401356001600160401b0380821115614f3257600080fd5b818601915086601f830112614f4657600080fd5b813581811115614f5557600080fd5b8760208260051b8501011115614f6a57600080fd5b6020830194508093505050509250925092565b60008060408385031215614f9057600080fd5b614f99836148a4565b9150614a73602084016148a4565b600181811c90821680614fbb57607f821691505b602082108103614fdb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161501f5761501f614ff7565b5060010190565b60208082526021908201527f61646472657373207a65726f206973206e6f7420612076616c6964206f776e656040820152603960f91b606082015260800190565b60208082526016908201527515da5d1a191c985dc81b995959081c1c9bdc1bdcd85b60521b604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b80820281158282048414176110d9576110d9614ff7565b60008261514457634e487b7160e01b600052601260045260246000fd5b500490565b60208082526018908201527f496e646578206f7574206f6620626174636820626f756e640000000000000000604082015260600190565b601f8211156112d557600081815260208120601f850160051c810160208610156151a75750805b601f850160051c820191505b818110156151c6578281556001016151b3565b505050505050565b81516001600160401b038111156151e7576151e7614ada565b6151fb816151f58454614fa7565b84615180565b602080601f83116001811461523057600084156152185750858301515b600019600386901b1c1916600185901b1785556151c6565b600085815260208120601f198616915b8281101561525f57888601518255948401946001909101908401615240565b508582101561527d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602080825260129082015271125b99195e081bdd5d081bd988189bdd5b9960721b604082015260600190565b600083516152cb818460208801614951565b8351908301906152df818360208801614951565b01949350505050565b808201808211156110d9576110d9614ff7565b818103818111156110d9576110d9614ff7565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516153dd816017850160208801614951565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161540e816028840160208801614951565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061544d90830184614975565b9695505050505050565b60006020828403121561546957600080fd5b8151611d57816148db565b60008161548357615483614ff7565b506000190190565b634e487b7160e01b600052603160045260246000fdfe5d8e12c39142ff96d79d04d15d1ba1269e4fe57bb9d26f43523628b34ba108eca26469706673582212208d4f11ede65ea6b95f7a6e9ae2c852b03dc520d4556d040b036d41ae7542429d64736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000c4d65656c696572204d696c6f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d65656c696572204d696c6f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d506d503877337177455a5a3475684e5257566854323873597a486539376d337772476d6f6a624439706448682f00000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Meelier Milo
Arg [1] : symbol_ (string): Meelier Milo
Arg [2] : baseTokenURI_ (string): ipfs://QmPmP8w3qwEZZ4uhNRWVhT28sYzHe97m3wrGmojbD9pdHh/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 4d65656c696572204d696c6f0000000000000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 4d65656c696572204d696c6f0000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d506d503877337177455a5a3475684e5257566854323873
Arg [9] : 597a486539376d337772476d6f6a624439706448682f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.