ETH Price: $3,071.57 (-1.45%)
Gas: 21 Gwei

Contract

0x011cAc7C112b5Df4000ef6bdEcF313c2F59DCE2f
 

Overview

ETH Balance

0.2 ETH

Eth Value

$614.31 (@ $3,071.57/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...159984272022-11-18 17:35:47514 days ago1668792947IN
0x011cAc7C...2F59DCE2f
0 ETH0.0003844815.84648779
Set Revealed146422682022-04-23 16:56:49724 days ago1650733009IN
0x011cAc7C...2F59DCE2f
0 ETH0.0012194342.39168174
Set Base URI146422652022-04-23 16:56:19724 days ago1650732979IN
0x011cAc7C...2F59DCE2f
0 ETH0.0016607240.96409363
Mint145890142022-04-15 9:03:39732 days ago1650013419IN
0x011cAc7C...2F59DCE2f
0.05 ETH0.0021914437.59491389
Mint145853532022-04-14 19:14:31732 days ago1649963671IN
0x011cAc7C...2F59DCE2f
0.05 ETH0.0051933789.09396785
Mint145852962022-04-14 18:59:57732 days ago1649962797IN
0x011cAc7C...2F59DCE2f
0.05 ETH0.003315956.88528289
Set Active145793202022-04-13 20:38:42733 days ago1649882322IN
0x011cAc7C...2F59DCE2f
0 ETH0.0014827751.54613122
Presale145789192022-04-13 19:10:23733 days ago1649877023IN
0x011cAc7C...2F59DCE2f
0.05 ETH0.0070125277.78988099
Set Presale Acti...145789072022-04-13 19:06:23733 days ago1649876783IN
0x011cAc7C...2F59DCE2f
0 ETH0.0020559679.17609072
Claim145776582022-04-13 14:34:16734 days ago1649860456IN
0x011cAc7C...2F59DCE2f
0 ETH0.0053342662.18829036
Claim145770992022-04-13 12:27:13734 days ago1649852833IN
0x011cAc7C...2F59DCE2f
0 ETH0.002795832.58441365
Set Price145769772022-04-13 12:00:06734 days ago1649851206IN
0x011cAc7C...2F59DCE2f
0 ETH0.0013863748.33276001
Set Max Tokens145769692022-04-13 11:58:17734 days ago1649851097IN
0x011cAc7C...2F59DCE2f
0 ETH0.0017114159.60020575
Set Presale Acti...145769652022-04-13 11:56:32734 days ago1649850992IN
0x011cAc7C...2F59DCE2f
0 ETH0.0014014148.71613822
Set Presale Merk...145769642022-04-13 11:56:04734 days ago1649850964IN
0x011cAc7C...2F59DCE2f
0 ETH0.0020365144.12627294
Set Claim Merkle...145769622022-04-13 11:55:26734 days ago1649850926IN
0x011cAc7C...2F59DCE2f
0 ETH0.0011506739.61001949
Claim145738092022-04-12 23:38:49734 days ago1649806729IN
0x011cAc7C...2F59DCE2f
0 ETH0.0037035243.16865251
Claim145725832022-04-12 19:13:19734 days ago1649790799IN
0x011cAc7C...2F59DCE2f
0 ETH0.0042858950.90857513
Set Approval For...145725392022-04-12 19:03:17734 days ago1649790197IN
0x011cAc7C...2F59DCE2f
0 ETH0.001726437.38838178
Claim145725092022-04-12 18:57:51734 days ago1649789871IN
0x011cAc7C...2F59DCE2f
0 ETH0.0040146346.8069337
Set Claim Active145718182022-04-12 16:31:13735 days ago1649781073IN
0x011cAc7C...2F59DCE2f
0 ETH0.001708859.40173907
Set Claim Merkle...145718112022-04-12 16:30:39735 days ago1649781039IN
0x011cAc7C...2F59DCE2f
0 ETH0.0036051278.13786907
Initial Mint143215242022-03-04 16:11:42774 days ago1646410302IN
0x011cAc7C...2F59DCE2f
0 ETH0.0182188992.9493019
0x61271060143214672022-03-04 15:59:10774 days ago1646409550IN
 Create: AvoFrens
0 ETH0.1586483354.46981148

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AvoFrens

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

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

/* 
                 __  _  _  _____    ____  ____  ____  _  _  ___ 
                /__\( \/ )(  _  )  ( ___)(  _ \( ___)( \( )/ __)
               /(__)\\  /  )(_)(    )__)  )   / )__)  )  ( \__ \
              (__)(__)\/  (_____)  (__)  (_)\_)(____)(_)\_)(___/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&#################&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@&&########################&&@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@&############################&@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@&##############################&@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@&%&&&&&&&%%#############%&&&&%&#####&@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@&%###&########&########%%#########&#####&@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@&####&########&#########&#########&###&&@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@&&&&&&&&&&&&&&&&%#####%%%&&&&&/(((((&&@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@&&(((((,,,,,,,,,,,,,,,,,,,,,,,,((((*&&*@@@@@@@@@@@@@@@@@@@@
@@@&&@@@@@@@@@@@@@@@@&&((((,,,,,,%%%,,,,,,,,%%%%,,,,,(((**&&**@@@@@@@@@@@@@@@@@@
@&&&&&&&@@@@@@@@@@@@&&#((((,,,,,%%%%%,,,,,,,,,,%%,,,,,((((&**@@@@@@@@@@@@@@@@@@@
@@@&&@@@@@@@@@@@@@@@&&((((/,,,,,,,,,,,,,,,,,,,,,,,,,,,((((&&&@@@@@@@@@@@@@@@@@@@
@@@&&@@@@@@@@@@@@@@&&&((((,,,,,,,,,%%,,,,,,,%%,,,,,,,,,((((&&@@@@@@@@@@@@@@@@@@@
@@@&&&@@@@@@@@@@@@@&&((((/,,,,,,,,,,,%%%%%%%,,,,,,,,,,,((((&&&@@@@@@@@@@@@@@@@@@
@@@@&&@@@@@@@@@@@@&&(((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((((&&@@@@@@@@@@@@@@@@@@
@@@@@&&&&@@@@@@@@&&#((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(((((&&&&@@@@@@@@@@@@@@@
@@@@@@@@@@@&&&&&&&%((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((((#&&@@&&&&&@@@@@@@@@
@@@@@@@@@@@@@@@&&(((((,,,,,,,,,,,,,,,&&&&&&%,,,,,,,,,,,,,,(((((&&@@@@@@&&&@@@@@@
@@@@@@@@@@@@@@&&(((((,,,,,,,,,,,&&&&&&&&&&&&&&&&&,,,,,,,,,,(((((&&@@@@@@@&&&@@@@
@@@@@@@@@@@@@&&(((((,,,,,,,,,#&&&&&&&&&&&&&&&&&&&&&,,,,,,,,,(((((&&@@@@@@@&&&@@@
@@@@@@@@@@@@&&#((((,,,,,,,,,&&&&&&&&&&&&&&&&&&&&&&&&&,,,,,,,,(((((&&@@@@@@@&&@@@
@@@@@@@@@@@@&&(((((,,,,,,,,%&&&&&&&&&&&&&&&&&&&&&&&&&#,,,,,,,,(((((&&@@@@@@@&&@@
@@@@@@@@@@@&&%((((,,,,,,,,(&&&&&&&&&&&&&&&&&&&&&&&&&&&,,,,,,,,,((((&&@@@@@@@&&&@
@@@@@@@@@@@&&(((((,,,,,,,,,&&&&&&&&&&&&&&&&&&&&&&&&&&&,,,,,,,,,((((%&&@@@@&&&&&&
@@@@@@@@@@@&&(((((,,,,,,,,,#&&&&&&&&&&&&&&&&&&&&&&&&&,,,,,,,,,,((((#&&@@@@&&&&@&
@@@@@@@@@@@&&(((((*,,,,,,,,,#&&&&&&&&&&&&&&&&&&&&&&&,,,,,,,,,,,((((&&&@@@@@@@@@@
@@@@@@@@@@@@&&(((((,,,,,,,,,,,#&&&&&&&&&&&&&&&&&&&,,,,,,,,,,,,(((((&&@@@@@@@@@@@
@@@@@@@@@@@@&&&(((((,,,,,,,,,,,,,##&&&&&&&&&&&#,,,,,,,,,,,,,*(((((&&@@@@@@@@@@@@
@@@@@@@@@@@@@@&&#(((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,/(((((%&&@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@&&&((((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(((((((&&&@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@&&&&(((((((((/,,,,,,,,,,,,,,,,,/(((((((((%&&&@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@&&&&&#((((((((((((((((((((((((((((&&&&&@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@&&&&&&&&&#((((((((#&&&&&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@

 */

pragma solidity ^0.8.9;

import './ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

contract AvoFrens is ERC721, ReentrancyGuard, Ownable {
  using Strings for uint256;

  uint256 private constant MAX_TOKENS_PURCHASE = 16;
  uint256 private constant MAX_TOKENS_PRESALE = 16;
  uint256 private constant TOKENS_FOR_ONE_FREE = 8;
  uint256 private constant INITIAL_TOKENS = 6;

  // Maximum amount of tokens available
  uint256 public maxTokens = 10000;

  // Amount of ETH required per mint
  uint256 public price  = 75000000000000000; // 0.075 ETH;

  // Contract to recieve ETH raised in sales
  address public vault = 0x0Efa349d9A0b6b25651a1f1Bed9FeC5B0dc0F2F0;

  // Control for public sale
  bool public isRevealed = false;

  // Control for public sale
  bool public isActive = false;

  // Control for claim process
  bool public isClaimActive = false;

  // Control for presale
  bool public isPresaleActive = false;

  // Used for verification that an address is included in claim process
  bytes32 public claimMerkleRoot;

  // Used for verification that an address is included in presale
  bytes32 public presaleMerkleRoot;

  // Reference to image and metadata storage
  string private _baseTokenURI = "https://www.avofrens.com/nft/prereveal/";

  // Storage of addresses that have minted with the `claim()` function
  mapping(address => bool) private claimParticipants;

  // Storage of addresses that have minted with the `presale()` function
  mapping(address => bool) private presaleParticipants;

  // Constructor
  constructor() ERC721("Avo Frens", "AVF") {
  }

  // Override of `_baseURI()` that returns _baseTokenURI
  function _baseURI() internal view virtual override returns (string memory) {
    return _baseTokenURI;
  }

 // Sets `_baseTokenURI` to be returned by `_baseURI()`
  function setBaseURI(string memory baseURI) public onlyOwner {
    _baseTokenURI = baseURI;
  }

  // Sets `isRevealed` to activate specific `tokenURI()`
  function setRevealed(bool _isRevealed) external onlyOwner {
    isRevealed = _isRevealed;
  }

  // Are the tokens revealed
  function _revealed() internal view virtual override returns (bool) {
    return isRevealed;
  }

  // Sets `isActive` to turn on/off minting in `mint()`
  function setActive(bool _isActive) external onlyOwner {
    isActive = _isActive;
  }

  // Sets `isClaimActive` to turn on/off minting in `claim()`
  function setClaimActive(bool _isClaimActive) external onlyOwner {
    isClaimActive = _isClaimActive;
  }

  // Sets `claimMerkleRoot` to be used in `presale()`
  function setClaimMerkleRoot(bytes32 _claimMerkleRoot) external onlyOwner {
    claimMerkleRoot = _claimMerkleRoot;
  }

  // Sets `isPresaleActive` to turn on/off minting in `presale()`
  function setPresaleActive(bool _isPresaleActive) external onlyOwner {
    isPresaleActive = _isPresaleActive;
  }

  // Sets `presaleMerkleRoot` to be used in `presale()`
  function setPresaleMerkleRoot(bytes32 _presaleMerkleRoot) external onlyOwner {
    presaleMerkleRoot = _presaleMerkleRoot;
  }

  // Sets `maxTokens`
  function setMaxTokens(uint256 _maxTokens) public onlyOwner {
    maxTokens = _maxTokens;
  }

  // Sets `price` to be used in `presale()` and `mint()`(called on deployment)
  function setPrice(uint256 _price) public onlyOwner {
    price = _price;
  }

  // Sets `vault` to recieve ETH from sales and used within `withdraw()`
  function setVault(address _vault) external onlyOwner {
    vault = _vault;
  }

  // Minting function used in the claim process (Max 1 per wallet)
  function claim(bytes32[] calldata _merkleProof) external {
    uint256 supply = totalSupply();
    require(isClaimActive, 'Not Active');
    require(supply < maxTokens, 'Supply Denied');
    require(!claimParticipants[_msgSender()], 'Mint Already Claimed');

    bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
    require(MerkleProof.verify(_merkleProof, claimMerkleRoot, leaf), 'Proof Invalid');

    _safeMint(_msgSender(), supply + 1);

    claimParticipants[_msgSender()] = true;
  }

  // Minting function used in the presale
  function presale(bytes32[] calldata _merkleProof, uint256 _amount) external payable {
    uint256 supply = totalSupply();

    require(isPresaleActive, 'Not Active');
    require(_amount <= MAX_TOKENS_PRESALE, 'Amount Denied');
    require(supply + _amount <= maxTokens, 'Supply Denied');
    require(!presaleParticipants[_msgSender()], 'Presale Already Claimed');
    require(msg.value >= price * _amount, 'Ether Amount Denied');

    bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
    require(MerkleProof.verify(_merkleProof, presaleMerkleRoot, leaf), 'Proof Invalid');

    _amount = _amount + _amount / TOKENS_FOR_ONE_FREE;
    for(uint256 i=1; i <= _amount; i++){
      _safeMint(_msgSender(), supply + i );
    }

    presaleParticipants[_msgSender()] = true;
  }

  // Minting function used in the public sale
  function mint(uint256 _amount) external payable {
    uint256 supply = totalSupply();

    require(isActive, 'Not Active');
    require(_amount <= MAX_TOKENS_PURCHASE, 'Amount Denied');
    require(supply + _amount <= maxTokens, 'Supply Denied');
    require(msg.value >= price * _amount, 'Ether Amount Denied');
    
    _amount = _amount + _amount / TOKENS_FOR_ONE_FREE;
    for(uint256 i=1; i <= _amount; i++){
      _safeMint(_msgSender(), supply + i);
    }
  }

  // Initial minting for owner
  function initialMint() external onlyOwner {
    uint256 supply = totalSupply();
    for(uint256 i=1; i <= INITIAL_TOKENS; i++){
      _safeMint(_msgSender(), supply + i);
    }
  }

  // Send balance of contract to address referenced in `vault`
  function withdrawToVault() external nonReentrant onlyOwner {
    require(vault != address(0), 'Vault Invalid');
    (bool success, ) = vault.call{value: address(this).balance}("");
    require(success, "Failed to send to vault.");
  }

  // Send amount to address referenced in `vault`
  function withdrawAmtToVault(uint256 amount) external nonReentrant onlyOwner {
    require(vault != address(0), 'Vault Invalid');
    (bool success, ) = vault.call{value: amount}("");
    require(success, "Failed to send to vault.");
  }
  
  // Send balance of contract to owner wallet
  function withdrawToOwner() external nonReentrant onlyOwner {
    require(vault != address(0), 'Vault Invalid');
    (bool success, ) = _msgSender().call{value: address(this).balance}("");
    require(success, "Failed to send to vault.");
  }

  // Send amount to address referenced in `vault`
  function withdrawAmtToOwner(uint256 amount) external nonReentrant onlyOwner {
    require(vault != address(0), 'Vault Invalid');
    (bool success, ) = _msgSender().call{value: amount}("");
    require(success, "Failed to send to vault.");
  }
}

File 3 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
  using Address for address;
  using Strings for uint256;

  string private _name;
  string private _symbol;

  address[] internal _owners;

  mapping(uint256 => address) private _tokenApprovals;
  mapping(address => mapping(address => bool)) private _operatorApprovals;

  // 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_;
  }

  // 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);
  }


  // See {IERC721-balanceOf}.
  function balanceOf(address owner) public view virtual override returns (uint) {
    require(owner != address(0), "ERC721: balance query for the zero address");

    uint count;
    for(uint i; i < _owners.length; ++i){
      if(owner == _owners[i]) ++count;
    }
    return count;
  }


  // See {IERC721-ownerOf}.
  function ownerOf(uint256 tokenId) public view virtual override returns (address) {
    require(tokenId >= 1, "Token ID too low");
    require(tokenId <= totalSupply(), "Token ID too high");
    address owner = _owners[tokenId-1];
    require(owner != address(0), "ERC721: owner query for nonexistent token");
    return owner;
  }

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

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

  // Base URI for computing {tokenURI}.
  function _baseURI() internal view virtual returns (string memory) {
    return "";
  }

  // Are the tokens revealed
  function _revealed() internal view virtual returns (bool) {
    return false;
  }

  // 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();
    if(!_revealed()){
      return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, "prereveal.json")) : "";
    }else{
      return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : "";
    }
  }
  // Returns totalSupply
 function totalSupply() public view virtual returns (uint256) {
    return _owners.length;
  }

  // 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);
  }

  // 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];
  }

  // 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);
  }

  // See {IERC721-isApprovedForAll}.
  function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
    /** @dev Opensea whitelisting */
    if(operator == address(0xa5409ec958C83C3f309868babACA7c86DCB077c1)){
        return true;
    }
    return _operatorApprovals[owner][operator];
  }
  // See {IERC721-transferFrom}.
  function transferFrom(address from, address to, uint256 tokenId) public virtual override {
    require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
    _transfer(from, to, tokenId);
  }

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

  // 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);
  }


  // Safely transfers `tokenId` token from `from` to `to`.
  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");
  }

  // Returns whether `tokenId` exists.
  function _exists(uint256 tokenId) internal view virtual returns (bool) {
    return tokenId >= 1 && tokenId <= _owners.length && _owners[tokenId-1] != address(0);
  }

  // Returns whether `spender` is allowed to manage `tokenId`.
  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));
  }

  // Safely mints `tokenId` and transfers it to `to`.
  function _safeMint(address to, uint256 tokenId) internal virtual {
    _safeMint(to, tokenId, "");
  }

  // Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter.
  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");
  }

  // Mints `tokenId` and transfers it to `to`.
  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);
    _owners.push(to);

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

  // Destroys `tokenId`.
  function _burn(uint256 tokenId) internal virtual {
    address owner = ERC721.ownerOf(tokenId);

    _beforeTokenTransfer(owner, address(0), tokenId);
    _approve(address(0), tokenId);
    _owners[tokenId-1] = address(0);

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

  // Transfers `tokenId` from `from` to `to`. (No restrictions on sender)
  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);
    _approve(address(0), tokenId);
    _owners[tokenId-1] = to;

    emit Transfer(from, to, tokenId);
  }

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

  // Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
  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;
    }
  }

 // Hook that is called before any token transfer.
 function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"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":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bool","name":"_isActive","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isClaimActive","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_claimMerkleRoot","type":"bytes32"}],"name":"setClaimMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokens","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPresaleActive","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_presaleMerkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmtToOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmtToVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToVault","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61271060075567010a741a46278000600855600980546001600160c01b031916730efa349d9a0b6b25651a1f1bed9fec5b0dc0f2f017905560e06040526027608081815290620031b660a03980516200006191600c916020909101906200013d565b503480156200006f57600080fd5b50604080518082018252600981526841766f204672656e7360b81b60208083019182528351808501909452600384526220ab2360e91b908401528151919291620000bc916000916200013d565b508051620000d29060019060208401906200013d565b5050600160055550620000e533620000eb565b62000220565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014b90620001e3565b90600052602060002090601f0160209004810192826200016f5760008555620001ba565b82601f106200018a57805160ff1916838001178555620001ba565b82800160010185558215620001ba579182015b82811115620001ba5782518255916020019190600101906200019d565b50620001c8929150620001cc565b5090565b5b80821115620001c85760008155600101620001cd565b600181811c90821680620001f857607f821691505b602082108114156200021a57634e487b7160e01b600052602260045260246000fd5b50919050565b612f8680620002306000396000f3fe6080604052600436106102a75760003560e01c8063715018a611610164578063a22cb465116100c6578063e0a808531161008a578063f2fde38b11610064578063f2fde38b14610785578063fbfa77cf146107a5578063fd1e2962146107c557600080fd5b8063e0a808531461072f578063e83157421461074f578063e985e9c51461076557600080fd5b8063a22cb4651461068f578063acec338a146106af578063b391c508146106cf578063b88d4fde146106ef578063c87b56dd1461070f57600080fd5b806391b7f5ed116101285780639fc5ce2a116101025780639fc5ce2a14610651578063a035b1fe14610666578063a0712d681461067c57600080fd5b806391b7f5ed1461060657806395d89b41146106265780639c4dab521461063b57600080fd5b8063715018a61461057d57806373417b09146105925780637fc27803146105b257806384f22721146105d35780638da5cb5b146105e857600080fd5b80633cb40e161161020d57806355f804b3116101d15780636352211e116101ab5780636352211e1461051d5780636817031b1461053d57806370a082311461055d57600080fd5b806355f804b3146104bc57806360d938dc146104dc57806362ce7094146104fd57600080fd5b80633cb40e16146104265780633f8121a21461043b57806342842e0e1461045b5780634f9728671461047b57806354214f691461049b57600080fd5b806318160ddd1161026f57806323b872dd1161024957806323b872dd146103d357806327ed3dce146103f357806328d7b2761461040657600080fd5b806318160ddd1461037d57806322212e2b1461039c57806322f3e2d4146103b257600080fd5b806301ffc9a7146102ac57806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806311e776fe1461035d575b600080fd5b3480156102b857600080fd5b506102cc6102c736600461295e565b6107e5565b60405190151581526020015b60405180910390f35b3480156102ed57600080fd5b506102f6610837565b6040516102d891906129d3565b34801561030f57600080fd5b5061032361031e3660046129e6565b6108c9565b6040516001600160a01b0390911681526020016102d8565b34801561034757600080fd5b5061035b610356366004612a1b565b610956565b005b34801561036957600080fd5b5061035b6103783660046129e6565b610a6c565b34801561038957600080fd5b506002545b6040519081526020016102d8565b3480156103a857600080fd5b5061038e600b5481565b3480156103be57600080fd5b506009546102cc90600160a81b900460ff1681565b3480156103df57600080fd5b5061035b6103ee366004612a45565b610ab9565b61035b610401366004612acd565b610b34565b34801561041257600080fd5b5061035b6104213660046129e6565b610de5565b34801561043257600080fd5b5061035b610e32565b34801561044757600080fd5b5061035b610456366004612b29565b610fc6565b34801561046757600080fd5b5061035b610476366004612a45565b61102c565b34801561048757600080fd5b5061035b6104963660046129e6565b611047565b3480156104a757600080fd5b506009546102cc90600160a01b900460ff1681565b3480156104c857600080fd5b5061035b6104d7366004612bd0565b6111e1565b3480156104e857600080fd5b506009546102cc90600160b81b900460ff1681565b34801561050957600080fd5b5061035b6105183660046129e6565b611240565b34801561052957600080fd5b506103236105383660046129e6565b61133d565b34801561054957600080fd5b5061035b610558366004612c19565b611477565b34801561056957600080fd5b5061038e610578366004612c19565b6114e1565b34801561058957600080fd5b5061035b6115af565b34801561059e57600080fd5b5061035b6105ad366004612b29565b611603565b3480156105be57600080fd5b506009546102cc90600160b01b900460ff1681565b3480156105df57600080fd5b5061035b611669565b3480156105f457600080fd5b506006546001600160a01b0316610323565b34801561061257600080fd5b5061035b6106213660046129e6565b61176b565b34801561063257600080fd5b506102f66117b8565b34801561064757600080fd5b5061038e600a5481565b34801561065d57600080fd5b5061035b6117c7565b34801561067257600080fd5b5061038e60085481565b61035b61068a3660046129e6565b611848565b34801561069b57600080fd5b5061035b6106aa366004612c34565b6119b7565b3480156106bb57600080fd5b5061035b6106ca366004612b29565b611a7c565b3480156106db57600080fd5b5061035b6106ea366004612c67565b611ae2565b3480156106fb57600080fd5b5061035b61070a366004612ca9565b611cbc565b34801561071b57600080fd5b506102f661072a3660046129e6565b611d3e565b34801561073b57600080fd5b5061035b61074a366004612b29565b611e5e565b34801561075b57600080fd5b5061038e60075481565b34801561077157600080fd5b506102cc610780366004612d25565b611ec4565b34801561079157600080fd5b5061035b6107a0366004612c19565b611f22565b3480156107b157600080fd5b50600954610323906001600160a01b031681565b3480156107d157600080fd5b5061035b6107e03660046129e6565b611fdb565b60006001600160e01b031982166380ac58cd60e01b148061081657506001600160e01b03198216635b5e139f60e01b145b8061083157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461084690612d4f565b80601f016020809104026020016040519081016040528092919081815260200182805461087290612d4f565b80156108bf5780601f10610894576101008083540402835291602001916108bf565b820191906000526020600020905b8154815290600101906020018083116108a257829003601f168201915b5050505050905090565b60006108d482612028565b61093a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006109618261133d565b9050806001600160a01b0316836001600160a01b031614156109cf5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610931565b336001600160a01b03821614806109eb57506109eb8133611ec4565b610a5d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610931565b610a678383612080565b505050565b6006546001600160a01b03163314610ab45760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600755565b610ac333826120ee565b610b295760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610931565b610a678383836121b8565b6000610b3f60025490565b600954909150600160b81b900460ff16610b885760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b6010821115610bc95760405162461bcd60e51b815260206004820152600d60248201526c105b5bdd5b9d0811195b9a5959609a1b6044820152606401610931565b600754610bd68383612d9a565b1115610c145760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b336000908152600e602052604090205460ff1615610c745760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520416c726561647920436c61696d65640000000000000000006044820152606401610931565b81600854610c829190612db2565b341015610cc75760405162461bcd60e51b8152602060048201526013602482015272115d1a195c88105b5bdd5b9d0811195b9a5959606a1b6044820152606401610931565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050612318565b610d7d5760405162461bcd60e51b815260206004820152600d60248201526c141c9bdbd988125b9d985b1a59609a1b6044820152606401610931565b610d88600884612de7565b610d929084612d9a565b925060015b838111610dc357610db133610dac8386612d9a565b61232e565b80610dbb81612dfb565b915050610d97565b5050336000908152600e60205260409020805460ff1916600117905550505050565b6006546001600160a01b03163314610e2d5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600b55565b60026005541415610e855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b03163314610ed25760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b0316610f1a5760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6000336001600160a01b0316476040515b60006040518083038185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610fbe5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f207661756c742e00000000000000006044820152606401610931565b506001600555565b6006546001600160a01b0316331461100e5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160b81b0260ff60b81b19909216919091179055565b610a6783838360405180602001604052806000815250611cbc565b6002600554141561109a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146110e75760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b031661112f5760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6009546040516000916001600160a01b03169083905b60006040518083038185875af1925050503d8060008114611182576040519150601f19603f3d011682016040523d82523d6000602084013e611187565b606091505b50509050806111d85760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f207661756c742e00000000000000006044820152606401610931565b50506001600555565b6006546001600160a01b031633146112295760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b805161123c90600c9060208401906128af565b5050565b600260055414156112935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146112e05760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b03166113285760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6000336001600160a01b031682604051611145565b600060018210156113905760405162461bcd60e51b815260206004820152601060248201527f546f6b656e20494420746f6f206c6f77000000000000000000000000000000006044820152606401610931565b6002548211156113e25760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20494420746f6f20686967680000000000000000000000000000006044820152606401610931565b600060026113f1600185612e16565b8154811061140157611401612e2d565b6000918252602090912001546001600160a01b03169050806108315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610931565b6006546001600160a01b031633146114bf5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661154c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610931565b6000805b6002548110156115a8576002818154811061156d5761156d612e2d565b6000918252602090912001546001600160a01b03858116911614156115985761159582612dfb565b91505b6115a181612dfb565b9050611550565b5092915050565b6006546001600160a01b031633146115f75760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6116016000612348565b565b6006546001600160a01b0316331461164b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160b01b0260ff60b01b19909216919091179055565b600260055414156116bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146117095760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b03166117515760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6009546040516000916001600160a01b0316904790610f2b565b6006546001600160a01b031633146117b35760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600855565b60606001805461084690612d4f565b6006546001600160a01b0316331461180f5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600061181a60025490565b905060015b6006811161123c57611836335b610dac8385612d9a565b8061184081612dfb565b91505061181f565b600061185360025490565b600954909150600160a81b900460ff1661189c5760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b60108211156118dd5760405162461bcd60e51b815260206004820152600d60248201526c105b5bdd5b9d0811195b9a5959609a1b6044820152606401610931565b6007546118ea8383612d9a565b11156119285760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b816008546119369190612db2565b34101561197b5760405162461bcd60e51b8152602060048201526013602482015272115d1a195c88105b5bdd5b9d0811195b9a5959606a1b6044820152606401610931565b611986600883612de7565b6119909083612d9a565b915060015b828111610a67576119a53361182c565b806119af81612dfb565b915050611995565b6001600160a01b038216331415611a105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610931565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611ac45760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160a81b0260ff60a81b19909216919091179055565b6000611aed60025490565b600954909150600160b01b900460ff16611b365760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b6007548110611b775760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b336000908152600d602052604090205460ff1615611bd75760405162461bcd60e51b815260206004820152601460248201527f4d696e7420416c726561647920436c61696d65640000000000000000000000006044820152606401610931565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611c5184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050612318565b611c8d5760405162461bcd60e51b815260206004820152600d60248201526c141c9bdbd988125b9d985b1a59609a1b6044820152606401610931565b611c9c33610dac846001612d9a565b5050336000908152600d60205260409020805460ff191660011790555050565b611cc633836120ee565b611d2c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610931565b611d388484848461239a565b50505050565b6060611d4982612028565b611dbb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610931565b6000611dc5612418565b600954909150600160a01b900460ff16611e1f576000815111611df75760405180602001604052806000815250611e18565b80604051602001611e089190612e43565b6040516020818303038152906040525b9392505050565b6000815111611e3d5760405180602001604052806000815250611e18565b80611e4784612427565b604051602001611e08929190612e84565b50919050565b6006546001600160a01b03163314611ea65760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160a01b03821673a5409ec958c83c3f309868babaca7c86dcb077c11415611ef357506001610831565b506001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314611f6a5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6001600160a01b038116611fcf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610931565b611fd881612348565b50565b6006546001600160a01b031633146120235760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600a55565b60006001821015801561203d57506002548211155b8015610831575060006002612053600185612e16565b8154811061206357612063612e2d565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120b58261133d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006120f982612028565b61215a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610931565b60006121658361133d565b9050806001600160a01b0316846001600160a01b031614806121a05750836001600160a01b0316612195846108c9565b6001600160a01b0316145b806121b057506121b08185611ec4565b949350505050565b826001600160a01b03166121cb8261133d565b6001600160a01b0316146122335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610931565b6001600160a01b0382166122955760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610931565b6122a0600082612080565b8160026122ae600184612e16565b815481106122be576122be612e2d565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600082612325858461253d565b14949350505050565b61123c8282604051806020016040528060008152506125b1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123a58484846121b8565b6123b18484848461262f565b611d385760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b6060600c805461084690612d4f565b60608161244b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612475578061245f81612dfb565b915061246e9050600a83612de7565b915061244f565b60008167ffffffffffffffff81111561249057612490612b44565b6040519080825280601f01601f1916602001820160405280156124ba576020820181803683370190505b5090505b84156121b0576124cf600183612e16565b91506124dc600a86612ec3565b6124e7906030612d9a565b60f81b8183815181106124fc576124fc612e2d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612536600a86612de7565b94506124be565b600081815b84518110156125a957600085828151811061255f5761255f612e2d565b602002602001015190508083116125855760008381526020829052604090209250612596565b600081815260208490526040902092505b50806125a181612dfb565b915050612542565b509392505050565b6125bb8383612787565b6125c8600084848461262f565b610a675760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b60006001600160a01b0384163b1561277c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612673903390899088908890600401612ed7565b602060405180830381600087803b15801561268d57600080fd5b505af19250505080156126bd575060408051601f3d908101601f191682019092526126ba91810190612f13565b60015b612762573d8080156126eb576040519150601f19603f3d011682016040523d82523d6000602084013e6126f0565b606091505b50805161275a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121b0565b506001949350505050565b6001600160a01b0382166127dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610931565b6127e681612028565b156128335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610931565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546128bb90612d4f565b90600052602060002090601f0160209004810192826128dd5760008555612923565b82601f106128f657805160ff1916838001178555612923565b82800160010185558215612923579182015b82811115612923578251825591602001919060010190612908565b5061292f929150612933565b5090565b5b8082111561292f5760008155600101612934565b6001600160e01b031981168114611fd857600080fd5b60006020828403121561297057600080fd5b8135611e1881612948565b60005b8381101561299657818101518382015260200161297e565b83811115611d385750506000910152565b600081518084526129bf81602086016020860161297b565b601f01601f19169290920160200192915050565b602081526000611e1860208301846129a7565b6000602082840312156129f857600080fd5b5035919050565b80356001600160a01b0381168114612a1657600080fd5b919050565b60008060408385031215612a2e57600080fd5b612a37836129ff565b946020939093013593505050565b600080600060608486031215612a5a57600080fd5b612a63846129ff565b9250612a71602085016129ff565b9150604084013590509250925092565b60008083601f840112612a9357600080fd5b50813567ffffffffffffffff811115612aab57600080fd5b6020830191508360208260051b8501011115612ac657600080fd5b9250929050565b600080600060408486031215612ae257600080fd5b833567ffffffffffffffff811115612af957600080fd5b612b0586828701612a81565b909790965060209590950135949350505050565b80358015158114612a1657600080fd5b600060208284031215612b3b57600080fd5b611e1882612b19565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b7557612b75612b44565b604051601f8501601f19908116603f01168101908282118183101715612b9d57612b9d612b44565b81604052809350858152868686011115612bb657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612be257600080fd5b813567ffffffffffffffff811115612bf957600080fd5b8201601f81018413612c0a57600080fd5b6121b084823560208401612b5a565b600060208284031215612c2b57600080fd5b611e18826129ff565b60008060408385031215612c4757600080fd5b612c50836129ff565b9150612c5e60208401612b19565b90509250929050565b60008060208385031215612c7a57600080fd5b823567ffffffffffffffff811115612c9157600080fd5b612c9d85828601612a81565b90969095509350505050565b60008060008060808587031215612cbf57600080fd5b612cc8856129ff565b9350612cd6602086016129ff565b925060408501359150606085013567ffffffffffffffff811115612cf957600080fd5b8501601f81018713612d0a57600080fd5b612d1987823560208401612b5a565b91505092959194509250565b60008060408385031215612d3857600080fd5b612d41836129ff565b9150612c5e602084016129ff565b600181811c90821680612d6357607f821691505b60208210811415611e5857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612dad57612dad612d84565b500190565b6000816000190483118215151615612dcc57612dcc612d84565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612df657612df6612dd1565b500490565b6000600019821415612e0f57612e0f612d84565b5060010190565b600082821015612e2857612e28612d84565b500390565b634e487b7160e01b600052603260045260246000fd5b60008251612e5581846020870161297b565b7f70726572657665616c2e6a736f6e000000000000000000000000000000000000920191825250600e01919050565b60008351612e9681846020880161297b565b835190830190612eaa81836020880161297b565b64173539b7b760d91b9101908152600501949350505050565b600082612ed257612ed2612dd1565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f0960808301846129a7565b9695505050505050565b600060208284031215612f2557600080fd5b8151611e188161294856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203609a68fe3032450da136e92b2a5748abd37e709d67d8384bb803b5daac8a6f264736f6c6343000809003368747470733a2f2f7777772e61766f6672656e732e636f6d2f6e66742f70726572657665616c2f

Deployed Bytecode

0x6080604052600436106102a75760003560e01c8063715018a611610164578063a22cb465116100c6578063e0a808531161008a578063f2fde38b11610064578063f2fde38b14610785578063fbfa77cf146107a5578063fd1e2962146107c557600080fd5b8063e0a808531461072f578063e83157421461074f578063e985e9c51461076557600080fd5b8063a22cb4651461068f578063acec338a146106af578063b391c508146106cf578063b88d4fde146106ef578063c87b56dd1461070f57600080fd5b806391b7f5ed116101285780639fc5ce2a116101025780639fc5ce2a14610651578063a035b1fe14610666578063a0712d681461067c57600080fd5b806391b7f5ed1461060657806395d89b41146106265780639c4dab521461063b57600080fd5b8063715018a61461057d57806373417b09146105925780637fc27803146105b257806384f22721146105d35780638da5cb5b146105e857600080fd5b80633cb40e161161020d57806355f804b3116101d15780636352211e116101ab5780636352211e1461051d5780636817031b1461053d57806370a082311461055d57600080fd5b806355f804b3146104bc57806360d938dc146104dc57806362ce7094146104fd57600080fd5b80633cb40e16146104265780633f8121a21461043b57806342842e0e1461045b5780634f9728671461047b57806354214f691461049b57600080fd5b806318160ddd1161026f57806323b872dd1161024957806323b872dd146103d357806327ed3dce146103f357806328d7b2761461040657600080fd5b806318160ddd1461037d57806322212e2b1461039c57806322f3e2d4146103b257600080fd5b806301ffc9a7146102ac57806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806311e776fe1461035d575b600080fd5b3480156102b857600080fd5b506102cc6102c736600461295e565b6107e5565b60405190151581526020015b60405180910390f35b3480156102ed57600080fd5b506102f6610837565b6040516102d891906129d3565b34801561030f57600080fd5b5061032361031e3660046129e6565b6108c9565b6040516001600160a01b0390911681526020016102d8565b34801561034757600080fd5b5061035b610356366004612a1b565b610956565b005b34801561036957600080fd5b5061035b6103783660046129e6565b610a6c565b34801561038957600080fd5b506002545b6040519081526020016102d8565b3480156103a857600080fd5b5061038e600b5481565b3480156103be57600080fd5b506009546102cc90600160a81b900460ff1681565b3480156103df57600080fd5b5061035b6103ee366004612a45565b610ab9565b61035b610401366004612acd565b610b34565b34801561041257600080fd5b5061035b6104213660046129e6565b610de5565b34801561043257600080fd5b5061035b610e32565b34801561044757600080fd5b5061035b610456366004612b29565b610fc6565b34801561046757600080fd5b5061035b610476366004612a45565b61102c565b34801561048757600080fd5b5061035b6104963660046129e6565b611047565b3480156104a757600080fd5b506009546102cc90600160a01b900460ff1681565b3480156104c857600080fd5b5061035b6104d7366004612bd0565b6111e1565b3480156104e857600080fd5b506009546102cc90600160b81b900460ff1681565b34801561050957600080fd5b5061035b6105183660046129e6565b611240565b34801561052957600080fd5b506103236105383660046129e6565b61133d565b34801561054957600080fd5b5061035b610558366004612c19565b611477565b34801561056957600080fd5b5061038e610578366004612c19565b6114e1565b34801561058957600080fd5b5061035b6115af565b34801561059e57600080fd5b5061035b6105ad366004612b29565b611603565b3480156105be57600080fd5b506009546102cc90600160b01b900460ff1681565b3480156105df57600080fd5b5061035b611669565b3480156105f457600080fd5b506006546001600160a01b0316610323565b34801561061257600080fd5b5061035b6106213660046129e6565b61176b565b34801561063257600080fd5b506102f66117b8565b34801561064757600080fd5b5061038e600a5481565b34801561065d57600080fd5b5061035b6117c7565b34801561067257600080fd5b5061038e60085481565b61035b61068a3660046129e6565b611848565b34801561069b57600080fd5b5061035b6106aa366004612c34565b6119b7565b3480156106bb57600080fd5b5061035b6106ca366004612b29565b611a7c565b3480156106db57600080fd5b5061035b6106ea366004612c67565b611ae2565b3480156106fb57600080fd5b5061035b61070a366004612ca9565b611cbc565b34801561071b57600080fd5b506102f661072a3660046129e6565b611d3e565b34801561073b57600080fd5b5061035b61074a366004612b29565b611e5e565b34801561075b57600080fd5b5061038e60075481565b34801561077157600080fd5b506102cc610780366004612d25565b611ec4565b34801561079157600080fd5b5061035b6107a0366004612c19565b611f22565b3480156107b157600080fd5b50600954610323906001600160a01b031681565b3480156107d157600080fd5b5061035b6107e03660046129e6565b611fdb565b60006001600160e01b031982166380ac58cd60e01b148061081657506001600160e01b03198216635b5e139f60e01b145b8061083157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461084690612d4f565b80601f016020809104026020016040519081016040528092919081815260200182805461087290612d4f565b80156108bf5780601f10610894576101008083540402835291602001916108bf565b820191906000526020600020905b8154815290600101906020018083116108a257829003601f168201915b5050505050905090565b60006108d482612028565b61093a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006109618261133d565b9050806001600160a01b0316836001600160a01b031614156109cf5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610931565b336001600160a01b03821614806109eb57506109eb8133611ec4565b610a5d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610931565b610a678383612080565b505050565b6006546001600160a01b03163314610ab45760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600755565b610ac333826120ee565b610b295760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610931565b610a678383836121b8565b6000610b3f60025490565b600954909150600160b81b900460ff16610b885760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b6010821115610bc95760405162461bcd60e51b815260206004820152600d60248201526c105b5bdd5b9d0811195b9a5959609a1b6044820152606401610931565b600754610bd68383612d9a565b1115610c145760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b336000908152600e602052604090205460ff1615610c745760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520416c726561647920436c61696d65640000000000000000006044820152606401610931565b81600854610c829190612db2565b341015610cc75760405162461bcd60e51b8152602060048201526013602482015272115d1a195c88105b5bdd5b9d0811195b9a5959606a1b6044820152606401610931565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050612318565b610d7d5760405162461bcd60e51b815260206004820152600d60248201526c141c9bdbd988125b9d985b1a59609a1b6044820152606401610931565b610d88600884612de7565b610d929084612d9a565b925060015b838111610dc357610db133610dac8386612d9a565b61232e565b80610dbb81612dfb565b915050610d97565b5050336000908152600e60205260409020805460ff1916600117905550505050565b6006546001600160a01b03163314610e2d5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600b55565b60026005541415610e855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b03163314610ed25760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b0316610f1a5760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6000336001600160a01b0316476040515b60006040518083038185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610fbe5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f207661756c742e00000000000000006044820152606401610931565b506001600555565b6006546001600160a01b0316331461100e5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160b81b0260ff60b81b19909216919091179055565b610a6783838360405180602001604052806000815250611cbc565b6002600554141561109a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146110e75760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b031661112f5760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6009546040516000916001600160a01b03169083905b60006040518083038185875af1925050503d8060008114611182576040519150601f19603f3d011682016040523d82523d6000602084013e611187565b606091505b50509050806111d85760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f207661756c742e00000000000000006044820152606401610931565b50506001600555565b6006546001600160a01b031633146112295760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b805161123c90600c9060208401906128af565b5050565b600260055414156112935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146112e05760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b03166113285760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6000336001600160a01b031682604051611145565b600060018210156113905760405162461bcd60e51b815260206004820152601060248201527f546f6b656e20494420746f6f206c6f77000000000000000000000000000000006044820152606401610931565b6002548211156113e25760405162461bcd60e51b815260206004820152601160248201527f546f6b656e20494420746f6f20686967680000000000000000000000000000006044820152606401610931565b600060026113f1600185612e16565b8154811061140157611401612e2d565b6000918252602090912001546001600160a01b03169050806108315760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610931565b6006546001600160a01b031633146114bf5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661154c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610931565b6000805b6002548110156115a8576002818154811061156d5761156d612e2d565b6000918252602090912001546001600160a01b03858116911614156115985761159582612dfb565b91505b6115a181612dfb565b9050611550565b5092915050565b6006546001600160a01b031633146115f75760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6116016000612348565b565b6006546001600160a01b0316331461164b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160b01b0260ff60b01b19909216919091179055565b600260055414156116bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610931565b60026005556006546001600160a01b031633146117095760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6009546001600160a01b03166117515760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d08125b9d985b1a59609a1b6044820152606401610931565b6009546040516000916001600160a01b0316904790610f2b565b6006546001600160a01b031633146117b35760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600855565b60606001805461084690612d4f565b6006546001600160a01b0316331461180f5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600061181a60025490565b905060015b6006811161123c57611836335b610dac8385612d9a565b8061184081612dfb565b91505061181f565b600061185360025490565b600954909150600160a81b900460ff1661189c5760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b60108211156118dd5760405162461bcd60e51b815260206004820152600d60248201526c105b5bdd5b9d0811195b9a5959609a1b6044820152606401610931565b6007546118ea8383612d9a565b11156119285760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b816008546119369190612db2565b34101561197b5760405162461bcd60e51b8152602060048201526013602482015272115d1a195c88105b5bdd5b9d0811195b9a5959606a1b6044820152606401610931565b611986600883612de7565b6119909083612d9a565b915060015b828111610a67576119a53361182c565b806119af81612dfb565b915050611995565b6001600160a01b038216331415611a105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610931565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611ac45760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160a81b0260ff60a81b19909216919091179055565b6000611aed60025490565b600954909150600160b01b900460ff16611b365760405162461bcd60e51b815260206004820152600a6024820152694e6f742041637469766560b01b6044820152606401610931565b6007548110611b775760405162461bcd60e51b815260206004820152600d60248201526c14dd5c1c1b1e4811195b9a5959609a1b6044820152606401610931565b336000908152600d602052604090205460ff1615611bd75760405162461bcd60e51b815260206004820152601460248201527f4d696e7420416c726561647920436c61696d65640000000000000000000000006044820152606401610931565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611c5184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050612318565b611c8d5760405162461bcd60e51b815260206004820152600d60248201526c141c9bdbd988125b9d985b1a59609a1b6044820152606401610931565b611c9c33610dac846001612d9a565b5050336000908152600d60205260409020805460ff191660011790555050565b611cc633836120ee565b611d2c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610931565b611d388484848461239a565b50505050565b6060611d4982612028565b611dbb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610931565b6000611dc5612418565b600954909150600160a01b900460ff16611e1f576000815111611df75760405180602001604052806000815250611e18565b80604051602001611e089190612e43565b6040516020818303038152906040525b9392505050565b6000815111611e3d5760405180602001604052806000815250611e18565b80611e4784612427565b604051602001611e08929190612e84565b50919050565b6006546001600160a01b03163314611ea65760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b60098054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160a01b03821673a5409ec958c83c3f309868babaca7c86dcb077c11415611ef357506001610831565b506001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314611f6a5760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b6001600160a01b038116611fcf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610931565b611fd881612348565b50565b6006546001600160a01b031633146120235760405162461bcd60e51b81526020600482018190526024820152600080516020612f318339815191526044820152606401610931565b600a55565b60006001821015801561203d57506002548211155b8015610831575060006002612053600185612e16565b8154811061206357612063612e2d565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120b58261133d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006120f982612028565b61215a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610931565b60006121658361133d565b9050806001600160a01b0316846001600160a01b031614806121a05750836001600160a01b0316612195846108c9565b6001600160a01b0316145b806121b057506121b08185611ec4565b949350505050565b826001600160a01b03166121cb8261133d565b6001600160a01b0316146122335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610931565b6001600160a01b0382166122955760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610931565b6122a0600082612080565b8160026122ae600184612e16565b815481106122be576122be612e2d565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600082612325858461253d565b14949350505050565b61123c8282604051806020016040528060008152506125b1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123a58484846121b8565b6123b18484848461262f565b611d385760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b6060600c805461084690612d4f565b60608161244b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612475578061245f81612dfb565b915061246e9050600a83612de7565b915061244f565b60008167ffffffffffffffff81111561249057612490612b44565b6040519080825280601f01601f1916602001820160405280156124ba576020820181803683370190505b5090505b84156121b0576124cf600183612e16565b91506124dc600a86612ec3565b6124e7906030612d9a565b60f81b8183815181106124fc576124fc612e2d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612536600a86612de7565b94506124be565b600081815b84518110156125a957600085828151811061255f5761255f612e2d565b602002602001015190508083116125855760008381526020829052604090209250612596565b600081815260208490526040902092505b50806125a181612dfb565b915050612542565b509392505050565b6125bb8383612787565b6125c8600084848461262f565b610a675760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b60006001600160a01b0384163b1561277c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612673903390899088908890600401612ed7565b602060405180830381600087803b15801561268d57600080fd5b505af19250505080156126bd575060408051601f3d908101601f191682019092526126ba91810190612f13565b60015b612762573d8080156126eb576040519150601f19603f3d011682016040523d82523d6000602084013e6126f0565b606091505b50805161275a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610931565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121b0565b506001949350505050565b6001600160a01b0382166127dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610931565b6127e681612028565b156128335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610931565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546128bb90612d4f565b90600052602060002090601f0160209004810192826128dd5760008555612923565b82601f106128f657805160ff1916838001178555612923565b82800160010185558215612923579182015b82811115612923578251825591602001919060010190612908565b5061292f929150612933565b5090565b5b8082111561292f5760008155600101612934565b6001600160e01b031981168114611fd857600080fd5b60006020828403121561297057600080fd5b8135611e1881612948565b60005b8381101561299657818101518382015260200161297e565b83811115611d385750506000910152565b600081518084526129bf81602086016020860161297b565b601f01601f19169290920160200192915050565b602081526000611e1860208301846129a7565b6000602082840312156129f857600080fd5b5035919050565b80356001600160a01b0381168114612a1657600080fd5b919050565b60008060408385031215612a2e57600080fd5b612a37836129ff565b946020939093013593505050565b600080600060608486031215612a5a57600080fd5b612a63846129ff565b9250612a71602085016129ff565b9150604084013590509250925092565b60008083601f840112612a9357600080fd5b50813567ffffffffffffffff811115612aab57600080fd5b6020830191508360208260051b8501011115612ac657600080fd5b9250929050565b600080600060408486031215612ae257600080fd5b833567ffffffffffffffff811115612af957600080fd5b612b0586828701612a81565b909790965060209590950135949350505050565b80358015158114612a1657600080fd5b600060208284031215612b3b57600080fd5b611e1882612b19565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b7557612b75612b44565b604051601f8501601f19908116603f01168101908282118183101715612b9d57612b9d612b44565b81604052809350858152868686011115612bb657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612be257600080fd5b813567ffffffffffffffff811115612bf957600080fd5b8201601f81018413612c0a57600080fd5b6121b084823560208401612b5a565b600060208284031215612c2b57600080fd5b611e18826129ff565b60008060408385031215612c4757600080fd5b612c50836129ff565b9150612c5e60208401612b19565b90509250929050565b60008060208385031215612c7a57600080fd5b823567ffffffffffffffff811115612c9157600080fd5b612c9d85828601612a81565b90969095509350505050565b60008060008060808587031215612cbf57600080fd5b612cc8856129ff565b9350612cd6602086016129ff565b925060408501359150606085013567ffffffffffffffff811115612cf957600080fd5b8501601f81018713612d0a57600080fd5b612d1987823560208401612b5a565b91505092959194509250565b60008060408385031215612d3857600080fd5b612d41836129ff565b9150612c5e602084016129ff565b600181811c90821680612d6357607f821691505b60208210811415611e5857634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612dad57612dad612d84565b500190565b6000816000190483118215151615612dcc57612dcc612d84565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612df657612df6612dd1565b500490565b6000600019821415612e0f57612e0f612d84565b5060010190565b600082821015612e2857612e28612d84565b500390565b634e487b7160e01b600052603260045260246000fd5b60008251612e5581846020870161297b565b7f70726572657665616c2e6a736f6e000000000000000000000000000000000000920191825250600e01919050565b60008351612e9681846020880161297b565b835190830190612eaa81836020880161297b565b64173539b7b760d91b9101908152600501949350505050565b600082612ed257612ed2612dd1565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f0960808301846129a7565b9695505050505050565b600060208284031215612f2557600080fd5b8151611e188161294856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203609a68fe3032450da136e92b2a5748abd37e709d67d8384bb803b5daac8a6f264736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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.