ETH Price: $2,416.70 (+0.23%)

Token

Crypto Baby Animals Mosaic (CBAM)
 

Overview

Max Total Supply

0 CBAM

Holders

64

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
eiba8884.eth
Balance
2 CBAM
0x2072c081c77a476c28d4b2e0f86ed8a789bd8078
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:
CryptoBabyAnimalsMosaic

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : CryptoBabyAnimalsMosaic.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Eiba

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./lib/RecoverSigner.sol";
import "./lib/AddressStrings.sol";

contract CryptoBabyAnimalsMosaic is ERC721URIStorage, Ownable {
    using Strings for uint256;
    using AddressStrings for address;

    uint256 public maxAmount = 3;
    bool public paused = false;
    address toolUser = 0x2dbb039f7ABD8Bf3dC26Fcf7418f4fA4cABb5C22;
    address public approved = 0x2dbb039f7ABD8Bf3dC26Fcf7418f4fA4cABb5C22;

    /**
     * リエントランシ対策
     * 関数実行中なら再度実行させない.
     */
    modifier noReentrancy() {
        require(!locked, "reentrancy error");
        locked = true;
        _;
        locked = false;
    }
    bool locked = false;

    constructor() ERC721("Crypto Baby Animals Mosaic", "CBAM") {}

    //  CBAモザイクのミント
    function mintCBAMosaic(
        uint256 _tokenId,
        string memory _baseUri,
        bytes memory signature
    ) external payable noReentrancy {
        // コントラクトが停止中でないこと
        require(!paused, "the contract is paused");

        // 署名が正しいこと
        require(
            _verifySigner(
                _makeMassage(_tokenId, _baseUri, msg.sender),
                signature
            ),
            "signature is incorrect"
        );

        // tokenIdが999以下であること
        require(_tokenId <= 999, "CBAs are only 999");

        // 指定されたtokenIdをミントしていないこと
        require(!_exists(_tokenId * 10), "the tokenId is minted");

        // 数量分ループ
        for (uint8 i = 0; i < maxAmount; i++) {
            // CBAの tokenId * 10を起点に数量分+1した値をtokenIdにする
            uint256 newTokenId = _tokenId * 10 + i;

            // mint - 最後以外のトークンはsenderへ
            if (i < maxAmount - 1) {
                _mint(msg.sender, newTokenId);
                // mint - 最後はコントラクトアドレスへ
            } else {
                _mint(address(this), newTokenId);
            }

            // tokenURI
            _setTokenURI(
                newTokenId,
                string(
                    abi.encodePacked(_baseUri, newTokenId.toString(), ".json")
                )
            );

            // 運営にApproval
            _approve(approved, newTokenId);
        }
    }

    function pause(bool _state) public onlyOwner {
        paused = _state;
    }

    function setToolUser(address _toolUser) public onlyOwner {
        toolUser = _toolUser;
    }

    function setApproved(address _approved) public onlyOwner {
        approved = _approved;
    }

    function isExists(uint256 _tokenId) public view returns(bool){
        return _exists(_tokenId);
    }

    function setTokenURI(uint256 _tokenId, string memory _baseUri) public onlyOwner {
        // 数量分ループ
        for (uint8 i = 0; i < maxAmount; i++) {
            // CBAの tokenId * 10を起点に数量分+1した値をtokenIdにする
            uint256 newTokenId = _tokenId * 10 + i;

            // tokenURI
            _setTokenURI(
                newTokenId,
                string(
                    abi.encodePacked(_baseUri, newTokenId.toString(), ".json")
                )
            );
        }
    }

    // 署名検証用のメッセージ
    function _makeMassage(
        uint256 _tokenId,
        string memory _baseUri,
        address _sender
    ) internal view virtual returns (string memory) {
        return
            string(
                abi.encodePacked(
                    _tokenId.toString(),
                    "|",
                    _baseUri,
                    "|",
                    "0x",
                    _sender.toAsciiString()
                )
            );
    }

    function testMakeMessage(
        uint256 _tokenId,
        string memory _baseUri,
        address _sender
    ) public view returns (string memory) {
        return _makeMassage(_tokenId, _baseUri, _sender);
    }

    // 署名の検証
    // 複合したアドレスがtoolUserと一致するかチェック
    function _verifySigner(string memory message, bytes memory signature)
        internal
        view
        returns (bool)
    {
        return RecoverSigner.recoverSignerByMsg(message, signature) == toolUser;
    }

    // withdraw関数
    function withdraw() public payable onlyOwner {
        (bool os, ) = payable(owner()).call{value: address(this).balance}("");
        require(os);
    }

    function testBalance() external view returns (uint256) {
        return address(this).balance;
    }
}

File 2 of 15 : RecoverSigner.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

/**
 * @dev Functions to verify signature with ECDSA.
 * require : ECDSA.sol
 */

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

library RecoverSigner {

    function recoverSigner(bytes32 hash, bytes memory signature) internal pure returns (address) {
        bytes32 messageDigest = keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32", 
                hash
            )
        );
        return ECDSA.recover(messageDigest, signature);
    }

    function recoverSignerByMsg(string memory message, bytes memory signature) internal pure returns (address) {
        return recoverSigner(keccak256(abi.encodePacked(message)), signature);
    }
}

File 3 of 15 : AddressStrings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operation for address.
 */
library AddressStrings {
    function toAsciiString(address x) internal pure returns (string memory) {
    bytes memory s = new bytes(40);
    for (uint i = 0; i < 20; i++) {
        bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
        bytes1 hi = bytes1(uint8(b) / 16);
        bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
        s[2*i] = char(hi);
        s[2*i+1] = char(lo);            
    }
    return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

File 4 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 7 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 8 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (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
    }

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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 9 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 15 : 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 13 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 15 : 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 15 of 15 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintCBAMosaic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approved","type":"address"}],"name":"setApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toolUser","type":"address"}],"name":"setToolUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"testBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address","name":"_sender","type":"address"}],"name":"testMakeMessage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

608060405260036008556000600960006101000a81548160ff021916908315150217905550732dbb039f7abd8bf3dc26fcf7418f4fa4cabb5c22600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550732dbb039f7abd8bf3dc26fcf7418f4fa4cabb5c22600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600a60146101000a81548160ff021916908315150217905550348015620000f657600080fd5b506040518060400160405280601a81526020017f43727970746f204261627920416e696d616c73204d6f736169630000000000008152506040518060400160405280600481526020017f4342414d0000000000000000000000000000000000000000000000000000000081525081600090805190602001906200017b9291906200028b565b508060019080519060200190620001949291906200028b565b505050620001b7620001ab620001bd60201b60201c565b620001c560201b60201c565b620003a0565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000299906200033b565b90600052602060002090601f016020900481019282620002bd576000855562000309565b82601f10620002d857805160ff191683800117855562000309565b8280016001018555821562000309579182015b8281111562000308578251825591602001919060010190620002eb565b5b5090506200031891906200031c565b5090565b5b80821115620003375760008160009055506001016200031d565b5090565b600060028204905060018216806200035457607f821691505b602082108114156200036b576200036a62000371565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6146e280620003b06000396000f3fe6080604052600436106101b75760003560e01c80636352211e116100ec578063a22cb4651161008a578063e985e9c511610064578063e985e9c5146105ee578063edede6011461062b578063f2fde38b14610656578063fb0289ca1461067f576101b7565b8063a22cb4651461055f578063b88d4fde14610588578063c87b56dd146105b1576101b7565b80638da5cb5b116100c65780638da5cb5b146104a357806395d89b41146104ce5780639d10d341146104f95780639d36788e14610522576101b7565b80636352211e1461041257806370a082311461044f578063715018a61461048c576101b7565b806323b872dd116101595780633ccfd60b116101335780633ccfd60b1461038957806342842e0e146103935780635c975abb146103bc5780635f48f393146103e7576101b7565b806323b872dd146103075780632bb9ef08146103305780632dd6765e1461034c576101b7565b8063081812fc11610195578063081812fc1461024d578063095ea7b31461028a578063162094c4146102b357806319d40b08146102dc576101b7565b806301ffc9a7146101bc57806302329a29146101f957806306fdde0314610222575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612e05565b6106a8565b6040516101f091906135f1565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612ddc565b61078a565b005b34801561022e57600080fd5b506102376107af565b6040516102449190613651565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190612e57565b610841565b604051610281919061358a565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac9190612da0565b610887565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190612e80565b61099f565b005b3480156102e857600080fd5b506102f1610a22565b6040516102fe919061358a565b60405180910390f35b34801561031357600080fd5b5061032e60048036038101906103299190612c9a565b610a48565b005b61034a60048036038101906103459190612f3b565b610aa8565b005b34801561035857600080fd5b50610373600480360381019061036e9190612ed4565b610d46565b6040516103809190613651565b60405180910390f35b610391610d5c565b005b34801561039f57600080fd5b506103ba60048036038101906103b59190612c9a565b610de4565b005b3480156103c857600080fd5b506103d1610e04565b6040516103de91906135f1565b60405180910390f35b3480156103f357600080fd5b506103fc610e17565b6040516104099190613953565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190612e57565b610e1d565b604051610446919061358a565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190612c35565b610ecf565b6040516104839190613953565b60405180910390f35b34801561049857600080fd5b506104a1610f87565b005b3480156104af57600080fd5b506104b8610f9b565b6040516104c5919061358a565b60405180910390f35b3480156104da57600080fd5b506104e3610fc5565b6040516104f09190613651565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190612c35565b611057565b005b34801561052e57600080fd5b5061054960048036038101906105449190612e57565b6110a3565b60405161055691906135f1565b60405180910390f35b34801561056b57600080fd5b5061058660048036038101906105819190612d64565b6110b5565b005b34801561059457600080fd5b506105af60048036038101906105aa9190612ce9565b6110cb565b005b3480156105bd57600080fd5b506105d860048036038101906105d39190612e57565b61112d565b6040516105e59190613651565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190612c5e565b611240565b60405161062291906135f1565b60405180910390f35b34801561063757600080fd5b506106406112d4565b60405161064d9190613953565b60405180910390f35b34801561066257600080fd5b5061067d60048036038101906106789190612c35565b6112dc565b005b34801561068b57600080fd5b506106a660048036038101906106a19190612c35565b611360565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061077357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107835750610782826113ac565b5b9050919050565b610792611416565b80600960006101000a81548160ff02191690831515021790555050565b6060600080546107be90613e6d565b80601f01602080910402602001604051908101604052809291908181526020018280546107ea90613e6d565b80156108375780601f1061080c57610100808354040283529160200191610837565b820191906000526020600020905b81548152906001019060200180831161081a57829003601f168201915b5050505050905090565b600061084c82611494565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061089282610e1d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fa906138f3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109226114df565b73ffffffffffffffffffffffffffffffffffffffff16148061095157506109508161094b6114df565b611240565b5b610990576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098790613833565b60405180910390fd5b61099a83836114e7565b505050565b6109a7611416565b60005b6008548160ff161015610a1d5760008160ff16600a856109ca9190613ca3565b6109d49190613a43565b9050610a0981846109e4846115a0565b6040516020016109f59291906134ce565b60405160208183030381529060405261174d565b508080610a1590613f19565b9150506109aa565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a59610a536114df565b826117c1565b610a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8f90613913565b60405180910390fd5b610aa3838383611856565b505050565b600a60149054906101000a900460ff1615610af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aef90613873565b60405180910390fd5b6001600a60146101000a81548160ff021916908315150217905550600960009054906101000a900460ff1615610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a906138b3565b60405180910390fd5b610b77610b71848433611abd565b82611b12565b610bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bad90613773565b60405180910390fd5b6103e7831115610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290613933565b60405180910390fd5b610c10600a84610c0b9190613ca3565b611b76565b15610c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4790613793565b60405180910390fd5b60005b6008548160ff161015610d255760008160ff16600a86610c739190613ca3565b610c7d9190613a43565b90506001600854610c8e9190613d38565b8260ff161015610ca757610ca23382611be2565b610cb2565b610cb13082611be2565b5b610ce58185610cc0846115a0565b604051602001610cd19291906134ce565b60405160208183030381529060405261174d565b610d11600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826114e7565b508080610d1d90613f19565b915050610c53565b506000600a60146101000a81548160ff021916908315150217905550505050565b6060610d53848484611abd565b90509392505050565b610d64611416565b6000610d6e610f9b565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d9190613575565b60006040518083038185875af1925050503d8060008114610dce576040519150601f19603f3d011682016040523d82523d6000602084013e610dd3565b606091505b5050905080610de157600080fd5b50565b610dff838383604051806020016040528060008152506110cb565b505050565b600960009054906101000a900460ff1681565b60085481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906138d3565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906137d3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f8f611416565b610f996000611dbc565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fd490613e6d565b80601f016020809104026020016040519081016040528092919081815260200182805461100090613e6d565b801561104d5780601f106110225761010080835404028352916020019161104d565b820191906000526020600020905b81548152906001019060200180831161103057829003601f168201915b5050505050905090565b61105f611416565b80600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006110ae82611b76565b9050919050565b6110c76110c06114df565b8383611e82565b5050565b6110dc6110d66114df565b836117c1565b61111b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111290613913565b60405180910390fd5b61112784848484611fef565b50505050565b606061113882611494565b600060066000848152602001908152602001600020805461115890613e6d565b80601f016020809104026020016040519081016040528092919081815260200182805461118490613e6d565b80156111d15780601f106111a6576101008083540402835291602001916111d1565b820191906000526020600020905b8154815290600101906020018083116111b457829003601f168201915b5050505050905060006111e261204b565b90506000815114156111f857819250505061123b565b60008251111561122d5780826040516020016112159291906134aa565b6040516020818303038152906040529250505061123b565b61123684612062565b925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600047905090565b6112e4611416565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b906136d3565b60405180910390fd5b61135d81611dbc565b50565b611368611416565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61141e6114df565b73ffffffffffffffffffffffffffffffffffffffff1661143c610f9b565b73ffffffffffffffffffffffffffffffffffffffff1614611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148990613893565b60405180910390fd5b565b61149d81611b76565b6114dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d3906138d3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661155a83610e1d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060008214156115e8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611748565b600082905060005b6000821461161a57808061160390613ed0565b915050600a826116139190613ad0565b91506115f0565b60008167ffffffffffffffff81111561165c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561168e5781602001600182028036833780820191505090505b5090505b60008514611741576001826116a79190613d38565b9150600a856116b69190613f4d565b60306116c29190613a43565b60f81b8183815181106116fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561173a9190613ad0565b9450611692565b8093505050505b919050565b61175682611b76565b611795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178c906137f3565b60405180910390fd5b806006600084815260200190815260200160002090805190602001906117bc929190612a59565b505050565b6000806117cd83610e1d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061180f575061180e8185611240565b5b8061184d57508373ffffffffffffffffffffffffffffffffffffffff1661183584610841565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661187682610e1d565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906136f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390613733565b60405180910390fd5b6119478383836120ca565b6119526000826114e7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119a29190613d38565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119f99190613a43565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ab88383836120cf565b505050565b6060611ac8846115a0565b83611ae88473ffffffffffffffffffffffffffffffffffffffff166120d4565b604051602001611afa939291906134fd565b60405160208183030381529060405290509392505050565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b578484612309565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4990613853565b60405180910390fd5b611c5b81611b76565b15611c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9290613713565b60405180910390fd5b611ca7600083836120ca565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cf79190613a43565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db8600083836120cf565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee890613753565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fe291906135f1565b60405180910390a3505050565b611ffa848484611856565b61200684848484612343565b612045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203c906136b3565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b606061206d82611494565b600061207761204b565b9050600081511161209757604051806020016040528060008152506120c2565b806120a1846115a0565b6040516020016120b29291906134aa565b6040516020818303038152906040525b915050919050565b505050565b505050565b60606000602867ffffffffffffffff811115612119577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561214b5781602001600182028036833780820191505090505b50905060005b60148110156122ff5760008160136121699190613d38565b60086121759190613ca3565b60026121819190613b85565b8573ffffffffffffffffffffffffffffffffffffffff166121a29190613ad0565b60f81b9050600060108260f81c6121b99190613b01565b60f81b905060008160f81c60106121d09190613cfd565b8360f81c6121de9190613d6c565b60f81b90506121ec826124da565b858560026121fa9190613ca3565b81518110612231577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612269816124da565b8560018660026122799190613ca3565b6122839190613a43565b815181106122ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050505080806122f790613ed0565b915050612151565b5080915050919050565b600061233b8360405160200161231f9190613493565b6040516020818303038152906040528051906020012083612520565b905092915050565b60006123648473ffffffffffffffffffffffffffffffffffffffff1661255f565b156124cd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261238d6114df565b8786866040518563ffffffff1660e01b81526004016123af94939291906135a5565b602060405180830381600087803b1580156123c957600080fd5b505af19250505080156123fa57506040513d601f19601f820116820180604052508101906123f79190612e2e565b60015b61247d573d806000811461242a576040519150601f19603f3d011682016040523d82523d6000602084013e61242f565b606091505b50600081511415612475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246c906136b3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506124d2565b600190505b949350505050565b6000600a8260f81c60ff1610156125055760308260f81c6124fb9190613a99565b60f81b905061251b565b60578260f81c6125159190613a99565b60f81b90505b919050565b60008083604051602001612534919061354f565b6040516020818303038152906040528051906020012090506125568184612582565b91505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600061259185856125a9565b9150915061259e816125fb565b819250505092915050565b6000806041835114156125eb5760008060006020860151925060408601519150606086015160001a90506125df8782858561294c565b945094505050506125f4565b60006002915091505b9250929050565b60006004811115612635577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561266e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561267957612949565b600160048111156126b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156126ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561272d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272490613673565b60405180910390fd5b60026004811115612767577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156127a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156127e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d890613693565b60405180910390fd5b6003600481111561281b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612854577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288c906137b3565b60405180910390fd5b6004808111156128ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612907577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293f90613813565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612987576000600391509150612a50565b601b8560ff161415801561299f5750601c8560ff1614155b156129b1576000600491509150612a50565b6000600187878787604051600081526020016040526040516129d6949392919061360c565b6020604051602081039080840390855afa1580156129f8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a4757600060019250925050612a50565b80600092509250505b94509492505050565b828054612a6590613e6d565b90600052602060002090601f016020900481019282612a875760008555612ace565b82601f10612aa057805160ff1916838001178555612ace565b82800160010185558215612ace579182015b82811115612acd578251825591602001919060010190612ab2565b5b509050612adb9190612adf565b5090565b5b80821115612af8576000816000905550600101612ae0565b5090565b6000612b0f612b0a84613993565b61396e565b905082815260208101848484011115612b2757600080fd5b612b32848285613e2b565b509392505050565b6000612b4d612b48846139c4565b61396e565b905082815260208101848484011115612b6557600080fd5b612b70848285613e2b565b509392505050565b600081359050612b8781614650565b92915050565b600081359050612b9c81614667565b92915050565b600081359050612bb18161467e565b92915050565b600081519050612bc68161467e565b92915050565b600082601f830112612bdd57600080fd5b8135612bed848260208601612afc565b91505092915050565b600082601f830112612c0757600080fd5b8135612c17848260208601612b3a565b91505092915050565b600081359050612c2f81614695565b92915050565b600060208284031215612c4757600080fd5b6000612c5584828501612b78565b91505092915050565b60008060408385031215612c7157600080fd5b6000612c7f85828601612b78565b9250506020612c9085828601612b78565b9150509250929050565b600080600060608486031215612caf57600080fd5b6000612cbd86828701612b78565b9350506020612cce86828701612b78565b9250506040612cdf86828701612c20565b9150509250925092565b60008060008060808587031215612cff57600080fd5b6000612d0d87828801612b78565b9450506020612d1e87828801612b78565b9350506040612d2f87828801612c20565b925050606085013567ffffffffffffffff811115612d4c57600080fd5b612d5887828801612bcc565b91505092959194509250565b60008060408385031215612d7757600080fd5b6000612d8585828601612b78565b9250506020612d9685828601612b8d565b9150509250929050565b60008060408385031215612db357600080fd5b6000612dc185828601612b78565b9250506020612dd285828601612c20565b9150509250929050565b600060208284031215612dee57600080fd5b6000612dfc84828501612b8d565b91505092915050565b600060208284031215612e1757600080fd5b6000612e2584828501612ba2565b91505092915050565b600060208284031215612e4057600080fd5b6000612e4e84828501612bb7565b91505092915050565b600060208284031215612e6957600080fd5b6000612e7784828501612c20565b91505092915050565b60008060408385031215612e9357600080fd5b6000612ea185828601612c20565b925050602083013567ffffffffffffffff811115612ebe57600080fd5b612eca85828601612bf6565b9150509250929050565b600080600060608486031215612ee957600080fd5b6000612ef786828701612c20565b935050602084013567ffffffffffffffff811115612f1457600080fd5b612f2086828701612bf6565b9250506040612f3186828701612b78565b9150509250925092565b600080600060608486031215612f5057600080fd5b6000612f5e86828701612c20565b935050602084013567ffffffffffffffff811115612f7b57600080fd5b612f8786828701612bf6565b925050604084013567ffffffffffffffff811115612fa457600080fd5b612fb086828701612bcc565b9150509250925092565b612fc381613da0565b82525050565b612fd281613db2565b82525050565b612fe181613dbe565b82525050565b612ff8612ff382613dbe565b613f43565b82525050565b6000613009826139f5565b6130138185613a0b565b9350613023818560208601613e3a565b61302c8161403a565b840191505092915050565b600061304282613a00565b61304c8185613a27565b935061305c818560208601613e3a565b6130658161403a565b840191505092915050565b600061307b82613a00565b6130858185613a38565b9350613095818560208601613e3a565b80840191505092915050565b60006130ae601883613a27565b91506130b982614058565b602082019050919050565b60006130d1601f83613a27565b91506130dc82614081565b602082019050919050565b60006130f4601c83613a38565b91506130ff826140aa565b601c82019050919050565b6000613117603283613a27565b9150613122826140d3565b604082019050919050565b600061313a602683613a27565b915061314582614122565b604082019050919050565b600061315d602583613a27565b915061316882614171565b604082019050919050565b6000613180601c83613a27565b915061318b826141c0565b602082019050919050565b60006131a3600283613a38565b91506131ae826141e9565b600282019050919050565b60006131c6602483613a27565b91506131d182614212565b604082019050919050565b60006131e9601983613a27565b91506131f482614261565b602082019050919050565b600061320c601683613a27565b91506132178261428a565b602082019050919050565b600061322f601583613a27565b915061323a826142b3565b602082019050919050565b6000613252602283613a27565b915061325d826142dc565b604082019050919050565b6000613275602983613a27565b91506132808261432b565b604082019050919050565b6000613298602e83613a27565b91506132a38261437a565b604082019050919050565b60006132bb602283613a27565b91506132c6826143c9565b604082019050919050565b60006132de603e83613a27565b91506132e982614418565b604082019050919050565b6000613301602083613a27565b915061330c82614467565b602082019050919050565b6000613324601083613a27565b915061332f82614490565b602082019050919050565b6000613347600583613a38565b9150613352826144b9565b600582019050919050565b600061336a602083613a27565b9150613375826144e2565b602082019050919050565b600061338d601683613a27565b91506133988261450b565b602082019050919050565b60006133b0601883613a27565b91506133bb82614534565b602082019050919050565b60006133d3602183613a27565b91506133de8261455d565b604082019050919050565b60006133f6600083613a1c565b9150613401826145ac565b600082019050919050565b6000613419602e83613a27565b9150613424826145af565b604082019050919050565b600061343c600183613a38565b9150613447826145fe565b600182019050919050565b600061345f601183613a27565b915061346a82614627565b602082019050919050565b61347e81613e14565b82525050565b61348d81613e1e565b82525050565b600061349f8284613070565b915081905092915050565b60006134b68285613070565b91506134c28284613070565b91508190509392505050565b60006134da8285613070565b91506134e68284613070565b91506134f18261333a565b91508190509392505050565b60006135098286613070565b91506135148261342f565b91506135208285613070565b915061352b8261342f565b915061353682613196565b91506135428284613070565b9150819050949350505050565b600061355a826130e7565b91506135668284612fe7565b60208201915081905092915050565b6000613580826133e9565b9150819050919050565b600060208201905061359f6000830184612fba565b92915050565b60006080820190506135ba6000830187612fba565b6135c76020830186612fba565b6135d46040830185613475565b81810360608301526135e68184612ffe565b905095945050505050565b60006020820190506136066000830184612fc9565b92915050565b60006080820190506136216000830187612fd8565b61362e6020830186613484565b61363b6040830185612fd8565b6136486060830184612fd8565b95945050505050565b6000602082019050818103600083015261366b8184613037565b905092915050565b6000602082019050818103600083015261368c816130a1565b9050919050565b600060208201905081810360008301526136ac816130c4565b9050919050565b600060208201905081810360008301526136cc8161310a565b9050919050565b600060208201905081810360008301526136ec8161312d565b9050919050565b6000602082019050818103600083015261370c81613150565b9050919050565b6000602082019050818103600083015261372c81613173565b9050919050565b6000602082019050818103600083015261374c816131b9565b9050919050565b6000602082019050818103600083015261376c816131dc565b9050919050565b6000602082019050818103600083015261378c816131ff565b9050919050565b600060208201905081810360008301526137ac81613222565b9050919050565b600060208201905081810360008301526137cc81613245565b9050919050565b600060208201905081810360008301526137ec81613268565b9050919050565b6000602082019050818103600083015261380c8161328b565b9050919050565b6000602082019050818103600083015261382c816132ae565b9050919050565b6000602082019050818103600083015261384c816132d1565b9050919050565b6000602082019050818103600083015261386c816132f4565b9050919050565b6000602082019050818103600083015261388c81613317565b9050919050565b600060208201905081810360008301526138ac8161335d565b9050919050565b600060208201905081810360008301526138cc81613380565b9050919050565b600060208201905081810360008301526138ec816133a3565b9050919050565b6000602082019050818103600083015261390c816133c6565b9050919050565b6000602082019050818103600083015261392c8161340c565b9050919050565b6000602082019050818103600083015261394c81613452565b9050919050565b60006020820190506139686000830184613475565b92915050565b6000613978613989565b90506139848282613e9f565b919050565b6000604051905090565b600067ffffffffffffffff8211156139ae576139ad61400b565b5b6139b78261403a565b9050602081019050919050565b600067ffffffffffffffff8211156139df576139de61400b565b5b6139e88261403a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a4e82613e14565b9150613a5983613e14565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a8e57613a8d613f7e565b5b828201905092915050565b6000613aa482613e1e565b9150613aaf83613e1e565b92508260ff03821115613ac557613ac4613f7e565b5b828201905092915050565b6000613adb82613e14565b9150613ae683613e14565b925082613af657613af5613fad565b5b828204905092915050565b6000613b0c82613e1e565b9150613b1783613e1e565b925082613b2757613b26613fad565b5b828204905092915050565b6000808291508390505b6001851115613b7c57808604811115613b5857613b57613f7e565b5b6001851615613b675780820291505b8081029050613b758561404b565b9450613b3c565b94509492505050565b6000613b9082613e14565b9150613b9b83613e14565b9250613bc87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613bd0565b905092915050565b600082613be05760019050613c9c565b81613bee5760009050613c9c565b8160018114613c045760028114613c0e57613c3d565b6001915050613c9c565b60ff841115613c2057613c1f613f7e565b5b8360020a915084821115613c3757613c36613f7e565b5b50613c9c565b5060208310610133831016604e8410600b8410161715613c725782820a905083811115613c6d57613c6c613f7e565b5b613c9c565b613c7f8484846001613b32565b92509050818404811115613c9657613c95613f7e565b5b81810290505b9392505050565b6000613cae82613e14565b9150613cb983613e14565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cf257613cf1613f7e565b5b828202905092915050565b6000613d0882613e1e565b9150613d1383613e1e565b92508160ff0483118215151615613d2d57613d2c613f7e565b5b828202905092915050565b6000613d4382613e14565b9150613d4e83613e14565b925082821015613d6157613d60613f7e565b5b828203905092915050565b6000613d7782613e1e565b9150613d8283613e1e565b925082821015613d9557613d94613f7e565b5b828203905092915050565b6000613dab82613df4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613e58578082015181840152602081019050613e3d565b83811115613e67576000848401525b50505050565b60006002820490506001821680613e8557607f821691505b60208210811415613e9957613e98613fdc565b5b50919050565b613ea88261403a565b810181811067ffffffffffffffff82111715613ec757613ec661400b565b5b80604052505050565b6000613edb82613e14565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f0e57613f0d613f7e565b5b600182019050919050565b6000613f2482613e1e565b915060ff821415613f3857613f37613f7e565b5b600182019050919050565b6000819050919050565b6000613f5882613e14565b9150613f6383613e14565b925082613f7357613f72613fad565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f3078000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f7369676e617475726520697320696e636f727265637400000000000000000000600082015250565b7f74686520746f6b656e4964206973206d696e7465640000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f7265656e7472616e6379206572726f7200000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f7c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4342417320617265206f6e6c7920393939000000000000000000000000000000600082015250565b61465981613da0565b811461466457600080fd5b50565b61467081613db2565b811461467b57600080fd5b50565b61468781613dc8565b811461469257600080fd5b50565b61469e81613e14565b81146146a957600080fd5b5056fea2646970667358221220ef2a6d5f036f040ca17c9d29144f4e0597950da233a23d9145004ad58ac3208a64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106101b75760003560e01c80636352211e116100ec578063a22cb4651161008a578063e985e9c511610064578063e985e9c5146105ee578063edede6011461062b578063f2fde38b14610656578063fb0289ca1461067f576101b7565b8063a22cb4651461055f578063b88d4fde14610588578063c87b56dd146105b1576101b7565b80638da5cb5b116100c65780638da5cb5b146104a357806395d89b41146104ce5780639d10d341146104f95780639d36788e14610522576101b7565b80636352211e1461041257806370a082311461044f578063715018a61461048c576101b7565b806323b872dd116101595780633ccfd60b116101335780633ccfd60b1461038957806342842e0e146103935780635c975abb146103bc5780635f48f393146103e7576101b7565b806323b872dd146103075780632bb9ef08146103305780632dd6765e1461034c576101b7565b8063081812fc11610195578063081812fc1461024d578063095ea7b31461028a578063162094c4146102b357806319d40b08146102dc576101b7565b806301ffc9a7146101bc57806302329a29146101f957806306fdde0314610222575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612e05565b6106a8565b6040516101f091906135f1565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612ddc565b61078a565b005b34801561022e57600080fd5b506102376107af565b6040516102449190613651565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190612e57565b610841565b604051610281919061358a565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac9190612da0565b610887565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190612e80565b61099f565b005b3480156102e857600080fd5b506102f1610a22565b6040516102fe919061358a565b60405180910390f35b34801561031357600080fd5b5061032e60048036038101906103299190612c9a565b610a48565b005b61034a60048036038101906103459190612f3b565b610aa8565b005b34801561035857600080fd5b50610373600480360381019061036e9190612ed4565b610d46565b6040516103809190613651565b60405180910390f35b610391610d5c565b005b34801561039f57600080fd5b506103ba60048036038101906103b59190612c9a565b610de4565b005b3480156103c857600080fd5b506103d1610e04565b6040516103de91906135f1565b60405180910390f35b3480156103f357600080fd5b506103fc610e17565b6040516104099190613953565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190612e57565b610e1d565b604051610446919061358a565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190612c35565b610ecf565b6040516104839190613953565b60405180910390f35b34801561049857600080fd5b506104a1610f87565b005b3480156104af57600080fd5b506104b8610f9b565b6040516104c5919061358a565b60405180910390f35b3480156104da57600080fd5b506104e3610fc5565b6040516104f09190613651565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190612c35565b611057565b005b34801561052e57600080fd5b5061054960048036038101906105449190612e57565b6110a3565b60405161055691906135f1565b60405180910390f35b34801561056b57600080fd5b5061058660048036038101906105819190612d64565b6110b5565b005b34801561059457600080fd5b506105af60048036038101906105aa9190612ce9565b6110cb565b005b3480156105bd57600080fd5b506105d860048036038101906105d39190612e57565b61112d565b6040516105e59190613651565b60405180910390f35b3480156105fa57600080fd5b5061061560048036038101906106109190612c5e565b611240565b60405161062291906135f1565b60405180910390f35b34801561063757600080fd5b506106406112d4565b60405161064d9190613953565b60405180910390f35b34801561066257600080fd5b5061067d60048036038101906106789190612c35565b6112dc565b005b34801561068b57600080fd5b506106a660048036038101906106a19190612c35565b611360565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061077357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107835750610782826113ac565b5b9050919050565b610792611416565b80600960006101000a81548160ff02191690831515021790555050565b6060600080546107be90613e6d565b80601f01602080910402602001604051908101604052809291908181526020018280546107ea90613e6d565b80156108375780601f1061080c57610100808354040283529160200191610837565b820191906000526020600020905b81548152906001019060200180831161081a57829003601f168201915b5050505050905090565b600061084c82611494565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061089282610e1d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fa906138f3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109226114df565b73ffffffffffffffffffffffffffffffffffffffff16148061095157506109508161094b6114df565b611240565b5b610990576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098790613833565b60405180910390fd5b61099a83836114e7565b505050565b6109a7611416565b60005b6008548160ff161015610a1d5760008160ff16600a856109ca9190613ca3565b6109d49190613a43565b9050610a0981846109e4846115a0565b6040516020016109f59291906134ce565b60405160208183030381529060405261174d565b508080610a1590613f19565b9150506109aa565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a59610a536114df565b826117c1565b610a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8f90613913565b60405180910390fd5b610aa3838383611856565b505050565b600a60149054906101000a900460ff1615610af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aef90613873565b60405180910390fd5b6001600a60146101000a81548160ff021916908315150217905550600960009054906101000a900460ff1615610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a906138b3565b60405180910390fd5b610b77610b71848433611abd565b82611b12565b610bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bad90613773565b60405180910390fd5b6103e7831115610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290613933565b60405180910390fd5b610c10600a84610c0b9190613ca3565b611b76565b15610c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4790613793565b60405180910390fd5b60005b6008548160ff161015610d255760008160ff16600a86610c739190613ca3565b610c7d9190613a43565b90506001600854610c8e9190613d38565b8260ff161015610ca757610ca23382611be2565b610cb2565b610cb13082611be2565b5b610ce58185610cc0846115a0565b604051602001610cd19291906134ce565b60405160208183030381529060405261174d565b610d11600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826114e7565b508080610d1d90613f19565b915050610c53565b506000600a60146101000a81548160ff021916908315150217905550505050565b6060610d53848484611abd565b90509392505050565b610d64611416565b6000610d6e610f9b565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d9190613575565b60006040518083038185875af1925050503d8060008114610dce576040519150601f19603f3d011682016040523d82523d6000602084013e610dd3565b606091505b5050905080610de157600080fd5b50565b610dff838383604051806020016040528060008152506110cb565b505050565b600960009054906101000a900460ff1681565b60085481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebd906138d3565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906137d3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f8f611416565b610f996000611dbc565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fd490613e6d565b80601f016020809104026020016040519081016040528092919081815260200182805461100090613e6d565b801561104d5780601f106110225761010080835404028352916020019161104d565b820191906000526020600020905b81548152906001019060200180831161103057829003601f168201915b5050505050905090565b61105f611416565b80600960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006110ae82611b76565b9050919050565b6110c76110c06114df565b8383611e82565b5050565b6110dc6110d66114df565b836117c1565b61111b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111290613913565b60405180910390fd5b61112784848484611fef565b50505050565b606061113882611494565b600060066000848152602001908152602001600020805461115890613e6d565b80601f016020809104026020016040519081016040528092919081815260200182805461118490613e6d565b80156111d15780601f106111a6576101008083540402835291602001916111d1565b820191906000526020600020905b8154815290600101906020018083116111b457829003601f168201915b5050505050905060006111e261204b565b90506000815114156111f857819250505061123b565b60008251111561122d5780826040516020016112159291906134aa565b6040516020818303038152906040529250505061123b565b61123684612062565b925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600047905090565b6112e4611416565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b906136d3565b60405180910390fd5b61135d81611dbc565b50565b611368611416565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61141e6114df565b73ffffffffffffffffffffffffffffffffffffffff1661143c610f9b565b73ffffffffffffffffffffffffffffffffffffffff1614611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148990613893565b60405180910390fd5b565b61149d81611b76565b6114dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d3906138d3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661155a83610e1d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060008214156115e8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611748565b600082905060005b6000821461161a57808061160390613ed0565b915050600a826116139190613ad0565b91506115f0565b60008167ffffffffffffffff81111561165c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561168e5781602001600182028036833780820191505090505b5090505b60008514611741576001826116a79190613d38565b9150600a856116b69190613f4d565b60306116c29190613a43565b60f81b8183815181106116fe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561173a9190613ad0565b9450611692565b8093505050505b919050565b61175682611b76565b611795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178c906137f3565b60405180910390fd5b806006600084815260200190815260200160002090805190602001906117bc929190612a59565b505050565b6000806117cd83610e1d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061180f575061180e8185611240565b5b8061184d57508373ffffffffffffffffffffffffffffffffffffffff1661183584610841565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661187682610e1d565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906136f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193390613733565b60405180910390fd5b6119478383836120ca565b6119526000826114e7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119a29190613d38565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119f99190613a43565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ab88383836120cf565b505050565b6060611ac8846115a0565b83611ae88473ffffffffffffffffffffffffffffffffffffffff166120d4565b604051602001611afa939291906134fd565b60405160208183030381529060405290509392505050565b6000600960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611b578484612309565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4990613853565b60405180910390fd5b611c5b81611b76565b15611c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9290613713565b60405180910390fd5b611ca7600083836120ca565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cf79190613a43565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db8600083836120cf565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee890613753565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fe291906135f1565b60405180910390a3505050565b611ffa848484611856565b61200684848484612343565b612045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203c906136b3565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b606061206d82611494565b600061207761204b565b9050600081511161209757604051806020016040528060008152506120c2565b806120a1846115a0565b6040516020016120b29291906134aa565b6040516020818303038152906040525b915050919050565b505050565b505050565b60606000602867ffffffffffffffff811115612119577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561214b5781602001600182028036833780820191505090505b50905060005b60148110156122ff5760008160136121699190613d38565b60086121759190613ca3565b60026121819190613b85565b8573ffffffffffffffffffffffffffffffffffffffff166121a29190613ad0565b60f81b9050600060108260f81c6121b99190613b01565b60f81b905060008160f81c60106121d09190613cfd565b8360f81c6121de9190613d6c565b60f81b90506121ec826124da565b858560026121fa9190613ca3565b81518110612231577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612269816124da565b8560018660026122799190613ca3565b6122839190613a43565b815181106122ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050505080806122f790613ed0565b915050612151565b5080915050919050565b600061233b8360405160200161231f9190613493565b6040516020818303038152906040528051906020012083612520565b905092915050565b60006123648473ffffffffffffffffffffffffffffffffffffffff1661255f565b156124cd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261238d6114df565b8786866040518563ffffffff1660e01b81526004016123af94939291906135a5565b602060405180830381600087803b1580156123c957600080fd5b505af19250505080156123fa57506040513d601f19601f820116820180604052508101906123f79190612e2e565b60015b61247d573d806000811461242a576040519150601f19603f3d011682016040523d82523d6000602084013e61242f565b606091505b50600081511415612475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246c906136b3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506124d2565b600190505b949350505050565b6000600a8260f81c60ff1610156125055760308260f81c6124fb9190613a99565b60f81b905061251b565b60578260f81c6125159190613a99565b60f81b90505b919050565b60008083604051602001612534919061354f565b6040516020818303038152906040528051906020012090506125568184612582565b91505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600061259185856125a9565b9150915061259e816125fb565b819250505092915050565b6000806041835114156125eb5760008060006020860151925060408601519150606086015160001a90506125df8782858561294c565b945094505050506125f4565b60006002915091505b9250929050565b60006004811115612635577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561266e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561267957612949565b600160048111156126b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156126ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561272d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272490613673565b60405180910390fd5b60026004811115612767577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156127a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156127e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d890613693565b60405180910390fd5b6003600481111561281b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612854577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288c906137b3565b60405180910390fd5b6004808111156128ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612907577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293f90613813565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612987576000600391509150612a50565b601b8560ff161415801561299f5750601c8560ff1614155b156129b1576000600491509150612a50565b6000600187878787604051600081526020016040526040516129d6949392919061360c565b6020604051602081039080840390855afa1580156129f8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a4757600060019250925050612a50565b80600092509250505b94509492505050565b828054612a6590613e6d565b90600052602060002090601f016020900481019282612a875760008555612ace565b82601f10612aa057805160ff1916838001178555612ace565b82800160010185558215612ace579182015b82811115612acd578251825591602001919060010190612ab2565b5b509050612adb9190612adf565b5090565b5b80821115612af8576000816000905550600101612ae0565b5090565b6000612b0f612b0a84613993565b61396e565b905082815260208101848484011115612b2757600080fd5b612b32848285613e2b565b509392505050565b6000612b4d612b48846139c4565b61396e565b905082815260208101848484011115612b6557600080fd5b612b70848285613e2b565b509392505050565b600081359050612b8781614650565b92915050565b600081359050612b9c81614667565b92915050565b600081359050612bb18161467e565b92915050565b600081519050612bc68161467e565b92915050565b600082601f830112612bdd57600080fd5b8135612bed848260208601612afc565b91505092915050565b600082601f830112612c0757600080fd5b8135612c17848260208601612b3a565b91505092915050565b600081359050612c2f81614695565b92915050565b600060208284031215612c4757600080fd5b6000612c5584828501612b78565b91505092915050565b60008060408385031215612c7157600080fd5b6000612c7f85828601612b78565b9250506020612c9085828601612b78565b9150509250929050565b600080600060608486031215612caf57600080fd5b6000612cbd86828701612b78565b9350506020612cce86828701612b78565b9250506040612cdf86828701612c20565b9150509250925092565b60008060008060808587031215612cff57600080fd5b6000612d0d87828801612b78565b9450506020612d1e87828801612b78565b9350506040612d2f87828801612c20565b925050606085013567ffffffffffffffff811115612d4c57600080fd5b612d5887828801612bcc565b91505092959194509250565b60008060408385031215612d7757600080fd5b6000612d8585828601612b78565b9250506020612d9685828601612b8d565b9150509250929050565b60008060408385031215612db357600080fd5b6000612dc185828601612b78565b9250506020612dd285828601612c20565b9150509250929050565b600060208284031215612dee57600080fd5b6000612dfc84828501612b8d565b91505092915050565b600060208284031215612e1757600080fd5b6000612e2584828501612ba2565b91505092915050565b600060208284031215612e4057600080fd5b6000612e4e84828501612bb7565b91505092915050565b600060208284031215612e6957600080fd5b6000612e7784828501612c20565b91505092915050565b60008060408385031215612e9357600080fd5b6000612ea185828601612c20565b925050602083013567ffffffffffffffff811115612ebe57600080fd5b612eca85828601612bf6565b9150509250929050565b600080600060608486031215612ee957600080fd5b6000612ef786828701612c20565b935050602084013567ffffffffffffffff811115612f1457600080fd5b612f2086828701612bf6565b9250506040612f3186828701612b78565b9150509250925092565b600080600060608486031215612f5057600080fd5b6000612f5e86828701612c20565b935050602084013567ffffffffffffffff811115612f7b57600080fd5b612f8786828701612bf6565b925050604084013567ffffffffffffffff811115612fa457600080fd5b612fb086828701612bcc565b9150509250925092565b612fc381613da0565b82525050565b612fd281613db2565b82525050565b612fe181613dbe565b82525050565b612ff8612ff382613dbe565b613f43565b82525050565b6000613009826139f5565b6130138185613a0b565b9350613023818560208601613e3a565b61302c8161403a565b840191505092915050565b600061304282613a00565b61304c8185613a27565b935061305c818560208601613e3a565b6130658161403a565b840191505092915050565b600061307b82613a00565b6130858185613a38565b9350613095818560208601613e3a565b80840191505092915050565b60006130ae601883613a27565b91506130b982614058565b602082019050919050565b60006130d1601f83613a27565b91506130dc82614081565b602082019050919050565b60006130f4601c83613a38565b91506130ff826140aa565b601c82019050919050565b6000613117603283613a27565b9150613122826140d3565b604082019050919050565b600061313a602683613a27565b915061314582614122565b604082019050919050565b600061315d602583613a27565b915061316882614171565b604082019050919050565b6000613180601c83613a27565b915061318b826141c0565b602082019050919050565b60006131a3600283613a38565b91506131ae826141e9565b600282019050919050565b60006131c6602483613a27565b91506131d182614212565b604082019050919050565b60006131e9601983613a27565b91506131f482614261565b602082019050919050565b600061320c601683613a27565b91506132178261428a565b602082019050919050565b600061322f601583613a27565b915061323a826142b3565b602082019050919050565b6000613252602283613a27565b915061325d826142dc565b604082019050919050565b6000613275602983613a27565b91506132808261432b565b604082019050919050565b6000613298602e83613a27565b91506132a38261437a565b604082019050919050565b60006132bb602283613a27565b91506132c6826143c9565b604082019050919050565b60006132de603e83613a27565b91506132e982614418565b604082019050919050565b6000613301602083613a27565b915061330c82614467565b602082019050919050565b6000613324601083613a27565b915061332f82614490565b602082019050919050565b6000613347600583613a38565b9150613352826144b9565b600582019050919050565b600061336a602083613a27565b9150613375826144e2565b602082019050919050565b600061338d601683613a27565b91506133988261450b565b602082019050919050565b60006133b0601883613a27565b91506133bb82614534565b602082019050919050565b60006133d3602183613a27565b91506133de8261455d565b604082019050919050565b60006133f6600083613a1c565b9150613401826145ac565b600082019050919050565b6000613419602e83613a27565b9150613424826145af565b604082019050919050565b600061343c600183613a38565b9150613447826145fe565b600182019050919050565b600061345f601183613a27565b915061346a82614627565b602082019050919050565b61347e81613e14565b82525050565b61348d81613e1e565b82525050565b600061349f8284613070565b915081905092915050565b60006134b68285613070565b91506134c28284613070565b91508190509392505050565b60006134da8285613070565b91506134e68284613070565b91506134f18261333a565b91508190509392505050565b60006135098286613070565b91506135148261342f565b91506135208285613070565b915061352b8261342f565b915061353682613196565b91506135428284613070565b9150819050949350505050565b600061355a826130e7565b91506135668284612fe7565b60208201915081905092915050565b6000613580826133e9565b9150819050919050565b600060208201905061359f6000830184612fba565b92915050565b60006080820190506135ba6000830187612fba565b6135c76020830186612fba565b6135d46040830185613475565b81810360608301526135e68184612ffe565b905095945050505050565b60006020820190506136066000830184612fc9565b92915050565b60006080820190506136216000830187612fd8565b61362e6020830186613484565b61363b6040830185612fd8565b6136486060830184612fd8565b95945050505050565b6000602082019050818103600083015261366b8184613037565b905092915050565b6000602082019050818103600083015261368c816130a1565b9050919050565b600060208201905081810360008301526136ac816130c4565b9050919050565b600060208201905081810360008301526136cc8161310a565b9050919050565b600060208201905081810360008301526136ec8161312d565b9050919050565b6000602082019050818103600083015261370c81613150565b9050919050565b6000602082019050818103600083015261372c81613173565b9050919050565b6000602082019050818103600083015261374c816131b9565b9050919050565b6000602082019050818103600083015261376c816131dc565b9050919050565b6000602082019050818103600083015261378c816131ff565b9050919050565b600060208201905081810360008301526137ac81613222565b9050919050565b600060208201905081810360008301526137cc81613245565b9050919050565b600060208201905081810360008301526137ec81613268565b9050919050565b6000602082019050818103600083015261380c8161328b565b9050919050565b6000602082019050818103600083015261382c816132ae565b9050919050565b6000602082019050818103600083015261384c816132d1565b9050919050565b6000602082019050818103600083015261386c816132f4565b9050919050565b6000602082019050818103600083015261388c81613317565b9050919050565b600060208201905081810360008301526138ac8161335d565b9050919050565b600060208201905081810360008301526138cc81613380565b9050919050565b600060208201905081810360008301526138ec816133a3565b9050919050565b6000602082019050818103600083015261390c816133c6565b9050919050565b6000602082019050818103600083015261392c8161340c565b9050919050565b6000602082019050818103600083015261394c81613452565b9050919050565b60006020820190506139686000830184613475565b92915050565b6000613978613989565b90506139848282613e9f565b919050565b6000604051905090565b600067ffffffffffffffff8211156139ae576139ad61400b565b5b6139b78261403a565b9050602081019050919050565b600067ffffffffffffffff8211156139df576139de61400b565b5b6139e88261403a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a4e82613e14565b9150613a5983613e14565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a8e57613a8d613f7e565b5b828201905092915050565b6000613aa482613e1e565b9150613aaf83613e1e565b92508260ff03821115613ac557613ac4613f7e565b5b828201905092915050565b6000613adb82613e14565b9150613ae683613e14565b925082613af657613af5613fad565b5b828204905092915050565b6000613b0c82613e1e565b9150613b1783613e1e565b925082613b2757613b26613fad565b5b828204905092915050565b6000808291508390505b6001851115613b7c57808604811115613b5857613b57613f7e565b5b6001851615613b675780820291505b8081029050613b758561404b565b9450613b3c565b94509492505050565b6000613b9082613e14565b9150613b9b83613e14565b9250613bc87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613bd0565b905092915050565b600082613be05760019050613c9c565b81613bee5760009050613c9c565b8160018114613c045760028114613c0e57613c3d565b6001915050613c9c565b60ff841115613c2057613c1f613f7e565b5b8360020a915084821115613c3757613c36613f7e565b5b50613c9c565b5060208310610133831016604e8410600b8410161715613c725782820a905083811115613c6d57613c6c613f7e565b5b613c9c565b613c7f8484846001613b32565b92509050818404811115613c9657613c95613f7e565b5b81810290505b9392505050565b6000613cae82613e14565b9150613cb983613e14565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cf257613cf1613f7e565b5b828202905092915050565b6000613d0882613e1e565b9150613d1383613e1e565b92508160ff0483118215151615613d2d57613d2c613f7e565b5b828202905092915050565b6000613d4382613e14565b9150613d4e83613e14565b925082821015613d6157613d60613f7e565b5b828203905092915050565b6000613d7782613e1e565b9150613d8283613e1e565b925082821015613d9557613d94613f7e565b5b828203905092915050565b6000613dab82613df4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613e58578082015181840152602081019050613e3d565b83811115613e67576000848401525b50505050565b60006002820490506001821680613e8557607f821691505b60208210811415613e9957613e98613fdc565b5b50919050565b613ea88261403a565b810181811067ffffffffffffffff82111715613ec757613ec661400b565b5b80604052505050565b6000613edb82613e14565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f0e57613f0d613f7e565b5b600182019050919050565b6000613f2482613e1e565b915060ff821415613f3857613f37613f7e565b5b600182019050919050565b6000819050919050565b6000613f5882613e14565b9150613f6383613e14565b925082613f7357613f72613fad565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f3078000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f7369676e617475726520697320696e636f727265637400000000000000000000600082015250565b7f74686520746f6b656e4964206973206d696e7465640000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f7265656e7472616e6379206572726f7200000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f7c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4342417320617265206f6e6c7920393939000000000000000000000000000000600082015250565b61465981613da0565b811461466457600080fd5b50565b61467081613db2565b811461467b57600080fd5b50565b61468781613dc8565b811461469257600080fd5b50565b61469e81613e14565b81146146a957600080fd5b5056fea2646970667358221220ef2a6d5f036f040ca17c9d29144f4e0597950da233a23d9145004ad58ac3208a64736f6c63430008040033

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.