Contract 0x258AEac01672e6857972707fc129a6A39d09758b 3

 
 
Txn Hash
Method
Block
From
To
Value
0xefc96d94ce98bb11e71652ab8a3f5ba4d83288646f441a5015089335be2dabe1Set Approval For...160844292022-11-30 17:55:472 hrs 39 mins ago0x228f30b941a4993e6df7cb9a87efb31b33bd8231 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00060089 12.96825726
0xd32ab611984468cd2f1130731fea0759a0311951e445010b510f9a2a9e13d350Set Approval For...160842122022-11-30 17:12:113 hrs 23 mins ago0x45bf0209e0b68a40dd9e32a5a9dbd5e132288802 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00061847 13.34761595
0xe74ca5755cb570209241198d3649bc6b2d9084bbac073a5963b3e9b346fc1757Set Approval For...160841752022-11-30 17:04:473 hrs 30 mins ago0xb74e79d7b67f9c7aed90bfc9dc88594907709517 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00063448 13.69308422
0x72f2475294f901a04ec62a34967ac0002ce16c5d0c14b519a0b62ee24cc17f03Set Approval For...160841252022-11-30 16:54:473 hrs 40 mins ago0xb2de29c32b9e7d9d3b0b97b1d00d8f91a6c72617 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00069528 15.00527357
0xb4aa125620b8886e7ba233f32aca7632f2e2d5cd164218631fc1d10a596bde06Set Approval For...160839002022-11-30 16:09:474 hrs 25 mins ago0x053b8ebe5c8aee5ca41fdb86de4849d5be6e3c77 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.001081 23.32967394
0x67eff234eb8e13c79c143c4ee25f8fcbde6639dce1a2c3397693278eb0e15e0cSet Approval For...160829112022-11-30 12:49:597 hrs 45 mins ago0xb00d2356afa8a77d899d5218e1679fd3d591f750 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.0005615912.12
0x7baebe8df3da4a480cc5c18583656ec6862e0ad8d43a1a8feae96d2ef409e1aaSafe Transfer Fr...160827942022-11-30 12:26:118 hrs 9 mins ago0xb031571bef2c488c2fcfc4f17fad35f7a2cb7b17 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00107079 11.93150126
0x0e1efa8cf45eda9eadc6415437f99c8add44ed55c8350ab3ca285e1f5faa9abaSafe Transfer Fr...160810992022-11-30 6:45:1113 hrs 50 mins ago0xc03980eb32ea0469c78aa42a2fc8a2e7722b7fe3 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00105622 11.77075846
0x67fcaf585b096e196c4105863c2fca60ece7aeeb8dbbd5ba123a77a7313cfd44Set Approval For...160810232022-11-30 6:29:4714 hrs 5 mins ago0x76b15436ce7a02288e514e0eb0e10075a4410be6 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00055247 11.9232421
0xac813e3be56d88956ed4c8f1ee1c69521b0324b06fef1b7550916ea6970563a1Safe Transfer Fr...160809862022-11-30 6:22:2314 hrs 13 mins ago0xc03980eb32ea0469c78aa42a2fc8a2e7722b7fe3 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00112105 11.20752754
0x16557371c96d724a4a1ae05c4564303bcc082328643cec5ff6c8d47e0c209666Set Approval For...160794382022-11-30 1:11:2319 hrs 24 mins ago0x153bcc574f68135606c28dcd58320730078be76d IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00063111 13.62036
0xd53b432a12140e9da2e910f474285080d16173d096f5769c702768b821670e36Safe Transfer Fr...160791322022-11-30 0:10:1120 hrs 25 mins ago0x5a205560218724f5e5a9c473711061cc071bbae1 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.0009535 10.62456869
0x68e2650b0bbe3839c91cd6d3dec9f042c508ebc8c51e8533e505187cf1a1fa0bSet Approval For...160789612022-11-29 23:35:3521 hrs ago0xa1403e816302c975c008ab2ff784296914aba46d IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.000489 10.55336218
0xcecd7d9d96a4325d862e8c02416b7c55fdf753a5574cb389ca46214291564c66Safe Transfer Fr...160786982022-11-29 22:42:3521 hrs 53 mins ago0x85f2d9c49da205c089bb96fd6171064c5f1c02c6 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00102142 11.74797527
0x8987233ee53136725de7666fcb42b3bad862a54c906849c3c38ce90bddcf491fSafe Transfer Fr...160785772022-11-29 22:18:2322 hrs 17 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00087744 11.32988735
0x004973f1c1a67c59c706647b928da97a3b1e4157e092f29165bd85b62008130cSafe Transfer Fr...160785642022-11-29 22:15:4722 hrs 19 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00101914 11.61564963
0x3741cb491c833e79a6b01c94d3ae97d1981222c8d55510e18672a71c11d13226Safe Transfer Fr...160785502022-11-29 22:12:5922 hrs 22 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00115977 11.92705419
0x8771d0e40de5e9f47f7d8cf4743639e1266a3fba993bd81d10cc3c29c0f08163Safe Transfer Fr...160784212022-11-29 21:46:5922 hrs 48 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.0009295 10.59401866
0xb69e15b3b26d1b527dc401e8800245a73bc878d01e6e308bd2ab9cc4716544b8Safe Transfer Fr...160783992022-11-29 21:42:3522 hrs 53 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00093725 10.68231886
0xdb91d126b6f763997e3e1b7f6bba4a3f64c1ce4668d734adc2bd58f2b5253e48Safe Transfer Fr...160783882022-11-29 21:40:2322 hrs 55 mins ago0x9620d464b1a61be55a3a5062e8242c5def9aaab0 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00107119 11.01608572
0xc1a52a32bcf2130243d1599fc7c61af348bb40dd578f77247000679099f36a5fSafe Transfer Fr...160776282022-11-29 19:06:471 day 1 hr ago0x5a205560218724f5e5a9c473711061cc071bbae1 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00138544 13.84904134
0x883e5da6dc4ffd6e9c7d8492eeaadc6dcd592b849eeef6042a2aa0225776a165Set Approval For...160770292022-11-29 17:06:351 day 3 hrs ago0x132868d83ca3af8cc84c2ad823f6d8cd772e7290 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00036886 13.95301856
0x3d5260c68ed0df811c8601750be31fb252fa1da395f3e330db94eb695a94a2d4Set Approval For...160770292022-11-29 17:06:351 day 3 hrs ago0x132868d83ca3af8cc84c2ad823f6d8cd772e7290 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00064652 13.95301856
0xbc7dcec8e39610f7ec9894a05d0012beaa8d76a967cbc11f12a9f7c8e20e303dSet Approval For...160769142022-11-29 16:43:231 day 3 hrs agoENS Name j3ffrey.eth IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00058796 12.68916584
0xef56c934779b1dd8973f58548fd4167eafd335df8de370a9025d94d5ceb95140Set Approval For...160765052022-11-29 15:20:351 day 5 hrs ago0x54d8fac1795c78fc46c85650a08f87e9517495d4 IN  0x258aeac01672e6857972707fc129a6a39d09758b0 Ether0.00055019 11.8740846
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xb369b498827e3c1f16182f1a6650c0c5bcec2c2cf923a542767ff105d9dbf568137789822021-12-10 18:19:49355 days 2 hrs ago 0x258aeac01672e6857972707fc129a6a39d09758b0xed574fe91cf9848520c41bcd1ce272d802572f97373.441001 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Cryptowalkers

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 20 runs

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

// @title: Cryptowalkers
// @author: Manifest Futures

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract Cryptowalkers is
  ERC721,
  ERC721Enumerable,
  ERC721URIStorage,
  Ownable,
  ReentrancyGuard
{
  using Address for address payable;
  using SafeMath for uint256;

  struct WhitelistDetails {
    string whitelistType;
    uint256 amountToMint;
  }

  struct WhitelistUserStatus {
    uint256 whitelistLevel;
    uint256 amountMinted;
    bool limitReached;
  }

  enum State {
    Setup,
    Whitelist,
    Public
  }

  mapping(uint256 => WhitelistDetails) public _whitelistDetails;
  mapping(address => WhitelistUserStatus) public _whitelistUserStatus;
  mapping(uint256 => bool) private _walkerDetailsChanged;
  State private _state;

  string private _tokenUriBase;
  uint256 private _nextTokenId;
  uint256 private _startingIndex;
  uint256 private _amountReserved;
  bool private _reservedMinted;

  uint256 public constant MAX_CRYPTOWALKERS = 10000;
  uint256 public constant MAX_MINT = 10;
  uint256 public constant RESERVED_CRYPTOWALKERS = 400;
  uint256 public WALKER_PRICE = 8E16; // 0.08ETH
  uint256 public UPDATE_DETAILS_PRICE = 8E15; // 0.008ETH
  
  event WalkerDetailsChange(
    uint256 indexed _tokenId,
    string _name,
    string _description
  );

  constructor() ERC721("Cryptowalkers", "Walkers") {
    _state = State.Setup;
    _startingIndex = 1;
    _tokenUriBase = "http://api.cryptowalkers.io/api/token/";
    _whitelistDetails[0].whitelistType = "Not Whitelisted";
    _whitelistDetails[0].amountToMint = 0;
    _whitelistDetails[1].whitelistType = "Infected Walker / Metakey / PolyPixos";
    _whitelistDetails[1].amountToMint = 1;
    _whitelistDetails[2].whitelistType = "Netvrk Land Owner";
    _whitelistDetails[2].amountToMint = 2;
    _whitelistDetails[3].whitelistType = "Whitewalker";
    _whitelistDetails[3].amountToMint = 3;
    _whitelistDetails[4].whitelistType = "Zombie";
    _whitelistDetails[4].amountToMint = 4;
    _whitelistDetails[5].whitelistType = "Mutant";
    _whitelistDetails[5].amountToMint = 5;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721, ERC721URIStorage)
    returns (string memory)
  {
    return string(abi.encodePacked(baseTokenURI(), Strings.toString(tokenId)));
  }

  function baseTokenURI() public view virtual returns (string memory) {
    return _tokenUriBase;
  }

  function setTokenURI(string memory tokenUriBase_) public onlyOwner {
    _tokenUriBase = tokenUriBase_;
  }

  function state() public view virtual returns (State) {
    return _state;
  }

  function setStateToSetup() public onlyOwner {
    _state = State.Setup;
  }

  function setStateToWhitelist() public onlyOwner {
    _state = State.Whitelist;
  }

  function setStateToPublic() public onlyOwner {
    _state = State.Public;
  }

  function addUserToWhitelistByIndex(
    address userToWhitelist,
    uint256 whitelistDetailsIndex
  ) public onlyOwner returns (bool) {
    _whitelistUserStatus[userToWhitelist]
      .whitelistLevel = whitelistDetailsIndex;
    _whitelistUserStatus[userToWhitelist].amountMinted = 0;
    _whitelistUserStatus[userToWhitelist].limitReached = false;
    return true;
  }

  function addUsersToWhitelistByIndex(
    address[] memory usersToWhitelist,
    uint256 whitelistDetailsIndex
  ) public onlyOwner returns (bool) {
    for (uint256 i = 0; i < usersToWhitelist.length; i++) {
      address user = usersToWhitelist[i];
      addUserToWhitelistByIndex(user, whitelistDetailsIndex);
    }
    return true;
  }

  function checkUserMintStatus(address user, uint256 amountToMint) public view {
    require(
      !_whitelistUserStatus[user].limitReached,
      "Whitelist allocation for user has been reached"
    );
    require(
      amountToMint <=
        _whitelistDetails[_whitelistUserStatus[user].whitelistLevel]
          .amountToMint,
      "You can only mint the amount allowed for your whitelist level"
    );
  }

  function updateUserWhitelistStatus(address user) private {
    _whitelistUserStatus[user].amountMinted = _whitelistUserStatus[user]
      .amountMinted
      .add(1);
    if (
      _whitelistUserStatus[user].amountMinted ==
      _whitelistDetails[_whitelistUserStatus[user].whitelistLevel].amountToMint
    ) {
      _whitelistUserStatus[user].limitReached = true;
    }
  }

  function mintReserve(address reserveAddress, uint256 amountToReserve) public onlyOwner {
    require(!_reservedMinted, "Reserve minting has already been completed");
    require(_amountReserved.add(amountToReserve) <= RESERVED_CRYPTOWALKERS, "Reserving too many Cryptowalkers");
    if (totalSupply() == 0){
      _nextTokenId = _startingIndex;
    } 

    for (uint256 i = 0; i < amountToReserve; i++) {
      _safeMint(reserveAddress, _nextTokenId);
      _nextTokenId = _nextTokenId.add(1);
    }
    _amountReserved = _amountReserved.add(amountToReserve);
    if (_amountReserved == RESERVED_CRYPTOWALKERS) {
      _reservedMinted = true;
    }
  }

  function mintWalkers(uint256 amountOfWalkers)
    public
    payable
    virtual
    nonReentrant
    returns (uint256)
  {
    address recipient = msg.sender;
    require(_state != State.Setup, "Cryptowalkers aren't available yet");
    if (_state == State.Whitelist) {
      checkUserMintStatus(recipient, amountOfWalkers);
    }
    require(
      totalSupply().add(1) <= MAX_CRYPTOWALKERS,
      "Sorry, there is not that many Cryptowalkers left."
    );
    require(
      amountOfWalkers <= MAX_MINT,
      "You can only mint 10 Cryptowalkers at a time."
    );

    uint256 firstWalkerReceived = _nextTokenId;

    for (uint256 i = 0; i < amountOfWalkers; i++) {
      _safeMint(recipient, _nextTokenId);
      _nextTokenId = _nextTokenId.add(1);
      if (_state == State.Whitelist) {
        updateUserWhitelistStatus(recipient);
      }
    }

    return firstWalkerReceived;
  }

  function changeWalkerDetails(
    uint256 tokenId,
    string memory newName,
    string memory newDescription
  ) public payable {
    address owner = ownerOf(tokenId);
    require(msg.sender == owner, "This isn't your CryptoWalker");
    uint256 amountPaid = msg.value;
    if (_walkerDetailsChanged[tokenId]) {
      require(
        amountPaid == UPDATE_DETAILS_PRICE,
        "There is a price to tell your CryptoWalker's story again"
      );
    } else {
      require(
        amountPaid == 0,
        "First time telling your CryptoWalker's story is free!"
      );
      _walkerDetailsChanged[tokenId] = true;
    }
    emit WalkerDetailsChange(tokenId, newName, newDescription);
  }

  function setMintPricing(uint256 newPrice) public onlyOwner {
    WALKER_PRICE = newPrice;
  }

  function setDetailsPricing(uint256 newPrice) public onlyOwner {
    UPDATE_DETAILS_PRICE = newPrice;
  }

  function withdrawAllEth() public virtual onlyOwner {
    payable(msg.sender).sendValue(address(this).balance);
  }

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

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

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

File 2 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 4 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 5 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

File 11 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 15 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 16 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_name","type":"string"},{"indexed":false,"internalType":"string","name":"_description","type":"string"}],"name":"WalkerDetailsChange","type":"event"},{"inputs":[],"name":"MAX_CRYPTOWALKERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_CRYPTOWALKERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATE_DETAILS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WALKER_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_whitelistDetails","outputs":[{"internalType":"string","name":"whitelistType","type":"string"},{"internalType":"uint256","name":"amountToMint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whitelistUserStatus","outputs":[{"internalType":"uint256","name":"whitelistLevel","type":"uint256"},{"internalType":"uint256","name":"amountMinted","type":"uint256"},{"internalType":"bool","name":"limitReached","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userToWhitelist","type":"address"},{"internalType":"uint256","name":"whitelistDetailsIndex","type":"uint256"}],"name":"addUserToWhitelistByIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"usersToWhitelist","type":"address[]"},{"internalType":"uint256","name":"whitelistDetailsIndex","type":"uint256"}],"name":"addUsersToWhitelistByIndex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"},{"internalType":"string","name":"newDescription","type":"string"}],"name":"changeWalkerDetails","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amountToMint","type":"uint256"}],"name":"checkUserMintStatus","outputs":[],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reserveAddress","type":"address"},{"internalType":"uint256","name":"amountToReserve","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOfWalkers","type":"uint256"}],"name":"mintWalkers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setDetailsPricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStateToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenUriBase_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum Cryptowalkers.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405267011c37937e080000601655661c6bf5263400006017553480156200002857600080fd5b50604080518082018252600d81526c43727970746f77616c6b65727360981b60208083019182528351808501909452600784526657616c6b65727360c81b9084015281519192916200007d916000916200046c565b508051620000939060019060208401906200046c565b505050620000b0620000aa6200041660201b60201c565b6200041a565b6001600c8190556010805460ff1916905560135560408051606081019091526026808252620033a260208301398051620000f3916011916020909101906200046c565b5060408051808201909152600f81526e139bdd0815da1a5d195b1a5cdd1959608a1b602080830191825260008052600d9052905162000154917f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee916200046c565b506000808052600d60209081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ef919091556040805160608101909152602580825290916200337d908301396001600052600d60209081528151620001dd927ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c59201906200046c565b5060017ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c6556040805180820190915260118152702732ba3b3935902630b7321027bbb732b960791b60208281019182526002600052600d9052905162000265917f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249916200046c565b5060027f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24a5560408051808201909152600b81526a2bb434ba32bbb0b635b2b960a91b60208281019182526003600052600d90529051620002e7917f26b4a10d0f0b04925c23bd4480ee147c916e5e87a7d68206a533dad160ac81e2916200046c565b5060037f26b4a10d0f0b04925c23bd4480ee147c916e5e87a7d68206a533dad160ac81e3556040805180820190915260068152655a6f6d62696560d01b60208281019182526004600052600d9052905162000364917fafafe8948a4ed9d478b1e9a5780b119b5edd00ea7d07bc35bef7c814824eb94b916200046c565b5060047fafafe8948a4ed9d478b1e9a5780b119b5edd00ea7d07bc35bef7c814824eb94c55604080518082019091526006815265135d5d185b9d60d21b60208281019182526005600052600d90529051620003e1917fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd2149916200046c565b5060056000819052600d6020527fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd214a556200054f565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200047a9062000512565b90600052602060002090601f0160209004810192826200049e5760008555620004e9565b82601f10620004b957805160ff1916838001178555620004e9565b82800160010185558215620004e9579182015b82811115620004e9578251825591602001919060010190620004cc565b50620004f7929150620004fb565b5090565b5b80821115620004f75760008155600101620004fc565b6002810460018216806200052757607f821691505b602082108114156200054957634e487b7160e01b600052602260045260246000fd5b50919050565b612e1e806200055f6000396000f3fe6080604052600436106101e65760003560e01c8063844d5d5811610109578063844d5d581461046d57806384abd9751461048d578063882ef95a146104a25780638da5cb5b146104c25780638e825be0146104d757806395d89b41146104f7578063a22cb4651461050c578063b88d4fde1461052c578063c19d93fb1461054c578063c87b56dd1461056e578063cf63339d1461058e578063cf63add0146105ae578063d4ab07e7146105c3578063d547cfb7146105d8578063e0df5b6f146105ed578063e985e9c51461060d578063efd0c1ce1461062d578063f0292a0314610640578063f2fde38b14610655578063f7304fe814610675578063fe2b5a7414610695576101e6565b806301ffc9a7146101eb57806306fdde0314610221578063081812fc14610243578063095ea7b31461027057806315dbd91a1461029257806318160ddd146102a557806323af8827146102c757806323b872dd146102dc57806328c6a75b146102fc5780632f745c591461031c57806342842e0e1461033c57806348b3bf8c1461035c5780634f6ccce71461038b578063519af30e146103ab57806358475d07146103c05780636352211e146103d557806370a08231146103f5578063715018a614610415578063757dce2a1461042a57806383f9a28b14610458575b600080fd5b3480156101f757600080fd5b5061020b6102063660046121e4565b6106aa565b604051610218919061237e565b60405180910390f35b34801561022d57600080fd5b506102366106bd565b60405161021891906123b1565b34801561024f57600080fd5b5061026361025e36600461224e565b61074f565b604051610218919061232d565b34801561027c57600080fd5b5061029061028b366004612108565b61079b565b005b6102906102a0366004612266565b610833565b3480156102b157600080fd5b506102ba610920565b6040516102189190612c6d565b3480156102d357600080fd5b50610290610926565b3480156102e857600080fd5b506102906102f736600461201b565b61097c565b34801561030857600080fd5b5061029061031736600461224e565b6109b4565b34801561032857600080fd5b506102ba610337366004612108565b6109f8565b34801561034857600080fd5b5061029061035736600461201b565b610a4a565b34801561036857600080fd5b5061037c610377366004611fcf565b610a65565b60405161021893929190612c76565b34801561039757600080fd5b506102ba6103a636600461224e565b610a89565b3480156103b757600080fd5b50610290610ae4565b3480156103cc57600080fd5b506102ba610b2f565b3480156103e157600080fd5b506102636103f036600461224e565b610b35565b34801561040157600080fd5b506102ba610410366004611fcf565b610b6a565b34801561042157600080fd5b50610290610bae565b34801561043657600080fd5b5061044a61044536600461224e565b610bf7565b6040516102189291906123f2565b34801561046457600080fd5b506102ba610c9b565b34801561047957600080fd5b50610290610488366004612108565b610ca1565b34801561049957600080fd5b50610290610d29565b3480156104ae57600080fd5b506102906104bd36600461224e565b610d7b565b3480156104ce57600080fd5b50610263610dbf565b3480156104e357600080fd5b506102906104f2366004612108565b610dce565b34801561050357600080fd5b50610236610ed9565b34801561051857600080fd5b506102906105273660046120ce565b610ee8565b34801561053857600080fd5b50610290610547366004612056565b610fb6565b34801561055857600080fd5b50610561610ff5565b6040516102189190612389565b34801561057a57600080fd5b5061023661058936600461224e565b610ffe565b34801561059a57600080fd5b5061020b6105a9366004612131565b611038565b3480156105ba57600080fd5b506102ba6110da565b3480156105cf57600080fd5b506102ba6110e0565b3480156105e457600080fd5b506102366110e6565b3480156105f957600080fd5b5061029061060836600461221c565b6110f5565b34801561061957600080fd5b5061020b610628366004611fe9565b611147565b6102ba61063b36600461224e565b611175565b34801561064c57600080fd5b506102ba6112f1565b34801561066157600080fd5b50610290610670366004611fcf565b6112f6565b34801561068157600080fd5b5061020b610690366004612108565b611367565b3480156106a157600080fd5b506102906113de565b60006106b582611431565b90505b919050565b6060600080546106cc90612d26565b80601f01602080910402602001604051908101604052809291908181526020018280546106f890612d26565b80156107455780601f1061071a57610100808354040283529160200191610745565b820191906000526020600020905b81548152906001019060200180831161072857829003601f168201915b5050505050905090565b600061075a82611456565b61077f5760405162461bcd60e51b815260040161077690612951565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107a682610b35565b9050806001600160a01b0316836001600160a01b031614156107da5760405162461bcd60e51b815260040161077690612ac1565b806001600160a01b03166107ec611473565b6001600160a01b03161480610808575061080881610628611473565b6108245760405162461bcd60e51b8152600401610776906127ab565b61082e8383611477565b505050565b600061083e84610b35565b9050336001600160a01b038216146108685760405162461bcd60e51b815260040161077690612775565b6000848152600f6020526040902054349060ff16156108a75760175481146108a25760405162461bcd60e51b81526004016107769061299d565b6108df565b80156108c55760405162461bcd60e51b815260040161077690612b9f565b6000858152600f60205260409020805460ff191660011790555b847f1f5e6e729e45dc532ded192435a73526b50b44518b3006fe00651437f896022785856040516109119291906123c4565b60405180910390a25050505050565b60085490565b61092e611473565b6001600160a01b031661093f610dbf565b6001600160a01b0316146109655760405162461bcd60e51b8152600401610776906129f5565b601080546000919060ff19166001835b0217905550565b61098d610987611473565b826114e5565b6109a95760405162461bcd60e51b815260040161077690612b02565b61082e83838361156a565b6109bc611473565b6001600160a01b03166109cd610dbf565b6001600160a01b0316146109f35760405162461bcd60e51b8152600401610776906129f5565b601655565b6000610a0383610b6a565b8210610a215760405162461bcd60e51b81526004016107769061245e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61082e83838360405180602001604052806000815250610fb6565b600e6020526000908152604090208054600182015460029092015490919060ff1683565b6000610a93610920565b8210610ab15760405162461bcd60e51b815260040161077690612b53565b60088281548110610ad257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610aec611473565b6001600160a01b0316610afd610dbf565b6001600160a01b031614610b235760405162461bcd60e51b8152600401610776906129f5565b610b2d3347611697565b565b60165481565b6000818152600260205260408120546001600160a01b0316806106b55760405162461bcd60e51b815260040161077690612882565b60006001600160a01b038216610b925760405162461bcd60e51b815260040161077690612838565b506001600160a01b031660009081526003602052604090205490565b610bb6611473565b6001600160a01b0316610bc7610dbf565b6001600160a01b031614610bed5760405162461bcd60e51b8152600401610776906129f5565b610b2d6000611733565b600d60205260009081526040902080548190610c1290612d26565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3e90612d26565b8015610c8b5780601f10610c6057610100808354040283529160200191610c8b565b820191906000526020600020905b815481529060010190602001808311610c6e57829003601f168201915b5050505050908060010154905082565b60175481565b6001600160a01b0382166000908152600e602052604090206002015460ff1615610cdd5760405162461bcd60e51b815260040161077690612a73565b6001600160a01b0382166000908152600e60209081526040808320548352600d909152902060010154811115610d255760405162461bcd60e51b815260040161077690612577565b5050565b610d31611473565b6001600160a01b0316610d42610dbf565b6001600160a01b031614610d685760405162461bcd60e51b8152600401610776906129f5565b601080546001919060ff19168280610975565b610d83611473565b6001600160a01b0316610d94610dbf565b6001600160a01b031614610dba5760405162461bcd60e51b8152600401610776906129f5565b601755565b600b546001600160a01b031690565b610dd6611473565b6001600160a01b0316610de7610dbf565b6001600160a01b031614610e0d5760405162461bcd60e51b8152600401610776906129f5565b60155460ff1615610e305760405162461bcd60e51b815260040161077690612414565b60145461019090610e419083611785565b1115610e5f5760405162461bcd60e51b815260040161077690612803565b610e67610920565b610e72576013546012555b60005b81811015610eac57610e8983601254611798565b601254610e97906001611785565b60125580610ea481612d61565b915050610e75565b50601454610eba9082611785565b60148190556101901415610d25576015805460ff191660011790555050565b6060600180546106cc90612d26565b610ef0611473565b6001600160a01b0316826001600160a01b03161415610f215760405162461bcd60e51b815260040161077690612618565b8060056000610f2e611473565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f72611473565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610faa919061237e565b60405180910390a35050565b610fc7610fc1611473565b836114e5565b610fe35760405162461bcd60e51b815260040161077690612b02565b610fef848484846117b2565b50505050565b60105460ff1690565b60606110086110e6565b611011836117e5565b6040516020016110229291906122fb565b6040516020818303038152906040529050919050565b6000611042611473565b6001600160a01b0316611053610dbf565b6001600160a01b0316146110795760405162461bcd60e51b8152600401610776906129f5565b60005b83518110156110d05760008482815181106110a757634e487b7160e01b600052603260045260246000fd5b602002602001015190506110bb8185611367565b505080806110c890612d61565b91505061107c565b5060019392505050565b61271081565b61019081565b6060601180546106cc90612d26565b6110fd611473565b6001600160a01b031661110e610dbf565b6001600160a01b0316146111345760405162461bcd60e51b8152600401610776906129f5565b8051610d25906011906020840190611ea9565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006002600c54141561119a5760405162461bcd60e51b815260040161077690612bf4565b6002600c5533600060105460ff1660028111156111c757634e487b7160e01b600052602160045260246000fd5b14156111e55760405162461bcd60e51b815260040161077690612c2b565b600160105460ff16600281111561120c57634e487b7160e01b600052602160045260246000fd5b141561121c5761121c8184610ca1565b612710611232600161122c610920565b90611785565b11156112505760405162461bcd60e51b815260040161077690612900565b600a8311156112715760405162461bcd60e51b8152600401610776906126dc565b60125460005b848110156112e45761128b83601254611798565b601254611299906001611785565b601255600160105460ff1660028111156112c357634e487b7160e01b600052602160045260246000fd5b14156112d2576112d2836118ff565b806112dc81612d61565b915050611277565b506001600c559392505050565b600a81565b6112fe611473565b6001600160a01b031661130f610dbf565b6001600160a01b0316146113355760405162461bcd60e51b8152600401610776906129f5565b6001600160a01b03811661135b5760405162461bcd60e51b8152600401610776906124fb565b61136481611733565b50565b6000611371611473565b6001600160a01b0316611382610dbf565b6001600160a01b0316146113a85760405162461bcd60e51b8152600401610776906129f5565b506001600160a01b0382166000908152600e60205260408120828155600180820192909255600201805460ff1916905592915050565b6113e6611473565b6001600160a01b03166113f7610dbf565b6001600160a01b03161461141d5760405162461bcd60e51b8152600401610776906129f5565b601080546002919060ff1916600183610975565b60006001600160e01b0319821663780e9d6360e01b14806106b557506106b58261198b565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114ac82610b35565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114f082611456565b61150c5760405162461bcd60e51b815260040161077690612729565b600061151783610b35565b9050806001600160a01b0316846001600160a01b031614806115525750836001600160a01b03166115478461074f565b6001600160a01b0316145b8061156257506115628185611147565b949350505050565b826001600160a01b031661157d82610b35565b6001600160a01b0316146115a35760405162461bcd60e51b815260040161077690612a2a565b6001600160a01b0382166115c95760405162461bcd60e51b8152600401610776906125d4565b6115d48383836119cb565b6115df600082611477565b6001600160a01b0383166000908152600360205260408120805460019290611608908490612ce3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611636908490612cb7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156116b75760405162461bcd60e51b8152600401610776906126a5565b6000826001600160a01b0316826040516116d09061232a565b60006040518083038185875af1925050503d806000811461170d576040519150601f19603f3d011682016040523d82523d6000602084013e611712565b606091505b505090508061082e5760405162461bcd60e51b81526004016107769061264b565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006117918284612cb7565b9392505050565b610d258282604051806020016040528060008152506119d6565b6117bd84848461156a565b6117c984848484611a09565b610fef5760405162461bcd60e51b8152600401610776906124a9565b60608161180a57506040805180820190915260018152600360fc1b60208201526106b8565b8160005b8115611834578061181e81612d61565b915061182d9050600a83612ccf565b915061180e565b6000816001600160401b0381111561185c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611886576020820181803683370190505b5090505b84156115625761189b600183612ce3565b91506118a8600a86612d7c565b6118b3906030612cb7565b60f81b8183815181106118d657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506118f8600a86612ccf565b945061188a565b6001600160a01b0381166000908152600e6020526040902060019081015461192691611785565b6001600160a01b0382166000818152600e60208181526040808420600180820188905590548552600d835290842001549390925290521415611364576001600160a01b0381166000908152600e60205260409020600201805460ff1916600117905550565b60006001600160e01b031982166380ac58cd60e01b14806119bc57506001600160e01b03198216635b5e139f60e01b145b806106b557506106b582611b24565b61082e838383611b3d565b6119e08383611bc6565b6119ed6000848484611a09565b61082e5760405162461bcd60e51b8152600401610776906124a9565b6000611a1d846001600160a01b0316611ca5565b15611b1957836001600160a01b031663150b7a02611a39611473565b8786866040518563ffffffff1660e01b8152600401611a5b9493929190612341565b602060405180830381600087803b158015611a7557600080fd5b505af1925050508015611aa5575060408051601f3d908101601f19168201909252611aa291810190612200565b60015b611aff573d808015611ad3576040519150601f19603f3d011682016040523d82523d6000602084013e611ad8565b606091505b508051611af75760405162461bcd60e51b8152600401610776906124a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611562565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b611b4883838361082e565b6001600160a01b038316611b6457611b5f81611cab565b611b87565b816001600160a01b0316836001600160a01b031614611b8757611b878382611cef565b6001600160a01b038216611ba357611b9e81611d8c565b61082e565b826001600160a01b0316826001600160a01b03161461082e5761082e8282611e65565b6001600160a01b038216611bec5760405162461bcd60e51b8152600401610776906128cb565b611bf581611456565b15611c125760405162461bcd60e51b815260040161077690612541565b611c1e600083836119cb565b6001600160a01b0382166000908152600360205260408120805460019290611c47908490612cb7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611cfc84610b6a565b611d069190612ce3565b600083815260076020526040902054909150808214611d59576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611d9e90600190612ce3565b60008381526009602052604081205460088054939450909284908110611dd457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611e0357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e4957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611e7083610b6a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611eb590612d26565b90600052602060002090601f016020900481019282611ed75760008555611f1d565b82601f10611ef057805160ff1916838001178555611f1d565b82800160010185558215611f1d579182015b82811115611f1d578251825591602001919060010190611f02565b50611f29929150611f2d565b5090565b5b80821115611f295760008155600101611f2e565b60006001600160401b03831115611f5b57611f5b612dbc565b611f6e601f8401601f1916602001612c8e565b9050828152838383011115611f8257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146106b857600080fd5b600082601f830112611fc0578081fd5b61179183833560208501611f42565b600060208284031215611fe0578081fd5b61179182611f99565b60008060408385031215611ffb578081fd5b61200483611f99565b915061201260208401611f99565b90509250929050565b60008060006060848603121561202f578081fd5b61203884611f99565b925061204660208501611f99565b9150604084013590509250925092565b6000806000806080858703121561206b578081fd5b61207485611f99565b935061208260208601611f99565b92506040850135915060608501356001600160401b038111156120a3578182fd5b8501601f810187136120b3578182fd5b6120c287823560208401611f42565b91505092959194509250565b600080604083850312156120e0578182fd5b6120e983611f99565b9150602083013580151581146120fd578182fd5b809150509250929050565b6000806040838503121561211a578182fd5b61212383611f99565b946020939093013593505050565b60008060408385031215612143578182fd5b82356001600160401b0380821115612159578384fd5b818501915085601f83011261216c578384fd5b813560208282111561218057612180612dbc565b8082029250612190818401612c8e565b8281528181019085830185870184018b10156121aa578889fd5b8896505b848710156121d3576121bf81611f99565b8352600196909601959183019183016121ae565b509997909101359750505050505050565b6000602082840312156121f5578081fd5b813561179181612dd2565b600060208284031215612211578081fd5b815161179181612dd2565b60006020828403121561222d578081fd5b81356001600160401b03811115612242578182fd5b61156284828501611fb0565b60006020828403121561225f578081fd5b5035919050565b60008060006060848603121561227a578283fd5b8335925060208401356001600160401b0380821115612297578384fd5b6122a387838801611fb0565b935060408601359150808211156122b8578283fd5b506122c586828701611fb0565b9150509250925092565b600081518084526122e7816020860160208601612cfa565b601f01601f19169290920160200192915050565b6000835161230d818460208801612cfa565b835190830190612321818360208801612cfa565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612374908301846122cf565b9695505050505050565b901515815260200190565b60208101600383106123ab57634e487b7160e01b600052602160045260246000fd5b91905290565b60006020825261179160208301846122cf565b6000604082526123d760408301856122cf565b82810360208401526123e981856122cf565b95945050505050565b60006040825261240560408301856122cf565b90508260208301529392505050565b6020808252602a908201527f52657365727665206d696e74696e672068617320616c7265616479206265656e6040820152690818dbdb5c1b195d195960b21b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604082015260600190565b6020808252603d908201527f596f752063616e206f6e6c79206d696e742074686520616d6f756e7420616c6c60408201527f6f77656420666f7220796f75722077686974656c697374206c6576656c000000606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726040820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602d908201527f596f752063616e206f6e6c79206d696e742031302043727970746f77616c6b6560408201526c39399030ba1030903a34b6b29760991b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601c908201527b2a3434b99034b9b713ba103cb7bab91021b93cb83a37abb0b635b2b960211b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252818101527f526573657276696e6720746f6f206d616e792043727970746f77616c6b657273604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f536f7272792c207468657265206973206e6f742074686174206d616e792043726040820152703cb83a37bbb0b635b2b939903632b33a1760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f5468657265206973206120707269636520746f2074656c6c20796f75722043726040820152773cb83a37abb0b635b2b913b99039ba37b93c9030b3b0b4b760411b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602e908201527f57686974656c69737420616c6c6f636174696f6e20666f72207573657220686160408201526d1cc81899595b881c995858da195960921b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526035908201527f46697273742074696d652074656c6c696e6720796f75722043727970746f57616040820152746c6b657227732073746f727920697320667265652160581b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f43727970746f77616c6b657273206172656e277420617661696c61626c652079604082015261195d60f21b606082015260800190565b90815260200190565b92835260208301919091521515604082015260600190565b6040518181016001600160401b0381118282101715612caf57612caf612dbc565b604052919050565b60008219821115612cca57612cca612d90565b500190565b600082612cde57612cde612da6565b500490565b600082821015612cf557612cf5612d90565b500390565b60005b83811015612d15578181015183820152602001612cfd565b83811115610fef5750506000910152565b600281046001821680612d3a57607f821691505b60208210811415612d5b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d7557612d75612d90565b5060010190565b600082612d8b57612d8b612da6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461136457600080fdfea2646970667358221220a45ab71c065b50c6e3c2037e03ea8f8ee83e7f69fbb57583939708d70d3fe3e264736f6c63430008000033496e6665637465642057616c6b6572202f204d6574616b6579202f20506f6c795069786f73687474703a2f2f6170692e63727970746f77616c6b6572732e696f2f6170692f746f6b656e2f

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.