ETH Price: $2,532.65 (+2.75%)

Token

pepethereum (PE)
 

Overview

Max Total Supply

250 PE

Holders

147

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 PE
0xaeead003ac29326a98a09fa5903a23396dd7dfc8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
pepethdeployer

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

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



import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "./ERC721A.sol";
import "./SVG.sol";
import "./Utils.sol";

interface Uni {
    function slot0() view external returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked);
}

interface Rend {
    function render(uint256 id, uint160 sqrtPriceX96) view external returns(string memory);
}


contract pepethdeployer is ERC721A, Ownable {

    using Strings for uint256;

    uint256 public constant MAX_SUPPLY = 250;
    uint256 public constant MAX_PUBLIC_MINT = 10;
    uint256 public cost = .03 ether;
    bool public publicSale;
    bool public pause;
    address public uniPool = 0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8;
    mapping(address => uint256) public totalPublicMint;


    constructor() ERC721A("pepethereum", "PE"){

    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Can't be called by a contract");
        _;
    }

    function getRender(uint256 id) public view returns (string memory img) {
        Rend toRend = Rend(0xD15d1450382BCC50C819E722be6079593493E603);
        string memory img = toRend.render(id, getPrice3());
        return(img);
    }

    function getPrice3() public view returns (uint160 sqrtPriceX96) {
        Uni uniPrice = Uni(uniPool);
        (uint160 sqrtPriceX96 , , , , , ,) =  uniPrice.slot0();
        return(sqrtPriceX96);
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setPool(address _newPool) public onlyOwner {
        uniPool = _newPool;
    }

    function mint(uint256 _quantity) external payable callerIsUser{
        require(publicSale, "Not Yet Active");
        require((totalSupply() + _quantity) <= MAX_SUPPLY, "Beyond Max Supply!");
        require((totalPublicMint[msg.sender] +_quantity) <= MAX_PUBLIC_MINT, "Already minted!");
        require(msg.value >= (cost * _quantity), "Below mint price!");

        totalPublicMint[msg.sender] += _quantity;
        _safeMint(msg.sender, _quantity);
    }



    /// @dev walletOf() function shouldn't be called on-chain due to gas consumption
    function walletOf() external view returns(uint256[] memory){
        address _owner = msg.sender;
        uint256 numberOfOwnedNFT = balanceOf(_owner);
        uint256[] memory ownerIds = new uint256[](numberOfOwnedNFT);

        for(uint256 index = 0; index < numberOfOwnedNFT; index++){
            ownerIds[index] = tokenOfOwnerByIndex(_owner, index);
        }

        return ownerIds;
    }


    function togglePause() external onlyOwner{
        pause = !pause;
    }

    function togglePublicSale() external onlyOwner{
        publicSale = !publicSale;
    }

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

    function tokenURI(uint256 id) public view override returns (string memory) {
           
        return _buildTokenURI(id);
    }



    function _buildTokenURI(uint256 id) public view returns (string memory) {
        require(_exists(id), "ERC721Metadata: URI query for nonexistent token");      
        string memory r = getRender(id);

        bytes memory image = abi.encodePacked(
            "data:image/svg+xml;base64,",
            Base64.encode(
                bytes(
                    abi.encodePacked(r)
                )
            )
        );
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"PepEmotion #',
                                id.toString(),unicode'", "image":"',
                                image,
                                unicode'", "description": "Does eth make u :) or :("}'
                            )
                        )
                    )
                )
            );
    }


}

File 2 of 16 : Utils.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

// Core utils used extensively to format CSS and numbers.
library utils {
    // used to simulate empty strings
    string internal constant NULL = '';

    // formats a CSS variable line. includes a semicolon for formatting.
    function setCssVar(string memory _key, string memory _val)
        internal
        pure
        returns (string memory)
    {
        return string.concat('--', _key, ':', _val, ';');
    }

    // formats getting a css variable
    function getCssVar(string memory _key)
        internal
        pure
        returns (string memory)
    {
        return string.concat('var(--', _key, ')');
    }

    // formats getting a def URL
    function getDefURL(string memory _id)
        internal
        pure
        returns (string memory)
    {
        return string.concat('url(#', _id, ')');
    }

    // formats rgba white with a specified opacity / alpha
    function white_a(uint256 _a) internal pure returns (string memory) {
        return rgba(255, 255, 255, _a);
    }

    // formats rgba black with a specified opacity / alpha
    function black_a(uint256 _a) internal pure returns (string memory) {
        return rgba(0, 0, 0, _a);
    }

    // formats generic rgba color in css
    function rgba(
        uint256 _r,
        uint256 _g,
        uint256 _b,
        uint256 _a
    ) internal pure returns (string memory) {
        string memory formattedA = _a < 100
            ? string.concat('0.', utils.uint2str(_a))
            : '1';
        return
            string.concat(
                'rgba(',
                utils.uint2str(_r),
                ',',
                utils.uint2str(_g),
                ',',
                utils.uint2str(_b),
                ',',
                formattedA,
                ')'
            );
    }

    // checks if two strings are equal
    function stringsEqual(string memory _a, string memory _b)
        internal
        pure
        returns (bool)
    {
        return
            keccak256(abi.encodePacked(_a)) == keccak256(abi.encodePacked(_b));
    }

    // returns the length of a string in characters
    function utfStringLength(string memory _str)
        internal
        pure
        returns (uint256 length)
    {
        uint256 i = 0;
        bytes memory string_rep = bytes(_str);

        while (i < string_rep.length) {
            if (string_rep[i] >> 7 == 0) i += 1;
            else if (string_rep[i] >> 5 == bytes1(uint8(0x6))) i += 2;
            else if (string_rep[i] >> 4 == bytes1(uint8(0xE))) i += 3;
            else if (string_rep[i] >> 3 == bytes1(uint8(0x1E)))
                i += 4;
                //For safety
            else i += 1;

            length++;
        }
    }

    // converts an unsigned integer to a string
    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return '0';
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len;
        while (_i != 0) {
            k = k - 1;
            uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
}

File 3 of 16 : SVG.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Utils.sol";

// Core SVG utilitiy library which helps us construct
// onchain SVG's with a simple, web-like API.
library svg {
    /* MAIN ELEMENTS */
    function g(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('g', _props, _children);
    }

    function path(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('path', _props, _children);
    }

    function text(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('text', _props, _children);
    }

    function line(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('line', _props, _children);
    }

    function circle(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('circle', _props, _children);
    }

    function circle(string memory _props)
        internal
        pure
        returns (string memory)
    {
        return el('circle', _props);
    }

    function rect(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('rect', _props, _children);
    }

    function rect(string memory _props)
        internal
        pure
        returns (string memory)
    {
        return el('rect', _props);
    }

    function filter(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('filter', _props, _children);
    }

    function cdata(string memory _content)
        internal
        pure
        returns (string memory)
    {
        return string.concat('<![CDATA[', _content, ']]>');
    }

    /* GRADIENTS */
    function radialGradient(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('radialGradient', _props, _children);
    }

    function linearGradient(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el('linearGradient', _props, _children);
    }

    function gradientStop(
        uint256 offset,
        string memory stopColor,
        string memory _props
    ) internal pure returns (string memory) {
        return
            el(
                'stop',
                string.concat(
                    prop('stop-color', stopColor),
                    ' ',
                    prop('offset', string.concat(utils.uint2str(offset), '%')),
                    ' ',
                    _props
                )
            );
    }

    function animateTransform(string memory _props)
        internal
        pure
        returns (string memory)
    {
        return el('animateTransform', _props);
    }

    function image(string memory _href, string memory _props)
        internal
        pure
        returns (string memory)
    {
        return
            el(
                'image',
                string.concat(prop('href', _href), ' ', _props)
            );
    }

    /* COMMON */
    // A generic element, can be used to construct any SVG (or HTML) element
    function el(
        string memory _tag,
        string memory _props,
        string memory _children
    ) internal pure returns (string memory) {
        return
            string.concat(
                '<',
                _tag,
                ' ',
                _props,
                '>',
                _children,
                '</',
                _tag,
                '>'
            );
    }

    // A generic element, can be used to construct any SVG (or HTML) element without children
    function el(
        string memory _tag,
        string memory _props
    ) internal pure returns (string memory) {
        return
            string.concat(
                '<',
                _tag,
                ' ',
                _props,
                '/>'
            );
    }

    // an SVG attribute
    function prop(string memory _key, string memory _val)
        internal
        pure
        returns (string memory)
    {
        return string.concat(_key, '=', '"', _val, '" ');
    }
}

File 4 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error UnableDetermineTokenOwner();
error URIQueryForNonexistentToken();

/**
 * @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).
 *
 * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply
 */
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 internal _currentIndex;

    // 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) internal _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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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) {
        if (index >= totalSupply()) revert TokenIndexOutOfBounds();
        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) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; 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++;
                }
            }
        }

        // Execution should never reach this point.
        assert(false);
        //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) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();

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

        revert UnableDetermineTokenOwner();
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) revert ApprovalCallerNotOwnerNorApproved();

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 virtual override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer();
    }

    /**
     * @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 Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }

                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()));

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = 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].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = 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);
    }

    /**
     * @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 TransferToNonERC721ReceiverImplementer();
                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 5 of 16 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 6 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 8 of 16 : 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 9 of 16 : 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 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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);

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

pragma solidity ^0.8.0;

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

File 14 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 16 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"UnableDetermineTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"_buildTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice3","outputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRender","outputs":[{"internalType":"string","name":"img","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":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052666a94d74f430000600855738ad599c3a0ff1de082011efddc58f1908eb6e6d8600960026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200007157600080fd5b506040518060400160405280600b81526020017f706570657468657265756d0000000000000000000000000000000000000000008152506040518060400160405280600281526020017f50450000000000000000000000000000000000000000000000000000000000008152508160019080519060200190620000f692919062000206565b5080600290805190602001906200010f92919062000206565b50505062000132620001266200013860201b60201c565b6200014060201b60201c565b6200031b565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021490620002e5565b90600052602060002090601f01602090048101928262000238576000855562000284565b82601f106200025357805160ff191683800117855562000284565b8280016001018555821562000284579182015b828111156200028357825182559160200191906001019062000266565b5b50905062000293919062000297565b5090565b5b80821115620002b257600081600090555060010162000298565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002fe57607f821691505b60208210811415620003155762000314620002b6565b5b50919050565b613f65806200032b6000396000f3fe60806040526004361061020f5760003560e01c806365f1309711610118578063a22cb465116100a0578063d3681b951161006f578063d3681b95146107a4578063e222c7f9146107cf578063e985e9c5146107e6578063f2fde38b14610823578063f7ca32751461084c5761020f565b8063a22cb465146106fe578063b88d4fde14610727578063c4ae316814610750578063c87b56dd146107675761020f565b806383a974a2116100e757806383a974a2146106365780638456cb59146106615780638da5cb5b1461068c57806395d89b41146106b7578063a0712d68146106e25761020f565b806365f130971461057a57806370a08231146105a5578063715018a6146105e25780637a09e413146105f95761020f565b80632f745c591161019b57806342842e0e1161016a57806342842e0e146104855780634437152a146104ae57806344a0d68a146104d75780634f6ccce7146105005780636352211e1461053d5761020f565b80632f745c59146103db57806332cb6b0c1461041857806333bc1c5c146104435780633ccfd60b1461046e5761020f565b806313faede6116101e257806313faede6146102e257806318160ddd1461030d5780631aa8bd2f146103385780631c16521c1461037557806323b872dd146103b25761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612c5c565b610877565b6040516102489190612ca4565b60405180910390f35b34801561025d57600080fd5b506102666109c1565b6040516102739190612d58565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612db0565b610a53565b6040516102b09190612e1e565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190612e65565b610acf565b005b3480156102ee57600080fd5b506102f7610bda565b6040516103049190612eb4565b60405180910390f35b34801561031957600080fd5b50610322610be0565b60405161032f9190612eb4565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a9190612db0565b610be9565b60405161036c9190612d58565b60405180910390f35b34801561038157600080fd5b5061039c60048036038101906103979190612ecf565b610c9a565b6040516103a99190612eb4565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190612efc565b610cb2565b005b3480156103e757600080fd5b5061040260048036038101906103fd9190612e65565b610cc2565b60405161040f9190612eb4565b60405180910390f35b34801561042457600080fd5b5061042d610e83565b60405161043a9190612eb4565b60405180910390f35b34801561044f57600080fd5b50610458610e88565b6040516104659190612ca4565b60405180910390f35b34801561047a57600080fd5b50610483610e9b565b005b34801561049157600080fd5b506104ac60048036038101906104a79190612efc565b610eec565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190612ecf565b610f0c565b005b3480156104e357600080fd5b506104fe60048036038101906104f99190612db0565b610f58565b005b34801561050c57600080fd5b5061052760048036038101906105229190612db0565b610f6a565b6040516105349190612eb4565b60405180910390f35b34801561054957600080fd5b50610564600480360381019061055f9190612db0565b610fb4565b6040516105719190612e1e565b60405180910390f35b34801561058657600080fd5b5061058f610fca565b60405161059c9190612eb4565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c79190612ecf565b610fcf565b6040516105d99190612eb4565b60405180910390f35b3480156105ee57600080fd5b506105f76110af565b005b34801561060557600080fd5b50610620600480360381019061061b9190612db0565b6110c3565b60405161062d9190612d58565b60405180910390f35b34801561064257600080fd5b5061064b6111bf565b604051610658919061300d565b60405180910390f35b34801561066d57600080fd5b50610676611271565b6040516106839190612ca4565b60405180910390f35b34801561069857600080fd5b506106a1611284565b6040516106ae9190612e1e565b60405180910390f35b3480156106c357600080fd5b506106cc6112ae565b6040516106d99190612d58565b60405180910390f35b6106fc60048036038101906106f79190612db0565b611340565b005b34801561070a57600080fd5b506107256004803603810190610720919061305b565b611594565b005b34801561073357600080fd5b5061074e600480360381019061074991906131d0565b61170c565b005b34801561075c57600080fd5b5061076561175f565b005b34801561077357600080fd5b5061078e60048036038101906107899190612db0565b611793565b60405161079b9190612d58565b60405180910390f35b3480156107b057600080fd5b506107b96117a5565b6040516107c69190612e1e565b60405180910390f35b3480156107db57600080fd5b506107e46117cb565b005b3480156107f257600080fd5b5061080d60048036038101906108089190613253565b6117ff565b60405161081a9190612ca4565b60405180910390f35b34801561082f57600080fd5b5061084a60048036038101906108459190612ecf565b611893565b005b34801561085857600080fd5b50610861611917565b60405161086e91906132a2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109aa57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ba57506109b9826119c0565b5b9050919050565b6060600180546109d0906132ec565b80601f01602080910402602001604051908101604052809291908181526020018280546109fc906132ec565b8015610a495780601f10610a1e57610100808354040283529160200191610a49565b820191906000526020600020905b815481529060010190602001808311610a2c57829003601f168201915b5050505050905090565b6000610a5e82611a2a565b610a94576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ada82610fb4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b42576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b61611a37565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b935750610b9181610b8c611a37565b6117ff565b155b15610bca576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bd5838383611a3f565b505050565b60085481565b60008054905090565b6060600073d15d1450382bcc50c819e722be6079593493e603905060008173ffffffffffffffffffffffffffffffffffffffff16638eba7fac85610c2b611917565b6040518363ffffffff1660e01b8152600401610c4892919061331e565b600060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c8e91906133e8565b90508092505050919050565b600a6020528060005260406000206000915090505481565b610cbd838383611af1565b505050565b6000610ccd83610fcf565b8210610d05576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d0f610be0565b905060008060005b83811015610e69576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610e0957806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e5b5786841415610e52578195505050505050610e7d565b83806001019450505b508080600101915050610d17565b506000610e7957610e78613431565b5b5050505b92915050565b60fa81565b600960009054906101000a900460ff1681565b610ea3612016565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ee9573d6000803e3d6000fd5b50565b610f078383836040518060200160405280600081525061170c565b505050565b610f14612016565b80600960026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610f60612016565b8060088190555050565b6000610f74610be0565b8210610fac576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b6000610fbf82612094565b600001519050919050565b600a81565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611037576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6110b7612016565b6110c1600061221c565b565b60606110ce82611a2a565b61110d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611104906134d2565b60405180910390fd5b600061111883610be9565b9050600061114482604051602001611130919061352e565b6040516020818303038152906040526122e2565b6040516020016111549190613591565b604051602081830303815290604052905061119761117185612446565b82604051602001611183929190613704565b6040516020818303038152906040526122e2565b6040516020016111a79190613795565b60405160208183030381529060405292505050919050565b6060600033905060006111d182610fcf565b905060008167ffffffffffffffff8111156111ef576111ee6130a5565b5b60405190808252806020026020018201604052801561121d5781602001602082028036833780820191505090505b50905060005b82811015611267576112358482610cc2565b828281518110611248576112476137b7565b5b602002602001018181525050808061125f90613815565b915050611223565b5080935050505090565b600960019054906101000a900460ff1681565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546112bd906132ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112e9906132ec565b80156113365780601f1061130b57610100808354040283529160200191611336565b820191906000526020600020905b81548152906001019060200180831161131957829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a5906138aa565b60405180910390fd5b600960009054906101000a900460ff166113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f490613916565b60405180910390fd5b60fa81611408610be0565b6114129190613936565b1115611453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144a906139d8565b60405180910390fd5b600a81600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114a09190613936565b11156114e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d890613a44565b60405180910390fd5b806008546114ef9190613a64565b341015611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890613b0a565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115809190613936565b92505081905550611591338261251e565b50565b61159c611a37565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611601576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806006600061160e611a37565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116bb611a37565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117009190612ca4565b60405180910390a35050565b611717848484611af1565b6117238484848461253c565b611759576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611767612016565b600960019054906101000a900460ff1615600960016101000a81548160ff021916908315150217905550565b606061179e826110c3565b9050919050565b600960029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117d3612016565b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61189b612016565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561190b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190290613b9c565b60405180910390fd5b6119148161221c565b50565b600080600960029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561198c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b09190613ca9565b5050505050509050809250505090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611afc82612094565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611b23611a37565b73ffffffffffffffffffffffffffffffffffffffff161480611b7f5750611b48611a37565b73ffffffffffffffffffffffffffffffffffffffff16611b6784610a53565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b9b5750611b9a8260000151611b95611a37565b6117ff565b5b905080611bd4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c3d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ca4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cb185858560016126bb565b611cc16000848460000151611a3f565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611fa657611f0581611a2a565b15611fa55782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461200f85858560016126c1565b5050505050565b61201e611a37565b73ffffffffffffffffffffffffffffffffffffffff1661203c611284565b73ffffffffffffffffffffffffffffffffffffffff1614612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208990613d97565b60405180910390fd5b565b61209c612bb6565b6120a582611a2a565b6120db576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b600081106121e4576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146121d5578092505050612217565b508080600190039150506120e1565b506040517fe7c0edfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008251141561230557604051806020016040528060008152509050612441565b6000604051806060016040528060408152602001613ef060409139905060006003600285516123349190613936565b61233e9190613de6565b600461234a9190613a64565b67ffffffffffffffff811115612363576123626130a5565b5b6040519080825280601f01601f1916602001820160405280156123955781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015612401576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506123a6565b505060038651066001811461241d576002811461243057612438565b603d6001830353603d6002830353612438565b603d60018303535b50505080925050505b919050565b606060006001612455846126c7565b01905060008167ffffffffffffffff811115612474576124736130a5565b5b6040519080825280601f01601f1916602001820160405280156124a65781602001600182028036833780820191505090505b509050600082602001820190505b600115612513578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816124fd576124fc613db7565b5b049450600085141561250e57612513565b6124b4565b819350505050919050565b61253882826040518060200160405280600081525061281a565b5050565b600061255d8473ffffffffffffffffffffffffffffffffffffffff1661282c565b156126ae578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612586611a37565b8786866040518563ffffffff1660e01b81526004016125a89493929190613e61565b6020604051808303816000875af19250505080156125e457506040513d601f19601f820116820180604052508101906125e19190613ec2565b60015b61265e573d8060008114612614576040519150601f19603f3d011682016040523d82523d6000602084013e612619565b606091505b50600081511415612656576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506126b3565b600190505b949350505050565b50505050565b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612725577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161271b5761271a613db7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612762576d04ee2d6d415b85acef8100000000838161275857612757613db7565b5b0492506020810190505b662386f26fc10000831061279157662386f26fc10000838161278757612786613db7565b5b0492506010810190505b6305f5e10083106127ba576305f5e10083816127b0576127af613db7565b5b0492506008810190505b61271083106127df5761271083816127d5576127d4613db7565b5b0492506004810190505b6064831061280257606483816127f8576127f7613db7565b5b0492506002810190505b600a8310612811576001810190505b80915050919050565b612827838383600161284f565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156128bc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156128f7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61290460008683876126bb565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612b9957818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612b4d5750612b4b600088848861253c565b155b15612b84576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612ad2565b508060008190555050612baf60008683876126c1565b5050505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c3981612c04565b8114612c4457600080fd5b50565b600081359050612c5681612c30565b92915050565b600060208284031215612c7257612c71612bfa565b5b6000612c8084828501612c47565b91505092915050565b60008115159050919050565b612c9e81612c89565b82525050565b6000602082019050612cb96000830184612c95565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cf9578082015181840152602081019050612cde565b83811115612d08576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d2a82612cbf565b612d348185612cca565b9350612d44818560208601612cdb565b612d4d81612d0e565b840191505092915050565b60006020820190508181036000830152612d728184612d1f565b905092915050565b6000819050919050565b612d8d81612d7a565b8114612d9857600080fd5b50565b600081359050612daa81612d84565b92915050565b600060208284031215612dc657612dc5612bfa565b5b6000612dd484828501612d9b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0882612ddd565b9050919050565b612e1881612dfd565b82525050565b6000602082019050612e336000830184612e0f565b92915050565b612e4281612dfd565b8114612e4d57600080fd5b50565b600081359050612e5f81612e39565b92915050565b60008060408385031215612e7c57612e7b612bfa565b5b6000612e8a85828601612e50565b9250506020612e9b85828601612d9b565b9150509250929050565b612eae81612d7a565b82525050565b6000602082019050612ec96000830184612ea5565b92915050565b600060208284031215612ee557612ee4612bfa565b5b6000612ef384828501612e50565b91505092915050565b600080600060608486031215612f1557612f14612bfa565b5b6000612f2386828701612e50565b9350506020612f3486828701612e50565b9250506040612f4586828701612d9b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f8481612d7a565b82525050565b6000612f968383612f7b565b60208301905092915050565b6000602082019050919050565b6000612fba82612f4f565b612fc48185612f5a565b9350612fcf83612f6b565b8060005b83811015613000578151612fe78882612f8a565b9750612ff283612fa2565b925050600181019050612fd3565b5085935050505092915050565b600060208201905081810360008301526130278184612faf565b905092915050565b61303881612c89565b811461304357600080fd5b50565b6000813590506130558161302f565b92915050565b6000806040838503121561307257613071612bfa565b5b600061308085828601612e50565b925050602061309185828601613046565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6130dd82612d0e565b810181811067ffffffffffffffff821117156130fc576130fb6130a5565b5b80604052505050565b600061310f612bf0565b905061311b82826130d4565b919050565b600067ffffffffffffffff82111561313b5761313a6130a5565b5b61314482612d0e565b9050602081019050919050565b82818337600083830152505050565b600061317361316e84613120565b613105565b90508281526020810184848401111561318f5761318e6130a0565b5b61319a848285613151565b509392505050565b600082601f8301126131b7576131b661309b565b5b81356131c7848260208601613160565b91505092915050565b600080600080608085870312156131ea576131e9612bfa565b5b60006131f887828801612e50565b945050602061320987828801612e50565b935050604061321a87828801612d9b565b925050606085013567ffffffffffffffff81111561323b5761323a612bff565b5b613247878288016131a2565b91505092959194509250565b6000806040838503121561326a57613269612bfa565b5b600061327885828601612e50565b925050602061328985828601612e50565b9150509250929050565b61329c81612ddd565b82525050565b60006020820190506132b76000830184613293565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061330457607f821691505b60208210811415613318576133176132bd565b5b50919050565b60006040820190506133336000830185612ea5565b6133406020830184613293565b9392505050565b600067ffffffffffffffff821115613362576133616130a5565b5b61336b82612d0e565b9050602081019050919050565b600061338b61338684613347565b613105565b9050828152602081018484840111156133a7576133a66130a0565b5b6133b2848285612cdb565b509392505050565b600082601f8301126133cf576133ce61309b565b5b81516133df848260208601613378565b91505092915050565b6000602082840312156133fe576133fd612bfa565b5b600082015167ffffffffffffffff81111561341c5761341b612bff565b5b613428848285016133ba565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006134bc602f83612cca565b91506134c782613460565b604082019050919050565b600060208201905081810360008301526134eb816134af565b9050919050565b600081905092915050565b600061350882612cbf565b61351281856134f2565b9350613522818560208601612cdb565b80840191505092915050565b600061353a82846134fd565b915081905092915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b600061357b601a836134f2565b915061358682613545565b601a82019050919050565b600061359c8261356e565b91506135a882846134fd565b915081905092915050565b7f7b226e616d65223a22506570456d6f74696f6e20230000000000000000000000600082015250565b60006135e96015836134f2565b91506135f4826135b3565b601582019050919050565b7f222c2022696d616765223a220000000000000000000000000000000000000000600082015250565b6000613635600c836134f2565b9150613640826135ff565b600c82019050919050565b600081519050919050565b600081905092915050565b600061366c8261364b565b6136768185613656565b9350613686818560208601612cdb565b80840191505092915050565b7f222c20226465736372697074696f6e223a2022446f657320657468206d616b6560008201527f2075203a29206f72203a28227d00000000000000000000000000000000000000602082015250565b60006136ee602d836134f2565b91506136f982613692565b602d82019050919050565b600061370f826135dc565b915061371b82856134fd565b915061372682613628565b91506137328284613661565b915061373d826136e1565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061377f601d836134f2565b915061378a82613749565b601d82019050919050565b60006137a082613772565b91506137ac82846134fd565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061382082612d7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613853576138526137e6565b5b600182019050919050565b7f43616e27742062652063616c6c6564206279206120636f6e7472616374000000600082015250565b6000613894601d83612cca565b915061389f8261385e565b602082019050919050565b600060208201905081810360008301526138c381613887565b9050919050565b7f4e6f742059657420416374697665000000000000000000000000000000000000600082015250565b6000613900600e83612cca565b915061390b826138ca565b602082019050919050565b6000602082019050818103600083015261392f816138f3565b9050919050565b600061394182612d7a565b915061394c83612d7a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613981576139806137e6565b5b828201905092915050565b7f4265796f6e64204d617820537570706c79210000000000000000000000000000600082015250565b60006139c2601283612cca565b91506139cd8261398c565b602082019050919050565b600060208201905081810360008301526139f1816139b5565b9050919050565b7f416c7265616479206d696e746564210000000000000000000000000000000000600082015250565b6000613a2e600f83612cca565b9150613a39826139f8565b602082019050919050565b60006020820190508181036000830152613a5d81613a21565b9050919050565b6000613a6f82612d7a565b9150613a7a83612d7a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ab357613ab26137e6565b5b828202905092915050565b7f42656c6f77206d696e7420707269636521000000000000000000000000000000600082015250565b6000613af4601183612cca565b9150613aff82613abe565b602082019050919050565b60006020820190508181036000830152613b2381613ae7565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b86602683612cca565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b613bc581612ddd565b8114613bd057600080fd5b50565b600081519050613be281613bbc565b92915050565b60008160020b9050919050565b613bfe81613be8565b8114613c0957600080fd5b50565b600081519050613c1b81613bf5565b92915050565b600061ffff82169050919050565b613c3881613c21565b8114613c4357600080fd5b50565b600081519050613c5581613c2f565b92915050565b600060ff82169050919050565b613c7181613c5b565b8114613c7c57600080fd5b50565b600081519050613c8e81613c68565b92915050565b600081519050613ca38161302f565b92915050565b600080600080600080600060e0888a031215613cc857613cc7612bfa565b5b6000613cd68a828b01613bd3565b9750506020613ce78a828b01613c0c565b9650506040613cf88a828b01613c46565b9550506060613d098a828b01613c46565b9450506080613d1a8a828b01613c46565b93505060a0613d2b8a828b01613c7f565b92505060c0613d3c8a828b01613c94565b91505092959891949750929550565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d81602083612cca565b9150613d8c82613d4b565b602082019050919050565b60006020820190508181036000830152613db081613d74565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613df182612d7a565b9150613dfc83612d7a565b925082613e0c57613e0b613db7565b5b828204905092915050565b600082825260208201905092915050565b6000613e338261364b565b613e3d8185613e17565b9350613e4d818560208601612cdb565b613e5681612d0e565b840191505092915050565b6000608082019050613e766000830187612e0f565b613e836020830186612e0f565b613e906040830185612ea5565b8181036060830152613ea28184613e28565b905095945050505050565b600081519050613ebc81612c30565b92915050565b600060208284031215613ed857613ed7612bfa565b5b6000613ee684828501613ead565b9150509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204969ce5f99dc8b3f8a45970531f522867cd0e804ca386676c7b4a141010479e464736f6c634300080c0033

Deployed Bytecode

0x60806040526004361061020f5760003560e01c806365f1309711610118578063a22cb465116100a0578063d3681b951161006f578063d3681b95146107a4578063e222c7f9146107cf578063e985e9c5146107e6578063f2fde38b14610823578063f7ca32751461084c5761020f565b8063a22cb465146106fe578063b88d4fde14610727578063c4ae316814610750578063c87b56dd146107675761020f565b806383a974a2116100e757806383a974a2146106365780638456cb59146106615780638da5cb5b1461068c57806395d89b41146106b7578063a0712d68146106e25761020f565b806365f130971461057a57806370a08231146105a5578063715018a6146105e25780637a09e413146105f95761020f565b80632f745c591161019b57806342842e0e1161016a57806342842e0e146104855780634437152a146104ae57806344a0d68a146104d75780634f6ccce7146105005780636352211e1461053d5761020f565b80632f745c59146103db57806332cb6b0c1461041857806333bc1c5c146104435780633ccfd60b1461046e5761020f565b806313faede6116101e257806313faede6146102e257806318160ddd1461030d5780631aa8bd2f146103385780631c16521c1461037557806323b872dd146103b25761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612c5c565b610877565b6040516102489190612ca4565b60405180910390f35b34801561025d57600080fd5b506102666109c1565b6040516102739190612d58565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612db0565b610a53565b6040516102b09190612e1e565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190612e65565b610acf565b005b3480156102ee57600080fd5b506102f7610bda565b6040516103049190612eb4565b60405180910390f35b34801561031957600080fd5b50610322610be0565b60405161032f9190612eb4565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a9190612db0565b610be9565b60405161036c9190612d58565b60405180910390f35b34801561038157600080fd5b5061039c60048036038101906103979190612ecf565b610c9a565b6040516103a99190612eb4565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190612efc565b610cb2565b005b3480156103e757600080fd5b5061040260048036038101906103fd9190612e65565b610cc2565b60405161040f9190612eb4565b60405180910390f35b34801561042457600080fd5b5061042d610e83565b60405161043a9190612eb4565b60405180910390f35b34801561044f57600080fd5b50610458610e88565b6040516104659190612ca4565b60405180910390f35b34801561047a57600080fd5b50610483610e9b565b005b34801561049157600080fd5b506104ac60048036038101906104a79190612efc565b610eec565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190612ecf565b610f0c565b005b3480156104e357600080fd5b506104fe60048036038101906104f99190612db0565b610f58565b005b34801561050c57600080fd5b5061052760048036038101906105229190612db0565b610f6a565b6040516105349190612eb4565b60405180910390f35b34801561054957600080fd5b50610564600480360381019061055f9190612db0565b610fb4565b6040516105719190612e1e565b60405180910390f35b34801561058657600080fd5b5061058f610fca565b60405161059c9190612eb4565b60405180910390f35b3480156105b157600080fd5b506105cc60048036038101906105c79190612ecf565b610fcf565b6040516105d99190612eb4565b60405180910390f35b3480156105ee57600080fd5b506105f76110af565b005b34801561060557600080fd5b50610620600480360381019061061b9190612db0565b6110c3565b60405161062d9190612d58565b60405180910390f35b34801561064257600080fd5b5061064b6111bf565b604051610658919061300d565b60405180910390f35b34801561066d57600080fd5b50610676611271565b6040516106839190612ca4565b60405180910390f35b34801561069857600080fd5b506106a1611284565b6040516106ae9190612e1e565b60405180910390f35b3480156106c357600080fd5b506106cc6112ae565b6040516106d99190612d58565b60405180910390f35b6106fc60048036038101906106f79190612db0565b611340565b005b34801561070a57600080fd5b506107256004803603810190610720919061305b565b611594565b005b34801561073357600080fd5b5061074e600480360381019061074991906131d0565b61170c565b005b34801561075c57600080fd5b5061076561175f565b005b34801561077357600080fd5b5061078e60048036038101906107899190612db0565b611793565b60405161079b9190612d58565b60405180910390f35b3480156107b057600080fd5b506107b96117a5565b6040516107c69190612e1e565b60405180910390f35b3480156107db57600080fd5b506107e46117cb565b005b3480156107f257600080fd5b5061080d60048036038101906108089190613253565b6117ff565b60405161081a9190612ca4565b60405180910390f35b34801561082f57600080fd5b5061084a60048036038101906108459190612ecf565b611893565b005b34801561085857600080fd5b50610861611917565b60405161086e91906132a2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109aa57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ba57506109b9826119c0565b5b9050919050565b6060600180546109d0906132ec565b80601f01602080910402602001604051908101604052809291908181526020018280546109fc906132ec565b8015610a495780601f10610a1e57610100808354040283529160200191610a49565b820191906000526020600020905b815481529060010190602001808311610a2c57829003601f168201915b5050505050905090565b6000610a5e82611a2a565b610a94576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ada82610fb4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b42576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b61611a37565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b935750610b9181610b8c611a37565b6117ff565b155b15610bca576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bd5838383611a3f565b505050565b60085481565b60008054905090565b6060600073d15d1450382bcc50c819e722be6079593493e603905060008173ffffffffffffffffffffffffffffffffffffffff16638eba7fac85610c2b611917565b6040518363ffffffff1660e01b8152600401610c4892919061331e565b600060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c8e91906133e8565b90508092505050919050565b600a6020528060005260406000206000915090505481565b610cbd838383611af1565b505050565b6000610ccd83610fcf565b8210610d05576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d0f610be0565b905060008060005b83811015610e69576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610e0957806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e5b5786841415610e52578195505050505050610e7d565b83806001019450505b508080600101915050610d17565b506000610e7957610e78613431565b5b5050505b92915050565b60fa81565b600960009054906101000a900460ff1681565b610ea3612016565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ee9573d6000803e3d6000fd5b50565b610f078383836040518060200160405280600081525061170c565b505050565b610f14612016565b80600960026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610f60612016565b8060088190555050565b6000610f74610be0565b8210610fac576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b6000610fbf82612094565b600001519050919050565b600a81565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611037576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6110b7612016565b6110c1600061221c565b565b60606110ce82611a2a565b61110d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611104906134d2565b60405180910390fd5b600061111883610be9565b9050600061114482604051602001611130919061352e565b6040516020818303038152906040526122e2565b6040516020016111549190613591565b604051602081830303815290604052905061119761117185612446565b82604051602001611183929190613704565b6040516020818303038152906040526122e2565b6040516020016111a79190613795565b60405160208183030381529060405292505050919050565b6060600033905060006111d182610fcf565b905060008167ffffffffffffffff8111156111ef576111ee6130a5565b5b60405190808252806020026020018201604052801561121d5781602001602082028036833780820191505090505b50905060005b82811015611267576112358482610cc2565b828281518110611248576112476137b7565b5b602002602001018181525050808061125f90613815565b915050611223565b5080935050505090565b600960019054906101000a900460ff1681565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546112bd906132ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112e9906132ec565b80156113365780601f1061130b57610100808354040283529160200191611336565b820191906000526020600020905b81548152906001019060200180831161131957829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a5906138aa565b60405180910390fd5b600960009054906101000a900460ff166113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f490613916565b60405180910390fd5b60fa81611408610be0565b6114129190613936565b1115611453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144a906139d8565b60405180910390fd5b600a81600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114a09190613936565b11156114e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d890613a44565b60405180910390fd5b806008546114ef9190613a64565b341015611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890613b0a565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115809190613936565b92505081905550611591338261251e565b50565b61159c611a37565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611601576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806006600061160e611a37565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116bb611a37565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117009190612ca4565b60405180910390a35050565b611717848484611af1565b6117238484848461253c565b611759576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611767612016565b600960019054906101000a900460ff1615600960016101000a81548160ff021916908315150217905550565b606061179e826110c3565b9050919050565b600960029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117d3612016565b600960009054906101000a900460ff1615600960006101000a81548160ff021916908315150217905550565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61189b612016565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561190b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190290613b9c565b60405180910390fd5b6119148161221c565b50565b600080600960029054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561198c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b09190613ca9565b5050505050509050809250505090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611afc82612094565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611b23611a37565b73ffffffffffffffffffffffffffffffffffffffff161480611b7f5750611b48611a37565b73ffffffffffffffffffffffffffffffffffffffff16611b6784610a53565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b9b5750611b9a8260000151611b95611a37565b6117ff565b5b905080611bd4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c3d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ca4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cb185858560016126bb565b611cc16000848460000151611a3f565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611fa657611f0581611a2a565b15611fa55782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461200f85858560016126c1565b5050505050565b61201e611a37565b73ffffffffffffffffffffffffffffffffffffffff1661203c611284565b73ffffffffffffffffffffffffffffffffffffffff1614612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208990613d97565b60405180910390fd5b565b61209c612bb6565b6120a582611a2a565b6120db576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b600081106121e4576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146121d5578092505050612217565b508080600190039150506120e1565b506040517fe7c0edfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008251141561230557604051806020016040528060008152509050612441565b6000604051806060016040528060408152602001613ef060409139905060006003600285516123349190613936565b61233e9190613de6565b600461234a9190613a64565b67ffffffffffffffff811115612363576123626130a5565b5b6040519080825280601f01601f1916602001820160405280156123955781602001600182028036833780820191505090505b509050600182016020820185865187015b80821015612401576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506123a6565b505060038651066001811461241d576002811461243057612438565b603d6001830353603d6002830353612438565b603d60018303535b50505080925050505b919050565b606060006001612455846126c7565b01905060008167ffffffffffffffff811115612474576124736130a5565b5b6040519080825280601f01601f1916602001820160405280156124a65781602001600182028036833780820191505090505b509050600082602001820190505b600115612513578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816124fd576124fc613db7565b5b049450600085141561250e57612513565b6124b4565b819350505050919050565b61253882826040518060200160405280600081525061281a565b5050565b600061255d8473ffffffffffffffffffffffffffffffffffffffff1661282c565b156126ae578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612586611a37565b8786866040518563ffffffff1660e01b81526004016125a89493929190613e61565b6020604051808303816000875af19250505080156125e457506040513d601f19601f820116820180604052508101906125e19190613ec2565b60015b61265e573d8060008114612614576040519150601f19603f3d011682016040523d82523d6000602084013e612619565b606091505b50600081511415612656576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506126b3565b600190505b949350505050565b50505050565b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612725577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161271b5761271a613db7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612762576d04ee2d6d415b85acef8100000000838161275857612757613db7565b5b0492506020810190505b662386f26fc10000831061279157662386f26fc10000838161278757612786613db7565b5b0492506010810190505b6305f5e10083106127ba576305f5e10083816127b0576127af613db7565b5b0492506008810190505b61271083106127df5761271083816127d5576127d4613db7565b5b0492506004810190505b6064831061280257606483816127f8576127f7613db7565b5b0492506002810190505b600a8310612811576001810190505b80915050919050565b612827838383600161284f565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156128bc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156128f7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61290460008683876126bb565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612b9957818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612b4d5750612b4b600088848861253c565b155b15612b84576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612ad2565b508060008190555050612baf60008683876126c1565b5050505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c3981612c04565b8114612c4457600080fd5b50565b600081359050612c5681612c30565b92915050565b600060208284031215612c7257612c71612bfa565b5b6000612c8084828501612c47565b91505092915050565b60008115159050919050565b612c9e81612c89565b82525050565b6000602082019050612cb96000830184612c95565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cf9578082015181840152602081019050612cde565b83811115612d08576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d2a82612cbf565b612d348185612cca565b9350612d44818560208601612cdb565b612d4d81612d0e565b840191505092915050565b60006020820190508181036000830152612d728184612d1f565b905092915050565b6000819050919050565b612d8d81612d7a565b8114612d9857600080fd5b50565b600081359050612daa81612d84565b92915050565b600060208284031215612dc657612dc5612bfa565b5b6000612dd484828501612d9b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0882612ddd565b9050919050565b612e1881612dfd565b82525050565b6000602082019050612e336000830184612e0f565b92915050565b612e4281612dfd565b8114612e4d57600080fd5b50565b600081359050612e5f81612e39565b92915050565b60008060408385031215612e7c57612e7b612bfa565b5b6000612e8a85828601612e50565b9250506020612e9b85828601612d9b565b9150509250929050565b612eae81612d7a565b82525050565b6000602082019050612ec96000830184612ea5565b92915050565b600060208284031215612ee557612ee4612bfa565b5b6000612ef384828501612e50565b91505092915050565b600080600060608486031215612f1557612f14612bfa565b5b6000612f2386828701612e50565b9350506020612f3486828701612e50565b9250506040612f4586828701612d9b565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f8481612d7a565b82525050565b6000612f968383612f7b565b60208301905092915050565b6000602082019050919050565b6000612fba82612f4f565b612fc48185612f5a565b9350612fcf83612f6b565b8060005b83811015613000578151612fe78882612f8a565b9750612ff283612fa2565b925050600181019050612fd3565b5085935050505092915050565b600060208201905081810360008301526130278184612faf565b905092915050565b61303881612c89565b811461304357600080fd5b50565b6000813590506130558161302f565b92915050565b6000806040838503121561307257613071612bfa565b5b600061308085828601612e50565b925050602061309185828601613046565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6130dd82612d0e565b810181811067ffffffffffffffff821117156130fc576130fb6130a5565b5b80604052505050565b600061310f612bf0565b905061311b82826130d4565b919050565b600067ffffffffffffffff82111561313b5761313a6130a5565b5b61314482612d0e565b9050602081019050919050565b82818337600083830152505050565b600061317361316e84613120565b613105565b90508281526020810184848401111561318f5761318e6130a0565b5b61319a848285613151565b509392505050565b600082601f8301126131b7576131b661309b565b5b81356131c7848260208601613160565b91505092915050565b600080600080608085870312156131ea576131e9612bfa565b5b60006131f887828801612e50565b945050602061320987828801612e50565b935050604061321a87828801612d9b565b925050606085013567ffffffffffffffff81111561323b5761323a612bff565b5b613247878288016131a2565b91505092959194509250565b6000806040838503121561326a57613269612bfa565b5b600061327885828601612e50565b925050602061328985828601612e50565b9150509250929050565b61329c81612ddd565b82525050565b60006020820190506132b76000830184613293565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061330457607f821691505b60208210811415613318576133176132bd565b5b50919050565b60006040820190506133336000830185612ea5565b6133406020830184613293565b9392505050565b600067ffffffffffffffff821115613362576133616130a5565b5b61336b82612d0e565b9050602081019050919050565b600061338b61338684613347565b613105565b9050828152602081018484840111156133a7576133a66130a0565b5b6133b2848285612cdb565b509392505050565b600082601f8301126133cf576133ce61309b565b5b81516133df848260208601613378565b91505092915050565b6000602082840312156133fe576133fd612bfa565b5b600082015167ffffffffffffffff81111561341c5761341b612bff565b5b613428848285016133ba565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006134bc602f83612cca565b91506134c782613460565b604082019050919050565b600060208201905081810360008301526134eb816134af565b9050919050565b600081905092915050565b600061350882612cbf565b61351281856134f2565b9350613522818560208601612cdb565b80840191505092915050565b600061353a82846134fd565b915081905092915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b600061357b601a836134f2565b915061358682613545565b601a82019050919050565b600061359c8261356e565b91506135a882846134fd565b915081905092915050565b7f7b226e616d65223a22506570456d6f74696f6e20230000000000000000000000600082015250565b60006135e96015836134f2565b91506135f4826135b3565b601582019050919050565b7f222c2022696d616765223a220000000000000000000000000000000000000000600082015250565b6000613635600c836134f2565b9150613640826135ff565b600c82019050919050565b600081519050919050565b600081905092915050565b600061366c8261364b565b6136768185613656565b9350613686818560208601612cdb565b80840191505092915050565b7f222c20226465736372697074696f6e223a2022446f657320657468206d616b6560008201527f2075203a29206f72203a28227d00000000000000000000000000000000000000602082015250565b60006136ee602d836134f2565b91506136f982613692565b602d82019050919050565b600061370f826135dc565b915061371b82856134fd565b915061372682613628565b91506137328284613661565b915061373d826136e1565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061377f601d836134f2565b915061378a82613749565b601d82019050919050565b60006137a082613772565b91506137ac82846134fd565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061382082612d7a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613853576138526137e6565b5b600182019050919050565b7f43616e27742062652063616c6c6564206279206120636f6e7472616374000000600082015250565b6000613894601d83612cca565b915061389f8261385e565b602082019050919050565b600060208201905081810360008301526138c381613887565b9050919050565b7f4e6f742059657420416374697665000000000000000000000000000000000000600082015250565b6000613900600e83612cca565b915061390b826138ca565b602082019050919050565b6000602082019050818103600083015261392f816138f3565b9050919050565b600061394182612d7a565b915061394c83612d7a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613981576139806137e6565b5b828201905092915050565b7f4265796f6e64204d617820537570706c79210000000000000000000000000000600082015250565b60006139c2601283612cca565b91506139cd8261398c565b602082019050919050565b600060208201905081810360008301526139f1816139b5565b9050919050565b7f416c7265616479206d696e746564210000000000000000000000000000000000600082015250565b6000613a2e600f83612cca565b9150613a39826139f8565b602082019050919050565b60006020820190508181036000830152613a5d81613a21565b9050919050565b6000613a6f82612d7a565b9150613a7a83612d7a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ab357613ab26137e6565b5b828202905092915050565b7f42656c6f77206d696e7420707269636521000000000000000000000000000000600082015250565b6000613af4601183612cca565b9150613aff82613abe565b602082019050919050565b60006020820190508181036000830152613b2381613ae7565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b86602683612cca565b9150613b9182613b2a565b604082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b613bc581612ddd565b8114613bd057600080fd5b50565b600081519050613be281613bbc565b92915050565b60008160020b9050919050565b613bfe81613be8565b8114613c0957600080fd5b50565b600081519050613c1b81613bf5565b92915050565b600061ffff82169050919050565b613c3881613c21565b8114613c4357600080fd5b50565b600081519050613c5581613c2f565b92915050565b600060ff82169050919050565b613c7181613c5b565b8114613c7c57600080fd5b50565b600081519050613c8e81613c68565b92915050565b600081519050613ca38161302f565b92915050565b600080600080600080600060e0888a031215613cc857613cc7612bfa565b5b6000613cd68a828b01613bd3565b9750506020613ce78a828b01613c0c565b9650506040613cf88a828b01613c46565b9550506060613d098a828b01613c46565b9450506080613d1a8a828b01613c46565b93505060a0613d2b8a828b01613c7f565b92505060c0613d3c8a828b01613c94565b91505092959891949750929550565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d81602083612cca565b9150613d8c82613d4b565b602082019050919050565b60006020820190508181036000830152613db081613d74565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613df182612d7a565b9150613dfc83612d7a565b925082613e0c57613e0b613db7565b5b828204905092915050565b600082825260208201905092915050565b6000613e338261364b565b613e3d8185613e17565b9350613e4d818560208601612cdb565b613e5681612d0e565b840191505092915050565b6000608082019050613e766000830187612e0f565b613e836020830186612e0f565b613e906040830185612ea5565b8181036060830152613ea28184613e28565b905095945050505050565b600081519050613ebc81612c30565b92915050565b600060208284031215613ed857613ed7612bfa565b5b6000613ee684828501613ead565b9150509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204969ce5f99dc8b3f8a45970531f522867cd0e804ca386676c7b4a141010479e464736f6c634300080c0033

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.