Contract 0x841fb851c14d57a16dff9223322c6fb2b9167183

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb72b59115f1565e5709dd21faa9b3cc7dcd3d9df45e78b910227e500a8c10da4Mint363183402022-12-02 2:48:442 hrs 35 mins ago0x8a8dbc4049864a00b89f08f9991448dca338deb1 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.681245699796 37.11924
0xf39914caa8eb90f88e3a5eb53549d38b1dc2a4011d3822c598e65dfa88b4c15aSet Approval For...362648512022-11-30 19:23:181 day 10 hrs ago0x93a5a4b845c73b0a47dc77084087f8cefc659760 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.003771305786 81.720205988
0x0838f7590f6ef5f6b2625682820e4c528fef1db5b0af68309d0cc95a7754d3f1Set Approval For...362427802022-11-30 6:24:531 day 22 hrs ago0x03fb71a4d1077cd7802544e842583cd94448eaa5 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.00072711 30.000000018
0xcf9c7c4069041e2a0961d549fe959202c0b8fea786d881a134c73183fe331d24Safe Transfer Fr...362289492022-11-29 22:04:592 days 7 hrs ago0x5ae2b03cf9516cfd6ad09bbb6dfe44abae71534a IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.002141203809 32.746628684
0xbe1458147504e3c1f802887774a5c5e1acb2916f9d6ae3c677aed0325414a1b4Set Approval For...361889812022-11-28 22:09:563 days 7 hrs ago0x204b32ca0c3fda088e27aa4d2e8b223dc46a7755 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.008917077722 193.223639133
0xd22ddd4652fa2f67022f3077cd6d7b950814e8cd194b13c30429684bfa370e85Mint361868172022-11-28 20:55:363 days 8 hrs ago0x5e44357be9c3b4ceabb30bd0e0a336608eca0a3b IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC1.581329676447 85.873462831
0x3124366ba9f836cdbee07aa4466b4e7716162d853dfd3b8036bf8f78d1b26abcMint361067642022-11-26 21:57:015 days 7 hrs ago0x658869c45d009034944f183b9dbee29bb222abf1 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.642537805 35
0xc7a9f2ea2e88ff057718cac41a75a1d0127ee2ad3d61e82f087bef0e573ebba0Mint360973872022-11-26 16:30:325 days 12 hrs ago0x00237b0bdf93f91bd6f1eaec2840af60dbf420ab IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.559230429717 30.37178867
0xf6e2ddc4e6402b8f3145dbddc86f0499002b008e9d15ab710c339a292953cb76Transfer From360069912022-11-24 12:04:477 days 17 hrs ago0xd0d323c26927d4aaef19f594d40099f5bce994c3 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.002789042589 48.412473343
0x84f4f7b3e871adcd52c9202e9ab421ffe0397b82b9560edb6c7fd57775432149Mint359883232022-11-24 1:07:298 days 4 hrs ago0x3370958e55b6b229083d272b48d7120634fb9cef IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.679981486 37
0x69ee2cc318091c56feb13f2f227734126867f8a43f61c9bdc4e2067e02c0dabeSafe Transfer Fr...359623302022-11-23 9:59:218 days 19 hrs ago0xb43408c9496135307c8b1703d49ee61344fec514 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.005946120129 123.304649842
0x0b33120d971a652256de3815e90ea03a4834970e99105aa637c4181ccfd971ceSet Approval For...359451422022-11-22 23:49:329 days 5 hrs ago0xff673243eae8dfc0d129f32033ffbc4d80f475fa IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.0022382265 48.500000005
0xfa09558a1844aa94bce69d0ca7e952c39505218c27f1fe69857277151add7f1bSet Approval For...359166842022-11-22 7:16:109 days 22 hrs ago0x5f8cfd505d3b236d77f4ba63fa59caf69e1ce8f5 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001407498157 30.498995812
0xdd2bbf7120ea5d46dba99a223605216dd75d8b2deefb4e701c58c88fb9cf28c8Safe Transfer Fr...358982352022-11-21 20:37:0910 days 8 hrs ago0xb43408c9496135307c8b1703d49ee61344fec514 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.003272661227 50.099677414
0xd73c0241c61d1fbe1b6088560e3700ec4e18897e8bc2d35bc8c166cdb6df6daaSafe Transfer Fr...358690582022-11-21 3:39:0211 days 1 hr ago0xb43408c9496135307c8b1703d49ee61344fec514 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001681107479 34.861113558
0xe5b0cef202ad32df86afd0820c5bf09c33be5464903368577b27a2b86d1b4da8Safe Transfer Fr...358624462022-11-20 23:38:4011 days 5 hrs ago0xa4c43b64547fefd0b5d39139a042289f2ffc0f44 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.00181569 30.000000013
0xc5166192ff12149c86ab2b63532249157f98a754c1d1191e7abdf0e5657b7481Safe Transfer Fr...358548482022-11-20 19:13:0711 days 10 hrs ago0x8beab6f923ac8e893eb2546ae2fce20148ab6b3c IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.00130269 30.000000013
0x67b03ee8a4d3188ed86cc3892ac21c4b160cc80a6e0cddc486a39e8e8d35f505Safe Transfer Fr...358543072022-11-20 18:54:2711 days 10 hrs ago0x8beab6f923ac8e893eb2546ae2fce20148ab6b3c IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001959330001 30.000000016
0xc149a1d8c433ac209bc237841e8e172d6030fadb99b345e1ef03b31510f92824Safe Transfer Fr...358278452022-11-20 3:38:3712 days 1 hr ago0xb43408c9496135307c8b1703d49ee61344fec514 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001465014765 30.380000526
0x18eb3bcfdd2ab92b6718897084da7ffa584aa7b31fad84dbedacbea57cd65f48Set Approval For...357377162022-11-17 23:01:2114 days 6 hrs ago0x9dc89a7d38e527f2a6ffc1f5bda5225f2a27af18 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.00138513958 30.014509105
0xdd23040379b8c1d99ffba4dd1a071bd993276875d61a1ff4e342709efac4bb5fSet Approval For...357237262022-11-17 14:57:2714 days 14 hrs ago0x3b57c1c4613bcd9e82443c4ec6d8aba259bc612a IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.007858422883 170.283708932
0xe19f4c29c1f8673a0f6cf67925d9b9be993cd8c3975dfecd8c01aaa3392b553fSafe Transfer Fr...357231522022-11-17 14:35:3514 days 14 hrs ago0x155183e2810a13922afb94eee705334cc7a9a1f9 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.014743339569 339.528350624
0x2fa69eabbfdafd4074c13b80c21a639c15d2bba04e82a595d371d500ea62f29cSet Approval For...356981772022-11-16 23:57:3215 days 5 hrs ago0xb53fa5d4926c0315638ecdc3473b3f053a8e8fe7 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.000776439397 32.03529305
0xd4e10955a70e2d7ae03004b172890f6866e8c162f1e400f7acc8b563226d71efSet Approval For...356373732022-11-15 12:38:1716 days 16 hrs ago0x63ffbd928fe86cc1725aeb8da726a833b9f4f5d2 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001996376714 43.259371057
0xddce926273cb8a6b36383d403defac03a3398c90c2157db3e8bd21043f27fae0Safe Transfer Fr...356187832022-11-15 1:37:2117 days 3 hrs ago0xb43408c9496135307c8b1703d49ee61344fec514 IN  0x841fb851c14d57a16dff9223322c6fb2b91671830 MATIC0.001984512741 30.380000017
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MutantFknApesNft

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : MutantFknApesNft.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface IG2FknApesNft {
    function getTokensByOwner(address _addr) external view returns (uint256[] memory);
}

interface IMutantFknMutagen {
    function getTokensByOwner(address _addr) external view returns (uint256[] memory);
    function balanceOf(address owner) external view returns (uint256);
    function useToken(uint256 _tokenId) external;
}


contract MutantFknApesNft is ERC721, Ownable {
    using Strings for uint256;
    using Counters for Counters.Counter;


    Counters.Counter private counterObj;

    uint256 public maxSupply = 3333;
    uint256 public maxMintAmountPerTx = 10;

    bool public pauseOfMint = false;

    string public baseMetaPrefix = "https://fknapesclub.com/mutant/meta/";

    mapping(address => uint256[]) public usedSecondGenTokens;

    IMutantFknMutagen mutagenContract;
    IG2FknApesNft secondGenContract;

    constructor() ERC721("Mutant Fkn Apes", "MFA") {}

    modifier isPossibleMint(uint256 _mintAmount) {
        require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!");
        require(counterObj.current() + _mintAmount <= maxSupply, "Max supply exceeded!");
        _;
    }

    modifier existsToken(uint256 _tokenId) {
        require(_exists(_tokenId), "ERC721: operator query for nonexistent token");
        _;
    }

    // Other Contracts
    function setMutagenContract(address _addr) public onlyOwner {
        mutagenContract = IMutantFknMutagen(_addr);
    }

    function setSecondGenContract(address _addr) public onlyOwner {
        secondGenContract = IG2FknApesNft(_addr);
    }


    function isUsedSecondGenToken(uint256 _tokenId, address _tokensOwner) public view returns (bool)  {
        for (uint256 i = 0; i < usedSecondGenTokens[_tokensOwner].length; i++) {
            if (usedSecondGenTokens[_tokensOwner][i] == _tokenId) {
                return true;
            }
        }

        return false;

    }

    function getUsedSecondGenTokens(address _tokensOwner) public view returns (uint256[] memory)  {
        return usedSecondGenTokens[_tokensOwner];
    }


    function getPossibleSecondGenForMint(address _tokensOwner) public view returns (uint256[] memory) {
        uint256[] memory secondGenTokens = secondGenContract.getTokensByOwner(_tokensOwner);


        uint256 possSecondGenCnt = 0;
        for (uint256 i = 0; i < secondGenTokens.length; i++) {
            if (!isUsedSecondGenToken(secondGenTokens[i], _tokensOwner)) {
                possSecondGenCnt++;
            }
        }

        uint256[] memory possSecondGenTokens = new uint256[](possSecondGenCnt);
        uint256 genI = 0;
        uint256 possI = 0;
        while (genI < secondGenTokens.length && possI < possSecondGenCnt) {
            if (!isUsedSecondGenToken(secondGenTokens[genI], _tokensOwner)) {
                possSecondGenTokens[possI] = secondGenTokens[genI];
                possI++;
            }
            genI++;
        }

        return possSecondGenTokens;
    }

    function getPossibleTokensForMint(address _tokensOwner) public view returns (uint256[] memory, uint256[] memory) {
        uint256[] memory possSecondGenTokens = getPossibleSecondGenForMint(_tokensOwner);
        uint256[] memory mutagensTokens = mutagenContract.getTokensByOwner(_tokensOwner);

        uint256 minCnt = mutagensTokens.length;
        if (possSecondGenTokens.length < minCnt) {
            minCnt = possSecondGenTokens.length;
        }

        uint256[] memory sliceMutagensTokens = new uint256[](minCnt);
        uint256[] memory sliceSecondGenTokens = new uint256[](minCnt);

        for (uint256 i = 0; i < minCnt; i++) {
            sliceMutagensTokens[i] = mutagensTokens[i];
            sliceSecondGenTokens[i] = possSecondGenTokens[i];
        }

        return (sliceMutagensTokens, sliceSecondGenTokens);
    }

    // tokenURI
    function setBaseMetaPrefix(string memory metaPrefix) public onlyOwner {
        baseMetaPrefix = metaPrefix;
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(_baseURI(), tokenId.toString(), '.json'));
    }

    // Supply
    function getTotalSupply() public view returns (uint256) {
        return counterObj.current();
    }

    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        maxSupply = _maxSupply;
    }

    // Mint
    function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
        maxMintAmountPerTx = _maxMintAmountPerTx;
    }

    function setPauseOfMint(bool _state) public onlyOwner {
        pauseOfMint = _state;
    }

    // Mint
    function mint(uint256 mintAmount) public isPossibleMint(mintAmount) {
        require(!pauseOfMint, "The contract is paused!");
        if (_msgSender() == owner()) {
            _mintLoop(_msgSender(), mintAmount);
        } else {
            _mintLoopRule(_msgSender(), mintAmount);
        }
    }

    function _mintLoop(address _addr, uint256 _mintAmount) internal {
        for (uint256 i = 0; i < _mintAmount; i++) {
            counterObj.increment();
            _safeMint(_addr, counterObj.current());
        }
    }

    function _mintLoopRule(address _addr, uint256 _mintAmount) internal {
        (uint256[] memory possMutagensTokens, uint256[] memory possSecondGenTokens) = getPossibleTokensForMint(_addr);

        require(possMutagensTokens.length == possSecondGenTokens.length, "Sliced G2 not equal mutagens");
        require(_mintAmount <= possMutagensTokens.length, "Not enough G2 and Mutagen!");

        for (uint256 i = 0; i < _mintAmount; i++) {
            counterObj.increment();
            _safeMint(_addr, counterObj.current());
            mutagenContract.useToken(possMutagensTokens[i]);
            usedSecondGenTokens[_addr].push(possSecondGenTokens[i]);
        }
    }

    function getTokensByOwner(address _addr) public view returns (uint256[] memory) {
        uint256[] memory ownTokens = new uint256[](balanceOf(_addr));
        uint256 tokenId = 1;
        uint256 indx = 0;

        while (tokenId <= counterObj.current()) {
            if (_exists(tokenId) && ownerOf(tokenId) == _addr) {
                ownTokens[indx] = tokenId;
                indx++;
            }
            tokenId++;
        }

        return ownTokens;
    }

    function withdraw() public onlyOwner {
        (bool os,) = payable(owner()).call{value : address(this).balance}("");
        require(os);
    }

}

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

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

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 12 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 12 : 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 11 of 12 : 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 12 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseMetaPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"_tokensOwner","type":"address"}],"name":"getPossibleSecondGenForMint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokensOwner","type":"address"}],"name":"getPossibleTokensForMint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokensOwner","type":"address"}],"name":"getUsedSecondGenTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_tokensOwner","type":"address"}],"name":"isUsedSecondGenToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseOfMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metaPrefix","type":"string"}],"name":"setBaseMetaPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setMutagenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPauseOfMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setSecondGenContract","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedSecondGenTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610d05600855600a6009819055805460ff1916905560e060405260246080818152906200284460a03980516200003e91600b916020909101906200012e565b503480156200004c57600080fd5b50604080518082018252600f81526e4d7574616e7420466b6e204170657360881b6020808301918252835180850190945260038452624d464160e81b9084015281519192916200009f916000916200012e565b508051620000b59060019060208401906200012e565b505050620000d2620000cc620000d860201b60201c565b620000dc565b62000211565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013c90620001d4565b90600052602060002090601f016020900481019282620001605760008555620001ab565b82601f106200017b57805160ff1916838001178555620001ab565b82800160010185558215620001ab579182015b82811115620001ab5782518255916020019190600101906200018e565b50620001b9929150620001bd565b5090565b5b80821115620001b95760008155600101620001be565b600181811c90821680620001e957607f821691505b602082108114156200020b57634e487b7160e01b600052602260045260246000fd5b50919050565b61262380620002216000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80636352211e11610125578063a22cb465116100ad578063c87b56dd1161007c578063c87b56dd14610467578063d5abeb011461047a578063da70ab7b14610483578063e985e9c514610490578063f2fde38b146104cc57600080fd5b8063a22cb46514610426578063b071401b14610439578063b88d4fde1461044c578063c4e41b221461045f57600080fd5b80638da5cb5b116100f45780638da5cb5b146103d057806394354fd0146103e157806395d89b41146103ea5780639ad80350146103f2578063a0712d681461041357600080fd5b80636352211e1461038f5780636f8b44b0146103a257806370a08231146103b5578063715018a6146103c857600080fd5b806323b872dd116101a85780633caccbfd116101775780633caccbfd1461032d5780633ccfd60b1461034e57806340398d671461035657806342842e0e146103695780635da7042d1461037c57600080fd5b806323b872dd146102e15780632be1541e146102f45780632d5b88c614610307578063370a4c401461031a57600080fd5b80630ced7626116101e45780630ced7626146102935780631d1179d9146102b35780631dbfd4d3146102c657806320fa8f39146102d957600080fd5b806301ffc9a71461021657806306fdde031461023e578063081812fc14610253578063095ea7b31461027e575b600080fd5b6102296102243660046121c5565b6104df565b60405190151581526020015b60405180910390f35b610246610531565b60405161023591906123a0565b610266610261366004612243565b6105c3565b6040516001600160a01b039091168152602001610235565b61029161028c3660046120da565b61065d565b005b6102a66102a1366004611faa565b610773565b604051610235919061235f565b6102916102c13660046121ab565b61097e565b6102916102d4366004611faa565b6109bb565b610246610a07565b6102916102ef366004611ffd565b610a95565b6102916103023660046121fd565b610ac6565b61022961031536600461225b565b610b07565b6102a6610328366004611faa565b610b9d565b61034061033b3660046120da565b610c09565b604051908152602001610235565b610291610c3a565b6102a6610364366004611faa565b610cd8565b610291610377366004611ffd565b610dde565b61029161038a366004611faa565b610df9565b61026661039d366004612243565b610e45565b6102916103b0366004612243565b610ebc565b6103406103c3366004611faa565b610eeb565b610291610f72565b6006546001600160a01b0316610266565b61034060095481565b610246610fa8565b610405610400366004611faa565b610fb7565b604051610235929190612372565b610291610421366004612243565b6111dd565b6102916104343660046120b1565b611309565b610291610447366004612243565b611314565b61029161045a366004612038565b611343565b61034061137b565b610246610475366004612243565b61138b565b61034060085481565b600a546102299060ff1681565b61022961049e366004611fcb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102916104da366004611faa565b6113c5565b60006001600160e01b031982166380ac58cd60e01b148061051057506001600160e01b03198216635b5e139f60e01b145b8061052b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105409061252b565b80601f016020809104026020016040519081016040528092919081815260200182805461056c9061252b565b80156105b95780601f1061058e576101008083540402835291602001916105b9565b820191906000526020600020905b81548152906001019060200180831161059c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061066882610e45565b9050806001600160a01b0316836001600160a01b031614156106d65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610638565b336001600160a01b03821614806106f257506106f2813361049e565b6107645760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610638565b61076e838361145d565b505050565b600e546040516340398d6760e01b81526001600160a01b0383811660048301526060926000929116906340398d679060240160006040518083038186803b1580156107bd57600080fd5b505afa1580156107d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107f99190810190612103565b90506000805b825181101561085d5761083983828151811061082b57634e487b7160e01b600052603260045260246000fd5b602002602001015186610b07565b61084b578161084781612566565b9250505b8061085581612566565b9150506107ff565b5060008167ffffffffffffffff81111561088757634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156108b0578160200160208202803683370190505b5090506000805b8451821080156108c657508381105b15610973576108fc8583815181106108ee57634e487b7160e01b600052603260045260246000fd5b602002602001015188610b07565b6109615784828151811061092057634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061094857634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061095d81612566565b9150505b8161096b81612566565b9250506108b7565b509095945050505050565b6006546001600160a01b031633146109a85760405162461bcd60e51b815260040161063890612405565b600a805460ff1916911515919091179055565b6006546001600160a01b031633146109e55760405162461bcd60e51b815260040161063890612405565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600b8054610a149061252b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a409061252b565b8015610a8d5780601f10610a6257610100808354040283529160200191610a8d565b820191906000526020600020905b815481529060010190602001808311610a7057829003601f168201915b505050505081565b610a9f33826114cb565b610abb5760405162461bcd60e51b81526004016106389061243a565b61076e8383836115c2565b6006546001600160a01b03163314610af05760405162461bcd60e51b815260040161063890612405565b8051610b0390600b906020840190611e8d565b5050565b6000805b6001600160a01b0383166000908152600c6020526040902054811015610b93576001600160a01b0383166000908152600c60205260409020805485919083908110610b6657634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415610b8157600191505061052b565b80610b8b81612566565b915050610b0b565b5060009392505050565b6001600160a01b0381166000908152600c6020908152604091829020805483518184028101840190945280845260609392830182828015610bfd57602002820191906000526020600020905b815481526020019060010190808311610be9575b50505050509050919050565b600c6020528160005260406000208181548110610c2557600080fd5b90600052602060002001600091509150505481565b6006546001600160a01b03163314610c645760405162461bcd60e51b815260040161063890612405565b6000610c786006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cc2576040519150601f19603f3d011682016040523d82523d6000602084013e610cc7565b606091505b5050905080610cd557600080fd5b50565b60606000610ce583610eeb565b67ffffffffffffffff811115610d0b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d34578160200160208202803683370190505b509050600160005b6007548211610dd5576000828152600260205260409020546001600160a01b031615158015610d845750846001600160a01b0316610d7983610e45565b6001600160a01b0316145b15610dc35781838281518110610daa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610dbf81612566565b9150505b81610dcd81612566565b925050610d3c565b50909392505050565b61076e83838360405180602001604052806000815250611343565b6006546001600160a01b03163314610e235760405162461bcd60e51b815260040161063890612405565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b03168061052b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610638565b6006546001600160a01b03163314610ee65760405162461bcd60e51b815260040161063890612405565b600855565b60006001600160a01b038216610f565760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610638565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f9c5760405162461bcd60e51b815260040161063890612405565b610fa6600061175e565b565b6060600180546105409061252b565b6060806000610fc584610773565b600d546040516340398d6760e01b81526001600160a01b038781166004830152929350600092909116906340398d679060240160006040518083038186803b15801561101057600080fd5b505afa158015611024573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261104c9190810190612103565b90506000815190508083511015611061575081515b60008167ffffffffffffffff81111561108a57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110b3578160200160208202803683370190505b50905060008267ffffffffffffffff8111156110df57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611108578160200160208202803683370190505b50905060005b838110156111cf5784818151811061113657634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061115e57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505085818151811061118a57634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106111b257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806111c781612566565b91505061110e565b509097909650945050505050565b806000811180156111f057506009548111155b6112335760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610638565b6008548161124060075490565b61124a91906124bc565b111561128f5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610638565b600a5460ff16156112e25760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610638565b6006546001600160a01b03163314156112ff57610b0333836117b0565b610b0333836117ed565b610b033383836119c6565b6006546001600160a01b0316331461133e5760405162461bcd60e51b815260040161063890612405565b600955565b61134d33836114cb565b6113695760405162461bcd60e51b81526004016106389061243a565b61137584848484611a95565b50505050565b600061138660075490565b905090565b6060611395611ac8565b61139e83611ad7565b6040516020016113af9291906122e3565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146113ef5760405162461bcd60e51b815260040161063890612405565b6001600160a01b0381166114545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610638565b610cd58161175e565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061149282610e45565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610638565b600061154f83610e45565b9050806001600160a01b0316846001600160a01b0316148061158a5750836001600160a01b031661157f846105c3565b6001600160a01b0316145b806115ba57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115d582610e45565b6001600160a01b0316146116395760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610638565b6001600160a01b03821661169b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610638565b6116a660008261145d565b6001600160a01b03831660009081526003602052604081208054600192906116cf9084906124e8565b90915550506001600160a01b03821660009081526003602052604081208054600192906116fd9084906124bc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b8181101561076e576117c9600780546001019055565b6117db836117d660075490565b611bf1565b806117e581612566565b9150506117b3565b6000806117f984610fb7565b91509150805182511461184e5760405162461bcd60e51b815260206004820152601c60248201527f536c69636564204732206e6f7420657175616c206d75746167656e73000000006044820152606401610638565b815183111561189f5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820473220616e64204d75746167656e210000000000006044820152606401610638565b60005b838110156119bf576118b8600780546001019055565b6118c5856117d660075490565b600d5483516001600160a01b039091169063fdd560c0908590849081106118fc57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161192291815260200190565b600060405180830381600087803b15801561193c57600080fd5b505af1158015611950573d6000803e3d6000fd5b505050506001600160a01b0385166000908152600c60205260409020825183908390811061198e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200155806119b781612566565b9150506118a2565b5050505050565b816001600160a01b0316836001600160a01b03161415611a285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610638565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611aa08484846115c2565b611aac84848484611c0b565b6113755760405162461bcd60e51b8152600401610638906123b3565b6060600b80546105409061252b565b606081611afb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b255780611b0f81612566565b9150611b1e9050600a836124d4565b9150611aff565b60008167ffffffffffffffff811115611b4e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b78576020820181803683370190505b5090505b84156115ba57611b8d6001836124e8565b9150611b9a600a86612581565b611ba59060306124bc565b60f81b818381518110611bc857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611bea600a866124d4565b9450611b7c565b610b03828260405180602001604052806000815250611d18565b60006001600160a01b0384163b15611d0d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c4f903390899088908890600401612322565b602060405180830381600087803b158015611c6957600080fd5b505af1925050508015611c99575060408051601f3d908101601f19168201909252611c96918101906121e1565b60015b611cf3573d808015611cc7576040519150601f19603f3d011682016040523d82523d6000602084013e611ccc565b606091505b508051611ceb5760405162461bcd60e51b8152600401610638906123b3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115ba565b506001949350505050565b611d228383611d4b565b611d2f6000848484611c0b565b61076e5760405162461bcd60e51b8152600401610638906123b3565b6001600160a01b038216611da15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610638565b6000818152600260205260409020546001600160a01b031615611e065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610638565b6001600160a01b0382166000908152600360205260408120805460019290611e2f9084906124bc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611e999061252b565b90600052602060002090601f016020900481019282611ebb5760008555611f01565b82601f10611ed457805160ff1916838001178555611f01565b82800160010185558215611f01579182015b82811115611f01578251825591602001919060010190611ee6565b50611f0d929150611f11565b5090565b5b80821115611f0d5760008155600101611f12565b600067ffffffffffffffff831115611f4057611f406125c1565b611f53601f8401601f191660200161248b565b9050828152838383011115611f6757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611f9557600080fd5b919050565b80358015158114611f9557600080fd5b600060208284031215611fbb578081fd5b611fc482611f7e565b9392505050565b60008060408385031215611fdd578081fd5b611fe683611f7e565b9150611ff460208401611f7e565b90509250929050565b600080600060608486031215612011578081fd5b61201a84611f7e565b925061202860208501611f7e565b9150604084013590509250925092565b6000806000806080858703121561204d578081fd5b61205685611f7e565b935061206460208601611f7e565b925060408501359150606085013567ffffffffffffffff811115612086578182fd5b8501601f81018713612096578182fd5b6120a587823560208401611f26565b91505092959194509250565b600080604083850312156120c3578182fd5b6120cc83611f7e565b9150611ff460208401611f9a565b600080604083850312156120ec578182fd5b6120f583611f7e565b946020939093013593505050565b60006020808385031215612115578182fd5b825167ffffffffffffffff8082111561212c578384fd5b818501915085601f83011261213f578384fd5b815181811115612151576121516125c1565b8060051b915061216284830161248b565b8181528481019084860184860187018a101561217c578788fd5b8795505b8386101561219e578051835260019590950194918601918601612180565b5098975050505050505050565b6000602082840312156121bc578081fd5b611fc482611f9a565b6000602082840312156121d6578081fd5b8135611fc4816125d7565b6000602082840312156121f2578081fd5b8151611fc4816125d7565b60006020828403121561220e578081fd5b813567ffffffffffffffff811115612224578182fd5b8201601f81018413612234578182fd5b6115ba84823560208401611f26565b600060208284031215612254578081fd5b5035919050565b6000806040838503121561226d578182fd5b82359150611ff460208401611f7e565b6000815180845260208085019450808401835b838110156122ac57815187529582019590820190600101612290565b509495945050505050565b600081518084526122cf8160208601602086016124ff565b601f01601f19169290920160200192915050565b600083516122f58184602088016124ff565b8351908301906123098183602088016124ff565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612355908301846122b7565b9695505050505050565b602081526000611fc4602083018461227d565b604081526000612385604083018561227d565b8281036020840152612397818561227d565b95945050505050565b602081526000611fc460208301846122b7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156124b4576124b46125c1565b604052919050565b600082198211156124cf576124cf612595565b500190565b6000826124e3576124e36125ab565b500490565b6000828210156124fa576124fa612595565b500390565b60005b8381101561251a578181015183820152602001612502565b838111156113755750506000910152565b600181811c9082168061253f57607f821691505b6020821081141561256057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561257a5761257a612595565b5060010190565b600082612590576125906125ab565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610cd557600080fdfea2646970667358221220212778d3b83e1afd6114dfc6d3e6560dd2796fa2b97e30a4808fb775678fad6164736f6c6343000804003368747470733a2f2f666b6e61706573636c75622e636f6d2f6d7574616e742f6d6574612f

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.