ETH Price: $3,811.26 (+6.66%)

Token

Equinox Collection (FAE)
 

Overview

Max Total Supply

1,760 FAE

Holders

786

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
mswap.eth
Balance
2 FAE
0x0c9bd532b479c26613b2f9d9d4af4c8c6c29ac34
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Equinox collection consists of 12 unique NFTs issued monthly over a year, with the first to be released on the Spring Equinox.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EquinoxCollection

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : EquinoxCollection.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
pragma abicoder v2;

import "./Base721.sol";

contract EquinoxCollection is Base721 {
    constructor(address _signAddress)
        Base721("Equinox Collection", "FAE", _signAddress)
    {}
}

File 2 of 20 : Base721.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "contracts/access/controllerPanel.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./Generic721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

pragma abicoder v2;

contract Base721 is Generic721, controllerPanel {
    using Strings for uint256;
    // This is a packed array of booleans.

    mapping(uint16 => uint8) internal tokenData;
    event whitelistMintEvent(uint64, address);
    event forgeAllEvent(uint64[]);
    string public baseURI = "https://client-metadata.ether.cards/api/ENS_NFT/";
    address public presigner;
    mapping(uint64 => mapping(address => bool)) public whitelist_claimed;

    constructor(
        string memory name,
        string memory symbol,
        address _presigner
    ) Generic721(name, symbol) {
        presigner = _presigner;
    }

    function changePresigner(address _presigner) external onlyOwner {
        presigner = _presigner;
    }

    function addCardClass(
        string memory _className,
        uint64 _start, // class starting serial
        uint64 _end, // class end serial
        uint128 _salesTime
    ) public override onlyOwner {
        Generic721.addCardClass(_className, _start, _end, _salesTime);
    }

    function ManOverrideCard(
        uint64 _cardID,
        string memory _className,
        uint64 _start,
        uint64 _end,
        uint64 _initial,
        uint64 _minted
    ) public override onlyOwner {
        Generic721.ManOverrideCard(
            _cardID,
            _className,
            _start,
            _end,
            _initial,
            _minted
        );
    }

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

    function setDataFolder(string memory _uri) external onlyOwner {
        baseURI = _uri;
    }

    function contractURI() public view returns (string memory) {
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(string(_baseURI()), "contract.json"));
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        // reformat to directory structure as below
        string memory folder = (tokenId % 100).toString();
        string memory file = tokenId.toString();
        string memory slash = "/";
        return
            string(
                abi.encodePacked(
                    string(_baseURI()),
                    folder,
                    slash,
                    file,
                    ".json"
                )
            );
    }

    receive() external payable {
        // React to receiving ether
    }

    function drain(IERC20 _token) external onlyOwner {
        if (address(_token) == 0x0000000000000000000000000000000000000000) {
            payable(owner()).transfer(address(this).balance);
        } else {
            _token.transfer(owner(), _token.balanceOf(address(this)));
        }
    }

    function retrieve721(address _tracker, uint256 _id) external onlyOwner {
        IERC721(_tracker).transferFrom(address(this), msg.sender, _id);
    }

    function batchMint(
        address _receiver,
        uint64 _cardType,
        uint256 _howMany
    ) external onlyAllowed {
        for (uint64 i = 1; i <= _howMany; i++) {
            mint(_receiver, _cardType);
        }
    }

    function mintTest(address _receiver, uint64 _cardType)
        external
        onlyAllowed
    {
        mint(_receiver, _cardType);
    }

    function mint(address _receiver, uint64 _cardType)
        internal
        returns (uint256)
    {
        uint256 _newItemId = Generic721.getCardTypeNextID(_cardType);
        require(_newItemId != 0, "seriesEnded");
        Generic721._safeMint(_receiver, _newItemId);
        return _newItemId;
    }

    function whitelistMint(uint64 _cardType, bytes memory signature) public {
        // Validate.
        require(verify(_cardType, msg.sender, signature), "!sig");
        require(!whitelist_claimed[_cardType][msg.sender], "claimed");
        mint(msg.sender, _cardType);
        whitelist_claimed[_cardType][msg.sender] = true;
        emit whitelistMintEvent(_cardType, msg.sender);
    }

    function verify(
        uint64 _cardType,
        address _user,
        bytes memory _signature
    ) public view returns (bool) {
        require(_user != address(0), "NativeMetaTransaction: INVALID__user");
        bytes32 _hash =
            ECDSA.toEthSignedMessageHash(
                keccak256(abi.encodePacked(_user, _cardType))
            );
        require(_signature.length == 65, "Invalid signature length");
        address recovered = ECDSA.recover(_hash, _signature);
        return (presigner == recovered);
    }

    function _setClaimed(uint16 _position) internal {
        uint16 byteNum = uint16(_position / 8);
        uint16 bitPos = uint8(_position - byteNum * 8);
        tokenData[byteNum] = uint8(tokenData[byteNum] | (2**bitPos));
    }

    function isClaimed(uint16 _position) public view returns (bool result) {
        uint16 byteNum = uint16(_position / 8);
        uint16 bitPos = uint8(_position - byteNum * 8);
        if (tokenData[byteNum] == 0) return false;
        return tokenData[byteNum] & (0x01 * 2**bitPos) != 0;
    }

    function forgeAll(uint64[] memory tokenIds) public {
        require(tokenIds.length == 12, "!length");
        for (uint8 i = 0; i < 12; i++) {
            (uint64 localSeriesID, ) = getCardTypeFromID(tokenIds[i]);
            require(uint8(localSeriesID) == i + 1, "not in sequence");
            require(super.ownerOf(tokenIds[i]) == msg.sender, "!last");
            require(!isClaimed(uint16(tokenIds[i])), "Claimed.");
            _setClaimed(uint16(tokenIds[i]));
        }
        mint(msg.sender, 13);
        emit forgeAllEvent(tokenIds);
    }

    function indexArray(address _user)
        external
        view
        returns (uint256[] memory)
    {
        uint256 sum = this.balanceOf(_user);
        uint256[] memory indexes = new uint256[](sum);

        for (uint256 i = 0; i < sum; i++) {
            indexes[i] = this.tokenOfOwnerByIndex(_user, i);
        }
        return indexes;
    }

    function changeMintTime(
        uint64 _cardID,
        uint128 _mintTime,
        uint128 _mintEndTime
    ) external onlyOwner {
        require(_cardID != 0, "!0");
        CardType[_cardID].mintTime = _mintTime;
        CardType[_cardID].mintEndTime = _mintEndTime;
    }
}

File 3 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 4 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 20 : controllerPanel.sol
//SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract controllerPanel is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private _controllers;

    event ApprovedController(address indexed account, address indexed sender);
    event RevokedController(address indexed account, address indexed sender);

    modifier onlyAllowed() {
        require(
            (_controllers.contains(msg.sender) || owner() == msg.sender),
            "Not Authorised"
        );
        _;
    }

    function getControllers()
        external
        view
        returns (address[] memory _allowed)
    {
        _allowed = new address[](_controllers.length());
        for (uint256 i = 0; i < _controllers.length(); i++) {
            _allowed[i] = _controllers.at(i);
        }
        return _allowed;
    }

    function approveController(address _controller) external onlyOwner {
        require(
            !_controllers.contains(_controller),
            "Controller already added."
        );
        _controllers.add(_controller);
        emit ApprovedController(_controller, msg.sender);
    }

    function revokeController(address _controller) external onlyOwner {
        require(
            _controllers.contains(_controller),
            "Controller do not hold admin rights."
        );
        _controllers.remove(_controller);
        emit RevokedController(_controller, msg.sender);
    }

    function isController(address _controller) public view returns (bool) {
        return (owner() == _controller || _controllers.contains(_controller));
    }
}

File 6 of 20 : 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);
    }
}

File 7 of 20 : Generic721.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
pragma abicoder v2;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";

abstract contract Generic721 is ERC721Enumerable {
    struct CardTypeStructure {
        string className;
        uint64 start; // class starting serial
        uint64 end; // class end serial
        uint64 minted; // minted
        uint64 initial;
        uint128 mintTime;
        uint128 mintEndTime;
    }

    mapping(uint64 => CardTypeStructure) public CardType;

    uint64 public CardTypeCount = 0;

    constructor(string memory name_, string memory symbol_)
        ERC721(name_, symbol_)
    {}

    function getCardTypeFromID(uint64 _tokenID)
        public
        view
        returns (uint64, string memory)
    {
        for (uint64 i = 1; i < (CardTypeCount + 1); i++) {
            if (CardType[i].start <= _tokenID && _tokenID <= CardType[i].end) {
                return (i, CardType[i].className);
            }
        }
        return (0, "Unresolved");
    }

    function getAllData()
        public
        view
        returns (
            string[] memory,
            uint64[] memory,
            uint64[] memory,
            uint64[] memory,
            uint64[] memory,
            uint64[] memory,
            uint64,
            uint128[] memory
        )
    {
        string[] memory _className = new string[](CardTypeCount);
        uint64[] memory _start = new uint64[](CardTypeCount);
        uint64[] memory _end = new uint64[](CardTypeCount);
        uint64[] memory _minted = new uint64[](CardTypeCount);
        uint64[] memory _initial = new uint64[](CardTypeCount);
        uint64[] memory _available = new uint64[](CardTypeCount);
        uint128[] memory _mintEndTime = new uint128[](CardTypeCount);

        for (uint64 i = 0; i < CardTypeCount; i++) {
            CardTypeStructure memory p = CardType[i + 1];
            _className[i] = p.className;
            _start[i] = p.start;
            _end[i] = p.end;
            _minted[i] = p.minted;
            _initial[i] = p.initial;
            _available[i] = this.getCardTypeAvailable(i + 1);
            _mintEndTime[i] = p.mintEndTime;
        }
        // console.log("Count %s " , CardTypeCount);
        return (
            _className,
            _start,
            _end,
            _minted,
            _initial,
            _available,
            getCurrentSeries(),
            _mintEndTime
        );
    }

    function getMintTime(uint64 _cardID)
        public
        view
        returns (uint128, uint128)
    {
        return (CardType[_cardID].mintTime, CardType[_cardID].mintEndTime);
    }

    function getCurrentSeries() public view returns (uint64) {
        for (uint64 i = 1; i <= CardTypeCount; i++) {
            if (
                CardType[i].mintTime <= block.timestamp &&
                block.timestamp <= CardType[i].mintEndTime
            ) {
                return i;
            }
        }
        return 0;
    }

    function canMint(uint64 _cardID) public view returns (bool) {
        return (block.timestamp > CardType[_cardID].mintTime &&
            CardType[_cardID].mintEndTime > block.timestamp);
    }

    function getCardTypeMinted(uint64 _cardID) public view returns (uint64) {
        return CardType[_cardID].minted;
    }

    function getCardTypeInitial(uint64 _cardID) public view returns (uint64) {
        return CardType[_cardID].initial;
    }

    function getCardTypeNextID(uint64 _cardID) public view returns (uint64) {
        if (
            CardType[_cardID].start + CardType[_cardID].minted <=
            CardType[_cardID].end
        ) {
            return CardType[_cardID].start + CardType[_cardID].minted;
        } else {
            return 0;
        }
    }

    function getCardTypeAvailable(uint64 _cardID) public view returns (uint64) {
        return CardType[_cardID].initial - CardType[_cardID].minted;
    }

    function addCardClass(
        string memory _className,
        uint64 _start, // class starting serial
        uint64 _end, // class end serial
        uint128 _mintTime
    ) public virtual {
        require(
            _start < _end,
            "Starting index cannot be larger than ending index."
        );
        require(block.timestamp <= _mintTime, "Past");
        CardType[CardTypeCount + 1].className = _className;
        CardType[CardTypeCount + 1].start = _start;
        CardType[CardTypeCount + 1].end = _end;
        CardType[CardTypeCount + 1].initial = _end - _start + 1;
        CardType[CardTypeCount + 1].minted = 0;
        CardType[CardTypeCount + 1].mintTime = _mintTime;
        CardType[CardTypeCount + 1].mintEndTime = _mintTime + 30 days;
        CardTypeCount++;
    }

    function ManOverrideCard(
        uint64 _cardID,
        string memory _className,
        uint64 _start,
        uint64 _end,
        uint64 _initial,
        uint64 _minted
    ) public virtual {
        CardType[_cardID].className = _className;
        CardType[_cardID].start = _start;
        CardType[_cardID].end = _end;
        CardType[_cardID].initial = _initial;
        CardType[_cardID].minted = _minted;
    }

    function _safeMint(address _recipient, uint256 _tokenID)
        internal
        virtual
        override
    {
        for (uint64 i = 1; i <= CardTypeCount + 1; i++) {
            if (CardType[i].start <= _tokenID && _tokenID <= CardType[i].end) {
                require(
                    block.timestamp > CardType[i].mintTime,
                    "not ready yet."
                );
                ERC721._safeMint(_recipient, _tokenID);
                CardType[i].minted = CardType[i].minted + 1;
                return;
            }
        }
    }
}

File 8 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 10 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

File 11 of 20 : 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 12 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 20 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 20 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 16 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 17 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 20 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ApprovedController","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RevokedController","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64[]","name":"","type":"uint64[]"}],"name":"forgeAllEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"","type":"uint64"},{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"whitelistMintEvent","type":"event"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"name":"CardType","outputs":[{"internalType":"string","name":"className","type":"string"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint64","name":"initial","type":"uint64"},{"internalType":"uint128","name":"mintTime","type":"uint128"},{"internalType":"uint128","name":"mintEndTime","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CardTypeCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"},{"internalType":"string","name":"_className","type":"string"},{"internalType":"uint64","name":"_start","type":"uint64"},{"internalType":"uint64","name":"_end","type":"uint64"},{"internalType":"uint64","name":"_initial","type":"uint64"},{"internalType":"uint64","name":"_minted","type":"uint64"}],"name":"ManOverrideCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_className","type":"string"},{"internalType":"uint64","name":"_start","type":"uint64"},{"internalType":"uint64","name":"_end","type":"uint64"},{"internalType":"uint128","name":"_salesTime","type":"uint128"}],"name":"addCardClass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"approveController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint64","name":"_cardType","type":"uint64"},{"internalType":"uint256","name":"_howMany","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"},{"internalType":"uint128","name":"_mintTime","type":"uint128"},{"internalType":"uint128","name":"_mintEndTime","type":"uint128"}],"name":"changeMintTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_presigner","type":"address"}],"name":"changePresigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"drain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"tokenIds","type":"uint64[]"}],"name":"forgeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllData","outputs":[{"internalType":"string[]","name":"","type":"string[]"},{"internalType":"uint64[]","name":"","type":"uint64[]"},{"internalType":"uint64[]","name":"","type":"uint64[]"},{"internalType":"uint64[]","name":"","type":"uint64[]"},{"internalType":"uint64[]","name":"","type":"uint64[]"},{"internalType":"uint64[]","name":"","type":"uint64[]"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint128[]","name":"","type":"uint128[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"getCardTypeAvailable","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenID","type":"uint64"}],"name":"getCardTypeFromID","outputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"getCardTypeInitial","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"getCardTypeMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"getCardTypeNextID","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getControllers","outputs":[{"internalType":"address[]","name":"_allowed","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSeries","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardID","type":"uint64"}],"name":"getMintTime","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"indexArray","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_position","type":"uint16"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"isController","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint64","name":"_cardType","type":"uint64"}],"name":"mintTest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tracker","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"retrieve721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"revokeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setDataFolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardType","type":"uint64"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_cardType","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"address","name":"","type":"address"}],"name":"whitelist_claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

600b80546001600160401b031916905560e0604052603060808181529062005b2360a03980516200003991600f9160209091019062000194565b503480156200004757600080fd5b5060405162005b5338038062005b538339810160408190526200006a916200023a565b6040518060400160405280601281526020017122b8bab4b737bc1021b7b63632b1ba34b7b760711b8152506040518060400160405280600381526020016246414560e81b81525082828281818160009080519060200190620000ce92919062000194565b508051620000e490600190602084019062000194565b505050505062000103620000fd6200012d60201b60201c565b62000131565b601080546001600160a01b0319166001600160a01b039290921691909117905550620002a7915050565b3390565b600b80546001600160a01b0383811668010000000000000000818102600160401b600160e01b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a2906200026a565b90600052602060002090601f016020900481019282620001c6576000855562000211565b82601f10620001e157805160ff191683800117855562000211565b8280016001018555821562000211579182015b8281111562000211578251825591602001919060010190620001f4565b506200021f92915062000223565b5090565b5b808211156200021f576000815560010162000224565b6000602082840312156200024c578081fd5b81516001600160a01b038116811462000263578182fd5b9392505050565b600181811c908216806200027f57607f821691505b60208210811415620002a157634e487b7160e01b600052602260045260246000fd5b50919050565b61586c80620002b76000396000f3fe6080604052600436106103435760003560e01c806370a08231116101b0578063c87b56dd116100ec578063ddd14efe11610095578063ece531321161006f578063ece5313214610a53578063f06cd64714610a73578063f2fde38b14610ab6578063f8f82c3414610ad657600080fd5b8063ddd14efe146109d5578063e8a3d485146109f5578063e985e9c514610a0a57600080fd5b8063cd1f3b6b116100c6578063cd1f3b6b14610955578063d1be750b14610988578063da9367bf146109b557600080fd5b8063c87b56dd146108f5578063cabaa8d614610915578063cd185a0a1461093557600080fd5b806395d89b4111610159578063afd7df4311610133578063afd7df4314610873578063b429afeb14610893578063b4e8a6c4146108b3578063b88d4fde146108d557600080fd5b806395d89b411461081e578063a22cb46514610833578063a5b3abfb1461085357600080fd5b80638b3e76fd1161018a5780638b3e76fd146107b95780638da5cb5b146107d957806391022355146107fe57600080fd5b806370a0823114610764578063715018a6146107845780638428197a1461079957600080fd5b80633099e1321161027f5780634f6ccce711610228578063626a171411610202578063626a1714146106d45780636352211e1461070f578063662326751461072f5780636c0360eb1461074f57600080fd5b80634f6ccce71461067457806356e541bd14610694578063582777d2146106b457600080fd5b806342842e0e1161025957806342842e0e146106145780634752d828146106345780634bba9b641461065457600080fd5b80633099e13214610558578063355e71d8146105c65780633eff09d4146105e657600080fd5b806318160ddd116102ec5780632c528d0f116102c65780632c528d0f146104cf5780632d045509146104ef5780632d10fa281461050f5780632f745c591461053857600080fd5b806318160ddd1461044d57806323b872dd1461046c5780632988651b1461048c57600080fd5b806308c68e9b1161031d57806308c68e9b146103de578063095ea7b3146104005780631712166b1461042057600080fd5b806301ffc9a71461034f57806306fdde0314610384578063081812fc146103a657600080fd5b3661034a57005b600080fd5b34801561035b57600080fd5b5061036f61036a366004614d61565b610af6565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610b3a565b60405161037b9190615395565b3480156103b257600080fd5b506103c66103c1366004614e5d565b610bcc565b6040516001600160a01b03909116815260200161037b565b3480156103ea57600080fd5b506103fe6103f9366004614c36565b610c66565b005b34801561040c57600080fd5b506103fe61041b366004614c0b565b610ce9565b34801561042c57600080fd5b50610435610e16565b6040516001600160401b03909116815260200161037b565b34801561045957600080fd5b506008545b60405190815260200161037b565b34801561047857600080fd5b506103fe610487366004614b35565b610eb6565b34801561049857600080fd5b506104356104a7366004614e8d565b6001600160401b039081166000908152600a6020526040902060010154600160c01b90041690565b3480156104db57600080fd5b506103fe6104ea366004614f8e565b610f3d565b3480156104fb57600080fd5b5061036f61050a366004614e8d565b610fa3565b34801561051b57600080fd5b50610524611003565b60405161037b98979695949392919061525a565b34801561054457600080fd5b5061045e610553366004614c0b565b6116ba565b34801561056457600080fd5b506105a6610573366004614e8d565b6001600160401b03166000908152600a60205260409020600201546001600160801b0380821692600160801b9092041690565b604080516001600160801b0393841681529290911660208301520161037b565b3480156105d257600080fd5b5061036f6105e1366004614e3b565b611762565b3480156105f257600080fd5b50610606610601366004614e8d565b6117ee565b60405161037b929190615406565b34801561062057600080fd5b506103fe61062f366004614b35565b611987565b34801561064057600080fd5b506103fe61064f366004614c63565b6119a2565b34801561066057600080fd5b50600b54610435906001600160401b031681565b34801561068057600080fd5b5061045e61068f366004614e5d565b611a4c565b3480156106a057600080fd5b506103fe6106af366004614ae1565b611afe565b3480156106c057600080fd5b506103fe6106cf366004614f41565b611b7d565b3480156106e057600080fd5b5061036f6106ef366004614ec5565b601160209081526000928352604080842090915290825290205460ff1681565b34801561071b57600080fd5b506103c661072a366004614e5d565b611cc1565b34801561073b57600080fd5b506103fe61074a366004614ae1565b611d4c565b34801561075b57600080fd5b50610399611e39565b34801561077057600080fd5b5061045e61077f366004614ae1565b611ec7565b34801561079057600080fd5b506103fe611f61565b3480156107a557600080fd5b5061036f6107b4366004614ee2565b611fbd565b3480156107c557600080fd5b506103fe6107d4366004614ae1565b61215b565b3480156107e557600080fd5b50600b54600160401b90046001600160a01b03166103c6565b34801561080a57600080fd5b506103fe610819366004614d99565b61226c565b34801561082a57600080fd5b506103996122d3565b34801561083f57600080fd5b506103fe61084e366004614bde565b6122e2565b34801561085f57600080fd5b506103fe61086e366004614c0b565b6122ed565b34801561087f57600080fd5b506103fe61088e366004614dcb565b6123b8565b34801561089f57600080fd5b5061036f6108ae366004614ae1565b612414565b3480156108bf57600080fd5b506108c8612455565b60405161037b919061520d565b3480156108e157600080fd5b506103fe6108f0366004614b75565b61251f565b34801561090157600080fd5b50610399610910366004614e5d565b6125a7565b34801561092157600080fd5b506103fe610930366004615026565b6126c4565b34801561094157600080fd5b50610435610950366004614e8d565b6127a4565b34801561096157600080fd5b50610975610970366004614e8d565b61282d565b60405161037b97969594939291906153a8565b34801561099457600080fd5b506109a86109a3366004614ae1565b612913565b60405161037b919061534a565b3480156109c157600080fd5b506103fe6109d0366004614c92565b612acd565b3480156109e157600080fd5b506104356109f0366004614e8d565b612d6d565b348015610a0157600080fd5b50610399612da8565b348015610a1657600080fd5b5061036f610a25366004614afd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a5f57600080fd5b506103fe610a6e366004614ae1565b612dd6565b348015610a7f57600080fd5b50610435610a8e366004614e8d565b6001600160401b039081166000908152600a6020526040902060010154600160801b90041690565b348015610ac257600080fd5b506103fe610ad1366004614ae1565b612f97565b348015610ae257600080fd5b506010546103c6906001600160a01b031681565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610b345750610b348261306c565b92915050565b606060008054610b49906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b75906156d5565b8015610bc25780601f10610b9757610100808354040283529160200191610bc2565b820191906000526020600020905b815481529060010190602001808311610ba557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b610c71600c33613107565b80610c8e5750600b546001600160a01b03600160401b9091041633145b610cda5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697365640000000000000000000000000000000000006044820152606401610c41565b610ce4828261312c565b505050565b6000610cf482611cc1565b9050806001600160a01b0316836001600160a01b03161415610d7e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c41565b336001600160a01b0382161480610d9a5750610d9a8133610a25565b610e0c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c41565b610ce4838361319a565b600060015b600b546001600160401b0390811690821611610eae576001600160401b0381166000908152600a6020526040902060020154426001600160801b0390911611801590610e9257506001600160401b0381166000908152600a6020526040902060020154600160801b90046001600160801b03164211155b15610e9c57919050565b80610ea68161572b565b915050610e1b565b506000905090565b610ec03382613215565b610f325760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c41565b610ce483838361330c565b600b546001600160a01b03600160401b909104163314610f8d5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b610f9b8686868686866134f1565b505050505050565b6001600160401b0381166000908152600a60205260408120600201546001600160801b031642118015610b345750506001600160401b03166000908152600a602052604090206002015442600160801b9091046001600160801b03161190565b606080606080606080600060606000600b60009054906101000a90046001600160401b03166001600160401b03166001600160401b0381111561105657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108957816020015b60608152602001906001900390816110745790505b50600b549091506000906001600160401b03908116908111156110bc57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110e5578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561111857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611141578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561117457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561119d578160200160208202803683370190505b50600b549091506000906001600160401b03908116908111156111d057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111f9578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561122c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611255578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561128857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112b1578160200160208202803683370190505b50905060005b600b546001600160401b039081169082161015611689576000600a816112de84600161549b565b6001600160401b03166001600160401b031681526020019081526020016000206040518060e0016040529081600082018054611319906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611345906156d5565b80156113925780601f1061136757610100808354040283529160200191611392565b820191906000526020600020905b81548152906001019060200180831161137557829003601f168201915b505050918352505060018201546001600160401b038082166020840152600160401b820481166040840152600160801b80830482166060850152600160c01b909204811660808401526002909301546001600160801b0380821660a08501529190041660c09091015281518b51929350918b91851690811061142457634e487b7160e01b600052603260045260246000fd5b6020026020010181905250806020015188836001600160401b03168151811061145d57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806040015187836001600160401b0316815181106114ab57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806060015186836001600160401b0316815181106114f957634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806080015185836001600160401b03168151811061154757634e487b7160e01b600052603260045260246000fd5b6001600160401b03909216602092830291909101909101523063ddd14efe61157084600161549b565b6040516001600160e01b031960e084901b1681526001600160401b03909116600482015260240160206040518083038186803b1580156115af57600080fd5b505afa1580156115c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e79190614ea9565b84836001600160401b03168151811061161057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b0316815250508060c0015183836001600160401b03168151811061165e57634e487b7160e01b600052603260045260246000fd5b6001600160801b039092166020928302919091019091015250806116818161572b565b9150506112b7565b50868686868686611698610e16565b879e509e509e509e509e509e509e509e50505050505050509091929394959697565b60006116c583611ec7565b82106117395760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c41565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000806117706008846154e2565b9050600061177f826008615606565b611789908561564f565b61ffff83166000908152600e602052604090205460ff9182169250166117b3575060009392505050565b6117be81600261555a565b6117c9906001615630565b61ffff9092166000908152600e60205260409020549190911660ff1615159392505050565b6000606060015b600b5461180c906001600160401b0316600161549b565b6001600160401b0316816001600160401b03161015611945576001600160401b038181166000908152600a602052604090206001015481861691161180159061187c57506001600160401b038082166000908152600a6020526040902060010154600160401b9004811690851611155b15611933576001600160401b0381166000908152600a60205260409020805482919081906118a9906156d5565b80601f01602080910402602001604051908101604052809291908181526020018280546118d5906156d5565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b505050505090509250925050915091565b8061193d8161572b565b9150506117f5565b5060006040518060400160405280600a81526020017f556e7265736f6c7665640000000000000000000000000000000000000000000081525091509150915091565b610ce48383836040518060200160405280600081525061251f565b6119ad600c33613107565b806119ca5750600b546001600160a01b03600160401b9091041633145b611a165760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697365640000000000000000000000000000000000006044820152606401610c41565b60015b81816001600160401b031611611a4657611a33848461312c565b5080611a3e8161572b565b915050611a19565b50505050565b6000611a5760085490565b8210611acb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c41565b60088281548110611aec57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b03600160401b909104163314611b4e5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611b88823383611fbd565b611bd65760405162461bcd60e51b8152600401610c419060208082526004908201527f2173696700000000000000000000000000000000000000000000000000000000604082015260600190565b6001600160401b038216600090815260116020908152604080832033845290915290205460ff1615611c4a5760405162461bcd60e51b815260206004820152600760248201527f636c61696d6564000000000000000000000000000000000000000000000000006044820152606401610c41565b611c54338361312c565b506001600160401b03821660008181526011602090815260408083203380855290835292819020805460ff191660011790558051938452908301919091527f0133e643e4c979fcce72c1456c2b4bd3139995c33df1bc57301c27de6f13341a910160405180910390a15050565b6000818152600260205260408120546001600160a01b031680610b345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c41565b600b546001600160a01b03600160401b909104163314611d9c5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611da7600c82613107565b15611df45760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c657220616c72656164792061646465642e000000000000006044820152606401610c41565b611dff600c8261359a565b5060405133906001600160a01b038316907fde4bbadbdbd1ed4cfc0454fa40ae242b7ef106adbe8466849ebf5cff831bc10590600090a350565b600f8054611e46906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611e72906156d5565b8015611ebf5780601f10611e9457610100808354040283529160200191611ebf565b820191906000526020600020905b815481529060010190602001808311611ea257829003601f168201915b505050505081565b60006001600160a01b038216611f455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c41565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03600160401b909104163314611fb15760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611fbb60006135af565b565b60006001600160a01b03831661203a5760405162461bcd60e51b8152602060048201526024808201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5f60448201527f75736572000000000000000000000000000000000000000000000000000000006064820152608401610c41565b60408051606085901b6bffffffffffffffffffffffff191660208083019190915260c087901b7fffffffffffffffff0000000000000000000000000000000000000000000000001660348301528251601c818403018152603c830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605c840152607880840191909152835180840390910181526098909201909252805191012082516041146121345760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c41565b60006121408285613622565b6010546001600160a01b039182169116149695505050505050565b600b546001600160a01b03600160401b9091041633146121ab5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6121b6600c82613107565b6122275760405162461bcd60e51b8152602060048201526024808201527f436f6e74726f6c6c657220646f206e6f7420686f6c642061646d696e2072696760448201527f6874732e000000000000000000000000000000000000000000000000000000006064820152608401610c41565b612232600c8261363e565b5060405133906001600160a01b038316907f799caeba7dd7e8649fefe03dd79338a265cf8f9738da0cd834338f2cab9abd1c90600090a350565b600b546001600160a01b03600160401b9091041633146122bc5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b80516122cf90600f9060208401906149d0565b5050565b606060018054610b49906156d5565b6122cf338383613653565b600b546001600160a01b03600160401b90910416331461233d5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b1580156123a457600080fd5b505af1158015610f9b573d6000803e3d6000fd5b600b546001600160a01b03600160401b9091041633146124085760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611a4684848484613722565b6000816001600160a01b031661243a600b546001600160a01b03600160401b9091041690565b6001600160a01b03161480610b345750610b34600c83613107565b6060612461600c613aea565b6001600160401b0381111561248657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124af578160200160208202803683370190505b50905060005b6124bf600c613aea565b81101561251b576124d1600c82613af4565b8282815181106124f157634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061251381615710565b9150506124b5565b5090565b6125293383613215565b61259b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c41565b611a4684848484613b00565b6000818152600260205260409020546060906001600160a01b03166126345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c41565b6000612649612644606485615772565b613b7e565b9050600061265684613b7e565b60408051808201909152600181527f2f000000000000000000000000000000000000000000000000000000000000006020820152909150612695613ccb565b8382846040516020016126ab9493929190615111565b6040516020818303038152906040529350505050919050565b600b546001600160a01b03600160401b9091041633146127145760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160401b03831661276a5760405162461bcd60e51b815260206004820152600260248201527f21300000000000000000000000000000000000000000000000000000000000006044820152606401610c41565b6001600160401b039092166000908152600a602052604090206001600160801b03928316600160801b029290911691909117600290910155565b6001600160401b038082166000908152600a60205260408120600101549091600160401b82048116916127e191600160801b82048116911661549b565b6001600160401b031611612820576001600160401b038083166000908152600a6020526040902060010154610b3491600160801b82048116911661549b565b506000919050565b919050565b600a60205260009081526040902080548190612848906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054612874906156d5565b80156128c15780601f10612896576101008083540402835291602001916128c1565b820191906000526020600020905b8154815290600101906020018083116128a457829003601f168201915b50505050600183015460029093015491926001600160401b0380821693600160401b830482169350600160801b808404831693600160c01b9004909216916001600160801b0380831692919091041687565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a082319060240160206040518083038186803b15801561295857600080fd5b505afa15801561296c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129909190614e75565b90506000816001600160401b038111156129ba57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156129e3578160200160208202803683370190505b50905060005b82811015612ac5576040517f2f745c590000000000000000000000000000000000000000000000000000000081526001600160a01b0386166004820152602481018290523090632f745c599060440160206040518083038186803b158015612a5057600080fd5b505afa158015612a64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a889190614e75565b828281518110612aa857634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612abd81615710565b9150506129e9565b509392505050565b8051600c14612b1e5760405162461bcd60e51b815260206004820152600760248201527f216c656e677468000000000000000000000000000000000000000000000000006044820152606401610c41565b60005b600c8160ff161015612d26576000612b62838360ff1681518110612b5557634e487b7160e01b600052603260045260246000fd5b60200260200101516117ee565b509050612b708260016154bd565b60ff168160ff1614612bc45760405162461bcd60e51b815260206004820152600f60248201527f6e6f7420696e2073657175656e636500000000000000000000000000000000006044820152606401610c41565b336001600160a01b0316612c0a848460ff1681518110612bf457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316611cc1565b6001600160a01b031614612c605760405162461bcd60e51b815260206004820152600560248201527f216c6173740000000000000000000000000000000000000000000000000000006044820152606401610c41565b612c93838360ff1681518110612c8657634e487b7160e01b600052603260045260246000fd5b6020026020010151611762565b15612ce05760405162461bcd60e51b815260206004820152600860248201527f436c61696d65642e0000000000000000000000000000000000000000000000006044820152606401610c41565b612d13838360ff1681518110612d0657634e487b7160e01b600052603260045260246000fd5b6020026020010151613cda565b5080612d1e81615752565b915050612b21565b50612d3233600d61312c565b507f74ae928485be46a46c1cc4e34633cefa82cc728f6c9ee7f95f08090aa4e8231981604051612d629190615382565b60405180910390a150565b6001600160401b038082166000908152600a60205260408120600101549091610b3491600160801b8104821691600160c01b90910416615689565b6060612db2613ccb565b604051602001612dc29190615190565b604051602081830303815290604052905090565b600b546001600160a01b03600160401b909104163314612e265760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160a01b038116612e7657600b546040516001600160a01b03600160401b90920491909116904780156108fc02916000818181858888f193505050501580156122cf573d6000803e3d6000fd5b806001600160a01b031663a9059cbb612e9f600b546001600160a01b03600160401b9091041690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015612ede57600080fd5b505afa158015612ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f169190614e75565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612f5c57600080fd5b505af1158015612f70573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122cf9190614d45565b50565b600b546001600160a01b03600160401b909104163314612fe75760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160a01b0381166130635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c41565b612f94816135af565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806130cf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b3457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b34565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b600080613138836127a4565b6001600160401b03169050806131905760405162461bcd60e51b815260206004820152600b60248201527f736572696573456e6465640000000000000000000000000000000000000000006044820152606401610c41565b6131258482613d41565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906131dc82611cc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661328e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c41565b600061329983611cc1565b9050806001600160a01b0316846001600160a01b031614806132d45750836001600160a01b03166132c984610bcc565b6001600160a01b0316145b8061330457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661331f82611cc1565b6001600160a01b03161461339b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c41565b6001600160a01b0382166134165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c41565b613421838383613ec9565b61342c60008261319a565b6001600160a01b0383166000908152600360205260408120805460019290613455908490615672565b90915550506001600160a01b0382166000908152600360205260408120805460019290613483908490615483565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160401b0386166000908152600a60209081526040909120865161351a928801906149d0565b506001600160401b039586166000908152600a602052604090206001018054918716600160801b0267ffffffffffffffff60801b19938816600160c01b02939093166001600160801b03948816600160401b026fffffffffffffffffffffffffffffffff1990931697909516969096171791909116919091171790915550565b6000613125836001600160a01b038416613f81565b600b80546001600160a01b03838116600160401b8181027fffffffff0000000000000000000000000000000000000000ffffffffffffffff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006136318585613fd0565b91509150612ac581614040565b6000613125836001600160a01b038416614241565b816001600160a01b0316836001600160a01b031614156136b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c41565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b816001600160401b0316836001600160401b0316106137a95760405162461bcd60e51b815260206004820152603260248201527f5374617274696e6720696e6465782063616e6e6f74206265206c61726765722060448201527f7468616e20656e64696e6720696e6465782e00000000000000000000000000006064820152608401610c41565b806001600160801b03164211156138045760405162461bcd60e51b8152600401610c419060208082526004908201527f5061737400000000000000000000000000000000000000000000000000000000604082015260600190565b600b548490600a90600090613823906001600160401b0316600161549b565b6001600160401b03168152602080820192909252604001600020825161384f93919291909101906149d0565b50600b548390600a9060009061386f906001600160401b0316600161549b565b6001600160401b039081168252602082019290925260400160009081206001908101805467ffffffffffffffff191694841694909417909355600b548593600a936138bb92169061549b565b6001600160401b039081168252602082019290925260400160002060010180547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16600160401b93909216929092021790556139178383615689565b61392290600161549b565b600b54600a9060009061393f906001600160401b0316600161549b565b6001600160401b03166001600160401b0316815260200190815260200160002060010160186101000a8154816001600160401b0302191690836001600160401b031602179055506000600a6000600b60009054906101000a90046001600160401b031660016139ae919061549b565b6001600160401b0390811682526020820192909252604001600090812060019081018054948416600160801b0267ffffffffffffffff60801b1990951694909417909355600b548493600a93613a0592169061549b565b6001600160401b03168152602081019190915260400160002060020180546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055613a558162278d00615458565b600b54600a90600090613a72906001600160401b0316600161549b565b6001600160401b0390811682526020820192909252604001600090812060020180546001600160801b03948516600160801b02941693909317909255600b805490911691613abf8361572b565b91906101000a8154816001600160401b0302191690836001600160401b031602179055505050505050565b6000610b34825490565b6000613125838361435e565b613b0b84848461330c565b613b1784848484614396565b611a465760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b606081613bbe57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613be85780613bd281615710565b9150613be19050600a83615503565b9150613bc2565b6000816001600160401b03811115613c1057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c3a576020820181803683370190505b5090505b841561330457613c4f600183615672565b9150613c5c600a86615772565b613c67906030615483565b60f81b818381518110613c8a57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613cc4600a86615503565b9450613c3e565b6060600f8054610b49906156d5565b6000613ce76008836154e2565b90506000613cf6826008615606565b613d00908461564f565b60ff169050613d1081600261555a565b61ffff929092166000908152600e60205260409020805460ff19811660ff9182169190941617929092179091555050565b60015b600b54613d5b906001600160401b0316600161549b565b6001600160401b0316816001600160401b031611610ce4576001600160401b038082166000908152600a6020526040902060010154168210801590613dc457506001600160401b038082166000908152600a6020526040902060010154600160401b9004168211155b15613eb7576001600160401b0381166000908152600a60205260409020600201546001600160801b03164211613e3c5760405162461bcd60e51b815260206004820152600e60248201527f6e6f74207265616479207965742e0000000000000000000000000000000000006044820152606401610c41565b613e4683836144ee565b6001600160401b038082166000908152600a60205260409020600190810154613e7892600160801b909104169061549b565b6001600160401b039182166000908152600a60205260409020600101805491909216600160801b0267ffffffffffffffff60801b199091161790555050565b80613ec18161572b565b915050613d44565b6001600160a01b038316613f2457613f1f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613f47565b816001600160a01b0316836001600160a01b031614613f4757613f478382614508565b6001600160a01b038216613f5e57610ce4816145a5565b826001600160a01b0316826001600160a01b031614610ce457610ce4828261467e565b6000818152600183016020526040812054613fc857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b34565b506000610b34565b6000808251604114156140075760208301516040840151606085015160001a613ffb878285856146c2565b94509450505050614039565b82516040141561403157602083015160408401516140268683836147af565b935093505050614039565b506000905060025b9250929050565b600081600481111561406257634e487b7160e01b600052602160045260246000fd5b141561406b5750565b600181600481111561408d57634e487b7160e01b600052602160045260246000fd5b14156140db5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c41565b60028160048111156140fd57634e487b7160e01b600052602160045260246000fd5b141561414b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c41565b600381600481111561416d57634e487b7160e01b600052602160045260246000fd5b14156141c65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c41565b60048160048111156141e857634e487b7160e01b600052602160045260246000fd5b1415612f945760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c41565b60008181526001830160205260408120548015614354576000614265600183615672565b855490915060009061427990600190615672565b90508181146142fa5760008660000182815481106142a757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106142d857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061431957634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b34565b6000915050610b34565b600082600001828154811061438357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006001600160a01b0384163b156144e357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906143da9033908990889088906004016151d1565b602060405180830381600087803b1580156143f457600080fd5b505af1925050508015614424575060408051601f3d908101601f1916820190925261442191810190614d7d565b60015b6144c9573d808015614452576040519150601f19603f3d011682016040523d82523d6000602084013e614457565b606091505b5080516144c15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613304565b506001949350505050565b6122cf8282604051806020016040528060008152506147f7565b6000600161451584611ec7565b61451f9190615672565b600083815260076020526040902054909150808214614572576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906145b790600190615672565b600083815260096020526040812054600880549394509092849081106145ed57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061461c57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061466257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061468983611ec7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156146f957506000905060036147a6565b8460ff16601b1415801561471157508460ff16601c14155b1561472257506000905060046147a6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614776573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661479f576000600192509250506147a6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b016147e9878288856146c2565b935093505050935093915050565b6148018383614875565b61480e6000848484614396565b610ce45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b6001600160a01b0382166148cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c41565b6000818152600260205260409020546001600160a01b0316156149305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c41565b61493c60008383613ec9565b6001600160a01b0382166000908152600360205260408120805460019290614965908490615483565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546149dc906156d5565b90600052602060002090601f0160209004810192826149fe5760008555614a44565b82601f10614a1757805160ff1916838001178555614a44565b82800160010185558215614a44579182015b82811115614a44578251825591602001919060010190614a29565b5061251b9291505b8082111561251b5760008155600101614a4c565b600082601f830112614a70578081fd5b81356001600160401b03811115614a8957614a896157b2565b614a9c601f8201601f1916602001615428565b818152846020838601011115614ab0578283fd5b816020850160208301379081016020019190915292915050565b80356001600160801b038116811461282857600080fd5b600060208284031215614af2578081fd5b8135613125816157c8565b60008060408385031215614b0f578081fd5b8235614b1a816157c8565b91506020830135614b2a816157c8565b809150509250929050565b600080600060608486031215614b49578081fd5b8335614b54816157c8565b92506020840135614b64816157c8565b929592945050506040919091013590565b60008060008060808587031215614b8a578081fd5b8435614b95816157c8565b93506020850135614ba5816157c8565b92506040850135915060608501356001600160401b03811115614bc6578182fd5b614bd287828801614a60565b91505092959194509250565b60008060408385031215614bf0578182fd5b8235614bfb816157c8565b91506020830135614b2a816157dd565b60008060408385031215614c1d578182fd5b8235614c28816157c8565b946020939093013593505050565b60008060408385031215614c48578182fd5b8235614c53816157c8565b91506020830135614b2a81615801565b600080600060608486031215614c77578081fd5b8335614c82816157c8565b92506020840135614b6481615801565b60006020808385031215614ca4578182fd5b82356001600160401b0380821115614cba578384fd5b818501915085601f830112614ccd578384fd5b813581811115614cdf57614cdf6157b2565b8060051b9150614cf0848301615428565b8181528481019084860184860187018a1015614d0a578788fd5b8795505b83861015614d385780359450614d2385615801565b84835260019590950194918601918601614d0e565b5098975050505050505050565b600060208284031215614d56578081fd5b8151613125816157dd565b600060208284031215614d72578081fd5b8135613125816157eb565b600060208284031215614d8e578081fd5b8151613125816157eb565b600060208284031215614daa578081fd5b81356001600160401b03811115614dbf578182fd5b61330484828501614a60565b60008060008060808587031215614de0578182fd5b84356001600160401b03811115614df5578283fd5b614e0187828801614a60565b9450506020850135614e1281615801565b92506040850135614e2281615801565b9150614e3060608601614aca565b905092959194509250565b600060208284031215614e4c578081fd5b813561ffff81168114613125578182fd5b600060208284031215614e6e578081fd5b5035919050565b600060208284031215614e86578081fd5b5051919050565b600060208284031215614e9e578081fd5b813561312581615801565b600060208284031215614eba578081fd5b815161312581615801565b60008060408385031215614ed7578182fd5b8235614b1a81615801565b600080600060608486031215614ef6578081fd5b8335614f0181615801565b92506020840135614f11816157c8565b915060408401356001600160401b03811115614f2b578182fd5b614f3786828701614a60565b9150509250925092565b60008060408385031215614f53578182fd5b8235614f5e81615801565b915060208301356001600160401b03811115614f78578182fd5b614f8485828601614a60565b9150509250929050565b60008060008060008060c08789031215614fa6578384fd5b8635614fb181615801565b955060208701356001600160401b03811115614fcb578485fd5b614fd789828a01614a60565b9550506040870135614fe881615801565b93506060870135614ff881615801565b9250608087013561500881615801565b915060a087013561501881615801565b809150509295509295509295565b60008060006060848603121561503a578081fd5b833561504581615801565b925061505360208501614aca565b915061506160408501614aca565b90509250925092565b6000815180845260208085019450808401835b838110156150a25781516001600160801b03168752958201959082019060010161507d565b509495945050505050565b6000815180845260208085019450808401835b838110156150a25781516001600160401b0316875295820195908201906001016150c0565b600081518084526150fd8160208601602086016156a9565b601f01601f19169290920160200192915050565b60008551615123818460208a016156a9565b855190830190615137818360208a016156a9565b855191019061514a8183602089016156a9565b845191019061515d8183602088016156a9565b7f2e6a736f6e00000000000000000000000000000000000000000000000000000091019081526005019695505050505050565b600082516151a28184602087016156a9565b7f636f6e74726163742e6a736f6e00000000000000000000000000000000000000920191825250600d01919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261520360808301846150e5565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561524e5783516001600160a01b031683529284019291840191600101615229565b50909695505050505050565b610100808252895190820181905260009061012080840191600581901b8501909101906020808e01855b838110156152b35761011f198886030186526152a18583516150e5565b95830195945090820190600101615284565b505085830390860152506152c7818c6150ad565b91505082810360408401526152dc818a6150ad565b905082810360608401526152f081896150ad565b9050828103608084015261530481886150ad565b905082810360a084015261531881876150ad565b6001600160401b03861660c0850152905082810360e084015261533b818561506a565b9b9a5050505050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561524e57835183529284019291840191600101615366565b60208152600061312560208301846150ad565b60208152600061312560208301846150e5565b60e0815260006153bb60e083018a6150e5565b6001600160401b03988916602084015296881660408301525093861660608501529190941660808301526001600160801b0393841660a083015290921660c090920191909152919050565b6001600160401b038316815260406020820152600061330460408301846150e5565b604051601f8201601f191681016001600160401b0381118282101715615450576154506157b2565b604052919050565b60006001600160801b0380831681851680830382111561547a5761547a615786565b01949350505050565b6000821982111561549657615496615786565b500190565b60006001600160401b0380831681851680830382111561547a5761547a615786565b600060ff821660ff84168060ff038211156154da576154da615786565b019392505050565b600061ffff808416806154f7576154f761579c565b92169190910492915050565b6000826155125761551261579c565b500490565b600181815b8085111561555257816000190482111561553857615538615786565b8085161561554557918102915b93841c939080029061551c565b509250929050565b600061312561ffff84168360008261557457506001610b34565b8161558157506000610b34565b816001811461559757600281146155a1576155bd565b6001915050610b34565b60ff8411156155b2576155b2615786565b50506001821b610b34565b5060208310610133831016604e8410600b84101617156155e0575081810a610b34565b6155ea8383615517565b80600019048211156155fe576155fe615786565b029392505050565b600061ffff8083168185168183048111821515161561562757615627615786565b02949350505050565b600081600019048311821515161561564a5761564a615786565b500290565b600061ffff8381169083168181101561566a5761566a615786565b039392505050565b60008282101561568457615684615786565b500390565b60006001600160401b038381169083168181101561566a5761566a615786565b60005b838110156156c45781810151838201526020016156ac565b83811115611a465750506000910152565b600181811c908216806156e957607f821691505b6020821081141561570a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561572457615724615786565b5060010190565b60006001600160401b038083168181141561574857615748615786565b6001019392505050565b600060ff821660ff81141561576957615769615786565b60010192915050565b6000826157815761578161579c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612f9457600080fd5b8015158114612f9457600080fd5b6001600160e01b031981168114612f9457600080fd5b6001600160401b0381168114612f9457600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ebc280f5ed103cac36eb2f1638b591c7369281a17daae3acd4904682d370667264736f6c6343000804003368747470733a2f2f636c69656e742d6d657461646174612e65746865722e63617264732f6170692f454e535f4e46542f00000000000000000000000055c36b545afd2a0f39b50e1da81a13e5208fbb86

Deployed Bytecode

0x6080604052600436106103435760003560e01c806370a08231116101b0578063c87b56dd116100ec578063ddd14efe11610095578063ece531321161006f578063ece5313214610a53578063f06cd64714610a73578063f2fde38b14610ab6578063f8f82c3414610ad657600080fd5b8063ddd14efe146109d5578063e8a3d485146109f5578063e985e9c514610a0a57600080fd5b8063cd1f3b6b116100c6578063cd1f3b6b14610955578063d1be750b14610988578063da9367bf146109b557600080fd5b8063c87b56dd146108f5578063cabaa8d614610915578063cd185a0a1461093557600080fd5b806395d89b4111610159578063afd7df4311610133578063afd7df4314610873578063b429afeb14610893578063b4e8a6c4146108b3578063b88d4fde146108d557600080fd5b806395d89b411461081e578063a22cb46514610833578063a5b3abfb1461085357600080fd5b80638b3e76fd1161018a5780638b3e76fd146107b95780638da5cb5b146107d957806391022355146107fe57600080fd5b806370a0823114610764578063715018a6146107845780638428197a1461079957600080fd5b80633099e1321161027f5780634f6ccce711610228578063626a171411610202578063626a1714146106d45780636352211e1461070f578063662326751461072f5780636c0360eb1461074f57600080fd5b80634f6ccce71461067457806356e541bd14610694578063582777d2146106b457600080fd5b806342842e0e1161025957806342842e0e146106145780634752d828146106345780634bba9b641461065457600080fd5b80633099e13214610558578063355e71d8146105c65780633eff09d4146105e657600080fd5b806318160ddd116102ec5780632c528d0f116102c65780632c528d0f146104cf5780632d045509146104ef5780632d10fa281461050f5780632f745c591461053857600080fd5b806318160ddd1461044d57806323b872dd1461046c5780632988651b1461048c57600080fd5b806308c68e9b1161031d57806308c68e9b146103de578063095ea7b3146104005780631712166b1461042057600080fd5b806301ffc9a71461034f57806306fdde0314610384578063081812fc146103a657600080fd5b3661034a57005b600080fd5b34801561035b57600080fd5b5061036f61036a366004614d61565b610af6565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610b3a565b60405161037b9190615395565b3480156103b257600080fd5b506103c66103c1366004614e5d565b610bcc565b6040516001600160a01b03909116815260200161037b565b3480156103ea57600080fd5b506103fe6103f9366004614c36565b610c66565b005b34801561040c57600080fd5b506103fe61041b366004614c0b565b610ce9565b34801561042c57600080fd5b50610435610e16565b6040516001600160401b03909116815260200161037b565b34801561045957600080fd5b506008545b60405190815260200161037b565b34801561047857600080fd5b506103fe610487366004614b35565b610eb6565b34801561049857600080fd5b506104356104a7366004614e8d565b6001600160401b039081166000908152600a6020526040902060010154600160c01b90041690565b3480156104db57600080fd5b506103fe6104ea366004614f8e565b610f3d565b3480156104fb57600080fd5b5061036f61050a366004614e8d565b610fa3565b34801561051b57600080fd5b50610524611003565b60405161037b98979695949392919061525a565b34801561054457600080fd5b5061045e610553366004614c0b565b6116ba565b34801561056457600080fd5b506105a6610573366004614e8d565b6001600160401b03166000908152600a60205260409020600201546001600160801b0380821692600160801b9092041690565b604080516001600160801b0393841681529290911660208301520161037b565b3480156105d257600080fd5b5061036f6105e1366004614e3b565b611762565b3480156105f257600080fd5b50610606610601366004614e8d565b6117ee565b60405161037b929190615406565b34801561062057600080fd5b506103fe61062f366004614b35565b611987565b34801561064057600080fd5b506103fe61064f366004614c63565b6119a2565b34801561066057600080fd5b50600b54610435906001600160401b031681565b34801561068057600080fd5b5061045e61068f366004614e5d565b611a4c565b3480156106a057600080fd5b506103fe6106af366004614ae1565b611afe565b3480156106c057600080fd5b506103fe6106cf366004614f41565b611b7d565b3480156106e057600080fd5b5061036f6106ef366004614ec5565b601160209081526000928352604080842090915290825290205460ff1681565b34801561071b57600080fd5b506103c661072a366004614e5d565b611cc1565b34801561073b57600080fd5b506103fe61074a366004614ae1565b611d4c565b34801561075b57600080fd5b50610399611e39565b34801561077057600080fd5b5061045e61077f366004614ae1565b611ec7565b34801561079057600080fd5b506103fe611f61565b3480156107a557600080fd5b5061036f6107b4366004614ee2565b611fbd565b3480156107c557600080fd5b506103fe6107d4366004614ae1565b61215b565b3480156107e557600080fd5b50600b54600160401b90046001600160a01b03166103c6565b34801561080a57600080fd5b506103fe610819366004614d99565b61226c565b34801561082a57600080fd5b506103996122d3565b34801561083f57600080fd5b506103fe61084e366004614bde565b6122e2565b34801561085f57600080fd5b506103fe61086e366004614c0b565b6122ed565b34801561087f57600080fd5b506103fe61088e366004614dcb565b6123b8565b34801561089f57600080fd5b5061036f6108ae366004614ae1565b612414565b3480156108bf57600080fd5b506108c8612455565b60405161037b919061520d565b3480156108e157600080fd5b506103fe6108f0366004614b75565b61251f565b34801561090157600080fd5b50610399610910366004614e5d565b6125a7565b34801561092157600080fd5b506103fe610930366004615026565b6126c4565b34801561094157600080fd5b50610435610950366004614e8d565b6127a4565b34801561096157600080fd5b50610975610970366004614e8d565b61282d565b60405161037b97969594939291906153a8565b34801561099457600080fd5b506109a86109a3366004614ae1565b612913565b60405161037b919061534a565b3480156109c157600080fd5b506103fe6109d0366004614c92565b612acd565b3480156109e157600080fd5b506104356109f0366004614e8d565b612d6d565b348015610a0157600080fd5b50610399612da8565b348015610a1657600080fd5b5061036f610a25366004614afd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a5f57600080fd5b506103fe610a6e366004614ae1565b612dd6565b348015610a7f57600080fd5b50610435610a8e366004614e8d565b6001600160401b039081166000908152600a6020526040902060010154600160801b90041690565b348015610ac257600080fd5b506103fe610ad1366004614ae1565b612f97565b348015610ae257600080fd5b506010546103c6906001600160a01b031681565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610b345750610b348261306c565b92915050565b606060008054610b49906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b75906156d5565b8015610bc25780601f10610b9757610100808354040283529160200191610bc2565b820191906000526020600020905b815481529060010190602001808311610ba557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b610c71600c33613107565b80610c8e5750600b546001600160a01b03600160401b9091041633145b610cda5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697365640000000000000000000000000000000000006044820152606401610c41565b610ce4828261312c565b505050565b6000610cf482611cc1565b9050806001600160a01b0316836001600160a01b03161415610d7e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c41565b336001600160a01b0382161480610d9a5750610d9a8133610a25565b610e0c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c41565b610ce4838361319a565b600060015b600b546001600160401b0390811690821611610eae576001600160401b0381166000908152600a6020526040902060020154426001600160801b0390911611801590610e9257506001600160401b0381166000908152600a6020526040902060020154600160801b90046001600160801b03164211155b15610e9c57919050565b80610ea68161572b565b915050610e1b565b506000905090565b610ec03382613215565b610f325760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c41565b610ce483838361330c565b600b546001600160a01b03600160401b909104163314610f8d5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b610f9b8686868686866134f1565b505050505050565b6001600160401b0381166000908152600a60205260408120600201546001600160801b031642118015610b345750506001600160401b03166000908152600a602052604090206002015442600160801b9091046001600160801b03161190565b606080606080606080600060606000600b60009054906101000a90046001600160401b03166001600160401b03166001600160401b0381111561105657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108957816020015b60608152602001906001900390816110745790505b50600b549091506000906001600160401b03908116908111156110bc57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110e5578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561111857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611141578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561117457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561119d578160200160208202803683370190505b50600b549091506000906001600160401b03908116908111156111d057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111f9578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561122c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611255578160200160208202803683370190505b50600b549091506000906001600160401b039081169081111561128857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112b1578160200160208202803683370190505b50905060005b600b546001600160401b039081169082161015611689576000600a816112de84600161549b565b6001600160401b03166001600160401b031681526020019081526020016000206040518060e0016040529081600082018054611319906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611345906156d5565b80156113925780601f1061136757610100808354040283529160200191611392565b820191906000526020600020905b81548152906001019060200180831161137557829003601f168201915b505050918352505060018201546001600160401b038082166020840152600160401b820481166040840152600160801b80830482166060850152600160c01b909204811660808401526002909301546001600160801b0380821660a08501529190041660c09091015281518b51929350918b91851690811061142457634e487b7160e01b600052603260045260246000fd5b6020026020010181905250806020015188836001600160401b03168151811061145d57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806040015187836001600160401b0316815181106114ab57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806060015186836001600160401b0316815181106114f957634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b031681525050806080015185836001600160401b03168151811061154757634e487b7160e01b600052603260045260246000fd5b6001600160401b03909216602092830291909101909101523063ddd14efe61157084600161549b565b6040516001600160e01b031960e084901b1681526001600160401b03909116600482015260240160206040518083038186803b1580156115af57600080fd5b505afa1580156115c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e79190614ea9565b84836001600160401b03168151811061161057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160401b031690816001600160401b0316815250508060c0015183836001600160401b03168151811061165e57634e487b7160e01b600052603260045260246000fd5b6001600160801b039092166020928302919091019091015250806116818161572b565b9150506112b7565b50868686868686611698610e16565b879e509e509e509e509e509e509e509e50505050505050509091929394959697565b60006116c583611ec7565b82106117395760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c41565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000806117706008846154e2565b9050600061177f826008615606565b611789908561564f565b61ffff83166000908152600e602052604090205460ff9182169250166117b3575060009392505050565b6117be81600261555a565b6117c9906001615630565b61ffff9092166000908152600e60205260409020549190911660ff1615159392505050565b6000606060015b600b5461180c906001600160401b0316600161549b565b6001600160401b0316816001600160401b03161015611945576001600160401b038181166000908152600a602052604090206001015481861691161180159061187c57506001600160401b038082166000908152600a6020526040902060010154600160401b9004811690851611155b15611933576001600160401b0381166000908152600a60205260409020805482919081906118a9906156d5565b80601f01602080910402602001604051908101604052809291908181526020018280546118d5906156d5565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b505050505090509250925050915091565b8061193d8161572b565b9150506117f5565b5060006040518060400160405280600a81526020017f556e7265736f6c7665640000000000000000000000000000000000000000000081525091509150915091565b610ce48383836040518060200160405280600081525061251f565b6119ad600c33613107565b806119ca5750600b546001600160a01b03600160401b9091041633145b611a165760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697365640000000000000000000000000000000000006044820152606401610c41565b60015b81816001600160401b031611611a4657611a33848461312c565b5080611a3e8161572b565b915050611a19565b50505050565b6000611a5760085490565b8210611acb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c41565b60088281548110611aec57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b03600160401b909104163314611b4e5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b611b88823383611fbd565b611bd65760405162461bcd60e51b8152600401610c419060208082526004908201527f2173696700000000000000000000000000000000000000000000000000000000604082015260600190565b6001600160401b038216600090815260116020908152604080832033845290915290205460ff1615611c4a5760405162461bcd60e51b815260206004820152600760248201527f636c61696d6564000000000000000000000000000000000000000000000000006044820152606401610c41565b611c54338361312c565b506001600160401b03821660008181526011602090815260408083203380855290835292819020805460ff191660011790558051938452908301919091527f0133e643e4c979fcce72c1456c2b4bd3139995c33df1bc57301c27de6f13341a910160405180910390a15050565b6000818152600260205260408120546001600160a01b031680610b345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c41565b600b546001600160a01b03600160401b909104163314611d9c5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611da7600c82613107565b15611df45760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c657220616c72656164792061646465642e000000000000006044820152606401610c41565b611dff600c8261359a565b5060405133906001600160a01b038316907fde4bbadbdbd1ed4cfc0454fa40ae242b7ef106adbe8466849ebf5cff831bc10590600090a350565b600f8054611e46906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611e72906156d5565b8015611ebf5780601f10611e9457610100808354040283529160200191611ebf565b820191906000526020600020905b815481529060010190602001808311611ea257829003601f168201915b505050505081565b60006001600160a01b038216611f455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c41565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03600160401b909104163314611fb15760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611fbb60006135af565b565b60006001600160a01b03831661203a5760405162461bcd60e51b8152602060048201526024808201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5f60448201527f75736572000000000000000000000000000000000000000000000000000000006064820152608401610c41565b60408051606085901b6bffffffffffffffffffffffff191660208083019190915260c087901b7fffffffffffffffff0000000000000000000000000000000000000000000000001660348301528251601c818403018152603c830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605c840152607880840191909152835180840390910181526098909201909252805191012082516041146121345760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c41565b60006121408285613622565b6010546001600160a01b039182169116149695505050505050565b600b546001600160a01b03600160401b9091041633146121ab5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6121b6600c82613107565b6122275760405162461bcd60e51b8152602060048201526024808201527f436f6e74726f6c6c657220646f206e6f7420686f6c642061646d696e2072696760448201527f6874732e000000000000000000000000000000000000000000000000000000006064820152608401610c41565b612232600c8261363e565b5060405133906001600160a01b038316907f799caeba7dd7e8649fefe03dd79338a265cf8f9738da0cd834338f2cab9abd1c90600090a350565b600b546001600160a01b03600160401b9091041633146122bc5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b80516122cf90600f9060208401906149d0565b5050565b606060018054610b49906156d5565b6122cf338383613653565b600b546001600160a01b03600160401b90910416331461233d5760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b1580156123a457600080fd5b505af1158015610f9b573d6000803e3d6000fd5b600b546001600160a01b03600160401b9091041633146124085760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b611a4684848484613722565b6000816001600160a01b031661243a600b546001600160a01b03600160401b9091041690565b6001600160a01b03161480610b345750610b34600c83613107565b6060612461600c613aea565b6001600160401b0381111561248657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124af578160200160208202803683370190505b50905060005b6124bf600c613aea565b81101561251b576124d1600c82613af4565b8282815181106124f157634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061251381615710565b9150506124b5565b5090565b6125293383613215565b61259b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c41565b611a4684848484613b00565b6000818152600260205260409020546060906001600160a01b03166126345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c41565b6000612649612644606485615772565b613b7e565b9050600061265684613b7e565b60408051808201909152600181527f2f000000000000000000000000000000000000000000000000000000000000006020820152909150612695613ccb565b8382846040516020016126ab9493929190615111565b6040516020818303038152906040529350505050919050565b600b546001600160a01b03600160401b9091041633146127145760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160401b03831661276a5760405162461bcd60e51b815260206004820152600260248201527f21300000000000000000000000000000000000000000000000000000000000006044820152606401610c41565b6001600160401b039092166000908152600a602052604090206001600160801b03928316600160801b029290911691909117600290910155565b6001600160401b038082166000908152600a60205260408120600101549091600160401b82048116916127e191600160801b82048116911661549b565b6001600160401b031611612820576001600160401b038083166000908152600a6020526040902060010154610b3491600160801b82048116911661549b565b506000919050565b919050565b600a60205260009081526040902080548190612848906156d5565b80601f0160208091040260200160405190810160405280929190818152602001828054612874906156d5565b80156128c15780601f10612896576101008083540402835291602001916128c1565b820191906000526020600020905b8154815290600101906020018083116128a457829003601f168201915b50505050600183015460029093015491926001600160401b0380821693600160401b830482169350600160801b808404831693600160c01b9004909216916001600160801b0380831692919091041687565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a082319060240160206040518083038186803b15801561295857600080fd5b505afa15801561296c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129909190614e75565b90506000816001600160401b038111156129ba57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156129e3578160200160208202803683370190505b50905060005b82811015612ac5576040517f2f745c590000000000000000000000000000000000000000000000000000000081526001600160a01b0386166004820152602481018290523090632f745c599060440160206040518083038186803b158015612a5057600080fd5b505afa158015612a64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a889190614e75565b828281518110612aa857634e487b7160e01b600052603260045260246000fd5b602090810291909101015280612abd81615710565b9150506129e9565b509392505050565b8051600c14612b1e5760405162461bcd60e51b815260206004820152600760248201527f216c656e677468000000000000000000000000000000000000000000000000006044820152606401610c41565b60005b600c8160ff161015612d26576000612b62838360ff1681518110612b5557634e487b7160e01b600052603260045260246000fd5b60200260200101516117ee565b509050612b708260016154bd565b60ff168160ff1614612bc45760405162461bcd60e51b815260206004820152600f60248201527f6e6f7420696e2073657175656e636500000000000000000000000000000000006044820152606401610c41565b336001600160a01b0316612c0a848460ff1681518110612bf457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316611cc1565b6001600160a01b031614612c605760405162461bcd60e51b815260206004820152600560248201527f216c6173740000000000000000000000000000000000000000000000000000006044820152606401610c41565b612c93838360ff1681518110612c8657634e487b7160e01b600052603260045260246000fd5b6020026020010151611762565b15612ce05760405162461bcd60e51b815260206004820152600860248201527f436c61696d65642e0000000000000000000000000000000000000000000000006044820152606401610c41565b612d13838360ff1681518110612d0657634e487b7160e01b600052603260045260246000fd5b6020026020010151613cda565b5080612d1e81615752565b915050612b21565b50612d3233600d61312c565b507f74ae928485be46a46c1cc4e34633cefa82cc728f6c9ee7f95f08090aa4e8231981604051612d629190615382565b60405180910390a150565b6001600160401b038082166000908152600a60205260408120600101549091610b3491600160801b8104821691600160c01b90910416615689565b6060612db2613ccb565b604051602001612dc29190615190565b604051602081830303815290604052905090565b600b546001600160a01b03600160401b909104163314612e265760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160a01b038116612e7657600b546040516001600160a01b03600160401b90920491909116904780156108fc02916000818181858888f193505050501580156122cf573d6000803e3d6000fd5b806001600160a01b031663a9059cbb612e9f600b546001600160a01b03600160401b9091041690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015612ede57600080fd5b505afa158015612ef2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f169190614e75565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612f5c57600080fd5b505af1158015612f70573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122cf9190614d45565b50565b600b546001600160a01b03600160401b909104163314612fe75760405162461bcd60e51b815260206004820181905260248201526000805160206158178339815191526044820152606401610c41565b6001600160a01b0381166130635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c41565b612f94816135af565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806130cf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b3457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b34565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b600080613138836127a4565b6001600160401b03169050806131905760405162461bcd60e51b815260206004820152600b60248201527f736572696573456e6465640000000000000000000000000000000000000000006044820152606401610c41565b6131258482613d41565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906131dc82611cc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661328e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c41565b600061329983611cc1565b9050806001600160a01b0316846001600160a01b031614806132d45750836001600160a01b03166132c984610bcc565b6001600160a01b0316145b8061330457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661331f82611cc1565b6001600160a01b03161461339b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c41565b6001600160a01b0382166134165760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c41565b613421838383613ec9565b61342c60008261319a565b6001600160a01b0383166000908152600360205260408120805460019290613455908490615672565b90915550506001600160a01b0382166000908152600360205260408120805460019290613483908490615483565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160401b0386166000908152600a60209081526040909120865161351a928801906149d0565b506001600160401b039586166000908152600a602052604090206001018054918716600160801b0267ffffffffffffffff60801b19938816600160c01b02939093166001600160801b03948816600160401b026fffffffffffffffffffffffffffffffff1990931697909516969096171791909116919091171790915550565b6000613125836001600160a01b038416613f81565b600b80546001600160a01b03838116600160401b8181027fffffffff0000000000000000000000000000000000000000ffffffffffffffff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006136318585613fd0565b91509150612ac581614040565b6000613125836001600160a01b038416614241565b816001600160a01b0316836001600160a01b031614156136b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c41565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b816001600160401b0316836001600160401b0316106137a95760405162461bcd60e51b815260206004820152603260248201527f5374617274696e6720696e6465782063616e6e6f74206265206c61726765722060448201527f7468616e20656e64696e6720696e6465782e00000000000000000000000000006064820152608401610c41565b806001600160801b03164211156138045760405162461bcd60e51b8152600401610c419060208082526004908201527f5061737400000000000000000000000000000000000000000000000000000000604082015260600190565b600b548490600a90600090613823906001600160401b0316600161549b565b6001600160401b03168152602080820192909252604001600020825161384f93919291909101906149d0565b50600b548390600a9060009061386f906001600160401b0316600161549b565b6001600160401b039081168252602082019290925260400160009081206001908101805467ffffffffffffffff191694841694909417909355600b548593600a936138bb92169061549b565b6001600160401b039081168252602082019290925260400160002060010180547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16600160401b93909216929092021790556139178383615689565b61392290600161549b565b600b54600a9060009061393f906001600160401b0316600161549b565b6001600160401b03166001600160401b0316815260200190815260200160002060010160186101000a8154816001600160401b0302191690836001600160401b031602179055506000600a6000600b60009054906101000a90046001600160401b031660016139ae919061549b565b6001600160401b0390811682526020820192909252604001600090812060019081018054948416600160801b0267ffffffffffffffff60801b1990951694909417909355600b548493600a93613a0592169061549b565b6001600160401b03168152602081019190915260400160002060020180546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055613a558162278d00615458565b600b54600a90600090613a72906001600160401b0316600161549b565b6001600160401b0390811682526020820192909252604001600090812060020180546001600160801b03948516600160801b02941693909317909255600b805490911691613abf8361572b565b91906101000a8154816001600160401b0302191690836001600160401b031602179055505050505050565b6000610b34825490565b6000613125838361435e565b613b0b84848461330c565b613b1784848484614396565b611a465760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b606081613bbe57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613be85780613bd281615710565b9150613be19050600a83615503565b9150613bc2565b6000816001600160401b03811115613c1057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613c3a576020820181803683370190505b5090505b841561330457613c4f600183615672565b9150613c5c600a86615772565b613c67906030615483565b60f81b818381518110613c8a57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613cc4600a86615503565b9450613c3e565b6060600f8054610b49906156d5565b6000613ce76008836154e2565b90506000613cf6826008615606565b613d00908461564f565b60ff169050613d1081600261555a565b61ffff929092166000908152600e60205260409020805460ff19811660ff9182169190941617929092179091555050565b60015b600b54613d5b906001600160401b0316600161549b565b6001600160401b0316816001600160401b031611610ce4576001600160401b038082166000908152600a6020526040902060010154168210801590613dc457506001600160401b038082166000908152600a6020526040902060010154600160401b9004168211155b15613eb7576001600160401b0381166000908152600a60205260409020600201546001600160801b03164211613e3c5760405162461bcd60e51b815260206004820152600e60248201527f6e6f74207265616479207965742e0000000000000000000000000000000000006044820152606401610c41565b613e4683836144ee565b6001600160401b038082166000908152600a60205260409020600190810154613e7892600160801b909104169061549b565b6001600160401b039182166000908152600a60205260409020600101805491909216600160801b0267ffffffffffffffff60801b199091161790555050565b80613ec18161572b565b915050613d44565b6001600160a01b038316613f2457613f1f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613f47565b816001600160a01b0316836001600160a01b031614613f4757613f478382614508565b6001600160a01b038216613f5e57610ce4816145a5565b826001600160a01b0316826001600160a01b031614610ce457610ce4828261467e565b6000818152600183016020526040812054613fc857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b34565b506000610b34565b6000808251604114156140075760208301516040840151606085015160001a613ffb878285856146c2565b94509450505050614039565b82516040141561403157602083015160408401516140268683836147af565b935093505050614039565b506000905060025b9250929050565b600081600481111561406257634e487b7160e01b600052602160045260246000fd5b141561406b5750565b600181600481111561408d57634e487b7160e01b600052602160045260246000fd5b14156140db5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c41565b60028160048111156140fd57634e487b7160e01b600052602160045260246000fd5b141561414b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c41565b600381600481111561416d57634e487b7160e01b600052602160045260246000fd5b14156141c65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c41565b60048160048111156141e857634e487b7160e01b600052602160045260246000fd5b1415612f945760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c41565b60008181526001830160205260408120548015614354576000614265600183615672565b855490915060009061427990600190615672565b90508181146142fa5760008660000182815481106142a757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106142d857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061431957634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b34565b6000915050610b34565b600082600001828154811061438357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006001600160a01b0384163b156144e357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906143da9033908990889088906004016151d1565b602060405180830381600087803b1580156143f457600080fd5b505af1925050508015614424575060408051601f3d908101601f1916820190925261442191810190614d7d565b60015b6144c9573d808015614452576040519150601f19603f3d011682016040523d82523d6000602084013e614457565b606091505b5080516144c15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613304565b506001949350505050565b6122cf8282604051806020016040528060008152506147f7565b6000600161451584611ec7565b61451f9190615672565b600083815260076020526040902054909150808214614572576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906145b790600190615672565b600083815260096020526040812054600880549394509092849081106145ed57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061461c57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061466257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061468983611ec7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156146f957506000905060036147a6565b8460ff16601b1415801561471157508460ff16601c14155b1561472257506000905060046147a6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614776573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661479f576000600192509250506147a6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b016147e9878288856146c2565b935093505050935093915050565b6148018383614875565b61480e6000848484614396565b610ce45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c41565b6001600160a01b0382166148cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c41565b6000818152600260205260409020546001600160a01b0316156149305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c41565b61493c60008383613ec9565b6001600160a01b0382166000908152600360205260408120805460019290614965908490615483565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546149dc906156d5565b90600052602060002090601f0160209004810192826149fe5760008555614a44565b82601f10614a1757805160ff1916838001178555614a44565b82800160010185558215614a44579182015b82811115614a44578251825591602001919060010190614a29565b5061251b9291505b8082111561251b5760008155600101614a4c565b600082601f830112614a70578081fd5b81356001600160401b03811115614a8957614a896157b2565b614a9c601f8201601f1916602001615428565b818152846020838601011115614ab0578283fd5b816020850160208301379081016020019190915292915050565b80356001600160801b038116811461282857600080fd5b600060208284031215614af2578081fd5b8135613125816157c8565b60008060408385031215614b0f578081fd5b8235614b1a816157c8565b91506020830135614b2a816157c8565b809150509250929050565b600080600060608486031215614b49578081fd5b8335614b54816157c8565b92506020840135614b64816157c8565b929592945050506040919091013590565b60008060008060808587031215614b8a578081fd5b8435614b95816157c8565b93506020850135614ba5816157c8565b92506040850135915060608501356001600160401b03811115614bc6578182fd5b614bd287828801614a60565b91505092959194509250565b60008060408385031215614bf0578182fd5b8235614bfb816157c8565b91506020830135614b2a816157dd565b60008060408385031215614c1d578182fd5b8235614c28816157c8565b946020939093013593505050565b60008060408385031215614c48578182fd5b8235614c53816157c8565b91506020830135614b2a81615801565b600080600060608486031215614c77578081fd5b8335614c82816157c8565b92506020840135614b6481615801565b60006020808385031215614ca4578182fd5b82356001600160401b0380821115614cba578384fd5b818501915085601f830112614ccd578384fd5b813581811115614cdf57614cdf6157b2565b8060051b9150614cf0848301615428565b8181528481019084860184860187018a1015614d0a578788fd5b8795505b83861015614d385780359450614d2385615801565b84835260019590950194918601918601614d0e565b5098975050505050505050565b600060208284031215614d56578081fd5b8151613125816157dd565b600060208284031215614d72578081fd5b8135613125816157eb565b600060208284031215614d8e578081fd5b8151613125816157eb565b600060208284031215614daa578081fd5b81356001600160401b03811115614dbf578182fd5b61330484828501614a60565b60008060008060808587031215614de0578182fd5b84356001600160401b03811115614df5578283fd5b614e0187828801614a60565b9450506020850135614e1281615801565b92506040850135614e2281615801565b9150614e3060608601614aca565b905092959194509250565b600060208284031215614e4c578081fd5b813561ffff81168114613125578182fd5b600060208284031215614e6e578081fd5b5035919050565b600060208284031215614e86578081fd5b5051919050565b600060208284031215614e9e578081fd5b813561312581615801565b600060208284031215614eba578081fd5b815161312581615801565b60008060408385031215614ed7578182fd5b8235614b1a81615801565b600080600060608486031215614ef6578081fd5b8335614f0181615801565b92506020840135614f11816157c8565b915060408401356001600160401b03811115614f2b578182fd5b614f3786828701614a60565b9150509250925092565b60008060408385031215614f53578182fd5b8235614f5e81615801565b915060208301356001600160401b03811115614f78578182fd5b614f8485828601614a60565b9150509250929050565b60008060008060008060c08789031215614fa6578384fd5b8635614fb181615801565b955060208701356001600160401b03811115614fcb578485fd5b614fd789828a01614a60565b9550506040870135614fe881615801565b93506060870135614ff881615801565b9250608087013561500881615801565b915060a087013561501881615801565b809150509295509295509295565b60008060006060848603121561503a578081fd5b833561504581615801565b925061505360208501614aca565b915061506160408501614aca565b90509250925092565b6000815180845260208085019450808401835b838110156150a25781516001600160801b03168752958201959082019060010161507d565b509495945050505050565b6000815180845260208085019450808401835b838110156150a25781516001600160401b0316875295820195908201906001016150c0565b600081518084526150fd8160208601602086016156a9565b601f01601f19169290920160200192915050565b60008551615123818460208a016156a9565b855190830190615137818360208a016156a9565b855191019061514a8183602089016156a9565b845191019061515d8183602088016156a9565b7f2e6a736f6e00000000000000000000000000000000000000000000000000000091019081526005019695505050505050565b600082516151a28184602087016156a9565b7f636f6e74726163742e6a736f6e00000000000000000000000000000000000000920191825250600d01919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261520360808301846150e5565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561524e5783516001600160a01b031683529284019291840191600101615229565b50909695505050505050565b610100808252895190820181905260009061012080840191600581901b8501909101906020808e01855b838110156152b35761011f198886030186526152a18583516150e5565b95830195945090820190600101615284565b505085830390860152506152c7818c6150ad565b91505082810360408401526152dc818a6150ad565b905082810360608401526152f081896150ad565b9050828103608084015261530481886150ad565b905082810360a084015261531881876150ad565b6001600160401b03861660c0850152905082810360e084015261533b818561506a565b9b9a5050505050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561524e57835183529284019291840191600101615366565b60208152600061312560208301846150ad565b60208152600061312560208301846150e5565b60e0815260006153bb60e083018a6150e5565b6001600160401b03988916602084015296881660408301525093861660608501529190941660808301526001600160801b0393841660a083015290921660c090920191909152919050565b6001600160401b038316815260406020820152600061330460408301846150e5565b604051601f8201601f191681016001600160401b0381118282101715615450576154506157b2565b604052919050565b60006001600160801b0380831681851680830382111561547a5761547a615786565b01949350505050565b6000821982111561549657615496615786565b500190565b60006001600160401b0380831681851680830382111561547a5761547a615786565b600060ff821660ff84168060ff038211156154da576154da615786565b019392505050565b600061ffff808416806154f7576154f761579c565b92169190910492915050565b6000826155125761551261579c565b500490565b600181815b8085111561555257816000190482111561553857615538615786565b8085161561554557918102915b93841c939080029061551c565b509250929050565b600061312561ffff84168360008261557457506001610b34565b8161558157506000610b34565b816001811461559757600281146155a1576155bd565b6001915050610b34565b60ff8411156155b2576155b2615786565b50506001821b610b34565b5060208310610133831016604e8410600b84101617156155e0575081810a610b34565b6155ea8383615517565b80600019048211156155fe576155fe615786565b029392505050565b600061ffff8083168185168183048111821515161561562757615627615786565b02949350505050565b600081600019048311821515161561564a5761564a615786565b500290565b600061ffff8381169083168181101561566a5761566a615786565b039392505050565b60008282101561568457615684615786565b500390565b60006001600160401b038381169083168181101561566a5761566a615786565b60005b838110156156c45781810151838201526020016156ac565b83811115611a465750506000910152565b600181811c908216806156e957607f821691505b6020821081141561570a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561572457615724615786565b5060010190565b60006001600160401b038083168181141561574857615748615786565b6001019392505050565b600060ff821660ff81141561576957615769615786565b60010192915050565b6000826157815761578161579c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612f9457600080fd5b8015158114612f9457600080fd5b6001600160e01b031981168114612f9457600080fd5b6001600160401b0381168114612f9457600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ebc280f5ed103cac36eb2f1638b591c7369281a17daae3acd4904682d370667264736f6c63430008040033

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

00000000000000000000000055c36b545afd2a0f39b50e1da81a13e5208fbb86

-----Decoded View---------------
Arg [0] : _signAddress (address): 0x55C36B545AFD2A0f39b50E1da81a13E5208FbB86

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000055c36b545afd2a0f39b50e1da81a13e5208fbb86


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.