ETH Price: $3,310.14 (-3.20%)
Gas: 15 Gwei

Token

The Tentaverse (TT)
 

Overview

Max Total Supply

1,001 TT

Holders

340

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TT
0x9ce12c109867a636aec2d264c55acfc7e16f75d9
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TheTentaverse

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   The Tentaverse              *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************
░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░▓▒▓▓▓░▓▓▓▓▓▓▓░▓▓▓▓▓░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░▓▓▒▒▒░▓▓▓▓▓▓▓▓░▒▓▓▒▓▓░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░▒▓▓▓░▓▓▓▓▓▓▓▓▓▓▓▒░░▓▓▓░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░▒▓▓░▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▒▓▓░░░░░░░░░░░░░░░░░
░░░░░▒▓▓▓▓░░░░░░░▓░░▓▓▒▓▓▓▓▒░▓▓▓░▓▓▓▓▒▓▓▒░▓░░░░░░░░░░░░░░░
░░░▓▓▓▒▒▒▓▓░░░░▒░▓▒░░▓░▒▓▓▓▒▒▓▓▓░▓▓▓▓░▓▓░▓▓░░░░░░░░░░░░░░░
░░▓▓░░░░░░░░░░░░▓▓▓▒▒▓▓░▒▓▓░▓▓▓▓▓░▓▒░▒▓░░▓▓▓▒░░░░░░░░░░░░░
░▓▓▒░░░░░░░░░░░▒▓▓▒▓▓▓▓▓▒▓░▓▓▓▓▓▓░▓▓▓▓▓▓▓▓▒▓░░░░░░░░░░░░░░
▓▓▓░░░░░░░░░░░░░▓▓▓▒▓▒▒▒▓▓▓░▒▓▓▒▒▓▓▓▓▒▒▓▓▒▓▓▓░░░░░░░▓▓▓▓░░
▓▓▓░░░░░░░░░░░░░▒▓▓▓▒▓▓▓▒▓▓▓▓░░▓▒▓▓▓▓▒▒▒▒▓▓░░░░░░░░▓▒░░░▓▒
░▓▓▓░░░░░░░░░░░░░░▓▒▓▓▓░░▓▓▒▓▓▓▓▓▓▒░▒▓▓▒▓░░░░░░░░░░░░░░░░▓
░▒▓▓▓▓░░░░░░░░░░░▓▓▓▓▓▓░▒▓▓▒▒▓▓▓▒▓▓░░▓▓▓▓▒░░░░░░░░░░░░░░▓▓
░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░▓▓▓▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░░░░▒▒▓▓▓░
░░░░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▓▓▓▓▓▓▓▓░▓░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░
░░░░░░░░░░░░▒░▒░▒▓▓▓▓▓▓▓▒▓▒▓░▓▒▒▓░▓▒▓▓▓▓▓▓▒░▒░▒▒▓▒▓▒▓░░░░░
░░░░░░░░░▓▓▓▓▓▓▓▓▒░▓▓▓▓▓░▓░▓▓▓▓▓▓▒▓▓▓▓▓▓░▓▓▓▓▓▒▒▒▒░░░░░░░░
░░░░░░░▓▓▓░░░░░░░▒▓▓▓▓▓▒▓▓▒▓▓▓▓▓▓▓░▓▒▓▓▓▓░░░▒▒▒▒▓▓▓▓▓░░░░░
░░░░░░▒▓░░░░░▓▓▓▓▓▓▓▓▓▓▓▓░▓▒▓▓░▓▓▓▓▒▓▒▒▓▓▓▓▓▓▓▒░░░░░▓▓░░░░
░░░░░░░▓▓░░░▓▓▓▓▓▓▓▒░░▓▓▓▓▒▓▓░░▓▓▓▒▓▒▓▓░░▒▓▓▓▓▓▓▓░▒░▒▓░░░░
░░░░░░░░▓▓▒▓▓▓░░▓▓░░░▓▓▒▒▓▓▒▓░░░▓▓▓▒▓▒▓▓▓░▒▓░░░░▓▓▒▓▓░░░░░
░░░░░░░░░░░░▓▓▓▓▓▒░░▓▓▓░▓▓▓▓▓▒░░▒▓▓▓▓▓░▒▓▓▒▓░░░░▓▓░░░░░░░░
░░░░░░░░░░░░░▒▓▒░░▓▓▓░░░░▓▓▓░░░░░░░▓▓▓▓░░▓▓▒▓▓▓▓▓▒░░░░░░░░
░░░░░░░░░░░░░░░░▓▓▓░░░░░░▓▓▓▒░░░░░░░▓▓▓▒░░▓▒░▒▒░░░░░░░░░░░
░░░░░░░░░░░░░░░▓▒░░░░▓▒▓▒▓▓▓░░░░░░░░▓▓▓░░░▓▓░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░▓▓▓▓░▓▓▒░░▓▓▓░▓▓▓▓▓▓▓▓▓░░▒▓▓▒░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░▓▓▓░░▓▓▓░░▓░░▒▓▓▓▓░░▓▒▒░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░▒▓▓▓▓▒░░░▓▒░░░░░░░▒░░░░░░░░░░░░░░░░░░░
*/


import './Blimpie/ERC721EnumerableLite.sol';
import './Blimpie/Signed.sol';
import "@openzeppelin/contracts/utils/Strings.sol";

contract TheTentaverse is ERC721EnumerableLite, Signed {
  using Strings for uint;

  uint public MAX_ORDER  = 10;
  uint public MAX_SUPPLY = 6676;
  uint public MAX_WALLET = 10;
  uint public PRICE      = 0.08 ether;

  bool public isActive   = false;
  bool public isVerified = true;

  uint private _supply = 6276;
  string private _tokenURIPrefix = '';
  string private _tokenURISuffix = '';

  constructor()
    Delegated()
    ERC721B("The Tentaverse", "TT", 0){
  }

  //external
  fallback() external payable {}

  receive() external payable {}

  //public
  function tokenURI(uint tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString(), _tokenURISuffix));
  }


  //external
  function mint( uint quantity, bytes calldata signature ) external payable {
    require( isActive,                      "Sale is not active"        );
    require( quantity <= MAX_ORDER,         "Order too big"             );
    require( _balances[ msg.sender ] + quantity <= MAX_WALLET, string(abi.encodePacked( "Max ", MAX_WALLET.toString(), " per wallet")));
    require( msg.value >= PRICE * quantity, "Ether sent is not correct" );

    uint supply = totalSupply();
    require( supply + quantity <= _supply, "Mint/order exceeds supply" );
    if( isVerified )
      verifySignature( quantity.toString(), signature );

    for(uint i; i < quantity; ++i){
      _mint( msg.sender, supply++ );
    }
  }

  //delegated
  function burnFrom(address account, uint[] calldata tokenIds) external payable onlyDelegates{
    for(uint i; i < tokenIds.length; ++i ){
      require( _owners[ tokenIds[i] ] == account, "Owner check failed" );
      _burn( tokenIds[i] );
    }
  }

  function mintTo(uint[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{
    require(quantity.length == recipient.length, "Must provide equal quantities and recipients" );

    uint totalQuantity;
    uint supply = totalSupply();
    for(uint i; i < quantity.length; ++i){
      totalQuantity += quantity[i];
    }
    require( supply + totalQuantity <= MAX_SUPPLY, "Mint/order exceeds supply" );
    delete totalQuantity;

    for(uint i; i < recipient.length; ++i){
      for(uint j; j < quantity[i]; ++j){
        _mint( recipient[i], supply++ );
      }
    }
  }

  function resurrect( address[] calldata recipients, uint[] calldata tokenIds ) external payable onlyDelegates{
    address zero = address(0);
    require(tokenIds.length == recipients.length,   "Must provide equal tokenIds and recipients" );
    for(uint i; i < tokenIds.length; ++i ){
      uint tokenId = tokenIds[i];
      require( !_exists( tokenId ), "Can't resurrect existing token" );

      --_burned;
      _owners[tokenId] = recipients[i];
      _approve(zero, tokenId);
      _beforeTokenTransfer(address(0), recipients[i], tokenId);
      emit Transfer(zero, recipients[i], tokenId);      
    }
  }

  function setActive(bool isActive_, bool isVerified_) external onlyDelegates{
    require( isActive != isActive_ || isVerified != isVerified_, "New value matches old" );
    isActive = isActive_;
    isVerified = isVerified_;
  }

  function setBaseURI(string calldata newPrefix, string calldata newSuffix) external onlyDelegates{
    _tokenURIPrefix = newPrefix;
    _tokenURISuffix = newSuffix;
  }

  function setMax(uint maxOrder, uint maxSupply, uint maxWallet, uint saleSupply) external onlyDelegates{
    require( MAX_ORDER != maxOrder ||
      MAX_SUPPLY != maxSupply ||
      MAX_WALLET != maxWallet, "New value matches old" );
    require(maxSupply >= totalSupply(), "Specified supply is lower than current balance" );

    MAX_ORDER = maxOrder;
    MAX_SUPPLY = maxSupply;
    MAX_WALLET = maxWallet;
    _supply = saleSupply;
  }

  function setPrice(uint price ) external onlyDelegates{
    require( PRICE != price, "New value matches old" );
    PRICE = price;
  }

  function withdraw() external {
    require(address(this).balance >= 0, "No funds available");
    Address.sendValue(payable(owner()), address(this).balance);
  }

  function finalize() external onlyOwner {
    selfdestruct(payable(owner()));
  }


  //internal
  function _beforeTokenTransfer(address from, address to, uint tokenId) internal override {
    if( from != address(0) )
      --_balances[from];

    if( to != address(0) )
      ++_balances[to];
  }

  function _burn(uint tokenId) internal override {
    //failsafe
    address from = ownerOf(tokenId);
    _approve(owner(), tokenId);
    _beforeTokenTransfer( from, address(0), tokenId );

    ++_burned;
    _owners[tokenId] = address(0);
    emit Transfer(from, address(0), tokenId);
  }

  function _mint(address to, uint tokenId) internal override {
    _beforeTokenTransfer( address(0), to, tokenId );

    _owners.push(to);
    emit Transfer(address(0), to, tokenId);
  }
}

File 2 of 17 : Signed.sol
// SPDX-License-Identifier: BSD-3

pragma solidity ^0.8.0;

import './Delegated.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract Signed is Delegated{
  using Strings for uint256;
  using ECDSA for bytes32;

  string private _secret;
  address private _signer;


  function setSecret( string calldata secret ) external onlyOwner{
    _secret = secret;
  }

  function setSigner( address signer ) external onlyOwner{
    _signer = signer;
  }


  function createHash( string memory data ) internal view returns ( bytes32 ){
    return keccak256( abi.encodePacked( address(this), msg.sender, data, _secret ) );
  }

  function getSigner( bytes32 hash, bytes memory signature ) internal pure returns( address ){
    return hash.toEthSignedMessageHash().recover( signature );
  }

  function isAuthorizedSigner( address extracted ) internal view virtual returns( bool ){
    return extracted == _signer;
  }

  function verifySignature( string memory data, bytes calldata signature ) internal view {
    address extracted = getSigner( createHash( data ), signature );
    require( isAuthorizedSigner( extracted ), "Signature verification failed" );
  }


}

File 3 of 17 : IERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

interface IERC721Batch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool );
  function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external;
  function walletOfOwner( address account ) external view returns( uint[] memory );
}

File 4 of 17 : ERC721EnumerableLite.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "./ERC721B.sol";
import "./IERC721Batch.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721EnumerableLite is ERC721B, IERC721Batch, IERC721Enumerable {
    mapping(address => uint) internal _balances;

    function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual override returns( bool ){
        for(uint i; i < tokenIds.length; ++i ){
            if( _owners[ tokenIds[i] ] != account )
                return false;
        }

        return true;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint index) external view virtual override returns (uint) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    function totalSupply() public view virtual override( ERC721B, IERC721Enumerable ) returns (uint) {
        return _owners.length - (_offset + _burned);
    }

    function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{
        for(uint i; i < tokenIds.length; ++i ){
            safeTransferFrom( from, to, tokenIds[i], data );
        }
    }

    function walletOfOwner( address account ) external view virtual override returns( uint[] memory ){
        uint quantity = balanceOf( account );
        uint[] memory wallet = new uint[]( quantity );
        for( uint i; i < quantity; ++i ){
            wallet[i] = tokenOfOwnerByIndex( account, i );
        }
        return wallet;
    }
}

File 5 of 17 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

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

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    uint internal _burned;
    uint internal _offset;
    address[] internal _owners;

    mapping(uint => address) internal _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_, uint offset) {
        _name = name_;
        _symbol = symbol_;
        _offset = offset;
        for(uint i; i < _offset; ++i ){
            _owners.push(address(0));
        }
    }

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

    function name() external view virtual override returns (string memory) {
        return _name;
    }

    function ownerOf(uint tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint) {
        return _owners.length - (_offset + _burned);
    }


    function approve(address to, uint tokenId) external virtual override {
        address owner = ERC721B.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);
    }

    function getApproved(uint tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved) external virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId
    ) external virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    //internal
    function _approve(address to, uint tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721B.ownerOf(tokenId), to, tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {}

    function _burn(uint tokenId) internal virtual {
        address owner = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

    function _checkOnERC721Received(
        address from,
        address to,
        uint 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;
        }
    }

    function _exists(uint tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721B.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function _mint(address to, uint 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);
    }

    function _next() internal view virtual returns( uint ){
        return _owners.length;
    }

    function _safeMint(address to, uint tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    function _safeMint(
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _safeTransfer(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    function _transfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {
        require(ERC721B.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }
}

File 6 of 17 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* @author: squeebo_nft *
************************/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  constructor(){
    _delegates[owner()] = true;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Invalid delegate" );
    _;
  }

  //onlyOwner
  function isDelegate( address addr ) external view onlyOwner returns ( bool ){
    return _delegates[addr];
  }

  function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
    _delegates[addr] = isDelegate_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    _delegates[newOwner] = true;
    super.transferOwnership( newOwner );
  }
}

File 7 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 10 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_ORDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"finalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isVerified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"resurrect","outputs":[],"stateMutability":"payable","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"},{"internalType":"bool","name":"isVerified_","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":"newPrefix","type":"string"},{"internalType":"string","name":"newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOrder","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxWallet","type":"uint256"},{"internalType":"uint256","name":"saleSupply","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"secret","type":"string"}],"name":"setSecret","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600a600c819055611a14600d55600e5567011c37937e080000600f556010805461ffff191661010017905561188460115560a06040819052600060808190526200004c9160129162000207565b506040805160208101918290526000908190526200006d9160139162000207565b503480156200007b57600080fd5b50604080518082018252600e81526d5468652054656e7461766572736560901b602080830191825283518085019094526002845261151560f21b908401528151919291600091620000cf9183919062000207565b508151620000e590600190602085019062000207565b50600381905560005b6003548110156200014c57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191690556200014481620002ad565b9050620000ee565b505050506200016a62000164620001b160201b60201c565b620001b5565b600160096000620001836008546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905562000314565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021590620002d7565b90600052602060002090601f01602090048101928262000239576000855562000284565b82601f106200025457805160ff191683800117855562000284565b8280016001018555821562000284579182015b828111156200028457825182559160200191906001019062000267565b506200029292915062000296565b5090565b5b8082111562000292576000815560010162000297565b6000600019821415620002d057634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680620002ec57607f821691505b602082108114156200030e57634e487b7160e01b600052602260045260246000fd5b50919050565b6133d880620003246000396000f3fe60806040526004361061023d5760003560e01c80636c19e7831161012d57806391b7f5ed116100b0578063c87b56dd11610077578063c87b56dd14610698578063db7fd408146106b8578063df7787a4146106cb578063e966d512146106e1578063e985e9c5146106f4578063f2fde38b1461073d57005b806391b7f5ed1461060357806395d89b4114610623578063a22cb46514610638578063b534a5c414610658578063b88d4fde1461067857005b806380007e83116100f457806380007e831461058a57806380fda1e2146105a957806389af6107146105bc5780638d859f3e146105cf5780638da5cb5b146105e557005b80636c19e783146104f557806370a0823114610515578063715018a6146105355780637ed6c9261461054a5780637f608d031461056a57005b80633ccfd60b116101c05780634bb278f3116101875780634bb278f31461044a5780634d44660c1461045f5780634f6ccce71461047f57806350c5a00c1461049f5780636352211e146104b55780636790a9de146104d557005b80633ccfd60b146103a85780633e5597f9146103bd57806342842e0e146103dd578063438b6300146103fd5780634a994eef1461042a57005b806318160ddd1161020457806318160ddd1461031557806322f3e2d41461033857806323b872dd146103525780632f745c591461037257806332cb6b0c1461039257005b806301ffc9a71461024657806306fdde031461027b578063077796271461029d578063081812fc146102bd578063095ea7b3146102f557005b3661024457005b005b34801561025257600080fd5b50610266610261366004612986565b61075d565b60405190151581526020015b60405180910390f35b34801561028757600080fd5b50610290610788565b60405161027291906129fb565b3480156102a957600080fd5b506102666102b8366004612a25565b61081a565b3480156102c957600080fd5b506102dd6102d8366004612a40565b610873565b6040516001600160a01b039091168152602001610272565b34801561030157600080fd5b50610244610310366004612a59565b6108fb565b34801561032157600080fd5b5061032a610a11565b604051908152602001610272565b34801561034457600080fd5b506010546102669060ff1681565b34801561035e57600080fd5b5061024461036d366004612a83565b610a35565b34801561037e57600080fd5b5061032a61038d366004612a59565b610a66565b34801561039e57600080fd5b5061032a600d5481565b3480156103b457600080fd5b50610244610b32565b3480156103c957600080fd5b506102446103d8366004612abf565b610b4f565b3480156103e957600080fd5b506102446103f8366004612a83565b610c3c565b34801561040957600080fd5b5061041d610418366004612a25565b610c57565b6040516102729190612af1565b34801561043657600080fd5b50610244610445366004612b45565b610cf7565b34801561045657600080fd5b50610244610d4c565b34801561046b57600080fd5b5061026661047a366004612bbd565b610d84565b34801561048b57600080fd5b5061032a61049a366004612a40565b610e06565b3480156104ab57600080fd5b5061032a600c5481565b3480156104c157600080fd5b506102dd6104d0366004612a40565b610e77565b3480156104e157600080fd5b506102446104f0366004612c52565b610f03565b34801561050157600080fd5b50610244610510366004612a25565b610f52565b34801561052157600080fd5b5061032a610530366004612a25565b610f9e565b34801561054157600080fd5b5061024461106c565b34801561055657600080fd5b50610244610565366004612cbe565b6110a0565b34801561057657600080fd5b50610244610585366004612d00565b6110d6565b34801561059657600080fd5b5060105461026690610100900460ff1681565b6102446105b7366004612d1c565b61116c565b6102446105ca366004612bbd565b6113a2565b3480156105db57600080fd5b5061032a600f5481565b3480156105f157600080fd5b506008546001600160a01b03166102dd565b34801561060f57600080fd5b5061024461061e366004612a40565b61149f565b34801561062f57600080fd5b506102906114f5565b34801561064457600080fd5b50610244610653366004612b45565b611504565b34801561066457600080fd5b50610244610673366004612d7c565b6115c9565b34801561068457600080fd5b50610244610693366004612e23565b611647565b3480156106a457600080fd5b506102906106b3366004612a40565b611679565b6102446106c6366004612eff565b61171d565b3480156106d757600080fd5b5061032a600e5481565b6102446106ef366004612d1c565b611923565b34801561070057600080fd5b5061026661070f366004612f3e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561074957600080fd5b50610244610758366004612a25565b611aea565b60006001600160e01b0319821663780e9d6360e01b1480610782575061078282611b43565b92915050565b60606000805461079790612f68565b80601f01602080910402602001604051908101604052809291908181526020018280546107c390612f68565b80156108105780601f106107e557610100808354040283529160200191610810565b820191906000526020600020905b8154815290600101906020018083116107f357829003601f168201915b5050505050905090565b6008546000906001600160a01b031633146108505760405162461bcd60e51b815260040161084790612fa3565b60405180910390fd5b506001600160a01b03811660009081526009602052604090205460ff165b919050565b600061087e82611b93565b6108df5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b506000908152600560205260409020546001600160a01b031690565b600061090682610e77565b9050806001600160a01b0316836001600160a01b031614156109745760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610847565b336001600160a01b03821614806109905750610990813361070f565b610a025760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610847565b610a0c8383611bdd565b505050565b6000600254600354610a239190612fee565b600454610a309190613006565b905090565b610a3f3382611c4b565b610a5b5760405162461bcd60e51b81526004016108479061301d565b610a0c838383611d35565b60008060005b600454811015610ad55760048181548110610a8957610a8961306e565b6000918252602090912001546001600160a01b0386811691161415610ac55783821415610ab95791506107829050565b610ac282613084565b91505b610ace81613084565b9050610a6c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610847565b610b4d610b476008546001600160a01b031690565b47611e84565b565b3360009081526009602052604090205460ff16610b7e5760405162461bcd60e51b81526004016108479061309f565b83600c54141580610b91575082600d5414155b80610b9e575081600e5414155b610bba5760405162461bcd60e51b8152600401610847906130c9565b610bc2610a11565b831015610c285760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b6064820152608401610847565b600c93909355600d91909155600e55601155565b610a0c83838360405180602001604052806000815250611647565b60606000610c6483610f9e565b905060008167ffffffffffffffff811115610c8157610c81612e0d565b604051908082528060200260200182016040528015610caa578160200160208202803683370190505b50905060005b82811015610cef57610cc28582610a66565b828281518110610cd457610cd461306e565b6020908102919091010152610ce881613084565b9050610cb0565b509392505050565b6008546001600160a01b03163314610d215760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6008546001600160a01b03163314610d765760405162461bcd60e51b815260040161084790612fa3565b6008546001600160a01b0316ff5b6000805b82811015610df957846001600160a01b03166004858584818110610dae57610dae61306e565b9050602002013581548110610dc557610dc561306e565b6000918252602090912001546001600160a01b031614610de9576000915050610dff565b610df281613084565b9050610d88565b50600190505b9392505050565b6000610e10610a11565b8210610e735760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610847565b5090565b60008060048381548110610e8d57610e8d61306e565b6000918252602090912001546001600160a01b03169050806107825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610847565b3360009081526009602052604090205460ff16610f325760405162461bcd60e51b81526004016108479061309f565b610f3e601285856128e0565b50610f4b601383836128e0565b5050505050565b6008546001600160a01b03163314610f7c5760405162461bcd60e51b815260040161084790612fa3565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110095760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610847565b6000805b600454811015611065576004818154811061102a5761102a61306e565b6000918252602090912001546001600160a01b03858116911614156110555761105282613084565b91505b61105e81613084565b905061100d565b5092915050565b6008546001600160a01b031633146110965760405162461bcd60e51b815260040161084790612fa3565b610b4d6000611f9d565b6008546001600160a01b031633146110ca5760405162461bcd60e51b815260040161084790612fa3565b610a0c600a83836128e0565b3360009081526009602052604090205460ff166111055760405162461bcd60e51b81526004016108479061309f565b60105460ff16151582151514158061112c575060105460ff61010090910416151581151514155b6111485760405162461bcd60e51b8152600401610847906130c9565b6010805461ffff191692151561ff0019169290921761010091151591909102179055565b3360009081526009602052604090205460ff1661119b5760405162461bcd60e51b81526004016108479061309f565b60008184146111ff5760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c20746f6b656e49647320616e6420604482015269726563697069656e747360b01b6064820152608401610847565b60005b8281101561139a57600084848381811061121e5761121e61306e565b90506020020135905061123081611b93565b1561127d5760405162461bcd60e51b815260206004820152601e60248201527f43616e277420726573757272656374206578697374696e6720746f6b656e00006044820152606401610847565b60026000815461128c906130f8565b909155508686838181106112a2576112a261306e565b90506020020160208101906112b79190612a25565b600482815481106112ca576112ca61306e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506113028382611bdd565b61133460008888858181106113195761131961306e565b905060200201602081019061132e9190612a25565b83611fef565b808787848181106113475761134761306e565b905060200201602081019061135c9190612a25565b6001600160a01b0316846001600160a01b031660008051602061338383398151915260405160405180910390a45061139381613084565b9050611202565b505050505050565b3360009081526009602052604090205460ff166113d15760405162461bcd60e51b81526004016108479061309f565b60005b8181101561149957836001600160a01b031660048484848181106113fa576113fa61306e565b90506020020135815481106114115761141161306e565b6000918252602090912001546001600160a01b0316146114685760405162461bcd60e51b815260206004820152601260248201527113dddb995c8818da1958dac819985a5b195960721b6044820152606401610847565b61148983838381811061147d5761147d61306e565b90506020020135612067565b61149281613084565b90506113d4565b50505050565b3360009081526009602052604090205460ff166114ce5760405162461bcd60e51b81526004016108479061309f565b80600f5414156114f05760405162461bcd60e51b8152600401610847906130c9565b600f55565b60606001805461079790612f68565b6001600160a01b03821633141561155d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610847565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b8381101561163e5761162e87878787858181106115eb576115eb61306e565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061164792505050565b61163781613084565b90506115cc565b50505050505050565b6116513383611c4b565b61166d5760405162461bcd60e51b81526004016108479061301d565b61149984848484612109565b606061168482611b93565b6116e85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610847565b60126116f38361213c565b6013604051602001611707939291906131a9565b6040516020818303038152906040529050919050565b60105460ff166117645760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610847565b600c548311156117a65760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610847565b600e54336000908152600760205260409020546117c4908590612fee565b11156117d1600e5461213c565b6040516020016117e191906131dc565b6040516020818303038152906040529061180e5760405162461bcd60e51b815260040161084791906129fb565b5082600f5461181d919061321d565b34101561186c5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610847565b6000611876610a11565b6011549091506118868583612fee565b11156118d05760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610847565b601054610100900460ff16156118f3576118f36118ec8561213c565b848461223a565b60005b84811015610f4b57611913338361190c81613084565b94506122ea565b61191c81613084565b90506118f6565b3360009081526009602052604090205460ff166119525760405162461bcd60e51b81526004016108479061309f565b8281146119b65760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610847565b6000806119c1610a11565b905060005b85811015611a04578686828181106119e0576119e061306e565b90506020020135836119f29190612fee565b92506119fd81613084565b90506119c6565b50600d54611a128383612fee565b1115611a5c5760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610847565b6000915060005b8381101561163e5760005b878783818110611a8057611a8061306e565b90506020020135811015611ad957611ac9868684818110611aa357611aa361306e565b9050602002016020810190611ab89190612a25565b84611ac281613084565b95506122ea565b611ad281613084565b9050611a6e565b50611ae381613084565b9050611a63565b6008546001600160a01b03163314611b145760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b0381166000908152600960205260409020805460ff19166001179055611b4081612360565b50565b60006001600160e01b031982166380ac58cd60e01b1480611b7457506001600160e01b03198216635b5e139f60e01b145b8061078257506301ffc9a760e01b6001600160e01b0319831614610782565b60045460009082108015610782575060006001600160a01b031660048381548110611bc057611bc061306e565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1282610e77565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c5682611b93565b611cb75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b6000611cc283610e77565b9050806001600160a01b0316846001600160a01b03161480611cfd5750836001600160a01b0316611cf284610873565b6001600160a01b0316145b80611d2d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d4882610e77565b6001600160a01b031614611db05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610847565b6001600160a01b038216611e125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610847565b611e1d838383611fef565b611e28600082611bdd565b8160048281548110611e3c57611e3c61306e565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716916000805160206133838339815191529190a4505050565b80471015611ed45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610847565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f21576040519150601f19603f3d011682016040523d82523d6000602084013e611f26565b606091505b5050905080610a0c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610847565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831615612029576001600160a01b03831660009081526007602052604081208054909190612024906130f8565b909155505b6001600160a01b03821615610a0c576001600160a01b0382166000908152600760205260408120805490919061205e90613084565b90915550505050565b600061207282610e77565b905061208f6120896008546001600160a01b031690565b83611bdd565b61209b81600084611fef565b6002600081546120aa90613084565b919050819055506000600483815481106120c6576120c661306e565b6000918252602082200180546001600160a01b0319166001600160a01b039384161790556040518492841690600080516020613383833981519152908390a45050565b612114848484611d35565b612120848484846123f8565b6114995760405162461bcd60e51b81526004016108479061323c565b6060816121605750506040805180820190915260018152600360fc1b602082015290565b8160005b811561218a578061217481613084565b91506121839050600a836132a4565b9150612164565b60008167ffffffffffffffff8111156121a5576121a5612e0d565b6040519080825280601f01601f1916602001820160405280156121cf576020820181803683370190505b5090505b8415611d2d576121e4600183613006565b91506121f1600a866132b8565b6121fc906030612fee565b60f81b8183815181106122115761221161306e565b60200101906001600160f81b031916908160001a905350612233600a866132a4565b94506121d3565b6000612284612248856124f6565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061252d92505050565b905061229e81600b546001600160a01b0391821691161490565b6114995760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610847565b6122f660008383611fef565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038516908117909155604051839290600080516020613383833981519152908290a45050565b6008546001600160a01b0316331461238a5760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b0381166123ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610847565b611b4081611f9d565b60006001600160a01b0384163b156124eb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243c9033908990889088906004016132cc565b6020604051808303816000875af1925050508015612477575060408051601f3d908101601f1916820190925261247491810190613309565b60015b6124d1573d8080156124a5576040519150601f19603f3d011682016040523d82523d6000602084013e6124aa565b606091505b5080516124c95760405162461bcd60e51b81526004016108479061323c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d2d565b506001949350505050565b6000303383600a6040516020016125109493929190613326565b604051602081830303815290604052805190602001209050919050565b6000610dff8261253c85612542565b9061257d565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612510565b600080600061258c8585612599565b91509150610cef81612609565b6000808251604114156125d05760208301516040840151606085015160001a6125c4878285856127c4565b94509450505050612602565b8251604014156125fa57602083015160408401516125ef8683836128b1565b935093505050612602565b506000905060025b9250929050565b600081600481111561261d5761261d61336c565b14156126265750565b600181600481111561263a5761263a61336c565b14156126885760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610847565b600281600481111561269c5761269c61336c565b14156126ea5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610847565b60038160048111156126fe576126fe61336c565b14156127575760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610847565b600481600481111561276b5761276b61336c565b1415611b405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610847565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127fb57506000905060036128a8565b8460ff16601b1415801561281357508460ff16601c14155b1561282457506000905060046128a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612878573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128a1576000600192509250506128a8565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016128d2878288856127c4565b935093505050935093915050565b8280546128ec90612f68565b90600052602060002090601f01602090048101928261290e5760008555612954565b82601f106129275782800160ff19823516178555612954565b82800160010185558215612954579182015b82811115612954578235825591602001919060010190612939565b50610e739291505b80821115610e73576000815560010161295c565b6001600160e01b031981168114611b4057600080fd5b60006020828403121561299857600080fd5b8135610dff81612970565b60005b838110156129be5781810151838201526020016129a6565b838111156114995750506000910152565b600081518084526129e78160208601602086016129a3565b601f01601f19169290920160200192915050565b602081526000610dff60208301846129cf565b80356001600160a01b038116811461086e57600080fd5b600060208284031215612a3757600080fd5b610dff82612a0e565b600060208284031215612a5257600080fd5b5035919050565b60008060408385031215612a6c57600080fd5b612a7583612a0e565b946020939093013593505050565b600080600060608486031215612a9857600080fd5b612aa184612a0e565b9250612aaf60208501612a0e565b9150604084013590509250925092565b60008060008060808587031215612ad557600080fd5b5050823594602084013594506040840135936060013592509050565b6020808252825182820181905260009190848201906040850190845b81811015612b2957835183529284019291840191600101612b0d565b50909695505050505050565b8035801515811461086e57600080fd5b60008060408385031215612b5857600080fd5b612b6183612a0e565b9150612b6f60208401612b35565b90509250929050565b60008083601f840112612b8a57600080fd5b50813567ffffffffffffffff811115612ba257600080fd5b6020830191508360208260051b850101111561260257600080fd5b600080600060408486031215612bd257600080fd5b612bdb84612a0e565b9250602084013567ffffffffffffffff811115612bf757600080fd5b612c0386828701612b78565b9497909650939450505050565b60008083601f840112612c2257600080fd5b50813567ffffffffffffffff811115612c3a57600080fd5b60208301915083602082850101111561260257600080fd5b60008060008060408587031215612c6857600080fd5b843567ffffffffffffffff80821115612c8057600080fd5b612c8c88838901612c10565b90965094506020870135915080821115612ca557600080fd5b50612cb287828801612c10565b95989497509550505050565b60008060208385031215612cd157600080fd5b823567ffffffffffffffff811115612ce857600080fd5b612cf485828601612c10565b90969095509350505050565b60008060408385031215612d1357600080fd5b612b6183612b35565b60008060008060408587031215612d3257600080fd5b843567ffffffffffffffff80821115612d4a57600080fd5b612d5688838901612b78565b90965094506020870135915080821115612d6f57600080fd5b50612cb287828801612b78565b60008060008060008060808789031215612d9557600080fd5b612d9e87612a0e565b9550612dac60208801612a0e565b9450604087013567ffffffffffffffff80821115612dc957600080fd5b612dd58a838b01612b78565b90965094506060890135915080821115612dee57600080fd5b50612dfb89828a01612c10565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e3957600080fd5b612e4285612a0e565b9350612e5060208601612a0e565b925060408501359150606085013567ffffffffffffffff80821115612e7457600080fd5b818701915087601f830112612e8857600080fd5b813581811115612e9a57612e9a612e0d565b604051601f8201601f19908116603f01168101908382118183101715612ec257612ec2612e0d565b816040528281528a6020848701011115612edb57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215612f1457600080fd5b83359250602084013567ffffffffffffffff811115612f3257600080fd5b612c0386828701612c10565b60008060408385031215612f5157600080fd5b612f5a83612a0e565b9150612b6f60208401612a0e565b600181811c90821680612f7c57607f821691505b60208210811415612f9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561300157613001612fd8565b500190565b60008282101561301857613018612fd8565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561309857613098612fd8565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60008161310757613107612fd8565b506000190190565b8054600090600181811c908083168061312957607f831692505b602080841082141561314b57634e487b7160e01b600052602260045260246000fd5b81801561315f57600181146131705761319d565b60ff1986168952848901965061319d565b60008881526020902060005b868110156131955781548b82015290850190830161317c565b505084890196505b50505050505092915050565b60006131b5828661310f565b84516131c58183602089016129a3565b6131d18183018661310f565b979650505050505050565b63026b0bc160e51b8152600082516131fb8160048501602087016129a3565b6a081c195c881dd85b1b195d60aa1b6004939091019283015250600f01919050565b600081600019048311821515161561323757613237612fd8565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826132b3576132b361328e565b500490565b6000826132c7576132c761328e565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132ff908301846129cf565b9695505050505050565b60006020828403121561331b57600080fd5b8151610dff81612970565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250835161335d8160288501602088016129a3565b6131d16028828501018561310f565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205e14ad5a594003d4a8418c20e9ead75c8147a904758c6c3b9a982f003e129cca64736f6c634300080a0033

Deployed Bytecode

0x60806040526004361061023d5760003560e01c80636c19e7831161012d57806391b7f5ed116100b0578063c87b56dd11610077578063c87b56dd14610698578063db7fd408146106b8578063df7787a4146106cb578063e966d512146106e1578063e985e9c5146106f4578063f2fde38b1461073d57005b806391b7f5ed1461060357806395d89b4114610623578063a22cb46514610638578063b534a5c414610658578063b88d4fde1461067857005b806380007e83116100f457806380007e831461058a57806380fda1e2146105a957806389af6107146105bc5780638d859f3e146105cf5780638da5cb5b146105e557005b80636c19e783146104f557806370a0823114610515578063715018a6146105355780637ed6c9261461054a5780637f608d031461056a57005b80633ccfd60b116101c05780634bb278f3116101875780634bb278f31461044a5780634d44660c1461045f5780634f6ccce71461047f57806350c5a00c1461049f5780636352211e146104b55780636790a9de146104d557005b80633ccfd60b146103a85780633e5597f9146103bd57806342842e0e146103dd578063438b6300146103fd5780634a994eef1461042a57005b806318160ddd1161020457806318160ddd1461031557806322f3e2d41461033857806323b872dd146103525780632f745c591461037257806332cb6b0c1461039257005b806301ffc9a71461024657806306fdde031461027b578063077796271461029d578063081812fc146102bd578063095ea7b3146102f557005b3661024457005b005b34801561025257600080fd5b50610266610261366004612986565b61075d565b60405190151581526020015b60405180910390f35b34801561028757600080fd5b50610290610788565b60405161027291906129fb565b3480156102a957600080fd5b506102666102b8366004612a25565b61081a565b3480156102c957600080fd5b506102dd6102d8366004612a40565b610873565b6040516001600160a01b039091168152602001610272565b34801561030157600080fd5b50610244610310366004612a59565b6108fb565b34801561032157600080fd5b5061032a610a11565b604051908152602001610272565b34801561034457600080fd5b506010546102669060ff1681565b34801561035e57600080fd5b5061024461036d366004612a83565b610a35565b34801561037e57600080fd5b5061032a61038d366004612a59565b610a66565b34801561039e57600080fd5b5061032a600d5481565b3480156103b457600080fd5b50610244610b32565b3480156103c957600080fd5b506102446103d8366004612abf565b610b4f565b3480156103e957600080fd5b506102446103f8366004612a83565b610c3c565b34801561040957600080fd5b5061041d610418366004612a25565b610c57565b6040516102729190612af1565b34801561043657600080fd5b50610244610445366004612b45565b610cf7565b34801561045657600080fd5b50610244610d4c565b34801561046b57600080fd5b5061026661047a366004612bbd565b610d84565b34801561048b57600080fd5b5061032a61049a366004612a40565b610e06565b3480156104ab57600080fd5b5061032a600c5481565b3480156104c157600080fd5b506102dd6104d0366004612a40565b610e77565b3480156104e157600080fd5b506102446104f0366004612c52565b610f03565b34801561050157600080fd5b50610244610510366004612a25565b610f52565b34801561052157600080fd5b5061032a610530366004612a25565b610f9e565b34801561054157600080fd5b5061024461106c565b34801561055657600080fd5b50610244610565366004612cbe565b6110a0565b34801561057657600080fd5b50610244610585366004612d00565b6110d6565b34801561059657600080fd5b5060105461026690610100900460ff1681565b6102446105b7366004612d1c565b61116c565b6102446105ca366004612bbd565b6113a2565b3480156105db57600080fd5b5061032a600f5481565b3480156105f157600080fd5b506008546001600160a01b03166102dd565b34801561060f57600080fd5b5061024461061e366004612a40565b61149f565b34801561062f57600080fd5b506102906114f5565b34801561064457600080fd5b50610244610653366004612b45565b611504565b34801561066457600080fd5b50610244610673366004612d7c565b6115c9565b34801561068457600080fd5b50610244610693366004612e23565b611647565b3480156106a457600080fd5b506102906106b3366004612a40565b611679565b6102446106c6366004612eff565b61171d565b3480156106d757600080fd5b5061032a600e5481565b6102446106ef366004612d1c565b611923565b34801561070057600080fd5b5061026661070f366004612f3e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561074957600080fd5b50610244610758366004612a25565b611aea565b60006001600160e01b0319821663780e9d6360e01b1480610782575061078282611b43565b92915050565b60606000805461079790612f68565b80601f01602080910402602001604051908101604052809291908181526020018280546107c390612f68565b80156108105780601f106107e557610100808354040283529160200191610810565b820191906000526020600020905b8154815290600101906020018083116107f357829003601f168201915b5050505050905090565b6008546000906001600160a01b031633146108505760405162461bcd60e51b815260040161084790612fa3565b60405180910390fd5b506001600160a01b03811660009081526009602052604090205460ff165b919050565b600061087e82611b93565b6108df5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b506000908152600560205260409020546001600160a01b031690565b600061090682610e77565b9050806001600160a01b0316836001600160a01b031614156109745760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610847565b336001600160a01b03821614806109905750610990813361070f565b610a025760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610847565b610a0c8383611bdd565b505050565b6000600254600354610a239190612fee565b600454610a309190613006565b905090565b610a3f3382611c4b565b610a5b5760405162461bcd60e51b81526004016108479061301d565b610a0c838383611d35565b60008060005b600454811015610ad55760048181548110610a8957610a8961306e565b6000918252602090912001546001600160a01b0386811691161415610ac55783821415610ab95791506107829050565b610ac282613084565b91505b610ace81613084565b9050610a6c565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610847565b610b4d610b476008546001600160a01b031690565b47611e84565b565b3360009081526009602052604090205460ff16610b7e5760405162461bcd60e51b81526004016108479061309f565b83600c54141580610b91575082600d5414155b80610b9e575081600e5414155b610bba5760405162461bcd60e51b8152600401610847906130c9565b610bc2610a11565b831015610c285760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b6064820152608401610847565b600c93909355600d91909155600e55601155565b610a0c83838360405180602001604052806000815250611647565b60606000610c6483610f9e565b905060008167ffffffffffffffff811115610c8157610c81612e0d565b604051908082528060200260200182016040528015610caa578160200160208202803683370190505b50905060005b82811015610cef57610cc28582610a66565b828281518110610cd457610cd461306e565b6020908102919091010152610ce881613084565b9050610cb0565b509392505050565b6008546001600160a01b03163314610d215760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6008546001600160a01b03163314610d765760405162461bcd60e51b815260040161084790612fa3565b6008546001600160a01b0316ff5b6000805b82811015610df957846001600160a01b03166004858584818110610dae57610dae61306e565b9050602002013581548110610dc557610dc561306e565b6000918252602090912001546001600160a01b031614610de9576000915050610dff565b610df281613084565b9050610d88565b50600190505b9392505050565b6000610e10610a11565b8210610e735760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610847565b5090565b60008060048381548110610e8d57610e8d61306e565b6000918252602090912001546001600160a01b03169050806107825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610847565b3360009081526009602052604090205460ff16610f325760405162461bcd60e51b81526004016108479061309f565b610f3e601285856128e0565b50610f4b601383836128e0565b5050505050565b6008546001600160a01b03163314610f7c5760405162461bcd60e51b815260040161084790612fa3565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166110095760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610847565b6000805b600454811015611065576004818154811061102a5761102a61306e565b6000918252602090912001546001600160a01b03858116911614156110555761105282613084565b91505b61105e81613084565b905061100d565b5092915050565b6008546001600160a01b031633146110965760405162461bcd60e51b815260040161084790612fa3565b610b4d6000611f9d565b6008546001600160a01b031633146110ca5760405162461bcd60e51b815260040161084790612fa3565b610a0c600a83836128e0565b3360009081526009602052604090205460ff166111055760405162461bcd60e51b81526004016108479061309f565b60105460ff16151582151514158061112c575060105460ff61010090910416151581151514155b6111485760405162461bcd60e51b8152600401610847906130c9565b6010805461ffff191692151561ff0019169290921761010091151591909102179055565b3360009081526009602052604090205460ff1661119b5760405162461bcd60e51b81526004016108479061309f565b60008184146111ff5760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c20746f6b656e49647320616e6420604482015269726563697069656e747360b01b6064820152608401610847565b60005b8281101561139a57600084848381811061121e5761121e61306e565b90506020020135905061123081611b93565b1561127d5760405162461bcd60e51b815260206004820152601e60248201527f43616e277420726573757272656374206578697374696e6720746f6b656e00006044820152606401610847565b60026000815461128c906130f8565b909155508686838181106112a2576112a261306e565b90506020020160208101906112b79190612a25565b600482815481106112ca576112ca61306e565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506113028382611bdd565b61133460008888858181106113195761131961306e565b905060200201602081019061132e9190612a25565b83611fef565b808787848181106113475761134761306e565b905060200201602081019061135c9190612a25565b6001600160a01b0316846001600160a01b031660008051602061338383398151915260405160405180910390a45061139381613084565b9050611202565b505050505050565b3360009081526009602052604090205460ff166113d15760405162461bcd60e51b81526004016108479061309f565b60005b8181101561149957836001600160a01b031660048484848181106113fa576113fa61306e565b90506020020135815481106114115761141161306e565b6000918252602090912001546001600160a01b0316146114685760405162461bcd60e51b815260206004820152601260248201527113dddb995c8818da1958dac819985a5b195960721b6044820152606401610847565b61148983838381811061147d5761147d61306e565b90506020020135612067565b61149281613084565b90506113d4565b50505050565b3360009081526009602052604090205460ff166114ce5760405162461bcd60e51b81526004016108479061309f565b80600f5414156114f05760405162461bcd60e51b8152600401610847906130c9565b600f55565b60606001805461079790612f68565b6001600160a01b03821633141561155d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610847565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b8381101561163e5761162e87878787858181106115eb576115eb61306e565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061164792505050565b61163781613084565b90506115cc565b50505050505050565b6116513383611c4b565b61166d5760405162461bcd60e51b81526004016108479061301d565b61149984848484612109565b606061168482611b93565b6116e85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610847565b60126116f38361213c565b6013604051602001611707939291906131a9565b6040516020818303038152906040529050919050565b60105460ff166117645760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610847565b600c548311156117a65760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610847565b600e54336000908152600760205260409020546117c4908590612fee565b11156117d1600e5461213c565b6040516020016117e191906131dc565b6040516020818303038152906040529061180e5760405162461bcd60e51b815260040161084791906129fb565b5082600f5461181d919061321d565b34101561186c5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610847565b6000611876610a11565b6011549091506118868583612fee565b11156118d05760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610847565b601054610100900460ff16156118f3576118f36118ec8561213c565b848461223a565b60005b84811015610f4b57611913338361190c81613084565b94506122ea565b61191c81613084565b90506118f6565b3360009081526009602052604090205460ff166119525760405162461bcd60e51b81526004016108479061309f565b8281146119b65760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610847565b6000806119c1610a11565b905060005b85811015611a04578686828181106119e0576119e061306e565b90506020020135836119f29190612fee565b92506119fd81613084565b90506119c6565b50600d54611a128383612fee565b1115611a5c5760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b6044820152606401610847565b6000915060005b8381101561163e5760005b878783818110611a8057611a8061306e565b90506020020135811015611ad957611ac9868684818110611aa357611aa361306e565b9050602002016020810190611ab89190612a25565b84611ac281613084565b95506122ea565b611ad281613084565b9050611a6e565b50611ae381613084565b9050611a63565b6008546001600160a01b03163314611b145760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b0381166000908152600960205260409020805460ff19166001179055611b4081612360565b50565b60006001600160e01b031982166380ac58cd60e01b1480611b7457506001600160e01b03198216635b5e139f60e01b145b8061078257506301ffc9a760e01b6001600160e01b0319831614610782565b60045460009082108015610782575060006001600160a01b031660048381548110611bc057611bc061306e565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c1282610e77565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c5682611b93565b611cb75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610847565b6000611cc283610e77565b9050806001600160a01b0316846001600160a01b03161480611cfd5750836001600160a01b0316611cf284610873565b6001600160a01b0316145b80611d2d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d4882610e77565b6001600160a01b031614611db05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610847565b6001600160a01b038216611e125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610847565b611e1d838383611fef565b611e28600082611bdd565b8160048281548110611e3c57611e3c61306e565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716916000805160206133838339815191529190a4505050565b80471015611ed45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610847565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f21576040519150601f19603f3d011682016040523d82523d6000602084013e611f26565b606091505b5050905080610a0c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610847565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831615612029576001600160a01b03831660009081526007602052604081208054909190612024906130f8565b909155505b6001600160a01b03821615610a0c576001600160a01b0382166000908152600760205260408120805490919061205e90613084565b90915550505050565b600061207282610e77565b905061208f6120896008546001600160a01b031690565b83611bdd565b61209b81600084611fef565b6002600081546120aa90613084565b919050819055506000600483815481106120c6576120c661306e565b6000918252602082200180546001600160a01b0319166001600160a01b039384161790556040518492841690600080516020613383833981519152908390a45050565b612114848484611d35565b612120848484846123f8565b6114995760405162461bcd60e51b81526004016108479061323c565b6060816121605750506040805180820190915260018152600360fc1b602082015290565b8160005b811561218a578061217481613084565b91506121839050600a836132a4565b9150612164565b60008167ffffffffffffffff8111156121a5576121a5612e0d565b6040519080825280601f01601f1916602001820160405280156121cf576020820181803683370190505b5090505b8415611d2d576121e4600183613006565b91506121f1600a866132b8565b6121fc906030612fee565b60f81b8183815181106122115761221161306e565b60200101906001600160f81b031916908160001a905350612233600a866132a4565b94506121d3565b6000612284612248856124f6565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061252d92505050565b905061229e81600b546001600160a01b0391821691161490565b6114995760405162461bcd60e51b815260206004820152601d60248201527f5369676e617475726520766572696669636174696f6e206661696c65640000006044820152606401610847565b6122f660008383611fef565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038516908117909155604051839290600080516020613383833981519152908290a45050565b6008546001600160a01b0316331461238a5760405162461bcd60e51b815260040161084790612fa3565b6001600160a01b0381166123ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610847565b611b4081611f9d565b60006001600160a01b0384163b156124eb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243c9033908990889088906004016132cc565b6020604051808303816000875af1925050508015612477575060408051601f3d908101601f1916820190925261247491810190613309565b60015b6124d1573d8080156124a5576040519150601f19603f3d011682016040523d82523d6000602084013e6124aa565b606091505b5080516124c95760405162461bcd60e51b81526004016108479061323c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d2d565b506001949350505050565b6000303383600a6040516020016125109493929190613326565b604051602081830303815290604052805190602001209050919050565b6000610dff8261253c85612542565b9061257d565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612510565b600080600061258c8585612599565b91509150610cef81612609565b6000808251604114156125d05760208301516040840151606085015160001a6125c4878285856127c4565b94509450505050612602565b8251604014156125fa57602083015160408401516125ef8683836128b1565b935093505050612602565b506000905060025b9250929050565b600081600481111561261d5761261d61336c565b14156126265750565b600181600481111561263a5761263a61336c565b14156126885760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610847565b600281600481111561269c5761269c61336c565b14156126ea5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610847565b60038160048111156126fe576126fe61336c565b14156127575760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610847565b600481600481111561276b5761276b61336c565b1415611b405760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610847565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127fb57506000905060036128a8565b8460ff16601b1415801561281357508460ff16601c14155b1561282457506000905060046128a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612878573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128a1576000600192509250506128a8565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016128d2878288856127c4565b935093505050935093915050565b8280546128ec90612f68565b90600052602060002090601f01602090048101928261290e5760008555612954565b82601f106129275782800160ff19823516178555612954565b82800160010185558215612954579182015b82811115612954578235825591602001919060010190612939565b50610e739291505b80821115610e73576000815560010161295c565b6001600160e01b031981168114611b4057600080fd5b60006020828403121561299857600080fd5b8135610dff81612970565b60005b838110156129be5781810151838201526020016129a6565b838111156114995750506000910152565b600081518084526129e78160208601602086016129a3565b601f01601f19169290920160200192915050565b602081526000610dff60208301846129cf565b80356001600160a01b038116811461086e57600080fd5b600060208284031215612a3757600080fd5b610dff82612a0e565b600060208284031215612a5257600080fd5b5035919050565b60008060408385031215612a6c57600080fd5b612a7583612a0e565b946020939093013593505050565b600080600060608486031215612a9857600080fd5b612aa184612a0e565b9250612aaf60208501612a0e565b9150604084013590509250925092565b60008060008060808587031215612ad557600080fd5b5050823594602084013594506040840135936060013592509050565b6020808252825182820181905260009190848201906040850190845b81811015612b2957835183529284019291840191600101612b0d565b50909695505050505050565b8035801515811461086e57600080fd5b60008060408385031215612b5857600080fd5b612b6183612a0e565b9150612b6f60208401612b35565b90509250929050565b60008083601f840112612b8a57600080fd5b50813567ffffffffffffffff811115612ba257600080fd5b6020830191508360208260051b850101111561260257600080fd5b600080600060408486031215612bd257600080fd5b612bdb84612a0e565b9250602084013567ffffffffffffffff811115612bf757600080fd5b612c0386828701612b78565b9497909650939450505050565b60008083601f840112612c2257600080fd5b50813567ffffffffffffffff811115612c3a57600080fd5b60208301915083602082850101111561260257600080fd5b60008060008060408587031215612c6857600080fd5b843567ffffffffffffffff80821115612c8057600080fd5b612c8c88838901612c10565b90965094506020870135915080821115612ca557600080fd5b50612cb287828801612c10565b95989497509550505050565b60008060208385031215612cd157600080fd5b823567ffffffffffffffff811115612ce857600080fd5b612cf485828601612c10565b90969095509350505050565b60008060408385031215612d1357600080fd5b612b6183612b35565b60008060008060408587031215612d3257600080fd5b843567ffffffffffffffff80821115612d4a57600080fd5b612d5688838901612b78565b90965094506020870135915080821115612d6f57600080fd5b50612cb287828801612b78565b60008060008060008060808789031215612d9557600080fd5b612d9e87612a0e565b9550612dac60208801612a0e565b9450604087013567ffffffffffffffff80821115612dc957600080fd5b612dd58a838b01612b78565b90965094506060890135915080821115612dee57600080fd5b50612dfb89828a01612c10565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e3957600080fd5b612e4285612a0e565b9350612e5060208601612a0e565b925060408501359150606085013567ffffffffffffffff80821115612e7457600080fd5b818701915087601f830112612e8857600080fd5b813581811115612e9a57612e9a612e0d565b604051601f8201601f19908116603f01168101908382118183101715612ec257612ec2612e0d565b816040528281528a6020848701011115612edb57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215612f1457600080fd5b83359250602084013567ffffffffffffffff811115612f3257600080fd5b612c0386828701612c10565b60008060408385031215612f5157600080fd5b612f5a83612a0e565b9150612b6f60208401612a0e565b600181811c90821680612f7c57607f821691505b60208210811415612f9d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561300157613001612fd8565b500190565b60008282101561301857613018612fd8565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561309857613098612fd8565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60008161310757613107612fd8565b506000190190565b8054600090600181811c908083168061312957607f831692505b602080841082141561314b57634e487b7160e01b600052602260045260246000fd5b81801561315f57600181146131705761319d565b60ff1986168952848901965061319d565b60008881526020902060005b868110156131955781548b82015290850190830161317c565b505084890196505b50505050505092915050565b60006131b5828661310f565b84516131c58183602089016129a3565b6131d18183018661310f565b979650505050505050565b63026b0bc160e51b8152600082516131fb8160048501602087016129a3565b6a081c195c881dd85b1b195d60aa1b6004939091019283015250600f01919050565b600081600019048311821515161561323757613237612fd8565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826132b3576132b361328e565b500490565b6000826132c7576132c761328e565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906132ff908301846129cf565b9695505050505050565b60006020828403121561331b57600080fd5b8151610dff81612970565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250835161335d8160288501602088016129a3565b6131d16028828501018561310f565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205e14ad5a594003d4a8418c20e9ead75c8147a904758c6c3b9a982f003e129cca64736f6c634300080a0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.