ETH Price: $2,982.26 (-3.92%)
Gas: 2 Gwei

Token

Probably Nothing by ChinaChic NFT (PN)
 

Overview

Max Total Supply

1,185 PN

Holders

739

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
skgame.eth
0xfab534cf6e83143ec4ed0fce65554aa09478a8c6
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:
ChinaChicBanner

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./ChinaChicProof.sol";

// File: contracts/ChinaChicBanner.sol

/*
 ██████╗██╗  ██╗██╗███╗   ██╗ █████╗      ██████╗██╗  ██╗██╗ ██████╗
██╔════╝██║  ██║██║████╗  ██║██╔══██╗    ██╔════╝██║  ██║██║██╔════╝
██║     ███████║██║██╔██╗ ██║███████║    ██║     ███████║██║██║     
██║     ██╔══██║██║██║╚██╗██║██╔══██║    ██║     ██╔══██║██║██║     
╚██████╗██║  ██║██║██║ ╚████║██║  ██║    ╚██████╗██║  ██║██║╚██████╗
 ╚═════╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝     ╚═════╝╚═╝  ╚═╝╚═╝ ╚═════╝
*/

contract ChinaChicBanner is
    ERC1155,
    ERC1155Burnable,
    ChinaChicProof,
    Pausable,
    ReentrancyGuard
{
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    // Constant variables
    // ------------------------------------------------------------------------
    uint256 public constant MAX_SUPPLY = 2600;

    // State variables
    // ------------------------------------------------------------------------
    string public name;
    string public symbol;
    uint256 public totalSupply;
    Counters.Counter private _tokenIds;
    bool public isClaimOpen = false;

    // Sale mappings and array
    // ------------------------------------------------------------------------
    mapping(string => bool) private nonces;
    mapping(uint256 => bool) private claimed;
    uint256[] private claimedIds;

    // Modifiers
    // ------------------------------------------------------------------------
    modifier onlyClaimOpen() {
        require(isClaimOpen, "Claim is not open");
        _;
    }

    constructor(string memory _name, string memory _symbol) ERC1155("") {
        name = _name;
        symbol = _symbol;
    }

    // Operational functions
    // ------------------------------------------------------------------------
    function collectReserves(uint256 quantity) external onlyOwner {
        require(totalSupply + quantity <= MAX_SUPPLY, "Exceed max supply");
        for (uint256 i = 0; i < quantity; i++) {
            uint256 id = _tokenIds.current();
            _mint(msg.sender, id, 1, "");
            _tokenIds.increment();
        }
        totalSupply.add(quantity);
    }

    function getClaimed(uint256 tokenId) public view returns (bool) {
        return claimed[tokenId];
    }

    function getClaimedIds() public view returns (uint256[] memory) {
        return claimedIds;
    }

    function flipClaimOpen() public onlyOwner {
        isClaimOpen = !isClaimOpen;
    }

    function setURI(string memory _uri) public onlyOwner {
        _setURI(_uri);
    }

    // Claim functions
    // ------------------------------------------------------------------------
    function claim(
        string memory nonce,
        uint256[] calldata tokenIds,
        bytes memory signature
    ) public nonReentrant whenNotPaused onlyClaimOpen onlyEOA {
        require(!nonces[nonce], "Hash reused");

        string memory ids = concat(tokenIds);
        bytes32 digest = hashMessage(_msgSender(), nonce, ids);
        require(matchSigner(digest, signature), "Signature not authenticated");

        nonces[nonce] = true;
        uint256 quantity = tokenIds.length;

        require(totalSupply + quantity <= MAX_SUPPLY, "Exceed max supply");

        uint256 claimable = 0;

        for (uint256 i = 0; i < quantity; i++) {
            if (!claimed[tokenIds[i]]) {
                claimed[tokenIds[i]] = true;
                claimedIds.push(tokenIds[i]);
                claimable += 1;

                uint256 id = _tokenIds.current();
                _mint(msg.sender, id, 1, "");
                _tokenIds.increment();
            }
        }

        require(claimable > 0, "Already Claimed");
        totalSupply.add(claimable);
    }
}

File 2 of 22 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 22 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 4 of 22 : ERC20Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 8 of 22 : ChinaChicProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

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

// File: contracts/ChinaChicClaim.sol

/*
 ██████╗██╗  ██╗██╗███╗   ██╗ █████╗      ██████╗██╗  ██╗██╗ ██████╗
██╔════╝██║  ██║██║████╗  ██║██╔══██╗    ██╔════╝██║  ██║██║██╔════╝
██║     ███████║██║██╔██╗ ██║███████║    ██║     ███████║██║██║     
██║     ██╔══██║██║██║╚██╗██║██╔══██║    ██║     ██╔══██║██║██║     
╚██████╗██║  ██║██║██║ ╚████║██║  ██║    ╚██████╗██║  ██║██║╚██████╗
 ╚═════╝╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝     ╚═════╝╚═╝  ╚═╝╚═╝ ╚═════╝
*/

/**
 * @title ChinaChic Proof utility contract
 * @dev Utility Contract made by China Chic DAO
 */
abstract contract ChinaChicProof is Ownable {
    using ECDSA for bytes32;

    // Constant variables
    // ------------------------------------------------------------------------

    // State variables
    // ------------------------------------------------------------------------
    address public verifier;

    // Sale mappings and array
    // ------------------------------------------------------------------------
    mapping(string => bool) private nonces;

    // Modifiers
    // ------------------------------------------------------------------------
    modifier onlyEOA() {
        require(tx.origin == msg.sender, "Must be externally owned account");
        _;
    }

    // Operational functions
    // ------------------------------------------------------------------------
    function setVerifier(address _verifier) external onlyOwner {
        verifier = _verifier;
    }

    function concat(uint256[] calldata tokenIds)
        public
        pure
        returns (string memory)
    {
        string memory output;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (bytes(output).length == 0) {
                output = Strings.toString(tokenIds[i]);
            } else {
                output = string(
                    abi.encodePacked(output, "-", Strings.toString(tokenIds[i]))
                );
            }
        }

        return output;
    }

    // Verify Signature functions
    // ------------------------------------------------------------------------
    function matchSigner(bytes32 hash, bytes memory signature)
        public
        view
        returns (bool)
    {
        return verifier == hash.toEthSignedMessageHash().recover(signature);
    }

    function hashMessage(
        address sender,
        string memory nonce,
        string memory ids
    ) public view returns (bytes32) {
        bytes32 hash = keccak256(
            abi.encodePacked(sender, nonce, ids, verifier)
        );
        return hash;
    }
}

File 9 of 22 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 10 of 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 22 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 12 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 16 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) 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, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 17 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 18 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 19 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 20 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 21 of 22 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

    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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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 22 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"concat","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"flipClaimOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimedIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"string","name":"ids","type":"string"}],"name":"hashMessage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"matchSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verifier","type":"address"}],"name":"setVerifier","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526000600c60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162005ade38038062005ade833981810160405281019062000052919062000309565b604051806020016040528060008152506200007381620000f160201b60201c565b5062000094620000886200010d60201b60201c565b6200011560201b60201c565b6000600660006101000a81548160ff02191690831515021790555060016007819055508160089080519060200190620000cf929190620001db565b508060099080519060200190620000e8929190620001db565b50505062000512565b806002908051906020019062000109929190620001db565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001e99062000423565b90600052602060002090601f0160209004810192826200020d576000855562000259565b82601f106200022857805160ff191683800117855562000259565b8280016001018555821562000259579182015b82811115620002585782518255916020019190600101906200023b565b5b5090506200026891906200026c565b5090565b5b80821115620002875760008160009055506001016200026d565b5090565b6000620002a26200029c84620003b7565b6200038e565b905082815260208101848484011115620002c157620002c0620004f2565b5b620002ce848285620003ed565b509392505050565b600082601f830112620002ee57620002ed620004ed565b5b8151620003008482602086016200028b565b91505092915050565b60008060408385031215620003235762000322620004fc565b5b600083015167ffffffffffffffff811115620003445762000343620004f7565b5b6200035285828601620002d6565b925050602083015167ffffffffffffffff811115620003765762000375620004f7565b5b6200038485828601620002d6565b9150509250929050565b60006200039a620003ad565b9050620003a8828262000459565b919050565b6000604051905090565b600067ffffffffffffffff821115620003d557620003d4620004be565b5b620003e08262000501565b9050602081019050919050565b60005b838110156200040d578082015181840152602081019050620003f0565b838111156200041d576000848401525b50505050565b600060028204905060018216806200043c57607f821691505b602082108114156200045357620004526200048f565b5b50919050565b620004648262000501565b810181811067ffffffffffffffff82111715620004865762000485620004be565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6155bc80620005226000396000f3fe608060405234801561001057600080fd5b50600436106101d95760003560e01c80635c975abb11610104578063a22cb465116100a2578063e985e9c511610071578063e985e9c514610544578063f242432a14610574578063f2fde38b14610590578063f5298aca146105ac576101d9565b8063a22cb465146104be578063c9d70d40146104da578063dd8d74d8146104f8578063e5d089ff14610528576101d9565b8063715018a6116100de578063715018a61461044857806381fe9e2d146104525780638da5cb5b1461048257806395d89b41146104a0576101d9565b80635c975abb146103de5780636302b9c8146103fc5780636b20c4541461042c576101d9565b8063194cee8e1161017c57806332cb6b0c1161014b57806332cb6b0c14610358578063431e394e146103765780634e1273f4146103925780635437988d146103c2576101d9565b8063194cee8e146102d057806324fd2652146103005780632b7ac3f31461031e5780632eb2c2d61461033c576101d9565b806306fdde03116101b857806306fdde031461025a5780630e89341c1461027857806310a956b3146102a857806318160ddd146102b2576101d9565b8062fdd58e146101de57806301ffc9a71461020e57806302fe53051461023e575b600080fd5b6101f860048036038101906101f39190613914565b6105c8565b60405161020591906147c1565b60405180910390f35b61022860048036038101906102239190613ac8565b610691565b60405161023591906143c4565b60405180910390f35b61025860048036038101906102539190613b22565b610773565b005b6102626107fb565b60405161026f919061443f565b60405180910390f35b610292600480360381019061028d9190613c17565b610889565b60405161029f919061443f565b60405180910390f35b6102b061091d565b005b6102ba6109c5565b6040516102c791906147c1565b60405180910390f35b6102ea60048036038101906102e59190613889565b6109cb565b6040516102f791906143df565b60405180910390f35b610308610a2a565b60405161031591906143c4565b60405180910390f35b610326610a3d565b604051610333919061428e565b60405180910390f35b61035660048036038101906103519190613658565b610a63565b005b610360610b04565b60405161036d91906147c1565b60405180910390f35b610390600480360381019061038b9190613b6b565b610b0a565b005b6103ac60048036038101906103a791906139a7565b610f5c565b6040516103b9919061436b565b60405180910390f35b6103dc60048036038101906103d791906135eb565b611075565b005b6103e6611135565b6040516103f391906143c4565b60405180910390f35b61041660048036038101906104119190613a1f565b61114c565b604051610423919061443f565b60405180910390f35b610446600480360381019061044191906137be565b6111f4565b005b610450611291565b005b61046c60048036038101906104679190613c17565b611319565b60405161047991906143c4565b60405180910390f35b61048a611343565b604051610497919061428e565b60405180910390f35b6104a861136d565b6040516104b5919061443f565b60405180910390f35b6104d860048036038101906104d39190613849565b6113fb565b005b6104e2611411565b6040516104ef919061436b565b60405180910390f35b610512600480360381019061050d9190613a6c565b611469565b60405161051f91906143c4565b60405180910390f35b610542600480360381019061053d9190613c17565b6114de565b005b61055e60048036038101906105599190613618565b611619565b60405161056b91906143c4565b60405180910390f35b61058e60048036038101906105899190613727565b6116ad565b005b6105aa60048036038101906105a591906135eb565b61174e565b005b6105c660048036038101906105c19190613954565b611846565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610639576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610630906144e1565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076c575061076b826118e3565b5b9050919050565b61077b61194d565b73ffffffffffffffffffffffffffffffffffffffff16610799611343565b73ffffffffffffffffffffffffffffffffffffffff16146107ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e6906146e1565b60405180910390fd5b6107f881611955565b50565b6008805461080890614ae8565b80601f016020809104026020016040519081016040528092919081815260200182805461083490614ae8565b80156108815780601f1061085657610100808354040283529160200191610881565b820191906000526020600020905b81548152906001019060200180831161086457829003601f168201915b505050505081565b60606002805461089890614ae8565b80601f01602080910402602001604051908101604052809291908181526020018280546108c490614ae8565b80156109115780601f106108e657610100808354040283529160200191610911565b820191906000526020600020905b8154815290600101906020018083116108f457829003601f168201915b50505050509050919050565b61092561194d565b73ffffffffffffffffffffffffffffffffffffffff16610943611343565b73ffffffffffffffffffffffffffffffffffffffff1614610999576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610990906146e1565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b600a5481565b600080848484600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001610a0794939291906141dc565b604051602081830303815290604052805190602001209050809150509392505050565b600c60009054906101000a900460ff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a6b61194d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ab15750610ab085610aab61194d565b611619565b5b610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae790614601565b60405180910390fd5b610afd858585858561196f565b5050505050565b610a2881565b60026007541415610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b47906147a1565b60405180910390fd5b6002600781905550610b60611135565b15610ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b97906145a1565b60405180910390fd5b600c60009054906101000a900460ff16610bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be690614641565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490614621565b60405180910390fd5b600d84604051610c6d9190614222565b908152602001604051809103902060009054906101000a900460ff1615610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc090614501565b60405180910390fd5b6000610cd5848461114c565b90506000610ceb610ce461194d565b87846109cb565b9050610cf78184611469565b610d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2d906145c1565b60405180910390fd5b6001600d87604051610d489190614222565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506000858590509050610a2881600a54610d869190614960565b1115610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe906146c1565b60405180910390fd5b6000805b82811015610ef057600e6000898984818110610dea57610de9614caf565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16610edd576001600e60008a8a85818110610e2a57610e29614caf565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600f888883818110610e6b57610e6a614caf565b5b905060200201359080600181540180825580915050600190039060005260206000200160009091909190915055600182610ea59190614960565b91506000610eb3600b611c91565b9050610ed13382600160405180602001604052806000815250611c9f565b610edb600b611e50565b505b8080610ee890614b4b565b915050610dcb565b5060008111610f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2b90614701565b60405180910390fd5b610f4981600a54611e6690919063ffffffff16565b5050505050600160078190555050505050565b60608151835114610fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9990614741565b60405180910390fd5b6000835167ffffffffffffffff811115610fbf57610fbe614cde565b5b604051908082528060200260200182016040528015610fed5781602001602082028036833780820191505090505b50905060005b845181101561106a5761103a85828151811061101257611011614caf565b5b602002602001015185838151811061102d5761102c614caf565b5b60200260200101516105c8565b82828151811061104d5761104c614caf565b5b6020026020010181815250508061106390614b4b565b9050610ff3565b508091505092915050565b61107d61194d565b73ffffffffffffffffffffffffffffffffffffffff1661109b611343565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e8906146e1565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600660009054906101000a900460ff16905090565b60608060005b848490508110156111e9576000825114156111905761118985858381811061117d5761117c614caf565b5b90506020020135611e7c565b91506111d6565b816111b38686848181106111a7576111a6614caf565b5b90506020020135611e7c565b6040516020016111c4929190614239565b60405160208183030381529060405291505b80806111e190614b4b565b915050611152565b508091505092915050565b6111fc61194d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061124257506112418361123c61194d565b611619565b5b611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890614561565b60405180910390fd5b61128c838383611fdd565b505050565b61129961194d565b73ffffffffffffffffffffffffffffffffffffffff166112b7611343565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611304906146e1565b60405180910390fd5b61131760006122ac565b565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6009805461137a90614ae8565b80601f01602080910402602001604051908101604052809291908181526020018280546113a690614ae8565b80156113f35780601f106113c8576101008083540402835291602001916113f3565b820191906000526020600020905b8154815290600101906020018083116113d657829003601f168201915b505050505081565b61140d61140661194d565b8383612372565b5050565b6060600f80548060200260200160405190810160405280929190818152602001828054801561145f57602002820191906000526020600020905b81548152602001906001019080831161144b575b5050505050905090565b600061148682611478856124df565b61250f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6114e661194d565b73ffffffffffffffffffffffffffffffffffffffff16611504611343565b73ffffffffffffffffffffffffffffffffffffffff161461155a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611551906146e1565b60405180910390fd5b610a2881600a5461156b9190614960565b11156115ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a3906146c1565b60405180910390fd5b60005b818110156115ff5760006115c3600b611c91565b90506115e13382600160405180602001604052806000815250611c9f565b6115eb600b611e50565b5080806115f790614b4b565b9150506115af565b5061161581600a54611e6690919063ffffffff16565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116b561194d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806116fb57506116fa856116f561194d565b611619565b5b61173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190614561565b60405180910390fd5b6117478585858585612536565b5050505050565b61175661194d565b73ffffffffffffffffffffffffffffffffffffffff16611774611343565b73ffffffffffffffffffffffffffffffffffffffff16146117ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c1906146e1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614521565b60405180910390fd5b611843816122ac565b50565b61184e61194d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061189457506118938361188e61194d565b611619565b5b6118d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ca90614561565b60405180910390fd5b6118de8383836127d2565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b806002908051906020019061196b929190613258565b5050565b81518351146119b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119aa90614761565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a906145e1565b60405180910390fd5b6000611a2d61194d565b9050611a3d818787878787612a19565b60005b8451811015611bee576000858281518110611a5e57611a5d614caf565b5b602002602001015190506000858381518110611a7d57611a7c614caf565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906146a1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bd39190614960565b9250508190555050505080611be790614b4b565b9050611a40565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c6592919061438d565b60405180910390a4611c7b818787878787612a21565b611c89818787878787612a29565b505050505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0690614781565b60405180910390fd5b6000611d1961194d565b90506000611d2685612c10565b90506000611d3385612c10565b9050611d4483600089858589612a19565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611da39190614960565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611e219291906147dc565b60405180910390a4611e3883600089858589612a21565b611e4783600089898989612c8a565b50505050505050565b6001816000016000828254019250508190555050565b60008183611e749190614960565b905092915050565b60606000821415611ec4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fd8565b600082905060005b60008214611ef6578080611edf90614b4b565b915050600a82611eef91906149b6565b9150611ecc565b60008167ffffffffffffffff811115611f1257611f11614cde565b5b6040519080825280601f01601f191660200182016040528015611f445781602001600182028036833780820191505090505b5090505b60008514611fd157600182611f5d91906149e7565b9150600a85611f6c9190614bc2565b6030611f789190614960565b60f81b818381518110611f8e57611f8d614caf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fca91906149b6565b9450611f48565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614681565b60405180910390fd5b8051825114612091576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208890614761565b60405180910390fd5b600061209b61194d565b90506120bb81856000868660405180602001604052806000815250612a19565b60005b83518110156122085760008482815181106120dc576120db614caf565b5b6020026020010151905060008483815181106120fb576120fa614caf565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561219c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219390614541565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061220090614b4b565b9150506120be565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161228092919061438d565b60405180910390a46122a681856000868660405180602001604052806000815250612a21565b50505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890614721565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124d291906143c4565b60405180910390a3505050565b6000816040516020016124f29190614268565b604051602081830303815290604052805190602001209050919050565b600080600061251e8585612e71565b9150915061252b81612ef4565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259d906145e1565b60405180910390fd5b60006125b061194d565b905060006125bd85612c10565b905060006125ca85612c10565b90506125da838989858589612a19565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612671576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612668906146a1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127269190614960565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516127a39291906147dc565b60405180910390a46127b9848a8a86868a612a21565b6127c7848a8a8a8a8a612c8a565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283990614681565b60405180910390fd5b600061284c61194d565b9050600061285984612c10565b9050600061286684612c10565b905061288683876000858560405180602001604052806000815250612a19565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561291d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291490614541565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516129ea9291906147dc565b60405180910390a4612a1084886000868660405180602001604052806000815250612a21565b50505050505050565b505050505050565b505050505050565b612a488473ffffffffffffffffffffffffffffffffffffffff166130c9565b15612c08578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a8e9594939291906142a9565b602060405180830381600087803b158015612aa857600080fd5b505af1925050508015612ad957506040513d601f19601f82011682018060405250810190612ad69190613af5565b60015b612b7f57612ae5614d0d565b806308c379a01415612b425750612afa61547d565b80612b055750612b44565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b39919061443f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614481565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd906144a1565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612c2f57612c2e614cde565b5b604051908082528060200260200182016040528015612c5d5781602001602082028036833780820191505090505b5090508281600081518110612c7557612c74614caf565b5b60200260200101818152505080915050919050565b612ca98473ffffffffffffffffffffffffffffffffffffffff166130c9565b15612e69578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612cef959493929190614311565b602060405180830381600087803b158015612d0957600080fd5b505af1925050508015612d3a57506040513d601f19601f82011682018060405250810190612d379190613af5565b60015b612de057612d46614d0d565b806308c379a01415612da35750612d5b61547d565b80612d665750612da5565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9a919061443f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd790614481565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5e906144a1565b60405180910390fd5b505b505050505050565b600080604183511415612eb35760008060006020860151925060408601519150606086015160001a9050612ea7878285856130ec565b94509450505050612eed565b604083511415612ee4576000806020850151915060408501519050612ed98683836131f9565b935093505050612eed565b60006002915091505b9250929050565b60006004811115612f0857612f07614c51565b5b816004811115612f1b57612f1a614c51565b5b1415612f26576130c6565b60016004811115612f3a57612f39614c51565b5b816004811115612f4d57612f4c614c51565b5b1415612f8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8590614461565b60405180910390fd5b60026004811115612fa257612fa1614c51565b5b816004811115612fb557612fb4614c51565b5b1415612ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fed906144c1565b60405180910390fd5b6003600481111561300a57613009614c51565b5b81600481111561301d5761301c614c51565b5b141561305e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305590614581565b60405180910390fd5b60048081111561307157613070614c51565b5b81600481111561308457613083614c51565b5b14156130c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bc90614661565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156131275760006003915091506131f0565b601b8560ff161415801561313f5750601c8560ff1614155b156131515760006004915091506131f0565b60006001878787876040516000815260200160405260405161317694939291906143fa565b6020604051602081039080840390855afa158015613198573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156131e7576000600192509250506131f0565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61323c9190614960565b905061324a878288856130ec565b935093505050935093915050565b82805461326490614ae8565b90600052602060002090601f01602090048101928261328657600085556132cd565b82601f1061329f57805160ff19168380011785556132cd565b828001600101855582156132cd579182015b828111156132cc5782518255916020019190600101906132b1565b5b5090506132da91906132de565b5090565b5b808211156132f75760008160009055506001016132df565b5090565b600061330e6133098461482a565b614805565b9050808382526020820190508285602086028201111561333157613330614d39565b5b60005b858110156133615781613347888261345f565b845260208401935060208301925050600181019050613334565b5050509392505050565b600061337e61337984614856565b614805565b905080838252602082019050828560208602820111156133a1576133a0614d39565b5b60005b858110156133d157816133b788826135d6565b8452602084019350602083019250506001810190506133a4565b5050509392505050565b60006133ee6133e984614882565b614805565b90508281526020810184848401111561340a57613409614d3e565b5b613415848285614aa6565b509392505050565b600061343061342b846148b3565b614805565b90508281526020810184848401111561344c5761344b614d3e565b5b613457848285614aa6565b509392505050565b60008135905061346e81615513565b92915050565b600082601f83011261348957613488614d34565b5b81356134998482602086016132fb565b91505092915050565b60008083601f8401126134b8576134b7614d34565b5b8235905067ffffffffffffffff8111156134d5576134d4614d2f565b5b6020830191508360208202830111156134f1576134f0614d39565b5b9250929050565b600082601f83011261350d5761350c614d34565b5b813561351d84826020860161336b565b91505092915050565b6000813590506135358161552a565b92915050565b60008135905061354a81615541565b92915050565b60008135905061355f81615558565b92915050565b60008151905061357481615558565b92915050565b600082601f83011261358f5761358e614d34565b5b813561359f8482602086016133db565b91505092915050565b600082601f8301126135bd576135bc614d34565b5b81356135cd84826020860161341d565b91505092915050565b6000813590506135e58161556f565b92915050565b60006020828403121561360157613600614d48565b5b600061360f8482850161345f565b91505092915050565b6000806040838503121561362f5761362e614d48565b5b600061363d8582860161345f565b925050602061364e8582860161345f565b9150509250929050565b600080600080600060a0868803121561367457613673614d48565b5b60006136828882890161345f565b95505060206136938882890161345f565b945050604086013567ffffffffffffffff8111156136b4576136b3614d43565b5b6136c0888289016134f8565b935050606086013567ffffffffffffffff8111156136e1576136e0614d43565b5b6136ed888289016134f8565b925050608086013567ffffffffffffffff81111561370e5761370d614d43565b5b61371a8882890161357a565b9150509295509295909350565b600080600080600060a0868803121561374357613742614d48565b5b60006137518882890161345f565b95505060206137628882890161345f565b9450506040613773888289016135d6565b9350506060613784888289016135d6565b925050608086013567ffffffffffffffff8111156137a5576137a4614d43565b5b6137b18882890161357a565b9150509295509295909350565b6000806000606084860312156137d7576137d6614d48565b5b60006137e58682870161345f565b935050602084013567ffffffffffffffff81111561380657613805614d43565b5b613812868287016134f8565b925050604084013567ffffffffffffffff81111561383357613832614d43565b5b61383f868287016134f8565b9150509250925092565b600080604083850312156138605761385f614d48565b5b600061386e8582860161345f565b925050602061387f85828601613526565b9150509250929050565b6000806000606084860312156138a2576138a1614d48565b5b60006138b08682870161345f565b935050602084013567ffffffffffffffff8111156138d1576138d0614d43565b5b6138dd868287016135a8565b925050604084013567ffffffffffffffff8111156138fe576138fd614d43565b5b61390a868287016135a8565b9150509250925092565b6000806040838503121561392b5761392a614d48565b5b60006139398582860161345f565b925050602061394a858286016135d6565b9150509250929050565b60008060006060848603121561396d5761396c614d48565b5b600061397b8682870161345f565b935050602061398c868287016135d6565b925050604061399d868287016135d6565b9150509250925092565b600080604083850312156139be576139bd614d48565b5b600083013567ffffffffffffffff8111156139dc576139db614d43565b5b6139e885828601613474565b925050602083013567ffffffffffffffff811115613a0957613a08614d43565b5b613a15858286016134f8565b9150509250929050565b60008060208385031215613a3657613a35614d48565b5b600083013567ffffffffffffffff811115613a5457613a53614d43565b5b613a60858286016134a2565b92509250509250929050565b60008060408385031215613a8357613a82614d48565b5b6000613a918582860161353b565b925050602083013567ffffffffffffffff811115613ab257613ab1614d43565b5b613abe8582860161357a565b9150509250929050565b600060208284031215613ade57613add614d48565b5b6000613aec84828501613550565b91505092915050565b600060208284031215613b0b57613b0a614d48565b5b6000613b1984828501613565565b91505092915050565b600060208284031215613b3857613b37614d48565b5b600082013567ffffffffffffffff811115613b5657613b55614d43565b5b613b62848285016135a8565b91505092915050565b60008060008060608587031215613b8557613b84614d48565b5b600085013567ffffffffffffffff811115613ba357613ba2614d43565b5b613baf878288016135a8565b945050602085013567ffffffffffffffff811115613bd057613bcf614d43565b5b613bdc878288016134a2565b9350935050604085013567ffffffffffffffff811115613bff57613bfe614d43565b5b613c0b8782880161357a565b91505092959194509250565b600060208284031215613c2d57613c2c614d48565b5b6000613c3b848285016135d6565b91505092915050565b6000613c5083836141af565b60208301905092915050565b613c6581614a1b565b82525050565b613c7c613c7782614a1b565b614b94565b82525050565b6000613c8d826148f4565b613c978185614922565b9350613ca2836148e4565b8060005b83811015613cd3578151613cba8882613c44565b9750613cc583614915565b925050600181019050613ca6565b5085935050505092915050565b613ce981614a2d565b82525050565b613cf881614a39565b82525050565b613d0f613d0a82614a39565b614ba6565b82525050565b6000613d20826148ff565b613d2a8185614933565b9350613d3a818560208601614ab5565b613d4381614d4d565b840191505092915050565b6000613d598261490a565b613d638185614944565b9350613d73818560208601614ab5565b613d7c81614d4d565b840191505092915050565b6000613d928261490a565b613d9c8185614955565b9350613dac818560208601614ab5565b80840191505092915050565b6000613dc5601883614944565b9150613dd082614d78565b602082019050919050565b6000613de8603483614944565b9150613df382614da1565b604082019050919050565b6000613e0b602883614944565b9150613e1682614df0565b604082019050919050565b6000613e2e601f83614944565b9150613e3982614e3f565b602082019050919050565b6000613e51601c83614955565b9150613e5c82614e68565b601c82019050919050565b6000613e74602b83614944565b9150613e7f82614e91565b604082019050919050565b6000613e97600b83614944565b9150613ea282614ee0565b602082019050919050565b6000613eba602683614944565b9150613ec582614f09565b604082019050919050565b6000613edd602483614944565b9150613ee882614f58565b604082019050919050565b6000613f00602983614944565b9150613f0b82614fa7565b604082019050919050565b6000613f23602283614944565b9150613f2e82614ff6565b604082019050919050565b6000613f46601083614944565b9150613f5182615045565b602082019050919050565b6000613f69601b83614944565b9150613f748261506e565b602082019050919050565b6000613f8c602583614944565b9150613f9782615097565b604082019050919050565b6000613faf603283614944565b9150613fba826150e6565b604082019050919050565b6000613fd2602083614944565b9150613fdd82615135565b602082019050919050565b6000613ff5601183614944565b91506140008261515e565b602082019050919050565b6000614018602283614944565b915061402382615187565b604082019050919050565b600061403b602383614944565b9150614046826151d6565b604082019050919050565b600061405e602a83614944565b915061406982615225565b604082019050919050565b6000614081601183614944565b915061408c82615274565b602082019050919050565b60006140a4602083614944565b91506140af8261529d565b602082019050919050565b60006140c7600f83614944565b91506140d2826152c6565b602082019050919050565b60006140ea600183614955565b91506140f5826152ef565b600182019050919050565b600061410d602983614944565b915061411882615318565b604082019050919050565b6000614130602983614944565b915061413b82615367565b604082019050919050565b6000614153602883614944565b915061415e826153b6565b604082019050919050565b6000614176602183614944565b915061418182615405565b604082019050919050565b6000614199601f83614944565b91506141a482615454565b602082019050919050565b6141b881614a8f565b82525050565b6141c781614a8f565b82525050565b6141d681614a99565b82525050565b60006141e88287613c6b565b6014820191506141f88286613d87565b91506142048285613d87565b91506142108284613c6b565b60148201915081905095945050505050565b600061422e8284613d87565b915081905092915050565b60006142458285613d87565b9150614250826140dd565b915061425c8284613d87565b91508190509392505050565b600061427382613e44565b915061427f8284613cfe565b60208201915081905092915050565b60006020820190506142a36000830184613c5c565b92915050565b600060a0820190506142be6000830188613c5c565b6142cb6020830187613c5c565b81810360408301526142dd8186613c82565b905081810360608301526142f18185613c82565b905081810360808301526143058184613d15565b90509695505050505050565b600060a0820190506143266000830188613c5c565b6143336020830187613c5c565b61434060408301866141be565b61434d60608301856141be565b818103608083015261435f8184613d15565b90509695505050505050565b600060208201905081810360008301526143858184613c82565b905092915050565b600060408201905081810360008301526143a78185613c82565b905081810360208301526143bb8184613c82565b90509392505050565b60006020820190506143d96000830184613ce0565b92915050565b60006020820190506143f46000830184613cef565b92915050565b600060808201905061440f6000830187613cef565b61441c60208301866141cd565b6144296040830185613cef565b6144366060830184613cef565b95945050505050565b600060208201905081810360008301526144598184613d4e565b905092915050565b6000602082019050818103600083015261447a81613db8565b9050919050565b6000602082019050818103600083015261449a81613ddb565b9050919050565b600060208201905081810360008301526144ba81613dfe565b9050919050565b600060208201905081810360008301526144da81613e21565b9050919050565b600060208201905081810360008301526144fa81613e67565b9050919050565b6000602082019050818103600083015261451a81613e8a565b9050919050565b6000602082019050818103600083015261453a81613ead565b9050919050565b6000602082019050818103600083015261455a81613ed0565b9050919050565b6000602082019050818103600083015261457a81613ef3565b9050919050565b6000602082019050818103600083015261459a81613f16565b9050919050565b600060208201905081810360008301526145ba81613f39565b9050919050565b600060208201905081810360008301526145da81613f5c565b9050919050565b600060208201905081810360008301526145fa81613f7f565b9050919050565b6000602082019050818103600083015261461a81613fa2565b9050919050565b6000602082019050818103600083015261463a81613fc5565b9050919050565b6000602082019050818103600083015261465a81613fe8565b9050919050565b6000602082019050818103600083015261467a8161400b565b9050919050565b6000602082019050818103600083015261469a8161402e565b9050919050565b600060208201905081810360008301526146ba81614051565b9050919050565b600060208201905081810360008301526146da81614074565b9050919050565b600060208201905081810360008301526146fa81614097565b9050919050565b6000602082019050818103600083015261471a816140ba565b9050919050565b6000602082019050818103600083015261473a81614100565b9050919050565b6000602082019050818103600083015261475a81614123565b9050919050565b6000602082019050818103600083015261477a81614146565b9050919050565b6000602082019050818103600083015261479a81614169565b9050919050565b600060208201905081810360008301526147ba8161418c565b9050919050565b60006020820190506147d660008301846141be565b92915050565b60006040820190506147f160008301856141be565b6147fe60208301846141be565b9392505050565b600061480f614820565b905061481b8282614b1a565b919050565b6000604051905090565b600067ffffffffffffffff82111561484557614844614cde565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487157614870614cde565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561489d5761489c614cde565b5b6148a682614d4d565b9050602081019050919050565b600067ffffffffffffffff8211156148ce576148cd614cde565b5b6148d782614d4d565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061496b82614a8f565b915061497683614a8f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149ab576149aa614bf3565b5b828201905092915050565b60006149c182614a8f565b91506149cc83614a8f565b9250826149dc576149db614c22565b5b828204905092915050565b60006149f282614a8f565b91506149fd83614a8f565b925082821015614a1057614a0f614bf3565b5b828203905092915050565b6000614a2682614a6f565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614ad3578082015181840152602081019050614ab8565b83811115614ae2576000848401525b50505050565b60006002820490506001821680614b0057607f821691505b60208210811415614b1457614b13614c80565b5b50919050565b614b2382614d4d565b810181811067ffffffffffffffff82111715614b4257614b41614cde565b5b80604052505050565b6000614b5682614a8f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8957614b88614bf3565b5b600182019050919050565b6000614b9f82614bb0565b9050919050565b6000819050919050565b6000614bbb82614d5e565b9050919050565b6000614bcd82614a8f565b9150614bd883614a8f565b925082614be857614be7614c22565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614d2c5760046000803e614d29600051614d6b565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4861736820726575736564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f5369676e6174757265206e6f742061757468656e746963617465640000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4d7573742062652065787465726e616c6c79206f776e6564206163636f756e74600082015250565b7f436c61696d206973206e6f74206f70656e000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416c726561647920436c61696d65640000000000000000000000000000000000600082015250565b7f2d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600060443d101561548d57615510565b615495614820565b60043d036004823e80513d602482011167ffffffffffffffff821117156154bd575050615510565b808201805167ffffffffffffffff8111156154db5750505050615510565b80602083010160043d0385018111156154f8575050505050615510565b61550782602001850186614b1a565b82955050505050505b90565b61551c81614a1b565b811461552757600080fd5b50565b61553381614a2d565b811461553e57600080fd5b50565b61554a81614a39565b811461555557600080fd5b50565b61556181614a43565b811461556c57600080fd5b50565b61557881614a8f565b811461558357600080fd5b5056fea2646970667358221220061d2ba14efff1b4df3294ffe11168cf75db0a215bc396f6e269069e472fb86a64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002150726f6261626c79204e6f7468696e67206279204368696e6143686963204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002504e000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101d95760003560e01c80635c975abb11610104578063a22cb465116100a2578063e985e9c511610071578063e985e9c514610544578063f242432a14610574578063f2fde38b14610590578063f5298aca146105ac576101d9565b8063a22cb465146104be578063c9d70d40146104da578063dd8d74d8146104f8578063e5d089ff14610528576101d9565b8063715018a6116100de578063715018a61461044857806381fe9e2d146104525780638da5cb5b1461048257806395d89b41146104a0576101d9565b80635c975abb146103de5780636302b9c8146103fc5780636b20c4541461042c576101d9565b8063194cee8e1161017c57806332cb6b0c1161014b57806332cb6b0c14610358578063431e394e146103765780634e1273f4146103925780635437988d146103c2576101d9565b8063194cee8e146102d057806324fd2652146103005780632b7ac3f31461031e5780632eb2c2d61461033c576101d9565b806306fdde03116101b857806306fdde031461025a5780630e89341c1461027857806310a956b3146102a857806318160ddd146102b2576101d9565b8062fdd58e146101de57806301ffc9a71461020e57806302fe53051461023e575b600080fd5b6101f860048036038101906101f39190613914565b6105c8565b60405161020591906147c1565b60405180910390f35b61022860048036038101906102239190613ac8565b610691565b60405161023591906143c4565b60405180910390f35b61025860048036038101906102539190613b22565b610773565b005b6102626107fb565b60405161026f919061443f565b60405180910390f35b610292600480360381019061028d9190613c17565b610889565b60405161029f919061443f565b60405180910390f35b6102b061091d565b005b6102ba6109c5565b6040516102c791906147c1565b60405180910390f35b6102ea60048036038101906102e59190613889565b6109cb565b6040516102f791906143df565b60405180910390f35b610308610a2a565b60405161031591906143c4565b60405180910390f35b610326610a3d565b604051610333919061428e565b60405180910390f35b61035660048036038101906103519190613658565b610a63565b005b610360610b04565b60405161036d91906147c1565b60405180910390f35b610390600480360381019061038b9190613b6b565b610b0a565b005b6103ac60048036038101906103a791906139a7565b610f5c565b6040516103b9919061436b565b60405180910390f35b6103dc60048036038101906103d791906135eb565b611075565b005b6103e6611135565b6040516103f391906143c4565b60405180910390f35b61041660048036038101906104119190613a1f565b61114c565b604051610423919061443f565b60405180910390f35b610446600480360381019061044191906137be565b6111f4565b005b610450611291565b005b61046c60048036038101906104679190613c17565b611319565b60405161047991906143c4565b60405180910390f35b61048a611343565b604051610497919061428e565b60405180910390f35b6104a861136d565b6040516104b5919061443f565b60405180910390f35b6104d860048036038101906104d39190613849565b6113fb565b005b6104e2611411565b6040516104ef919061436b565b60405180910390f35b610512600480360381019061050d9190613a6c565b611469565b60405161051f91906143c4565b60405180910390f35b610542600480360381019061053d9190613c17565b6114de565b005b61055e60048036038101906105599190613618565b611619565b60405161056b91906143c4565b60405180910390f35b61058e60048036038101906105899190613727565b6116ad565b005b6105aa60048036038101906105a591906135eb565b61174e565b005b6105c660048036038101906105c19190613954565b611846565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610639576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610630906144e1565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076c575061076b826118e3565b5b9050919050565b61077b61194d565b73ffffffffffffffffffffffffffffffffffffffff16610799611343565b73ffffffffffffffffffffffffffffffffffffffff16146107ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e6906146e1565b60405180910390fd5b6107f881611955565b50565b6008805461080890614ae8565b80601f016020809104026020016040519081016040528092919081815260200182805461083490614ae8565b80156108815780601f1061085657610100808354040283529160200191610881565b820191906000526020600020905b81548152906001019060200180831161086457829003601f168201915b505050505081565b60606002805461089890614ae8565b80601f01602080910402602001604051908101604052809291908181526020018280546108c490614ae8565b80156109115780601f106108e657610100808354040283529160200191610911565b820191906000526020600020905b8154815290600101906020018083116108f457829003601f168201915b50505050509050919050565b61092561194d565b73ffffffffffffffffffffffffffffffffffffffff16610943611343565b73ffffffffffffffffffffffffffffffffffffffff1614610999576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610990906146e1565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b600a5481565b600080848484600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051602001610a0794939291906141dc565b604051602081830303815290604052805190602001209050809150509392505050565b600c60009054906101000a900460ff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a6b61194d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ab15750610ab085610aab61194d565b611619565b5b610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae790614601565b60405180910390fd5b610afd858585858561196f565b5050505050565b610a2881565b60026007541415610b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b47906147a1565b60405180910390fd5b6002600781905550610b60611135565b15610ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b97906145a1565b60405180910390fd5b600c60009054906101000a900460ff16610bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be690614641565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490614621565b60405180910390fd5b600d84604051610c6d9190614222565b908152602001604051809103902060009054906101000a900460ff1615610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc090614501565b60405180910390fd5b6000610cd5848461114c565b90506000610ceb610ce461194d565b87846109cb565b9050610cf78184611469565b610d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2d906145c1565b60405180910390fd5b6001600d87604051610d489190614222565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506000858590509050610a2881600a54610d869190614960565b1115610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe906146c1565b60405180910390fd5b6000805b82811015610ef057600e6000898984818110610dea57610de9614caf565b5b90506020020135815260200190815260200160002060009054906101000a900460ff16610edd576001600e60008a8a85818110610e2a57610e29614caf565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600f888883818110610e6b57610e6a614caf565b5b905060200201359080600181540180825580915050600190039060005260206000200160009091909190915055600182610ea59190614960565b91506000610eb3600b611c91565b9050610ed13382600160405180602001604052806000815250611c9f565b610edb600b611e50565b505b8080610ee890614b4b565b915050610dcb565b5060008111610f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2b90614701565b60405180910390fd5b610f4981600a54611e6690919063ffffffff16565b5050505050600160078190555050505050565b60608151835114610fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9990614741565b60405180910390fd5b6000835167ffffffffffffffff811115610fbf57610fbe614cde565b5b604051908082528060200260200182016040528015610fed5781602001602082028036833780820191505090505b50905060005b845181101561106a5761103a85828151811061101257611011614caf565b5b602002602001015185838151811061102d5761102c614caf565b5b60200260200101516105c8565b82828151811061104d5761104c614caf565b5b6020026020010181815250508061106390614b4b565b9050610ff3565b508091505092915050565b61107d61194d565b73ffffffffffffffffffffffffffffffffffffffff1661109b611343565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e8906146e1565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600660009054906101000a900460ff16905090565b60608060005b848490508110156111e9576000825114156111905761118985858381811061117d5761117c614caf565b5b90506020020135611e7c565b91506111d6565b816111b38686848181106111a7576111a6614caf565b5b90506020020135611e7c565b6040516020016111c4929190614239565b60405160208183030381529060405291505b80806111e190614b4b565b915050611152565b508091505092915050565b6111fc61194d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061124257506112418361123c61194d565b611619565b5b611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890614561565b60405180910390fd5b61128c838383611fdd565b505050565b61129961194d565b73ffffffffffffffffffffffffffffffffffffffff166112b7611343565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611304906146e1565b60405180910390fd5b61131760006122ac565b565b6000600e600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6009805461137a90614ae8565b80601f01602080910402602001604051908101604052809291908181526020018280546113a690614ae8565b80156113f35780601f106113c8576101008083540402835291602001916113f3565b820191906000526020600020905b8154815290600101906020018083116113d657829003601f168201915b505050505081565b61140d61140661194d565b8383612372565b5050565b6060600f80548060200260200160405190810160405280929190818152602001828054801561145f57602002820191906000526020600020905b81548152602001906001019080831161144b575b5050505050905090565b600061148682611478856124df565b61250f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6114e661194d565b73ffffffffffffffffffffffffffffffffffffffff16611504611343565b73ffffffffffffffffffffffffffffffffffffffff161461155a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611551906146e1565b60405180910390fd5b610a2881600a5461156b9190614960565b11156115ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a3906146c1565b60405180910390fd5b60005b818110156115ff5760006115c3600b611c91565b90506115e13382600160405180602001604052806000815250611c9f565b6115eb600b611e50565b5080806115f790614b4b565b9150506115af565b5061161581600a54611e6690919063ffffffff16565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116b561194d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806116fb57506116fa856116f561194d565b611619565b5b61173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190614561565b60405180910390fd5b6117478585858585612536565b5050505050565b61175661194d565b73ffffffffffffffffffffffffffffffffffffffff16611774611343565b73ffffffffffffffffffffffffffffffffffffffff16146117ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c1906146e1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183190614521565b60405180910390fd5b611843816122ac565b50565b61184e61194d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061189457506118938361188e61194d565b611619565b5b6118d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ca90614561565b60405180910390fd5b6118de8383836127d2565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b806002908051906020019061196b929190613258565b5050565b81518351146119b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119aa90614761565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a906145e1565b60405180910390fd5b6000611a2d61194d565b9050611a3d818787878787612a19565b60005b8451811015611bee576000858281518110611a5e57611a5d614caf565b5b602002602001015190506000858381518110611a7d57611a7c614caf565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906146a1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bd39190614960565b9250508190555050505080611be790614b4b565b9050611a40565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611c6592919061438d565b60405180910390a4611c7b818787878787612a21565b611c89818787878787612a29565b505050505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0690614781565b60405180910390fd5b6000611d1961194d565b90506000611d2685612c10565b90506000611d3385612c10565b9050611d4483600089858589612a19565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611da39190614960565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611e219291906147dc565b60405180910390a4611e3883600089858589612a21565b611e4783600089898989612c8a565b50505050505050565b6001816000016000828254019250508190555050565b60008183611e749190614960565b905092915050565b60606000821415611ec4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611fd8565b600082905060005b60008214611ef6578080611edf90614b4b565b915050600a82611eef91906149b6565b9150611ecc565b60008167ffffffffffffffff811115611f1257611f11614cde565b5b6040519080825280601f01601f191660200182016040528015611f445781602001600182028036833780820191505090505b5090505b60008514611fd157600182611f5d91906149e7565b9150600a85611f6c9190614bc2565b6030611f789190614960565b60f81b818381518110611f8e57611f8d614caf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611fca91906149b6565b9450611f48565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614681565b60405180910390fd5b8051825114612091576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208890614761565b60405180910390fd5b600061209b61194d565b90506120bb81856000868660405180602001604052806000815250612a19565b60005b83518110156122085760008482815181106120dc576120db614caf565b5b6020026020010151905060008483815181106120fb576120fa614caf565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561219c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219390614541565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061220090614b4b565b9150506120be565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161228092919061438d565b60405180910390a46122a681856000868660405180602001604052806000815250612a21565b50505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890614721565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124d291906143c4565b60405180910390a3505050565b6000816040516020016124f29190614268565b604051602081830303815290604052805190602001209050919050565b600080600061251e8585612e71565b9150915061252b81612ef4565b819250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259d906145e1565b60405180910390fd5b60006125b061194d565b905060006125bd85612c10565b905060006125ca85612c10565b90506125da838989858589612a19565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612671576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612668906146a1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127269190614960565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516127a39291906147dc565b60405180910390a46127b9848a8a86868a612a21565b6127c7848a8a8a8a8a612c8a565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283990614681565b60405180910390fd5b600061284c61194d565b9050600061285984612c10565b9050600061286684612c10565b905061288683876000858560405180602001604052806000815250612a19565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561291d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291490614541565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516129ea9291906147dc565b60405180910390a4612a1084886000868660405180602001604052806000815250612a21565b50505050505050565b505050505050565b505050505050565b612a488473ffffffffffffffffffffffffffffffffffffffff166130c9565b15612c08578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612a8e9594939291906142a9565b602060405180830381600087803b158015612aa857600080fd5b505af1925050508015612ad957506040513d601f19601f82011682018060405250810190612ad69190613af5565b60015b612b7f57612ae5614d0d565b806308c379a01415612b425750612afa61547d565b80612b055750612b44565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b39919061443f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614481565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd906144a1565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115612c2f57612c2e614cde565b5b604051908082528060200260200182016040528015612c5d5781602001602082028036833780820191505090505b5090508281600081518110612c7557612c74614caf565b5b60200260200101818152505080915050919050565b612ca98473ffffffffffffffffffffffffffffffffffffffff166130c9565b15612e69578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612cef959493929190614311565b602060405180830381600087803b158015612d0957600080fd5b505af1925050508015612d3a57506040513d601f19601f82011682018060405250810190612d379190613af5565b60015b612de057612d46614d0d565b806308c379a01415612da35750612d5b61547d565b80612d665750612da5565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9a919061443f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd790614481565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5e906144a1565b60405180910390fd5b505b505050505050565b600080604183511415612eb35760008060006020860151925060408601519150606086015160001a9050612ea7878285856130ec565b94509450505050612eed565b604083511415612ee4576000806020850151915060408501519050612ed98683836131f9565b935093505050612eed565b60006002915091505b9250929050565b60006004811115612f0857612f07614c51565b5b816004811115612f1b57612f1a614c51565b5b1415612f26576130c6565b60016004811115612f3a57612f39614c51565b5b816004811115612f4d57612f4c614c51565b5b1415612f8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8590614461565b60405180910390fd5b60026004811115612fa257612fa1614c51565b5b816004811115612fb557612fb4614c51565b5b1415612ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fed906144c1565b60405180910390fd5b6003600481111561300a57613009614c51565b5b81600481111561301d5761301c614c51565b5b141561305e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305590614581565b60405180910390fd5b60048081111561307157613070614c51565b5b81600481111561308457613083614c51565b5b14156130c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bc90614661565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156131275760006003915091506131f0565b601b8560ff161415801561313f5750601c8560ff1614155b156131515760006004915091506131f0565b60006001878787876040516000815260200160405260405161317694939291906143fa565b6020604051602081039080840390855afa158015613198573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156131e7576000600192509250506131f0565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61323c9190614960565b905061324a878288856130ec565b935093505050935093915050565b82805461326490614ae8565b90600052602060002090601f01602090048101928261328657600085556132cd565b82601f1061329f57805160ff19168380011785556132cd565b828001600101855582156132cd579182015b828111156132cc5782518255916020019190600101906132b1565b5b5090506132da91906132de565b5090565b5b808211156132f75760008160009055506001016132df565b5090565b600061330e6133098461482a565b614805565b9050808382526020820190508285602086028201111561333157613330614d39565b5b60005b858110156133615781613347888261345f565b845260208401935060208301925050600181019050613334565b5050509392505050565b600061337e61337984614856565b614805565b905080838252602082019050828560208602820111156133a1576133a0614d39565b5b60005b858110156133d157816133b788826135d6565b8452602084019350602083019250506001810190506133a4565b5050509392505050565b60006133ee6133e984614882565b614805565b90508281526020810184848401111561340a57613409614d3e565b5b613415848285614aa6565b509392505050565b600061343061342b846148b3565b614805565b90508281526020810184848401111561344c5761344b614d3e565b5b613457848285614aa6565b509392505050565b60008135905061346e81615513565b92915050565b600082601f83011261348957613488614d34565b5b81356134998482602086016132fb565b91505092915050565b60008083601f8401126134b8576134b7614d34565b5b8235905067ffffffffffffffff8111156134d5576134d4614d2f565b5b6020830191508360208202830111156134f1576134f0614d39565b5b9250929050565b600082601f83011261350d5761350c614d34565b5b813561351d84826020860161336b565b91505092915050565b6000813590506135358161552a565b92915050565b60008135905061354a81615541565b92915050565b60008135905061355f81615558565b92915050565b60008151905061357481615558565b92915050565b600082601f83011261358f5761358e614d34565b5b813561359f8482602086016133db565b91505092915050565b600082601f8301126135bd576135bc614d34565b5b81356135cd84826020860161341d565b91505092915050565b6000813590506135e58161556f565b92915050565b60006020828403121561360157613600614d48565b5b600061360f8482850161345f565b91505092915050565b6000806040838503121561362f5761362e614d48565b5b600061363d8582860161345f565b925050602061364e8582860161345f565b9150509250929050565b600080600080600060a0868803121561367457613673614d48565b5b60006136828882890161345f565b95505060206136938882890161345f565b945050604086013567ffffffffffffffff8111156136b4576136b3614d43565b5b6136c0888289016134f8565b935050606086013567ffffffffffffffff8111156136e1576136e0614d43565b5b6136ed888289016134f8565b925050608086013567ffffffffffffffff81111561370e5761370d614d43565b5b61371a8882890161357a565b9150509295509295909350565b600080600080600060a0868803121561374357613742614d48565b5b60006137518882890161345f565b95505060206137628882890161345f565b9450506040613773888289016135d6565b9350506060613784888289016135d6565b925050608086013567ffffffffffffffff8111156137a5576137a4614d43565b5b6137b18882890161357a565b9150509295509295909350565b6000806000606084860312156137d7576137d6614d48565b5b60006137e58682870161345f565b935050602084013567ffffffffffffffff81111561380657613805614d43565b5b613812868287016134f8565b925050604084013567ffffffffffffffff81111561383357613832614d43565b5b61383f868287016134f8565b9150509250925092565b600080604083850312156138605761385f614d48565b5b600061386e8582860161345f565b925050602061387f85828601613526565b9150509250929050565b6000806000606084860312156138a2576138a1614d48565b5b60006138b08682870161345f565b935050602084013567ffffffffffffffff8111156138d1576138d0614d43565b5b6138dd868287016135a8565b925050604084013567ffffffffffffffff8111156138fe576138fd614d43565b5b61390a868287016135a8565b9150509250925092565b6000806040838503121561392b5761392a614d48565b5b60006139398582860161345f565b925050602061394a858286016135d6565b9150509250929050565b60008060006060848603121561396d5761396c614d48565b5b600061397b8682870161345f565b935050602061398c868287016135d6565b925050604061399d868287016135d6565b9150509250925092565b600080604083850312156139be576139bd614d48565b5b600083013567ffffffffffffffff8111156139dc576139db614d43565b5b6139e885828601613474565b925050602083013567ffffffffffffffff811115613a0957613a08614d43565b5b613a15858286016134f8565b9150509250929050565b60008060208385031215613a3657613a35614d48565b5b600083013567ffffffffffffffff811115613a5457613a53614d43565b5b613a60858286016134a2565b92509250509250929050565b60008060408385031215613a8357613a82614d48565b5b6000613a918582860161353b565b925050602083013567ffffffffffffffff811115613ab257613ab1614d43565b5b613abe8582860161357a565b9150509250929050565b600060208284031215613ade57613add614d48565b5b6000613aec84828501613550565b91505092915050565b600060208284031215613b0b57613b0a614d48565b5b6000613b1984828501613565565b91505092915050565b600060208284031215613b3857613b37614d48565b5b600082013567ffffffffffffffff811115613b5657613b55614d43565b5b613b62848285016135a8565b91505092915050565b60008060008060608587031215613b8557613b84614d48565b5b600085013567ffffffffffffffff811115613ba357613ba2614d43565b5b613baf878288016135a8565b945050602085013567ffffffffffffffff811115613bd057613bcf614d43565b5b613bdc878288016134a2565b9350935050604085013567ffffffffffffffff811115613bff57613bfe614d43565b5b613c0b8782880161357a565b91505092959194509250565b600060208284031215613c2d57613c2c614d48565b5b6000613c3b848285016135d6565b91505092915050565b6000613c5083836141af565b60208301905092915050565b613c6581614a1b565b82525050565b613c7c613c7782614a1b565b614b94565b82525050565b6000613c8d826148f4565b613c978185614922565b9350613ca2836148e4565b8060005b83811015613cd3578151613cba8882613c44565b9750613cc583614915565b925050600181019050613ca6565b5085935050505092915050565b613ce981614a2d565b82525050565b613cf881614a39565b82525050565b613d0f613d0a82614a39565b614ba6565b82525050565b6000613d20826148ff565b613d2a8185614933565b9350613d3a818560208601614ab5565b613d4381614d4d565b840191505092915050565b6000613d598261490a565b613d638185614944565b9350613d73818560208601614ab5565b613d7c81614d4d565b840191505092915050565b6000613d928261490a565b613d9c8185614955565b9350613dac818560208601614ab5565b80840191505092915050565b6000613dc5601883614944565b9150613dd082614d78565b602082019050919050565b6000613de8603483614944565b9150613df382614da1565b604082019050919050565b6000613e0b602883614944565b9150613e1682614df0565b604082019050919050565b6000613e2e601f83614944565b9150613e3982614e3f565b602082019050919050565b6000613e51601c83614955565b9150613e5c82614e68565b601c82019050919050565b6000613e74602b83614944565b9150613e7f82614e91565b604082019050919050565b6000613e97600b83614944565b9150613ea282614ee0565b602082019050919050565b6000613eba602683614944565b9150613ec582614f09565b604082019050919050565b6000613edd602483614944565b9150613ee882614f58565b604082019050919050565b6000613f00602983614944565b9150613f0b82614fa7565b604082019050919050565b6000613f23602283614944565b9150613f2e82614ff6565b604082019050919050565b6000613f46601083614944565b9150613f5182615045565b602082019050919050565b6000613f69601b83614944565b9150613f748261506e565b602082019050919050565b6000613f8c602583614944565b9150613f9782615097565b604082019050919050565b6000613faf603283614944565b9150613fba826150e6565b604082019050919050565b6000613fd2602083614944565b9150613fdd82615135565b602082019050919050565b6000613ff5601183614944565b91506140008261515e565b602082019050919050565b6000614018602283614944565b915061402382615187565b604082019050919050565b600061403b602383614944565b9150614046826151d6565b604082019050919050565b600061405e602a83614944565b915061406982615225565b604082019050919050565b6000614081601183614944565b915061408c82615274565b602082019050919050565b60006140a4602083614944565b91506140af8261529d565b602082019050919050565b60006140c7600f83614944565b91506140d2826152c6565b602082019050919050565b60006140ea600183614955565b91506140f5826152ef565b600182019050919050565b600061410d602983614944565b915061411882615318565b604082019050919050565b6000614130602983614944565b915061413b82615367565b604082019050919050565b6000614153602883614944565b915061415e826153b6565b604082019050919050565b6000614176602183614944565b915061418182615405565b604082019050919050565b6000614199601f83614944565b91506141a482615454565b602082019050919050565b6141b881614a8f565b82525050565b6141c781614a8f565b82525050565b6141d681614a99565b82525050565b60006141e88287613c6b565b6014820191506141f88286613d87565b91506142048285613d87565b91506142108284613c6b565b60148201915081905095945050505050565b600061422e8284613d87565b915081905092915050565b60006142458285613d87565b9150614250826140dd565b915061425c8284613d87565b91508190509392505050565b600061427382613e44565b915061427f8284613cfe565b60208201915081905092915050565b60006020820190506142a36000830184613c5c565b92915050565b600060a0820190506142be6000830188613c5c565b6142cb6020830187613c5c565b81810360408301526142dd8186613c82565b905081810360608301526142f18185613c82565b905081810360808301526143058184613d15565b90509695505050505050565b600060a0820190506143266000830188613c5c565b6143336020830187613c5c565b61434060408301866141be565b61434d60608301856141be565b818103608083015261435f8184613d15565b90509695505050505050565b600060208201905081810360008301526143858184613c82565b905092915050565b600060408201905081810360008301526143a78185613c82565b905081810360208301526143bb8184613c82565b90509392505050565b60006020820190506143d96000830184613ce0565b92915050565b60006020820190506143f46000830184613cef565b92915050565b600060808201905061440f6000830187613cef565b61441c60208301866141cd565b6144296040830185613cef565b6144366060830184613cef565b95945050505050565b600060208201905081810360008301526144598184613d4e565b905092915050565b6000602082019050818103600083015261447a81613db8565b9050919050565b6000602082019050818103600083015261449a81613ddb565b9050919050565b600060208201905081810360008301526144ba81613dfe565b9050919050565b600060208201905081810360008301526144da81613e21565b9050919050565b600060208201905081810360008301526144fa81613e67565b9050919050565b6000602082019050818103600083015261451a81613e8a565b9050919050565b6000602082019050818103600083015261453a81613ead565b9050919050565b6000602082019050818103600083015261455a81613ed0565b9050919050565b6000602082019050818103600083015261457a81613ef3565b9050919050565b6000602082019050818103600083015261459a81613f16565b9050919050565b600060208201905081810360008301526145ba81613f39565b9050919050565b600060208201905081810360008301526145da81613f5c565b9050919050565b600060208201905081810360008301526145fa81613f7f565b9050919050565b6000602082019050818103600083015261461a81613fa2565b9050919050565b6000602082019050818103600083015261463a81613fc5565b9050919050565b6000602082019050818103600083015261465a81613fe8565b9050919050565b6000602082019050818103600083015261467a8161400b565b9050919050565b6000602082019050818103600083015261469a8161402e565b9050919050565b600060208201905081810360008301526146ba81614051565b9050919050565b600060208201905081810360008301526146da81614074565b9050919050565b600060208201905081810360008301526146fa81614097565b9050919050565b6000602082019050818103600083015261471a816140ba565b9050919050565b6000602082019050818103600083015261473a81614100565b9050919050565b6000602082019050818103600083015261475a81614123565b9050919050565b6000602082019050818103600083015261477a81614146565b9050919050565b6000602082019050818103600083015261479a81614169565b9050919050565b600060208201905081810360008301526147ba8161418c565b9050919050565b60006020820190506147d660008301846141be565b92915050565b60006040820190506147f160008301856141be565b6147fe60208301846141be565b9392505050565b600061480f614820565b905061481b8282614b1a565b919050565b6000604051905090565b600067ffffffffffffffff82111561484557614844614cde565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487157614870614cde565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561489d5761489c614cde565b5b6148a682614d4d565b9050602081019050919050565b600067ffffffffffffffff8211156148ce576148cd614cde565b5b6148d782614d4d565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061496b82614a8f565b915061497683614a8f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149ab576149aa614bf3565b5b828201905092915050565b60006149c182614a8f565b91506149cc83614a8f565b9250826149dc576149db614c22565b5b828204905092915050565b60006149f282614a8f565b91506149fd83614a8f565b925082821015614a1057614a0f614bf3565b5b828203905092915050565b6000614a2682614a6f565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614ad3578082015181840152602081019050614ab8565b83811115614ae2576000848401525b50505050565b60006002820490506001821680614b0057607f821691505b60208210811415614b1457614b13614c80565b5b50919050565b614b2382614d4d565b810181811067ffffffffffffffff82111715614b4257614b41614cde565b5b80604052505050565b6000614b5682614a8f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8957614b88614bf3565b5b600182019050919050565b6000614b9f82614bb0565b9050919050565b6000819050919050565b6000614bbb82614d5e565b9050919050565b6000614bcd82614a8f565b9150614bd883614a8f565b925082614be857614be7614c22565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614d2c5760046000803e614d29600051614d6b565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4861736820726575736564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f5369676e6174757265206e6f742061757468656e746963617465640000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4d7573742062652065787465726e616c6c79206f776e6564206163636f756e74600082015250565b7f436c61696d206973206e6f74206f70656e000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416c726561647920436c61696d65640000000000000000000000000000000000600082015250565b7f2d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600060443d101561548d57615510565b615495614820565b60043d036004823e80513d602482011167ffffffffffffffff821117156154bd575050615510565b808201805167ffffffffffffffff8111156154db5750505050615510565b80602083010160043d0385018111156154f8575050505050615510565b61550782602001850186614b1a565b82955050505050505b90565b61551c81614a1b565b811461552757600080fd5b50565b61553381614a2d565b811461553e57600080fd5b50565b61554a81614a39565b811461555557600080fd5b50565b61556181614a43565b811461556c57600080fd5b50565b61557881614a8f565b811461558357600080fd5b5056fea2646970667358221220061d2ba14efff1b4df3294ffe11168cf75db0a215bc396f6e269069e472fb86a64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002150726f6261626c79204e6f7468696e67206279204368696e6143686963204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002504e000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Probably Nothing by ChinaChic NFT
Arg [1] : _symbol (string): PN

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [3] : 50726f6261626c79204e6f7468696e67206279204368696e6143686963204e46
Arg [4] : 5400000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 504e000000000000000000000000000000000000000000000000000000000000


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.