Contract 0xE70E6d49cd2e2E24a8c856DcE9D2dF443226f484

 
 
Txn Hash
Method
Block
From
To
Value
0x4225f3ec107bf18a96dbf47efc093c4de4b6d10e32e81c61d76af34560925eafSafe Transfer Fr...157560942022-10-15 21:06:4742 days 2 hrs ago0xfd99e07d0050e1f7e4c4bfc223f6ae710c11280d IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.0016939 19.28096118
0x00339d0ee207b963955e3873931e9b5c89d36678a4cafc800b6ae64f14811af8Mint157560532022-10-15 20:58:3542 days 2 hrs ago0xfd99e07d0050e1f7e4c4bfc223f6ae710c11280d IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00482794 18.17142147
0x52007c3687a3b146b5df085d93b1070d0845ed7b834a859fad4598e690c91f22Set Approval For...157031092022-10-08 11:35:2349 days 11 hrs agoENS Name wowvavan.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00035886 7.70286563
0x013649156124013fbff80361d5f0aad459987bd9a6efd873255a2eb8ab9df619Set Approval For...155585272022-09-18 6:03:4769 days 17 hrs agoENS Name nlabsdao.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00023022 4.94165332
0x3b7413d4e9fa8c64bd943571761347d565b47451bba264a216a9310c695ebdceMint154166532022-08-26 17:22:5592 days 6 hrs ago0x048da4e48e85d616f58d311d5c27c14def3ce236 IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00321628 12.10543894
0xa9b7c7fd43a14271cde25d3b16d71f3a682d9b00804ce5dd03498afae79456a6Mint154109152022-08-25 19:31:0893 days 3 hrs agoENS Name crowdpunk.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00395126 14.87175953
0xe3a2ef99d379958c854d499888cbdc5e6a134bef4f219f7000f46a92aa94bd01Safe Transfer Fr...154008362022-08-24 4:28:3194 days 18 hrs ago0xdc5b961a5ab04ac38321c89100584fb965721931 IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00061666 7.01916662
0xb0178d8c34bbc23ccfbd65d7db94509b92e59dca48aee38407365dd2079ef574Mint153993142022-08-23 22:35:2195 days 51 mins agoENS Name tinok.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.0028132 10.58834714
0x5933ce8146c9387e7d843bc20b23c0c16460c626eb3b101c8382107549ec4bf6Batch Mint153983032022-08-23 18:42:0895 days 4 hrs ago0x3d0f7fe2653ef7537f97f2393f06d0288083c1fa IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.66 Ether0.00930514 18.5143766
0x374ad725e75f85e17ce7c20229e0ba2792e7878801cf389d6ee42d47e2e8c77bMint153981842022-08-23 18:15:2295 days 5 hrs ago0xa2e81f9f15f130898c27531c4323506e34c13e3c IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00452092 17.01586208
0x8966a820803032d80deb7e73f79df92c5c478146254593d377dd5af5a4a643feMint153980652022-08-23 17:48:5495 days 5 hrs agoENS Name institutionalliquidity.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00275642 10.37462138
0x281349f65f59aba0a5da3fd80d3b41df28b4d8233c9ff60975bafe7ba6b86490Mint153978502022-08-23 17:01:4395 days 6 hrs agoENS Name droscott.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.0058392 21.97761237
0xc3b2686063d0d4108d4421a5df63841450b4bf712a3cdb4d6175c86932cc5847Mint153978302022-08-23 16:58:0995 days 6 hrs ago0x0e79c644ec160afe87ea8e87201c0fe35ba63e1f IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00639529 24.07059499
0x3944af6f20954d7f27da37319d20235473f399b6b7a2ecfda527fee191c48709Mint153816882022-08-21 3:55:5397 days 19 hrs agoENS Name nlabsdao.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00170056 6.40057892
0x43b0a7f34a51e6b07af9bfc3a48180726688bfe914ca3063c176532f6498fc9dSet Approval For...152017122022-07-23 22:50:29126 days 36 mins ago0xb5d7752659227d07390981ce5d9d069c023174cf IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.000814 17.44057271
0x87490c47e7ae9b72629ba3bc0c736e5fa75f32a55ad551551cfb1c95a6fbd289Set Approval For...147382022022-05-08 20:24:54202 days 3 hrs ago0x73a6a002b9538f636fbfe6bfb8b7440b8b3a510e IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.0007891 16.90713469
0x2ea07b55fd870322cf4002114e66bf2867102416588dc0b02a7654f3c6ee18ddTransfer From147158672022-05-05 7:10:50205 days 16 hrs agoENS Name metasnomadic.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00354736 41.76713593
0xea0b8c96fb93590d0246e6b956e701f7d5d10b4432f88323558d073c97202c53Batch Mint146545252022-04-25 15:15:48215 days 8 hrs ago0xa1870d3cab6e9c4971e6286b2813cbc9e034e08c IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.66 Ether0.03039576 60.47825025
0x7e7e59997ea5939166e1629c048cf519ed6e9c688e69bde89062d4d46d38a51dWithdraw All145442012022-04-08 9:02:19232 days 14 hrs ago0x0de01adc0aeb6a2526056e4438d09735df63964c IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00086241 36.51669086
0xcfeed678eaf4a6e48b4e73c407c2a6f922f399b2325fbad2335ddf81c85b0b41Withdraw All145441992022-04-08 9:02:03232 days 14 hrs ago0x0de01adc0aeb6a2526056e4438d09735df63964c IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00114714 37.83820227
0xab05352de90bce8f3d14c421d122362c84b4a9a46abb7bb44ee5f94c2e8ab5bfTransfer From145342482022-04-06 19:45:05234 days 3 hrs ago0x2fb971b3b80cdd344ae18e0b8de4cab79a18117e IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00529082 62.29479305
0xf6e233d480b4cd9e6632d7a7f5ca6a12aa9ba19577b4c39442c6fd7421757397Mint145282102022-04-05 20:56:06235 days 2 hrs agoENS Name gcan.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.01886001 70.98531127
0x947af0ee78309f990ac710db6bf1ad9ca63588a6f3b4fceb0307c6b2b31b3effSafe Transfer Fr...144412172022-03-23 7:26:01248 days 16 hrs ago0x59d2bcc2761029b058c812a32b7bf05f26078ee4 IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840 Ether0.00278011 27.80306204
0xeb0360dcf5b73b5f2490aeb6d31140d9ff056960c4669ecd6e60d6b7c171507cMint144211832022-03-20 4:47:53251 days 18 hrs agoENS Name korocrux.eth IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.00493343 18.56845917
0x4197f54c13736732104523c609068c12420b03803a91a77f60dbfc00f32fc3e2Mint143864552022-03-14 18:52:45257 days 4 hrs agotaylor.wtf IN  0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840.33 Ether0.01368008 51.48909339
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0xcfeed678eaf4a6e48b4e73c407c2a6f922f399b2325fbad2335ddf81c85b0b41145441992022-04-08 9:02:03232 days 14 hrs ago 0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840x0de01adc0aeb6a2526056e4438d09735df63964c1.65 Ether
0xb752773221d96853580b9074bffc98313554bdb8022e53c4101970a20369d00d143592262022-03-10 13:03:33261 days 10 hrs ago 0xe70e6d49cd2e2e24a8c856dce9d2df443226f4840x0de01adc0aeb6a2526056e4438d09735df63964c25.08 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ReadyPlayerMePunks

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : ReadyPlayerMePunks.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


abstract contract ICryptoPunks
{
    mapping (uint => address) public punkIndexToAddress;
}


contract ReadyPlayerMePunks is ERC721, ERC721URIStorage, ERC721Enumerable
{
    string constant METADATA_URL = "https://punks.readyplayer.me/api/punks/";
    string constant METADATA_SUFFIX = "/meta";
    uint constant NFT_PRICE = 0.33 ether;
    address constant PARENT_TOKEN_ADDRESS = 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB;
    uint16 constant MAX_ASSETS = 10000;

    uint[MAX_ASSETS] private _assets;
    mapping(uint => bool) public _assetExists;
    address private _owner;


    constructor() ERC721("ReadyPlayerMePunks", "RPMP")
    {
        _owner = msg.sender;
    }


    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }


    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory)
    {
        return super.tokenURI(tokenId);
    }


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


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


    function _mintSingle(ICryptoPunks _parentContract, uint _parentIndex) private
    {
        require(_parentContract.punkIndexToAddress(_parentIndex) == msg.sender, "Parent token owner and sender mismatch.");
        require(!_assetExists[_parentIndex], "The asset does not meet the unique constraint.");

        uint _id = totalSupply();
        _assets[_id] = _parentIndex;
        _mint(msg.sender, _id);
        _setTokenURI(_id, string(abi.encodePacked(METADATA_URL, Strings.toString(_id), METADATA_SUFFIX)));
        _assetExists[_parentIndex] = true;
    }


    function mint(uint _parentTokenIndex) public payable 
    {
        require(msg.value >= NFT_PRICE, "Not enough ETH sent.");

        ICryptoPunks _parentToken = ICryptoPunks(PARENT_TOKEN_ADDRESS);
        _mintSingle(_parentToken, _parentTokenIndex);
    }


    function batchMint(uint[] memory _parentTokenIndices) public payable
    {
        require(msg.value >= NFT_PRICE * _parentTokenIndices.length, "Not enough ETH sent.");
        ICryptoPunks _parentToken = ICryptoPunks(PARENT_TOKEN_ADDRESS);

        for (uint i = 0; i < _parentTokenIndices.length; i++)
        {
            _mintSingle(_parentToken, _parentTokenIndices[i]);
        }
    }


    function getParentToken(uint tokenId) public view returns(uint parentId)
    {
        parentId = _assets[tokenId];
    }


    function getTokenPrice() public pure returns(uint price)
    {
        price = NFT_PRICE;
    }


    function getOwner() public view returns(address)
    {
        return _owner;
    }


    function withdrawAll() public 
    {
        payable(_owner).transfer(address(this).balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

Settings
{
  "optimizer": {
    "enabled": false,
    "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":"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":"uint256","name":"","type":"uint256"}],"name":"_assetExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_parentTokenIndices","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getParentToken","outputs":[{"internalType":"uint256","name":"parentId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parentTokenIndex","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280601281526020017f5265616479506c617965724d6550756e6b7300000000000000000000000000008152506040518060400160405280600481526020017f52504d5000000000000000000000000000000000000000000000000000000000815250816000908051906020019062000096929190620000fa565b508060019080519060200190620000af929190620000fa565b5050503361271c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200020f565b8280546200010890620001aa565b90600052602060002090601f0160209004810192826200012c576000855562000178565b82601f106200014757805160ff191683800117855562000178565b8280016001018555821562000178579182015b82811115620001775782518255916020019190600101906200015a565b5b5090506200018791906200018b565b5090565b5b80821115620001a65760008160009055506001016200018c565b5090565b60006002820490506001821680620001c357607f821691505b60208210811415620001da57620001d9620001e0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b613ca3806200021f6000396000f3fe6080604052600436106101405760003560e01c80636e726862116100b6578063a0712d681161006f578063a0712d6814610475578063a22cb46514610491578063b88d4fde146104ba578063c87b56dd146104e3578063d98bb08714610520578063e985e9c51461055d57610140565b80636e7268621461037257806370a08231146103af578063853828b6146103ec578063893d20e8146104035780638ffbe96b1461042e57806395d89b411461044a57610140565b806323b872dd1161010857806323b872dd1461023e5780632f745c591461026757806342842e0e146102a45780634b94f50e146102cd5780634f6ccce7146102f85780636352211e1461033557610140565b806301ffc9a71461014557806306fdde0314610182578063081812fc146101ad578063095ea7b3146101ea57806318160ddd14610213575b600080fd5b34801561015157600080fd5b5061016c600480360381019061016791906129ef565b61059a565b6040516101799190612ed5565b60405180910390f35b34801561018e57600080fd5b506101976105ac565b6040516101a49190612ef0565b60405180910390f35b3480156101b957600080fd5b506101d460048036038101906101cf9190612a41565b61063e565b6040516101e19190612e6e565b60405180910390f35b3480156101f657600080fd5b50610211600480360381019061020c9190612972565b6106c3565b005b34801561021f57600080fd5b506102286107db565b60405161023591906131b2565b60405180910390f35b34801561024a57600080fd5b506102656004803603810190610260919061286c565b6107e8565b005b34801561027357600080fd5b5061028e60048036038101906102899190612972565b610848565b60405161029b91906131b2565b60405180910390f35b3480156102b057600080fd5b506102cb60048036038101906102c6919061286c565b6108ed565b005b3480156102d957600080fd5b506102e261090d565b6040516102ef91906131b2565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190612a41565b61091d565b60405161032c91906131b2565b60405180910390f35b34801561034157600080fd5b5061035c60048036038101906103579190612a41565b6109b4565b6040516103699190612e6e565b60405180910390f35b34801561037e57600080fd5b5061039960048036038101906103949190612a41565b610a66565b6040516103a69190612ed5565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d191906127de565b610a87565b6040516103e391906131b2565b60405180910390f35b3480156103f857600080fd5b50610401610b3f565b005b34801561040f57600080fd5b50610418610bab565b6040516104259190612e6e565b60405180910390f35b610448600480360381019061044391906129ae565b610bd6565b005b34801561045657600080fd5b5061045f610cb4565b60405161046c9190612ef0565b60405180910390f35b61048f600480360381019061048a9190612a41565b610d46565b005b34801561049d57600080fd5b506104b860048036038101906104b39190612936565b610db8565b005b3480156104c657600080fd5b506104e160048036038101906104dc91906128bb565b610dce565b005b3480156104ef57600080fd5b5061050a60048036038101906105059190612a41565b610e30565b6040516105179190612ef0565b60405180910390f35b34801561052c57600080fd5b5061054760048036038101906105429190612a41565b610e42565b60405161055491906131b2565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f9190612830565b610e88565b6040516105919190612ed5565b60405180910390f35b60006105a582610f1c565b9050919050565b6060600080546105bb9061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546105e79061345d565b80156106345780601f1061060957610100808354040283529160200191610634565b820191906000526020600020905b81548152906001019060200180831161061757829003601f168201915b5050505050905090565b600061064982610f96565b610688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067f906130f2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106ce826109b4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561073f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073690613152565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661075e611002565b73ffffffffffffffffffffffffffffffffffffffff16148061078d575061078c81610787611002565b610e88565b5b6107cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c390613012565b60405180910390fd5b6107d6838361100a565b505050565b6000600980549050905090565b6107f96107f3611002565b826110c3565b610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f90613172565b60405180910390fd5b6108438383836111a1565b505050565b600061085383610a87565b8210610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b90612f32565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61090883838360405180602001604052806000815250610dce565b505050565b6000670494654067e10000905090565b60006109276107db565b8210610968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095f90613192565b60405180910390fd5b600982815481106109a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5490613052565b60405180910390fd5b80915050919050565b61271b6020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aef90613032565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61271c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ba8573d6000803e3d6000fd5b50565b600061271c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8051670494654067e10000610beb9190613319565b341015610c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2490612f12565b60405180910390fd5b600073b47e3cd837ddf8e4c57f05d70ab865de6e193bbb905060005b8251811015610caf57610c9c82848381518110610c8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516113fd565b8080610ca7906134c0565b915050610c49565b505050565b606060018054610cc39061345d565b80601f0160208091040260200160405190810160405280929190818152602001828054610cef9061345d565b8015610d3c5780601f10610d1157610100808354040283529160200191610d3c565b820191906000526020600020905b815481529060010190602001808311610d1f57829003601f168201915b5050505050905090565b670494654067e10000341015610d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8890612f12565b60405180910390fd5b600073b47e3cd837ddf8e4c57f05d70ab865de6e193bbb9050610db481836113fd565b5050565b610dca610dc3611002565b8383611660565b5050565b610ddf610dd9611002565b836110c3565b610e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1590613172565b60405180910390fd5b610e2a848484846117cd565b50505050565b6060610e3b82611829565b9050919050565b6000600b826127108110610e7f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610f8f5750610f8e8261197b565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661107d836109b4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110ce82610f96565b61110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490612ff2565b60405180910390fd5b6000611118836109b4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061118757508373ffffffffffffffffffffffffffffffffffffffff1661116f8461063e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061119857506111978185610e88565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166111c1826109b4565b73ffffffffffffffffffffffffffffffffffffffff1614611217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120e90613112565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127e90612fb2565b60405180910390fd5b611292838383611a5d565b61129d60008261100a565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112ed9190613373565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113449190613292565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166358178168836040518263ffffffff1660e01b815260040161144d91906131b2565b60206040518083038186803b15801561146557600080fd5b505afa158015611479573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149d9190612807565b73ffffffffffffffffffffffffffffffffffffffff16146114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea90613092565b60405180910390fd5b61271b600082815260200190815260200160002060009054906101000a900460ff1615611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90612f92565b60405180910390fd5b600061155f6107db565b905081600b82612710811061159d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01819055506115ac3382611a6d565b61162e81604051806060016040528060278152602001613c47602791396115d284611c3b565b6040518060400160405280600581526020017f2f6d65746100000000000000000000000000000000000000000000000000000081525060405160200161161a93929190612e3d565b604051602081830303815290604052611de8565b600161271b600084815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c690612fd2565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117c09190612ed5565b60405180910390a3505050565b6117d88484846111a1565b6117e484848484611e5c565b611823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181a90612f52565b60405180910390fd5b50505050565b606061183482610f96565b611873576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186a906130d2565b60405180910390fd5b60006006600084815260200190815260200160002080546118939061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546118bf9061345d565b801561190c5780601f106118e15761010080835404028352916020019161190c565b820191906000526020600020905b8154815290600101906020018083116118ef57829003601f168201915b50505050509050600061191d611ff3565b9050600081511415611933578192505050611976565b600082511115611968578082604051602001611950929190612e19565b60405160208183030381529060405292505050611976565b6119718461200a565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a4657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a565750611a55826120b1565b5b9050919050565b611a6883838361211b565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad4906130b2565b60405180910390fd5b611ae681610f96565b15611b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1d90612f72565b60405180910390fd5b611b3260008383611a5d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b829190613292565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60606000821415611c83576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611de3565b600082905060005b60008214611cb5578080611c9e906134c0565b915050600a82611cae91906132e8565b9150611c8b565b60008167ffffffffffffffff811115611cf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d295781602001600182028036833780820191505090505b5090505b60008514611ddc57600182611d429190613373565b9150600a85611d519190613509565b6030611d5d9190613292565b60f81b818381518110611d99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611dd591906132e8565b9450611d2d565b8093505050505b919050565b611df182610f96565b611e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2790613072565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190611e579291906125bf565b505050565b6000611e7d8473ffffffffffffffffffffffffffffffffffffffff1661222f565b15611fe6578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ea6611002565b8786866040518563ffffffff1660e01b8152600401611ec89493929190612e89565b602060405180830381600087803b158015611ee257600080fd5b505af1925050508015611f1357506040513d601f19601f82011682018060405250810190611f109190612a18565b60015b611f96573d8060008114611f43576040519150601f19603f3d011682016040523d82523d6000602084013e611f48565b606091505b50600081511415611f8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8590612f52565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611feb565b600190505b949350505050565b606060405180602001604052806000815250905090565b606061201582610f96565b612054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90613132565b60405180910390fd5b600061205e611ff3565b9050600081511161207e57604051806020016040528060008152506120a9565b8061208884611c3b565b604051602001612099929190612e19565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612126838383612242565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121695761216481612247565b6121a8565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146121a7576121a68382612290565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121eb576121e6816123fd565b61222a565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612229576122288282612540565b5b5b505050565b600080823b905060008111915050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161229d84610a87565b6122a79190613373565b905060006008600084815260200190815260200160002054905081811461238c576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506124119190613373565b90506000600a6000848152602001908152602001600020549050600060098381548110612467577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600983815481106124af577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612524577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061254b83610a87565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b8280546125cb9061345d565b90600052602060002090601f0160209004810192826125ed5760008555612634565b82601f1061260657805160ff1916838001178555612634565b82800160010185558215612634579182015b82811115612633578251825591602001919060010190612618565b5b5090506126419190612645565b5090565b5b8082111561265e576000816000905550600101612646565b5090565b6000612675612670846131f2565b6131cd565b9050808382526020820190508285602086028201111561269457600080fd5b60005b858110156126c457816126aa88826127c9565b845260208401935060208301925050600181019050612697565b5050509392505050565b60006126e16126dc8461321e565b6131cd565b9050828152602081018484840111156126f957600080fd5b61270484828561341b565b509392505050565b60008135905061271b81613bea565b92915050565b60008151905061273081613bea565b92915050565b600082601f83011261274757600080fd5b8135612757848260208601612662565b91505092915050565b60008135905061276f81613c01565b92915050565b60008135905061278481613c18565b92915050565b60008151905061279981613c18565b92915050565b600082601f8301126127b057600080fd5b81356127c08482602086016126ce565b91505092915050565b6000813590506127d881613c2f565b92915050565b6000602082840312156127f057600080fd5b60006127fe8482850161270c565b91505092915050565b60006020828403121561281957600080fd5b600061282784828501612721565b91505092915050565b6000806040838503121561284357600080fd5b60006128518582860161270c565b92505060206128628582860161270c565b9150509250929050565b60008060006060848603121561288157600080fd5b600061288f8682870161270c565b93505060206128a08682870161270c565b92505060406128b1868287016127c9565b9150509250925092565b600080600080608085870312156128d157600080fd5b60006128df8782880161270c565b94505060206128f08782880161270c565b9350506040612901878288016127c9565b925050606085013567ffffffffffffffff81111561291e57600080fd5b61292a8782880161279f565b91505092959194509250565b6000806040838503121561294957600080fd5b60006129578582860161270c565b925050602061296885828601612760565b9150509250929050565b6000806040838503121561298557600080fd5b60006129938582860161270c565b92505060206129a4858286016127c9565b9150509250929050565b6000602082840312156129c057600080fd5b600082013567ffffffffffffffff8111156129da57600080fd5b6129e684828501612736565b91505092915050565b600060208284031215612a0157600080fd5b6000612a0f84828501612775565b91505092915050565b600060208284031215612a2a57600080fd5b6000612a388482850161278a565b91505092915050565b600060208284031215612a5357600080fd5b6000612a61848285016127c9565b91505092915050565b612a73816133a7565b82525050565b612a82816133b9565b82525050565b6000612a938261324f565b612a9d8185613265565b9350612aad81856020860161342a565b612ab6816135f6565b840191505092915050565b6000612acc8261325a565b612ad68185613276565b9350612ae681856020860161342a565b612aef816135f6565b840191505092915050565b6000612b058261325a565b612b0f8185613287565b9350612b1f81856020860161342a565b80840191505092915050565b6000612b38601483613276565b9150612b4382613607565b602082019050919050565b6000612b5b602b83613276565b9150612b6682613630565b604082019050919050565b6000612b7e603283613276565b9150612b898261367f565b604082019050919050565b6000612ba1601c83613276565b9150612bac826136ce565b602082019050919050565b6000612bc4602e83613276565b9150612bcf826136f7565b604082019050919050565b6000612be7602483613276565b9150612bf282613746565b604082019050919050565b6000612c0a601983613276565b9150612c1582613795565b602082019050919050565b6000612c2d602c83613276565b9150612c38826137be565b604082019050919050565b6000612c50603883613276565b9150612c5b8261380d565b604082019050919050565b6000612c73602a83613276565b9150612c7e8261385c565b604082019050919050565b6000612c96602983613276565b9150612ca1826138ab565b604082019050919050565b6000612cb9602e83613276565b9150612cc4826138fa565b604082019050919050565b6000612cdc602783613276565b9150612ce782613949565b604082019050919050565b6000612cff602083613276565b9150612d0a82613998565b602082019050919050565b6000612d22603183613276565b9150612d2d826139c1565b604082019050919050565b6000612d45602c83613276565b9150612d5082613a10565b604082019050919050565b6000612d68602983613276565b9150612d7382613a5f565b604082019050919050565b6000612d8b602f83613276565b9150612d9682613aae565b604082019050919050565b6000612dae602183613276565b9150612db982613afd565b604082019050919050565b6000612dd1603183613276565b9150612ddc82613b4c565b604082019050919050565b6000612df4602c83613276565b9150612dff82613b9b565b604082019050919050565b612e1381613411565b82525050565b6000612e258285612afa565b9150612e318284612afa565b91508190509392505050565b6000612e498286612afa565b9150612e558285612afa565b9150612e618284612afa565b9150819050949350505050565b6000602082019050612e836000830184612a6a565b92915050565b6000608082019050612e9e6000830187612a6a565b612eab6020830186612a6a565b612eb86040830185612e0a565b8181036060830152612eca8184612a88565b905095945050505050565b6000602082019050612eea6000830184612a79565b92915050565b60006020820190508181036000830152612f0a8184612ac1565b905092915050565b60006020820190508181036000830152612f2b81612b2b565b9050919050565b60006020820190508181036000830152612f4b81612b4e565b9050919050565b60006020820190508181036000830152612f6b81612b71565b9050919050565b60006020820190508181036000830152612f8b81612b94565b9050919050565b60006020820190508181036000830152612fab81612bb7565b9050919050565b60006020820190508181036000830152612fcb81612bda565b9050919050565b60006020820190508181036000830152612feb81612bfd565b9050919050565b6000602082019050818103600083015261300b81612c20565b9050919050565b6000602082019050818103600083015261302b81612c43565b9050919050565b6000602082019050818103600083015261304b81612c66565b9050919050565b6000602082019050818103600083015261306b81612c89565b9050919050565b6000602082019050818103600083015261308b81612cac565b9050919050565b600060208201905081810360008301526130ab81612ccf565b9050919050565b600060208201905081810360008301526130cb81612cf2565b9050919050565b600060208201905081810360008301526130eb81612d15565b9050919050565b6000602082019050818103600083015261310b81612d38565b9050919050565b6000602082019050818103600083015261312b81612d5b565b9050919050565b6000602082019050818103600083015261314b81612d7e565b9050919050565b6000602082019050818103600083015261316b81612da1565b9050919050565b6000602082019050818103600083015261318b81612dc4565b9050919050565b600060208201905081810360008301526131ab81612de7565b9050919050565b60006020820190506131c76000830184612e0a565b92915050565b60006131d76131e8565b90506131e3828261348f565b919050565b6000604051905090565b600067ffffffffffffffff82111561320d5761320c6135c7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613239576132386135c7565b5b613242826135f6565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061329d82613411565b91506132a883613411565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156132dd576132dc61353a565b5b828201905092915050565b60006132f382613411565b91506132fe83613411565b92508261330e5761330d613569565b5b828204905092915050565b600061332482613411565b915061332f83613411565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156133685761336761353a565b5b828202905092915050565b600061337e82613411565b915061338983613411565b92508282101561339c5761339b61353a565b5b828203905092915050565b60006133b2826133f1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561344857808201518184015260208101905061342d565b83811115613457576000848401525b50505050565b6000600282049050600182168061347557607f821691505b6020821081141561348957613488613598565b5b50919050565b613498826135f6565b810181811067ffffffffffffffff821117156134b7576134b66135c7565b5b80604052505050565b60006134cb82613411565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134fe576134fd61353a565b5b600182019050919050565b600061351482613411565b915061351f83613411565b92508261352f5761352e613569565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4e6f7420656e6f756768204554482073656e742e000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f54686520617373657420646f6573206e6f74206d6565742074686520756e697160008201527f756520636f6e73747261696e742e000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f506172656e7420746f6b656e206f776e657220616e642073656e646572206d6960008201527f736d617463682e00000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b613bf3816133a7565b8114613bfe57600080fd5b50565b613c0a816133b9565b8114613c1557600080fd5b50565b613c21816133c5565b8114613c2c57600080fd5b50565b613c3881613411565b8114613c4357600080fd5b5056fe68747470733a2f2f70756e6b732e7265616479706c617965722e6d652f6170692f70756e6b732fa26469706673582212207fc566fc8e3c31ca9678d6dc36218d9a4f4a62afceaa6e675ca892a8566cbf3064736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.