ETH Price: $3,386.06 (+0.60%)

Token

Angry Penguins Grotto (APG)
 

Overview

Max Total Supply

8,778 APG

Holders

4,664

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
fu555.eth
Balance
1 APG
0x273b9a4c4ef5ab156c0fd466097858c384010001
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

APG is an NFT collection of 8888 high-level art pieces that will be stored on Ethereum blockchain as ERC-721 tokens. Each Angry Penguin is unique and programmatically generated from over 200 possible traits, including bodies, beaks, eyes, and more.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
APG

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : APG.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./ContentMixin.sol";
import "./NativeMetaTransaction.sol";

contract APG is ContextMixin, ERC721A, NativeMetaTransaction, Ownable {
    using SafeMath for uint256;

    string public contractURI;

    uint256 MAX_SUPPLY = 8888;
    uint256 MAX_PUBLIC_SUPPLY = 8588;

    bool isMetaDataFrozen = false;

    string public ghostTokenURI;
    string public baseTokenURI;

    uint256 public NFT_price_for_3 = 0.04 ether;
    uint256 public NFT_price_for_9 = 0.096 ether;

    uint256 public startTime = 1644361200;

    string _name = "Angry Penguins Grotto";
    string _symbol = "APG";

    uint256 public reveal_time = 1644620400;

    modifier notFrozenMetaData {
        require(
            !isMetaDataFrozen,
            "The metadata is already frozen"
        );
        _;
    }

    modifier mintHasStarted {
        require(
            block.timestamp >= startTime,
            "It's not time yet"
        );
        _;
    }

    constructor(string memory _baseTokenURI, string memory _ghostTokenURI) ERC721A(_name, _symbol, 20) {
        baseTokenURI = _baseTokenURI;
        ghostTokenURI = _ghostTokenURI;
        _initializeEIP712(_name);
    }

    function setRevealTime(uint256 time) external onlyOwner {
        reveal_time = time;
    }

    function setStartTime(uint256 time) external onlyOwner {
        startTime = time;
    }

    function claimFree() external mintHasStarted {
        require(
            balanceOf(_msgSender()) == 0,
            "You've already Claimed Free"
        );
        buyAmount(1);
    }

    function buyThree() public payable mintHasStarted {
        require(msg.value == NFT_price_for_3, "Wrong amount for 3");
        buyAmount(3);
    }

    function buyNine() public payable mintHasStarted {
        require(msg.value == NFT_price_for_9, "Wrong amount for 9");
        buyAmount(9);
    }

    function buyAmount(uint256 count) internal {
        require(totalSupply() + count < MAX_PUBLIC_SUPPLY, "Max Public Supply Reached");
        _safeMint(_msgSender(), count);
    }

    function mintMany(uint256 num, address _to) public onlyOwner {
        require(num <= 20, "Max 20 Per TX.");
        require(totalSupply() + num < MAX_SUPPLY, "Max Supply Reached");
        _safeMint(_to, num);
    }

    function mintTo(address _to) public onlyOwner {
        require(totalSupply() < MAX_SUPPLY, "Max Supply Reached");
        _safeMint(_to, 1);
    }

    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function setBaseUri(string memory _uri) external onlyOwner notFrozenMetaData {
        baseTokenURI = _uri;
    }

    function setGhostUri(string memory _uri) external onlyOwner notFrozenMetaData {
        ghostTokenURI = _uri;
    }

    function setContractUri(string memory uri) public onlyOwner {
        contractURI = uri;
    }

    function freezeMetaData() public onlyOwner {
        isMetaDataFrozen = true;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (block.timestamp < reveal_time) {
            return string(abi.encodePacked(ghostTokenURI));
        }
        return
            string(
                abi.encodePacked(
                    baseTokenURI,
                    Strings.toString(_tokenId),
                    ".json"
                )
            );
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal view override returns (address sender) {
        return ContextMixin.msgSender();
    }
}

File 2 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), "ERC721A: number minted query for the zero address");
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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 override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, "ERC721A: approval to current owner");

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), "ERC721A: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: 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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

        currentIndex = updatedIndex;
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved");

        require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner");
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp);
            }
        }

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

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp);
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
     * @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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721A: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 17 : 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 5 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 6 of 17 : 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 17 : 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 8 of 17 : 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 9 of 17 : 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 10 of 17 : 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 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 15 of 17 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 16 of 17 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 17 of 17 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"string","name":"_ghostTokenURI","type":"string"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_price_for_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_price_for_9","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyNine","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"buyThree","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freezeMetaData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ghostTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal_time","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":"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":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setGhostUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setRevealTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000805560006007556000600860006101000a81548160ff0219169083151502179055506122b8600d5561218c600e556000600f60006101000a81548160ff021916908315150217905550668e1bc9bf0400006012556701550f7dca700000601355636202f5f06014556040518060400160405280601581526020017f416e6772792050656e6775696e732047726f74746f000000000000000000000081525060159080519060200190620000bb929190620006c0565b506040518060400160405280600381526020017f41504700000000000000000000000000000000000000000000000000000000008152506016908051906020019062000109929190620006c0565b50636206ea706017553480156200011f57600080fd5b50604051620064a0380380620064a083398181016040528101906200014591906200090d565b601580546200015490620009c1565b80601f01602080910402602001604051908101604052809291908181526020018280546200018290620009c1565b8015620001d35780601f10620001a757610100808354040283529160200191620001d3565b820191906000526020600020905b815481529060010190602001808311620001b557829003601f168201915b505050505060168054620001e790620009c1565b80601f01602080910402602001604051908101604052809291908181526020018280546200021590620009c1565b8015620002665780601f106200023a5761010080835404028352916020019162000266565b820191906000526020600020905b8154815290600101906020018083116200024857829003601f168201915b5050505050601460008111620002b3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002aa9062000a7e565b60405180910390fd5b8260019080519060200190620002cb929190620006c0565b508160029080519060200190620002e4929190620006c0565b5080608081815250505050506200031062000304620003ed60201b60201c565b6200040960201b60201c565b816011908051906020019062000328929190620006c0565b50806010908051906020019062000341929190620006c0565b50620003e5601580546200035590620009c1565b80601f01602080910402602001604051908101604052809291908181526020018280546200038390620009c1565b8015620003d45780601f10620003a857610100808354040283529160200191620003d4565b820191906000526020600020905b815481529060010190602001808311620003b657829003601f168201915b5050505050620004cf60201b60201c565b505062000bcf565b6000620004046200055160201b6200234e1760201c565b905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600860009054906101000a900460ff161562000522576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005199062000af0565b60405180910390fd5b62000533816200060460201b60201c565b6001600860006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415620005fd57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505062000601565b3390505b90565b6040518060800160405280604f815260200162006451604f91398051906020012081805190602001206040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525080519060200120306200067b620006b360201b60201c565b60001b6040516020016200069495949392919062000b72565b6040516020818303038152906040528051906020012060098190555050565b6000804690508091505090565b828054620006ce90620009c1565b90600052602060002090601f016020900481019282620006f257600085556200073e565b82601f106200070d57805160ff19168380011785556200073e565b828001600101855582156200073e579182015b828111156200073d57825182559160200191906001019062000720565b5b5090506200074d919062000751565b5090565b5b808211156200076c57600081600090555060010162000752565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620007d9826200078e565b810181811067ffffffffffffffff82111715620007fb57620007fa6200079f565b5b80604052505050565b60006200081062000770565b90506200081e8282620007ce565b919050565b600067ffffffffffffffff8211156200084157620008406200079f565b5b6200084c826200078e565b9050602081019050919050565b60005b83811015620008795780820151818401526020810190506200085c565b8381111562000889576000848401525b50505050565b6000620008a6620008a08462000823565b62000804565b905082815260208101848484011115620008c557620008c462000789565b5b620008d284828562000859565b509392505050565b600082601f830112620008f257620008f162000784565b5b8151620009048482602086016200088f565b91505092915050565b600080604083850312156200092757620009266200077a565b5b600083015167ffffffffffffffff8111156200094857620009476200077f565b5b6200095685828601620008da565b925050602083015167ffffffffffffffff8111156200097a57620009796200077f565b5b6200098885828601620008da565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009da57607f821691505b60208210811415620009f157620009f062000992565b5b50919050565b600082825260208201905092915050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b600062000a66602783620009f7565b915062000a738262000a08565b604082019050919050565b6000602082019050818103600083015262000a998162000a57565b9050919050565b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b600062000ad8600e83620009f7565b915062000ae58262000aa0565b602082019050919050565b6000602082019050818103600083015262000b0b8162000ac9565b9050919050565b6000819050919050565b62000b278162000b12565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b5a8262000b2d565b9050919050565b62000b6c8162000b4d565b82525050565b600060a08201905062000b89600083018862000b1c565b62000b98602083018762000b1c565b62000ba7604083018662000b1c565b62000bb6606083018562000b61565b62000bc5608083018462000b1c565b9695505050505050565b60805161585862000bf960003960008181612ccd01528181612cf601526133b701526158586000f3fe6080604052600436106102675760003560e01c80637489731511610144578063c1e28507116100b6578063d7224ba01161007a578063d7224ba0146108cd578063e1b775d2146108f8578063e8a3d48514610923578063e985e9c51461094e578063f2fde38b1461098b578063f366afc9146109b457610267565b8063c1e28507146107ea578063c87b56dd14610813578063ccb4807b14610850578063ceabb7bd14610879578063d547cfb7146108a257610267565b806395d89b411161010857806395d89b4114610702578063978e03e21461072d578063a0bcfc7f14610744578063a22cb4651461076d578063b293631914610796578063b88d4fde146107c157610267565b8063748973151461062f578063755edd171461065857806376b344301461068157806378e97925146106ac5780638da5cb5b146106d757610267565b80632b581320116101dd5780633e0a322d116101a15780633e0a322d1461050f57806342842e0e146105385780634f6ccce7146105615780636352211e1461059e57806370a08231146105db578063715018a61461061857610267565b80632b581320146104285780632d0335ab146104535780632f745c59146104905780633408e470146104cd5780633ccfd60b146104f857610267565b80630c53c51c1161022f5780630c53c51c146103445780630f7e59701461037457806312cfa1161461039f57806318160ddd146103a957806320379ee5146103d457806323b872dd146103ff57610267565b806301ffc9a71461026c57806306e98f8c146102a957806306fdde03146102b3578063081812fc146102de578063095ea7b31461031b575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613931565b6109cb565b6040516102a09190613979565b60405180910390f35b6102b1610b15565b005b3480156102bf57600080fd5b506102c8610baa565b6040516102d59190613a2d565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190613a85565b610c3c565b6040516103129190613af3565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613b3a565b610cc1565b005b61035e60048036038101906103599190613d1e565b610dda565b60405161036b9190613e0a565b60405180910390f35b34801561038057600080fd5b5061038961104c565b6040516103969190613a2d565b60405180910390f35b6103a7611085565b005b3480156103b557600080fd5b506103be61111a565b6040516103cb9190613e3b565b60405180910390f35b3480156103e057600080fd5b506103e9611123565b6040516103f69190613e65565b60405180910390f35b34801561040b57600080fd5b5061042660048036038101906104219190613e80565b61112d565b005b34801561043457600080fd5b5061043d61113d565b60405161044a9190613e3b565b60405180910390f35b34801561045f57600080fd5b5061047a60048036038101906104759190613ed3565b611143565b6040516104879190613e3b565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613b3a565b61118c565b6040516104c49190613e3b565b60405180910390f35b3480156104d957600080fd5b506104e261138a565b6040516104ef9190613e3b565b60405180910390f35b34801561050457600080fd5b5061050d611397565b005b34801561051b57600080fd5b5061053660048036038101906105319190613a85565b611463565b005b34801561054457600080fd5b5061055f600480360381019061055a9190613e80565b6114e9565b005b34801561056d57600080fd5b5061058860048036038101906105839190613a85565b611509565b6040516105959190613e3b565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c09190613a85565b61155c565b6040516105d29190613af3565b60405180910390f35b3480156105e757600080fd5b5061060260048036038101906105fd9190613ed3565b611572565b60405161060f9190613e3b565b60405180910390f35b34801561062457600080fd5b5061062d61165b565b005b34801561063b57600080fd5b5061065660048036038101906106519190613f00565b6116e3565b005b34801561066457600080fd5b5061067f600480360381019061067a9190613ed3565b611807565b005b34801561068d57600080fd5b506106966118dc565b6040516106a39190613a2d565b60405180910390f35b3480156106b857600080fd5b506106c161196a565b6040516106ce9190613e3b565b60405180910390f35b3480156106e357600080fd5b506106ec611970565b6040516106f99190613af3565b60405180910390f35b34801561070e57600080fd5b5061071761199a565b6040516107249190613a2d565b60405180910390f35b34801561073957600080fd5b50610742611a2c565b005b34801561075057600080fd5b5061076b60048036038101906107669190613fe1565b611ac5565b005b34801561077957600080fd5b50610794600480360381019061078f9190614056565b611bab565b005b3480156107a257600080fd5b506107ab611d2c565b6040516107b89190613e3b565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190614096565b611d32565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613a85565b611d8e565b005b34801561081f57600080fd5b5061083a60048036038101906108359190613a85565b611e14565b6040516108479190613a2d565b60405180910390f35b34801561085c57600080fd5b5061087760048036038101906108729190613fe1565b611e7b565b005b34801561088557600080fd5b506108a0600480360381019061089b9190613fe1565b611f11565b005b3480156108ae57600080fd5b506108b7611ff7565b6040516108c49190613a2d565b60405180910390f35b3480156108d957600080fd5b506108e2612085565b6040516108ef9190613e3b565b60405180910390f35b34801561090457600080fd5b5061090d61208b565b60405161091a9190613e3b565b60405180910390f35b34801561092f57600080fd5b50610938612091565b6040516109459190613a2d565b60405180910390f35b34801561095a57600080fd5b5061097560048036038101906109709190614119565b61211f565b6040516109829190613979565b60405180910390f35b34801561099757600080fd5b506109b260048036038101906109ad9190613ed3565b6121b3565b005b3480156109c057600080fd5b506109c96122ab565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afe57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b0e5750610b0d826123ff565b5b9050919050565b601454421015610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b51906141a5565b60405180910390fd5b6013543414610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9590614211565b60405180910390fd5b610ba86009612469565b565b606060018054610bb990614260565b80601f0160208091040260200160405190810160405280929190818152602001828054610be590614260565b8015610c325780601f10610c0757610100808354040283529160200191610c32565b820191906000526020600020905b815481529060010190602001808311610c1557829003601f168201915b5050505050905090565b6000610c47826124d3565b610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d90614304565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ccc8261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3490614396565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d5c6124e0565b73ffffffffffffffffffffffffffffffffffffffff161480610d8b5750610d8a81610d856124e0565b61211f565b5b610dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc190614428565b60405180910390fd5b610dd58383836124ef565b505050565b606060006040518060600160405280600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e5d87828787876125a1565b610e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e93906144ba565b60405180910390fd5b610eef6001600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126aa90919063ffffffff16565b600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f65939291906144fb565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f9a9291906145bd565b604051602081830303815290604052604051610fb691906145e5565b6000604051808303816000865af19150503d8060008114610ff3576040519150601f19603f3d011682016040523d82523d6000602084013e610ff8565b606091505b50915091508161103d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103490614648565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6014544210156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c1906141a5565b60405180910390fd5b601254341461110e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611105906146b4565b60405180910390fd5b6111186003612469565b565b60008054905090565b6000600954905090565b6111388383836126c0565b505050565b60135481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061119783611572565b82106111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf90614746565b60405180910390fd5b60006111e261111a565b905060008060005b83811015611348576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112dc57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113345786841415611325578195505050505050611384565b838061133090614795565b9450505b50808061134090614795565b9150506111ea565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90614850565b60405180910390fd5b92915050565b6000804690508091505090565b61139f6124e0565b73ffffffffffffffffffffffffffffffffffffffff166113bd611970565b73ffffffffffffffffffffffffffffffffffffffff1614611413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140a906148bc565b60405180910390fd5b61141b611970565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611460573d6000803e3d6000fd5b50565b61146b6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611489611970565b73ffffffffffffffffffffffffffffffffffffffff16146114df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d6906148bc565b60405180910390fd5b8060148190555050565b61150483838360405180602001604052806000815250611d32565b505050565b600061151361111a565b8210611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b9061494e565b60405180910390fd5b819050919050565b600061156782612c79565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da906149e0565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116636124e0565b73ffffffffffffffffffffffffffffffffffffffff16611681611970565b73ffffffffffffffffffffffffffffffffffffffff16146116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce906148bc565b60405180910390fd5b6116e16000612e7c565b565b6116eb6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611709611970565b73ffffffffffffffffffffffffffffffffffffffff161461175f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611756906148bc565b60405180910390fd5b60148211156117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90614a4c565b60405180910390fd5b600d54826117af61111a565b6117b99190614a6c565b106117f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f090614b0e565b60405180910390fd5b6118038183612f42565b5050565b61180f6124e0565b73ffffffffffffffffffffffffffffffffffffffff1661182d611970565b73ffffffffffffffffffffffffffffffffffffffff1614611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187a906148bc565b60405180910390fd5b600d5461188e61111a565b106118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c590614b0e565b60405180910390fd5b6118d9816001612f42565b50565b601080546118e990614260565b80601f016020809104026020016040519081016040528092919081815260200182805461191590614260565b80156119625780601f1061193757610100808354040283529160200191611962565b820191906000526020600020905b81548152906001019060200180831161194557829003601f168201915b505050505081565b60145481565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546119a990614260565b80601f01602080910402602001604051908101604052809291908181526020018280546119d590614260565b8015611a225780601f106119f757610100808354040283529160200191611a22565b820191906000526020600020905b815481529060010190602001808311611a0557829003601f168201915b5050505050905090565b611a346124e0565b73ffffffffffffffffffffffffffffffffffffffff16611a52611970565b73ffffffffffffffffffffffffffffffffffffffff1614611aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9f906148bc565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b611acd6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611aeb611970565b73ffffffffffffffffffffffffffffffffffffffff1614611b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38906148bc565b60405180910390fd5b600f60009054906101000a900460ff1615611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8890614b7a565b60405180910390fd5b8060119080519060200190611ba79291906137e8565b5050565b611bb36124e0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1890614be6565b60405180910390fd5b8060066000611c2e6124e0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611cdb6124e0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d209190613979565b60405180910390a35050565b60125481565b611d3d8484846126c0565b611d4984848484612f60565b611d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7f90614c78565b60405180910390fd5b50505050565b611d966124e0565b73ffffffffffffffffffffffffffffffffffffffff16611db4611970565b73ffffffffffffffffffffffffffffffffffffffff1614611e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e01906148bc565b60405180910390fd5b8060178190555050565b6060601754421015611e48576010604051602001611e329190614d37565b6040516020818303038152906040529050611e76565b6011611e53836130e8565b604051602001611e64929190614dcb565b60405160208183030381529060405290505b919050565b611e836124e0565b73ffffffffffffffffffffffffffffffffffffffff16611ea1611970565b73ffffffffffffffffffffffffffffffffffffffff1614611ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eee906148bc565b60405180910390fd5b80600c9080519060200190611f0d9291906137e8565b5050565b611f196124e0565b73ffffffffffffffffffffffffffffffffffffffff16611f37611970565b73ffffffffffffffffffffffffffffffffffffffff1614611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f84906148bc565b60405180910390fd5b600f60009054906101000a900460ff1615611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614b7a565b60405180910390fd5b8060109080519060200190611ff39291906137e8565b5050565b6011805461200490614260565b80601f016020809104026020016040519081016040528092919081815260200182805461203090614260565b801561207d5780601f106120525761010080835404028352916020019161207d565b820191906000526020600020905b81548152906001019060200180831161206057829003601f168201915b505050505081565b60075481565b60175481565b600c805461209e90614260565b80601f01602080910402602001604051908101604052809291908181526020018280546120ca90614260565b80156121175780601f106120ec57610100808354040283529160200191612117565b820191906000526020600020905b8154815290600101906020018083116120fa57829003601f168201915b505050505081565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121bb6124e0565b73ffffffffffffffffffffffffffffffffffffffff166121d9611970565b73ffffffffffffffffffffffffffffffffffffffff161461222f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612226906148bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561229f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229690614e6c565b60405180910390fd5b6122a881612e7c565b50565b6014544210156122f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e7906141a5565b60405180910390fd5b60006123026122fd6124e0565b611572565b14612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233990614ed8565b60405180910390fd5b61234c6001612469565b565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156123f857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506123fc565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600e548161247561111a565b61247f9190614a6c565b106124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b690614f44565b60405180910390fd5b6124d06124ca6124e0565b82612f42565b50565b6000805482109050919050565b60006124ea61234e565b905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415612612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260990614fd6565b60405180910390fd5b600161262561262087613249565b6132b1565b838686604051600081526020016040526040516126459493929190615005565b6020604051602081039080840390855afa158015612667573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836126b89190614a6c565b905092915050565b60006126cb82612c79565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166126f26124e0565b73ffffffffffffffffffffffffffffffffffffffff16148061274e57506127176124e0565b73ffffffffffffffffffffffffffffffffffffffff1661273684610c3c565b73ffffffffffffffffffffffffffffffffffffffff16145b8061276a575061276982600001516127646124e0565b61211f565b5b9050806127ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a3906150bc565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461281e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128159061514e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561288e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612885906151e0565b60405180910390fd5b61289b85858560016132ea565b6128ab60008484600001516124ef565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612919919061521c565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166129bd9190615250565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612ac39190614a6c565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612c0957612b39816124d3565b15612c08576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c7186868660016132f0565b505050505050565b612c8161386e565b612c8a826124d3565b612cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc090615308565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310612d2d5760017f000000000000000000000000000000000000000000000000000000000000000084612d209190615328565b612d2a9190614a6c565b90505b60008390505b818110612e3b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e2757809350505050612e77565b508080612e339061535c565b915050612d33565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6e906153f8565b60405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f5c8282604051806020016040528060008152506132f6565b5050565b6000612f818473ffffffffffffffffffffffffffffffffffffffff166137d5565b156130db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612faa6124e0565b8786866040518563ffffffff1660e01b8152600401612fcc9493929190615418565b6020604051808303816000875af192505050801561300857506040513d601f19601f820116820180604052508101906130059190615479565b60015b61308b573d8060008114613038576040519150601f19603f3d011682016040523d82523d6000602084013e61303d565b606091505b50600081511415613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307a90614c78565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130e0565b600190505b949350505050565b60606000821415613130576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613244565b600082905060005b6000821461316257808061314b90614795565b915050600a8261315b91906154d5565b9150613138565b60008167ffffffffffffffff81111561317e5761317d613b84565b5b6040519080825280601f01601f1916602001820160405280156131b05781602001600182028036833780820191505090505b5090505b6000851461323d576001826131c99190615328565b9150600a856131d89190615506565b60306131e49190614a6c565b60f81b8183815181106131fa576131f9615537565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561323691906154d5565b94506131b4565b8093505050505b919050565b60006040518060800160405280604381526020016157e06043913980519060200120826000015183602001518460400151805190602001206040516020016132949493929190615566565b604051602081830303815290604052805190602001209050919050565b60006132bb611123565b826040516020016132cd929190615618565b604051602081830303815290604052805190602001209050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561336c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613363906156c1565b60405180910390fd5b613375816124d3565b156133b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ac9061572d565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115613418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340f906157bf565b60405180910390fd5b61342560008583866132ea565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516135229190615250565b6fffffffffffffffffffffffffffffffff1681526020018583602001516135499190615250565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156137b857818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137586000888488612f60565b613797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378e90614c78565b60405180910390fd5b81806137a290614795565b92505080806137b090614795565b9150506136e7565b50806000819055506137cd60008785886132f0565b505050505050565b600080823b905060008111915050919050565b8280546137f490614260565b90600052602060002090601f016020900481019282613816576000855561385d565b82601f1061382f57805160ff191683800117855561385d565b8280016001018555821561385d579182015b8281111561385c578251825591602001919060010190613841565b5b50905061386a91906138a8565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b808211156138c15760008160009055506001016138a9565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61390e816138d9565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b600060208284031215613947576139466138cf565b5b60006139558482850161391c565b91505092915050565b60008115159050919050565b6139738161395e565b82525050565b600060208201905061398e600083018461396a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139ce5780820151818401526020810190506139b3565b838111156139dd576000848401525b50505050565b6000601f19601f8301169050919050565b60006139ff82613994565b613a09818561399f565b9350613a198185602086016139b0565b613a22816139e3565b840191505092915050565b60006020820190508181036000830152613a4781846139f4565b905092915050565b6000819050919050565b613a6281613a4f565b8114613a6d57600080fd5b50565b600081359050613a7f81613a59565b92915050565b600060208284031215613a9b57613a9a6138cf565b5b6000613aa984828501613a70565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613add82613ab2565b9050919050565b613aed81613ad2565b82525050565b6000602082019050613b086000830184613ae4565b92915050565b613b1781613ad2565b8114613b2257600080fd5b50565b600081359050613b3481613b0e565b92915050565b60008060408385031215613b5157613b506138cf565b5b6000613b5f85828601613b25565b9250506020613b7085828601613a70565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bbc826139e3565b810181811067ffffffffffffffff82111715613bdb57613bda613b84565b5b80604052505050565b6000613bee6138c5565b9050613bfa8282613bb3565b919050565b600067ffffffffffffffff821115613c1a57613c19613b84565b5b613c23826139e3565b9050602081019050919050565b82818337600083830152505050565b6000613c52613c4d84613bff565b613be4565b905082815260208101848484011115613c6e57613c6d613b7f565b5b613c79848285613c30565b509392505050565b600082601f830112613c9657613c95613b7a565b5b8135613ca6848260208601613c3f565b91505092915050565b6000819050919050565b613cc281613caf565b8114613ccd57600080fd5b50565b600081359050613cdf81613cb9565b92915050565b600060ff82169050919050565b613cfb81613ce5565b8114613d0657600080fd5b50565b600081359050613d1881613cf2565b92915050565b600080600080600060a08688031215613d3a57613d396138cf565b5b6000613d4888828901613b25565b955050602086013567ffffffffffffffff811115613d6957613d686138d4565b5b613d7588828901613c81565b9450506040613d8688828901613cd0565b9350506060613d9788828901613cd0565b9250506080613da888828901613d09565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613ddc82613db5565b613de68185613dc0565b9350613df68185602086016139b0565b613dff816139e3565b840191505092915050565b60006020820190508181036000830152613e248184613dd1565b905092915050565b613e3581613a4f565b82525050565b6000602082019050613e506000830184613e2c565b92915050565b613e5f81613caf565b82525050565b6000602082019050613e7a6000830184613e56565b92915050565b600080600060608486031215613e9957613e986138cf565b5b6000613ea786828701613b25565b9350506020613eb886828701613b25565b9250506040613ec986828701613a70565b9150509250925092565b600060208284031215613ee957613ee86138cf565b5b6000613ef784828501613b25565b91505092915050565b60008060408385031215613f1757613f166138cf565b5b6000613f2585828601613a70565b9250506020613f3685828601613b25565b9150509250929050565b600067ffffffffffffffff821115613f5b57613f5a613b84565b5b613f64826139e3565b9050602081019050919050565b6000613f84613f7f84613f40565b613be4565b905082815260208101848484011115613fa057613f9f613b7f565b5b613fab848285613c30565b509392505050565b600082601f830112613fc857613fc7613b7a565b5b8135613fd8848260208601613f71565b91505092915050565b600060208284031215613ff757613ff66138cf565b5b600082013567ffffffffffffffff811115614015576140146138d4565b5b61402184828501613fb3565b91505092915050565b6140338161395e565b811461403e57600080fd5b50565b6000813590506140508161402a565b92915050565b6000806040838503121561406d5761406c6138cf565b5b600061407b85828601613b25565b925050602061408c85828601614041565b9150509250929050565b600080600080608085870312156140b0576140af6138cf565b5b60006140be87828801613b25565b94505060206140cf87828801613b25565b93505060406140e087828801613a70565b925050606085013567ffffffffffffffff811115614101576141006138d4565b5b61410d87828801613c81565b91505092959194509250565b600080604083850312156141305761412f6138cf565b5b600061413e85828601613b25565b925050602061414f85828601613b25565b9150509250929050565b7f49742773206e6f742074696d6520796574000000000000000000000000000000600082015250565b600061418f60118361399f565b915061419a82614159565b602082019050919050565b600060208201905081810360008301526141be81614182565b9050919050565b7f57726f6e6720616d6f756e7420666f7220390000000000000000000000000000600082015250565b60006141fb60128361399f565b9150614206826141c5565b602082019050919050565b6000602082019050818103600083015261422a816141ee565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061427857607f821691505b6020821081141561428c5761428b614231565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006142ee602d8361399f565b91506142f982614292565b604082019050919050565b6000602082019050818103600083015261431d816142e1565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061438060228361399f565b915061438b82614324565b604082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061441260398361399f565b915061441d826143b6565b604082019050919050565b6000602082019050818103600083015261444181614405565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006144a460218361399f565b91506144af82614448565b604082019050919050565b600060208201905081810360008301526144d381614497565b9050919050565b60006144e582613ab2565b9050919050565b6144f5816144da565b82525050565b60006060820190506145106000830186613ae4565b61451d60208301856144ec565b818103604083015261452f8184613dd1565b9050949350505050565b600081905092915050565b600061454f82613db5565b6145598185614539565b93506145698185602086016139b0565b80840191505092915050565b60008160601b9050919050565b600061458d82614575565b9050919050565b600061459f82614582565b9050919050565b6145b76145b282613ad2565b614594565b82525050565b60006145c98285614544565b91506145d582846145a6565b6014820191508190509392505050565b60006145f18284614544565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000614632601c8361399f565b915061463d826145fc565b602082019050919050565b6000602082019050818103600083015261466181614625565b9050919050565b7f57726f6e6720616d6f756e7420666f7220330000000000000000000000000000600082015250565b600061469e60128361399f565b91506146a982614668565b602082019050919050565b600060208201905081810360008301526146cd81614691565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b600061473060228361399f565b915061473b826146d4565b604082019050919050565b6000602082019050818103600083015261475f81614723565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147a082613a4f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147d3576147d2614766565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b600061483a602e8361399f565b9150614845826147de565b604082019050919050565b600060208201905081810360008301526148698161482d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148a660208361399f565b91506148b182614870565b602082019050919050565b600060208201905081810360008301526148d581614899565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b600061493860238361399f565b9150614943826148dc565b604082019050919050565b600060208201905081810360008301526149678161492b565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006149ca602b8361399f565b91506149d58261496e565b604082019050919050565b600060208201905081810360008301526149f9816149bd565b9050919050565b7f4d6178203230205065722054582e000000000000000000000000000000000000600082015250565b6000614a36600e8361399f565b9150614a4182614a00565b602082019050919050565b60006020820190508181036000830152614a6581614a29565b9050919050565b6000614a7782613a4f565b9150614a8283613a4f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ab757614ab6614766565b5b828201905092915050565b7f4d617820537570706c7920526561636865640000000000000000000000000000600082015250565b6000614af860128361399f565b9150614b0382614ac2565b602082019050919050565b60006020820190508181036000830152614b2781614aeb565b9050919050565b7f546865206d6574616461746120697320616c72656164792066726f7a656e0000600082015250565b6000614b64601e8361399f565b9150614b6f82614b2e565b602082019050919050565b60006020820190508181036000830152614b9381614b57565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614bd0601a8361399f565b9150614bdb82614b9a565b602082019050919050565b60006020820190508181036000830152614bff81614bc3565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614c6260338361399f565b9150614c6d82614c06565b604082019050919050565b60006020820190508181036000830152614c9181614c55565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614cc581614260565b614ccf8186614c98565b94506001821660008114614cea5760018114614cfb57614d2e565b60ff19831686528186019350614d2e565b614d0485614ca3565b60005b83811015614d2657815481890152600182019150602081019050614d07565b838801955050505b50505092915050565b6000614d438284614cb8565b915081905092915050565b6000614d5982613994565b614d638185614c98565b9350614d738185602086016139b0565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614db5600583614c98565b9150614dc082614d7f565b600582019050919050565b6000614dd78285614cb8565b9150614de38284614d4e565b9150614dee82614da8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e5660268361399f565b9150614e6182614dfa565b604082019050919050565b60006020820190508181036000830152614e8581614e49565b9050919050565b7f596f7527766520616c726561647920436c61696d656420467265650000000000600082015250565b6000614ec2601b8361399f565b9150614ecd82614e8c565b602082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f4d6178205075626c696320537570706c79205265616368656400000000000000600082015250565b6000614f2e60198361399f565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614fc060258361399f565b9150614fcb82614f64565b604082019050919050565b60006020820190508181036000830152614fef81614fb3565b9050919050565b614fff81613ce5565b82525050565b600060808201905061501a6000830187613e56565b6150276020830186614ff6565b6150346040830185613e56565b6150416060830184613e56565b95945050505050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006150a660328361399f565b91506150b18261504a565b604082019050919050565b600060208201905081810360008301526150d581615099565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b600061513860268361399f565b9150615143826150dc565b604082019050919050565b600060208201905081810360008301526151678161512b565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006151ca60258361399f565b91506151d58261516e565b604082019050919050565b600060208201905081810360008301526151f9816151bd565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061522782615200565b915061523283615200565b92508282101561524557615244614766565b5b828203905092915050565b600061525b82615200565b915061526683615200565b9250826fffffffffffffffffffffffffffffffff0382111561528b5761528a614766565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006152f2602a8361399f565b91506152fd82615296565b604082019050919050565b60006020820190508181036000830152615321816152e5565b9050919050565b600061533382613a4f565b915061533e83613a4f565b92508282101561535157615350614766565b5b828203905092915050565b600061536782613a4f565b9150600082141561537b5761537a614766565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006153e2602f8361399f565b91506153ed82615386565b604082019050919050565b60006020820190508181036000830152615411816153d5565b9050919050565b600060808201905061542d6000830187613ae4565b61543a6020830186613ae4565b6154476040830185613e2c565b81810360608301526154598184613dd1565b905095945050505050565b60008151905061547381613905565b92915050565b60006020828403121561548f5761548e6138cf565b5b600061549d84828501615464565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006154e082613a4f565b91506154eb83613a4f565b9250826154fb576154fa6154a6565b5b828204905092915050565b600061551182613a4f565b915061551c83613a4f565b92508261552c5761552b6154a6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060808201905061557b6000830187613e56565b6155886020830186613e2c565b6155956040830185613ae4565b6155a26060830184613e56565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006155e1600283614c98565b91506155ec826155ab565b600282019050919050565b6000819050919050565b61561261560d82613caf565b6155f7565b82525050565b6000615623826155d4565b915061562f8285615601565b60208201915061563f8284615601565b6020820191508190509392505050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006156ab60218361399f565b91506156b68261564f565b604082019050919050565b600060208201905081810360008301526156da8161569e565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615717601d8361399f565b9150615722826156e1565b602082019050919050565b600060208201905081810360008301526157468161570a565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006157a960228361399f565b91506157b48261574d565b604082019050919050565b600060208201905081810360008301526157d88161579c565b905091905056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220677fdde2e6069b4c9a31226bf3c31ce67d95f201d36c214f64f5f30d90ab89d564736f6c634300080b0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102675760003560e01c80637489731511610144578063c1e28507116100b6578063d7224ba01161007a578063d7224ba0146108cd578063e1b775d2146108f8578063e8a3d48514610923578063e985e9c51461094e578063f2fde38b1461098b578063f366afc9146109b457610267565b8063c1e28507146107ea578063c87b56dd14610813578063ccb4807b14610850578063ceabb7bd14610879578063d547cfb7146108a257610267565b806395d89b411161010857806395d89b4114610702578063978e03e21461072d578063a0bcfc7f14610744578063a22cb4651461076d578063b293631914610796578063b88d4fde146107c157610267565b8063748973151461062f578063755edd171461065857806376b344301461068157806378e97925146106ac5780638da5cb5b146106d757610267565b80632b581320116101dd5780633e0a322d116101a15780633e0a322d1461050f57806342842e0e146105385780634f6ccce7146105615780636352211e1461059e57806370a08231146105db578063715018a61461061857610267565b80632b581320146104285780632d0335ab146104535780632f745c59146104905780633408e470146104cd5780633ccfd60b146104f857610267565b80630c53c51c1161022f5780630c53c51c146103445780630f7e59701461037457806312cfa1161461039f57806318160ddd146103a957806320379ee5146103d457806323b872dd146103ff57610267565b806301ffc9a71461026c57806306e98f8c146102a957806306fdde03146102b3578063081812fc146102de578063095ea7b31461031b575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613931565b6109cb565b6040516102a09190613979565b60405180910390f35b6102b1610b15565b005b3480156102bf57600080fd5b506102c8610baa565b6040516102d59190613a2d565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190613a85565b610c3c565b6040516103129190613af3565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190613b3a565b610cc1565b005b61035e60048036038101906103599190613d1e565b610dda565b60405161036b9190613e0a565b60405180910390f35b34801561038057600080fd5b5061038961104c565b6040516103969190613a2d565b60405180910390f35b6103a7611085565b005b3480156103b557600080fd5b506103be61111a565b6040516103cb9190613e3b565b60405180910390f35b3480156103e057600080fd5b506103e9611123565b6040516103f69190613e65565b60405180910390f35b34801561040b57600080fd5b5061042660048036038101906104219190613e80565b61112d565b005b34801561043457600080fd5b5061043d61113d565b60405161044a9190613e3b565b60405180910390f35b34801561045f57600080fd5b5061047a60048036038101906104759190613ed3565b611143565b6040516104879190613e3b565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613b3a565b61118c565b6040516104c49190613e3b565b60405180910390f35b3480156104d957600080fd5b506104e261138a565b6040516104ef9190613e3b565b60405180910390f35b34801561050457600080fd5b5061050d611397565b005b34801561051b57600080fd5b5061053660048036038101906105319190613a85565b611463565b005b34801561054457600080fd5b5061055f600480360381019061055a9190613e80565b6114e9565b005b34801561056d57600080fd5b5061058860048036038101906105839190613a85565b611509565b6040516105959190613e3b565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c09190613a85565b61155c565b6040516105d29190613af3565b60405180910390f35b3480156105e757600080fd5b5061060260048036038101906105fd9190613ed3565b611572565b60405161060f9190613e3b565b60405180910390f35b34801561062457600080fd5b5061062d61165b565b005b34801561063b57600080fd5b5061065660048036038101906106519190613f00565b6116e3565b005b34801561066457600080fd5b5061067f600480360381019061067a9190613ed3565b611807565b005b34801561068d57600080fd5b506106966118dc565b6040516106a39190613a2d565b60405180910390f35b3480156106b857600080fd5b506106c161196a565b6040516106ce9190613e3b565b60405180910390f35b3480156106e357600080fd5b506106ec611970565b6040516106f99190613af3565b60405180910390f35b34801561070e57600080fd5b5061071761199a565b6040516107249190613a2d565b60405180910390f35b34801561073957600080fd5b50610742611a2c565b005b34801561075057600080fd5b5061076b60048036038101906107669190613fe1565b611ac5565b005b34801561077957600080fd5b50610794600480360381019061078f9190614056565b611bab565b005b3480156107a257600080fd5b506107ab611d2c565b6040516107b89190613e3b565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190614096565b611d32565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613a85565b611d8e565b005b34801561081f57600080fd5b5061083a60048036038101906108359190613a85565b611e14565b6040516108479190613a2d565b60405180910390f35b34801561085c57600080fd5b5061087760048036038101906108729190613fe1565b611e7b565b005b34801561088557600080fd5b506108a0600480360381019061089b9190613fe1565b611f11565b005b3480156108ae57600080fd5b506108b7611ff7565b6040516108c49190613a2d565b60405180910390f35b3480156108d957600080fd5b506108e2612085565b6040516108ef9190613e3b565b60405180910390f35b34801561090457600080fd5b5061090d61208b565b60405161091a9190613e3b565b60405180910390f35b34801561092f57600080fd5b50610938612091565b6040516109459190613a2d565b60405180910390f35b34801561095a57600080fd5b5061097560048036038101906109709190614119565b61211f565b6040516109829190613979565b60405180910390f35b34801561099757600080fd5b506109b260048036038101906109ad9190613ed3565b6121b3565b005b3480156109c057600080fd5b506109c96122ab565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afe57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b0e5750610b0d826123ff565b5b9050919050565b601454421015610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b51906141a5565b60405180910390fd5b6013543414610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9590614211565b60405180910390fd5b610ba86009612469565b565b606060018054610bb990614260565b80601f0160208091040260200160405190810160405280929190818152602001828054610be590614260565b8015610c325780601f10610c0757610100808354040283529160200191610c32565b820191906000526020600020905b815481529060010190602001808311610c1557829003601f168201915b5050505050905090565b6000610c47826124d3565b610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d90614304565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ccc8261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3490614396565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d5c6124e0565b73ffffffffffffffffffffffffffffffffffffffff161480610d8b5750610d8a81610d856124e0565b61211f565b5b610dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc190614428565b60405180910390fd5b610dd58383836124ef565b505050565b606060006040518060600160405280600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610e5d87828787876125a1565b610e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e93906144ba565b60405180910390fd5b610eef6001600a60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126aa90919063ffffffff16565b600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610f65939291906144fb565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610f9a9291906145bd565b604051602081830303815290604052604051610fb691906145e5565b6000604051808303816000865af19150503d8060008114610ff3576040519150601f19603f3d011682016040523d82523d6000602084013e610ff8565b606091505b50915091508161103d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103490614648565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6014544210156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c1906141a5565b60405180910390fd5b601254341461110e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611105906146b4565b60405180910390fd5b6111186003612469565b565b60008054905090565b6000600954905090565b6111388383836126c0565b505050565b60135481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061119783611572565b82106111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf90614746565b60405180910390fd5b60006111e261111a565b905060008060005b83811015611348576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112dc57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156113345786841415611325578195505050505050611384565b838061133090614795565b9450505b50808061134090614795565b9150506111ea565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90614850565b60405180910390fd5b92915050565b6000804690508091505090565b61139f6124e0565b73ffffffffffffffffffffffffffffffffffffffff166113bd611970565b73ffffffffffffffffffffffffffffffffffffffff1614611413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140a906148bc565b60405180910390fd5b61141b611970565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611460573d6000803e3d6000fd5b50565b61146b6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611489611970565b73ffffffffffffffffffffffffffffffffffffffff16146114df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d6906148bc565b60405180910390fd5b8060148190555050565b61150483838360405180602001604052806000815250611d32565b505050565b600061151361111a565b8210611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b9061494e565b60405180910390fd5b819050919050565b600061156782612c79565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115da906149e0565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6116636124e0565b73ffffffffffffffffffffffffffffffffffffffff16611681611970565b73ffffffffffffffffffffffffffffffffffffffff16146116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce906148bc565b60405180910390fd5b6116e16000612e7c565b565b6116eb6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611709611970565b73ffffffffffffffffffffffffffffffffffffffff161461175f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611756906148bc565b60405180910390fd5b60148211156117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90614a4c565b60405180910390fd5b600d54826117af61111a565b6117b99190614a6c565b106117f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f090614b0e565b60405180910390fd5b6118038183612f42565b5050565b61180f6124e0565b73ffffffffffffffffffffffffffffffffffffffff1661182d611970565b73ffffffffffffffffffffffffffffffffffffffff1614611883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187a906148bc565b60405180910390fd5b600d5461188e61111a565b106118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c590614b0e565b60405180910390fd5b6118d9816001612f42565b50565b601080546118e990614260565b80601f016020809104026020016040519081016040528092919081815260200182805461191590614260565b80156119625780601f1061193757610100808354040283529160200191611962565b820191906000526020600020905b81548152906001019060200180831161194557829003601f168201915b505050505081565b60145481565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546119a990614260565b80601f01602080910402602001604051908101604052809291908181526020018280546119d590614260565b8015611a225780601f106119f757610100808354040283529160200191611a22565b820191906000526020600020905b815481529060010190602001808311611a0557829003601f168201915b5050505050905090565b611a346124e0565b73ffffffffffffffffffffffffffffffffffffffff16611a52611970565b73ffffffffffffffffffffffffffffffffffffffff1614611aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9f906148bc565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b611acd6124e0565b73ffffffffffffffffffffffffffffffffffffffff16611aeb611970565b73ffffffffffffffffffffffffffffffffffffffff1614611b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b38906148bc565b60405180910390fd5b600f60009054906101000a900460ff1615611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8890614b7a565b60405180910390fd5b8060119080519060200190611ba79291906137e8565b5050565b611bb36124e0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1890614be6565b60405180910390fd5b8060066000611c2e6124e0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611cdb6124e0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d209190613979565b60405180910390a35050565b60125481565b611d3d8484846126c0565b611d4984848484612f60565b611d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7f90614c78565b60405180910390fd5b50505050565b611d966124e0565b73ffffffffffffffffffffffffffffffffffffffff16611db4611970565b73ffffffffffffffffffffffffffffffffffffffff1614611e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e01906148bc565b60405180910390fd5b8060178190555050565b6060601754421015611e48576010604051602001611e329190614d37565b6040516020818303038152906040529050611e76565b6011611e53836130e8565b604051602001611e64929190614dcb565b60405160208183030381529060405290505b919050565b611e836124e0565b73ffffffffffffffffffffffffffffffffffffffff16611ea1611970565b73ffffffffffffffffffffffffffffffffffffffff1614611ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eee906148bc565b60405180910390fd5b80600c9080519060200190611f0d9291906137e8565b5050565b611f196124e0565b73ffffffffffffffffffffffffffffffffffffffff16611f37611970565b73ffffffffffffffffffffffffffffffffffffffff1614611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f84906148bc565b60405180910390fd5b600f60009054906101000a900460ff1615611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614b7a565b60405180910390fd5b8060109080519060200190611ff39291906137e8565b5050565b6011805461200490614260565b80601f016020809104026020016040519081016040528092919081815260200182805461203090614260565b801561207d5780601f106120525761010080835404028352916020019161207d565b820191906000526020600020905b81548152906001019060200180831161206057829003601f168201915b505050505081565b60075481565b60175481565b600c805461209e90614260565b80601f01602080910402602001604051908101604052809291908181526020018280546120ca90614260565b80156121175780601f106120ec57610100808354040283529160200191612117565b820191906000526020600020905b8154815290600101906020018083116120fa57829003601f168201915b505050505081565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121bb6124e0565b73ffffffffffffffffffffffffffffffffffffffff166121d9611970565b73ffffffffffffffffffffffffffffffffffffffff161461222f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612226906148bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561229f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229690614e6c565b60405180910390fd5b6122a881612e7c565b50565b6014544210156122f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e7906141a5565b60405180910390fd5b60006123026122fd6124e0565b611572565b14612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233990614ed8565b60405180910390fd5b61234c6001612469565b565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156123f857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506123fc565b3390505b90565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600e548161247561111a565b61247f9190614a6c565b106124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b690614f44565b60405180910390fd5b6124d06124ca6124e0565b82612f42565b50565b6000805482109050919050565b60006124ea61234e565b905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415612612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260990614fd6565b60405180910390fd5b600161262561262087613249565b6132b1565b838686604051600081526020016040526040516126459493929190615005565b6020604051602081039080840390855afa158015612667573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836126b89190614a6c565b905092915050565b60006126cb82612c79565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166126f26124e0565b73ffffffffffffffffffffffffffffffffffffffff16148061274e57506127176124e0565b73ffffffffffffffffffffffffffffffffffffffff1661273684610c3c565b73ffffffffffffffffffffffffffffffffffffffff16145b8061276a575061276982600001516127646124e0565b61211f565b5b9050806127ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a3906150bc565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461281e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128159061514e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561288e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612885906151e0565b60405180910390fd5b61289b85858560016132ea565b6128ab60008484600001516124ef565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612919919061521c565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166129bd9190615250565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612ac39190614a6c565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612c0957612b39816124d3565b15612c08576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c7186868660016132f0565b505050505050565b612c8161386e565b612c8a826124d3565b612cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc090615308565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000148310612d2d5760017f000000000000000000000000000000000000000000000000000000000000001484612d209190615328565b612d2a9190614a6c565b90505b60008390505b818110612e3b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e2757809350505050612e77565b508080612e339061535c565b915050612d33565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6e906153f8565b60405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f5c8282604051806020016040528060008152506132f6565b5050565b6000612f818473ffffffffffffffffffffffffffffffffffffffff166137d5565b156130db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612faa6124e0565b8786866040518563ffffffff1660e01b8152600401612fcc9493929190615418565b6020604051808303816000875af192505050801561300857506040513d601f19601f820116820180604052508101906130059190615479565b60015b61308b573d8060008114613038576040519150601f19603f3d011682016040523d82523d6000602084013e61303d565b606091505b50600081511415613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307a90614c78565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130e0565b600190505b949350505050565b60606000821415613130576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613244565b600082905060005b6000821461316257808061314b90614795565b915050600a8261315b91906154d5565b9150613138565b60008167ffffffffffffffff81111561317e5761317d613b84565b5b6040519080825280601f01601f1916602001820160405280156131b05781602001600182028036833780820191505090505b5090505b6000851461323d576001826131c99190615328565b9150600a856131d89190615506565b60306131e49190614a6c565b60f81b8183815181106131fa576131f9615537565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561323691906154d5565b94506131b4565b8093505050505b919050565b60006040518060800160405280604381526020016157e06043913980519060200120826000015183602001518460400151805190602001206040516020016132949493929190615566565b604051602081830303815290604052805190602001209050919050565b60006132bb611123565b826040516020016132cd929190615618565b604051602081830303815290604052805190602001209050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561336c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613363906156c1565b60405180910390fd5b613375816124d3565b156133b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ac9061572d565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000014831115613418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340f906157bf565b60405180910390fd5b61342560008583866132ea565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516135229190615250565b6fffffffffffffffffffffffffffffffff1681526020018583602001516135499190615250565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156137b857818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137586000888488612f60565b613797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378e90614c78565b60405180910390fd5b81806137a290614795565b92505080806137b090614795565b9150506136e7565b50806000819055506137cd60008785886132f0565b505050505050565b600080823b905060008111915050919050565b8280546137f490614260565b90600052602060002090601f016020900481019282613816576000855561385d565b82601f1061382f57805160ff191683800117855561385d565b8280016001018555821561385d579182015b8281111561385c578251825591602001919060010190613841565b5b50905061386a91906138a8565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b808211156138c15760008160009055506001016138a9565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61390e816138d9565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b600060208284031215613947576139466138cf565b5b60006139558482850161391c565b91505092915050565b60008115159050919050565b6139738161395e565b82525050565b600060208201905061398e600083018461396a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139ce5780820151818401526020810190506139b3565b838111156139dd576000848401525b50505050565b6000601f19601f8301169050919050565b60006139ff82613994565b613a09818561399f565b9350613a198185602086016139b0565b613a22816139e3565b840191505092915050565b60006020820190508181036000830152613a4781846139f4565b905092915050565b6000819050919050565b613a6281613a4f565b8114613a6d57600080fd5b50565b600081359050613a7f81613a59565b92915050565b600060208284031215613a9b57613a9a6138cf565b5b6000613aa984828501613a70565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613add82613ab2565b9050919050565b613aed81613ad2565b82525050565b6000602082019050613b086000830184613ae4565b92915050565b613b1781613ad2565b8114613b2257600080fd5b50565b600081359050613b3481613b0e565b92915050565b60008060408385031215613b5157613b506138cf565b5b6000613b5f85828601613b25565b9250506020613b7085828601613a70565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bbc826139e3565b810181811067ffffffffffffffff82111715613bdb57613bda613b84565b5b80604052505050565b6000613bee6138c5565b9050613bfa8282613bb3565b919050565b600067ffffffffffffffff821115613c1a57613c19613b84565b5b613c23826139e3565b9050602081019050919050565b82818337600083830152505050565b6000613c52613c4d84613bff565b613be4565b905082815260208101848484011115613c6e57613c6d613b7f565b5b613c79848285613c30565b509392505050565b600082601f830112613c9657613c95613b7a565b5b8135613ca6848260208601613c3f565b91505092915050565b6000819050919050565b613cc281613caf565b8114613ccd57600080fd5b50565b600081359050613cdf81613cb9565b92915050565b600060ff82169050919050565b613cfb81613ce5565b8114613d0657600080fd5b50565b600081359050613d1881613cf2565b92915050565b600080600080600060a08688031215613d3a57613d396138cf565b5b6000613d4888828901613b25565b955050602086013567ffffffffffffffff811115613d6957613d686138d4565b5b613d7588828901613c81565b9450506040613d8688828901613cd0565b9350506060613d9788828901613cd0565b9250506080613da888828901613d09565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613ddc82613db5565b613de68185613dc0565b9350613df68185602086016139b0565b613dff816139e3565b840191505092915050565b60006020820190508181036000830152613e248184613dd1565b905092915050565b613e3581613a4f565b82525050565b6000602082019050613e506000830184613e2c565b92915050565b613e5f81613caf565b82525050565b6000602082019050613e7a6000830184613e56565b92915050565b600080600060608486031215613e9957613e986138cf565b5b6000613ea786828701613b25565b9350506020613eb886828701613b25565b9250506040613ec986828701613a70565b9150509250925092565b600060208284031215613ee957613ee86138cf565b5b6000613ef784828501613b25565b91505092915050565b60008060408385031215613f1757613f166138cf565b5b6000613f2585828601613a70565b9250506020613f3685828601613b25565b9150509250929050565b600067ffffffffffffffff821115613f5b57613f5a613b84565b5b613f64826139e3565b9050602081019050919050565b6000613f84613f7f84613f40565b613be4565b905082815260208101848484011115613fa057613f9f613b7f565b5b613fab848285613c30565b509392505050565b600082601f830112613fc857613fc7613b7a565b5b8135613fd8848260208601613f71565b91505092915050565b600060208284031215613ff757613ff66138cf565b5b600082013567ffffffffffffffff811115614015576140146138d4565b5b61402184828501613fb3565b91505092915050565b6140338161395e565b811461403e57600080fd5b50565b6000813590506140508161402a565b92915050565b6000806040838503121561406d5761406c6138cf565b5b600061407b85828601613b25565b925050602061408c85828601614041565b9150509250929050565b600080600080608085870312156140b0576140af6138cf565b5b60006140be87828801613b25565b94505060206140cf87828801613b25565b93505060406140e087828801613a70565b925050606085013567ffffffffffffffff811115614101576141006138d4565b5b61410d87828801613c81565b91505092959194509250565b600080604083850312156141305761412f6138cf565b5b600061413e85828601613b25565b925050602061414f85828601613b25565b9150509250929050565b7f49742773206e6f742074696d6520796574000000000000000000000000000000600082015250565b600061418f60118361399f565b915061419a82614159565b602082019050919050565b600060208201905081810360008301526141be81614182565b9050919050565b7f57726f6e6720616d6f756e7420666f7220390000000000000000000000000000600082015250565b60006141fb60128361399f565b9150614206826141c5565b602082019050919050565b6000602082019050818103600083015261422a816141ee565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061427857607f821691505b6020821081141561428c5761428b614231565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006142ee602d8361399f565b91506142f982614292565b604082019050919050565b6000602082019050818103600083015261431d816142e1565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061438060228361399f565b915061438b82614324565b604082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061441260398361399f565b915061441d826143b6565b604082019050919050565b6000602082019050818103600083015261444181614405565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006144a460218361399f565b91506144af82614448565b604082019050919050565b600060208201905081810360008301526144d381614497565b9050919050565b60006144e582613ab2565b9050919050565b6144f5816144da565b82525050565b60006060820190506145106000830186613ae4565b61451d60208301856144ec565b818103604083015261452f8184613dd1565b9050949350505050565b600081905092915050565b600061454f82613db5565b6145598185614539565b93506145698185602086016139b0565b80840191505092915050565b60008160601b9050919050565b600061458d82614575565b9050919050565b600061459f82614582565b9050919050565b6145b76145b282613ad2565b614594565b82525050565b60006145c98285614544565b91506145d582846145a6565b6014820191508190509392505050565b60006145f18284614544565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000614632601c8361399f565b915061463d826145fc565b602082019050919050565b6000602082019050818103600083015261466181614625565b9050919050565b7f57726f6e6720616d6f756e7420666f7220330000000000000000000000000000600082015250565b600061469e60128361399f565b91506146a982614668565b602082019050919050565b600060208201905081810360008301526146cd81614691565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b600061473060228361399f565b915061473b826146d4565b604082019050919050565b6000602082019050818103600083015261475f81614723565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147a082613a4f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156147d3576147d2614766565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b600061483a602e8361399f565b9150614845826147de565b604082019050919050565b600060208201905081810360008301526148698161482d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148a660208361399f565b91506148b182614870565b602082019050919050565b600060208201905081810360008301526148d581614899565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b600061493860238361399f565b9150614943826148dc565b604082019050919050565b600060208201905081810360008301526149678161492b565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006149ca602b8361399f565b91506149d58261496e565b604082019050919050565b600060208201905081810360008301526149f9816149bd565b9050919050565b7f4d6178203230205065722054582e000000000000000000000000000000000000600082015250565b6000614a36600e8361399f565b9150614a4182614a00565b602082019050919050565b60006020820190508181036000830152614a6581614a29565b9050919050565b6000614a7782613a4f565b9150614a8283613a4f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ab757614ab6614766565b5b828201905092915050565b7f4d617820537570706c7920526561636865640000000000000000000000000000600082015250565b6000614af860128361399f565b9150614b0382614ac2565b602082019050919050565b60006020820190508181036000830152614b2781614aeb565b9050919050565b7f546865206d6574616461746120697320616c72656164792066726f7a656e0000600082015250565b6000614b64601e8361399f565b9150614b6f82614b2e565b602082019050919050565b60006020820190508181036000830152614b9381614b57565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614bd0601a8361399f565b9150614bdb82614b9a565b602082019050919050565b60006020820190508181036000830152614bff81614bc3565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614c6260338361399f565b9150614c6d82614c06565b604082019050919050565b60006020820190508181036000830152614c9181614c55565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614cc581614260565b614ccf8186614c98565b94506001821660008114614cea5760018114614cfb57614d2e565b60ff19831686528186019350614d2e565b614d0485614ca3565b60005b83811015614d2657815481890152600182019150602081019050614d07565b838801955050505b50505092915050565b6000614d438284614cb8565b915081905092915050565b6000614d5982613994565b614d638185614c98565b9350614d738185602086016139b0565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614db5600583614c98565b9150614dc082614d7f565b600582019050919050565b6000614dd78285614cb8565b9150614de38284614d4e565b9150614dee82614da8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e5660268361399f565b9150614e6182614dfa565b604082019050919050565b60006020820190508181036000830152614e8581614e49565b9050919050565b7f596f7527766520616c726561647920436c61696d656420467265650000000000600082015250565b6000614ec2601b8361399f565b9150614ecd82614e8c565b602082019050919050565b60006020820190508181036000830152614ef181614eb5565b9050919050565b7f4d6178205075626c696320537570706c79205265616368656400000000000000600082015250565b6000614f2e60198361399f565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b6000614fc060258361399f565b9150614fcb82614f64565b604082019050919050565b60006020820190508181036000830152614fef81614fb3565b9050919050565b614fff81613ce5565b82525050565b600060808201905061501a6000830187613e56565b6150276020830186614ff6565b6150346040830185613e56565b6150416060830184613e56565b95945050505050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006150a660328361399f565b91506150b18261504a565b604082019050919050565b600060208201905081810360008301526150d581615099565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b600061513860268361399f565b9150615143826150dc565b604082019050919050565b600060208201905081810360008301526151678161512b565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006151ca60258361399f565b91506151d58261516e565b604082019050919050565b600060208201905081810360008301526151f9816151bd565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061522782615200565b915061523283615200565b92508282101561524557615244614766565b5b828203905092915050565b600061525b82615200565b915061526683615200565b9250826fffffffffffffffffffffffffffffffff0382111561528b5761528a614766565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006152f2602a8361399f565b91506152fd82615296565b604082019050919050565b60006020820190508181036000830152615321816152e5565b9050919050565b600061533382613a4f565b915061533e83613a4f565b92508282101561535157615350614766565b5b828203905092915050565b600061536782613a4f565b9150600082141561537b5761537a614766565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006153e2602f8361399f565b91506153ed82615386565b604082019050919050565b60006020820190508181036000830152615411816153d5565b9050919050565b600060808201905061542d6000830187613ae4565b61543a6020830186613ae4565b6154476040830185613e2c565b81810360608301526154598184613dd1565b905095945050505050565b60008151905061547381613905565b92915050565b60006020828403121561548f5761548e6138cf565b5b600061549d84828501615464565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006154e082613a4f565b91506154eb83613a4f565b9250826154fb576154fa6154a6565b5b828204905092915050565b600061551182613a4f565b915061551c83613a4f565b92508261552c5761552b6154a6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060808201905061557b6000830187613e56565b6155886020830186613e2c565b6155956040830185613ae4565b6155a26060830184613e56565b95945050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006155e1600283614c98565b91506155ec826155ab565b600282019050919050565b6000819050919050565b61561261560d82613caf565b6155f7565b82525050565b6000615623826155d4565b915061562f8285615601565b60208201915061563f8284615601565b6020820191508190509392505050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006156ab60218361399f565b91506156b68261564f565b604082019050919050565b600060208201905081810360008301526156da8161569e565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615717601d8361399f565b9150615722826156e1565b602082019050919050565b600060208201905081810360008301526157468161570a565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006157a960228361399f565b91506157b48261574d565b604082019050919050565b600060208201905081810360008301526157d88161579c565b905091905056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220677fdde2e6069b4c9a31226bf3c31ce67d95f201d36c214f64f5f30d90ab89d564736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseTokenURI (string):
Arg [1] : _ghostTokenURI (string):

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


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.