Contract 0x26F21DBB3B66f12D3BD8D496e8EA1fae235F60A1

 
 
Txn Hash
Method
Block
From
To
Value
0x1d3835084ae6bca6ee18ad93d68e420be6be04f14185a102352d3a3ad14036c7Set Approval For...161143952022-12-04 22:22:352 days 11 hrs ago0xbb67774a27c1c328a83b6d869be8d4da85bf8755 IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00058381 12.62199678
0xd09ea9add950076e2394fdb2c23f0fea2d4e06cdf3a5fc40a7aae9bbe86feb50Safe Transfer Fr...160629592022-11-27 17:57:239 days 16 hrs ago0x75e3e9c92162e62000425c98769965a76c2e387a IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00049335 10.83387446
0x9ed217894bc181bc53ca6a0d73fc41242f73a3fb985ec525b604b943e1e4c6cdSafe Transfer Fr...160629512022-11-27 17:55:479 days 16 hrs ago0x75e3e9c92162e62000425c98769965a76c2e387a IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00074554 11.05527881
0xb886b2d244260fc73fdcd639488063a08326cd5d172cce9b44f129723a3eb60dSet Base URI160079892022-11-20 1:37:2317 days 8 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00042093 11.1256339
0x5c4d21ac348df7149407687d132c48856bdc17189e3e5daa59865c1ebb35b40eSet Base URI160013812022-11-19 3:29:1118 days 6 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.0004612 12.18977384
0xb397f036c10942cbd0fb9c38076046b38c51193f88367bcbd9f5115574911417Set Base URI160013342022-11-19 3:19:4718 days 6 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.0004318 11.41295278
0x21fdfa82639b753b87fac9a72e740b2292433bf18c09b746dcdeaecbdb15ceccSet Base URI159994652022-11-18 21:04:2318 days 13 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00046197 12.21031291
0xdd0409642d1e9a67a52b43f2ced0b4d16165cbd123d236aed0baebbd44048806Set Base URI159491082022-11-11 20:18:3525 days 13 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00063743 16.84783967
0xedd6404c1a3272a3c5c3450a2c0cc5189073fe010cad5e3aedb04e8e2098ab69Set Approval For...159320882022-11-09 11:10:4727 days 23 hrs ago0xfc6bad3442d8edebc9e8aa885b42a9bbd3bb188b IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00188653 40.83934787
0x90db646473c9a3a0c0d3e62705d78ba259a0c240547a9e448af6e974a019d14fSet Base URI159154692022-11-07 3:30:2330 days 6 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00042556 11.24779214
0xe24f44c7b35090c05a1a79fb5e208942561f0fca7f91021bbd1249b15811cc31Mint Token To Wa...158995362022-11-04 22:07:4732 days 12 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00084591 13.64462819
0xcdbddf019cc67a39af4ce0cf0b286c996c96efacafb554c9ef6e8b4a973e303fSet Base URI158987152022-11-04 19:22:4732 days 14 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00070626 18.66702496
0xb1356b4a03737ab08a86b2fe7eee651520cbfb42ef30b6fe845f89cc8c2d429eSafe Transfer Fr...158734092022-11-01 6:29:1136 days 3 hrs ago0x3309d9b06dbcf74281d91e6974290a7074e80aca IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00041417 9.09278166
0x390295e8a719ee6d3fa5bafff9df99d4f4e1c3829a3b54976cfefce5cabec43eSafe Transfer Fr...158734072022-11-01 6:28:4736 days 3 hrs ago0x3309d9b06dbcf74281d91e6974290a7074e80aca IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00064926 9.62591029
0xf4eb15503abf0535128e4ab0aaf47cada4bc592c168161fd5dfc49ca3903cefdSet Base URI158496262022-10-28 22:44:5939 days 11 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00065723 17.37108074
0x05ceb84d921abfbb7c552e8d22cfd1a96575a73ff1efa9483f55ce786741fa63Set Base URI158482392022-10-28 18:05:4739 days 16 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00095112 25.13872199
0xad515b99a519a71eabd7ffbcd61d659498c679b2c8f85e71bcef82e955d051b6Set Base URI158482112022-10-28 18:00:1139 days 16 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00103744 27.42012307
0x992a20c76137b7e0655fce2df7671a5497563d6d0d385881a197752112513a27Transfer From158053462022-10-22 18:09:4745 days 16 hrs ago0x25ea77de753a26520d3b64a2200952a957b02698 IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00092158 21.57481802
0x4420a286bf829799741c3b1c266c2340cac494e4591ed8200d5f1e07f91e60d9Set Base URI157985422022-10-21 19:22:4746 days 14 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00160478 42.41529061
0x5427fd171f8fff0e5a08771fdd0b6f9ada0d11c5102b741a2425a11f6bec6c05Safe Transfer Fr...157586742022-10-16 5:45:5952 days 4 hrs ago0x5c4255855407043335811d3e5f83637f62491ea7 IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00058119 12.75955517
0x10665c81c9790e8201d39110746732ad0a15a4ff7979ded60e5a729d5549aa94Safe Transfer Fr...157586712022-10-16 5:45:2352 days 4 hrs ago0x5c4255855407043335811d3e5f83637f62491ea7 IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.000956 14.17360407
0xe37f75387c2a97ed573ed84ad330f8e4315d54a42d7e024e220dda70877c741eSet Base URI157487742022-10-14 20:35:5953 days 13 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00067281 17.78296134
0x083975bb0d6d3d352d19d468561dc41b3ebd9f6274b32e744555d192580491deSet Approval For...157423882022-10-13 23:11:5954 days 10 hrs ago0x5c4255855407043335811d3e5f83637f62491ea7 IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00071696 15.52065995
0x685d21b3df3fd806751e838b84c3f9c601f3310fdf15db09ab29fbde216321e9Mint Token To Wa...157206482022-10-10 22:20:5957 days 11 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00178809 28.84213971
0x3371248edce60c64154e4c94d282458792e96b4e9e22ec0cfda7f69f9b290315Set Base URI156988252022-10-07 21:15:2360 days 12 hrs agoENS Name javierlovato.eth IN  0x26f21dbb3b66f12d3bd8d496e8ea1fae235f60a10 Ether0.00030293 8.00684217
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BoredApeNotClubGenesis

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/*
NNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNN
NXkloooooooooooooooollllllllllllllllllllllllllllllolcc:::::::::::::::::::::::::::::::::::::::::::dKN
NXd::::::::::::::::::::::::::::::::::::::::::::::::;,''''''''''''''''''''''''''''''''''''''''''''cKN
NXd:::::::::::::::::::::::::::::::::::::::::::::::::,''''''''......''''''''''''''''''''''''''''''lKN
NXd::::::::::::::::::::::::::::::::::::::::::::;,,,''',;;;'''.......'''''''''''''''''''''''''''''lKN
NXd::::::::::::::::::::::::::::::::::::::::;,'',:lodxO0KKKOxc;;,''...''''''''''''''''''''''''''''lKN
NXd:::::::::::::::::::::::::;;,,,;::::::;''';lk0K0OOOOO0KKXXOc;,......'''''''''''''''''''''''''''lKN
NXd:::::::::::::::::::::::;,,'.....,:;,..'lOKXOxxxxxkxd:'':dl'...... ..'''.''''''''''''''''''''''lKN
NXd::::::::::::::::::::::;''....    ....,dKXkllxKNNNNKx:..:d;  '''.  .... ...''''''''''''''''''''lKN
NXd:::::::::::::::::::::;',...,;,.    .,;dOo,;d0KOkxl,. .,k0c. .',.      .....'''''''''''''''''''lKN
NXd::::::::::::::::::::;',,..,:l;.    .,;lc;::cooc:,.  .,lKkco:. ..     .,,. ..''''''''''''''''''lKN
NXd::::::::::::::::::::'.;. 'cxd'..'. .,;:,;:,,;cll:'...':dc....... .'. .,'. .'''''''''''''''''''lXN
NXd::::::::::::::::::::,.'. 'lx:.,:;'..cdl;,;;;,'',,,,'.,cl:......  .''..'.  .'''''''''''''''''''lXN
NXd::::::::::::::::::::;.'. .;:'.;:;' 'x0ko;,,,colcccldk0K0d,........'...  ..''''''''''''''''''''lXN
NXd:::::::::::::::::::::,.'..';;,;;'. .d0KKOdc:xkc;,..';coo:'..   ...... ..''''''''''''''''''''''lXN
NXd::::::::::::::::::::::,.''''',,''...:x0XNKklc:;,,,:looc;,.','....   ..''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::;''''...... .;:oOKXXKo'..'lOXNNKxc,''''..  ..''''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::;;,,,,;;.'::cx0XXx;.;cdKXNNNNXk;''''.. .''''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::::;.,::lOKXk;.:k0KXNNNNNXOc'''''. .''''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::::,';;ckO0k;'lOKXXNNNNNNNKd;'''''...'''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::::'';;oO0k:,lkKXNNNNNNNNNX0o,'''''...''''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::;..,,:dxc,lk0XNNNNNNNNNNNXOc,'''''...'''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::;...'';;,;dO0XNNNNNNNNNNNNKd;'''''. .'''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::;;' ...',;oO0KNNNNNNNNNNNNXkc'''''. .'''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::::,...  .':dxkOKKXNNNNNNNXKkc'.'..  .'''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::::'';...  .';:lodk00OOOOOxl:,....   .'''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::::::::''lo::'..  ...',;::ccc:,''...... .''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::::;',d00Oxl;'.     .................'''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::::,';x0XNXKkd:'..   .'''''......'''''''''''''''''''''''''''''''oXN
NXd:::::::::::::::::::::::::::::::,...ckKXNNNX0kl;,,. .''''''''''''''''''''''''''''''''''''''''''oXN
NXd::::::::::::::::::::::::::::;,..  .;oO0KXNNX0kl;;.  ...'''''''''''''''''''''''''''''''''''''''dXN
NXd::::::::::::::::::::::::::;'..    ;dlclxOKXX0Odc:'  .....'''''''''''''''''''''''''''''''''''''dXN
NXd::::::::::::::::::::::::;'.       .xX0xoooodxkdl:;;ll.  ...'''''''''''''''''''''''''''''''''''dXN
NXd:::::::::::::::::::;,'...          ,ONNNKOkl,',,',oOKo.   ...'''''''''''''''''''''''''''''''''dXN
NXd::::::::::::::::,'...               ;0NNNXx;...'''.'ld'      ...''''''''''''''''''''''''''''',dXN
NXd::::::::::::::;..                    ;0NXd:x0c.....,lo'         .'''''''''''''''''''''''''''',dXN
NXd::::::::::::::.                       ;kdlONXl.....'xO,         .'''''''''''''''''''''''''''',dXN
NXd:::::::::::::,.                        .oKNNK:.'''..cx,          .''''''''''''''''''''''''''',dXN
NXd::::::::::::;.                          'xXNO;.,'''';o'          .''''''''''''''''''''''''''',dXN
NXd;;;;;;;;;;;:'                            .dXk,.''''',:.          ..'''''''''''''''''''''''''',dXN
NKc............                              .'.                                                .lXN
NK;                  .'''''...        .'...       ..'..     .'..     ...'''...                   lXN
NK;                  ,::,..,::.      .::::;.      .,:::,.   ,c:.   .'::;,''','                   lXN
NK;                  ,::,..,:,.     .::'.;:,.     .,:::::,..,::.   '::,.                         lNN
NK;                  ,::,'',:;.    .;:;. '::,     .,::'.,:;,;::.   ,::.                          lNN
NK;                  '::.  .;::.  .;:;,''';::'    .,::.  .;::::.   .;:;'......                   lNN
NK;                  ';;,'',;,.  .,;,.     ';;.   .';;.    .;;;.    ..,;;;;;,.                   lNN
NK;                                                                                              lNN
NXkooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooONN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
*/

/**
 * @title Bored Ape Not Club - Genesis ERC-721 Smart Contract
 */

contract BoredApeNotClubGenesis is ERC721, Ownable, Pausable, ReentrancyGuard {

    string private baseURI;
    uint256 public maxTokens = 95;
    uint256 public mintTokenIndex = 86;
    uint256 public numTokensMinted = 0; 
    uint256 public numTokensBurned = 0;

    // PUBLIC MINT
    uint256 public tokenPrice = 0.05 ether;
    uint256 public maxTokensPurchased = 1;
    bool public mintIsActive = false;

    // FREE WALLET BASED MINT
    bool public freeWalletIsActive = false;
    mapping (address => bool) public freeWalletList;


    constructor() ERC721("Bored Ape Not Club", "BANC") {}

    // PUBLIC MINT
    function flipMintState() external onlyOwner {
        mintIsActive = !mintIsActive;
    }

    function mint(uint256 numberOfTokens) external payable nonReentrant{
        require(!paused(), "Pausable: paused"); // Toggle if pausing should suspend minting
        require(mintIsActive, "Mint is not active");
        require(numberOfTokens > 0 && numberOfTokens <= maxTokensPurchased, "You went over max tokens per transaction");
        require(mintTokenIndex + numberOfTokens - 1 <= maxTokens, "Not enough tokens left to mint that many");
        require(tokenPrice * numberOfTokens <= msg.value, "You sent the incorrect amount of ETH");

        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 mintIndex = mintTokenIndex;
            numTokensMinted++;
            mintTokenIndex++;
            _safeMint(msg.sender, mintIndex);
        }
    }

    // FREE WALLET BASED GIVEAWAY MINT - Only Mint One
    function flipFreeWalletState() external onlyOwner {
	    freeWalletIsActive = !freeWalletIsActive;
    }

    function initFreeWalletList(address[] memory walletList) external onlyOwner {
	    for (uint256 i = 0; i < walletList.length; i++) {
		    freeWalletList[walletList[i]] = true;
	    }
    }

    function mintFreeWalletList() external nonReentrant {
        require(freeWalletIsActive, "Mint is not active");
	    require(freeWalletList[msg.sender] == true, "You are not on the free wallet list or have already minted");
	    require(mintTokenIndex <= maxTokens, "Not enough tokens left to mint that many");

        freeWalletList[msg.sender] = false;

        uint256 mintIndex = mintTokenIndex;
        numTokensMinted++;
        mintTokenIndex++;
        _safeMint(msg.sender, mintIndex);
    }

    // TOTAL SUPPLY
    function totalSupply() external view returns (uint) { 
        return numTokensMinted - numTokensBurned;
    }

    // BURN IT 
    function burn(uint256 tokenId) public virtual {
	    require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        numTokensBurned++;
        _burn(tokenId);
    }

    // OWNER FUNCTIONS
    /**
    *  @notice withdraw funds 
    */
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(owner()), balance);
    }

    /**
    *  @notice mint a token id to a wallet
    */
    function mintTokenToWallet(address toWallet, uint256 tokenId) public onlyOwner {
        require(!_exists(tokenId), "ERC721: approved query for nonexistent token");
        numTokensMinted++;
        _safeMint(toWallet, tokenId);
    }

    /**
    *  @notice mint batch tokens ids to wallet
    */
    function mintTokensToWallet(address toWallet, uint256[] calldata tokens) public onlyOwner {
        for (uint256 i = 0; i < tokens.length; i++) {
            require(!_exists(tokens[i]), "ERC721: approved query for nonexistent token");
            numTokensMinted++;
            _safeMint(toWallet, tokens[i]);
        }
    }

    /**
    *  @notice reserve mint to contract wallet
    *  @dev next sequential token id
    */
    function reserveMint(uint256 numberOfTokens) external onlyOwner {
        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 mintIndex = mintTokenIndex;
            numTokensMinted++;
            mintTokenIndex++;
            _safeMint(msg.sender, mintIndex);
        }
    }

    function setPaused(bool _setPaused) external onlyOwner {
	    return (_setPaused) ? _pause() : _unpause();
    }

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

    function setBaseURI(string memory uri) external onlyOwner {
        baseURI = uri;
    }

    /**
    *  @notice Set total tokens of collection - maxTokens
    */
    function setMaxTokens(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokens = amount;
    }

    /**
    *  @notice Set token price  - tokenPrice
    */
    function setTokenPrice(uint256 price) external onlyOwner {
        require(tokenPrice >= 0, "Must be greater or equal then zer0");
        tokenPrice = price;
    }

    /**
    *  @notice Set max tokens allowed minted in public sale - maxTokensPublic
    */
    function setMaxTokensPurchased(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokensPurchased = amount;
    }

    /**
    *  @notice Set current mint token index - mintTokenIndex
    */
    function setMintTokenIndex(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        mintTokenIndex = amount;
    }

    // Toggle this function if pausing should suspend transfers
    function _beforeTokenTransfer(
	    address from,
	    address to,
	    uint256 tokenId
    ) internal virtual override(ERC721) {
	    require(!paused(), "Pausable: paused");

	    super._beforeTokenTransfer(from, to, tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 3 of 13 : 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 4 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 13 : 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 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipFreeWalletState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeWalletIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"walletList","type":"address[]"}],"name":"initFreeWalletList","outputs":[],"stateMutability":"nonpayable","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":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFreeWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toWallet","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintTokenToWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toWallet","type":"address"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"mintTokensToWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveMint","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPurchased","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMintTokenIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052605f6009556056600a556000600b819055600c5566b1a2bc2ec50000600d556001600e55600f805461ffff191690553480156200004057600080fd5b5060408051808201825260128152712137b932b21020b832902737ba1021b63ab160711b60208083019182528351808501909452600484526342414e4360e01b908401528151919291620000979160009162000138565b508051620000ad90600190602084019062000138565b505050620000ca620000c4620000e260201b60201c565b620000e6565b6006805460ff60a01b1916905560016007556200021b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014690620001de565b90600052602060002090601f0160209004810192826200016a5760008555620001b5565b82601f106200018557805160ff1916838001178555620001b5565b82800160010185558215620001b5579182015b82811115620001b557825182559160200191906001019062000198565b50620001c3929150620001c7565b5090565b5b80821115620001c35760008155600101620001c8565b600181811c90821680620001f357607f821691505b602082108114156200021557634e487b7160e01b600052602260045260246000fd5b50919050565b612f13806200022b6000396000f3fe6080604052600436106102dc5760003560e01c80635d04aeab11610184578063a0712d68116100d6578063cca979111161008a578063ec5787c211610064578063ec5787c2146107ba578063f2fde38b146107da578063fdc9b483146107fa57600080fd5b8063cca9791114610746578063e83157421461075b578063e985e9c51461077157600080fd5b8063b88d4fde116100bb578063b88d4fde146106e6578063c87b56dd14610706578063ca9fdc0a1461072657600080fd5b8063a0712d68146106b3578063a22cb465146106c657600080fd5b8063715018a611610138578063894a8cac11610112578063894a8cac1461066b5780638da5cb5b1461068057806395d89b411461069e57600080fd5b8063715018a61461062a5780637b51715d1461063f5780637ff9b5961461065557600080fd5b80636a56fe2e116101695780636a56fe2e146105d45780636a61e5fc146105ea57806370a082311461060a57600080fd5b80635d04aeab146105945780636352211e146105b457600080fd5b806323b872dd1161023d57806342842e0e116101f157806355f804b3116101cb57806355f804b31461054057806359c74f29146105605780635c975abb1461057557600080fd5b806342842e0e146104e657806342966c6814610506578063471a42941461052657600080fd5b80633ccfd60b116102225780633ccfd60b1461049b5780633d68d838146104b05780634230baee146104d057600080fd5b806323b872dd14610465578063246813491461048557600080fd5b80630c9a6313116102945780631342ff4c116102795780631342ff4c1461040257806316c38b3c1461042257806318160ddd1461044257600080fd5b80630c9a6313146103b257806311e776fe146103e257600080fd5b806306fdde03116102c557806306fdde0314610338578063081812fc1461035a578063095ea7b31461039257600080fd5b806301ffc9a7146102e15780630545290e14610316575b600080fd5b3480156102ed57600080fd5b506103016102fc3660046128ca565b610819565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b506103366103313660046128e7565b6108b6565b005b34801561034457600080fd5b5061034d610908565b60405161030d9190612958565b34801561036657600080fd5b5061037a6103753660046128e7565b61099a565b6040516001600160a01b03909116815260200161030d565b34801561039e57600080fd5b506103366103ad366004612987565b610a2f565b3480156103be57600080fd5b506103016103cd3660046129b1565b60106020526000908152604090205460ff1681565b3480156103ee57600080fd5b506103366103fd3660046128e7565b610b61565b34801561040e57600080fd5b5061033661041d3660046128e7565b610bae565b34801561042e57600080fd5b5061033661043d3660046129dc565b610c4f565b34801561044e57600080fd5b50610457610caf565b60405190815260200161030d565b34801561047157600080fd5b506103366104803660046129f7565b610cc6565b34801561049157600080fd5b50610457600a5481565b3480156104a757600080fd5b50610336610d4e565b3480156104bc57600080fd5b506103366104cb3660046128e7565b610db2565b3480156104dc57600080fd5b50610457600b5481565b3480156104f257600080fd5b506103366105013660046129f7565b610dff565b34801561051257600080fd5b506103366105213660046128e7565b610e1a565b34801561053257600080fd5b50600f546103019060ff1681565b34801561054c57600080fd5b5061033661055b366004612ad2565b610eb3565b34801561056c57600080fd5b50610336610f0e565b34801561058157600080fd5b50600654600160a01b900460ff16610301565b3480156105a057600080fd5b506103366105af366004612b1b565b610f6a565b3480156105c057600080fd5b5061037a6105cf3660046128e7565b61101a565b3480156105e057600080fd5b50610457600e5481565b3480156105f657600080fd5b506103366106053660046128e7565b6110a5565b34801561061657600080fd5b506104576106253660046129b1565b6110f2565b34801561063657600080fd5b5061033661118c565b34801561064b57600080fd5b50610457600c5481565b34801561066157600080fd5b50610457600d5481565b34801561067757600080fd5b506103366111e0565b34801561068c57600080fd5b506006546001600160a01b031661037a565b3480156106aa57600080fd5b5061034d611245565b6103366106c13660046128e7565b611254565b3480156106d257600080fd5b506103366106e1366004612bc8565b61152b565b3480156106f257600080fd5b50610336610701366004612bfb565b611536565b34801561071257600080fd5b5061034d6107213660046128e7565b6115c4565b34801561073257600080fd5b50610336610741366004612c77565b6116ad565b34801561075257600080fd5b506103366117e4565b34801561076757600080fd5b5061045760095481565b34801561077d57600080fd5b5061030161078c366004612cfd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107c657600080fd5b506103366107d5366004612987565b6119d7565b3480156107e657600080fd5b506103366107f53660046129b1565b611ab8565b34801561080657600080fd5b50600f5461030190610100900460ff1681565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061087c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108b057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b031633146109035760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064015b60405180910390fd5b600e55565b60606000805461091790612d27565b80601f016020809104026020016040519081016040528092919081815260200182805461094390612d27565b80156109905780601f1061096557610100808354040283529160200191610990565b820191906000526020600020905b81548152906001019060200180831161097357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fa565b506000908152600460205260409020546001600160a01b031690565b6000610a3a8261101a565b9050806001600160a01b0316836001600160a01b03161415610ac45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108fa565b336001600160a01b0382161480610ae05750610ae0813361078c565b610b525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108fa565b610b5c8383611b85565b505050565b6006546001600160a01b03163314610ba95760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b600955565b6006546001600160a01b03163314610bf65760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b60005b81811015610c4b57600a54600b8054906000610c1483612d78565b9091555050600a8054906000610c2983612d78565b9190505550610c383382611bf3565b5080610c4381612d78565b915050610bf9565b5050565b6006546001600160a01b03163314610c975760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b80610ca757610ca4611c0d565b50565b610ca4611cb3565b6000600c54600b54610cc19190612d93565b905090565b610cd1335b82611d3b565b610d435760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fa565b610b5c838383611e32565b6006546001600160a01b03163314610d965760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b47610ca4610dac6006546001600160a01b031690565b8261200a565b6006546001600160a01b03163314610dfa5760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b600a55565b610b5c83838360405180602001604052806000815250611536565b610e2333610ccb565b610e955760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016108fa565b600c8054906000610ea583612d78565b9190505550610ca481612123565b6006546001600160a01b03163314610efb5760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b8051610c4b90600890602084019061281b565b6006546001600160a01b03163314610f565760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b600f805460ff19811660ff90911615179055565b6006546001600160a01b03163314610fb25760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b60005b8151811015610c4b57600160106000848481518110610fd657610fd6612daa565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061101281612d78565b915050610fb5565b6000818152600260205260408120546001600160a01b0316806108b05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108fa565b6006546001600160a01b031633146110ed5760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b600d55565b60006001600160a01b0382166111705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108fa565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111d45760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b6111de60006121ca565b565b6006546001600160a01b031633146112285760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b600f805461ff001981166101009182900460ff1615909102179055565b60606001805461091790612d27565b600260075414156112a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108fa565b6002600755600654600160a01b900460ff16156112f95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108fa565b600f5460ff1661134b5760405162461bcd60e51b815260206004820152601260248201527f4d696e74206973206e6f7420616374697665000000000000000000000000000060448201526064016108fa565b60008111801561135d5750600e548111155b6113cf5760405162461bcd60e51b815260206004820152602860248201527f596f752077656e74206f766572206d617820746f6b656e73207065722074726160448201527f6e73616374696f6e00000000000000000000000000000000000000000000000060648201526084016108fa565b600954600182600a546113e29190612dc0565b6113ec9190612d93565b111561144b5760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e742074604482015267686174206d616e7960c01b60648201526084016108fa565b3481600d5461145a9190612dd8565b11156114cd5760405162461bcd60e51b8152602060048201526024808201527f596f752073656e742074686520696e636f727265637420616d6f756e74206f6660448201527f204554480000000000000000000000000000000000000000000000000000000060648201526084016108fa565b60005b8181101561152257600a54600b80549060006114eb83612d78565b9091555050600a805490600061150083612d78565b919050555061150f3382611bf3565b508061151a81612d78565b9150506114d0565b50506001600755565b610c4b33838361221c565b6115403383611d3b565b6115b25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fa565b6115be848484846122eb565b50505050565b6000818152600260205260409020546060906001600160a01b03166116515760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108fa565b600061165b612369565b9050600081511161167b57604051806020016040528060008152506116a6565b8061168584612378565b604051602001611696929190612df7565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146116f55760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b60005b818110156115be5761173983838381811061171557611715612daa565b905060200201356000908152600260205260409020546001600160a01b0316151590565b1561179b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fa565b600b80549060006117ab83612d78565b91905055506117d2848484848181106117c6576117c6612daa565b90506020020135611bf3565b806117dc81612d78565b9150506116f8565b600260075414156118375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108fa565b6002600755600f54610100900460ff166118935760405162461bcd60e51b815260206004820152601260248201527f4d696e74206973206e6f7420616374697665000000000000000000000000000060448201526064016108fa565b3360009081526010602052604090205460ff16151560011461191d5760405162461bcd60e51b815260206004820152603a60248201527f596f7520617265206e6f74206f6e2074686520667265652077616c6c6574206c60448201527f697374206f72206861766520616c7265616479206d696e74656400000000000060648201526084016108fa565b600954600a5411156119825760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e742074604482015267686174206d616e7960c01b60648201526084016108fa565b336000908152601060205260408120805460ff19169055600a54600b805491926119ab83612d78565b9091555050600a80549060006119c083612d78565b91905055506119cf3382611bf3565b506001600755565b6006546001600160a01b03163314611a1f5760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b6000818152600260205260409020546001600160a01b031615611a995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fa565b600b8054906000611aa983612d78565b9190505550610c4b8282611bf3565b6006546001600160a01b03163314611b005760405162461bcd60e51b81526020600482018190526024820152600080516020612ebe83398151915260448201526064016108fa565b6001600160a01b038116611b7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108fa565b610ca4816121ca565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bba8261101a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610c4b8282604051806020016040528060008152506124aa565b600654600160a01b900460ff16611c665760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108fa565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600654600160a01b900460ff1615611d005760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108fa565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c963390565b6000818152600260205260408120546001600160a01b0316611db45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fa565b6000611dbf8361101a565b9050806001600160a01b0316846001600160a01b03161480611dfa5750836001600160a01b0316611def8461099a565b6001600160a01b0316145b80611e2a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e458261101a565b6001600160a01b031614611ec15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108fa565b6001600160a01b038216611f3c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108fa565b611f47838383612528565b611f52600082611b85565b6001600160a01b0383166000908152600360205260408120805460019290611f7b908490612d93565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fa9908490612dc0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b8047101561205a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b5050905080610b5c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108fa565b600061212e8261101a565b905061213c81600084612528565b612147600083611b85565b6001600160a01b0381166000908152600360205260408120805460019290612170908490612d93565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561227e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108fa565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6122f6848484611e32565b61230284848484612575565b6115be5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016108fa565b60606008805461091790612d27565b6060816123b857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156123e257806123cc81612d78565b91506123db9050600a83612e3c565b91506123bc565b60008167ffffffffffffffff8111156123fd576123fd612a33565b6040519080825280601f01601f191660200182016040528015612427576020820181803683370190505b5090505b8415611e2a5761243c600183612d93565b9150612449600a86612e50565b612454906030612dc0565b60f81b81838151811061246957612469612daa565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506124a3600a86612e3c565b945061242b565b6124b483836126cd565b6124c16000848484612575565b610b5c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016108fa565b600654600160a01b900460ff1615610b5c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108fa565b60006001600160a01b0384163b156126c257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125b9903390899088908890600401612e64565b602060405180830381600087803b1580156125d357600080fd5b505af1925050508015612603575060408051601f3d908101601f1916820190925261260091810190612ea0565b60015b6126a8573d808015612631576040519150601f19603f3d011682016040523d82523d6000602084013e612636565b606091505b5080516126a05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016108fa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e2a565b506001949350505050565b6001600160a01b0382166127235760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108fa565b6000818152600260205260409020546001600160a01b0316156127885760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108fa565b61279460008383612528565b6001600160a01b03821660009081526003602052604081208054600192906127bd908490612dc0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461282790612d27565b90600052602060002090601f016020900481019282612849576000855561288f565b82601f1061286257805160ff191683800117855561288f565b8280016001018555821561288f579182015b8281111561288f578251825591602001919060010190612874565b5061289b92915061289f565b5090565b5b8082111561289b57600081556001016128a0565b6001600160e01b031981168114610ca457600080fd5b6000602082840312156128dc57600080fd5b81356116a6816128b4565b6000602082840312156128f957600080fd5b5035919050565b60005b8381101561291b578181015183820152602001612903565b838111156115be5750506000910152565b60008151808452612944816020860160208601612900565b601f01601f19169290920160200192915050565b6020815260006116a6602083018461292c565b80356001600160a01b038116811461298257600080fd5b919050565b6000806040838503121561299a57600080fd5b6129a38361296b565b946020939093013593505050565b6000602082840312156129c357600080fd5b6116a68261296b565b8035801515811461298257600080fd5b6000602082840312156129ee57600080fd5b6116a6826129cc565b600080600060608486031215612a0c57600080fd5b612a158461296b565b9250612a236020850161296b565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612a7257612a72612a33565b604052919050565b600067ffffffffffffffff831115612a9457612a94612a33565b612aa7601f8401601f1916602001612a49565b9050828152838383011115612abb57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ae457600080fd5b813567ffffffffffffffff811115612afb57600080fd5b8201601f81018413612b0c57600080fd5b611e2a84823560208401612a7a565b60006020808385031215612b2e57600080fd5b823567ffffffffffffffff80821115612b4657600080fd5b818501915085601f830112612b5a57600080fd5b813581811115612b6c57612b6c612a33565b8060051b9150612b7d848301612a49565b8181529183018401918481019088841115612b9757600080fd5b938501935b83851015612bbc57612bad8561296b565b82529385019390850190612b9c565b98975050505050505050565b60008060408385031215612bdb57600080fd5b612be48361296b565b9150612bf2602084016129cc565b90509250929050565b60008060008060808587031215612c1157600080fd5b612c1a8561296b565b9350612c286020860161296b565b925060408501359150606085013567ffffffffffffffff811115612c4b57600080fd5b8501601f81018713612c5c57600080fd5b612c6b87823560208401612a7a565b91505092959194509250565b600080600060408486031215612c8c57600080fd5b612c958461296b565b9250602084013567ffffffffffffffff80821115612cb257600080fd5b818601915086601f830112612cc657600080fd5b813581811115612cd557600080fd5b8760208260051b8501011115612cea57600080fd5b6020830194508093505050509250925092565b60008060408385031215612d1057600080fd5b612d198361296b565b9150612bf26020840161296b565b600181811c90821680612d3b57607f821691505b60208210811415612d5c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612d8c57612d8c612d62565b5060010190565b600082821015612da557612da5612d62565b500390565b634e487b7160e01b600052603260045260246000fd5b60008219821115612dd357612dd3612d62565b500190565b6000816000190483118215151615612df257612df2612d62565b500290565b60008351612e09818460208801612900565b835190830190612e1d818360208801612900565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082612e4b57612e4b612e26565b500490565b600082612e5f57612e5f612e26565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612e96608083018461292c565b9695505050505050565b600060208284031215612eb257600080fd5b81516116a6816128b456fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207cac83c032245e634692e3f58075e51ec7c8540ce74b767980b99329157c70d664736f6c63430008090033

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.