ETH Price: $3,417.50 (-1.12%)
Gas: 6 Gwei

Token

Shikibu World (SKB)
 

Overview

Max Total Supply

10,000 SKB

Holders

2,185

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SKB
0xe7570c0f1c57e133231a7a0dceb511b3cc04591d
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:
ShikibuWorld

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : ShikibuWorld.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.9 <0.9.0;
import "./contract-allow-list/contracts/ERC721AntiScam/restrictApprove/ERC721RestrictApprove.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./OperatorFilterRegistry/DefaultOperatorFilterer.sol";
import "./interface/ITokenURI.sol";

contract ShikibuWorld is
    Ownable,
    AccessControl,
    ERC721RestrictApprove,
    DefaultOperatorFilterer {
    using ECDSA for bytes32;

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

    string public baseURI ="";
    string public baseExtension = ".json";
    ITokenURI public tokenuri;

    uint256 public constant MAX_SUPPLY = 10000;
    bytes32 public constant ADMIN = keccak256("ADMIN");

    uint256 public maxReservedSupply = 3295;
    uint256 public ReservedMinted;
    uint256 public maxPri2MintAmmount = 1;
    uint256 public mintCost = 0.001 ether;
    uint256 public maxBurnMintSupply = 2000;
    uint256 public burnMintCost = 0.001 ether;
    uint256 public burnMintIndex;

    address public withdrawAddress = 0xCEF8d9251d3fF8674ba91ab24F0ee3652074EC64;
    address public constant TREASURY_ADDRESS_1 = 0xCEF8d9251d3fF8674ba91ab24F0ee3652074EC64; // 1 + 499
    address public constant TREASURY_ADDRESS_2 = 0x60673e51562dBd400c6F999f20fF07F14436fa13; //     400
    address public constant TREASURY_ADDRESS_3 = 0x0a8D214fc82569f712d3F3Fa4B0fc921d49d74B0; //    1500
    address public constant TREASURY_ADDRESS_4 = 0xee93e2D824b62d408024D9fC87C1926d7a38428F; //     100

    address public adminSigner;

    mapping(address => uint256) public pri1MintCount;
    mapping(address => uint256) public pri2MintCount;
    
    struct BurnMintStruct {
        bool isDone;
        mapping(address => uint256) numberOfBurnMintByAddress;
    }
    mapping(uint256 => BurnMintStruct) public burnMintStructs;

    enum SalePhase {
        Locked,
        Pri1Sale,
        Pri2Sale,
        Pri3Sale,
        BurnMint
    }
    SalePhase public phase = SalePhase.Locked;

    constructor() ERC721A("Shikibu World", "SKB") {
        setBaseURI('https://shikibu-world.s3.ap-northeast-1.amazonaws.com/metadata/');
        adminSigner = 0xa1F043f0aBfA7F0979524d910B87B3c780E0cD31;
        _grantRole(ADMIN,0x1b632c9a883DF07A18d4b2813840E029bEceFf6D);
        _grantRole(ADMIN,0x480d565527086DC3dc2262648194E1e9cCAB70EF);
        _grantRole(ADMIN,0x3FFcb00bE71F4a0Aa2d8624fBA4e97203FA3EA3B);
        _grantRole(ADMIN,0xf3CfAD477A0f8443b0b6E81BF7A4a1fF7B69D46f);
        _grantRole(ADMIN,0x0dAE5FcaD0DF8E5C029D76927582DFBdFd7eeC79);
        _safeMint(TREASURY_ADDRESS_1,1);
    }

    ////////// modifiers //////////
    modifier onlyAdminOrOwner() {
        require(
            owner() == _msgSender() || hasRole(ADMIN, msg.sender),
            "caller is not the admin"
        );
        _;
    }

    ////////// public functions //////////
    // Private1セール(AL) function
    function pri1Mint(
        uint256 _mintAmount,
        uint256 _allocated,
        bytes calldata _signature
    ) external payable {
        // コントラクトからのミントガード
        require(tx.origin == msg.sender, "Cannot mint from contracts");

        // セールフェイズチェック
        require(phase == SalePhase.Pri1Sale, "Pri1Sale is disabled");

        // ミント数がゼロでないこと
        require(_mintAmount != 0, "mintAmount is zero");

        // 署名チェック
        require(
            keccak256(abi.encodePacked(phase, msg.sender, _allocated, "|", pri1MintCount[msg.sender]))
                .toEthSignedMessageHash()
                .recover(_signature) == adminSigner,
            "invalid proof."
        );

        // ミント数上限チェック
        require(
            pri1MintCount[msg.sender] + _mintAmount <= _allocated,
            "exceeds number of earned Tokens"
        );

        // ミントコストチェック
        require(mintCost * _mintAmount <= msg.value, "not enough eth");

        // ミント数がMAX SUPPLY - 予約枠を超えていないかチェック
        require(
            _mintAmount + totalSupply() - ReservedMinted <= MAX_SUPPLY - maxReservedSupply,
            "claim is over the max supply"
        );

        _safeMint(msg.sender, _mintAmount);

        // プレセールミント数済み数加算
        pri1MintCount[msg.sender] += _mintAmount;
    }

    // 予約者ミント(AL/予約あり) function
    function reservedMint(
        uint256 _mintAmount,
        uint256 _allocated,
        bytes calldata _signature
    ) external payable {
        // コントラクトからのミントガード
        require(tx.origin == msg.sender, "Cannot mint from contracts");

        // セールフェイズチェック
        require(phase == SalePhase.Pri1Sale || phase == SalePhase.Pri3Sale, "sale is disabled");

        // ミント数がゼロでないこと
        require(_mintAmount != 0, "mintAmount is zero");

        // 署名チェック
        require(
            keccak256(abi.encodePacked(phase, msg.sender, _allocated, "|", pri1MintCount[msg.sender], "RESERVED"))
                .toEthSignedMessageHash()
                .recover(_signature) == adminSigner,
            "invalid proof."
        );

        // ミント数上限チェック
        require(
            pri1MintCount[msg.sender] + _mintAmount <= _allocated,
            "exceeds number of earned Tokens"
        );

        // 予約ミント数上限チェック
        require(
            ReservedMinted + _mintAmount <= maxReservedSupply,
            "exceeds number of earned reserved Tokens"
        );

        // ミントコストチェック
        require(mintCost * _mintAmount <= msg.value, "not enough eth");

        // ミント数がMAX SUPPLYを超えていないかチェック
        require(
            _mintAmount + totalSupply() <= MAX_SUPPLY,
            "claim is over the max supply"
        );

        _safeMint(msg.sender, _mintAmount);

        // プレセールミント数済み加算
        pri1MintCount[msg.sender] += _mintAmount;

        // ミント済み予約枠加算
        ReservedMinted += _mintAmount;
    }

    // Private2(早押し)セール function
    function pri2Mint(
        uint256 _mintAmount,
        bytes calldata _signature
    ) external payable {
        // コントラクトからのミントガード
        require(tx.origin == msg.sender, "Cannot mint from contracts");
        
        // セールフェイズチェック
        require(phase == SalePhase.Pri2Sale, "Pri2Sale is disabled");
        
        // ミント数が1であること
        require(_mintAmount == 1, "mintAmount is not 1");

        // 署名チェック
        require(
            keccak256(abi.encodePacked(phase, msg.sender, maxPri2MintAmmount, "|", pri2MintCount[msg.sender]))
                .toEthSignedMessageHash()
                .recover(_signature) == adminSigner,
            "invalid proof."
        );

        // 早押しミント数上限チェック
        require(
            pri2MintCount[msg.sender] + _mintAmount <= maxPri2MintAmmount,
            "exceeds number of maxMint"
        );

        // ミントコストチェック
        require(mintCost * _mintAmount <= msg.value, "not enough eth");

        // ミント数がMAX SUPPLY - 予約枠を超えていないかチェック
        require(
            _mintAmount + totalSupply() - ReservedMinted <= MAX_SUPPLY - maxReservedSupply,
            "claim is over the max supply"
        );

        _safeMint(msg.sender, _mintAmount);
    
        // 早押しミント数済み加算
        pri2MintCount[msg.sender] += _mintAmount;
    }

    // AdminMint function
    function adminMint(
        address _mintTo,
        uint256 _mintAmount
    ) external onlyAdminOrOwner{
        // ミント数がゼロでないこと
        require(_mintAmount != 0, "mintAmount is zero");

        // ミント数がMAX SUPPLYを超えていないかチェック
        require(
            _mintAmount + totalSupply() <= MAX_SUPPLY,
            "claim is over the max supply"
        );

        _safeMint(_mintTo, _mintAmount);
    }

	function adminMint_array(address[] calldata _airdropAddresses , uint256[] memory _UserMintAmount) external onlyAdminOrOwner{
	    uint256 supply = totalSupply();
	    uint256 _mintAmount = 0;
	    for (uint256 i = 0; i < _UserMintAmount.length; i++) {
	        _mintAmount += _UserMintAmount[i];
	    }
	    require(_mintAmount > 0, "need to mint at least 1 NFT");
	    require(supply + _mintAmount <= MAX_SUPPLY, "max NFT limit exceeded");
	    require(_airdropAddresses.length ==  _UserMintAmount.length, "array length unmuch");

	    for (uint256 i = 0; i < _UserMintAmount.length; i++) {
	        _safeMint(_airdropAddresses[i], _UserMintAmount[i] );
	    }
	}

    // バーンミント function
    function burnMint(
        uint256[] memory _burnTokenIds,
        uint256 _allocated,
        bytes calldata _signature
    ) external payable {
        // コントラクトからのミントガード
        require(tx.origin == msg.sender, "Cannot mint from contracts");

        // セールフェイズチェック
        require(phase == SalePhase.BurnMint, "burnMint is disabled");

        // バーンミント数がゼロでないこと
        require(_burnTokenIds.length != 0, "the quantity is zero");

        // バーンミント署名チェック
        require(
            keccak256(abi.encodePacked(
                        phase,
                        burnMintIndex,
                        msg.sender,
                        _allocated, "|", 
                        burnMintStructs[burnMintIndex].numberOfBurnMintByAddress[msg.sender]))
                .toEthSignedMessageHash()
                .recover(_signature) == adminSigner,
            "invalid proof."
        );

        // バーンミント割り当て数を超えていないかチェック
        require(
            burnMintStructs[burnMintIndex].numberOfBurnMintByAddress[
                msg.sender
            ] +
                _burnTokenIds.length <=
                _allocated,
            "address already claimed max amount"
        );

        // ミントコストチェック
        require(burnMintCost * _burnTokenIds.length <= msg.value, "not enough eth");

        // バーン最大数を超えていないかチェック
        require(
            _burnTokenIds.length + _totalBurned() <= maxBurnMintSupply,
            "over total burn count"
        );

        // バーンミント割り当て数加算
        burnMintStructs[burnMintIndex].numberOfBurnMintByAddress[
                msg.sender
            ] += _burnTokenIds.length;

        // バーン実行
        for (uint256 i = 0; i < _burnTokenIds.length; i++) {
            uint256 tokenId = _burnTokenIds[i];
            require(
                _msgSender() == ownerOf(tokenId),
                "sender is not the owner of the token"
            );
            _burn(tokenId);
        }

        // バーン後ミント実行
        _safeMint(msg.sender, _burnTokenIds.length);
    }

    ////////// onlyOwner functions //////////
    function setAdminRole(address[] memory admins) external onlyOwner{
        for (uint256 i = 0; i < admins.length; i++) {
            _grantRole(ADMIN, admins[i]);
        }
    }

    function revokeAdminRole(address[] memory admins) external onlyOwner{
        for (uint256 i = 0; i < admins.length; i++) {
            _revokeRole(ADMIN, admins[i]);
        }
    }

    ////////// onlyAdminOrOwner functions //////////
    function setMaxReservedSupply(uint256 _value) public onlyAdminOrOwner {
        maxReservedSupply = _value;
    }

    function setmaxPri2MintAmmount(uint256 _value) public onlyAdminOrOwner {
        maxPri2MintAmmount = _value;
    }

    function setMintCost(uint256 _value) public onlyAdminOrOwner {
        mintCost = _value;
    }

    function setBaseURI(string memory _value) public onlyAdminOrOwner {
        baseURI = _value;
    }

    function setBaseExtension(string memory _value) public onlyAdminOrOwner {
        baseExtension = _value;
    }

    function setTokenURI(ITokenURI _tokenuri) external onlyAdminOrOwner{
        tokenuri = _tokenuri;
    }

    function setAdminSigner(address _adminSigner) external onlyAdminOrOwner {
        require(_adminSigner != address(0), "address shouldn't be 0");
        adminSigner = _adminSigner;
    }

    function setPhase(SalePhase _phase) external onlyAdminOrOwner {
        phase = _phase;
    }

    function setWithdrawAddress(address _withdrawAddress) external onlyAdminOrOwner {
        withdrawAddress = _withdrawAddress;
    }

    function withdraw() external payable onlyAdminOrOwner {
        require(
            withdrawAddress != address(0),
            "withdrawAddress shouldn't be 0"
        );
        (bool sent, ) = payable(withdrawAddress).call{value: address(this).balance}("");
        require(sent, "failed to move fund to withdrawAddress contract");
    }

    function setBurnMintCost(uint256 _cost) external onlyAdminOrOwner {
        burnMintCost = _cost;
    }

    function setMaxBurnMintSupply(uint256 _amount) external onlyAdminOrOwner {
        maxBurnMintSupply = _amount;
    }

    function increaseBurnMintIndex() external onlyAdminOrOwner {
        burnMintStructs[burnMintIndex].isDone = true;
        burnMintIndex += 1;
    }

    ////////// OVERRIDES ERC721A functions //////////
    function _beforeTokenTransfers(
        address from,
        address /*to*/,
        uint256 /*startTokenId*/,
        uint256 quantity
    ) internal view override {
        // Treasury Lock-up
        if(block.timestamp > 1986303600) { // UNIXTIME 2032-12-11 00:00
            return; // Lock-up completed
        }

        if(from == TREASURY_ADDRESS_3) {
            uint32[10] memory treasuryUnlockTime= [
                1702220400, // UNIXTIME 2023-12-11 00:00
                1733842800, // UNIXTIME 2024-12-11 00:00
                1765378800, // UNIXTIME 2025-12-11 00:00
                1796914800, // UNIXTIME 2026-12-11 00:00
                1828450800, // UNIXTIME 2027-12-11 00:00
                1860073200, // UNIXTIME 2028-12-11 00:00
                1891609200, // UNIXTIME 2029-12-11 00:00
                1923145200, // UNIXTIME 2030-12-11 00:00
                1954681200, // UNIXTIME 2031-12-11 00:00
                1986303600  // UNIXTIME 2032-12-11 00:00
                ];
            uint16[10] memory treasuryLockAmmount= [
                1000, 900, 800,	700, 600, 500, 400, 300, 200, 100
            ];

            for(uint8 timeIndex = 0; timeIndex < treasuryUnlockTime.length; timeIndex++) {
                if(block.timestamp < treasuryUnlockTime[timeIndex]) {
                    require(
                        balanceOf(from) - quantity >= treasuryLockAmmount[timeIndex],
                        "Transfer is not possible during lockup.");
                    return;
                } 
            }
        }
    }

    ////////// OVERRIDES ERC721RestrictApprove functions //////////
    function addLocalContractAllowList(address transferer)
        public
        override
        onlyAdminOrOwner
    {
        _addLocalContractAllowList(transferer);
    }

    function removeLocalContractAllowList(address transferer)
        public
        override
        onlyAdminOrOwner
    {
        _removeLocalContractAllowList(transferer);
    }

    function getLocalContractAllowList() 
        public
        override
        view
        returns(address[] memory)
    {
        return _getLocalContractAllowList();
    }

    function setCALLevel(uint256 level) public override onlyAdminOrOwner {
        CALLevel = level;
    }

    function setCAL(address calAddress) public override onlyAdminOrOwner {
        _setCAL(calAddress);
    }

    ////////// OVERRIDES OperatorFilter functions //////////
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override(ERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    ////////// public functions //////////
    function totalBurned() public view virtual returns (uint256) {
        return _totalBurned();
    }

    ////////// other functions //////////
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "URI query for nonexistent token");

        if (address(tokenuri) != address(0)) {
            return tokenuri.tokenURI(_tokenId);
        }
        return
           string(abi.encodePacked(ERC721A.tokenURI(_tokenId), baseExtension));
    }

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

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

    function getBurnMintCount(address _address)
        external
        view
        returns (uint256)
    {
        return
            burnMintStructs[burnMintIndex].numberOfBurnMintByAddress[_address];
    }
    
    // to avoid renounce to undefined address
    function renounceOwnership() public override onlyOwner {
        _transferOwnership(address(msg.sender));
    }

}

File 2 of 20 : ITokenURI.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.7.0 <0.9.0;

interface ITokenURI{
    function tokenURI(uint256 _tokenId) external view returns(string memory);
}

File 3 of 20 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 4 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 6 of 20 : 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 7 of 20 : ERC721RestrictApprove.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "erc721a/contracts/ERC721A.sol";
import "./IERC721RestrictApprove.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../../proxy/interface/IContractAllowListProxy.sol";

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

abstract contract ERC721RestrictApprove is ERC721A, IERC721RestrictApprove {
    using EnumerableSet for EnumerableSet.AddressSet;

    IContractAllowListProxy public CAL;
    EnumerableSet.AddressSet localAllowedAddresses;

    modifier onlyHolder(uint256 tokenId) {
        require(
            msg.sender == ownerOf(tokenId),
            "RestrictApprove: operation is only holder."
        );
        _;
    }

    /*//////////////////////////////////////////////////////////////
    変数
    //////////////////////////////////////////////////////////////*/
    bool public enableRestrict = true;

    // token lock
    mapping(uint256 => uint256) public tokenCALLevel;

    // wallet lock
    mapping(address => uint256) public walletCALLevel;

    // contract lock
    uint256 public CALLevel = 1;

    /*///////////////////////////////////////////////////////////////
    Approve抑制機能ロジック
    //////////////////////////////////////////////////////////////*/
    function _addLocalContractAllowList(address transferer)
        internal
        virtual
    {
        localAllowedAddresses.add(transferer);
        emit LocalCalAdded(msg.sender, transferer);
    }

    function _removeLocalContractAllowList(address transferer)
        internal
        virtual
    {
        localAllowedAddresses.remove(transferer);
        emit LocalCalRemoved(msg.sender, transferer);
    }

    function _getLocalContractAllowList()
        internal
        virtual
        view
        returns(address[] memory)
    {
        return localAllowedAddresses.values();
    }

    function _isLocalAllowed(address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        return localAllowedAddresses.contains(transferer);
    }

    function _isAllowed(address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        return _isAllowed(msg.sender, transferer);
    }

    function _isAllowed(uint256 tokenId, address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        uint256 level = _getCALLevel(msg.sender, tokenId);
        return _isAllowed(transferer, level);
    }

    function _isAllowed(address holder, address transferer)
        internal
        view
        virtual
        returns (bool)
    {
        uint256 level = _getCALLevel(holder);
        return _isAllowed(transferer, level);
    }

    function _isAllowed(address transferer, uint256 level)
        internal
        view
        virtual
        returns (bool)
    {
        if (!enableRestrict) {
            return true;
        }

        return _isLocalAllowed(transferer) || CAL.isAllowed(transferer, level);
    }

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

        return _getCALLevel(holder);
    }

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

        return CALLevel;
    }

    function _setCAL(address _cal) internal virtual {
        CAL = IContractAllowListProxy(_cal);
    }

    function _deleteTokenCALLevel(uint256 tokenId) internal virtual {
        delete tokenCALLevel[tokenId];
    }

    function setTokenCALLevel(uint256 tokenId, uint256 level)
        external
        virtual
        onlyHolder(tokenId)
    {
        tokenCALLevel[tokenId] = level;
    }

    function setWalletCALLevel(uint256 level)
        external
        virtual
    {
        walletCALLevel[msg.sender] = level;
    }

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

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

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

    function _beforeApprove(address to, uint256 tokenId)
        internal
        virtual
    {
        if (to != address(0)) {
            require(_isAllowed(tokenId, to), "RestrictApprove: The contract is not allowed.");
        }
    }

    function approve(address to, uint256 tokenId)
        public
        payable
        virtual
        override
    {
        _beforeApprove(to, tokenId);
        super.approve(to, tokenId);
    }

    function _afterTokenTransfers(
        address from,
        address, /*to*/
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // CALレベルをデフォルトに戻す。
            _deleteTokenCALLevel(startTokenId);
        }
    }

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

File 8 of 20 : 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 9 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

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) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

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

        return result;
    }

    // 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 in 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 20 : IERC721RestrictApprove.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @title IERC721RestrictApprove
/// @dev Approve抑制機能付きコントラクトのインターフェース
/// @author Lavulite

interface IERC721RestrictApprove {
    /**
     * @dev CALレベルが変更された場合のイベント
     */
    event CalLevelChanged(address indexed operator, uint256 indexed level);
    
    /**
     * @dev LocalContractAllowListnに追加された場合のイベント
     */
    event LocalCalAdded(address indexed operator, address indexed transferer);

    /**
     * @dev LocalContractAllowListnに削除された場合のイベント
     */
    event LocalCalRemoved(address indexed operator, address indexed transferer);

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

    /**
     * @dev CALのアドレスをセットする。
     */
    function setCAL(address calAddress) external;

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

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

    /**
     * @dev CALのリストにある独自の許可アドレスの一覧を取得する。
     */
    function getLocalContractAllowList() external view returns(address[] memory);

}

File 11 of 20 : 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 12 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }
    
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

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

File 14 of 20 : 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 15 of 20 : 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 16 of 20 : 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 17 of 20 : 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 18 of 20 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"level","type":"uint256"}],"name":"CalLevelChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"transferer","type":"address"}],"name":"LocalCalAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"transferer","type":"address"}],"name":"LocalCalRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ADDRESS_1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ADDRESS_2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ADDRESS_3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_ADDRESS_4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"transferer","type":"address"}],"name":"addLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintTo","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_UserMintAmount","type":"uint256[]"}],"name":"adminMint_array","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_allocated","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"burnMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"burnMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnMintStructs","outputs":[{"internalType":"bool","name":"isDone","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableRestrict","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBurnMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLocalContractAllowList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"increaseBurnMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBurnMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPri2MintAmmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum ShikibuWorld.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_allocated","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"pri1Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pri1MintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"pri2Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pri2MintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"transferer","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":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_allocated","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"reservedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"admins","type":"address[]"}],"name":"setAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adminSigner","type":"address"}],"name":"setAdminSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_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":"uint256","name":"_cost","type":"uint256"}],"name":"setBurnMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"calAddress","type":"address"}],"name":"setCAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setCALLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxBurnMintSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxReservedSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ShikibuWorld.SalePhase","name":"_phase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setTokenCALLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITokenURI","name":"_tokenuri","type":"address"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setWalletCALLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setmaxPri2MintAmmount","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":"","type":"uint256"}],"name":"tokenCALLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenuri","outputs":[{"internalType":"contract ITokenURI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletCALLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

600d805460ff1916600190811790915560105560a0604052600060809081526011906200002d908262000b75565b50604080518082019091526005815264173539b7b760d91b602082015260129062000059908262000b75565b50610cdf601455600160165566038d7ea4c6800060178190556107d0601855601955601b80546001600160a01b03191673cef8d9251d3ff8674ba91ab24f0ee3652074ec641790556020805460ff19169055348015620000b857600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600d81526020016c14da1a5ada589d4815dbdc9b19609a1b8152506040518060400160405280600381526020016229a5a160e91b8152506200012c62000126620003f460201b60201c565b620003f8565b60046200013a838262000b75565b50600562000149828262000b75565b50600160025550506daaeb6d7670e522a718067333cd4e3b1562000296578015620001e457604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620001c557600080fd5b505af1158015620001da573d6000803e3d6000fd5b5050505062000296565b6001600160a01b03821615620002355760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620001aa565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200027c57600080fd5b505af115801562000291573d6000803e3d6000fd5b505050505b5050620002bc6040518060600160405280603f815260200162005cca603f913962000448565b601c80546001600160a01b03191673a1f043f0abfa7f0979524d910b87b3c780e0cd311790556200031160008051602062005d09833981519152731b632c9a883df07a18d4b2813840e029beceff6d620004dc565b6200034060008051602062005d0983398151915273480d565527086dc3dc2262648194e1e9ccab70ef620004dc565b6200036f60008051602062005d09833981519152733ffcb00be71f4a0aa2d8624fba4e97203fa3ea3b620004dc565b6200039e60008051602062005d0983398151915273f3cfad477a0f8443b0b6e81bf7a4a1ff7b69d46f620004dc565b620003cd60008051602062005d09833981519152730dae5fcad0df8e5c029d76927582dfbdfd7eec79620004dc565b620003ee73cef8d9251d3ff8674ba91ab24f0ee3652074ec6460016200054a565b62000d4b565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314806200047857506200047860008051602062005d09833981519152336200056c565b620004ca5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f74207468652061646d696e00000000000000000060448201526064015b60405180910390fd5b6011620004d8828262000b75565b5050565b620004e882826200056c565b620004d85760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b620004d88282604051806020016040528060008152506200059960201b60201c565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b620005a5838362000610565b6001600160a01b0383163b156200060b576002548281035b6001810190620005d39060009087908662000709565b620005f1576040516368d2bf6b60e11b815260040160405180910390fd5b818110620005bd5781600254146200060857600080fd5b50505b505050565b6002546000829003620006365760405163b562e8dd60e01b815260040160405180910390fd5b620006456000848385620007fd565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b1783179055828401908390839060008051602062005d298339815191528180a4600183015b818114620006d4578083600060008051602062005d29833981519152600080a4600101620006ab565b5081600003620006f657604051622e076360e81b815260040160405180910390fd5b600255506200060b600084838562000a5d565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200074090339089908890889060040162000c41565b6020604051808303816000875af19250505080156200077e575060408051601f3d908101601f191682019092526200077b9181019062000cb4565b60015b620007e0573d808015620007af576040519150601f19603f3d011682016040523d82523d6000602084013e620007b4565b606091505b508051600003620007d8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6376649670421162000a5757730a8d214fc82569f712d3f3fa4b0fc921d49d74af196001600160a01b0385160162000a57576000604051806101400160405280636575d27063ffffffff168152602001636758577063ffffffff1681526020016369398af063ffffffff168152602001636b1abe7063ffffffff168152602001636cfbf1f063ffffffff168152602001636ede76f063ffffffff1681526020016370bfaa7063ffffffff1681526020016372a0ddf063ffffffff168152602001637482117063ffffffff168152602001637664967063ffffffff16815250905060006040518061014001604052806103e861ffff16815260200161038461ffff16815260200161032061ffff1681526020016102bc61ffff16815260200161025861ffff1681526020016101f461ffff16815260200161019061ffff16815260200161012c61ffff16815260200160c861ffff168152602001606461ffff16815250905060005b600a8160ff16101562000a5357828160ff16600a811062000989576200098962000ce7565b602002015163ffffffff1642101562000a3e57818160ff16600a8110620009b457620009b462000ce7565b602002015161ffff1684620009c98962000a82565b620009d5919062000d13565b101562000a355760405162461bcd60e51b815260206004820152602760248201527f5472616e73666572206973206e6f7420706f737369626c6520647572696e67206044820152663637b1b5bab81760c91b6064820152608401620004c1565b50505062000a57565b8062000a4a8162000d29565b91505062000964565b5050505b50505050565b6001600160a01b0384161562000a57576000828152600e602052604081205562000a57565b60006001600160a01b03821662000aac576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000afc57607f821691505b60208210810362000b1d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200060b57600081815260208120601f850160051c8101602086101562000b4c5750805b601f850160051c820191505b8181101562000b6d5782815560010162000b58565b505050505050565b81516001600160401b0381111562000b915762000b9162000ad1565b62000ba98162000ba2845462000ae7565b8462000b23565b602080601f83116001811462000be1576000841562000bc85750858301515b600019600386901b1c1916600185901b17855562000b6d565b600085815260208120601f198616915b8281101562000c125788860151825594840194600190910190840162000bf1565b508582101562000c315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b8281101562000c905785810182015185820160a00152810162000c72565b5050600060a0828501015260a0601f19601f83011684010191505095945050505050565b60006020828403121562000cc757600080fd5b81516001600160e01b03198116811462000ce057600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111562000593576200059362000cfd565b600060ff821660ff810362000d425762000d4262000cfd565b60010192915050565b614f6f8062000d5b6000396000f3fe60806040526004361061047d5760003560e01c8063715018a611610255578063b31391cb11610144578063c87b56dd116100c1578063e6430ef711610085578063e6430ef714610dac578063e985e9c514610dc2578063e9bc98aa14610de2578063f2fde38b14610e02578063ff76821214610e22578063ff9d2dcc14610e4257600080fd5b8063c87b56dd14610d17578063d547741f14610d37578063d89135cd14610d57578063da3ef23f14610d6c578063e58306f914610d8c57600080fd5b8063bdb4b84811610108578063bdb4b84814610c96578063c03afb5914610cac578063c0c2e0a314610ccc578063c1fad42c14610cec578063c668286214610d0257600080fd5b8063b31391cb14610c03578063b34d054714610c30578063b39d6e5a14610c50578063b88d4fde14610c70578063ba0be8dc14610c8357600080fd5b806395d89b41116101d2578063a25cdf9011610196578063a25cdf9014610b70578063a35c23ad14610b86578063ae2243c914610bb3578063b1c9fe6e14610bc9578063b2fd398e14610bf057600080fd5b806395d89b4114610ae85780639c02757a14610afd5780639ef258e014610b13578063a217fddf14610b3b578063a22cb46514610b5057600080fd5b80637cbb579f116102195780637cbb579f14610a4a5780638545f4ea14610a7757806385d397a914610a975780638da5cb5b14610aaa57806391d1485414610ac857600080fd5b8063715018a61461098d57806372b44d71146109a25780637a0ad11d146109c25780637c2fa09914610a0a5780637c3dc17314610a2a57600080fd5b806332948434116103715780634f3db346116102ee5780636352211e116102b25780636352211e146108f85780636a98de4c146109185780636c0360eb146109385780636e3bd6b11461094d57806370a082311461096d57600080fd5b80634f3db346146108525780635105196c146108685780635221ebc11461089057806354415c3b146108b857806355f804b3146108d857600080fd5b80633ccfd60b116103355780633ccfd60b146107d25780633ce53d2c146107da5780633ecfaf30146107f057806341f434341461081d57806342842e0e1461083f57600080fd5b8063329484341461073457806332cb6b0c1461075c57806336568abe14610772578063396e8f53146107925780633ab1a494146107b257600080fd5b8063183bbe80116103ff578063260f2e08116103c3578063260f2e08146106aa578063271b2fcc146106bd5780632a0acc6a146106dd5780632c2fe1fe146106ff5780632f2ff15d1461071457600080fd5b8063183bbe80146105e957806320e6e82b146106095780632398f8431461063957806323b872dd14610666578063248a9ca31461067957600080fd5b8063081812fc11610446578063081812fc1461053b578063095ea7b3146105735780630f4345e2146105865780631581b600146105a657806318160ddd146105c657600080fd5b80623f332f1461048257806301ffc9a7146104ad578063025e332e146104dd57806306fdde03146104ff5780630726538914610521575b600080fd5b34801561048e57600080fd5b50610497610e62565b6040516104a49190614197565b60405180910390f35b3480156104b957600080fd5b506104cd6104c83660046141fa565b610e71565b60405190151581526020016104a4565b3480156104e957600080fd5b506104fd6104f836600461422c565b610eb7565b005b34801561050b57600080fd5b50610514610f29565b6040516104a49190614299565b34801561052d57600080fd5b50600d546104cd9060ff1681565b34801561054757600080fd5b5061055b6105563660046142ac565b610fbb565b6040516001600160a01b0390911681526020016104a4565b6104fd6105813660046142c5565b610fff565b34801561059257600080fd5b506104fd6105a13660046142ac565b611018565b3480156105b257600080fd5b50601b5461055b906001600160a01b031681565b3480156105d257600080fd5b506105db611065565b6040519081526020016104a4565b3480156105f557600080fd5b506104fd61060436600461422c565b611073565b34801561061557600080fd5b506104cd6106243660046142ac565b601f6020526000908152604090205460ff1681565b34801561064557600080fd5b506105db61065436600461422c565b600f6020526000908152604090205481565b6104fd6106743660046142f1565b61112c565b34801561068557600080fd5b506105db6106943660046142ac565b6000908152600160208190526040909120015490565b6104fd6106b8366004614373565b611157565b3480156106c957600080fd5b506104fd6106d83660046142ac565b61140a565b3480156106e957600080fd5b506105db600080516020614efa83398151915281565b34801561070b57600080fd5b506104fd611457565b34801561072057600080fd5b506104fd61072f3660046143c5565b6114d7565b34801561074057600080fd5b5061055b730a8d214fc82569f712d3f3fa4b0fc921d49d74b081565b34801561076857600080fd5b506105db61271081565b34801561077e57600080fd5b506104fd61078d3660046143c5565b6114fd565b34801561079e57600080fd5b50600a5461055b906001600160a01b031681565b3480156107be57600080fd5b506104fd6107cd36600461422c565b61157b565b6104fd6115e5565b3480156107e657600080fd5b506105db60165481565b3480156107fc57600080fd5b506105db61080b36600461422c565b601d6020526000908152604090205481565b34801561082957600080fd5b5061055b6daaeb6d7670e522a718067333cd4e81565b6104fd61084d3660046142f1565b611740565b34801561085e57600080fd5b506105db60105481565b34801561087457600080fd5b5061055b73cef8d9251d3ff8674ba91ab24f0ee3652074ec6481565b34801561089c57600080fd5b5061055b73ee93e2d824b62d408024d9fc87c1926d7a38428f81565b3480156108c457600080fd5b506104fd6108d33660046144c9565b611765565b3480156108e457600080fd5b506104fd6108f33660046145bf565b611959565b34801561090457600080fd5b5061055b6109133660046142ac565b6119ad565b34801561092457600080fd5b5060135461055b906001600160a01b031681565b34801561094457600080fd5b506105146119b8565b34801561095957600080fd5b506104fd6109683660046142ac565b611a46565b34801561097957600080fd5b506105db61098836600461422c565b611a93565b34801561099957600080fd5b506104fd611ae1565b3480156109ae57600080fd5b506104fd6109bd36600461422c565b611af4565b3480156109ce57600080fd5b506105db6109dd36600461422c565b601a546000908152601f602090815260408083206001600160a01b03909416835260019093019052205490565b348015610a1657600080fd5b506104fd610a25366004614607565b611b45565b348015610a3657600080fd5b506104fd610a453660046146a0565b611b9c565b348015610a5657600080fd5b506105db610a6536600461422c565b601e6020526000908152604090205481565b348015610a8357600080fd5b506104fd610a923660046142ac565b611c2c565b6104fd610aa53660046146c2565b611c79565b348015610ab657600080fd5b506000546001600160a01b031661055b565b348015610ad457600080fd5b506104cd610ae33660046143c5565b611eef565b348015610af457600080fd5b50610514611f1a565b348015610b0957600080fd5b506105db60195481565b348015610b1f57600080fd5b5061055b7360673e51562dbd400c6f999f20ff07f14436fa1381565b348015610b4757600080fd5b506105db600081565b348015610b5c57600080fd5b506104fd610b6b36600461471b565b611f29565b348015610b7c57600080fd5b506105db60155481565b348015610b9257600080fd5b506104fd610ba13660046142ac565b336000908152600f6020526040902055565b348015610bbf57600080fd5b506105db601a5481565b348015610bd557600080fd5b50602054610be39060ff1681565b6040516104a4919061475f565b6104fd610bfe366004614787565b611f3d565b348015610c0f57600080fd5b506105db610c1e3660046142ac565b600e6020526000908152604090205481565b348015610c3c57600080fd5b506104fd610c4b3660046142ac565b6122b4565b348015610c5c57600080fd5b506104fd610c6b366004614607565b612301565b6104fd610c7e3660046147ea565b612358565b6104fd610c91366004614373565b612385565b348015610ca257600080fd5b506105db60175481565b348015610cb857600080fd5b506104fd610cc7366004614869565b612654565b348015610cd857600080fd5b506104fd610ce736600461422c565b6126c3565b348015610cf857600080fd5b506105db60145481565b348015610d0e57600080fd5b5061051461272d565b348015610d2357600080fd5b50610514610d323660046142ac565b61273a565b348015610d4357600080fd5b506104fd610d523660046143c5565b612845565b348015610d6357600080fd5b506105db61286b565b348015610d7857600080fd5b506104fd610d873660046145bf565b612876565b348015610d9857600080fd5b506104fd610da73660046142c5565b6128ca565b348015610db857600080fd5b506105db60185481565b348015610dce57600080fd5b506104cd610ddd36600461488a565b61296f565b348015610dee57600080fd5b506104fd610dfd3660046142ac565b6129bd565b348015610e0e57600080fd5b506104fd610e1d36600461422c565b612a0a565b348015610e2e57600080fd5b506104fd610e3d36600461422c565b612a80565b348015610e4e57600080fd5b50601c5461055b906001600160a01b031681565b6060610e6c612ad1565b905090565b60006001600160e01b03198216637965db0b60e01b1480610ea257506001600160e01b03198216633ecbebbf60e11b145b80610eb15750610eb182612add565b92915050565b6000546001600160a01b0316331480610ee35750610ee3600080516020614efa83398151915233611eef565b610f085760405162461bcd60e51b8152600401610eff906148b8565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b03831617905550565b50565b606060048054610f38906148ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610f64906148ef565b8015610fb15780601f10610f8657610100808354040283529160200191610fb1565b820191906000526020600020905b815481529060010190602001808311610f9457829003601f168201915b5050505050905090565b6000610fc682612b02565b610fe3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b8161100981612b37565b6110138383612bf0565b505050565b6000546001600160a01b03163314806110445750611044600080516020614efa83398151915233611eef565b6110605760405162461bcd60e51b8152600401610eff906148b8565b601055565b600354600254036000190190565b6000546001600160a01b031633148061109f575061109f600080516020614efa83398151915233611eef565b6110bb5760405162461bcd60e51b8152600401610eff906148b8565b6001600160a01b03811661110a5760405162461bcd60e51b81526020600482015260166024820152750616464726573732073686f756c646e277420626520360541b6044820152606401610eff565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b03811633146111465761114633612b37565b611151848484612c04565b50505050565b3233146111765760405162461bcd60e51b8152600401610eff90614929565b600160205460ff16600481111561118f5761118f614749565b146111d35760405162461bcd60e51b8152602060048201526014602482015273141c9a4c54d85b19481a5cc8191a5cd8589b195960621b6044820152606401610eff565b836000036111f35760405162461bcd60e51b8152600401610eff90614960565b601c54604080516020601f85018190048102820181019092528381526001600160a01b03909216916112cc91859085908190840183828082843760009201829052506020805433808452601d83526040938490205493516112c69750611266965060ff9092169450928c929091016149b1565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90612da6565b6001600160a01b0316146112f25760405162461bcd60e51b8152600401610eff906149ef565b336000908152601d6020526040902054839061130f908690614a2d565b111561135d5760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610eff565b348460175461136c9190614a40565b111561138a5760405162461bcd60e51b8152600401610eff90614a57565b60145461139990612710614a7f565b6015546113a4611065565b6113ae9087614a2d565b6113b89190614a7f565b11156113d65760405162461bcd60e51b8152600401610eff90614a92565b6113e03385612dca565b336000908152601d6020526040812080548692906113ff908490614a2d565b909155505050505050565b6000546001600160a01b03163314806114365750611436600080516020614efa83398151915233611eef565b6114525760405162461bcd60e51b8152600401610eff906148b8565b601455565b6000546001600160a01b03163314806114835750611483600080516020614efa83398151915233611eef565b61149f5760405162461bcd60e51b8152600401610eff906148b8565b601a80546000908152601f60205260408120805460ff191660019081179091558254909291906114d0908490614a2d565b9091555050565b600082815260016020819052604090912001546114f381612de4565b6110138383612dee565b6001600160a01b038116331461156d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610eff565b6115778282612e59565b5050565b6000546001600160a01b03163314806115a757506115a7600080516020614efa83398151915233611eef565b6115c35760405162461bcd60e51b8152600401610eff906148b8565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314806116115750611611600080516020614efa83398151915233611eef565b61162d5760405162461bcd60e51b8152600401610eff906148b8565b601b546001600160a01b03166116855760405162461bcd60e51b815260206004820152601e60248201527f7769746864726177416464726573732073686f756c646e2774206265203000006044820152606401610eff565b601b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146116d2576040519150601f19603f3d011682016040523d82523d6000602084013e6116d7565b606091505b5050905080610f265760405162461bcd60e51b815260206004820152602f60248201527f6661696c656420746f206d6f76652066756e6420746f2077697468647261774160448201526e19191c995cdcc818dbdb9d1c9858dd608a1b6064820152608401610eff565b826001600160a01b038116331461175a5761175a33612b37565b611151848484612ec0565b6000546001600160a01b03163314806117915750611791600080516020614efa83398151915233611eef565b6117ad5760405162461bcd60e51b8152600401610eff906148b8565b60006117b7611065565b90506000805b83518110156117ff578381815181106117d8576117d8614ac9565b6020026020010151826117eb9190614a2d565b9150806117f781614adf565b9150506117bd565b50600081116118505760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610eff565b61271061185d8284614a2d565b11156118a45760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610eff565b825184146118ea5760405162461bcd60e51b81526020600482015260136024820152720c2e4e4c2f240d8cadccee8d040eadcdaeac6d606b1b6044820152606401610eff565b60005b83518110156119515761193f86868381811061190b5761190b614ac9565b9050602002016020810190611920919061422c565b85838151811061193257611932614ac9565b6020026020010151612dca565b8061194981614adf565b9150506118ed565b505050505050565b6000546001600160a01b03163314806119855750611985600080516020614efa83398151915233611eef565b6119a15760405162461bcd60e51b8152600401610eff906148b8565b60116115778282614b3e565b6000610eb182612edb565b601180546119c5906148ef565b80601f01602080910402602001604051908101604052809291908181526020018280546119f1906148ef565b8015611a3e5780601f10611a1357610100808354040283529160200191611a3e565b820191906000526020600020905b815481529060010190602001808311611a2157829003601f168201915b505050505081565b6000546001600160a01b0316331480611a725750611a72600080516020614efa83398151915233611eef565b611a8e5760405162461bcd60e51b8152600401610eff906148b8565b601955565b60006001600160a01b038216611abc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b611ae9612f4a565b611af233612fa4565b565b6000546001600160a01b0316331480611b205750611b20600080516020614efa83398151915233611eef565b611b3c5760405162461bcd60e51b8152600401610eff906148b8565b610f2681612ff4565b611b4d612f4a565b60005b815181101561157757611b8a600080516020614efa833981519152838381518110611b7d57611b7d614ac9565b6020026020010151612dee565b80611b9481614adf565b915050611b50565b81611ba6816119ad565b6001600160a01b0316336001600160a01b031614611c195760405162461bcd60e51b815260206004820152602a60248201527f5265737472696374417070726f76653a206f7065726174696f6e206973206f6e604482015269363c903437b63232b91760b11b6064820152608401610eff565b506000918252600e602052604090912055565b6000546001600160a01b0316331480611c585750611c58600080516020614efa83398151915233611eef565b611c745760405162461bcd60e51b8152600401610eff906148b8565b601755565b323314611c985760405162461bcd60e51b8152600401610eff90614929565b600260205460ff166004811115611cb157611cb1614749565b14611cf55760405162461bcd60e51b8152602060048201526014602482015273141c9a4c94d85b19481a5cc8191a5cd8589b195960621b6044820152606401610eff565b82600114611d3b5760405162461bcd60e51b81526020600482015260136024820152726d696e74416d6f756e74206973206e6f74203160681b6044820152606401610eff565b601c54604080516020601f85018190048102820181019092528381526001600160a01b0390921691611db191859085908190840183828082843760009201829052506020805460165433808552601e84526040948590205494516112c69850611266975060ff90931695509390929091016149b1565b6001600160a01b031614611dd75760405162461bcd60e51b8152600401610eff906149ef565b601654336000908152601e6020526040902054611df5908590614a2d565b1115611e435760405162461bcd60e51b815260206004820152601960248201527f65786365656473206e756d626572206f66206d61784d696e74000000000000006044820152606401610eff565b3483601754611e529190614a40565b1115611e705760405162461bcd60e51b8152600401610eff90614a57565b601454611e7f90612710614a7f565b601554611e8a611065565b611e949086614a2d565b611e9e9190614a7f565b1115611ebc5760405162461bcd60e51b8152600401610eff90614a92565b611ec63384612dca565b336000908152601e602052604081208054859290611ee5908490614a2d565b9091555050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060058054610f38906148ef565b81611f3381612b37565b6110138383613039565b323314611f5c5760405162461bcd60e51b8152600401610eff90614929565b600460205460ff166004811115611f7557611f75614749565b14611fb95760405162461bcd60e51b8152602060048201526014602482015273189d5c9b935a5b9d081a5cc8191a5cd8589b195960621b6044820152606401610eff565b83516000036120015760405162461bcd60e51b8152602060048201526014602482015273746865207175616e74697479206973207a65726f60601b6044820152606401610eff565b601c54604080516020601f85018190048102820181019092528381526001600160a01b0390921691612084918590859081908401838280828437600092018290525060208054601a54808452601f835260408085203380875260019091018552948190205490516112c69850611266975060ff90931695509093928d9201614bfd565b6001600160a01b0316146120aa5760405162461bcd60e51b8152600401610eff906149ef565b8351601a546000908152601f6020908152604080832033845260010190915290205484916120d791614a2d565b11156121305760405162461bcd60e51b815260206004820152602260248201527f6164647265737320616c726561647920636c61696d6564206d617820616d6f756044820152611b9d60f21b6064820152608401610eff565b3484516019546121409190614a40565b111561215e5760405162461bcd60e51b8152600401610eff90614a57565b60185460035485516121709190614a2d565b11156121b65760405162461bcd60e51b81526020600482015260156024820152741bdd995c881d1bdd185b08189d5c9b8818dbdd5b9d605a1b6044820152606401610eff565b8351601a546000908152601f60209081526040808320338452600101909152812080549091906121e7908490614a2d565b90915550600090505b84518110156122a857600085828151811061220d5761220d614ac9565b60200260200101519050612220816119ad565b6001600160a01b0316336001600160a01b03161461228c5760405162461bcd60e51b8152602060048201526024808201527f73656e646572206973206e6f7420746865206f776e6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610eff565b612295816130b7565b50806122a081614adf565b9150506121f0565b50611151338551612dca565b6000546001600160a01b03163314806122e057506122e0600080516020614efa83398151915233611eef565b6122fc5760405162461bcd60e51b8152600401610eff906148b8565b601855565b612309612f4a565b60005b815181101561157757612346600080516020614efa83398151915283838151811061233957612339614ac9565b6020026020010151612e59565b8061235081614adf565b91505061230c565b836001600160a01b03811633146123725761237233612b37565b61237e858585856130c2565b5050505050565b3233146123a45760405162461bcd60e51b8152600401610eff90614929565b600160205460ff1660048111156123bd576123bd614749565b14806123df5750600360205460ff1660048111156123dd576123dd614749565b145b61241e5760405162461bcd60e51b815260206004820152601060248201526f1cd85b19481a5cc8191a5cd8589b195960821b6044820152606401610eff565b8360000361243e5760405162461bcd60e51b8152600401610eff90614960565b601c54604080516020601f85018190048102820181019092528381526001600160a01b03909216916124b191859085908190840183828082843760009201829052506020805433808452601d83526040938490205493516112c69750611266965060ff9092169450928c92909101614c40565b6001600160a01b0316146124d75760405162461bcd60e51b8152600401610eff906149ef565b336000908152601d602052604090205483906124f4908690614a2d565b11156125425760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610eff565b601454846015546125539190614a2d565b11156125b25760405162461bcd60e51b815260206004820152602860248201527f65786365656473206e756d626572206f66206561726e656420726573657276656044820152676420546f6b656e7360c01b6064820152608401610eff565b34846017546125c19190614a40565b11156125df5760405162461bcd60e51b8152600401610eff90614a57565b6127106125ea611065565b6125f49086614a2d565b11156126125760405162461bcd60e51b8152600401610eff90614a92565b61261c3385612dca565b336000908152601d60205260408120805486929061263b908490614a2d565b9250508190555083601560008282546113ff9190614a2d565b6000546001600160a01b03163314806126805750612680600080516020614efa83398151915233611eef565b61269c5760405162461bcd60e51b8152600401610eff906148b8565b6020805482919060ff191660018360048111156126bb576126bb614749565b021790555050565b6000546001600160a01b03163314806126ef57506126ef600080516020614efa83398151915233611eef565b61270b5760405162461bcd60e51b8152600401610eff906148b8565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b601280546119c5906148ef565b606061274582612b02565b6127915760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610eff565b6013546001600160a01b0316156128135760135460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa1580156127eb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eb19190810190614c8f565b61281c82613106565b601260405160200161282f929190614d05565b6040516020818303038152906040529050919050565b6000828152600160208190526040909120015461286181612de4565b6110138383612e59565b6000610e6c60035490565b6000546001600160a01b03163314806128a257506128a2600080516020614efa83398151915233611eef565b6128be5760405162461bcd60e51b8152600401610eff906148b8565b60126115778282614b3e565b6000546001600160a01b03163314806128f657506128f6600080516020614efa83398151915233611eef565b6129125760405162461bcd60e51b8152600401610eff906148b8565b806000036129325760405162461bcd60e51b8152600401610eff90614960565b61271061293d611065565b6129479083614a2d565b11156129655760405162461bcd60e51b8152600401610eff90614a92565b6115778282612dca565b600061297b8383613189565b151560000361298c57506000610eb1565b6001600160a01b0380841660009081526009602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b03163314806129e957506129e9600080516020614efa83398151915233611eef565b612a055760405162461bcd60e51b8152600401610eff906148b8565b601655565b612a12612f4a565b6001600160a01b038116612a775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610eff565b610f2681612fa4565b6000546001600160a01b0316331480612aac5750612aac600080516020614efa83398151915233611eef565b612ac85760405162461bcd60e51b8152600401610eff906148b8565b610f26816131a9565b6060610e6c600b6131ee565b60006001600160e01b03198216630101c11560e71b1480610eb15750610eb1826131fb565b600081600111158015612b16575060025482105b8015610eb1575050600090815260066020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610f2657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc89190614d92565b610f2657604051633b79c77360e21b81526001600160a01b0382166004820152602401610eff565b612bfa8282613249565b61157782826132c4565b6000612c0f82612edb565b9050836001600160a01b0316816001600160a01b031614612c425760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054612c6e8187335b6001600160a01b039081169116811491141790565b612c9957612c7c863361296f565b612c9957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516612cc057604051633a954ecd60e21b815260040160405180910390fd5b612ccd8686866001613364565b8015612cd857600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003612d6a57600184016000818152600660205260408120549003612d68576002548114612d685760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020614f1a83398151915260405160405180910390a461195186868660016135af565b6000806000612db585856135d2565b91509150612dc281613617565b509392505050565b611577828260405180602001604052806000815250613761565b610f2681336137c7565b612df88282611eef565b6115775760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b612e638282611eef565b156115775760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61101383838360405180602001604052806000815250612358565b60008180600111612f3157600254811015612f315760008181526006602052604081205490600160e01b82169003612f2f575b806000036129b6575060001901600081815260066020526040902054612f0e565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314611af25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612fff600b82613820565b506040516001600160a01b0382169033907f3b01c97343869ca2757fcc37cdb8f71683b0a7aed858e3755f4529a1db85729290600090a350565b61304282613835565b8061304b575080155b6130ad5760405162461bcd60e51b815260206004820152602d60248201527f5265737472696374417070726f76653a2043616e206e6f7420617070726f766560448201526c103637b1b5b2b2103a37b5b2b760991b6064820152608401610eff565b6115778282613841565b610f268160006138ad565b6130cd84848461112c565b6001600160a01b0383163b15611151576130e984848484613a02565b611151576040516368d2bf6b60e11b815260040160405180910390fd5b606061311182612b02565b61312e57604051630a14c4b560e41b815260040160405180910390fd5b6000613138613aed565b9050805160000361315857604051806020016040528060008152506129b6565b8061316284613afc565b604051602001613173929190614daf565b6040516020818303038152906040529392505050565b60008061319584613b40565b90506131a18382613b82565b949350505050565b6131b4600b82613c1b565b506040516001600160a01b0382169033907fbd0af1fe0a2c1c7bb340c17a284a291138979c8eeb797e176dbd1c415199af3c90600090a350565b606060006129b683613c30565b60006301ffc9a760e01b6001600160e01b03198316148061322c57506380ac58cd60e01b6001600160e01b03198316145b80610eb15750506001600160e01b031916635b5e139f60e01b1490565b6001600160a01b03821615611577576132628183613c8c565b6115775760405162461bcd60e51b815260206004820152602d60248201527f5265737472696374417070726f76653a2054686520636f6e747261637420697360448201526c103737ba1030b63637bbb2b21760991b6064820152608401610eff565b60006132cf826119ad565b9050336001600160a01b03821614613308576132eb813361296f565b613308576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6376649670421161115157730a8d214fc82569f712d3f3fa4b0fc921d49d74af196001600160a01b03851601611151576000604051806101400160405280636575d27063ffffffff168152602001636758577063ffffffff1681526020016369398af063ffffffff168152602001636b1abe7063ffffffff168152602001636cfbf1f063ffffffff168152602001636ede76f063ffffffff1681526020016370bfaa7063ffffffff1681526020016372a0ddf063ffffffff168152602001637482117063ffffffff168152602001637664967063ffffffff16815250905060006040518061014001604052806103e861ffff16815260200161038461ffff16815260200161032061ffff1681526020016102bc61ffff16815260200161025861ffff1681526020016101f461ffff16815260200161019061ffff16815260200161012c61ffff16815260200160c861ffff168152602001606461ffff16815250905060005b600a8160ff1610156135a657828160ff16600a81106134ea576134ea614ac9565b602002015163ffffffff1642101561359457818160ff16600a811061351157613511614ac9565b602002015161ffff168461352489611a93565b61352e9190614a7f565b101561358c5760405162461bcd60e51b815260206004820152602760248201527f5472616e73666572206973206e6f7420706f737369626c6520647572696e67206044820152663637b1b5bab81760c91b6064820152608401610eff565b505050611151565b8061359e81614dde565b9150506134c9565b50505050505050565b6001600160a01b03841615611151576000828152600e6020526040812055611151565b60008082516041036136085760208301516040840151606085015160001a6135fc87828585613c99565b94509450505050613610565b506000905060025b9250929050565b600081600481111561362b5761362b614749565b036136335750565b600181600481111561364757613647614749565b036136945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610eff565b60028160048111156136a8576136a8614749565b036136f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610eff565b600381600481111561370957613709614749565b03610f265760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610eff565b61376b8383613d5d565b6001600160a01b0383163b15611013576002548281035b6137956000868380600101945086613a02565b6137b2576040516368d2bf6b60e11b815260040160405180910390fd5b81811061378257816002541461237e57600080fd5b6137d18282611eef565b611577576137de81613e4c565b6137e9836020613e5e565b6040516020016137fa929190614dfd565b60408051601f198184030181529082905262461bcd60e51b8252610eff91600401614299565b60006129b6836001600160a01b038416613ff9565b6000610eb13383613189565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006138b883612edb565b9050806000806138d686600090815260086020526040902080549091565b915091508415613916576138eb818433612c59565b613916576138f9833361296f565b61391657604051632ce44b5f60e11b815260040160405180910390fd5b613924836000886001613364565b801561392f57600082555b6001600160a01b038316600081815260076020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260066020526040812091909155600160e11b851690036139bd576001860160008181526006602052604081205490036139bb5760025481146139bb5760008181526006602052604090208590555b505b60405186906000906001600160a01b03861690600080516020614f1a833981519152908390a46139f18360008860016135af565b505060038054600101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613a37903390899088908890600401614e72565b6020604051808303816000875af1925050508015613a72575060408051601f3d908101601f19168201909252613a6f91810190614eaf565b60015b613ad0573d808015613aa0576040519150601f19603f3d011682016040523d82523d6000602084013e613aa5565b606091505b508051600003613ac8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060118054610f38906148ef565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480613b165750819003601f19909101908152919050565b6001600160a01b0381166000908152600f602052604081205415613b7a57506001600160a01b03166000908152600f602052604090205490565b505060105490565b600d5460009060ff16613b9757506001610eb1565b613ba0836140ec565b806129b65750600a54604051630f8350ed60e41b81526001600160a01b038581166004830152602482018590529091169063f8350ed090604401602060405180830381865afa158015613bf7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b69190614d92565b60006129b6836001600160a01b038416614116565b606081600001805480602002602001604051908101604052809291908181526020018280548015613c8057602002820191906000526020600020905b815481526020019060010190808311613c6c575b50505050509050919050565b6000806131953385614165565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613cd05750600090506003613d54565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613d24573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613d4d57600060019250925050613d54565b9150600090505b94509492505050565b6002546000829003613d825760405163b562e8dd60e01b815260040160405180910390fd5b613d8f6000848385613364565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b17831790558284019083908390600080516020614f1a8339815191528180a4600183015b818114613e1a5780836000600080516020614f1a833981519152600080a4600101613df4565b5081600003613e3b57604051622e076360e81b815260040160405180910390fd5b6002555061101360008483856135af565b6060610eb16001600160a01b03831660145b60606000613e6d836002614a40565b613e78906002614a2d565b6001600160401b03811115613e8f57613e8f6143f5565b6040519080825280601f01601f191660200182016040528015613eb9576020820181803683370190505b509050600360fc1b81600081518110613ed457613ed4614ac9565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613f0357613f03614ac9565b60200101906001600160f81b031916908160001a9053506000613f27846002614a40565b613f32906001614a2d565b90505b6001811115613faa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613f6657613f66614ac9565b1a60f81b828281518110613f7c57613f7c614ac9565b60200101906001600160f81b031916908160001a90535060049490941c93613fa381614ecc565b9050613f35565b5083156129b65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610eff565b600081815260018301602052604081205480156140e257600061401d600183614a7f565b855490915060009061403190600190614a7f565b905081811461409657600086600001828154811061405157614051614ac9565b906000526020600020015490508087600001848154811061407457614074614ac9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806140a7576140a7614ee3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610eb1565b6000915050610eb1565b6000610eb1600b836001600160a01b038116600090815260018301602052604081205415156129b6565b600081815260018301602052604081205461415d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610eb1565b506000610eb1565b6000818152600e60205260408120541561418e57506000818152600e6020526040902054610eb1565b6129b683613b40565b6020808252825182820181905260009190848201906040850190845b818110156141d85783516001600160a01b0316835292840192918401916001016141b3565b50909695505050505050565b6001600160e01b031981168114610f2657600080fd5b60006020828403121561420c57600080fd5b81356129b6816141e4565b6001600160a01b0381168114610f2657600080fd5b60006020828403121561423e57600080fd5b81356129b681614217565b60005b8381101561426457818101518382015260200161424c565b50506000910152565b60008151808452614285816020860160208601614249565b601f01601f19169290920160200192915050565b6020815260006129b6602083018461426d565b6000602082840312156142be57600080fd5b5035919050565b600080604083850312156142d857600080fd5b82356142e381614217565b946020939093013593505050565b60008060006060848603121561430657600080fd5b833561431181614217565b9250602084013561432181614217565b929592945050506040919091013590565b60008083601f84011261434457600080fd5b5081356001600160401b0381111561435b57600080fd5b60208301915083602082850101111561361057600080fd5b6000806000806060858703121561438957600080fd5b843593506020850135925060408501356001600160401b038111156143ad57600080fd5b6143b987828801614332565b95989497509550505050565b600080604083850312156143d857600080fd5b8235915060208301356143ea81614217565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614433576144336143f5565b604052919050565b60006001600160401b03821115614454576144546143f5565b5060051b60200190565b600082601f83011261446f57600080fd5b8135602061448461447f8361443b565b61440b565b82815260059290921b840181019181810190868411156144a357600080fd5b8286015b848110156144be57803583529183019183016144a7565b509695505050505050565b6000806000604084860312156144de57600080fd5b83356001600160401b03808211156144f557600080fd5b818601915086601f83011261450957600080fd5b81358181111561451857600080fd5b8760208260051b850101111561452d57600080fd5b60209283019550935090850135908082111561454857600080fd5b506145558682870161445e565b9150509250925092565b60006001600160401b03821115614578576145786143f5565b50601f01601f191660200190565b600061459461447f8461455f565b90508281528383830111156145a857600080fd5b828260208301376000602084830101529392505050565b6000602082840312156145d157600080fd5b81356001600160401b038111156145e757600080fd5b8201601f810184136145f857600080fd5b6131a184823560208401614586565b6000602080838503121561461a57600080fd5b82356001600160401b0381111561463057600080fd5b8301601f8101851361464157600080fd5b803561464f61447f8261443b565b81815260059190911b8201830190838101908783111561466e57600080fd5b928401925b8284101561469557833561468681614217565b82529284019290840190614673565b979650505050505050565b600080604083850312156146b357600080fd5b50508035926020909101359150565b6000806000604084860312156146d757600080fd5b8335925060208401356001600160401b038111156146f457600080fd5b61470086828701614332565b9497909650939450505050565b8015158114610f2657600080fd5b6000806040838503121561472e57600080fd5b823561473981614217565b915060208301356143ea8161470d565b634e487b7160e01b600052602160045260246000fd5b602081016005831061478157634e487b7160e01b600052602160045260246000fd5b91905290565b6000806000806060858703121561479d57600080fd5b84356001600160401b03808211156147b457600080fd5b6147c08883890161445e565b95506020870135945060408701359150808211156147dd57600080fd5b506143b987828801614332565b6000806000806080858703121561480057600080fd5b843561480b81614217565b9350602085013561481b81614217565b92506040850135915060608501356001600160401b0381111561483d57600080fd5b8501601f8101871361484e57600080fd5b61485d87823560208401614586565b91505092959194509250565b60006020828403121561487b57600080fd5b8135600581106129b657600080fd5b6000806040838503121561489d57600080fd5b82356148a881614217565b915060208301356143ea81614217565b60208082526017908201527f63616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b600181811c9082168061490357607f821691505b60208210810361492357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f43616e6e6f74206d696e742066726f6d20636f6e747261637473000000000000604082015260600190565b6020808252601290820152716d696e74416d6f756e74206973207a65726f60701b604082015260600190565b600581106149aa57634e487b7160e01b600052602160045260246000fd5b60f81b9052565b6149bb818661498c565b60609390931b6001600160601b03191660018401526015830191909152601f60fa1b60358301526036820152605601919050565b6020808252600e908201526d34b73b30b634b210383937b7b31760911b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610eb157610eb1614a17565b8082028115828204841417610eb157610eb1614a17565b6020808252600e908201526d0dcdee840cadcdeeaced040cae8d60931b604082015260600190565b81810381811115610eb157610eb1614a17565b6020808252601c908201527f636c61696d206973206f76657220746865206d617820737570706c7900000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201614af157614af1614a17565b5060010190565b601f82111561101357600081815260208120601f850160051c81016020861015614b1f5750805b601f850160051c820191505b8181101561195157828155600101614b2b565b81516001600160401b03811115614b5757614b576143f5565b614b6b81614b6584546148ef565b84614af8565b602080601f831160018114614ba05760008415614b885750858301515b600019600386901b1c1916600185901b178555611951565b600085815260208120601f198616915b82811015614bcf57888601518255948401946001909101908401614bb0565b5085821015614bed5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b614c07818761498c565b600181019490945260609290921b6001600160601b03191660218401526035830152601f60fa1b60558301526056820152607601919050565b614c4a818661498c565b60609390931b6001600160601b03191660018401526015830191909152601f60fa1b6035830152603682015267149154d15495915160c21b6056820152605e01919050565b600060208284031215614ca157600080fd5b81516001600160401b03811115614cb757600080fd5b8201601f81018413614cc857600080fd5b8051614cd661447f8261455f565b818152856020838501011115614ceb57600080fd5b614cfc826020830160208601614249565b95945050505050565b600083516020614d188285838901614249565b818401915060008554614d2a816148ef565b60018281168015614d425760018114614d5757614d83565b60ff1984168752821515830287019450614d83565b896000528560002060005b84811015614d7b57815489820152908301908701614d62565b505082870194505b50929998505050505050505050565b600060208284031215614da457600080fd5b81516129b68161470d565b60008351614dc1818460208801614249565b835190830190614dd5818360208801614249565b01949350505050565b600060ff821660ff8103614df457614df4614a17565b60010192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614e35816017850160208801614249565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614e66816028840160208801614249565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ea59083018461426d565b9695505050505050565b600060208284031215614ec157600080fd5b81516129b6816141e4565b600081614edb57614edb614a17565b506000190190565b634e487b7160e01b600052603160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122001330a632821c2176cba2b1185877ce91640af0eef77effd6f466bc30d77d8f764736f6c6343000811003368747470733a2f2f7368696b6962752d776f726c642e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6d657461646174612fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x60806040526004361061047d5760003560e01c8063715018a611610255578063b31391cb11610144578063c87b56dd116100c1578063e6430ef711610085578063e6430ef714610dac578063e985e9c514610dc2578063e9bc98aa14610de2578063f2fde38b14610e02578063ff76821214610e22578063ff9d2dcc14610e4257600080fd5b8063c87b56dd14610d17578063d547741f14610d37578063d89135cd14610d57578063da3ef23f14610d6c578063e58306f914610d8c57600080fd5b8063bdb4b84811610108578063bdb4b84814610c96578063c03afb5914610cac578063c0c2e0a314610ccc578063c1fad42c14610cec578063c668286214610d0257600080fd5b8063b31391cb14610c03578063b34d054714610c30578063b39d6e5a14610c50578063b88d4fde14610c70578063ba0be8dc14610c8357600080fd5b806395d89b41116101d2578063a25cdf9011610196578063a25cdf9014610b70578063a35c23ad14610b86578063ae2243c914610bb3578063b1c9fe6e14610bc9578063b2fd398e14610bf057600080fd5b806395d89b4114610ae85780639c02757a14610afd5780639ef258e014610b13578063a217fddf14610b3b578063a22cb46514610b5057600080fd5b80637cbb579f116102195780637cbb579f14610a4a5780638545f4ea14610a7757806385d397a914610a975780638da5cb5b14610aaa57806391d1485414610ac857600080fd5b8063715018a61461098d57806372b44d71146109a25780637a0ad11d146109c25780637c2fa09914610a0a5780637c3dc17314610a2a57600080fd5b806332948434116103715780634f3db346116102ee5780636352211e116102b25780636352211e146108f85780636a98de4c146109185780636c0360eb146109385780636e3bd6b11461094d57806370a082311461096d57600080fd5b80634f3db346146108525780635105196c146108685780635221ebc11461089057806354415c3b146108b857806355f804b3146108d857600080fd5b80633ccfd60b116103355780633ccfd60b146107d25780633ce53d2c146107da5780633ecfaf30146107f057806341f434341461081d57806342842e0e1461083f57600080fd5b8063329484341461073457806332cb6b0c1461075c57806336568abe14610772578063396e8f53146107925780633ab1a494146107b257600080fd5b8063183bbe80116103ff578063260f2e08116103c3578063260f2e08146106aa578063271b2fcc146106bd5780632a0acc6a146106dd5780632c2fe1fe146106ff5780632f2ff15d1461071457600080fd5b8063183bbe80146105e957806320e6e82b146106095780632398f8431461063957806323b872dd14610666578063248a9ca31461067957600080fd5b8063081812fc11610446578063081812fc1461053b578063095ea7b3146105735780630f4345e2146105865780631581b600146105a657806318160ddd146105c657600080fd5b80623f332f1461048257806301ffc9a7146104ad578063025e332e146104dd57806306fdde03146104ff5780630726538914610521575b600080fd5b34801561048e57600080fd5b50610497610e62565b6040516104a49190614197565b60405180910390f35b3480156104b957600080fd5b506104cd6104c83660046141fa565b610e71565b60405190151581526020016104a4565b3480156104e957600080fd5b506104fd6104f836600461422c565b610eb7565b005b34801561050b57600080fd5b50610514610f29565b6040516104a49190614299565b34801561052d57600080fd5b50600d546104cd9060ff1681565b34801561054757600080fd5b5061055b6105563660046142ac565b610fbb565b6040516001600160a01b0390911681526020016104a4565b6104fd6105813660046142c5565b610fff565b34801561059257600080fd5b506104fd6105a13660046142ac565b611018565b3480156105b257600080fd5b50601b5461055b906001600160a01b031681565b3480156105d257600080fd5b506105db611065565b6040519081526020016104a4565b3480156105f557600080fd5b506104fd61060436600461422c565b611073565b34801561061557600080fd5b506104cd6106243660046142ac565b601f6020526000908152604090205460ff1681565b34801561064557600080fd5b506105db61065436600461422c565b600f6020526000908152604090205481565b6104fd6106743660046142f1565b61112c565b34801561068557600080fd5b506105db6106943660046142ac565b6000908152600160208190526040909120015490565b6104fd6106b8366004614373565b611157565b3480156106c957600080fd5b506104fd6106d83660046142ac565b61140a565b3480156106e957600080fd5b506105db600080516020614efa83398151915281565b34801561070b57600080fd5b506104fd611457565b34801561072057600080fd5b506104fd61072f3660046143c5565b6114d7565b34801561074057600080fd5b5061055b730a8d214fc82569f712d3f3fa4b0fc921d49d74b081565b34801561076857600080fd5b506105db61271081565b34801561077e57600080fd5b506104fd61078d3660046143c5565b6114fd565b34801561079e57600080fd5b50600a5461055b906001600160a01b031681565b3480156107be57600080fd5b506104fd6107cd36600461422c565b61157b565b6104fd6115e5565b3480156107e657600080fd5b506105db60165481565b3480156107fc57600080fd5b506105db61080b36600461422c565b601d6020526000908152604090205481565b34801561082957600080fd5b5061055b6daaeb6d7670e522a718067333cd4e81565b6104fd61084d3660046142f1565b611740565b34801561085e57600080fd5b506105db60105481565b34801561087457600080fd5b5061055b73cef8d9251d3ff8674ba91ab24f0ee3652074ec6481565b34801561089c57600080fd5b5061055b73ee93e2d824b62d408024d9fc87c1926d7a38428f81565b3480156108c457600080fd5b506104fd6108d33660046144c9565b611765565b3480156108e457600080fd5b506104fd6108f33660046145bf565b611959565b34801561090457600080fd5b5061055b6109133660046142ac565b6119ad565b34801561092457600080fd5b5060135461055b906001600160a01b031681565b34801561094457600080fd5b506105146119b8565b34801561095957600080fd5b506104fd6109683660046142ac565b611a46565b34801561097957600080fd5b506105db61098836600461422c565b611a93565b34801561099957600080fd5b506104fd611ae1565b3480156109ae57600080fd5b506104fd6109bd36600461422c565b611af4565b3480156109ce57600080fd5b506105db6109dd36600461422c565b601a546000908152601f602090815260408083206001600160a01b03909416835260019093019052205490565b348015610a1657600080fd5b506104fd610a25366004614607565b611b45565b348015610a3657600080fd5b506104fd610a453660046146a0565b611b9c565b348015610a5657600080fd5b506105db610a6536600461422c565b601e6020526000908152604090205481565b348015610a8357600080fd5b506104fd610a923660046142ac565b611c2c565b6104fd610aa53660046146c2565b611c79565b348015610ab657600080fd5b506000546001600160a01b031661055b565b348015610ad457600080fd5b506104cd610ae33660046143c5565b611eef565b348015610af457600080fd5b50610514611f1a565b348015610b0957600080fd5b506105db60195481565b348015610b1f57600080fd5b5061055b7360673e51562dbd400c6f999f20ff07f14436fa1381565b348015610b4757600080fd5b506105db600081565b348015610b5c57600080fd5b506104fd610b6b36600461471b565b611f29565b348015610b7c57600080fd5b506105db60155481565b348015610b9257600080fd5b506104fd610ba13660046142ac565b336000908152600f6020526040902055565b348015610bbf57600080fd5b506105db601a5481565b348015610bd557600080fd5b50602054610be39060ff1681565b6040516104a4919061475f565b6104fd610bfe366004614787565b611f3d565b348015610c0f57600080fd5b506105db610c1e3660046142ac565b600e6020526000908152604090205481565b348015610c3c57600080fd5b506104fd610c4b3660046142ac565b6122b4565b348015610c5c57600080fd5b506104fd610c6b366004614607565b612301565b6104fd610c7e3660046147ea565b612358565b6104fd610c91366004614373565b612385565b348015610ca257600080fd5b506105db60175481565b348015610cb857600080fd5b506104fd610cc7366004614869565b612654565b348015610cd857600080fd5b506104fd610ce736600461422c565b6126c3565b348015610cf857600080fd5b506105db60145481565b348015610d0e57600080fd5b5061051461272d565b348015610d2357600080fd5b50610514610d323660046142ac565b61273a565b348015610d4357600080fd5b506104fd610d523660046143c5565b612845565b348015610d6357600080fd5b506105db61286b565b348015610d7857600080fd5b506104fd610d873660046145bf565b612876565b348015610d9857600080fd5b506104fd610da73660046142c5565b6128ca565b348015610db857600080fd5b506105db60185481565b348015610dce57600080fd5b506104cd610ddd36600461488a565b61296f565b348015610dee57600080fd5b506104fd610dfd3660046142ac565b6129bd565b348015610e0e57600080fd5b506104fd610e1d36600461422c565b612a0a565b348015610e2e57600080fd5b506104fd610e3d36600461422c565b612a80565b348015610e4e57600080fd5b50601c5461055b906001600160a01b031681565b6060610e6c612ad1565b905090565b60006001600160e01b03198216637965db0b60e01b1480610ea257506001600160e01b03198216633ecbebbf60e11b145b80610eb15750610eb182612add565b92915050565b6000546001600160a01b0316331480610ee35750610ee3600080516020614efa83398151915233611eef565b610f085760405162461bcd60e51b8152600401610eff906148b8565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b03831617905550565b50565b606060048054610f38906148ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610f64906148ef565b8015610fb15780601f10610f8657610100808354040283529160200191610fb1565b820191906000526020600020905b815481529060010190602001808311610f9457829003601f168201915b5050505050905090565b6000610fc682612b02565b610fe3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b8161100981612b37565b6110138383612bf0565b505050565b6000546001600160a01b03163314806110445750611044600080516020614efa83398151915233611eef565b6110605760405162461bcd60e51b8152600401610eff906148b8565b601055565b600354600254036000190190565b6000546001600160a01b031633148061109f575061109f600080516020614efa83398151915233611eef565b6110bb5760405162461bcd60e51b8152600401610eff906148b8565b6001600160a01b03811661110a5760405162461bcd60e51b81526020600482015260166024820152750616464726573732073686f756c646e277420626520360541b6044820152606401610eff565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b03811633146111465761114633612b37565b611151848484612c04565b50505050565b3233146111765760405162461bcd60e51b8152600401610eff90614929565b600160205460ff16600481111561118f5761118f614749565b146111d35760405162461bcd60e51b8152602060048201526014602482015273141c9a4c54d85b19481a5cc8191a5cd8589b195960621b6044820152606401610eff565b836000036111f35760405162461bcd60e51b8152600401610eff90614960565b601c54604080516020601f85018190048102820181019092528381526001600160a01b03909216916112cc91859085908190840183828082843760009201829052506020805433808452601d83526040938490205493516112c69750611266965060ff9092169450928c929091016149b1565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90612da6565b6001600160a01b0316146112f25760405162461bcd60e51b8152600401610eff906149ef565b336000908152601d6020526040902054839061130f908690614a2d565b111561135d5760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610eff565b348460175461136c9190614a40565b111561138a5760405162461bcd60e51b8152600401610eff90614a57565b60145461139990612710614a7f565b6015546113a4611065565b6113ae9087614a2d565b6113b89190614a7f565b11156113d65760405162461bcd60e51b8152600401610eff90614a92565b6113e03385612dca565b336000908152601d6020526040812080548692906113ff908490614a2d565b909155505050505050565b6000546001600160a01b03163314806114365750611436600080516020614efa83398151915233611eef565b6114525760405162461bcd60e51b8152600401610eff906148b8565b601455565b6000546001600160a01b03163314806114835750611483600080516020614efa83398151915233611eef565b61149f5760405162461bcd60e51b8152600401610eff906148b8565b601a80546000908152601f60205260408120805460ff191660019081179091558254909291906114d0908490614a2d565b9091555050565b600082815260016020819052604090912001546114f381612de4565b6110138383612dee565b6001600160a01b038116331461156d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610eff565b6115778282612e59565b5050565b6000546001600160a01b03163314806115a757506115a7600080516020614efa83398151915233611eef565b6115c35760405162461bcd60e51b8152600401610eff906148b8565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314806116115750611611600080516020614efa83398151915233611eef565b61162d5760405162461bcd60e51b8152600401610eff906148b8565b601b546001600160a01b03166116855760405162461bcd60e51b815260206004820152601e60248201527f7769746864726177416464726573732073686f756c646e2774206265203000006044820152606401610eff565b601b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146116d2576040519150601f19603f3d011682016040523d82523d6000602084013e6116d7565b606091505b5050905080610f265760405162461bcd60e51b815260206004820152602f60248201527f6661696c656420746f206d6f76652066756e6420746f2077697468647261774160448201526e19191c995cdcc818dbdb9d1c9858dd608a1b6064820152608401610eff565b826001600160a01b038116331461175a5761175a33612b37565b611151848484612ec0565b6000546001600160a01b03163314806117915750611791600080516020614efa83398151915233611eef565b6117ad5760405162461bcd60e51b8152600401610eff906148b8565b60006117b7611065565b90506000805b83518110156117ff578381815181106117d8576117d8614ac9565b6020026020010151826117eb9190614a2d565b9150806117f781614adf565b9150506117bd565b50600081116118505760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610eff565b61271061185d8284614a2d565b11156118a45760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610eff565b825184146118ea5760405162461bcd60e51b81526020600482015260136024820152720c2e4e4c2f240d8cadccee8d040eadcdaeac6d606b1b6044820152606401610eff565b60005b83518110156119515761193f86868381811061190b5761190b614ac9565b9050602002016020810190611920919061422c565b85838151811061193257611932614ac9565b6020026020010151612dca565b8061194981614adf565b9150506118ed565b505050505050565b6000546001600160a01b03163314806119855750611985600080516020614efa83398151915233611eef565b6119a15760405162461bcd60e51b8152600401610eff906148b8565b60116115778282614b3e565b6000610eb182612edb565b601180546119c5906148ef565b80601f01602080910402602001604051908101604052809291908181526020018280546119f1906148ef565b8015611a3e5780601f10611a1357610100808354040283529160200191611a3e565b820191906000526020600020905b815481529060010190602001808311611a2157829003601f168201915b505050505081565b6000546001600160a01b0316331480611a725750611a72600080516020614efa83398151915233611eef565b611a8e5760405162461bcd60e51b8152600401610eff906148b8565b601955565b60006001600160a01b038216611abc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b611ae9612f4a565b611af233612fa4565b565b6000546001600160a01b0316331480611b205750611b20600080516020614efa83398151915233611eef565b611b3c5760405162461bcd60e51b8152600401610eff906148b8565b610f2681612ff4565b611b4d612f4a565b60005b815181101561157757611b8a600080516020614efa833981519152838381518110611b7d57611b7d614ac9565b6020026020010151612dee565b80611b9481614adf565b915050611b50565b81611ba6816119ad565b6001600160a01b0316336001600160a01b031614611c195760405162461bcd60e51b815260206004820152602a60248201527f5265737472696374417070726f76653a206f7065726174696f6e206973206f6e604482015269363c903437b63232b91760b11b6064820152608401610eff565b506000918252600e602052604090912055565b6000546001600160a01b0316331480611c585750611c58600080516020614efa83398151915233611eef565b611c745760405162461bcd60e51b8152600401610eff906148b8565b601755565b323314611c985760405162461bcd60e51b8152600401610eff90614929565b600260205460ff166004811115611cb157611cb1614749565b14611cf55760405162461bcd60e51b8152602060048201526014602482015273141c9a4c94d85b19481a5cc8191a5cd8589b195960621b6044820152606401610eff565b82600114611d3b5760405162461bcd60e51b81526020600482015260136024820152726d696e74416d6f756e74206973206e6f74203160681b6044820152606401610eff565b601c54604080516020601f85018190048102820181019092528381526001600160a01b0390921691611db191859085908190840183828082843760009201829052506020805460165433808552601e84526040948590205494516112c69850611266975060ff90931695509390929091016149b1565b6001600160a01b031614611dd75760405162461bcd60e51b8152600401610eff906149ef565b601654336000908152601e6020526040902054611df5908590614a2d565b1115611e435760405162461bcd60e51b815260206004820152601960248201527f65786365656473206e756d626572206f66206d61784d696e74000000000000006044820152606401610eff565b3483601754611e529190614a40565b1115611e705760405162461bcd60e51b8152600401610eff90614a57565b601454611e7f90612710614a7f565b601554611e8a611065565b611e949086614a2d565b611e9e9190614a7f565b1115611ebc5760405162461bcd60e51b8152600401610eff90614a92565b611ec63384612dca565b336000908152601e602052604081208054859290611ee5908490614a2d565b9091555050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060058054610f38906148ef565b81611f3381612b37565b6110138383613039565b323314611f5c5760405162461bcd60e51b8152600401610eff90614929565b600460205460ff166004811115611f7557611f75614749565b14611fb95760405162461bcd60e51b8152602060048201526014602482015273189d5c9b935a5b9d081a5cc8191a5cd8589b195960621b6044820152606401610eff565b83516000036120015760405162461bcd60e51b8152602060048201526014602482015273746865207175616e74697479206973207a65726f60601b6044820152606401610eff565b601c54604080516020601f85018190048102820181019092528381526001600160a01b0390921691612084918590859081908401838280828437600092018290525060208054601a54808452601f835260408085203380875260019091018552948190205490516112c69850611266975060ff90931695509093928d9201614bfd565b6001600160a01b0316146120aa5760405162461bcd60e51b8152600401610eff906149ef565b8351601a546000908152601f6020908152604080832033845260010190915290205484916120d791614a2d565b11156121305760405162461bcd60e51b815260206004820152602260248201527f6164647265737320616c726561647920636c61696d6564206d617820616d6f756044820152611b9d60f21b6064820152608401610eff565b3484516019546121409190614a40565b111561215e5760405162461bcd60e51b8152600401610eff90614a57565b60185460035485516121709190614a2d565b11156121b65760405162461bcd60e51b81526020600482015260156024820152741bdd995c881d1bdd185b08189d5c9b8818dbdd5b9d605a1b6044820152606401610eff565b8351601a546000908152601f60209081526040808320338452600101909152812080549091906121e7908490614a2d565b90915550600090505b84518110156122a857600085828151811061220d5761220d614ac9565b60200260200101519050612220816119ad565b6001600160a01b0316336001600160a01b03161461228c5760405162461bcd60e51b8152602060048201526024808201527f73656e646572206973206e6f7420746865206f776e6572206f6620746865207460448201526337b5b2b760e11b6064820152608401610eff565b612295816130b7565b50806122a081614adf565b9150506121f0565b50611151338551612dca565b6000546001600160a01b03163314806122e057506122e0600080516020614efa83398151915233611eef565b6122fc5760405162461bcd60e51b8152600401610eff906148b8565b601855565b612309612f4a565b60005b815181101561157757612346600080516020614efa83398151915283838151811061233957612339614ac9565b6020026020010151612e59565b8061235081614adf565b91505061230c565b836001600160a01b03811633146123725761237233612b37565b61237e858585856130c2565b5050505050565b3233146123a45760405162461bcd60e51b8152600401610eff90614929565b600160205460ff1660048111156123bd576123bd614749565b14806123df5750600360205460ff1660048111156123dd576123dd614749565b145b61241e5760405162461bcd60e51b815260206004820152601060248201526f1cd85b19481a5cc8191a5cd8589b195960821b6044820152606401610eff565b8360000361243e5760405162461bcd60e51b8152600401610eff90614960565b601c54604080516020601f85018190048102820181019092528381526001600160a01b03909216916124b191859085908190840183828082843760009201829052506020805433808452601d83526040938490205493516112c69750611266965060ff9092169450928c92909101614c40565b6001600160a01b0316146124d75760405162461bcd60e51b8152600401610eff906149ef565b336000908152601d602052604090205483906124f4908690614a2d565b11156125425760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420546f6b656e73006044820152606401610eff565b601454846015546125539190614a2d565b11156125b25760405162461bcd60e51b815260206004820152602860248201527f65786365656473206e756d626572206f66206561726e656420726573657276656044820152676420546f6b656e7360c01b6064820152608401610eff565b34846017546125c19190614a40565b11156125df5760405162461bcd60e51b8152600401610eff90614a57565b6127106125ea611065565b6125f49086614a2d565b11156126125760405162461bcd60e51b8152600401610eff90614a92565b61261c3385612dca565b336000908152601d60205260408120805486929061263b908490614a2d565b9250508190555083601560008282546113ff9190614a2d565b6000546001600160a01b03163314806126805750612680600080516020614efa83398151915233611eef565b61269c5760405162461bcd60e51b8152600401610eff906148b8565b6020805482919060ff191660018360048111156126bb576126bb614749565b021790555050565b6000546001600160a01b03163314806126ef57506126ef600080516020614efa83398151915233611eef565b61270b5760405162461bcd60e51b8152600401610eff906148b8565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b601280546119c5906148ef565b606061274582612b02565b6127915760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610eff565b6013546001600160a01b0316156128135760135460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa1580156127eb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eb19190810190614c8f565b61281c82613106565b601260405160200161282f929190614d05565b6040516020818303038152906040529050919050565b6000828152600160208190526040909120015461286181612de4565b6110138383612e59565b6000610e6c60035490565b6000546001600160a01b03163314806128a257506128a2600080516020614efa83398151915233611eef565b6128be5760405162461bcd60e51b8152600401610eff906148b8565b60126115778282614b3e565b6000546001600160a01b03163314806128f657506128f6600080516020614efa83398151915233611eef565b6129125760405162461bcd60e51b8152600401610eff906148b8565b806000036129325760405162461bcd60e51b8152600401610eff90614960565b61271061293d611065565b6129479083614a2d565b11156129655760405162461bcd60e51b8152600401610eff90614a92565b6115778282612dca565b600061297b8383613189565b151560000361298c57506000610eb1565b6001600160a01b0380841660009081526009602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b03163314806129e957506129e9600080516020614efa83398151915233611eef565b612a055760405162461bcd60e51b8152600401610eff906148b8565b601655565b612a12612f4a565b6001600160a01b038116612a775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610eff565b610f2681612fa4565b6000546001600160a01b0316331480612aac5750612aac600080516020614efa83398151915233611eef565b612ac85760405162461bcd60e51b8152600401610eff906148b8565b610f26816131a9565b6060610e6c600b6131ee565b60006001600160e01b03198216630101c11560e71b1480610eb15750610eb1826131fb565b600081600111158015612b16575060025482105b8015610eb1575050600090815260066020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610f2657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ba4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc89190614d92565b610f2657604051633b79c77360e21b81526001600160a01b0382166004820152602401610eff565b612bfa8282613249565b61157782826132c4565b6000612c0f82612edb565b9050836001600160a01b0316816001600160a01b031614612c425760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054612c6e8187335b6001600160a01b039081169116811491141790565b612c9957612c7c863361296f565b612c9957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516612cc057604051633a954ecd60e21b815260040160405180910390fd5b612ccd8686866001613364565b8015612cd857600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003612d6a57600184016000818152600660205260408120549003612d68576002548114612d685760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020614f1a83398151915260405160405180910390a461195186868660016135af565b6000806000612db585856135d2565b91509150612dc281613617565b509392505050565b611577828260405180602001604052806000815250613761565b610f2681336137c7565b612df88282611eef565b6115775760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b612e638282611eef565b156115775760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61101383838360405180602001604052806000815250612358565b60008180600111612f3157600254811015612f315760008181526006602052604081205490600160e01b82169003612f2f575b806000036129b6575060001901600081815260066020526040902054612f0e565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314611af25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610eff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612fff600b82613820565b506040516001600160a01b0382169033907f3b01c97343869ca2757fcc37cdb8f71683b0a7aed858e3755f4529a1db85729290600090a350565b61304282613835565b8061304b575080155b6130ad5760405162461bcd60e51b815260206004820152602d60248201527f5265737472696374417070726f76653a2043616e206e6f7420617070726f766560448201526c103637b1b5b2b2103a37b5b2b760991b6064820152608401610eff565b6115778282613841565b610f268160006138ad565b6130cd84848461112c565b6001600160a01b0383163b15611151576130e984848484613a02565b611151576040516368d2bf6b60e11b815260040160405180910390fd5b606061311182612b02565b61312e57604051630a14c4b560e41b815260040160405180910390fd5b6000613138613aed565b9050805160000361315857604051806020016040528060008152506129b6565b8061316284613afc565b604051602001613173929190614daf565b6040516020818303038152906040529392505050565b60008061319584613b40565b90506131a18382613b82565b949350505050565b6131b4600b82613c1b565b506040516001600160a01b0382169033907fbd0af1fe0a2c1c7bb340c17a284a291138979c8eeb797e176dbd1c415199af3c90600090a350565b606060006129b683613c30565b60006301ffc9a760e01b6001600160e01b03198316148061322c57506380ac58cd60e01b6001600160e01b03198316145b80610eb15750506001600160e01b031916635b5e139f60e01b1490565b6001600160a01b03821615611577576132628183613c8c565b6115775760405162461bcd60e51b815260206004820152602d60248201527f5265737472696374417070726f76653a2054686520636f6e747261637420697360448201526c103737ba1030b63637bbb2b21760991b6064820152608401610eff565b60006132cf826119ad565b9050336001600160a01b03821614613308576132eb813361296f565b613308576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6376649670421161115157730a8d214fc82569f712d3f3fa4b0fc921d49d74af196001600160a01b03851601611151576000604051806101400160405280636575d27063ffffffff168152602001636758577063ffffffff1681526020016369398af063ffffffff168152602001636b1abe7063ffffffff168152602001636cfbf1f063ffffffff168152602001636ede76f063ffffffff1681526020016370bfaa7063ffffffff1681526020016372a0ddf063ffffffff168152602001637482117063ffffffff168152602001637664967063ffffffff16815250905060006040518061014001604052806103e861ffff16815260200161038461ffff16815260200161032061ffff1681526020016102bc61ffff16815260200161025861ffff1681526020016101f461ffff16815260200161019061ffff16815260200161012c61ffff16815260200160c861ffff168152602001606461ffff16815250905060005b600a8160ff1610156135a657828160ff16600a81106134ea576134ea614ac9565b602002015163ffffffff1642101561359457818160ff16600a811061351157613511614ac9565b602002015161ffff168461352489611a93565b61352e9190614a7f565b101561358c5760405162461bcd60e51b815260206004820152602760248201527f5472616e73666572206973206e6f7420706f737369626c6520647572696e67206044820152663637b1b5bab81760c91b6064820152608401610eff565b505050611151565b8061359e81614dde565b9150506134c9565b50505050505050565b6001600160a01b03841615611151576000828152600e6020526040812055611151565b60008082516041036136085760208301516040840151606085015160001a6135fc87828585613c99565b94509450505050613610565b506000905060025b9250929050565b600081600481111561362b5761362b614749565b036136335750565b600181600481111561364757613647614749565b036136945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610eff565b60028160048111156136a8576136a8614749565b036136f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610eff565b600381600481111561370957613709614749565b03610f265760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610eff565b61376b8383613d5d565b6001600160a01b0383163b15611013576002548281035b6137956000868380600101945086613a02565b6137b2576040516368d2bf6b60e11b815260040160405180910390fd5b81811061378257816002541461237e57600080fd5b6137d18282611eef565b611577576137de81613e4c565b6137e9836020613e5e565b6040516020016137fa929190614dfd565b60408051601f198184030181529082905262461bcd60e51b8252610eff91600401614299565b60006129b6836001600160a01b038416613ff9565b6000610eb13383613189565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006138b883612edb565b9050806000806138d686600090815260086020526040902080549091565b915091508415613916576138eb818433612c59565b613916576138f9833361296f565b61391657604051632ce44b5f60e11b815260040160405180910390fd5b613924836000886001613364565b801561392f57600082555b6001600160a01b038316600081815260076020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260066020526040812091909155600160e11b851690036139bd576001860160008181526006602052604081205490036139bb5760025481146139bb5760008181526006602052604090208590555b505b60405186906000906001600160a01b03861690600080516020614f1a833981519152908390a46139f18360008860016135af565b505060038054600101905550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613a37903390899088908890600401614e72565b6020604051808303816000875af1925050508015613a72575060408051601f3d908101601f19168201909252613a6f91810190614eaf565b60015b613ad0573d808015613aa0576040519150601f19603f3d011682016040523d82523d6000602084013e613aa5565b606091505b508051600003613ac8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060118054610f38906148ef565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480613b165750819003601f19909101908152919050565b6001600160a01b0381166000908152600f602052604081205415613b7a57506001600160a01b03166000908152600f602052604090205490565b505060105490565b600d5460009060ff16613b9757506001610eb1565b613ba0836140ec565b806129b65750600a54604051630f8350ed60e41b81526001600160a01b038581166004830152602482018590529091169063f8350ed090604401602060405180830381865afa158015613bf7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b69190614d92565b60006129b6836001600160a01b038416614116565b606081600001805480602002602001604051908101604052809291908181526020018280548015613c8057602002820191906000526020600020905b815481526020019060010190808311613c6c575b50505050509050919050565b6000806131953385614165565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613cd05750600090506003613d54565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613d24573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613d4d57600060019250925050613d54565b9150600090505b94509492505050565b6002546000829003613d825760405163b562e8dd60e01b815260040160405180910390fd5b613d8f6000848385613364565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b17831790558284019083908390600080516020614f1a8339815191528180a4600183015b818114613e1a5780836000600080516020614f1a833981519152600080a4600101613df4565b5081600003613e3b57604051622e076360e81b815260040160405180910390fd5b6002555061101360008483856135af565b6060610eb16001600160a01b03831660145b60606000613e6d836002614a40565b613e78906002614a2d565b6001600160401b03811115613e8f57613e8f6143f5565b6040519080825280601f01601f191660200182016040528015613eb9576020820181803683370190505b509050600360fc1b81600081518110613ed457613ed4614ac9565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613f0357613f03614ac9565b60200101906001600160f81b031916908160001a9053506000613f27846002614a40565b613f32906001614a2d565b90505b6001811115613faa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613f6657613f66614ac9565b1a60f81b828281518110613f7c57613f7c614ac9565b60200101906001600160f81b031916908160001a90535060049490941c93613fa381614ecc565b9050613f35565b5083156129b65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610eff565b600081815260018301602052604081205480156140e257600061401d600183614a7f565b855490915060009061403190600190614a7f565b905081811461409657600086600001828154811061405157614051614ac9565b906000526020600020015490508087600001848154811061407457614074614ac9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806140a7576140a7614ee3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610eb1565b6000915050610eb1565b6000610eb1600b836001600160a01b038116600090815260018301602052604081205415156129b6565b600081815260018301602052604081205461415d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610eb1565b506000610eb1565b6000818152600e60205260408120541561418e57506000818152600e6020526040902054610eb1565b6129b683613b40565b6020808252825182820181905260009190848201906040850190845b818110156141d85783516001600160a01b0316835292840192918401916001016141b3565b50909695505050505050565b6001600160e01b031981168114610f2657600080fd5b60006020828403121561420c57600080fd5b81356129b6816141e4565b6001600160a01b0381168114610f2657600080fd5b60006020828403121561423e57600080fd5b81356129b681614217565b60005b8381101561426457818101518382015260200161424c565b50506000910152565b60008151808452614285816020860160208601614249565b601f01601f19169290920160200192915050565b6020815260006129b6602083018461426d565b6000602082840312156142be57600080fd5b5035919050565b600080604083850312156142d857600080fd5b82356142e381614217565b946020939093013593505050565b60008060006060848603121561430657600080fd5b833561431181614217565b9250602084013561432181614217565b929592945050506040919091013590565b60008083601f84011261434457600080fd5b5081356001600160401b0381111561435b57600080fd5b60208301915083602082850101111561361057600080fd5b6000806000806060858703121561438957600080fd5b843593506020850135925060408501356001600160401b038111156143ad57600080fd5b6143b987828801614332565b95989497509550505050565b600080604083850312156143d857600080fd5b8235915060208301356143ea81614217565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614433576144336143f5565b604052919050565b60006001600160401b03821115614454576144546143f5565b5060051b60200190565b600082601f83011261446f57600080fd5b8135602061448461447f8361443b565b61440b565b82815260059290921b840181019181810190868411156144a357600080fd5b8286015b848110156144be57803583529183019183016144a7565b509695505050505050565b6000806000604084860312156144de57600080fd5b83356001600160401b03808211156144f557600080fd5b818601915086601f83011261450957600080fd5b81358181111561451857600080fd5b8760208260051b850101111561452d57600080fd5b60209283019550935090850135908082111561454857600080fd5b506145558682870161445e565b9150509250925092565b60006001600160401b03821115614578576145786143f5565b50601f01601f191660200190565b600061459461447f8461455f565b90508281528383830111156145a857600080fd5b828260208301376000602084830101529392505050565b6000602082840312156145d157600080fd5b81356001600160401b038111156145e757600080fd5b8201601f810184136145f857600080fd5b6131a184823560208401614586565b6000602080838503121561461a57600080fd5b82356001600160401b0381111561463057600080fd5b8301601f8101851361464157600080fd5b803561464f61447f8261443b565b81815260059190911b8201830190838101908783111561466e57600080fd5b928401925b8284101561469557833561468681614217565b82529284019290840190614673565b979650505050505050565b600080604083850312156146b357600080fd5b50508035926020909101359150565b6000806000604084860312156146d757600080fd5b8335925060208401356001600160401b038111156146f457600080fd5b61470086828701614332565b9497909650939450505050565b8015158114610f2657600080fd5b6000806040838503121561472e57600080fd5b823561473981614217565b915060208301356143ea8161470d565b634e487b7160e01b600052602160045260246000fd5b602081016005831061478157634e487b7160e01b600052602160045260246000fd5b91905290565b6000806000806060858703121561479d57600080fd5b84356001600160401b03808211156147b457600080fd5b6147c08883890161445e565b95506020870135945060408701359150808211156147dd57600080fd5b506143b987828801614332565b6000806000806080858703121561480057600080fd5b843561480b81614217565b9350602085013561481b81614217565b92506040850135915060608501356001600160401b0381111561483d57600080fd5b8501601f8101871361484e57600080fd5b61485d87823560208401614586565b91505092959194509250565b60006020828403121561487b57600080fd5b8135600581106129b657600080fd5b6000806040838503121561489d57600080fd5b82356148a881614217565b915060208301356143ea81614217565b60208082526017908201527f63616c6c6572206973206e6f74207468652061646d696e000000000000000000604082015260600190565b600181811c9082168061490357607f821691505b60208210810361492357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f43616e6e6f74206d696e742066726f6d20636f6e747261637473000000000000604082015260600190565b6020808252601290820152716d696e74416d6f756e74206973207a65726f60701b604082015260600190565b600581106149aa57634e487b7160e01b600052602160045260246000fd5b60f81b9052565b6149bb818661498c565b60609390931b6001600160601b03191660018401526015830191909152601f60fa1b60358301526036820152605601919050565b6020808252600e908201526d34b73b30b634b210383937b7b31760911b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610eb157610eb1614a17565b8082028115828204841417610eb157610eb1614a17565b6020808252600e908201526d0dcdee840cadcdeeaced040cae8d60931b604082015260600190565b81810381811115610eb157610eb1614a17565b6020808252601c908201527f636c61696d206973206f76657220746865206d617820737570706c7900000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201614af157614af1614a17565b5060010190565b601f82111561101357600081815260208120601f850160051c81016020861015614b1f5750805b601f850160051c820191505b8181101561195157828155600101614b2b565b81516001600160401b03811115614b5757614b576143f5565b614b6b81614b6584546148ef565b84614af8565b602080601f831160018114614ba05760008415614b885750858301515b600019600386901b1c1916600185901b178555611951565b600085815260208120601f198616915b82811015614bcf57888601518255948401946001909101908401614bb0565b5085821015614bed5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b614c07818761498c565b600181019490945260609290921b6001600160601b03191660218401526035830152601f60fa1b60558301526056820152607601919050565b614c4a818661498c565b60609390931b6001600160601b03191660018401526015830191909152601f60fa1b6035830152603682015267149154d15495915160c21b6056820152605e01919050565b600060208284031215614ca157600080fd5b81516001600160401b03811115614cb757600080fd5b8201601f81018413614cc857600080fd5b8051614cd661447f8261455f565b818152856020838501011115614ceb57600080fd5b614cfc826020830160208601614249565b95945050505050565b600083516020614d188285838901614249565b818401915060008554614d2a816148ef565b60018281168015614d425760018114614d5757614d83565b60ff1984168752821515830287019450614d83565b896000528560002060005b84811015614d7b57815489820152908301908701614d62565b505082870194505b50929998505050505050505050565b600060208284031215614da457600080fd5b81516129b68161470d565b60008351614dc1818460208801614249565b835190830190614dd5818360208801614249565b01949350505050565b600060ff821660ff8103614df457614df4614a17565b60010192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614e35816017850160208801614249565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614e66816028840160208801614249565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ea59083018461426d565b9695505050505050565b600060208284031215614ec157600080fd5b81516129b6816141e4565b600081614edb57614edb614a17565b506000190190565b634e487b7160e01b600052603160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122001330a632821c2176cba2b1185877ce91640af0eef77effd6f466bc30d77d8f764736f6c63430008110033

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.