Contract 0xBF1AD4dE6B5Aa3F40e79ca606FA57C21253a5328

 
 
Txn Hash
Method
Block
From
To
Value
0x56ed90cb1f21a567deb0c226bdcbb1a520f89af2b3e9913d5ba014f5f7816bc8Safe Transfer Fr...159833902022-11-16 15:10:1115 days 2 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00168095 16.87724644
0x427773403b82b47e730dbaab49aff7c2aaa8dc34ee35d7b9afeb31f6c703a2d7Safe Transfer Fr...159616002022-11-13 14:08:4718 days 3 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00132162 14.79895629
0x4041aaa2419639c742db2f7eabd2c57e7f2adf02c58866bd0b08664897051fb6Safe Transfer Fr...159615742022-11-13 14:03:3518 days 3 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00150475 15.10811082
0xc84da52b78c41f3b6c0a9debeb44b66f4ca95111b1cb7b03d87da2c583e7a7b3Safe Transfer Fr...159615422022-11-13 13:57:1118 days 3 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00166132 18.60279884
0xd82de545ac85524465d21345da3417f461f6b409b44786fe98b40a2e891a645fSafe Transfer Fr...159192282022-11-07 16:05:4724 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00330545 33.18759763
0x6d14285451494a5bd80eab348d3d220d9affd438ea009f7bf28bd3a6191a76c3Transfer From158333452022-10-26 16:08:4736 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00219925 22.7231411
0x1c8e21773ecbd3cadb22cf587dc44beb445944b2ee169b28a22b05e9a27673e9Safe Transfer Fr...157104862022-10-09 12:17:5953 days 5 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00183413 18.41522161
0x1e1b7b8738987fea64ac36240f7742cd6bef79f1b0f6317e520b205ea5e4f56fSafe Transfer Fr...156876122022-10-06 7:36:1156 days 9 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00076555 7.68640986
0x0a2d8ac6b849b593ff346a2a3ece7e3bd395d0c12b8750080e9dd62a74ecfe32Mint PDF156875952022-10-06 7:32:3556 days 9 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280.00000001 Ether0.00259407 5.18794475
0xcd988d970b92f28168e5b26b928cc2893a5577c3bbdaa7bfc9849404642b8aa1Mint PDF156875932022-10-06 7:32:1156 days 9 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280.00000001 Ether0.00235539 4.71060728
0xfdd052d1751074ba9491c84b45a24a7acb9b541fd3bc42da6b2783dcc240ff7aSafe Transfer Fr...156618752022-10-02 17:11:2360 days 7 mins ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00071919 7.22086733
0x5fde2db47fda7b8a855ed3eb78a1fd7efa271686fd0f832366dcfb0409dc321fSafe Transfer Fr...155970702022-09-23 15:54:3569 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00126478 12.69875512
0x8801543e7cb4bce552af1dbc1782e7e78e5043fb8753d89bc86b5642a693c4ccSafe Transfer Fr...155970492022-09-23 15:50:1169 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00105026 11.76201315
0x25a3694e762563ca4aa68255457cd0da8f52c0bc4962124fa9998c0429e8b468Safe Transfer Fr...153905572022-08-22 13:45:07101 days 3 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00188893 18.96543296
0xf96bc6fb90c8ba07def7dc88656362b0766439f7581aa1505a7024e03737fa9cSafe Transfer Fr...153905402022-08-22 13:41:49101 days 3 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.0019683 22.04021844
0x3572049c067f5b2fc491c007ad9948b2fa878c7fb704f3204af5fb88115d955eSafe Transfer Fr...153852642022-08-21 17:34:00101 days 23 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00069456 6.97366357
0xc6d07522e5161a8820bf2a6cf8ec583faf24b5bb99b128f0c2c48472f6a70befSafe Transfer Fr...153852382022-08-21 17:28:43101 days 23 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00081524 8.18523636
0x7889a4873954b69fd836bf6882a86a04abe5a145ec91fb9518b188efb966b4bcSafe Transfer Fr...153749062022-08-20 2:07:01103 days 15 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00075836 7.61511458
0x00fe10f0bcce9e1842c64c12a4b67fa57c7a1512a1b8212b2eb75ffb769740e0Transfer From153533682022-08-16 16:17:43107 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00196883 20.34237622
0x83b4292da45c1c5f31b8728c3ec61ee32d784e44c7641ac76a4151371e4a8342Mint PDF153384412022-08-14 7:37:44109 days 9 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280.00000001 Ether0.00268096 5.36173364
0xaac6df9507eb069fd9f42c5b660cfbf98dcb56d6c3ebac2691592ec5f7e3f22eTransfer From153343792022-08-13 16:12:51110 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00101092 10.44503594
0x65f012700cdc00750bd9f86fe2ed58dfd32c040df3038371b87368d953dd2d0fMint PDF153343632022-08-13 16:09:30110 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280.00000001 Ether0.00489309 9.78582309
0x0e332cfe5f673093def6f93802f70c855e985fdd3a1202b76d8c7b6b91562d5eTransfer From152701152022-08-03 14:57:15120 days 2 hrs ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00162703 16.81078726
0xe3a317744716c2797656e0c9aa150bcafb20a190eeec9d453a340af8e8651a4cTransfer From151740242022-07-19 16:05:01135 days 1 hr ago0x21e885919503b5cf4c8c788c0bc5be8d0eeee473 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00454656 46.97591389
0xfe2797b2546aac5eb36a44931669c6bec28c101fb88ab6cf281b52b43e5c72d5Set Approval For...151359242022-07-13 18:37:32140 days 22 hrs ago0x6708f2f0f355593094a4850e3dbd49372cfb1bb0 IN  0xbf1ad4de6b5aa3f40e79ca606fa57c21253a53280 Ether0.00098108 21.26036013
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NovelContractSecret

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 13 : NovelContractSecret.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "ERC721Enumerable.sol";
import "Ownable.sol";
import "Strings.sol";

contract NovelContractSecret is ERC721Enumerable, Ownable {
    using Strings for uint256;

    bool public _isSaleActive = true;
    bool public _revealed = true;

    // Constants
    uint256 public constant MAX_SUPPLY = 2022;
    uint256 public mintPrice = 0.000000000001 ether;
    uint256 public maxBalance = 2022;
    uint256 public maxMint = 2022;
    string pdfPassword;
    string baseURI;
    string public _contractURI;

    string public baseExtension = ".json";


    mapping(uint256 => string) private _tokenURIs;

    constructor(string memory initBaseURI, string memory tokenName, string memory tokenSymbol, string memory myContractURI)
        ERC721(tokenName, tokenSymbol)
    {
        baseURI = initBaseURI;
        _contractURI = myContractURI;
    }

    function mintPDF(uint256 tokenQuantity) public payable {
        require(
            msg.sender == owner(),
            "You are not the contract owner"
        );
        require(
            totalSupply() + tokenQuantity <= MAX_SUPPLY,
            "Sale would exceed max supply"
        );
        require(
            balanceOf(msg.sender) + tokenQuantity <= maxBalance,
            "Sale would exceed max balance"
        );
        require(
            tokenQuantity * mintPrice <= msg.value,
            "Not enough ether sent"
        );
        require(tokenQuantity <= maxMint, "Can only mint 1 tokens at a time");

        _mintPDF(tokenQuantity);
        
    }

    function _mintPDF(uint256 tokenQuantity) internal {
        for (uint256 i = 0; i < tokenQuantity; i++) {
            uint256 mintIndex = totalSupply();

            if (totalSupply() < MAX_SUPPLY) {
                _safeMint(msg.sender, mintIndex);
            }
        }
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: 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));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return
            string(abi.encodePacked(base, tokenId.toString(), baseExtension));
    }

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

    //only owner
    function flipSaleActive() public onlyOwner {
        _isSaleActive = !_isSaleActive;
    }

    function flipReveal() public onlyOwner {
        _revealed = !_revealed;
    }

    function setMintPrice(uint256 _mintPrice) public onlyOwner {
        mintPrice = _mintPrice;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setBaseExtension(string memory _newBaseExtension)
        public
        onlyOwner
    {
        baseExtension = _newBaseExtension;
    }

    function setMaxBalance(uint256 _maxBalance) public onlyOwner {
        maxBalance = _maxBalance;
    }

    function setMaxMint(uint256 _maxMint) public onlyOwner {
        maxMint = _maxMint;
    }

    function withdraw(address to) public onlyOwner {
        uint256 balance = address(this).balance;
        payable(to).transfer(balance);
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

}

File 2 of 13 : 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 3 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "IERC721Enumerable.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "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}. 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 || ERC721.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 || ERC721.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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` 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 { }
}

File 4 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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);
}

File 9 of 13 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-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

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 12 of 13 : 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 13 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"initBaseURI","type":"string"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"string","name":"myContractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_revealed","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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"maxBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintPDF","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBalance","type":"uint256"}],"name":"setMaxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600a805461ffff60a01b191661010160a01b179055620f4240600b556107e6600c819055600d5560c06040526005608090815264173539b7b760d91b60a0526011906200004d9082620001d1565b503480156200005b57600080fd5b5060405162002945380380620029458339810160408190526200007e9162000354565b828260006200008e8382620001d1565b5060016200009d8282620001d1565b5050506000620000b26200012860201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600f6200010e8582620001d1565b5060106200011d8282620001d1565b50505050506200040d565b3390565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015757607f821691505b6020821081036200017857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001cc57600081815260208120601f850160051c81016020861015620001a75750805b601f850160051c820191505b81811015620001c857828155600101620001b3565b5050505b505050565b81516001600160401b03811115620001ed57620001ed6200012c565b6200020581620001fe845462000142565b846200017e565b602080601f8311600181146200023d5760008415620002245750858301515b600019600386901b1c1916600185901b178555620001c8565b600085815260208120601f198616915b828110156200026e578886015182559484019460019091019084016200024d565b50858210156200028d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f830112620002af57600080fd5b81516001600160401b0380821115620002cc57620002cc6200012c565b604051601f8301601f19908116603f01168101908282118183101715620002f757620002f76200012c565b816040528381526020925086838588010111156200031457600080fd5b600091505b8382101562000338578582018301518183018401529082019062000319565b838211156200034a5760008385830101525b9695505050505050565b600080600080608085870312156200036b57600080fd5b84516001600160401b03808211156200038357600080fd5b62000391888389016200029d565b95506020870151915080821115620003a857600080fd5b620003b6888389016200029d565b94506040870151915080821115620003cd57600080fd5b620003db888389016200029d565b93506060870151915080821115620003f257600080fd5b5062000401878288016200029d565b91505092959194509250565b612528806200041d6000396000f3fe60806040526004361061021a5760003560e01c80637080d6fc11610123578063b88d4fde116100ab578063de8b51e11161006f578063de8b51e1146105e3578063e8a3d485146105f8578063e985e9c51461060d578063f2fde38b14610656578063f4a0a5281461067657600080fd5b8063b88d4fde14610559578063c0e7274014610579578063c66828621461058e578063c87b56dd146105a3578063da3ef23f146105c357600080fd5b80637501f741116100f25780637501f741146104d05780638da5cb5b146104e657806395d89b41146105045780639d51d9b714610519578063a22cb4651461053957600080fd5b80637080d6fc1461046457806370a0823114610485578063715018a6146104a557806373ad468a146104ba57600080fd5b806342842e0e116101a6578063547520fe11610175578063547520fe146103cd57806355f804b3146103ed5780636352211e1461040d5780636817c76c1461042d5780636ebeac851461044357600080fd5b806342842e0e1461035a5780634b69f4ec1461037a5780634f6ccce71461038d57806351cff8d9146103ad57600080fd5b806318160ddd116101ed57806318160ddd146102d057806323b872dd146102ef5780632f745c591461030f57806332cb6b0c1461032f5780633b84d9c61461034557600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611dbd565b610696565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106c1565b60405161024b9190611e39565b34801561028257600080fd5b50610296610291366004611e4c565b610753565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004611e81565b6107ed565b005b3480156102dc57600080fd5b506008545b60405190815260200161024b565b3480156102fb57600080fd5b506102ce61030a366004611eab565b610902565b34801561031b57600080fd5b506102e161032a366004611e81565b610933565b34801561033b57600080fd5b506102e16107e681565b34801561035157600080fd5b506102ce6109c9565b34801561036657600080fd5b506102ce610375366004611eab565b610a14565b6102ce610388366004611e4c565b610a2f565b34801561039957600080fd5b506102e16103a8366004611e4c565b610c06565b3480156103b957600080fd5b506102ce6103c8366004611ee7565b610c99565b3480156103d957600080fd5b506102ce6103e8366004611e4c565b610cfb565b3480156103f957600080fd5b506102ce610408366004611f8e565b610d2a565b34801561041957600080fd5b50610296610428366004611e4c565b610d64565b34801561043957600080fd5b506102e1600b5481565b34801561044f57600080fd5b50600a5461023f90600160a81b900460ff1681565b34801561047057600080fd5b50600a5461023f90600160a01b900460ff1681565b34801561049157600080fd5b506102e16104a0366004611ee7565b610ddb565b3480156104b157600080fd5b506102ce610e62565b3480156104c657600080fd5b506102e1600c5481565b3480156104dc57600080fd5b506102e1600d5481565b3480156104f257600080fd5b50600a546001600160a01b0316610296565b34801561051057600080fd5b50610269610ed6565b34801561052557600080fd5b506102ce610534366004611e4c565b610ee5565b34801561054557600080fd5b506102ce610554366004611fd7565b610f14565b34801561056557600080fd5b506102ce610574366004612013565b610fd8565b34801561058557600080fd5b50610269611010565b34801561059a57600080fd5b5061026961109e565b3480156105af57600080fd5b506102696105be366004611e4c565b6110ab565b3480156105cf57600080fd5b506102ce6105de366004611f8e565b61122f565b3480156105ef57600080fd5b506102ce611265565b34801561060457600080fd5b506102696112b0565b34801561061957600080fd5b5061023f61062836600461208f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561066257600080fd5b506102ce610671366004611ee7565b6112bf565b34801561068257600080fd5b506102ce610691366004611e4c565b6113aa565b60006001600160e01b0319821663780e9d6360e01b14806106bb57506106bb826113d9565b92915050565b6060600080546106d0906120c2565b80601f01602080910402602001604051908101604052809291908181526020018280546106fc906120c2565b80156107495780601f1061071e57610100808354040283529160200191610749565b820191906000526020600020905b81548152906001019060200180831161072c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107f882610d64565b9050806001600160a01b0316836001600160a01b0316036108655760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107c8565b336001600160a01b038216148061088157506108818133610628565b6108f35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107c8565b6108fd8383611429565b505050565b61090c3382611497565b6109285760405162461bcd60e51b81526004016107c8906120fc565b6108fd83838361158e565b600061093e83610ddb565b82106109a05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107c8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146109f35760405162461bcd60e51b81526004016107c89061214d565b600a805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6108fd83838360405180602001604052806000815250610fd8565b600a546001600160a01b03163314610a895760405162461bcd60e51b815260206004820152601e60248201527f596f7520617265206e6f742074686520636f6e7472616374206f776e6572000060448201526064016107c8565b6107e681610a9660085490565b610aa09190612198565b1115610aee5760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016107c8565b600c5481610afb33610ddb565b610b059190612198565b1115610b535760405162461bcd60e51b815260206004820152601d60248201527f53616c6520776f756c6420657863656564206d61782062616c616e636500000060448201526064016107c8565b34600b5482610b6291906121b0565b1115610ba85760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107c8565b600d54811115610bfa5760405162461bcd60e51b815260206004820181905260248201527f43616e206f6e6c79206d696e74203120746f6b656e7320617420612074696d6560448201526064016107c8565b610c0381611739565b50565b6000610c1160085490565b8210610c745760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107c8565b60088281548110610c8757610c876121cf565b90600052602060002001549050919050565b600a546001600160a01b03163314610cc35760405162461bcd60e51b81526004016107c89061214d565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156108fd573d6000803e3d6000fd5b600a546001600160a01b03163314610d255760405162461bcd60e51b81526004016107c89061214d565b600d55565b600a546001600160a01b03163314610d545760405162461bcd60e51b81526004016107c89061214d565b600f610d608282612233565b5050565b6000818152600260205260408120546001600160a01b0316806106bb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107c8565b60006001600160a01b038216610e465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107c8565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610e8c5760405162461bcd60e51b81526004016107c89061214d565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6060600180546106d0906120c2565b600a546001600160a01b03163314610f0f5760405162461bcd60e51b81526004016107c89061214d565b600c55565b336001600160a01b03831603610f6c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107c8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fe23383611497565b610ffe5760405162461bcd60e51b81526004016107c8906120fc565b61100a84848484611780565b50505050565b6010805461101d906120c2565b80601f0160208091040260200160405190810160405280929190818152602001828054611049906120c2565b80156110965780601f1061106b57610100808354040283529160200191611096565b820191906000526020600020905b81548152906001019060200180831161107957829003601f168201915b505050505081565b6011805461101d906120c2565b6000818152600260205260409020546060906001600160a01b031661112a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107c8565b60008281526012602052604081208054611143906120c2565b80601f016020809104026020016040519081016040528092919081815260200182805461116f906120c2565b80156111bc5780601f10611191576101008083540402835291602001916111bc565b820191906000526020600020905b81548152906001019060200180831161119f57829003601f168201915b5050505050905060006111cd6117b3565b905080516000036111df575092915050565b8151156112115780826040516020016111f99291906122f3565b60405160208183030381529060405292505050919050565b8061121b856117c2565b60116040516020016111f993929190612322565b600a546001600160a01b031633146112595760405162461bcd60e51b81526004016107c89061214d565b6011610d608282612233565b600a546001600160a01b0316331461128f5760405162461bcd60e51b81526004016107c89061214d565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6060601080546106d0906120c2565b600a546001600160a01b031633146112e95760405162461bcd60e51b81526004016107c89061214d565b6001600160a01b03811661134e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c8565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146113d45760405162461bcd60e51b81526004016107c89061214d565b600b55565b60006001600160e01b031982166380ac58cd60e01b148061140a57506001600160e01b03198216635b5e139f60e01b145b806106bb57506301ffc9a760e01b6001600160e01b03198316146106bb565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061145e82610d64565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107c8565b600061151b83610d64565b9050806001600160a01b0316846001600160a01b031614806115565750836001600160a01b031661154b84610753565b6001600160a01b0316145b8061158657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115a182610d64565b6001600160a01b0316146116095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107c8565b6001600160a01b03821661166b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107c8565b6116768383836118c3565b611681600082611429565b6001600160a01b03831660009081526003602052604081208054600192906116aa9084906123c2565b90915550506001600160a01b03821660009081526003602052604081208054600192906116d8908490612198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b81811015610d6057600061174f60085490565b90506107e661175d60085490565b101561176d5761176d338261197b565b5080611778816123d9565b91505061173c565b61178b84848461158e565b61179784848484611995565b61100a5760405162461bcd60e51b81526004016107c8906123f2565b6060600f80546106d0906120c2565b6060816000036117e95750506040805180820190915260018152600360fc1b602082015290565b8160005b811561181357806117fd816123d9565b915061180c9050600a8361245a565b91506117ed565b60008167ffffffffffffffff81111561182e5761182e611f02565b6040519080825280601f01601f191660200182016040528015611858576020820181803683370190505b5090505b84156115865761186d6001836123c2565b915061187a600a8661246e565b611885906030612198565b60f81b81838151811061189a5761189a6121cf565b60200101906001600160f81b031916908160001a9053506118bc600a8661245a565b945061185c565b6001600160a01b03831661191e5761191981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611941565b816001600160a01b0316836001600160a01b031614611941576119418382611a96565b6001600160a01b038216611958576108fd81611b33565b826001600160a01b0316826001600160a01b0316146108fd576108fd8282611be2565b610d60828260405180602001604052806000815250611c26565b60006001600160a01b0384163b15611a8b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119d9903390899088908890600401612482565b6020604051808303816000875af1925050508015611a14575060408051601f3d908101601f19168201909252611a11918101906124bf565b60015b611a71573d808015611a42576040519150601f19603f3d011682016040523d82523d6000602084013e611a47565b606091505b508051600003611a695760405162461bcd60e51b81526004016107c8906123f2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611586565b506001949350505050565b60006001611aa384610ddb565b611aad91906123c2565b600083815260076020526040902054909150808214611b00576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611b45906001906123c2565b60008381526009602052604081205460088054939450909284908110611b6d57611b6d6121cf565b906000526020600020015490508060088381548110611b8e57611b8e6121cf565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611bc657611bc66124dc565b6001900381819060005260206000200160009055905550505050565b6000611bed83610ddb565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b611c308383611c59565b611c3d6000848484611995565b6108fd5760405162461bcd60e51b81526004016107c8906123f2565b6001600160a01b038216611caf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107c8565b6000818152600260205260409020546001600160a01b031615611d145760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107c8565b611d20600083836118c3565b6001600160a01b0382166000908152600360205260408120805460019290611d49908490612198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610c0357600080fd5b600060208284031215611dcf57600080fd5b8135611dda81611da7565b9392505050565b60005b83811015611dfc578181015183820152602001611de4565b8381111561100a5750506000910152565b60008151808452611e25816020860160208601611de1565b601f01601f19169290920160200192915050565b602081526000611dda6020830184611e0d565b600060208284031215611e5e57600080fd5b5035919050565b80356001600160a01b0381168114611e7c57600080fd5b919050565b60008060408385031215611e9457600080fd5b611e9d83611e65565b946020939093013593505050565b600080600060608486031215611ec057600080fd5b611ec984611e65565b9250611ed760208501611e65565b9150604084013590509250925092565b600060208284031215611ef957600080fd5b611dda82611e65565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611f3357611f33611f02565b604051601f8501601f19908116603f01168101908282118183101715611f5b57611f5b611f02565b81604052809350858152868686011115611f7457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611fa057600080fd5b813567ffffffffffffffff811115611fb757600080fd5b8201601f81018413611fc857600080fd5b61158684823560208401611f18565b60008060408385031215611fea57600080fd5b611ff383611e65565b91506020830135801515811461200857600080fd5b809150509250929050565b6000806000806080858703121561202957600080fd5b61203285611e65565b935061204060208601611e65565b925060408501359150606085013567ffffffffffffffff81111561206357600080fd5b8501601f8101871361207457600080fd5b61208387823560208401611f18565b91505092959194509250565b600080604083850312156120a257600080fd5b6120ab83611e65565b91506120b960208401611e65565b90509250929050565b600181811c908216806120d657607f821691505b6020821081036120f657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156121ab576121ab612182565b500190565b60008160001904831182151516156121ca576121ca612182565b500290565b634e487b7160e01b600052603260045260246000fd5b601f8211156108fd57600081815260208120601f850160051c8101602086101561220c5750805b601f850160051c820191505b8181101561222b57828155600101612218565b505050505050565b815167ffffffffffffffff81111561224d5761224d611f02565b6122618161225b84546120c2565b846121e5565b602080601f831160018114612296576000841561227e5750858301515b600019600386901b1c1916600185901b17855561222b565b600085815260208120601f198616915b828110156122c5578886015182559484019460019091019084016122a6565b50858210156122e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351612305818460208801611de1565b835190830190612319818360208801611de1565b01949350505050565b6000845160206123358285838a01611de1565b8551918401916123488184848a01611de1565b8554920191600090612359816120c2565b600182811680156123715760018114612386576123b2565b60ff19841687528215158302870194506123b2565b896000528560002060005b848110156123aa57815489820152908301908701612391565b505082870194505b50929a9950505050505050505050565b6000828210156123d4576123d4612182565b500390565b6000600182016123eb576123eb612182565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261246957612469612444565b500490565b60008261247d5761247d612444565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124b590830184611e0d565b9695505050505050565b6000602082840312156124d157600080fd5b8151611dda81611da7565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220495690e44ccac1a303920ddbec1807787df8de74b91b9b176cb3736dfa1eda4464736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5951336a6347465954366543776f616558334b786f46566361797233444832616d68663370733953717779582f0000000000000000000000000000000000000000000000000000000000000000000000000000000000115869616e676e69616e6c69616e6764756f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004584e4c4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d59754b4c5539397970735956556a366143434b47613634543452486f34383363376454456e5a67755465724c000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5951336a6347465954366543776f616558334b786f46566361797233444832616d68663370733953717779582f0000000000000000000000000000000000000000000000000000000000000000000000000000000000115869616e676e69616e6c69616e6764756f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004584e4c4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d59754b4c5539397970735956556a366143434b47613634543452486f34383363376454456e5a67755465724c000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initBaseURI (string): ipfs://QmYQ3jcGFYT6eCwoaeX3KxoFVcayr3DH2amhf3ps9SqwyX/
Arg [1] : tokenName (string): Xiangnianliangduo
Arg [2] : tokenSymbol (string): XNLD
Arg [3] : myContractURI (string): QmYuKLU99ypsYVUj6aCCKGa64T4RHo483c7dTEnZguTerL

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [5] : 697066733a2f2f516d5951336a6347465954366543776f616558334b786f4656
Arg [6] : 6361797233444832616d68663370733953717779582f00000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [8] : 5869616e676e69616e6c69616e6764756f000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 584e4c4400000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [12] : 516d59754b4c5539397970735956556a366143434b47613634543452486f3438
Arg [13] : 3363376454456e5a67755465724c000000000000000000000000000000000000


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.