ETH Price: $2,530.34 (-0.32%)

Token

The Emperor's Password (BOOK)
 

Overview

Max Total Supply

34 BOOK

Holders

34

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BOOK
0x2996b35C9fC9c0FcA14548C8BC2332365E480408
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:
Book

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Base64.sol";

contract Book is ERC721, ERC721Enumerable, ERC721Burnable, Ownable {
    mapping (address => bool) _hasMinted;
    uint256 public premineRemaining = 19;

    constructor() ERC721("The Emperor's Password", "BOOK") {
        _hasMinted[msg.sender] = true;
        _mint(msg.sender, 0);
    }

    function mint(bytes32 hash) external {
        require(!_hasMinted[msg.sender]);
        require(totalSupply() + premineRemaining < 500);
        require(hash == sha256(abi.encodePacked(msg.sender, "emperor")));

        _hasMinted[msg.sender] = true;
        _mint(msg.sender, totalSupply());
    }

    function premineMint(address to) external {
        require(msg.sender == owner());
        require(premineRemaining > 0);
        premineRemaining -= 1;

        _mint(to, totalSupply());
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function contractURI() public pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        abi.encodePacked(
                            "{"
                            '"name":"The Emperor\'s Password",'
                            '"description":"Only the wise can read the password.",'
                            '"image":"data:image/svg+xml;base64,',
                            Base64.encode(getClosedSVG()),
                            '"}'
                        )
                    )
                )
            );
    }

    bytes constant PASSWORD_CHARS = "abcdefghijklmnopqrstuvwxyz234567";

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(tokenId < totalSupply());
        for (uint256 i = 1; i < 6; i++) {
            uint256 hash = uint256(blockhash(block.number - i));
            if ((hash % 256) / 2 == 0x77) {
                bytes memory password = new bytes(10);
                for (uint256 j = 0; j < 10; j++) {
                    password[j] = PASSWORD_CHARS[hash % 32];
                    hash /= 32;
                }
                return getMetadata(password);
            }
        }
        return getMetadata("");
    }

    bytes constant OPEN =
        hex"00f80000043f00002007001f0007008800060440000fe200003f100001f880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e8f8000f403f007a000703dff0071e007e06f0000fcf800001bffffffeffffffe7fffffe0";
    bytes constant CLOSED =
        hex"03021e1d03042020a105011a881f1a03851f0203842004018323010187230101841c0102840a010e84040102880401029f0401029f1c01029e1d01019e0401018904010187020101881c0102891d0101";
    bytes constant WHITE = "FFFFFF";
    bytes constant BLACK = "000000";

    function getClosedSVG() internal pure returns (bytes memory) {
        bytes memory svg;

        for (uint256 i = 0; i < CLOSED.length / 4; i++) {
            uint256 x = uint8(CLOSED[i * 4]);
            bool white = x >= 128;
            x = x % 128;
            uint256 y = uint8(CLOSED[i * 4 + 1]);
            uint256 w = uint8(CLOSED[i * 4 + 2]);
            uint256 h = uint8(CLOSED[i * 4 + 3]);
            svg = abi.encodePacked(
                svg,
                '<rect fill="#',
                white ? WHITE : BLACK,
                '" x="',
                itoa(x),
                '" y="',
                itoa(y),
                '" width="',
                itoa(w),
                '" height="',
                itoa(h),
                '"/>'
            );
        }
        return
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" preserveAspectRatio="xMinYMin meet" viewBox="0 0 38 38" shape-rendering="crispEdges">',
                svg,
                '</svg>'
            );
    }

    function getOpenSVG() internal pure returns (bytes memory) {
        bytes memory svg;

        uint256 xstart = 0;
        uint256 len = 0;
        uint256 ystart = 0;

        for (uint256 y = 0; y < 38; y++) {
            for (uint256 x = 0; x < 29; x++) {
                uint256 coord = y * 29 + x;
                bool on = uint8(OPEN[coord / 8]) & (1 << (7 - (coord % 8))) > 0;
                if ((!on || y != ystart) && len > 0) {
                    svg = abi.encodePacked(
                        svg,
                        '<rect class="f" x="',
                        itoa(xstart),
                        '" y="',
                        itoa(ystart),
                        '" width="',
                        itoa(len),
                        '"/>'
                    );
                    len = 0;
                }
                if (on) {
                    if (len == 0) {
                        xstart = x;
                        ystart = y;
                    }
                    len += 1;
                }
            }
        }

        return
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" preserveAspectRatio="xMinYMin meet" viewBox="0 0 57 38" shape-rendering="crispEdges"><style>rect.f{fill:#000000;height:1px;}</style><rect x="0" y="0" width="57" height="38" fill="#FFFFFF"/><g id="left">',
                svg,
                '</g><use href="#left" transform="translate(57,0) scale(-1, 1)"/></svg>'
            );
    }

    function itoa(uint256 n) internal pure returns (bytes memory) {
        if (n == 0) {
            return "0";
        }
        uint256 len = 0;
        uint256 m = n;
        while (m > 0) {
            len += 1;
            m /= 10;
        }

        bytes memory ret = new bytes(len);
        for (uint256 i = len; i > 0; i--) {
            ret[i - 1] = bytes1(uint8(48 + (n % 10)));
            n /= 10;
        }

        return ret;
    }

    function getMetadata(bytes memory password)
        internal
        pure
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        abi.encodePacked(
                            '{"name":"The Emperor\'s Password",'
                            '"description":"This book holds the Emperor\'s secret password. It\'s written in the same ink used to dye his clothes. You\'ll need good timing, and watch out for caching!",'
                            '"image":"data:image/svg+xml;base64,',
                            Base64.encode(
                                password.length > 0
                                    ? getOpenSVG()
                                    : getClosedSVG()
                            ),
                            '","attributes":[',
                            password.length > 0
                                ? abi.encodePacked(
                                    '{"trait_type":"password","value":"',
                                    password,
                                    '"}'
                                )
                                : bytes(
                                    '{"trait_type":"patience","display_type":"boost_number","value":100}'
                                ),
                            "]}"
                        )
                    )
                )
            );
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 15 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

library Base64 {
    bytes private constant base64stdchars =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function encode(bytes memory bs) internal pure returns (string memory) {
        uint256 rem = bs.length % 3;

        uint256 res_length = ((bs.length + 2) / 3) * 4;
        bytes memory res = new bytes(res_length);

        uint256 i = 0;
        uint256 j = 0;

        for (; i + 3 <= bs.length; i += 3) {
            (res[j], res[j + 1], res[j + 2], res[j + 3]) = encode3(
                uint8(bs[i]),
                uint8(bs[i + 1]),
                uint8(bs[i + 2])
            );

            j += 4;
        }

        if (rem != 0) {
            uint8 la0 = uint8(bs[bs.length - rem]);
            uint8 la1 = 0;

            if (rem == 2) {
                la1 = uint8(bs[bs.length - 1]);
            }

            (bytes1 b0, bytes1 b1, bytes1 b2, ) = encode3(la0, la1, 0);
            res[j] = b0;
            res[j + 1] = b1;
            if (rem == 2) {
                res[j + 2] = b2;
            }
        }

        for (uint256 k = j + rem + 1; k < res_length; k++) {
            res[k] = "=";
        }

        return string(res);
    }

    function encode3(
        uint256 a0,
        uint256 a1,
        uint256 a2
    )
        private
        pure
        returns (
            bytes1 b0,
            bytes1 b1,
            bytes1 b2,
            bytes1 b3
        )
    {
        uint256 n = (a0 << 16) | (a1 << 8) | a2;

        uint256 c0 = (n >> 18) & 63;
        uint256 c1 = (n >> 12) & 63;
        uint256 c2 = (n >> 6) & 63;
        uint256 c3 = (n) & 63;

        b0 = base64stdchars[c0];
        b1 = base64stdchars[c1];
        b2 = base64stdchars[c2];
        b3 = base64stdchars[c3];
    }
}

File 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

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 14 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"premineMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"premineRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526013600c553480156200001657600080fd5b50604080518082018252601681527f54686520456d7065726f7227732050617373776f726400000000000000000000602080830191825283518085019094526004845263424f4f4b60e01b9084015281519192916200007891600091620005c1565b5080516200008e906001906020840190620005c1565b505050620000ab620000a5620000d760201b60201c565b620000db565b336000818152600b60205260408120805460ff19166001179055620000d191906200012d565b6200071b565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000818152600260205260409020546001600160a01b031615620001f05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000180565b620001fe6000838362000287565b6001600160a01b0382166000908152600360205260408120805460019290620002299084906200067d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6200029f838383620002a460201b62000dd51760201c565b505050565b620002bc8383836200029f60201b6200059f1760201c565b6001600160a01b0383166200031a576200031481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b62000340565b816001600160a01b0316836001600160a01b031614620003405762000340838262000380565b6001600160a01b0382166200035a576200029f816200042d565b826001600160a01b0316826001600160a01b0316146200029f576200029f8282620004e7565b600060016200039a846200053860201b6200085c1760201c565b620003a6919062000698565b600083815260076020526040902054909150808214620003fa576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090620004419060019062000698565b600083815260096020526040812054600880549394509092849081106200046c576200046c620006b2565b906000526020600020015490508060088381548110620004905762000490620006b2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480620004cb57620004cb620006c8565b6001900381819060005260206000200160009055905550505050565b6000620004ff836200053860201b6200085c1760201c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b038216620005a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840162000180565b506001600160a01b031660009081526003602052604090205490565b828054620005cf90620006de565b90600052602060002090601f016020900481019282620005f357600085556200063e565b82601f106200060e57805160ff19168380011785556200063e565b828001600101855582156200063e579182015b828111156200063e57825182559160200191906001019062000621565b506200064c92915062000650565b5090565b5b808211156200064c576000815560010162000651565b634e487b7160e01b600052601160045260246000fd5b6000821982111562000693576200069362000667565b500190565b600082821015620006ad57620006ad62000667565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c90821680620006f357607f821691505b602082108114156200071557634e487b7160e01b600052602260045260246000fd5b50919050565b612f0a806200072b6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063adf2cead1161007c578063adf2cead146102c1578063b88d4fde146102d4578063c87b56dd146102e7578063e8a3d485146102fa578063e985e9c514610302578063f2fde38b1461033e57600080fd5b806370a0823114610271578063715018a61461028457806380a9af221461028c5780638da5cb5b1461029557806395d89b41146102a6578063a22cb465146102ae57600080fd5b80632f745c59116101155780632f745c59146101ff57806342842e0e1461021257806342966c68146102255780634f6ccce714610238578063624bec311461024b5780636352211e1461025e57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc1461019a578063095ea7b3146101c557806318160ddd146101da57806323b872dd146101ec575b600080fd5b61017061016b366004612140565b610351565b60405190151581526020015b60405180910390f35b61018d610362565b60405161017c91906121bc565b6101ad6101a83660046121cf565b6103f4565b6040516001600160a01b03909116815260200161017c565b6101d86101d3366004612204565b61048e565b005b6008545b60405190815260200161017c565b6101d86101fa36600461222e565b6105a4565b6101de61020d366004612204565b6105d6565b6101d861022036600461222e565b61066c565b6101d86102333660046121cf565b610687565b6101de6102463660046121cf565b610701565b6101d861025936600461226a565b610794565b6101ad61026c3660046121cf565b6107e5565b6101de61027f36600461226a565b61085c565b6101d86108e3565b6101de600c5481565b600a546001600160a01b03166101ad565b61018d610949565b6101d86102bc366004612285565b610958565b6101d86102cf3660046121cf565b610a1d565b6101d86102e23660046122d7565b610b1a565b61018d6102f53660046121cf565b610b52565b61018d610cb0565b6101706103103660046123b3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101d861034c36600461226a565b610d0d565b600061035c82610e8d565b92915050565b606060008054610371906123e6565b80601f016020809104026020016040519081016040528092919081815260200182805461039d906123e6565b80156103ea5780601f106103bf576101008083540402835291602001916103ea565b820191906000526020600020905b8154815290600101906020018083116103cd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610499826107e5565b9050806001600160a01b0316836001600160a01b031614156105075760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610469565b336001600160a01b038216148061052357506105238133610310565b6105955760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610469565b61059f8383610eb2565b505050565b6105af335b82610f20565b6105cb5760405162461bcd60e51b815260040161046990612421565b61059f838383611017565b60006105e18361085c565b82106106435760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610469565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61059f83838360405180602001604052806000815250610b1a565b610690336105a9565b6106f55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610469565b6106fe816111c2565b50565b600061070c60085490565b821061076f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610469565b6008828154811061078257610782612472565b90600052602060002001549050919050565b600a546001600160a01b031633146107ab57600080fd5b6000600c54116107ba57600080fd5b6001600c60008282546107cd919061249e565b909155506106fe9050816107e060085490565b611269565b6000818152600260205260408120546001600160a01b03168061035c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610469565b60006001600160a01b0382166108c75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610469565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461093d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610469565b61094760006113b7565b565b606060018054610371906123e6565b6001600160a01b0382163314156109b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610469565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b602052604090205460ff1615610a3a57600080fd5b6101f4600c54610a4960085490565b610a5391906124b5565b10610a5d57600080fd5b6040516bffffffffffffffffffffffff193360601b1660208201526632b6b832b937b960c91b6034820152600290603b0160408051601f1981840301815290829052610aa8916124e9565b602060405180830381855afa158015610ac5573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610ae89190612505565b8114610af357600080fd5b336000818152600b60205260409020805460ff191660011790556106fe906107e060085490565b610b243383610f20565b610b405760405162461bcd60e51b815260040161046990612421565b610b4c84848484611409565b50505050565b6060610b5d60085490565b8210610b6857600080fd5b60015b6006811015610c97576000610b80824361249e565b4090506002610b9161010083612534565b610b9b9190612548565b60771415610c845760408051600a80825281830190925260009160208201818036833701905050905060005b600a811015610c71576040805180820190915260208082527f6162636465666768696a6b6c6d6e6f707172737475767778797a32333435363781830152610c0e9085612534565b81518110610c1e57610c1e612472565b602001015160f81c60f81b828281518110610c3b57610c3b612472565b60200101906001600160f81b031916908160001a905350610c5d602084612548565b925080610c698161255c565b915050610bc7565b50610c7b8161143c565b95945050505050565b5080610c8f8161255c565b915050610b6b565b5061035c6040518060200160405280600081525061143c565b6060610ce9610cc5610cc06114dc565b611728565b604051602001610cd59190612577565b604051602081830303815290604052611728565b604051602001610cf9919061263a565b604051602081830303815290604052905090565b600a546001600160a01b03163314610d675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610469565b6001600160a01b038116610dcc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610469565b6106fe816113b7565b6001600160a01b038316610e3057610e2b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610e53565b816001600160a01b0316836001600160a01b031614610e5357610e538382611a9b565b6001600160a01b038216610e6a5761059f81611b38565b826001600160a01b0316826001600160a01b03161461059f5761059f8282611be7565b60006001600160e01b0319821663780e9d6360e01b148061035c575061035c82611c2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ee7826107e5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610f995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610469565b6000610fa4836107e5565b9050806001600160a01b0316846001600160a01b03161480610fdf5750836001600160a01b0316610fd4846103f4565b6001600160a01b0316145b8061100f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661102a826107e5565b6001600160a01b0316146110925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610469565b6001600160a01b0382166110f45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610469565b6110ff838383611c7b565b61110a600082610eb2565b6001600160a01b038316600090815260036020526040812080546001929061113390849061249e565b90915550506001600160a01b03821660009081526003602052604081208054600192906111619084906124b5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006111cd826107e5565b90506111db81600084611c7b565b6111e6600083610eb2565b6001600160a01b038116600090815260036020526040812080546001929061120f90849061249e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166112bf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610469565b6000818152600260205260409020546001600160a01b0316156113245760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610469565b61133060008383611c7b565b6001600160a01b03821660009081526003602052604081208054600192906113599084906124b5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611414848484611017565b61142084848484611c86565b610b4c5760405162461bcd60e51b81526004016104699061267f565b60606114b661145d600084511161145557610cc06114dc565b610cc0611d93565b600084511161148457604051806080016040528060438152602001612dc8604391396114a5565b8360405160200161149591906126d1565b6040516020818303038152906040525b604051602001610cd592919061272d565b6040516020016114c6919061263a565b6040516020818303038152906040529050919050565b60608060005b6004604051806080016040528060508152602001612d7860509139516115089190612548565b811015611701576000604051806080016040528060508152602001612d78605091396115358360046128b0565b8151811061154557611545612472565b016020015160f81c9050608080821015906115609083612534565b91506000604051806080016040528060508152602001612d78605091396115888560046128b0565b6115939060016124b5565b815181106115a3576115a3612472565b602001015160f81c60f81b60f81c60ff1690506000604051806080016040528060508152602001612d78605091396115dc8660046128b0565b6115e79060026124b5565b815181106115f7576115f7612472565b602001015160f81c60f81b60f81c60ff1690506000604051806080016040528060508152602001612d78605091396116308760046128b0565b61163b9060036124b5565b8151811061164b5761164b612472565b016020015160f81c9050868461167f576040518060400160405280600681526020016503030303030360d41b81525061169f565b6040518060400160405280600681526020016523232323232360d11b8152505b6116a887611efe565b6116b186611efe565b6116ba86611efe565b6116c386611efe565b6040516020016116d8969594939291906128cf565b6040516020818303038152906040529650505050505080806116f99061255c565b9150506114e2565b508060405160200161171391906129c0565b60405160208183030381529060405291505090565b606060006003835161173a9190612534565b9050600060038451600261174e91906124b5565b6117589190612548565b6117639060046128b0565b905060008167ffffffffffffffff811115611780576117806122c1565b6040519080825280601f01601f1916602001820160405280156117aa576020820181803683370190505b5090506000805b86516117be8360036124b5565b116119085761182d8783815181106117d8576117d8612472565b016020015160f81c886117ec8560016124b5565b815181106117fc576117fc612472565b016020015160f81c896118108660026124b5565b8151811061182057611820612472565b016020015160f81c61200f565b86858151811061183f5761183f612472565b016020018761184f8760016124b5565b8151811061185f5761185f612472565b016020018861186f8860026124b5565b8151811061187f5761187f612472565b016020018961188f8960036124b5565b8151811061189f5761189f612472565b6001600160f81b0319861660001a9101602001536001600160f81b0319851660001a90536001600160f81b0319851660001a90536001600160f81b0319851660001a9053505050506004816118f491906124b5565b90506119016003836124b5565b91506117b1565b8415611a2d5760008786895161191e919061249e565b8151811061192e5761192e612472565b016020015160f81c90506000600287141561196d578860018a51611952919061249e565b8151811061196257611962612472565b016020015160f81c90505b60008060006119848560ff168560ff16600061200f565b509250925092508288878151811061199e5761199e612472565b60200101906001600160f81b031916908160001a90535081886119c28860016124b5565b815181106119d2576119d2612472565b60200101906001600160f81b031916908160001a9053508960021415611a275780886119ff8860026124b5565b81518110611a0f57611a0f612472565b60200101906001600160f81b031916908160001a9053505b50505050505b6000611a3986836124b5565b611a449060016124b5565b90505b84811015611a8f57603d60f81b848281518110611a6657611a66612472565b60200101906001600160f81b031916908160001a90535080611a878161255c565b915050611a47565b50919695505050505050565b60006001611aa88461085c565b611ab2919061249e565b600083815260076020526040902054909150808214611b05576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611b4a9060019061249e565b60008381526009602052604081205460088054939450909284908110611b7257611b72612472565b906000526020600020015490508060088381548110611b9357611b93612472565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611bcb57611bcb612a9b565b6001900381819060005260206000200160009055905550505050565b6000611bf28361085c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480611c5c57506001600160e01b03198216635b5e139f60e01b145b8061035c57506301ffc9a760e01b6001600160e01b031983161461035c565b61059f838383610dd5565b60006001600160a01b0384163b15611d8857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cca903390899088908890600401612ab1565b602060405180830381600087803b158015611ce457600080fd5b505af1925050508015611d14575060408051601f3d908101601f19168201909252611d1191810190612ae4565b60015b611d6e573d808015611d42576040519150601f19603f3d011682016040523d82523d6000602084013e611d47565b606091505b508051611d665760405162461bcd60e51b81526004016104699061267f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061100f565b506001949350505050565b6060806000806000805b6026811015611ed45760005b601d811015611ec157600081611dc084601d6128b0565b611dca91906124b5565b9050600080611dda600884612534565b611de590600761249e565b6001901b6040518060c00160405280608a8152602001612e4b608a9139611e0d600886612548565b81518110611e1d57611e1d612472565b016020015160f81c16119050801580611e365750848414155b8015611e425750600086115b15611e8c5787611e5188611efe565b611e5a87611efe565b611e6389611efe565b604051602001611e769493929190612b01565b6040516020818303038152906040529750600095505b8015611eac5785611e9e578296508394505b611ea96001876124b5565b95505b50508080611eb99061255c565b915050611da9565b5080611ecc8161255c565b915050611d9d565b5083604051602001611ee69190612bb1565b60405160208183030381529060405294505050505090565b606081611f225750506040805180820190915260018152600360fc1b602082015290565b6000825b8015611f4b57611f376001836124b5565b9150611f44600a82612548565b9050611f26565b60008267ffffffffffffffff811115611f6657611f666122c1565b6040519080825280601f01601f191660200182016040528015611f90576020820181803683370190505b509050825b801561200657611fa6600a87612534565b611fb19060306124b5565b60f81b82611fc060018461249e565b81518110611fd057611fd0612472565b60200101906001600160f81b031916908160001a905350611ff2600a87612548565b955080611ffe81612d60565b915050611f95565b50949350505050565b60408051606081018252818152600091829182918291601089901b600889901b17871791603f601284901c811692600c85901c821692600686901c83169286169190612e0b6020830139848151811061206a5761206a612472565b602001015160f81c60f81b9850604051806060016040528060408152602001612e0b6040913983815181106120a1576120a1612472565b602001015160f81c60f81b9750604051806060016040528060408152602001612e0b6040913982815181106120d8576120d8612472565b602001015160f81c60f81b9650604051806060016040528060408152602001612e0b60409139818151811061210f5761210f612472565b602001015160f81c60f81b9550505050505093509350935093565b6001600160e01b0319811681146106fe57600080fd5b60006020828403121561215257600080fd5b813561215d8161212a565b9392505050565b60005b8381101561217f578181015183820152602001612167565b83811115610b4c5750506000910152565b600081518084526121a8816020860160208601612164565b601f01601f19169290920160200192915050565b60208152600061215d6020830184612190565b6000602082840312156121e157600080fd5b5035919050565b80356001600160a01b03811681146121ff57600080fd5b919050565b6000806040838503121561221757600080fd5b612220836121e8565b946020939093013593505050565b60008060006060848603121561224357600080fd5b61224c846121e8565b925061225a602085016121e8565b9150604084013590509250925092565b60006020828403121561227c57600080fd5b61215d826121e8565b6000806040838503121561229857600080fd5b6122a1836121e8565b9150602083013580151581146122b657600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122ed57600080fd5b6122f6856121e8565b9350612304602086016121e8565b925060408501359150606085013567ffffffffffffffff8082111561232857600080fd5b818701915087601f83011261233c57600080fd5b81358181111561234e5761234e6122c1565b604051601f8201601f19908116603f01168101908382118183101715612376576123766122c1565b816040528281528a602084870101111561238f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156123c657600080fd5b6123cf836121e8565b91506123dd602084016121e8565b90509250929050565b600181811c908216806123fa57607f821691505b6020821081141561241b57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156124b0576124b0612488565b500390565b600082198211156124c8576124c8612488565b500190565b600081516124df818560208601612164565b9290920192915050565b600082516124fb818460208701612164565b9190910192915050565b60006020828403121561251757600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826125435761254361251e565b500690565b6000826125575761255761251e565b500490565b600060001982141561257057612570612488565b5060010190565b7f7b226e616d65223a2254686520456d7065726f7227732050617373776f72642281527f2c226465736372697074696f6e223a224f6e6c7920746865207769736520636160208201527f6e2072656164207468652070617373776f72642e222c22696d616765223a226460408201527f6174613a696d6167652f7376672b786d6c3b6261736536342c00000000000000606082015260008251612621816079850160208701612164565b61227d60f01b6079939091019283015250607b01919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161267281601d850160208701612164565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f7b2274726169745f74797065223a2270617373776f7264222c2276616c7565228152611d1160f11b602082015260008251612714816022850160208701612164565b61227d60f01b6022939091019283015250602401919050565b7f7b226e616d65223a2254686520456d7065726f7227732050617373776f72642281527f2c226465736372697074696f6e223a225468697320626f6f6b20686f6c64732060208201527f74686520456d7065726f722773207365637265742070617373776f72642e204960408201527f742773207772697474656e20696e207468652073616d6520696e6b207573656460608201527f20746f206479652068697320636c6f746865732e20596f75276c6c206e65656460808201527f20676f6f642074696d696e672c20616e64207761746368206f757420666f722060a08201527f63616368696e6721222c22696d616765223a22646174613a696d6167652f737660c08201526c19cade1b5b0ed8985cd94d8d0b609a1b60e08201526000835161285f8160ed850160208801612164565b6f222c2261747472696275746573223a5b60801b60ed91840191820152835161288f8160fd840160208801612164565b6128a660fd82840101615d7d60f01b815260020190565b9695505050505050565b60008160001904831182151516156128ca576128ca612488565b500290565b6000875160206128e28285838d01612164565b6c3c726563742066696c6c3d222360981b918401918252885161290b81600d8501848d01612164565b6411103c1e9160d91b600d939091019283015287516129308160128501848c01612164565b6411103c9e9160d91b6012939091019283015286516129558160178501848b01612164565b6811103bb4b23a341e9160b91b60179390910192830152855161297d81838501848a01612164565b6911103432b4b3b43a1e9160b11b9201908101919091526129b36129a4602a8301866124cd565b6211179f60e91b815260030190565b9998505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076657273696f6e3d22312e3122207072657365727665417360208201527f70656374526174696f3d22784d696e594d696e206d656574222076696577426f60408201527f783d22302030203338203338222073686170652d72656e646572696e673d226360608201526a3934b9b822b233b2b9911f60a91b608082015260008251612a7e81608b850160208701612164565b651e17b9bb339f60d11b608b939091019283015250609101919050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128a690830184612190565b600060208284031215612af657600080fd5b815161215d8161212a565b60008551612b13818460208a01612164565b721e3932b1ba1031b630b9b99e913311103c1e9160691b9083019081528551612b43816013840160208a01612164565b6411103c9e9160d91b601392909101918201528451612b69816018840160208901612164565b6811103bb4b23a341e9160b91b601892909101918201528351612b93816021840160208801612164565b6211179f60e91b602192909101918201526024019695505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076657273696f6e3d22312e3122207072657365727665417360208201527f70656374526174696f3d22784d696e594d696e206d656574222076696577426f60408201527f783d22302030203537203338222073686170652d72656e646572696e673d226360608201527f726973704564676573223e3c7374796c653e726563742e667b66696c6c3a233060808201527f30303030303b6865696768743a3170783b7d3c2f7374796c653e3c726563742060a08201527f783d22302220793d2230222077696474683d22353722206865696768743d223360c08201527f38222066696c6c3d2223464646464646222f3e3c672069643d226c656674223e60e082015260006101008351612cf58183860160208801612164565b7f3c2f673e3c75736520687265663d22236c65667422207472616e73666f726d3d930190810192909252507f227472616e736c6174652835372c3029207363616c65282d312c203129222f3e610120820152651e17b9bb339f60d11b61014082015261014601919050565b600081612d6f57612d6f612488565b50600019019056fe03021e1d03042020a105011a881f1a03851f0203842004018323010187230101841c0102840a010e84040102880401029f0401029f1c01029e1d01019e0401018904010187020101881c0102891d01017b2274726169745f74797065223a2270617469656e6365222c22646973706c61795f74797065223a22626f6f73745f6e756d626572222c2276616c7565223a3130307d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f00f80000043f00002007001f0007008800060440000fe200003f100001f880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e8f8000f403f007a000703dff0071e007e06f0000fcf800001bffffffeffffffe7fffffe0a2646970667358221220f6cecc79ff56c487313198f9a302549292d05415432dbc831abb0c3ecaa2004f64736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063adf2cead1161007c578063adf2cead146102c1578063b88d4fde146102d4578063c87b56dd146102e7578063e8a3d485146102fa578063e985e9c514610302578063f2fde38b1461033e57600080fd5b806370a0823114610271578063715018a61461028457806380a9af221461028c5780638da5cb5b1461029557806395d89b41146102a6578063a22cb465146102ae57600080fd5b80632f745c59116101155780632f745c59146101ff57806342842e0e1461021257806342966c68146102255780634f6ccce714610238578063624bec311461024b5780636352211e1461025e57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc1461019a578063095ea7b3146101c557806318160ddd146101da57806323b872dd146101ec575b600080fd5b61017061016b366004612140565b610351565b60405190151581526020015b60405180910390f35b61018d610362565b60405161017c91906121bc565b6101ad6101a83660046121cf565b6103f4565b6040516001600160a01b03909116815260200161017c565b6101d86101d3366004612204565b61048e565b005b6008545b60405190815260200161017c565b6101d86101fa36600461222e565b6105a4565b6101de61020d366004612204565b6105d6565b6101d861022036600461222e565b61066c565b6101d86102333660046121cf565b610687565b6101de6102463660046121cf565b610701565b6101d861025936600461226a565b610794565b6101ad61026c3660046121cf565b6107e5565b6101de61027f36600461226a565b61085c565b6101d86108e3565b6101de600c5481565b600a546001600160a01b03166101ad565b61018d610949565b6101d86102bc366004612285565b610958565b6101d86102cf3660046121cf565b610a1d565b6101d86102e23660046122d7565b610b1a565b61018d6102f53660046121cf565b610b52565b61018d610cb0565b6101706103103660046123b3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101d861034c36600461226a565b610d0d565b600061035c82610e8d565b92915050565b606060008054610371906123e6565b80601f016020809104026020016040519081016040528092919081815260200182805461039d906123e6565b80156103ea5780601f106103bf576101008083540402835291602001916103ea565b820191906000526020600020905b8154815290600101906020018083116103cd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610499826107e5565b9050806001600160a01b0316836001600160a01b031614156105075760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610469565b336001600160a01b038216148061052357506105238133610310565b6105955760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610469565b61059f8383610eb2565b505050565b6105af335b82610f20565b6105cb5760405162461bcd60e51b815260040161046990612421565b61059f838383611017565b60006105e18361085c565b82106106435760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610469565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61059f83838360405180602001604052806000815250610b1a565b610690336105a9565b6106f55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610469565b6106fe816111c2565b50565b600061070c60085490565b821061076f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610469565b6008828154811061078257610782612472565b90600052602060002001549050919050565b600a546001600160a01b031633146107ab57600080fd5b6000600c54116107ba57600080fd5b6001600c60008282546107cd919061249e565b909155506106fe9050816107e060085490565b611269565b6000818152600260205260408120546001600160a01b03168061035c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610469565b60006001600160a01b0382166108c75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610469565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461093d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610469565b61094760006113b7565b565b606060018054610371906123e6565b6001600160a01b0382163314156109b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610469565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b602052604090205460ff1615610a3a57600080fd5b6101f4600c54610a4960085490565b610a5391906124b5565b10610a5d57600080fd5b6040516bffffffffffffffffffffffff193360601b1660208201526632b6b832b937b960c91b6034820152600290603b0160408051601f1981840301815290829052610aa8916124e9565b602060405180830381855afa158015610ac5573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610ae89190612505565b8114610af357600080fd5b336000818152600b60205260409020805460ff191660011790556106fe906107e060085490565b610b243383610f20565b610b405760405162461bcd60e51b815260040161046990612421565b610b4c84848484611409565b50505050565b6060610b5d60085490565b8210610b6857600080fd5b60015b6006811015610c97576000610b80824361249e565b4090506002610b9161010083612534565b610b9b9190612548565b60771415610c845760408051600a80825281830190925260009160208201818036833701905050905060005b600a811015610c71576040805180820190915260208082527f6162636465666768696a6b6c6d6e6f707172737475767778797a32333435363781830152610c0e9085612534565b81518110610c1e57610c1e612472565b602001015160f81c60f81b828281518110610c3b57610c3b612472565b60200101906001600160f81b031916908160001a905350610c5d602084612548565b925080610c698161255c565b915050610bc7565b50610c7b8161143c565b95945050505050565b5080610c8f8161255c565b915050610b6b565b5061035c6040518060200160405280600081525061143c565b6060610ce9610cc5610cc06114dc565b611728565b604051602001610cd59190612577565b604051602081830303815290604052611728565b604051602001610cf9919061263a565b604051602081830303815290604052905090565b600a546001600160a01b03163314610d675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610469565b6001600160a01b038116610dcc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610469565b6106fe816113b7565b6001600160a01b038316610e3057610e2b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610e53565b816001600160a01b0316836001600160a01b031614610e5357610e538382611a9b565b6001600160a01b038216610e6a5761059f81611b38565b826001600160a01b0316826001600160a01b03161461059f5761059f8282611be7565b60006001600160e01b0319821663780e9d6360e01b148061035c575061035c82611c2b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ee7826107e5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610f995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610469565b6000610fa4836107e5565b9050806001600160a01b0316846001600160a01b03161480610fdf5750836001600160a01b0316610fd4846103f4565b6001600160a01b0316145b8061100f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661102a826107e5565b6001600160a01b0316146110925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610469565b6001600160a01b0382166110f45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610469565b6110ff838383611c7b565b61110a600082610eb2565b6001600160a01b038316600090815260036020526040812080546001929061113390849061249e565b90915550506001600160a01b03821660009081526003602052604081208054600192906111619084906124b5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006111cd826107e5565b90506111db81600084611c7b565b6111e6600083610eb2565b6001600160a01b038116600090815260036020526040812080546001929061120f90849061249e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166112bf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610469565b6000818152600260205260409020546001600160a01b0316156113245760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610469565b61133060008383611c7b565b6001600160a01b03821660009081526003602052604081208054600192906113599084906124b5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611414848484611017565b61142084848484611c86565b610b4c5760405162461bcd60e51b81526004016104699061267f565b60606114b661145d600084511161145557610cc06114dc565b610cc0611d93565b600084511161148457604051806080016040528060438152602001612dc8604391396114a5565b8360405160200161149591906126d1565b6040516020818303038152906040525b604051602001610cd592919061272d565b6040516020016114c6919061263a565b6040516020818303038152906040529050919050565b60608060005b6004604051806080016040528060508152602001612d7860509139516115089190612548565b811015611701576000604051806080016040528060508152602001612d78605091396115358360046128b0565b8151811061154557611545612472565b016020015160f81c9050608080821015906115609083612534565b91506000604051806080016040528060508152602001612d78605091396115888560046128b0565b6115939060016124b5565b815181106115a3576115a3612472565b602001015160f81c60f81b60f81c60ff1690506000604051806080016040528060508152602001612d78605091396115dc8660046128b0565b6115e79060026124b5565b815181106115f7576115f7612472565b602001015160f81c60f81b60f81c60ff1690506000604051806080016040528060508152602001612d78605091396116308760046128b0565b61163b9060036124b5565b8151811061164b5761164b612472565b016020015160f81c9050868461167f576040518060400160405280600681526020016503030303030360d41b81525061169f565b6040518060400160405280600681526020016523232323232360d11b8152505b6116a887611efe565b6116b186611efe565b6116ba86611efe565b6116c386611efe565b6040516020016116d8969594939291906128cf565b6040516020818303038152906040529650505050505080806116f99061255c565b9150506114e2565b508060405160200161171391906129c0565b60405160208183030381529060405291505090565b606060006003835161173a9190612534565b9050600060038451600261174e91906124b5565b6117589190612548565b6117639060046128b0565b905060008167ffffffffffffffff811115611780576117806122c1565b6040519080825280601f01601f1916602001820160405280156117aa576020820181803683370190505b5090506000805b86516117be8360036124b5565b116119085761182d8783815181106117d8576117d8612472565b016020015160f81c886117ec8560016124b5565b815181106117fc576117fc612472565b016020015160f81c896118108660026124b5565b8151811061182057611820612472565b016020015160f81c61200f565b86858151811061183f5761183f612472565b016020018761184f8760016124b5565b8151811061185f5761185f612472565b016020018861186f8860026124b5565b8151811061187f5761187f612472565b016020018961188f8960036124b5565b8151811061189f5761189f612472565b6001600160f81b0319861660001a9101602001536001600160f81b0319851660001a90536001600160f81b0319851660001a90536001600160f81b0319851660001a9053505050506004816118f491906124b5565b90506119016003836124b5565b91506117b1565b8415611a2d5760008786895161191e919061249e565b8151811061192e5761192e612472565b016020015160f81c90506000600287141561196d578860018a51611952919061249e565b8151811061196257611962612472565b016020015160f81c90505b60008060006119848560ff168560ff16600061200f565b509250925092508288878151811061199e5761199e612472565b60200101906001600160f81b031916908160001a90535081886119c28860016124b5565b815181106119d2576119d2612472565b60200101906001600160f81b031916908160001a9053508960021415611a275780886119ff8860026124b5565b81518110611a0f57611a0f612472565b60200101906001600160f81b031916908160001a9053505b50505050505b6000611a3986836124b5565b611a449060016124b5565b90505b84811015611a8f57603d60f81b848281518110611a6657611a66612472565b60200101906001600160f81b031916908160001a90535080611a878161255c565b915050611a47565b50919695505050505050565b60006001611aa88461085c565b611ab2919061249e565b600083815260076020526040902054909150808214611b05576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611b4a9060019061249e565b60008381526009602052604081205460088054939450909284908110611b7257611b72612472565b906000526020600020015490508060088381548110611b9357611b93612472565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611bcb57611bcb612a9b565b6001900381819060005260206000200160009055905550505050565b6000611bf28361085c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480611c5c57506001600160e01b03198216635b5e139f60e01b145b8061035c57506301ffc9a760e01b6001600160e01b031983161461035c565b61059f838383610dd5565b60006001600160a01b0384163b15611d8857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cca903390899088908890600401612ab1565b602060405180830381600087803b158015611ce457600080fd5b505af1925050508015611d14575060408051601f3d908101601f19168201909252611d1191810190612ae4565b60015b611d6e573d808015611d42576040519150601f19603f3d011682016040523d82523d6000602084013e611d47565b606091505b508051611d665760405162461bcd60e51b81526004016104699061267f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061100f565b506001949350505050565b6060806000806000805b6026811015611ed45760005b601d811015611ec157600081611dc084601d6128b0565b611dca91906124b5565b9050600080611dda600884612534565b611de590600761249e565b6001901b6040518060c00160405280608a8152602001612e4b608a9139611e0d600886612548565b81518110611e1d57611e1d612472565b016020015160f81c16119050801580611e365750848414155b8015611e425750600086115b15611e8c5787611e5188611efe565b611e5a87611efe565b611e6389611efe565b604051602001611e769493929190612b01565b6040516020818303038152906040529750600095505b8015611eac5785611e9e578296508394505b611ea96001876124b5565b95505b50508080611eb99061255c565b915050611da9565b5080611ecc8161255c565b915050611d9d565b5083604051602001611ee69190612bb1565b60405160208183030381529060405294505050505090565b606081611f225750506040805180820190915260018152600360fc1b602082015290565b6000825b8015611f4b57611f376001836124b5565b9150611f44600a82612548565b9050611f26565b60008267ffffffffffffffff811115611f6657611f666122c1565b6040519080825280601f01601f191660200182016040528015611f90576020820181803683370190505b509050825b801561200657611fa6600a87612534565b611fb19060306124b5565b60f81b82611fc060018461249e565b81518110611fd057611fd0612472565b60200101906001600160f81b031916908160001a905350611ff2600a87612548565b955080611ffe81612d60565b915050611f95565b50949350505050565b60408051606081018252818152600091829182918291601089901b600889901b17871791603f601284901c811692600c85901c821692600686901c83169286169190612e0b6020830139848151811061206a5761206a612472565b602001015160f81c60f81b9850604051806060016040528060408152602001612e0b6040913983815181106120a1576120a1612472565b602001015160f81c60f81b9750604051806060016040528060408152602001612e0b6040913982815181106120d8576120d8612472565b602001015160f81c60f81b9650604051806060016040528060408152602001612e0b60409139818151811061210f5761210f612472565b602001015160f81c60f81b9550505050505093509350935093565b6001600160e01b0319811681146106fe57600080fd5b60006020828403121561215257600080fd5b813561215d8161212a565b9392505050565b60005b8381101561217f578181015183820152602001612167565b83811115610b4c5750506000910152565b600081518084526121a8816020860160208601612164565b601f01601f19169290920160200192915050565b60208152600061215d6020830184612190565b6000602082840312156121e157600080fd5b5035919050565b80356001600160a01b03811681146121ff57600080fd5b919050565b6000806040838503121561221757600080fd5b612220836121e8565b946020939093013593505050565b60008060006060848603121561224357600080fd5b61224c846121e8565b925061225a602085016121e8565b9150604084013590509250925092565b60006020828403121561227c57600080fd5b61215d826121e8565b6000806040838503121561229857600080fd5b6122a1836121e8565b9150602083013580151581146122b657600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122ed57600080fd5b6122f6856121e8565b9350612304602086016121e8565b925060408501359150606085013567ffffffffffffffff8082111561232857600080fd5b818701915087601f83011261233c57600080fd5b81358181111561234e5761234e6122c1565b604051601f8201601f19908116603f01168101908382118183101715612376576123766122c1565b816040528281528a602084870101111561238f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156123c657600080fd5b6123cf836121e8565b91506123dd602084016121e8565b90509250929050565b600181811c908216806123fa57607f821691505b6020821081141561241b57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156124b0576124b0612488565b500390565b600082198211156124c8576124c8612488565b500190565b600081516124df818560208601612164565b9290920192915050565b600082516124fb818460208701612164565b9190910192915050565b60006020828403121561251757600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826125435761254361251e565b500690565b6000826125575761255761251e565b500490565b600060001982141561257057612570612488565b5060010190565b7f7b226e616d65223a2254686520456d7065726f7227732050617373776f72642281527f2c226465736372697074696f6e223a224f6e6c7920746865207769736520636160208201527f6e2072656164207468652070617373776f72642e222c22696d616765223a226460408201527f6174613a696d6167652f7376672b786d6c3b6261736536342c00000000000000606082015260008251612621816079850160208701612164565b61227d60f01b6079939091019283015250607b01919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161267281601d850160208701612164565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f7b2274726169745f74797065223a2270617373776f7264222c2276616c7565228152611d1160f11b602082015260008251612714816022850160208701612164565b61227d60f01b6022939091019283015250602401919050565b7f7b226e616d65223a2254686520456d7065726f7227732050617373776f72642281527f2c226465736372697074696f6e223a225468697320626f6f6b20686f6c64732060208201527f74686520456d7065726f722773207365637265742070617373776f72642e204960408201527f742773207772697474656e20696e207468652073616d6520696e6b207573656460608201527f20746f206479652068697320636c6f746865732e20596f75276c6c206e65656460808201527f20676f6f642074696d696e672c20616e64207761746368206f757420666f722060a08201527f63616368696e6721222c22696d616765223a22646174613a696d6167652f737660c08201526c19cade1b5b0ed8985cd94d8d0b609a1b60e08201526000835161285f8160ed850160208801612164565b6f222c2261747472696275746573223a5b60801b60ed91840191820152835161288f8160fd840160208801612164565b6128a660fd82840101615d7d60f01b815260020190565b9695505050505050565b60008160001904831182151516156128ca576128ca612488565b500290565b6000875160206128e28285838d01612164565b6c3c726563742066696c6c3d222360981b918401918252885161290b81600d8501848d01612164565b6411103c1e9160d91b600d939091019283015287516129308160128501848c01612164565b6411103c9e9160d91b6012939091019283015286516129558160178501848b01612164565b6811103bb4b23a341e9160b91b60179390910192830152855161297d81838501848a01612164565b6911103432b4b3b43a1e9160b11b9201908101919091526129b36129a4602a8301866124cd565b6211179f60e91b815260030190565b9998505050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076657273696f6e3d22312e3122207072657365727665417360208201527f70656374526174696f3d22784d696e594d696e206d656574222076696577426f60408201527f783d22302030203338203338222073686170652d72656e646572696e673d226360608201526a3934b9b822b233b2b9911f60a91b608082015260008251612a7e81608b850160208701612164565b651e17b9bb339f60d11b608b939091019283015250609101919050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128a690830184612190565b600060208284031215612af657600080fd5b815161215d8161212a565b60008551612b13818460208a01612164565b721e3932b1ba1031b630b9b99e913311103c1e9160691b9083019081528551612b43816013840160208a01612164565b6411103c9e9160d91b601392909101918201528451612b69816018840160208901612164565b6811103bb4b23a341e9160b91b601892909101918201528351612b93816021840160208801612164565b6211179f60e91b602192909101918201526024019695505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076657273696f6e3d22312e3122207072657365727665417360208201527f70656374526174696f3d22784d696e594d696e206d656574222076696577426f60408201527f783d22302030203537203338222073686170652d72656e646572696e673d226360608201527f726973704564676573223e3c7374796c653e726563742e667b66696c6c3a233060808201527f30303030303b6865696768743a3170783b7d3c2f7374796c653e3c726563742060a08201527f783d22302220793d2230222077696474683d22353722206865696768743d223360c08201527f38222066696c6c3d2223464646464646222f3e3c672069643d226c656674223e60e082015260006101008351612cf58183860160208801612164565b7f3c2f673e3c75736520687265663d22236c65667422207472616e73666f726d3d930190810192909252507f227472616e736c6174652835372c3029207363616c65282d312c203129222f3e610120820152651e17b9bb339f60d11b61014082015261014601919050565b600081612d6f57612d6f612488565b50600019019056fe03021e1d03042020a105011a881f1a03851f0203842004018323010187230101841c0102840a010e84040102880401029f0401029f1c01029e1d01019e0401018904010187020101881c0102891d01017b2274726169745f74797065223a2270617469656e6365222c22646973706c61795f74797065223a22626f6f73745f6e756d626572222c2276616c7565223a3130307d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f00f80000043f00002007001f0007008800060440000fe200003f100001f880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e880000f4400007a200003d100001e8f8000f403f007a000703dff0071e007e06f0000fcf800001bffffffeffffffe7fffffe0a2646970667358221220f6cecc79ff56c487313198f9a302549292d05415432dbc831abb0c3ecaa2004f64736f6c63430008090033

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.