ETH Price: $3,487.55 (+2.32%)

Token

CryptoNinja Online Genesis (CNOG)
 

Overview

Max Total Supply

1,583 CNOG

Holders

628

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
sarara.eth
Balance
1 CNOG
0xbf263dc8676850ad98f20a47c0fcbcc2bed1da89
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:
CryptoNinjaOnline

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 18 : CryptoNinjaOnline.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "contract-allow-list/contracts/ERC721AntiScam/ERC721AntiScam.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./IERC5192.sol";

contract CryptoNinjaOnline is ERC721AntiScam, IERC5192, ERC2981, AccessControl {

    struct WithdrawSetting {
        address receiver;
        uint256 ratio;
    }

    struct SalesSetting {
        uint256 salesId;
        bool isPublic;
        bytes32 merkleRoot;
        uint256 startTime;
        uint256 endTime;
    }

    // Manage
    bytes32 public constant ADMIN = "ADMIN";
    bytes32 public constant MINTER = "MINTER";

    // Sales
    uint256 public maxSupply;
    uint256 public mintCost;
    SalesSetting[] private salesSettings;
    WithdrawSetting[] public withdrawSettings;
    mapping(uint256 => mapping(address => uint256)) public mintedAmountBySales;

    // Lock
    mapping(address => bool) public ownerLocked;
    mapping(uint256 => bool) public tokenLocked;

    // Metadata
    string public baseURI;
    string public baseExtension;

    // Constructor
    constructor() ERC721A("CryptoNinja Online Genesis", "CNOG") {
        grantRole(ADMIN, msg.sender);
    }

    // AirDrop
    function airdrop(address[] calldata _addresses, uint256[] calldata _amounts) external onlyRole(ADMIN) {
        require(_addresses.length == _amounts.length, "Invalid Arguments");
        uint256 _supply = totalSupply();
        for (uint256 i = 0; i < _addresses.length; i++) {
            uint256 _amount = _amounts[i];
            if (_supply + _amount > maxSupply) continue;
            _mint(_addresses[i], _amount);
            _supply = _supply + _amount;
        }
    }

    // Mint
    function mint(address _to, uint256 _amount, uint256 _allowedAmount, bytes32[] calldata _merkleProof) external payable {
        require(mintCost > 0, "Invalid Sales Info");
        require(msg.value >= _amount * mintCost, "Not Enough Eth");
        require(totalSupply() + _amount <= maxSupply, "Over Max Supply");
        SalesSetting memory _salesSetting = _getCurrentSalesSetting();
        if (!_salesSetting.isPublic) {
            bytes32 node = keccak256(abi.encodePacked(msg.sender, _allowedAmount));
            require(MerkleProof.verifyCalldata(_merkleProof, _salesSetting.merkleRoot, node), "Invalid proof");
            require(mintedAmountBySales[_salesSetting.salesId][msg.sender] + _amount <= _allowedAmount, "Over Max Amount Per Address");
        }
        mintedAmountBySales[_salesSetting.salesId][msg.sender] += _amount;
        _mint(_to, _amount);
    }
    function externalMint(address _to, uint256 _amount) external onlyRole(MINTER) {
        _mint(_to, _amount);
    }
    function externalBurnMint(address _to, uint256[] memory _burnTokenIds, uint256 _amount) external onlyRole(MINTER) {
        for (uint256 i = 0; i < _burnTokenIds.length; i++) {
            uint256 _tokenId = _burnTokenIds[i];
            _burn(_tokenId);
        }
        _mint(_to, _amount);
    }

    // Getter
    function getCurrentSales() view public returns (uint256, bool, uint256, uint256) {
        return (
            _getCurrentSalesSetting().salesId,
            _getCurrentSalesSetting().isPublic,
            _getCurrentSalesSetting().startTime,
            _getCurrentSalesSetting().endTime
        );
    }
    function _getCurrentSalesSetting() view private returns (SalesSetting memory) {
        uint256 _currentTimestamp = block.timestamp;
        for (uint256 i = 0; i < salesSettings.length; i++) {
            SalesSetting memory _salesSetting = salesSettings[i];
            if (_salesSetting.startTime <= _currentTimestamp && _currentTimestamp < _salesSetting.endTime) {
                return _salesSetting;
            }
        }
        revert();
    }
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
    }
    function getTotalBurned() view public returns (uint256) {
        return _totalBurned();
    }
    function ownTokenIds(address _owner) view public returns (uint256[] memory) {
        uint256 tokenCount = 0;
        for (uint256 tokenId = 1; tokenId <= totalSupply(); tokenId++) {
            if (ownerOf(tokenId) == _owner) {
                tokenCount++;
            }
        }
        uint256[] memory _tokenIds = new uint256[](tokenCount);
        uint256 index = 0;
        for (uint256 tokenId = 1; tokenId <= totalSupply(); tokenId++) {
            if (ownerOf(tokenId) == _owner) {
                _tokenIds[index] = tokenId;
                index++;
            }
        }
        return _tokenIds;
    }

    // Setter
    function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) public onlyRole(ADMIN) {
        _setDefaultRoyalty(_receiver, _feeNumerator);
    }
    function setWithdrawSettings(WithdrawSetting[] calldata _value) public onlyRole(ADMIN) {
        withdrawSettings = _value;
    }
    function setBaseURI(string memory _value) public onlyRole(ADMIN) {
        baseURI = _value;
    }
    function setBaseExtension(string memory _value) public onlyRole(ADMIN) {
        baseExtension = _value;
    }
    function resetBaseExtension() public onlyRole(ADMIN) {
        baseExtension = "";
    }
    function setSalesSettings(SalesSetting[] calldata _value) public onlyRole(ADMIN) {
        salesSettings = _value;
    }
    function setMaxSupply(uint256 _value) public onlyRole(ADMIN) {
        maxSupply = _value;
    }
    function setMintCost(uint256 _value) public onlyRole(ADMIN) {
        mintCost = _value;
    }
    // Metadata
    function withdraw() public onlyRole(ADMIN) {
        uint256 _totalRatio = 0;
        for (uint256 i = 0; i < withdrawSettings.length; i++) {
            _totalRatio += withdrawSettings[i].ratio;
        }

        uint256 _totalBalance = address(this).balance;
        uint256 _remainBalance = _totalBalance;
        bool success;
        for (uint256 i = 0; i < withdrawSettings.length; i++) {
            WithdrawSetting memory _withdrawSetting = withdrawSettings[i];
            if (i == withdrawSettings.length - 1) {
                (success, ) = payable(_withdrawSetting.receiver).call{value: _remainBalance}("");
                require(success);
            } else {
                uint256 payAmount = _totalBalance * _withdrawSetting.ratio / _totalRatio;
                (success, ) = payable(_withdrawSetting.receiver).call{value: payAmount}("");
                require(success);
                _remainBalance -= payAmount;
            }
        }
    }

    // Lock
    function emitLockState(uint256 _tokenId) public {
        if (locked(_tokenId)) {
            emit Locked(_tokenId);
        } else {
            emit Unlocked(_tokenId);
        }
    }
    function ownerLock(address _owner, bool _value) public {
        require(msg.sender == _owner || hasRole(ADMIN, msg.sender));
        ownerLocked[_owner] = _value;
    }
    function tokenLock(uint256 _tokenId, bool _value) public {
        require(ownerOf(_tokenId) == msg.sender || hasRole(ADMIN, msg.sender));
        tokenLocked[_tokenId] = _value;
        emitLockState(_tokenId);
    }
    function locked(uint256 _tokenId) override public view returns (bool){
        address _owner = ownerOf(_tokenId);
        return ownerLocked[_owner] || tokenLocked[_tokenId];
    }
    function approve(address _operator, uint256 _tokenId) public override payable {
        require(!locked(_tokenId), "Locked");
        super.approve(_operator, _tokenId);
    }
    function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal virtual override {
        require(from == address(0) || to == address(0) || !locked(startTokenId), "Locked");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }
    function setApprovalForAll(address _operator, bool _approved) public virtual override {
        require(!ownerLocked[msg.sender], "OwnerLocked");
        super.setApprovalForAll(_operator, _approved);
    }

    // AccessControl
    function grantRole(bytes32 role, address account) public override onlyOwner {
        _grantRole(role, account);
    }
    function revokeRole(bytes32 role, address account) public override onlyOwner {
        _revokeRole(role, account);
    }

    // interface
    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721AntiScam, ERC2981) returns (bool) {
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC721AntiScam.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId);
    }
}

File 2 of 18 : IERC5192.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;

interface IERC5192 {
    /// @notice Emitted when the locking status is changed to locked.
    /// @dev If a token is minted and the status is locked, this event should be emitted.
    /// @param tokenId The identifier for a token.
    event Locked(uint256 tokenId);

    /// @notice Emitted when the locking status is changed to unlocked.
    /// @dev If a token is minted and the status is unlocked, this event should be emitted.
    /// @param tokenId The identifier for a token.
    event Unlocked(uint256 tokenId);

    /// @notice Returns the locking status of an Soulbound Token
    /// @dev SBTs assigned to zero address are considered invalid, and queries
    /// about them do throw.
    /// @param tokenId The identifier for an SBT.
    function locked(uint256 tokenId) external view returns (bool);
}

File 3 of 18 : ERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "erc721a/contracts/ERC721A.sol";
import './IERC721AntiScam.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../proxy/interface/IContractAllowListProxy.sol";

/// @title AntiScam機能付きERC721A
/// @dev Readmeを見てください。

abstract contract ERC721AntiScam is ERC721A, IERC721AntiScam, Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    IContractAllowListProxy public CAL;
    EnumerableSet.AddressSet localAllowedAddresses;

    /*//////////////////////////////////////////////////////////////
    ロック変数。トークンごとに個別ロック設定を行う
    //////////////////////////////////////////////////////////////*/

    // token lock
    mapping(uint256 => LockStatus) internal _tokenLockStatus;
    mapping(uint256 => uint256) internal _tokenCALLevel;

    // wallet lock
    mapping(address => LockStatus) internal _walletLockStatus;
    mapping(address => uint256) internal _walletCALLevel;

    // contract lock
    LockStatus public contractLockStatus = LockStatus.CalLock;
    uint256 public CALLevel = 1;

    /*///////////////////////////////////////////////////////////////
    ロック機能ロジック
    //////////////////////////////////////////////////////////////*/

    function getLockStatus(uint256 tokenId) public virtual view returns (LockStatus) {
        require(_exists(tokenId), "AntiScam: locking query for nonexistent token");
        return _getLockStatus(ownerOf(tokenId), tokenId);
    }

    function getTokenLocked(address operator, uint256 tokenId) public virtual view returns(bool isLocked) {
        address holder = ownerOf(tokenId);
        LockStatus status = _getLockStatus(holder, tokenId);
        uint256 level = _getCALLevel(holder, tokenId);

        if (status == LockStatus.CalLock) {
            if (ownerOf(tokenId) == msg.sender) {
                return false;
            }
        } else {
            return _getLocked(operator, status, level);
        }
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    function getLocked(address operator, address holder) public virtual view returns(bool) {
        LockStatus status = _getLockStatus(holder);
        uint256 level = _getCALLevel(holder);
        return _getLocked(operator, status, level);
    }

    function _getLocked(address operator, LockStatus status, uint256 level) internal virtual view returns(bool){
        if (status == LockStatus.UnLock) {
            return false;
        } else if (status == LockStatus.AllLock)  {
            return true;
        } else if (status == LockStatus.CalLock) {
            if (isLocalAllowed(operator)) {
                return false;
            }
            if (address(CAL) == address(0)) {
                return true;
            }
            if (CAL.isAllowed(operator, level)) {
                return false;
            } else {
                return true;
            }
        } else {
            revert("LockStatus is invalid");
        }
    }

    function addLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.add(_contract);
    }

    function removeLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.remove(_contract);
    }

    function isLocalAllowed(address _transferer)
        public
        view
        returns (bool)
    {
        bool Allowed = false;
        if(localAllowedAddresses.contains(_transferer) == true){
            Allowed = true;
        }
        return Allowed;
    }

    function _getLockStatus(address holder, uint256 tokenId) internal virtual view returns(LockStatus){
        if(_tokenLockStatus[tokenId] != LockStatus.UnSet) {
            return _tokenLockStatus[tokenId];
        }

        return _getLockStatus(holder);
    }

    function _getLockStatus(address holder) internal virtual view returns(LockStatus){
        if(_walletLockStatus[holder] != LockStatus.UnSet) {
            return _walletLockStatus[holder];
        }

        return contractLockStatus;
    }

    function _getCALLevel(address holder, uint256 tokenId) internal virtual view returns(uint256){
        if(_tokenCALLevel[tokenId] > 0) {
            return _tokenCALLevel[tokenId];
        }

        return _getCALLevel(holder);
    }

    function _getCALLevel(address holder) internal virtual view returns(uint256){
        if(_walletCALLevel[holder] > 0) {
            return _walletCALLevel[holder];
        }

        return CALLevel;
    }

    // For token lock
    function _lock(LockStatus status, uint256 id) internal virtual {
        _tokenLockStatus[id] = status;
        emit TokenLock(ownerOf(id), msg.sender, uint(status), id);
    }

    // For wallet lock
    function _setWalletLock(address to, LockStatus status) internal virtual {
        _walletLockStatus[to] = status;
    }

    function _setWalletCALLevel(address to ,uint256 level) internal virtual {
        _walletCALLevel[to] = level;
    }

    // For contract lock
    function setContractAllowListLevel(uint256 level) external onlyOwner{
        CALLevel = level;
    }

    function setContractLockStatus(LockStatus status) external onlyOwner {
       require(status != LockStatus.UnSet, "AntiScam: contract lock status can not set UNSET");
       contractLockStatus = status;
    }

    function setCAL(address _cal) external onlyOwner {
        CAL = IContractAllowListProxy(_cal);
    }

    /*///////////////////////////////////////////////////////////////
                              OVERRIDES
    //////////////////////////////////////////////////////////////*/

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        if(getLocked(operator, owner)){
            return false;
        }
        return super.isApprovedForAll(owner, operator);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require (getLocked(operator, msg.sender) == false || approved == false, "Can not approve locked token");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require (getTokenLocked(to, tokenId) == false, "Can not approve locked token");
        super.approve(to, tokenId);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // トークンがロックされている場合、転送を許可しない
            require(getTokenLocked(to, startTokenId) == false , "LOCKED");
        }
    }

    function _afterTokenTransfers(
        address from,
        address /*to*/,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // ロックをデフォルトに戻す。(デフォルトは、 contractのLock status)
            delete _tokenLockStatus[startTokenId];
            delete _tokenCALLevel[startTokenId];
        }
    }


    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC721AntiScam).interfaceId ||
            super.supportsInterface(interfaceId);
    }

}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 10 of 18 : IERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @title IERC721AntiScam
/// @dev 詐欺防止機能付きコントラクトのインターフェース
/// @author hayatti.eth

interface IERC721AntiScam {

   enum LockStatus {
      UnSet,
      UnLock,
      CalLock,
      AllLock
   }

    /**
     * @dev 個別ロックが指定された場合のイベント
     */
    event TokenLock(address indexed owner, address indexed from, uint lockStatus, uint256 indexed tokenId);

    /**
     * @dev 該当トークンIDにおけるロックレベルを return で返す。
     */
    function getLockStatus(uint256 tokenId) external view returns (LockStatus);

    /**
     * @dev 該当トークンIDにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getTokenLocked(address to ,uint256 tokenId) external view returns (bool);
    
    /**
     * @dev 該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address to) external view returns (uint256[] memory);

    /**
     * @dev 該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    
    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory);

    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    /**
     * @dev 該当ウォレットアドレスにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getLocked(address to ,address holder) external view returns (bool);

    /**
     * @dev CALのリストに無い独自の許可アドレスを追加する場合、こちらにアドレスを記載する。
     */
    function addLocalContractAllowList(address _contract) external;

    /**
     * @dev CALのリストにある独自の許可アドレスを削除する場合、こちらにアドレスを記載する。
     */
    function removeLocalContractAllowList(address _contract) external;


    /**
     * @dev CALを利用する場合のCALのレベルを設定する。レベルが高いほど、許可されるコントラクトの範囲が狭い。
     */
    function setContractAllowListLevel(uint256 level) external;

    /**
     * @dev デフォルトでのロックレベルを指定する。
     */
    function setContractLockStatus(LockStatus status) external;

}

File 11 of 18 : IContractAllowListProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IContractAllowListProxy {
    function isAllowed(address _transferer, uint256 _level)
        external
        view
        returns (bool);
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 18 : 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 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockStatus","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenLock","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":"tokenId","type":"uint256"}],"name":"Unlocked","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CAL","outputs":[{"internalType":"contract IContractAllowListProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CALLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"emitLockState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"externalBurnMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"externalMint","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":[],"name":"getCurrentSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"holder","type":"address"}],"name":"getLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenLocked","outputs":[{"internalType":"bool","name":"isLocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"_transferer","type":"address"}],"name":"isLocalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountBySales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"ownTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"ownerLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ownerLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_contract","type":"address"}],"name":"removeLocalContractAllowList","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":[],"name":"resetBaseExtension","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cal","type":"address"}],"name":"setCAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setContractAllowListLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"status","type":"uint8"}],"name":"setContractLockStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"salesId","type":"uint256"},{"internalType":"bool","name":"isPublic","type":"bool"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct CryptoNinjaOnline.SalesSetting[]","name":"_value","type":"tuple[]"}],"name":"setSalesSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"internalType":"struct CryptoNinjaOnline.WithdrawSetting[]","name":"_value","type":"tuple[]"}],"name":"setWithdrawSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"tokenLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawSettings","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"stateMutability":"view","type":"function"}]

608034620003e65760406001600160401b0382820181811184821017620002fb578252601a83526020907f43727970746f4e696e6a61204f6e6c696e652047656e657369730000000000008285015282519383850185811083821117620002fb5784526004855263434e4f4760e01b838601528051828111620002fb576002928354916001938484811c94168015620003db575b87851014620002da578190601f9485811162000385575b5087908583116001146200031d5760009262000311575b5050600019600383901b1c191690841b1784555b8651908111620002fb5760039182548481811c91168015620002f0575b87821014620002da578181116200028f575b50859082116001146200022657819293949596976000926200021a575b505060001982841b1c191690831b1790555b600081815560088054336001600160a01b03198216811790925590916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a360ff1991826010541617601055806011556420a226a4a760d91b9283600052601481528460002033600052815260ff85600020541615620001ca575b845161457c9081620003ec8239f35b8360005260148152846000209033600052528360002091825416179055339033907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d600080a438808080620001bb565b01519050388062000121565b601f1982169083600052866000209160005b8181106200027957509883869798999a9695961062000260575b505050811b01905562000133565b015160001983861b60f8161c1916905538808062000252565b8a83015184559286019291880191880162000238565b83600052866000208280850160051c820192898610620002d0575b0160051c019085905b828110620002c357505062000104565b60008155018590620002b3565b92508192620002aa565b634e487b7160e01b600052602260045260246000fd5b90607f1690620000f2565b634e487b7160e01b600052604160045260246000fd5b015190503880620000c1565b90869350601f1983169188600052896000209260005b8b8282106200036e575050841162000354575b505050811b018455620000d5565b015160001960f88460031b161c1916905538808062000346565b8385015186558a9790950194938401930162000333565b90915086600052876000208580850160051c8201928a8610620003d1575b918891869594930160051c01915b828110620003c1575050620000aa565b60008155859450889101620003b1565b92508192620003a3565b93607f169362000093565b600080fdfe60806040526004361015610013575b600080fd5b60003560e01c8063018d9b501461058b57806301ffc9a714610582578063025e332e1461057957806304634d8d1461057057806306fdde0314610567578063081812fc1461055e5780630896013214610555578063095ea7b31461054c5780630eda8f561461054357806310c395bf1461053a57806318160ddd1461053157806323b872dd14610528578063248a9ca31461051f578063285d47ea146105165780632a0acc6a1461050d5780632a55205a146105045780632f2ff15d146104fb57806336568abe146104f257806336a050b7146104e9578063396e8f53146104e05780633ccfd60b146104d757806340285d5f146104ce57806342842e0e146104c55780634425f8a2146104bc57806346694b7d146104b35780634e4ab122146104aa5780634f3db346146104a1578063501c9be21461049857806355f804b31461048f578063597d78e1146104865780635f1b1b861461047d5780636352211e146104745780636526695b1461046b57806367243482146104625780636c0360eb146104595780636f8b44b01461045057806370a0823114610447578063715018a61461043e57806372b44d71146104355780638545f4ea1461042c5780638727a4fb146104235780638978b2da1461041a5780638da5cb5b1461041157806391d148541461040857806395d89b41146103ff578063960b2263146103f657806399f98898146103ed578063a217fddf146103e4578063a22cb465146103db578063a4c3f31e146103d2578063a86e6ee4146103c9578063af994151146103c0578063b45a3c0e146103b7578063b55cd04b146103ae578063b88d4fde146103a5578063bdb4b8481461039c578063c668286214610393578063c87b56dd1461038a578063d547741f14610381578063d5abeb0114610378578063d65a887c1461036f578063da3ef23f14610366578063e985e9c51461035d578063ea5a899814610354578063eabf719c1461034b578063f2fde38b14610342578063f7510ba614610339578063fb684df614610330578063fe6d8124146103275763ff7682121461031f57600080fd5b61000e612a8e565b5061000e612a69565b5061000e612a41565b5061000e612997565b5061000e6128b9565b5061000e61289c565b5061000e612858565b5061000e61283e565b5061000e612730565b5061000e6126ad565b5061000e61268e565b5061000e61265d565b5061000e612565565b5061000e6124bd565b5061000e61249e565b5061000e61243a565b5061000e61241b565b5061000e6123fc565b5061000e6123e0565b5061000e6123b4565b5061000e6122f1565b5061000e612179565b5061000e612137565b5061000e612105565b5061000e612003565b5061000e611f5b565b5061000e611f03565b5061000e611edb565b5061000e611e23565b5061000e611cac565b5061000e611c8a565b5061000e611c53565b5061000e611bf6565b5061000e611b95565b5061000e611b73565b5061000e611acb565b5061000e6118c6565b5061000e611758565b5061000e611728565b5061000e6116ac565b5061000e61150d565b5061000e6113ce565b5061000e61130e565b5061000e6112ef565b5061000e6112c3565b5061000e611291565b5061000e611274565b5061000e611231565b5061000e6111d7565b5061000e6110b2565b5061000e61108a565b5061000e610ff0565b5061000e610e7b565b5061000e610db1565b5061000e610d00565b5061000e610cdc565b5061000e610c89565b5061000e610c59565b5061000e610c46565b5061000e610bf2565b5061000e610bcb565b5061000e610b64565b5061000e610a5b565b5061000e6109b7565b5061000e610957565b5061000e610875565b5061000e6106f6565b5061000e6106b1565b5061000e6105e9565b5061000e6105a5565b6001600160a01b0381160361000e57565b503461000e57602036600319011261000e5760206105cd6004356105c881610594565b6131ba565b6040519015158152f35b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5761063c60043561060a816105d7565b61061381613f95565b908115610685575b8115610674575b8115610640575b5060405190151581529081906020820190565b0390f35b6001600160e01b03198116637965db0b60e01b1491508115610664575b5038610629565b61066e9150613f69565b3861065d565b905061067f81613f69565b90610622565b906001600160e01b03198216637aa3e02b60e11b149081156106a9575b509061061b565b9050386106a2565b503461000e57602036600319011261000e576001600160a01b036004356106d781610594565b6106df612b5e565b166001600160a01b03196009541617600955600080f35b503461000e57604036600319011261000e5760043561071481610594565b602435906bffffffffffffffffffffffff821680830361000e576127109061073a61337f565b116107ae576107896107ac9261075a6001600160a01b0384161515613c2b565b610774610765610fba565b6001600160a01b039094168452565b6bffffffffffffffffffffffff166020830152565b6001600160a01b031960206001600160a01b0383511692015160a01b1617601255565b005b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608490fd5b60005b83811061082c5750506000910152565b818101518382015260200161081c565b9060209161085581518092818552858086019101610819565b601f01601f1916010190565b90602061087292818152019061083c565b90565b503461000e57600080600319360112610954576040519080600254610899816119d5565b8085529160019180831690811561092a57506001146108cf575b61063c856108c381870382610f98565b60405191829182610861565b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106109125750505081016020016108c38261063c6108b3565b805460208587018101919091529093019281016108f7565b86955061063c969350602092506108c394915060ff191682840152151560051b82010192936108b3565b80fd5b503461000e57602036600319011261000e5760043561097581614051565b1561099b57600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b8015150361000e57565b503461000e57604036600319011261000e576024356004356109d8826109ad565b6001600160a01b036109e982613fd9565b1633148015610a23575b1561000e57610a1e6107ac9282600052601b60205260406000209060ff801983541691151516179055565b613e25565b503360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff166109f3565b50604036600319011261000e57600435610a7481610594565b602435610a89610a8382613e8d565b15613ed1565b610a9c610a968284612c95565b15613f1d565b6001600160a01b0380610aae83613fd9565b1690813303610b09575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b610b1333836132da565b610ab8576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b828110610b50575050505090565b835185529381019392810192600101610b42565b503461000e57602036600319011261000e57610b81600435610594565b61063c610b8c612ce9565b60405191829182610b29565b60041115610ba257565b634e487b7160e01b600052602160045260246000fd5b919060208301926004821015610ba25752565b503461000e57600036600319011261000e5761063c60ff6010541660405191829182610bb8565b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610c3281610594565b90602435610c3f81610594565b9060443590565b506107ac610c5336610c1a565b9161408c565b503461000e57602036600319011261000e5760043560005260146020526020600160406000200154604051908152f35b503461000e57604036600319011261000e576020610cd3602435610cac81610594565b600435600052601983526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e5760206040516420a226a4a760d91b8152f35b503461000e57604036600319011261000e576004356000526013602052604060002060405190610d2f82610f37565b54906001600160a01b03908183169283825260a01c60208201529115610da1575b610d79610d716bffffffffffffffffffffffff602085015116602435612bf3565b612710900490565b91511661063c60405192839283602090939291936001600160a01b0360408201951681520152565b9050610dab612bb6565b90610d50565b503461000e57604036600319011261000e57600435602435610dd281610594565b610dda612b5e565b600091808352601460205260ff610e078360408620906001600160a01b0316600052602052604060002090565b541615610e12578280f35b8083526014602052610e3a8260408520906001600160a01b0316600052602052604060002090565b805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438808280f35b503461000e57604036600319011261000e57602435610e9981610594565b336001600160a01b03821603610eb5576107ac90600435612ac5565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b50634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff821117610f5357604052565b610f5b610f20565b604052565b60a0810190811067ffffffffffffffff821117610f5357604052565b6020810190811067ffffffffffffffff821117610f5357604052565b90601f8019910116810190811067ffffffffffffffff821117610f5357604052565b60405190610fc782610f37565b565b60209067ffffffffffffffff8111610fe3575b60051b0190565b610feb610f20565b610fdc565b503461000e57606036600319011261000e5760043561100e81610594565b6024359067ffffffffffffffff821161000e573660238301121561000e57816004013561103a81610fc9565b926110486040519485610f98565b81845260209160248386019160051b8301019136831161000e57602401905b82821061107b576107ac6044358787613927565b81358152908301908301611067565b503461000e57600036600319011261000e5760206001600160a01b0360095416604051908152f35b503461000e57600080600319360112610954576110cd61337f565b80819060189182545b8082106111ae575050479283815b8454808210156111aa578390858861110d611107611101876122a9565b50613dc7565b93613031565b850361115e57505081808061115995948761114461113861113861115498516001600160a01b031690565b6001600160a01b031690565b5af161114e613dee565b50613e1e565b613334565b6110e4565b8380806111a4968661114461113861118f6111599c9d9961118a61119f9a60206111389e015190612bf3565b612c0e565b998a93516001600160a01b031690565b613040565b91613334565b8380f35b90916111cb6111d19160016111c2866122a9565b50015490613368565b92613334565b906110d6565b503461000e57600036600319011261000e5760806111f3613af4565b5160206111fe613af4565b01511515606061120c613af4565b015183611217613af4565b015191604051938452602084015260408301526060820152f35b506107ac61123e36610c1a565b90604051926020840184811067ffffffffffffffff821117611267575b60405260008452614361565b61126f610f20565b61125b565b503461000e57602036600319011261000e576107ac600435613e25565b503461000e57602036600319011261000e57600435600052601b602052602060ff604060002054166040519015158152f35b503461000e57604036600319011261000e5760206105cd6004356112e681610594565b60243590612c95565b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e57611328612b5e565b600435601155005b60209067ffffffffffffffff811161134e575b601f01601f19160190565b611356610f20565b611343565b92919261136782611330565b916113756040519384610f98565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e578160246108729360040135910161135b565b503461000e576113dd36611392565b6113e561337f565b805167ffffffffffffffff81116114cf575b61140b81611406601c546119d5565b613cc5565b602080601f83116001146114485750819260009261143d575b5050600019600383901b1c191660019190911b17601c55005b015190503880611424565b90601f1983169361147b601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21190565b926000905b8682106114b7575050836001951061149e575b505050811b01601c55005b015160001960f88460031b161c19169055388080611493565b80600185968294968601518155019501930190611480565b6114d7610f20565b6113f7565b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b50608036600319011261000e5760043561152681610594565b602435604435916064359267ffffffffffffffff841161000e576115da6115f2916115586107ac9636906004016114dc565b9161157b61157360165461156d81151561374d565b89612bf3565b341015613799565b6000546001546115a49161159a918a910360001901613368565b613368565b60155410156137e5565b6115ac613af4565b926115c16115bd6020860151151590565b1590565b611604575b505050516000526019602052604060002090565b336001600160a01b0316600052602052604060002090565b6115fd838254613368565b9055614492565b6040513360601b6bffffffffffffffffffffffff191660208201908152603482018490526116a4946116629361165d9390929061164e81605481015b03601f198101835282610f98565b519020916040880151916138c9565b613831565b61169d876116973361167f87516000526019602052604060002090565b906001600160a01b0316600052602052604060002090565b54613368565b111561387d565b3880806115c6565b503461000e57600080600319360112610954576116c761337f565b6116d2601d546119d5565b601f81116116e4575b506000601d5580f35b601f7f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f910160051c8101905b81811061171d57506116db565b828155600101611710565b503461000e57602036600319011261000e5760206001600160a01b0361174f600435613fd9565b16604051908152f35b503461000e57602036600319011261000e57600467ffffffffffffffff813581811161000e573660238201121561000e578083013591821161000e5760a0923660248585028401011161000e576117ad61337f565b6801000000000000000083116118b9575b60175483601755808410611822575b505060176000526024017fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15906000905b83821061180657005b6005858261181660019487613d7c565b019301910190916117fd565b60059181830291838304036118ac575b84830290838204860361189f575b600091601783527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1593840193015b83811061187d575050506117cd565b808386925583600182015583600282015583600382015583838201550161186e565b6118a7612bdc565b611840565b6118b4612bdc565b611832565b6118c1610f20565b6117be565b503461000e57604036600319011261000e5767ffffffffffffffff60043581811161000e576118f99036906004016114dc565b909160243590811161000e576119139036906004016114dc565b91909261191e61337f565b82820361199057600080546001546000199103015b83821061193c57005b611947828688613350565b35906119538282613368565b6015541061198557816111a49161159561197f9461197a611975888b8b613350565b613375565b614492565b90611933565b9161197f9150613334565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152606490fd5b90600182811c92168015611a05575b60208310146119ef57565b634e487b7160e01b600052602260045260246000fd5b91607f16916119e4565b60405190600082601c5491611a23836119d5565b80835292600190818116908115611aa95750600114611a4a575b50610fc792500383610f98565b601c600090815291507f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b848310611a8e5750610fc7935050810160200138611a3d565b81935090816020925483858a01015201910190918592611a75565b905060209250610fc794915060ff191682840152151560051b82010138611a3d565b503461000e57600080600319360112610954576040519080601c54611aef816119d5565b8085529160019180831690811561092a5750600114611b185761063c856108c381870382610f98565b9250601c83527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b828410611b5b5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101611b40565b503461000e57602036600319011261000e57611b8d61337f565b600435601555005b503461000e57602036600319011261000e576001600160a01b03600435611bbb81610594565b168015611be4576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e5760008060031936011261095457611c11612b5e565b806001600160a01b036008546001600160a01b03198116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e576107ac6001600160a01b03600435611c7c81610594565b611c84612b5e565b166130b5565b503461000e57602036600319011261000e57611ca461337f565b600435601655005b503461000e57602036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e57806004013591821161000e573660248360061b8301011161000e57611cff61337f565b680100000000000000008211611e16575b60185482601855808310611d74575b506018600052602401907fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e6000925b828410611d5757005b6002604082611d6860019486613c77565b01920193019290611d4e565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8082168203611e09575b83168303611dfc575b60006018815260017fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e92811b83019285821b015b838110611deb57505050611d1f565b808360029255838382015501611ddc565b611e04612bdc565b611da8565b611e11612bdc565b611d9f565b611e1e610f20565b611d10565b503461000e57602036600319011261000e57600435611e4181614051565b15611e7057611e64816001600160a01b03611e5e61063c94613fd9565b166131de565b60405191829182610bb8565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b0360085416604051908152f35b503461000e57604036600319011261000e57602060ff611f4f602435611f2881610594565b600435600052601484526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461000e57600080600319360112610954576040519080600354611f7f816119d5565b8085529160019180831690811561092a5750600114611fa85761063c856108c381870382610f98565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410611feb5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101611fd0565b503461000e57602036600319011261000e5760043561202181610594565b60008054600180546001600160a01b039485169493920360001901905b818111156120ca57505061205190612d01565b9160009060019261206b6000546000199060015490030190565b935b84811115612083576040518061063c8882610b29565b828261209461113861113885613fd9565b16146120a9575b6120a490613334565b61206d565b926120c281856120bc6120a4948a613a91565b52613334565b93905061209b565b84846120db61113861113885613fd9565b16146120f0575b6120eb90613334565b61203e565b916120fd6120eb91613334565b9290506120e2565b503461000e57604036600319011261000e576107ac60043561212681610594565b61212e61345b565b60243590614492565b503461000e57600036600319011261000e57602060405160008152f35b604090600319011261000e5760043561216c81610594565b90602435610872816109ad565b503461000e5761218836612154565b600091338352601a60205260ff60408420541661224d576001600160a01b03906121c46121b433613230565b6121bd336132b0565b9083612ea3565b158015612245575b6121d590613f1d565b3384526007602052612212836122018360408820906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051921515835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b5082156121cc565b60405162461bcd60e51b815260206004820152600b60248201527f4f776e65724c6f636b65640000000000000000000000000000000000000000006044820152606490fd5b50634e487b7160e01b600052603260045260246000fd5b6018548110156122e4575b601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0190600090565b6122ec612292565b6122b4565b503461000e57602036600319011261000e5760043560185481101561000e57601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f6001600160a01b03827fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0154169101549061063c60405192839283602090939291936001600160a01b0360408201951681520152565b604090600319011261000e576004356123a781610594565b9060243561087281610594565b503461000e5760206105cd6123c83661238f565b6123da6123d482613230565b916132b0565b91612ea3565b503461000e576123ef3661238f565b505061063c610b8c612ce9565b503461000e57602036600319011261000e5760206105cd600435613e8d565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e5760043561245381610594565b60243561245f81610594565b6064359167ffffffffffffffff831161000e573660238401121561000e576124946107ac93369060248160040135910161135b565b9160443591614361565b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57600080600319360112610954576040519080601d546124e1816119d5565b8085529160019180831690811561092a575060011461250a5761063c856108c381870382610f98565b9250601d83527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f5b82841061254d5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101612532565b503461000e57602036600319011261000e5760043561258381614051565b1561264b57612590611a0f565b80519091906000901561262a57506040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816125b4576108c391506126126126009161063c95612606612625966080601f1994858101920301815260405195869360208501906134b0565b906134b0565b03908101835282610f98565b61164060405193849260208401906134b0565b613b9c565b60405161063c935061262592506108c39161264482610f7c565b8152612612565b604051630a14c4b560e41b8152600490fd5b503461000e57604036600319011261000e576107ac60243561267e81610594565b612686612b5e565b600435612ac5565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e576001600160a01b036126c436612154565b91169081331480156126f8575b1561000e576107ac91600052601a60205260406000209060ff801983541691151516179055565b503360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff166126d1565b503461000e5761273f36611392565b61274761337f565b805167ffffffffffffffff8111612831575b61276d81612768601d546119d5565b613d26565b602080601f83116001146127aa5750819260009261279f575b5050600019600383901b1c191660019190911b17601d55005b015190503880612786565b90601f198316936127dd601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90565b926000905b8682106128195750508360019510612800575b505050811b01601d55005b015160001960f88460031b161c191690553880806127f5565b806001859682949686015181550195019301906127e2565b612839610f20565b612759565b503461000e5760206105cd6128523661238f565b906132da565b503461000e57602036600319011261000e576001600160a01b0360043561287e81610594565b16600052601a602052602060ff604060002054166040519015158152f35b503461000e57606036600319011261000e57610b81600435610594565b503461000e57602036600319011261000e576004356128d781610594565b6128df612b5e565b6001600160a01b0380911690811561292c57600854826001600160a01b0319821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57600435600481101561000e576129bd612b5e565b80156129d65760ff801960105416911617601055600080f35b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e57612a5e600435610594565b610b81602435610594565b503461000e57600036600319011261000e5760206040516526a4a72a22a960d11b8152f35b503461000e57602036600319011261000e576107ac6001600160a01b03600435612ab781610594565b612abf612b5e565b16612fa0565b600090808252601460205260ff612af28460408520906001600160a01b0316600052602052604060002090565b5416612afd57505050565b8082526014602052612b258360408420906001600160a01b0316600052602052604060002090565b60ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6001600160a01b033394169280a4565b6001600160a01b03600854163303612b7257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190612bc382610f37565b6012546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612c0657565b610fc7612bdc565b8115612c18570490565b634e487b7160e01b600052601260045260246000fd5b906000916001600160a01b039081612c4582613fd9565b16612c5a82612c5481846131de565b9261328a565b90612c6481610b98565b60028103612c86575050612c7790613fd9565b163314612c8057565b60009150565b91509150610872929350612d55565b600092916001600160a01b039182612cac83613fd9565b16612cbb83612c5481846131de565b91612cc582610b98565b60028203612cd957505050612c7790613fd9565b9193509150610872939450612ea3565b604051612cf581610f7c565b60008152906000368137565b90612d0b82610fc9565b612d186040519182610f98565b8281528092612d29601f1991610fc9565b0190602036910137565b9081602091031261000e5751610872816109ad565b506040513d6000823e3d90fd5b612d5e81610b98565b60018103612d6d575050600090565b612d7681610b98565b60038103612d85575050600190565b80612d91600292610b98565b03612e5a57612d9e61317c565b612e5457612db76111386009546001600160a01b031690565b6001600160a01b03811615612e4d57604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa908115612e40575b600091612e12575b5015612e0d57600090565b600190565b612e33915060203d8111612e39575b612e2b8183610f98565b810190612d33565b38612e02565b503d612e21565b612e48612d48565b612dfa565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b0390fd5b90612ead81610b98565b60018103612ebd57505050600090565b612ec681610b98565b60038103612ed657505050600190565b80612ee2600292610b98565b03612e5a57612ef0816131ba565b612f5457612f096111386009546001600160a01b031690565b916001600160a01b03831615612f4c57604051630f8350ed60e41b81526001600160a01b0390921660048301526024820152906020908290818060448101612dee565b505050600190565b5050600090565b600a54811015612f93575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b612f9b612292565b612f66565b80600052600b60205260406000205415600014612e545780600a5468010000000000000000811015613024575b6001810180600a55811015613017575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b61301f612292565b612fdd565b61302c610f20565b612fcd565b600019810191908211612c0657565b91908203918211612c0657565b600a54801561309f5760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015613092575b600a83520155600a55565b61309a612292565b613087565b634e487b7160e01b600052603160045260246000fd5b6000818152600b60205260409020548015612f54576000916131109160001980820182811161316f575b600a54918201918211613162575b808203613116575b50505061310061304d565b600052600b602052604060002090565b55600190565b61310061313e9161313661312c61315995612f5b565b90549060031b1c90565b928391612f5b565b90919082549060031b600019811b9283911b16911916179055565b553880806130f5565b61316a612bdc565b6130ed565b613177612bdc565b6130df565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765415156001146131b45790565b50600190565b6001600160a01b03600091168152600b602052600160408220541515146131b45790565b6000828152600c60205260ff604082205416600481101561321c5761320857506108729150613230565b6040915060ff928152600c60205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252600e60205260ff60408320541660048110156132765761326457505060ff6010541690565b8152600e602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b90600052600d6020526040600020546132a657610872906132b0565b5060406000205490565b6001600160a01b0316600052600f6020526040600020546132d15760115490565b60406000205490565b6132f66132e682613230565b6132ef836132b0565b9084612ea3565b612f545760ff916001600160a01b0361332f921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b6001906000198114613344570190565b61334c612bdc565b0190565b91908110156133605760051b0190565b610feb612292565b91908201809211612c0657565b3561087281610594565b3360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff16156133b857565b612e9f60486134436133c9336135a9565b6116406133d461365e565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152613414815180926020603789019101610819565b84017f206973206d697373696e6720726f6c6520000000000000000000000000000000603782015201906134b0565b60405162461bcd60e51b815291829160048301610861565b3360009081527f5783e7c466a2f0a4bfe8dda7b890080105d676a72d15cc9a08062e149ae2ca34602052604090205460ff161561349457565b612e9f60486134436134a5336135a9565b6116406133d46136d5565b9061334c60209282815194859201610819565b604051906080820182811067ffffffffffffffff8211176134f0575b604052604282526060366020840137565b6134f8610f20565b6134df565b60209080511561350b570190565b61334c612292565b60219080516001101561350b570190565b90602091805182101561353657010190565b61353e612292565b010190565b8015613551575b6000190190565b613559612bdc565b61354a565b1561356557565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117613651575b604052602a8252604036602084013760306135df836134fd565b5360786135eb83613513565b536029905b600182116136035761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f61363e93166010811015613644575b1a6136348486613524565b5360041c91613543565b906135f0565b61364c612292565b613629565b613659610f20565b6135c5565b6420a226a4a760d91b61366f6134c3565b90603061367b836134fd565b53607861368783613513565b536041905b6001821161369f5761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f6136cf93166010811015613644571a6136348486613524565b9061368c565b6526a4a72a22a960d11b6136e76134c3565b9060306136f3836134fd565b5360786136ff83613513565b536041905b600182116137175761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f61374793166010811015613644571a6136348486613524565b90613704565b1561375457565b60405162461bcd60e51b815260206004820152601260248201527f496e76616c69642053616c657320496e666f00000000000000000000000000006044820152606490fd5b156137a057565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b156137ec57565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561383857565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b1561388457565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b9192916000915b8083106138de575050501490565b9091926138ec848385613350565b3590600082821015613915575060005260205261390e60406000205b93613334565b91906138d0565b60409161390e93825260205220613908565b919261393161345b565b4260a01b9360005b8351811015613a835780613a16613953613a2a9387613a91565b5161395d81613fd9565b6001600160a01b0381169061397f836000526006602052604060002090815490565b613989858561426c565b613a79575b506139ac826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff0190556000838152600460205260409020828c17600360e01b179055600160e11b811615613a2f575b50816000827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4614239565b611154613a2560015460010190565b600155565b613939565b60018301613a47816000526004602052604060002090565b5415613a54575b506139e8565b6000548114613a4e57613a71906000526004602052604060002090565b553880613a4e565b600090553861398e565b5091509250610fc791614492565b6020918151811015613aa6575b60051b010190565b613aae612292565b613a9e565b90604051613ac081610f60565b6080600482948054845260ff6001820154161515602085015260028101546040850152600381015460608501520154910152565b60405190613b0182610f60565b60009182815282602082015282604082015260608381830152608091848382015250839160178054935b848110613b36578680fd5b818752613b67600582027fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501613ab3565b4285820151111580613b90575b613b875750613b8290613334565b613b2b565b96505050505050565b50838101514210613b74565b601d5460009291613bac826119d5565b91600190818116908115613c185750600114613bc757505050565b9091929350601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f906000915b848310613c05575050500190565b8181602092548587015201920191613bf7565b60ff191683525050811515909102019150565b15613c3257565b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b906020600191613ca78135613c8b81610594565b85906001600160a01b03166001600160a01b0319825416179055565b0135910155565b818110613cb9575050565b60008155600101613cae565b90601f8211613cd2575050565b610fc791601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211906020601f840160051c83019310613d1c575b601f0160051c0190613cae565b9091508190613d0f565b90601f8211613d33575050565b610fc791601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f906020601f840160051c83019310613d1c57601f0160051c0190613cae565b90608060049180358455613dac6020820135613d97816109ad565b600186019060ff801983541691151516179055565b60408101356002850155606081013560038501550135910155565b90604051613dd481610f37565b6020600182946001600160a01b0381541684520154910152565b3d15613e19573d90613dff82611330565b91613e0d6040519384610f98565b82523d6000602084013e565b606090565b1561000e57565b613e2e81613e8d565b15613e605760207f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161191604051908152a1565b60207ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f184291604051908152a1565b6001600160a01b03613e9e82613fd9565b16600052601a60205260ff60406000205416908115613ebb575090565b9050600052601b60205260ff6040600020541690565b15613ed857565b60405162461bcd60e51b815260206004820152600660248201527f4c6f636b656400000000000000000000000000000000000000000000000000006044820152606490fd5b15613f2457565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b63ffffffff60e01b1663152a902d60e11b8114908115613f87575090565b6301ffc9a760e01b14919050565b63ffffffff60e01b166301ffc9a760e01b8114908115613fc8575b8115613fba575090565b635b5e139f60e01b14919050565b6380ac58cd60e01b81149150613fb0565b6000818060011115613ff8575b604051636f96cda160e11b8152600490fd5b8154811015613fe65781526004906020918083526040928383205494600160e01b86161561402857505050613fe6565b93929190935b851561403c57505050505090565b6000190180835281855283832054955061402e565b80600111159081614080575b81614066575090565b90506000526004602052600160e01b604060002054161590565b6000548110915061405d565b91909161409882613fd9565b6001600160a01b03908183168083831603614228576000858152600660205260409020805490939092906140db6001600160a01b03871633908114908614171590565b614204575b87169283156141f257878795614142926140fe88610fc79c8b614307565b6141e8575b50614121876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b85171761416a866000526004602052604060002090565b5581161561419e575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4614239565b600184016141b6816000526004602052604060002090565b54156141c3575b50614173565b60005481146141bd576141e0906000526004602052604060002090565b5538806141bd565b6000905538614103565b604051633a954ecd60e21b8152600490fd5b6142116115bd33886132da565b156140e057604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b6001600160a01b03166142495750565b600052600c602052604060002060ff198154169055600d60205260006040812055565b6001600160a01b031615801590816142ff575b80156142ea575b61428f90613ed1565b6142965750565b61429f90612c2e565b6142a557565b60405162461bcd60e51b815260206004820152600660248201527f4c4f434b454400000000000000000000000000000000000000000000000000006044820152606490fd5b5061428f6142f783613e8d565b159050614286565b50600161427f565b9190916001600160a01b038091161580159182614356575b508015614341575b61433090613ed1565b614338575050565b61429f91612c95565b5061433061434e83613e8d565b159050614327565b90508316153861431f565b92919061436f82828661408c565b803b61437c575b50505050565b614385936143e9565b156143935738808080614376565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261000e5751610872816105d7565b909261087294936080936001600160a01b0380921684521660208301526040820152816060820152019061083c565b9260209161441a9360006001600160a01b03604051809781968295630a85bd0160e11b9b8c855233600486016143ba565b0393165af160009181614462575b5061445457614435613dee565b8051908161444f576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61448491925060203d811161448b575b61447c8183610f98565b8101906143a5565b9038614428565b503d614472565b90600090815492811561455d576144bc816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001600160a01b03600191169181811460e11b4260a01b1783176144fb866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b85810361454e575050501561453d5755565b604051622e076360e81b8152600490fd5b8083918587858180a40161452b565b60405163b562e8dd60e01b8152600490fdfea164736f6c6343000811000a

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c8063018d9b501461058b57806301ffc9a714610582578063025e332e1461057957806304634d8d1461057057806306fdde0314610567578063081812fc1461055e5780630896013214610555578063095ea7b31461054c5780630eda8f561461054357806310c395bf1461053a57806318160ddd1461053157806323b872dd14610528578063248a9ca31461051f578063285d47ea146105165780632a0acc6a1461050d5780632a55205a146105045780632f2ff15d146104fb57806336568abe146104f257806336a050b7146104e9578063396e8f53146104e05780633ccfd60b146104d757806340285d5f146104ce57806342842e0e146104c55780634425f8a2146104bc57806346694b7d146104b35780634e4ab122146104aa5780634f3db346146104a1578063501c9be21461049857806355f804b31461048f578063597d78e1146104865780635f1b1b861461047d5780636352211e146104745780636526695b1461046b57806367243482146104625780636c0360eb146104595780636f8b44b01461045057806370a0823114610447578063715018a61461043e57806372b44d71146104355780638545f4ea1461042c5780638727a4fb146104235780638978b2da1461041a5780638da5cb5b1461041157806391d148541461040857806395d89b41146103ff578063960b2263146103f657806399f98898146103ed578063a217fddf146103e4578063a22cb465146103db578063a4c3f31e146103d2578063a86e6ee4146103c9578063af994151146103c0578063b45a3c0e146103b7578063b55cd04b146103ae578063b88d4fde146103a5578063bdb4b8481461039c578063c668286214610393578063c87b56dd1461038a578063d547741f14610381578063d5abeb0114610378578063d65a887c1461036f578063da3ef23f14610366578063e985e9c51461035d578063ea5a899814610354578063eabf719c1461034b578063f2fde38b14610342578063f7510ba614610339578063fb684df614610330578063fe6d8124146103275763ff7682121461031f57600080fd5b61000e612a8e565b5061000e612a69565b5061000e612a41565b5061000e612997565b5061000e6128b9565b5061000e61289c565b5061000e612858565b5061000e61283e565b5061000e612730565b5061000e6126ad565b5061000e61268e565b5061000e61265d565b5061000e612565565b5061000e6124bd565b5061000e61249e565b5061000e61243a565b5061000e61241b565b5061000e6123fc565b5061000e6123e0565b5061000e6123b4565b5061000e6122f1565b5061000e612179565b5061000e612137565b5061000e612105565b5061000e612003565b5061000e611f5b565b5061000e611f03565b5061000e611edb565b5061000e611e23565b5061000e611cac565b5061000e611c8a565b5061000e611c53565b5061000e611bf6565b5061000e611b95565b5061000e611b73565b5061000e611acb565b5061000e6118c6565b5061000e611758565b5061000e611728565b5061000e6116ac565b5061000e61150d565b5061000e6113ce565b5061000e61130e565b5061000e6112ef565b5061000e6112c3565b5061000e611291565b5061000e611274565b5061000e611231565b5061000e6111d7565b5061000e6110b2565b5061000e61108a565b5061000e610ff0565b5061000e610e7b565b5061000e610db1565b5061000e610d00565b5061000e610cdc565b5061000e610c89565b5061000e610c59565b5061000e610c46565b5061000e610bf2565b5061000e610bcb565b5061000e610b64565b5061000e610a5b565b5061000e6109b7565b5061000e610957565b5061000e610875565b5061000e6106f6565b5061000e6106b1565b5061000e6105e9565b5061000e6105a5565b6001600160a01b0381160361000e57565b503461000e57602036600319011261000e5760206105cd6004356105c881610594565b6131ba565b6040519015158152f35b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5761063c60043561060a816105d7565b61061381613f95565b908115610685575b8115610674575b8115610640575b5060405190151581529081906020820190565b0390f35b6001600160e01b03198116637965db0b60e01b1491508115610664575b5038610629565b61066e9150613f69565b3861065d565b905061067f81613f69565b90610622565b906001600160e01b03198216637aa3e02b60e11b149081156106a9575b509061061b565b9050386106a2565b503461000e57602036600319011261000e576001600160a01b036004356106d781610594565b6106df612b5e565b166001600160a01b03196009541617600955600080f35b503461000e57604036600319011261000e5760043561071481610594565b602435906bffffffffffffffffffffffff821680830361000e576127109061073a61337f565b116107ae576107896107ac9261075a6001600160a01b0384161515613c2b565b610774610765610fba565b6001600160a01b039094168452565b6bffffffffffffffffffffffff166020830152565b6001600160a01b031960206001600160a01b0383511692015160a01b1617601255565b005b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608490fd5b60005b83811061082c5750506000910152565b818101518382015260200161081c565b9060209161085581518092818552858086019101610819565b601f01601f1916010190565b90602061087292818152019061083c565b90565b503461000e57600080600319360112610954576040519080600254610899816119d5565b8085529160019180831690811561092a57506001146108cf575b61063c856108c381870382610f98565b60405191829182610861565b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106109125750505081016020016108c38261063c6108b3565b805460208587018101919091529093019281016108f7565b86955061063c969350602092506108c394915060ff191682840152151560051b82010192936108b3565b80fd5b503461000e57602036600319011261000e5760043561097581614051565b1561099b57600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b8015150361000e57565b503461000e57604036600319011261000e576024356004356109d8826109ad565b6001600160a01b036109e982613fd9565b1633148015610a23575b1561000e57610a1e6107ac9282600052601b60205260406000209060ff801983541691151516179055565b613e25565b503360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff166109f3565b50604036600319011261000e57600435610a7481610594565b602435610a89610a8382613e8d565b15613ed1565b610a9c610a968284612c95565b15613f1d565b6001600160a01b0380610aae83613fd9565b1690813303610b09575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b610b1333836132da565b610ab8576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b828110610b50575050505090565b835185529381019392810192600101610b42565b503461000e57602036600319011261000e57610b81600435610594565b61063c610b8c612ce9565b60405191829182610b29565b60041115610ba257565b634e487b7160e01b600052602160045260246000fd5b919060208301926004821015610ba25752565b503461000e57600036600319011261000e5761063c60ff6010541660405191829182610bb8565b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610c3281610594565b90602435610c3f81610594565b9060443590565b506107ac610c5336610c1a565b9161408c565b503461000e57602036600319011261000e5760043560005260146020526020600160406000200154604051908152f35b503461000e57604036600319011261000e576020610cd3602435610cac81610594565b600435600052601983526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e5760206040516420a226a4a760d91b8152f35b503461000e57604036600319011261000e576004356000526013602052604060002060405190610d2f82610f37565b54906001600160a01b03908183169283825260a01c60208201529115610da1575b610d79610d716bffffffffffffffffffffffff602085015116602435612bf3565b612710900490565b91511661063c60405192839283602090939291936001600160a01b0360408201951681520152565b9050610dab612bb6565b90610d50565b503461000e57604036600319011261000e57600435602435610dd281610594565b610dda612b5e565b600091808352601460205260ff610e078360408620906001600160a01b0316600052602052604060002090565b541615610e12578280f35b8083526014602052610e3a8260408520906001600160a01b0316600052602052604060002090565b805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438808280f35b503461000e57604036600319011261000e57602435610e9981610594565b336001600160a01b03821603610eb5576107ac90600435612ac5565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b50634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff821117610f5357604052565b610f5b610f20565b604052565b60a0810190811067ffffffffffffffff821117610f5357604052565b6020810190811067ffffffffffffffff821117610f5357604052565b90601f8019910116810190811067ffffffffffffffff821117610f5357604052565b60405190610fc782610f37565b565b60209067ffffffffffffffff8111610fe3575b60051b0190565b610feb610f20565b610fdc565b503461000e57606036600319011261000e5760043561100e81610594565b6024359067ffffffffffffffff821161000e573660238301121561000e57816004013561103a81610fc9565b926110486040519485610f98565b81845260209160248386019160051b8301019136831161000e57602401905b82821061107b576107ac6044358787613927565b81358152908301908301611067565b503461000e57600036600319011261000e5760206001600160a01b0360095416604051908152f35b503461000e57600080600319360112610954576110cd61337f565b80819060189182545b8082106111ae575050479283815b8454808210156111aa578390858861110d611107611101876122a9565b50613dc7565b93613031565b850361115e57505081808061115995948761114461113861113861115498516001600160a01b031690565b6001600160a01b031690565b5af161114e613dee565b50613e1e565b613334565b6110e4565b8380806111a4968661114461113861118f6111599c9d9961118a61119f9a60206111389e015190612bf3565b612c0e565b998a93516001600160a01b031690565b613040565b91613334565b8380f35b90916111cb6111d19160016111c2866122a9565b50015490613368565b92613334565b906110d6565b503461000e57600036600319011261000e5760806111f3613af4565b5160206111fe613af4565b01511515606061120c613af4565b015183611217613af4565b015191604051938452602084015260408301526060820152f35b506107ac61123e36610c1a565b90604051926020840184811067ffffffffffffffff821117611267575b60405260008452614361565b61126f610f20565b61125b565b503461000e57602036600319011261000e576107ac600435613e25565b503461000e57602036600319011261000e57600435600052601b602052602060ff604060002054166040519015158152f35b503461000e57604036600319011261000e5760206105cd6004356112e681610594565b60243590612c95565b503461000e57600036600319011261000e576020601154604051908152f35b503461000e57602036600319011261000e57611328612b5e565b600435601155005b60209067ffffffffffffffff811161134e575b601f01601f19160190565b611356610f20565b611343565b92919261136782611330565b916113756040519384610f98565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e578160246108729360040135910161135b565b503461000e576113dd36611392565b6113e561337f565b805167ffffffffffffffff81116114cf575b61140b81611406601c546119d5565b613cc5565b602080601f83116001146114485750819260009261143d575b5050600019600383901b1c191660019190911b17601c55005b015190503880611424565b90601f1983169361147b601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21190565b926000905b8682106114b7575050836001951061149e575b505050811b01601c55005b015160001960f88460031b161c19169055388080611493565b80600185968294968601518155019501930190611480565b6114d7610f20565b6113f7565b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b50608036600319011261000e5760043561152681610594565b602435604435916064359267ffffffffffffffff841161000e576115da6115f2916115586107ac9636906004016114dc565b9161157b61157360165461156d81151561374d565b89612bf3565b341015613799565b6000546001546115a49161159a918a910360001901613368565b613368565b60155410156137e5565b6115ac613af4565b926115c16115bd6020860151151590565b1590565b611604575b505050516000526019602052604060002090565b336001600160a01b0316600052602052604060002090565b6115fd838254613368565b9055614492565b6040513360601b6bffffffffffffffffffffffff191660208201908152603482018490526116a4946116629361165d9390929061164e81605481015b03601f198101835282610f98565b519020916040880151916138c9565b613831565b61169d876116973361167f87516000526019602052604060002090565b906001600160a01b0316600052602052604060002090565b54613368565b111561387d565b3880806115c6565b503461000e57600080600319360112610954576116c761337f565b6116d2601d546119d5565b601f81116116e4575b506000601d5580f35b601f7f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f910160051c8101905b81811061171d57506116db565b828155600101611710565b503461000e57602036600319011261000e5760206001600160a01b0361174f600435613fd9565b16604051908152f35b503461000e57602036600319011261000e57600467ffffffffffffffff813581811161000e573660238201121561000e578083013591821161000e5760a0923660248585028401011161000e576117ad61337f565b6801000000000000000083116118b9575b60175483601755808410611822575b505060176000526024017fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15906000905b83821061180657005b6005858261181660019487613d7c565b019301910190916117fd565b60059181830291838304036118ac575b84830290838204860361189f575b600091601783527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1593840193015b83811061187d575050506117cd565b808386925583600182015583600282015583600382015583838201550161186e565b6118a7612bdc565b611840565b6118b4612bdc565b611832565b6118c1610f20565b6117be565b503461000e57604036600319011261000e5767ffffffffffffffff60043581811161000e576118f99036906004016114dc565b909160243590811161000e576119139036906004016114dc565b91909261191e61337f565b82820361199057600080546001546000199103015b83821061193c57005b611947828688613350565b35906119538282613368565b6015541061198557816111a49161159561197f9461197a611975888b8b613350565b613375565b614492565b90611933565b9161197f9150613334565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152606490fd5b90600182811c92168015611a05575b60208310146119ef57565b634e487b7160e01b600052602260045260246000fd5b91607f16916119e4565b60405190600082601c5491611a23836119d5565b80835292600190818116908115611aa95750600114611a4a575b50610fc792500383610f98565b601c600090815291507f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b848310611a8e5750610fc7935050810160200138611a3d565b81935090816020925483858a01015201910190918592611a75565b905060209250610fc794915060ff191682840152151560051b82010138611a3d565b503461000e57600080600319360112610954576040519080601c54611aef816119d5565b8085529160019180831690811561092a5750600114611b185761063c856108c381870382610f98565b9250601c83527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2115b828410611b5b5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101611b40565b503461000e57602036600319011261000e57611b8d61337f565b600435601555005b503461000e57602036600319011261000e576001600160a01b03600435611bbb81610594565b168015611be4576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e5760008060031936011261095457611c11612b5e565b806001600160a01b036008546001600160a01b03198116600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e576107ac6001600160a01b03600435611c7c81610594565b611c84612b5e565b166130b5565b503461000e57602036600319011261000e57611ca461337f565b600435601655005b503461000e57602036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e57806004013591821161000e573660248360061b8301011161000e57611cff61337f565b680100000000000000008211611e16575b60185482601855808310611d74575b506018600052602401907fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e6000925b828410611d5757005b6002604082611d6860019486613c77565b01920193019290611d4e565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8082168203611e09575b83168303611dfc575b60006018815260017fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e92811b83019285821b015b838110611deb57505050611d1f565b808360029255838382015501611ddc565b611e04612bdc565b611da8565b611e11612bdc565b611d9f565b611e1e610f20565b611d10565b503461000e57602036600319011261000e57600435611e4181614051565b15611e7057611e64816001600160a01b03611e5e61063c94613fd9565b166131de565b60405191829182610bb8565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b0360085416604051908152f35b503461000e57604036600319011261000e57602060ff611f4f602435611f2881610594565b600435600052601484526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461000e57600080600319360112610954576040519080600354611f7f816119d5565b8085529160019180831690811561092a5750600114611fa85761063c856108c381870382610f98565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410611feb5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101611fd0565b503461000e57602036600319011261000e5760043561202181610594565b60008054600180546001600160a01b039485169493920360001901905b818111156120ca57505061205190612d01565b9160009060019261206b6000546000199060015490030190565b935b84811115612083576040518061063c8882610b29565b828261209461113861113885613fd9565b16146120a9575b6120a490613334565b61206d565b926120c281856120bc6120a4948a613a91565b52613334565b93905061209b565b84846120db61113861113885613fd9565b16146120f0575b6120eb90613334565b61203e565b916120fd6120eb91613334565b9290506120e2565b503461000e57604036600319011261000e576107ac60043561212681610594565b61212e61345b565b60243590614492565b503461000e57600036600319011261000e57602060405160008152f35b604090600319011261000e5760043561216c81610594565b90602435610872816109ad565b503461000e5761218836612154565b600091338352601a60205260ff60408420541661224d576001600160a01b03906121c46121b433613230565b6121bd336132b0565b9083612ea3565b158015612245575b6121d590613f1d565b3384526007602052612212836122018360408820906001600160a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051921515835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b5082156121cc565b60405162461bcd60e51b815260206004820152600b60248201527f4f776e65724c6f636b65640000000000000000000000000000000000000000006044820152606490fd5b50634e487b7160e01b600052603260045260246000fd5b6018548110156122e4575b601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0190600090565b6122ec612292565b6122b4565b503461000e57602036600319011261000e5760043560185481101561000e57601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f6001600160a01b03827fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0154169101549061063c60405192839283602090939291936001600160a01b0360408201951681520152565b604090600319011261000e576004356123a781610594565b9060243561087281610594565b503461000e5760206105cd6123c83661238f565b6123da6123d482613230565b916132b0565b91612ea3565b503461000e576123ef3661238f565b505061063c610b8c612ce9565b503461000e57602036600319011261000e5760206105cd600435613e8d565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e5760043561245381610594565b60243561245f81610594565b6064359167ffffffffffffffff831161000e573660238401121561000e576124946107ac93369060248160040135910161135b565b9160443591614361565b503461000e57600036600319011261000e576020601654604051908152f35b503461000e57600080600319360112610954576040519080601d546124e1816119d5565b8085529160019180831690811561092a575060011461250a5761063c856108c381870382610f98565b9250601d83527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f5b82841061254d5750505081016020016108c38261063c6108b3565b80546020858701810191909152909301928101612532565b503461000e57602036600319011261000e5760043561258381614051565b1561264b57612590611a0f565b80519091906000901561262a57506040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816125b4576108c391506126126126009161063c95612606612625966080601f1994858101920301815260405195869360208501906134b0565b906134b0565b03908101835282610f98565b61164060405193849260208401906134b0565b613b9c565b60405161063c935061262592506108c39161264482610f7c565b8152612612565b604051630a14c4b560e41b8152600490fd5b503461000e57604036600319011261000e576107ac60243561267e81610594565b612686612b5e565b600435612ac5565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e576001600160a01b036126c436612154565b91169081331480156126f8575b1561000e576107ac91600052601a60205260406000209060ff801983541691151516179055565b503360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff166126d1565b503461000e5761273f36611392565b61274761337f565b805167ffffffffffffffff8111612831575b61276d81612768601d546119d5565b613d26565b602080601f83116001146127aa5750819260009261279f575b5050600019600383901b1c191660019190911b17601d55005b015190503880612786565b90601f198316936127dd601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90565b926000905b8682106128195750508360019510612800575b505050811b01601d55005b015160001960f88460031b161c191690553880806127f5565b806001859682949686015181550195019301906127e2565b612839610f20565b612759565b503461000e5760206105cd6128523661238f565b906132da565b503461000e57602036600319011261000e576001600160a01b0360043561287e81610594565b16600052601a602052602060ff604060002054166040519015158152f35b503461000e57606036600319011261000e57610b81600435610594565b503461000e57602036600319011261000e576004356128d781610594565b6128df612b5e565b6001600160a01b0380911690811561292c57600854826001600160a01b0319821617600855167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57600435600481101561000e576129bd612b5e565b80156129d65760ff801960105416911617601055600080f35b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e57612a5e600435610594565b610b81602435610594565b503461000e57600036600319011261000e5760206040516526a4a72a22a960d11b8152f35b503461000e57602036600319011261000e576107ac6001600160a01b03600435612ab781610594565b612abf612b5e565b16612fa0565b600090808252601460205260ff612af28460408520906001600160a01b0316600052602052604060002090565b5416612afd57505050565b8082526014602052612b258360408420906001600160a01b0316600052602052604060002090565b60ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6001600160a01b033394169280a4565b6001600160a01b03600854163303612b7257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190612bc382610f37565b6012546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612c0657565b610fc7612bdc565b8115612c18570490565b634e487b7160e01b600052601260045260246000fd5b906000916001600160a01b039081612c4582613fd9565b16612c5a82612c5481846131de565b9261328a565b90612c6481610b98565b60028103612c86575050612c7790613fd9565b163314612c8057565b60009150565b91509150610872929350612d55565b600092916001600160a01b039182612cac83613fd9565b16612cbb83612c5481846131de565b91612cc582610b98565b60028203612cd957505050612c7790613fd9565b9193509150610872939450612ea3565b604051612cf581610f7c565b60008152906000368137565b90612d0b82610fc9565b612d186040519182610f98565b8281528092612d29601f1991610fc9565b0190602036910137565b9081602091031261000e5751610872816109ad565b506040513d6000823e3d90fd5b612d5e81610b98565b60018103612d6d575050600090565b612d7681610b98565b60038103612d85575050600190565b80612d91600292610b98565b03612e5a57612d9e61317c565b612e5457612db76111386009546001600160a01b031690565b6001600160a01b03811615612e4d57604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa908115612e40575b600091612e12575b5015612e0d57600090565b600190565b612e33915060203d8111612e39575b612e2b8183610f98565b810190612d33565b38612e02565b503d612e21565b612e48612d48565b612dfa565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b0390fd5b90612ead81610b98565b60018103612ebd57505050600090565b612ec681610b98565b60038103612ed657505050600190565b80612ee2600292610b98565b03612e5a57612ef0816131ba565b612f5457612f096111386009546001600160a01b031690565b916001600160a01b03831615612f4c57604051630f8350ed60e41b81526001600160a01b0390921660048301526024820152906020908290818060448101612dee565b505050600190565b5050600090565b600a54811015612f93575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b612f9b612292565b612f66565b80600052600b60205260406000205415600014612e545780600a5468010000000000000000811015613024575b6001810180600a55811015613017575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b61301f612292565b612fdd565b61302c610f20565b612fcd565b600019810191908211612c0657565b91908203918211612c0657565b600a54801561309f5760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015613092575b600a83520155600a55565b61309a612292565b613087565b634e487b7160e01b600052603160045260246000fd5b6000818152600b60205260409020548015612f54576000916131109160001980820182811161316f575b600a54918201918211613162575b808203613116575b50505061310061304d565b600052600b602052604060002090565b55600190565b61310061313e9161313661312c61315995612f5b565b90549060031b1c90565b928391612f5b565b90919082549060031b600019811b9283911b16911916179055565b553880806130f5565b61316a612bdc565b6130ed565b613177612bdc565b6130df565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765415156001146131b45790565b50600190565b6001600160a01b03600091168152600b602052600160408220541515146131b45790565b6000828152600c60205260ff604082205416600481101561321c5761320857506108729150613230565b6040915060ff928152600c60205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252600e60205260ff60408320541660048110156132765761326457505060ff6010541690565b8152600e602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b90600052600d6020526040600020546132a657610872906132b0565b5060406000205490565b6001600160a01b0316600052600f6020526040600020546132d15760115490565b60406000205490565b6132f66132e682613230565b6132ef836132b0565b9084612ea3565b612f545760ff916001600160a01b0361332f921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b6001906000198114613344570190565b61334c612bdc565b0190565b91908110156133605760051b0190565b610feb612292565b91908201809211612c0657565b3561087281610594565b3360009081527ffed767dce5abbc124abb000acb1edd70e496bbd5602e0747d5c8247f09841967602052604090205460ff16156133b857565b612e9f60486134436133c9336135a9565b6116406133d461365e565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152613414815180926020603789019101610819565b84017f206973206d697373696e6720726f6c6520000000000000000000000000000000603782015201906134b0565b60405162461bcd60e51b815291829160048301610861565b3360009081527f5783e7c466a2f0a4bfe8dda7b890080105d676a72d15cc9a08062e149ae2ca34602052604090205460ff161561349457565b612e9f60486134436134a5336135a9565b6116406133d46136d5565b9061334c60209282815194859201610819565b604051906080820182811067ffffffffffffffff8211176134f0575b604052604282526060366020840137565b6134f8610f20565b6134df565b60209080511561350b570190565b61334c612292565b60219080516001101561350b570190565b90602091805182101561353657010190565b61353e612292565b010190565b8015613551575b6000190190565b613559612bdc565b61354a565b1561356557565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117613651575b604052602a8252604036602084013760306135df836134fd565b5360786135eb83613513565b536029905b600182116136035761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f61363e93166010811015613644575b1a6136348486613524565b5360041c91613543565b906135f0565b61364c612292565b613629565b613659610f20565b6135c5565b6420a226a4a760d91b61366f6134c3565b90603061367b836134fd565b53607861368783613513565b536041905b6001821161369f5761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f6136cf93166010811015613644571a6136348486613524565b9061368c565b6526a4a72a22a960d11b6136e76134c3565b9060306136f3836134fd565b5360786136ff83613513565b536041905b600182116137175761087291501561355e565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f61374793166010811015613644571a6136348486613524565b90613704565b1561375457565b60405162461bcd60e51b815260206004820152601260248201527f496e76616c69642053616c657320496e666f00000000000000000000000000006044820152606490fd5b156137a057565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b156137ec57565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561383857565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b1561388457565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b9192916000915b8083106138de575050501490565b9091926138ec848385613350565b3590600082821015613915575060005260205261390e60406000205b93613334565b91906138d0565b60409161390e93825260205220613908565b919261393161345b565b4260a01b9360005b8351811015613a835780613a16613953613a2a9387613a91565b5161395d81613fd9565b6001600160a01b0381169061397f836000526006602052604060002090815490565b613989858561426c565b613a79575b506139ac826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff0190556000838152600460205260409020828c17600360e01b179055600160e11b811615613a2f575b50816000827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4614239565b611154613a2560015460010190565b600155565b613939565b60018301613a47816000526004602052604060002090565b5415613a54575b506139e8565b6000548114613a4e57613a71906000526004602052604060002090565b553880613a4e565b600090553861398e565b5091509250610fc791614492565b6020918151811015613aa6575b60051b010190565b613aae612292565b613a9e565b90604051613ac081610f60565b6080600482948054845260ff6001820154161515602085015260028101546040850152600381015460608501520154910152565b60405190613b0182610f60565b60009182815282602082015282604082015260608381830152608091848382015250839160178054935b848110613b36578680fd5b818752613b67600582027fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501613ab3565b4285820151111580613b90575b613b875750613b8290613334565b613b2b565b96505050505050565b50838101514210613b74565b601d5460009291613bac826119d5565b91600190818116908115613c185750600114613bc757505050565b9091929350601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f906000915b848310613c05575050500190565b8181602092548587015201920191613bf7565b60ff191683525050811515909102019150565b15613c3257565b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b906020600191613ca78135613c8b81610594565b85906001600160a01b03166001600160a01b0319825416179055565b0135910155565b818110613cb9575050565b60008155600101613cae565b90601f8211613cd2575050565b610fc791601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211906020601f840160051c83019310613d1c575b601f0160051c0190613cae565b9091508190613d0f565b90601f8211613d33575050565b610fc791601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f906020601f840160051c83019310613d1c57601f0160051c0190613cae565b90608060049180358455613dac6020820135613d97816109ad565b600186019060ff801983541691151516179055565b60408101356002850155606081013560038501550135910155565b90604051613dd481610f37565b6020600182946001600160a01b0381541684520154910152565b3d15613e19573d90613dff82611330565b91613e0d6040519384610f98565b82523d6000602084013e565b606090565b1561000e57565b613e2e81613e8d565b15613e605760207f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161191604051908152a1565b60207ff27b6ce5b2f5e68ddb2fd95a8a909d4ecf1daaac270935fff052feacb24f184291604051908152a1565b6001600160a01b03613e9e82613fd9565b16600052601a60205260ff60406000205416908115613ebb575090565b9050600052601b60205260ff6040600020541690565b15613ed857565b60405162461bcd60e51b815260206004820152600660248201527f4c6f636b656400000000000000000000000000000000000000000000000000006044820152606490fd5b15613f2457565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b63ffffffff60e01b1663152a902d60e11b8114908115613f87575090565b6301ffc9a760e01b14919050565b63ffffffff60e01b166301ffc9a760e01b8114908115613fc8575b8115613fba575090565b635b5e139f60e01b14919050565b6380ac58cd60e01b81149150613fb0565b6000818060011115613ff8575b604051636f96cda160e11b8152600490fd5b8154811015613fe65781526004906020918083526040928383205494600160e01b86161561402857505050613fe6565b93929190935b851561403c57505050505090565b6000190180835281855283832054955061402e565b80600111159081614080575b81614066575090565b90506000526004602052600160e01b604060002054161590565b6000548110915061405d565b91909161409882613fd9565b6001600160a01b03908183168083831603614228576000858152600660205260409020805490939092906140db6001600160a01b03871633908114908614171590565b614204575b87169283156141f257878795614142926140fe88610fc79c8b614307565b6141e8575b50614121876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b85171761416a866000526004602052604060002090565b5581161561419e575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4614239565b600184016141b6816000526004602052604060002090565b54156141c3575b50614173565b60005481146141bd576141e0906000526004602052604060002090565b5538806141bd565b6000905538614103565b604051633a954ecd60e21b8152600490fd5b6142116115bd33886132da565b156140e057604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b6001600160a01b03166142495750565b600052600c602052604060002060ff198154169055600d60205260006040812055565b6001600160a01b031615801590816142ff575b80156142ea575b61428f90613ed1565b6142965750565b61429f90612c2e565b6142a557565b60405162461bcd60e51b815260206004820152600660248201527f4c4f434b454400000000000000000000000000000000000000000000000000006044820152606490fd5b5061428f6142f783613e8d565b159050614286565b50600161427f565b9190916001600160a01b038091161580159182614356575b508015614341575b61433090613ed1565b614338575050565b61429f91612c95565b5061433061434e83613e8d565b159050614327565b90508316153861431f565b92919061436f82828661408c565b803b61437c575b50505050565b614385936143e9565b156143935738808080614376565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261000e5751610872816105d7565b909261087294936080936001600160a01b0380921684521660208301526040820152816060820152019061083c565b9260209161441a9360006001600160a01b03604051809781968295630a85bd0160e11b9b8c855233600486016143ba565b0393165af160009181614462575b5061445457614435613dee565b8051908161444f576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61448491925060203d811161448b575b61447c8183610f98565b8101906143a5565b9038614428565b503d614472565b90600090815492811561455d576144bc816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001600160a01b03600191169181811460e11b4260a01b1783176144fb866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b85810361454e575050501561453d5755565b604051622e076360e81b8152600490fd5b8083918587858180a40161452b565b60405163b562e8dd60e01b8152600490fdfea164736f6c6343000811000a

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.