ETH Price: $2,592.81 (+0.69%)
Gas: 3 Gwei

Token

SYNTHIA (SYNTHIA)
 

Overview

Max Total Supply

114 SYNTHIA

Holders

103

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SYNTHIA
0x0A933ABB3a022263890992B29E302d9453B4Bae5
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:
Synthia

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

import { ERC721Enumerable, ERC721 } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

//                           ,,
//                        ,,@@@@%/,
//                      ,%@@@@@@@@@(
//                      @@@@@@@@@@@@*
//                    *(@@@@@@@@@@@@@*
//                    #@@@@@@@@@@@@@@@*,
//                  ,*@@@@@@@@@@@@@@@@@,
//                  *#@@@@@@@@@@@@@@@@@%
//                     ,@@@@@@@@@@@&(/
//                      @@(,@@@@@,(@@
//                  #&@@@@@@@,@/@@@@@@@@@##
//               /@@@@@#@@@@@@@@@@@@@@@@@@@%,
//              .&@@@@@@@@@@%@@@(@@@@@@@@(#@&
//               @@@@%(/&/@@@%@@@@@@@@@#*@&&&
//               %%%&&&@@@@@@@@@@@@@@@&& %%##
//              ,*,  %&&@@@@@@@@@@@@@&&   .,/
//              %&&&/  &@@@@@@@@@@@@@    %&%&#
//              &&&&    @@@@@@@@@@#@@    ,&&&&
//             %&&&&  ,*@@@@@@@@@@@#/,    &%&&(
//             ((##*,,,,,@@@@@@@@@(@,,,   (#((/
//            %#((/*&&&@@@@@@@@@@#@@@&(,,  *(((
//            &&&,&&&@,*@@@@@@@@@@@,,@@%,   (&&#
//           /,&&@@@@@@@@/@@@@@@@@*@@@@,,,,&%/@%
//       ,,&@@@@@@@@@@@/,((&@@@@@@@@@@,@@@@@@@@&&&&.
//   ,@*(@@@&@@&@@,@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@%
//  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// ,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%
//  *@@@@@@@@@@@@@@@&@@@@%,,     *@@@@@@@@@@@@@@@@@@@(%
//
//  DRP x Pellar 2022
//  SYN_001 - Synthia Project

contract Synthia is Ownable, ERC721Enumerable {
  bool public revealed;
  bool public salesActive;
  uint16 public teamClaimed;

  uint16 public constant TEAM_SUPPLY = 27;
  uint16 public constant PUBLIC_SUPPLY = 333;
  uint16 public constant MAX_SUPPLY = 360;
  uint16 public constant MAX_PER_WALLET = 2;
  uint16 public totalClaimed;
  uint16 public boundary = 333;

  uint256 public constant MINT_PRICE = 0.2 ether;

  uint256 public foundersSalesStart = 1668207600;
  uint256 public foundersSalesEnd = 1668294000;
  uint256 public whitelistSalesStart = 1668466800;
  uint256 public publicSalesStart = 1668553200;

  address public verifier = 0x046c2c915d899D550471d0a7b4d0FaCF79Cde290;
  string public baseURI = "ipfs://QmdqX8gHvs6kZNvKSE3UprbFto2kUy8ZfNMe172oh6z3YZ/";
  string public preRevealURI = "ipfs://QmdijATCq4N45xCqCj3xwExJhtJagoBPg5HiXdzvNQERkf";

  mapping(uint16 => uint16) public randoms;
  mapping(uint16 => string) public uri;
  mapping(address => uint16) public nClaimed;

  constructor() ERC721("SYNTHIA", "SYNTHIA") {}

  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
    require(_exists(_tokenId), "Token doesn't exist");

    if (!revealed) {
      return preRevealURI;
    }

    if (bytes(uri[uint16(_tokenId)]).length > 0) {
      return uri[uint16(_tokenId)];
    }

    return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
  }

  function eligibleClaim(
    uint16 _maxAmount,
    address _account,
    bytes memory _signature,
    uint16 _amount
  ) public view returns (bool) {
    bytes32 message = keccak256(abi.encodePacked("synthia-drp", _maxAmount, _account));
    return validSignature(message, _signature) && nClaimed[_account] + _amount <= _maxAmount;
  }

  // founders and WL the same
  function whitelistMint(
    uint16 _maxAmount,
    bytes calldata _signature,
    uint16 _amount
  ) external payable {
    require(tx.origin == msg.sender, "Not allowed");
    // whitelist eligiblity (founders + regular WL)
    require((block.timestamp >= whitelistSalesStart && block.timestamp < publicSalesStart) || (block.timestamp >= foundersSalesStart && block.timestamp <= foundersSalesEnd), "Sales inactive");
    require(totalClaimed + _amount <= PUBLIC_SUPPLY, "Exceed max");
    require(eligibleClaim(_maxAmount, msg.sender, _signature, _amount), "Ineligible");
    require(msg.value >= MINT_PRICE * _amount, "Insufficient ETH");

    for (uint16 i = 0; i < _amount; i++) {
      _mintRandomToken(msg.sender);
    }
    totalClaimed += _amount;
    nClaimed[msg.sender] += _amount;
  }

  function mint(uint16 _amount) external payable {
    require(tx.origin == msg.sender, "Not allowed");
    require(publicSalesStart <= block.timestamp, "Sales inactive");
    require(totalClaimed + _amount <= PUBLIC_SUPPLY, "Exceed max");
    require(nClaimed[msg.sender] + _amount <= MAX_PER_WALLET, "Already claimed max");
    require(msg.value >= MINT_PRICE * _amount, "Insufficient ETH");

    for (uint16 i = 0; i < _amount; i++) {
      _mintRandomToken(msg.sender);
    }
    totalClaimed += _amount;
    nClaimed[msg.sender] += _amount;
  }

  function teamClaim(uint16 _amount) external onlyOwner {
    require(teamClaimed + _amount <= MAX_SUPPLY - PUBLIC_SUPPLY, "Already claimed");
    // sequential for team claim tokens
    for (uint16 i = 0; i < _amount; i++) {
      _safeMint(msg.sender, PUBLIC_SUPPLY + teamClaimed + i);
    }
    teamClaimed += _amount;
  }

  function setWhitelistSalesStart(uint256 startTime) external onlyOwner {
    whitelistSalesStart = startTime;
  }

  // also wl end
  function setPublicSalesStart(uint256 startTime) external onlyOwner {
    publicSalesStart = startTime;
  }

  function setFoundersSalesPeriod(uint256 startTime, uint256 endTime) external onlyOwner {
    foundersSalesStart = startTime;
    foundersSalesEnd = endTime;
  }

  function toggleRevealState(bool _state) external onlyOwner {
    revealed = _state;
  }

  function setBaseURI(string calldata _uri) external onlyOwner {
    baseURI = _uri;
  }

  function setPreRevealURI(string calldata _uri) external onlyOwner {
    preRevealURI = _uri;
  }

  function setTokensURI(uint16[] calldata _tokenIds, string[] calldata _uris) external onlyOwner {
    require(_tokenIds.length == _uris.length, "Input mismatch");
    for (uint256 i; i < _tokenIds.length; i++) {
      uri[_tokenIds[i]] = _uris[i];
    }
  }

  function setVerifier(address _account) external onlyOwner {
    verifier = _account;
  }

  // withdraw
  function withdraw() external onlyOwner {
    uint256 balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }

  /* Internal */
  function _mintRandomToken(address _to) internal {
    uint16 index = uint16(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, _to, totalSupply(), address(this)))) % boundary) + 1; // 1 -> 88
    uint16 tokenId = randoms[index] > 0 ? randoms[index] - 1 : index - 1;
    randoms[index] = randoms[boundary] > 0 ? randoms[boundary] : boundary;
    boundary -= 1;
    _safeMint(_to, tokenId);
  }

  function splitSignature(bytes memory _sig)
    internal
    pure
    returns (
      uint8,
      bytes32,
      bytes32
    )
  {
    require(_sig.length == 65, "Invalid signature length");

    uint8 v;
    bytes32 r;
    bytes32 s;
    assembly {
      r := mload(add(_sig, 32))
      s := mload(add(_sig, 64))
      v := byte(0, mload(add(_sig, 96)))
    }
    return (v, r, s);
  }

  function validSignature(bytes32 _message, bytes memory _signature) public view returns (bool) {
    bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _message));
    (uint8 v, bytes32 r, bytes32 s) = splitSignature(_signature);
    return ecrecover(ethSignedMessageHash, v, r, s) == verifier;
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 6 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

    /**
     * @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 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boundary","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxAmount","type":"uint16"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"eligibleClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"foundersSalesEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"foundersSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":"preRevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"randoms","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"salesActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"setFoundersSalesPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"setPublicSalesStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_tokenIds","type":"uint16[]"},{"internalType":"string[]","name":"_uris","type":"string[]"}],"name":"setTokensURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"setVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"setWhitelistSalesStart","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":"uint16","name":"_amount","type":"uint16"}],"name":"teamClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"toggleRevealState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_message","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"validSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxAmount","type":"uint16"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistSalesStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600b805467014d00000000000061ffff60301b1990911617905563636ed3f0600c556363702570600d55636372c870600e5563637419f0600f55601080546001600160a01b03191673046c2c915d899d550471d0a7b4d0facf79cde29017905560e060405260366080818152906200360660a03960119062000082908262000234565b506040518060600160405280603581526020016200363c60359139601290620000ac908262000234565b50348015620000ba57600080fd5b506040518060400160405280600781526020016653594e5448494160c81b8152506040518060400160405280600781526020016653594e5448494160c81b815250620001156200010f6200013b60201b60201c565b6200013f565b600162000123838262000234565b50600262000132828262000234565b50505062000300565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001ba57607f821691505b602082108103620001db57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022f57600081815260208120601f850160051c810160208610156200020a5750805b601f850160051c820191505b818110156200022b5782815560010162000216565b5050505b505050565b81516001600160401b038111156200025057620002506200018f565b6200026881620002618454620001a5565b84620001e1565b602080601f831160018114620002a05760008415620002875750858301515b600019600386901b1c1916600185901b1785556200022b565b600085815260208120601f198616915b82811015620002d157888601518255948401946001909101908401620002b0565b5085821015620002f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6132f680620003106000396000f3fe60806040526004361061031a5760003560e01c80636aa9ef37116101ab578063b374adbc116100f7578063da1f9fff11610095578063e985e9c51161006f578063e985e9c514610911578063f1746cf31461095a578063f2fde38b14610970578063f48f9e371461099057600080fd5b8063da1f9fff146108bb578063dd08898f146108db578063dd93f3d4146108f157600080fd5b8063c002d23d116100d1578063c002d23d14610846578063c677538a14610862578063c87b56dd14610878578063d54ad2a11461089857600080fd5b8063b374adbc146107fb578063b88d4fde14610811578063b9c3a8181461083157600080fd5b80638342083a1161016457806395d89b411161013e57806395d89b4114610775578063a22cb4651461078a578063a6764f7b146107aa578063aea90ba5146107ca57600080fd5b80638342083a1461072157806384999527146107375780638da5cb5b1461075757600080fd5b80636aa9ef37146106825780636c0360eb146106a257806370a08231146106b7578063715018a6146106d757806379b6ed36146106ec57806381393e0b1461070157600080fd5b80632f3346521161026a5780634a6bfa2d116102235780635437988d116101fd5780635437988d1461060257806355f804b3146106225780635863d70b146106425780636352211e1461066257600080fd5b80634a6bfa2d146105a95780634f6ccce7146105c857806351830227146105e857600080fd5b80632f334652146104fb5780632f745c591461051c57806332cb6b0c1461053c5780633ccfd60b1461055257806342842e0e146105675780634515798d1461058757600080fd5b806318160ddd116102d757806323cf0a22116102b157806323cf0a22146104885780632a85db551461049b5780632b7ac3f3146104bb5780632cdd74e9146104db57600080fd5b806318160ddd146104185780631e12ed421461043757806323b872dd1461046857600080fd5b806301ffc9a71461031f57806306fdde0314610354578063081812fc14610376578063095ea7b3146103ae5780630f2cdd6c146103d05780631080a0b2146103f8575b600080fd5b34801561032b57600080fd5b5061033f61033a3660046128d9565b6109a3565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b506103696109ce565b60405161034b919061294d565b34801561038257600080fd5b50610396610391366004612960565b610a60565b6040516001600160a01b03909116815260200161034b565b3480156103ba57600080fd5b506103ce6103c9366004612995565b610afa565b005b3480156103dc57600080fd5b506103e5600281565b60405161ffff909116815260200161034b565b34801561040457600080fd5b506103ce610413366004612a0b565b610c0f565b34801561042457600080fd5b506009545b60405190815260200161034b565b34801561044357600080fd5b506103e5610452366004612a89565b60136020526000908152604090205461ffff1681565b34801561047457600080fd5b506103ce610483366004612aa4565b610d0d565b6103ce610496366004612a89565b610d3e565b3480156104a757600080fd5b506103ce6104b6366004612b22565b610f85565b3480156104c757600080fd5b50601054610396906001600160a01b031681565b3480156104e757600080fd5b506103ce6104f6366004612960565b610fbc565b34801561050757600080fd5b50600b546103e59062010000900461ffff1681565b34801561052857600080fd5b50610429610537366004612995565b610feb565b34801561054857600080fd5b506103e561016881565b34801561055e57600080fd5b506103ce611081565b34801561057357600080fd5b506103ce610582366004612aa4565b6110de565b34801561059357600080fd5b50600b546103e590600160301b900461ffff1681565b3480156105b557600080fd5b50600b5461033f90610100900460ff1681565b3480156105d457600080fd5b506104296105e3366004612960565b6110f9565b3480156105f457600080fd5b50600b5461033f9060ff1681565b34801561060e57600080fd5b506103ce61061d366004612b64565b61118c565b34801561062e57600080fd5b506103ce61063d366004612b22565b6111d8565b34801561064e57600080fd5b5061036961065d366004612a89565b61120f565b34801561066e57600080fd5b5061039661067d366004612960565b6112a9565b34801561068e57600080fd5b5061033f61069d366004612c22565b611320565b3480156106ae57600080fd5b506103696113d4565b3480156106c357600080fd5b506104296106d2366004612b64565b6113e1565b3480156106e357600080fd5b506103ce611468565b3480156106f857600080fd5b5061036961149e565b34801561070d57600080fd5b506103ce61071c366004612ca1565b6114ab565b34801561072d57600080fd5b506103e561014d81565b34801561074357600080fd5b506103ce610752366004612960565b6114e8565b34801561076357600080fd5b506000546001600160a01b0316610396565b34801561078157600080fd5b50610369611517565b34801561079657600080fd5b506103ce6107a5366004612cbc565b611526565b3480156107b657600080fd5b506103ce6107c5366004612cef565b611531565b3480156107d657600080fd5b506103e56107e5366004612b64565b60156020526000908152604090205461ffff1681565b34801561080757600080fd5b50610429600c5481565b34801561081d57600080fd5b506103ce61082c366004612d11565b611566565b34801561083d57600080fd5b506103e5601b81565b34801561085257600080fd5b506104296702c68af0bb14000081565b34801561086e57600080fd5b50610429600d5481565b34801561088457600080fd5b50610369610893366004612960565b61159e565b3480156108a457600080fd5b50600b546103e590640100000000900461ffff1681565b3480156108c757600080fd5b506103ce6108d6366004612a89565b61170d565b3480156108e757600080fd5b50610429600f5481565b3480156108fd57600080fd5b5061033f61090c366004612d79565b61181f565b34801561091d57600080fd5b5061033f61092c366004612dc0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561096657600080fd5b50610429600e5481565b34801561097c57600080fd5b506103ce61098b366004612b64565b611905565b6103ce61099e366004612dea565b6119a0565b60006001600160e01b0319821663780e9d6360e01b14806109c857506109c882611c23565b92915050565b6060600180546109dd90612e44565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0990612e44565b8015610a565780601f10610a2b57610100808354040283529160200191610a56565b820191906000526020600020905b815481529060010190602001808311610a3957829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610ade5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b05826112a9565b9050806001600160a01b0316836001600160a01b031603610b725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad5565b336001600160a01b0382161480610b8e5750610b8e813361092c565b610c005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad5565b610c0a8383611c73565b505050565b6000546001600160a01b03163314610c395760405162461bcd60e51b8152600401610ad590612e7e565b828114610c795760405162461bcd60e51b815260206004820152600e60248201526d092dce0eae840dad2e6dac2e8c6d60931b6044820152606401610ad5565b60005b83811015610d0657828282818110610c9657610c96612eb3565b9050602002810190610ca89190612ec9565b60146000888886818110610cbe57610cbe612eb3565b9050602002016020810190610cd39190612a89565b61ffff168152602081019190915260400160002091610cf3919083612f5e565b5080610cfe81613034565b915050610c7c565b5050505050565b610d173382611ce1565b610d335760405162461bcd60e51b8152600401610ad59061304d565b610c0a838383611dd7565b323314610d7b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ad5565b42600f541115610dbe5760405162461bcd60e51b815260206004820152600e60248201526d53616c657320696e61637469766560901b6044820152606401610ad5565b600b5461014d90610ddc908390640100000000900461ffff1661309e565b61ffff161115610e1b5760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610ad5565b33600090815260156020526040902054600290610e3d90839061ffff1661309e565b61ffff161115610e855760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ad5565b610e9b61ffff82166702c68af0bb1400006130c0565b341015610edd5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610ad5565b60005b8161ffff168161ffff161015610f0b57610ef933611f7e565b80610f03816130d7565b915050610ee0565b5080600b60048282829054906101000a900461ffff16610f2b919061309e565b82546101009290920a61ffff81810219909316918316021790915533600090815260156020526040812080548594509092610f689185911661309e565b92506101000a81548161ffff021916908361ffff16021790555050565b6000546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610ad590612e7e565b6012610c0a828483612f5e565b6000546001600160a01b03163314610fe65760405162461bcd60e51b8152600401610ad590612e7e565b600f55565b6000610ff6836113e1565b82106110585760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ad5565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146110ab5760405162461bcd60e51b8152600401610ad590612e7e565b6040514790339082156108fc029083906000818181858888f193505050501580156110da573d6000803e3d6000fd5b5050565b610c0a83838360405180602001604052806000815250611566565b600061110460095490565b82106111675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ad5565b6009828154811061117a5761117a612eb3565b90600052602060002001549050919050565b6000546001600160a01b031633146111b65760405162461bcd60e51b8152600401610ad590612e7e565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146112025760405162461bcd60e51b8152600401610ad590612e7e565b6011610c0a828483612f5e565b6014602052600090815260409020805461122890612e44565b80601f016020809104026020016040519081016040528092919081815260200182805461125490612e44565b80156112a15780601f10611276576101008083540402835291602001916112a1565b820191906000526020600020905b81548152906001019060200180831161128457829003601f168201915b505050505081565b6000818152600360205260408120546001600160a01b0316806109c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad5565b6040516a073796e746869612d6472760ac1b60208201526001600160f01b031960f086901b16602b8201526bffffffffffffffffffffffff19606085901b16602d820152600090819060410160405160208183030381529060405280519060200120905061138e818561181f565b80156113c857506001600160a01b03851660009081526015602052604090205461ffff808816916113c19186911661309e565b61ffff1611155b9150505b949350505050565b6011805461122890612e44565b60006001600160a01b03821661144c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad5565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114925760405162461bcd60e51b8152600401610ad590612e7e565b61149c600061211e565b565b6012805461122890612e44565b6000546001600160a01b031633146114d55760405162461bcd60e51b8152600401610ad590612e7e565b600b805460ff1916911515919091179055565b6000546001600160a01b031633146115125760405162461bcd60e51b8152600401610ad590612e7e565b600e55565b6060600280546109dd90612e44565b6110da33838361216e565b6000546001600160a01b0316331461155b5760405162461bcd60e51b8152600401610ad590612e7e565b600c91909155600d55565b6115703383611ce1565b61158c5760405162461bcd60e51b8152600401610ad59061304d565b6115988484848461223c565b50505050565b6000818152600360205260409020546060906001600160a01b03166115fb5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b6044820152606401610ad5565b600b5460ff16611697576012805461161290612e44565b80601f016020809104026020016040519081016040528092919081815260200182805461163e90612e44565b801561168b5780601f106116605761010080835404028352916020019161168b565b820191906000526020600020905b81548152906001019060200180831161166e57829003601f168201915b50505050509050919050565b61ffff8216600090815260146020526040812080546116b590612e44565b905011156116db5761ffff82166000908152601460205260409020805461161290612e44565b60116116e68361226f565b6040516020016116f79291906130f8565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146117375760405162461bcd60e51b8152600401610ad590612e7e565b61174561014d61016861317f565b600b5461ffff91821691611762918491620100009091041661309e565b61ffff1611156117a65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610ad5565b60005b8161ffff168161ffff1610156117ff57600b546117ed90339083906117da9062010000900461ffff1661014d61309e565b6117e4919061309e565b61ffff16612370565b806117f7816130d7565b9150506117a9565b5080600b60028282829054906101000a900461ffff16610f68919061309e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050600080600061187d8661238a565b6010546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa1580156118e5573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6000546001600160a01b0316331461192f5760405162461bcd60e51b8152600401610ad590612e7e565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad5565b61199d8161211e565b50565b3233146119dd5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ad5565b600e5442101580156119f05750600f5442105b80611a0a5750600c544210158015611a0a5750600d544211155b611a475760405162461bcd60e51b815260206004820152600e60248201526d53616c657320696e61637469766560901b6044820152606401610ad5565b600b5461014d90611a65908390640100000000900461ffff1661309e565b61ffff161115611aa45760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610ad5565b611ae7843385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250611320915050565b611b205760405162461bcd60e51b815260206004820152600a602482015269496e656c696769626c6560b01b6044820152606401610ad5565b611b3661ffff82166702c68af0bb1400006130c0565b341015611b785760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610ad5565b60005b8161ffff168161ffff161015611ba657611b9433611f7e565b80611b9e816130d7565b915050611b7b565b5080600b60048282829054906101000a900461ffff16611bc6919061309e565b82546101009290920a61ffff81810219909316918316021790915533600090815260156020526040812080548594509092611c039185911661309e565b92506101000a81548161ffff021916908361ffff16021790555050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c5457506001600160e01b03198216635b5e139f60e01b145b806109c857506301ffc9a760e01b6001600160e01b03198316146109c8565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ca8826112a9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611d5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad5565b6000611d65836112a9565b9050806001600160a01b0316846001600160a01b03161480611dac57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806113cc5750836001600160a01b0316611dc584610a60565b6001600160a01b031614949350505050565b826001600160a01b0316611dea826112a9565b6001600160a01b031614611e4e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ad5565b6001600160a01b038216611eb05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad5565b611ebb8383836123fc565b611ec6600082611c73565b6001600160a01b0383166000908152600460205260408120805460019290611eef90849061319a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f1d9084906131ad565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460009061ffff600160301b90910416424484611f9c60095490565b6040805160208101959095528401929092526bffffffffffffffffffffffff19606091821b811682850152607484019290925230901b16609482015260a8016040516020818303038152906040528051906020012060001c611ffe91906131d6565b61200990600161309e565b61ffff80821660009081526013602052604081205492935091166120375761203260018361317f565b612059565b61ffff808316600090815260136020526040902054612059916001911661317f565b600b5461ffff600160301b90910481166000908152601360205260409020549192501661209357600b54600160301b900461ffff166120b4565b600b5461ffff600160301b9091048116600090815260136020526040902054165b61ffff8381166000908152601360205260409020805461ffff191692821692909217909155600b80546001926006916120f6918591600160301b90041661317f565b92506101000a81548161ffff021916908361ffff160217905550610c0a838261ffff16612370565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036121cf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad5565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612247848484611dd7565b612253848484846124b4565b6115985760405162461bcd60e51b8152600401610ad5906131ea565b6060816000036122965750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122c057806122aa81613034565b91506122b99050600a8361323c565b915061229a565b60008167ffffffffffffffff8111156122db576122db612b7f565b6040519080825280601f01601f191660200182016040528015612305576020820181803683370190505b5090505b84156113cc5761231a60018361319a565b9150612327600a866131d6565b6123329060306131ad565b60f81b81838151811061234757612347612eb3565b60200101906001600160f81b031916908160001a905350612369600a8661323c565b9450612309565b6110da8282604051806020016040528060008152506125b2565b600080600083516041146123e05760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ad5565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b0383166124575761245281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61247a565b816001600160a01b0316836001600160a01b03161461247a5761247a83826125e5565b6001600160a01b03821661249157610c0a81612682565b826001600160a01b0316826001600160a01b031614610c0a57610c0a8282612731565b60006001600160a01b0384163b156125aa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124f8903390899088908890600401613250565b6020604051808303816000875af1925050508015612533575060408051601f3d908101601f191682019092526125309181019061328d565b60015b612590573d808015612561576040519150601f19603f3d011682016040523d82523d6000602084013e612566565b606091505b5080516000036125885760405162461bcd60e51b8152600401610ad5906131ea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113cc565b5060016113cc565b6125bc8383612775565b6125c960008484846124b4565b610c0a5760405162461bcd60e51b8152600401610ad5906131ea565b600060016125f2846113e1565b6125fc919061319a565b60008381526008602052604090205490915080821461264f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126949060019061319a565b6000838152600a6020526040812054600980549394509092849081106126bc576126bc612eb3565b9060005260206000200154905080600983815481106126dd576126dd612eb3565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612715576127156132aa565b6001900381819060005260206000200160009055905550505050565b600061273c836113e1565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166127cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad5565b6000818152600360205260409020546001600160a01b0316156128305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad5565b61283c600083836123fc565b6001600160a01b03821660009081526004602052604081208054600192906128659084906131ad565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461199d57600080fd5b6000602082840312156128eb57600080fd5b81356128f6816128c3565b9392505050565b60005b83811015612918578181015183820152602001612900565b50506000910152565b600081518084526129398160208601602086016128fd565b601f01601f19169290920160200192915050565b6020815260006128f66020830184612921565b60006020828403121561297257600080fd5b5035919050565b80356001600160a01b038116811461299057600080fd5b919050565b600080604083850312156129a857600080fd5b6129b183612979565b946020939093013593505050565b60008083601f8401126129d157600080fd5b50813567ffffffffffffffff8111156129e957600080fd5b6020830191508360208260051b8501011115612a0457600080fd5b9250929050565b60008060008060408587031215612a2157600080fd5b843567ffffffffffffffff80821115612a3957600080fd5b612a45888389016129bf565b90965094506020870135915080821115612a5e57600080fd5b50612a6b878288016129bf565b95989497509550505050565b803561ffff8116811461299057600080fd5b600060208284031215612a9b57600080fd5b6128f682612a77565b600080600060608486031215612ab957600080fd5b612ac284612979565b9250612ad060208501612979565b9150604084013590509250925092565b60008083601f840112612af257600080fd5b50813567ffffffffffffffff811115612b0a57600080fd5b602083019150836020828501011115612a0457600080fd5b60008060208385031215612b3557600080fd5b823567ffffffffffffffff811115612b4c57600080fd5b612b5885828601612ae0565b90969095509350505050565b600060208284031215612b7657600080fd5b6128f682612979565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612ba657600080fd5b813567ffffffffffffffff80821115612bc157612bc1612b7f565b604051601f8301601f19908116603f01168101908282118183101715612be957612be9612b7f565b81604052838152866020858801011115612c0257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612c3857600080fd5b612c4185612a77565b9350612c4f60208601612979565b9250604085013567ffffffffffffffff811115612c6b57600080fd5b612c7787828801612b95565b925050612c8660608601612a77565b905092959194509250565b8035801515811461299057600080fd5b600060208284031215612cb357600080fd5b6128f682612c91565b60008060408385031215612ccf57600080fd5b612cd883612979565b9150612ce660208401612c91565b90509250929050565b60008060408385031215612d0257600080fd5b50508035926020909101359150565b60008060008060808587031215612d2757600080fd5b612d3085612979565b9350612d3e60208601612979565b925060408501359150606085013567ffffffffffffffff811115612d6157600080fd5b612d6d87828801612b95565b91505092959194509250565b60008060408385031215612d8c57600080fd5b82359150602083013567ffffffffffffffff811115612daa57600080fd5b612db685828601612b95565b9150509250929050565b60008060408385031215612dd357600080fd5b612ddc83612979565b9150612ce660208401612979565b60008060008060608587031215612e0057600080fd5b612e0985612a77565b9350602085013567ffffffffffffffff811115612e2557600080fd5b612e3187828801612ae0565b9094509250612c86905060408601612a77565b600181811c90821680612e5857607f821691505b602082108103612e7857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612ee057600080fd5b83018035915067ffffffffffffffff821115612efb57600080fd5b602001915036819003821315612a0457600080fd5b601f821115610c0a57600081815260208120601f850160051c81016020861015612f375750805b601f850160051c820191505b81811015612f5657828155600101612f43565b505050505050565b67ffffffffffffffff831115612f7657612f76612b7f565b612f8a83612f848354612e44565b83612f10565b6000601f841160018114612fbe5760008515612fa65750838201355b600019600387901b1c1916600186901b178355610d06565b600083815260209020601f19861690835b82811015612fef5786850135825560209485019460019092019101612fcf565b508682101561300c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016130465761304661301e565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b61ffff8181168382160190808211156130b9576130b961301e565b5092915050565b80820281158282048414176109c8576109c861301e565b600061ffff8083168181036130ee576130ee61301e565b6001019392505050565b600080845461310681612e44565b6001828116801561311e576001811461313357613162565b60ff1984168752821515830287019450613162565b8860005260208060002060005b858110156131595781548a820152908401908201613140565b50505082870194505b5050505083516131768183602088016128fd565b01949350505050565b61ffff8281168282160390808211156130b9576130b961301e565b818103818111156109c8576109c861301e565b808201808211156109c8576109c861301e565b634e487b7160e01b600052601260045260246000fd5b6000826131e5576131e56131c0565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261324b5761324b6131c0565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061328390830184612921565b9695505050505050565b60006020828403121561329f57600080fd5b81516128f6816128c3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d002a0fcbbeea890c765f42eb74b6fe7b4302ffc6caab014916e3f645ffe43b564736f6c63430008110033697066733a2f2f516d6471583867487673366b5a4e764b5345335570726246746f326b5579385a664e4d653137326f68367a33595a2f697066733a2f2f516d64696a41544371344e3435784371436a33787745784a68744a61676f42506735486958647a764e5145526b66

Deployed Bytecode

0x60806040526004361061031a5760003560e01c80636aa9ef37116101ab578063b374adbc116100f7578063da1f9fff11610095578063e985e9c51161006f578063e985e9c514610911578063f1746cf31461095a578063f2fde38b14610970578063f48f9e371461099057600080fd5b8063da1f9fff146108bb578063dd08898f146108db578063dd93f3d4146108f157600080fd5b8063c002d23d116100d1578063c002d23d14610846578063c677538a14610862578063c87b56dd14610878578063d54ad2a11461089857600080fd5b8063b374adbc146107fb578063b88d4fde14610811578063b9c3a8181461083157600080fd5b80638342083a1161016457806395d89b411161013e57806395d89b4114610775578063a22cb4651461078a578063a6764f7b146107aa578063aea90ba5146107ca57600080fd5b80638342083a1461072157806384999527146107375780638da5cb5b1461075757600080fd5b80636aa9ef37146106825780636c0360eb146106a257806370a08231146106b7578063715018a6146106d757806379b6ed36146106ec57806381393e0b1461070157600080fd5b80632f3346521161026a5780634a6bfa2d116102235780635437988d116101fd5780635437988d1461060257806355f804b3146106225780635863d70b146106425780636352211e1461066257600080fd5b80634a6bfa2d146105a95780634f6ccce7146105c857806351830227146105e857600080fd5b80632f334652146104fb5780632f745c591461051c57806332cb6b0c1461053c5780633ccfd60b1461055257806342842e0e146105675780634515798d1461058757600080fd5b806318160ddd116102d757806323cf0a22116102b157806323cf0a22146104885780632a85db551461049b5780632b7ac3f3146104bb5780632cdd74e9146104db57600080fd5b806318160ddd146104185780631e12ed421461043757806323b872dd1461046857600080fd5b806301ffc9a71461031f57806306fdde0314610354578063081812fc14610376578063095ea7b3146103ae5780630f2cdd6c146103d05780631080a0b2146103f8575b600080fd5b34801561032b57600080fd5b5061033f61033a3660046128d9565b6109a3565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b506103696109ce565b60405161034b919061294d565b34801561038257600080fd5b50610396610391366004612960565b610a60565b6040516001600160a01b03909116815260200161034b565b3480156103ba57600080fd5b506103ce6103c9366004612995565b610afa565b005b3480156103dc57600080fd5b506103e5600281565b60405161ffff909116815260200161034b565b34801561040457600080fd5b506103ce610413366004612a0b565b610c0f565b34801561042457600080fd5b506009545b60405190815260200161034b565b34801561044357600080fd5b506103e5610452366004612a89565b60136020526000908152604090205461ffff1681565b34801561047457600080fd5b506103ce610483366004612aa4565b610d0d565b6103ce610496366004612a89565b610d3e565b3480156104a757600080fd5b506103ce6104b6366004612b22565b610f85565b3480156104c757600080fd5b50601054610396906001600160a01b031681565b3480156104e757600080fd5b506103ce6104f6366004612960565b610fbc565b34801561050757600080fd5b50600b546103e59062010000900461ffff1681565b34801561052857600080fd5b50610429610537366004612995565b610feb565b34801561054857600080fd5b506103e561016881565b34801561055e57600080fd5b506103ce611081565b34801561057357600080fd5b506103ce610582366004612aa4565b6110de565b34801561059357600080fd5b50600b546103e590600160301b900461ffff1681565b3480156105b557600080fd5b50600b5461033f90610100900460ff1681565b3480156105d457600080fd5b506104296105e3366004612960565b6110f9565b3480156105f457600080fd5b50600b5461033f9060ff1681565b34801561060e57600080fd5b506103ce61061d366004612b64565b61118c565b34801561062e57600080fd5b506103ce61063d366004612b22565b6111d8565b34801561064e57600080fd5b5061036961065d366004612a89565b61120f565b34801561066e57600080fd5b5061039661067d366004612960565b6112a9565b34801561068e57600080fd5b5061033f61069d366004612c22565b611320565b3480156106ae57600080fd5b506103696113d4565b3480156106c357600080fd5b506104296106d2366004612b64565b6113e1565b3480156106e357600080fd5b506103ce611468565b3480156106f857600080fd5b5061036961149e565b34801561070d57600080fd5b506103ce61071c366004612ca1565b6114ab565b34801561072d57600080fd5b506103e561014d81565b34801561074357600080fd5b506103ce610752366004612960565b6114e8565b34801561076357600080fd5b506000546001600160a01b0316610396565b34801561078157600080fd5b50610369611517565b34801561079657600080fd5b506103ce6107a5366004612cbc565b611526565b3480156107b657600080fd5b506103ce6107c5366004612cef565b611531565b3480156107d657600080fd5b506103e56107e5366004612b64565b60156020526000908152604090205461ffff1681565b34801561080757600080fd5b50610429600c5481565b34801561081d57600080fd5b506103ce61082c366004612d11565b611566565b34801561083d57600080fd5b506103e5601b81565b34801561085257600080fd5b506104296702c68af0bb14000081565b34801561086e57600080fd5b50610429600d5481565b34801561088457600080fd5b50610369610893366004612960565b61159e565b3480156108a457600080fd5b50600b546103e590640100000000900461ffff1681565b3480156108c757600080fd5b506103ce6108d6366004612a89565b61170d565b3480156108e757600080fd5b50610429600f5481565b3480156108fd57600080fd5b5061033f61090c366004612d79565b61181f565b34801561091d57600080fd5b5061033f61092c366004612dc0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561096657600080fd5b50610429600e5481565b34801561097c57600080fd5b506103ce61098b366004612b64565b611905565b6103ce61099e366004612dea565b6119a0565b60006001600160e01b0319821663780e9d6360e01b14806109c857506109c882611c23565b92915050565b6060600180546109dd90612e44565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0990612e44565b8015610a565780601f10610a2b57610100808354040283529160200191610a56565b820191906000526020600020905b815481529060010190602001808311610a3957829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610ade5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b05826112a9565b9050806001600160a01b0316836001600160a01b031603610b725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad5565b336001600160a01b0382161480610b8e5750610b8e813361092c565b610c005760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad5565b610c0a8383611c73565b505050565b6000546001600160a01b03163314610c395760405162461bcd60e51b8152600401610ad590612e7e565b828114610c795760405162461bcd60e51b815260206004820152600e60248201526d092dce0eae840dad2e6dac2e8c6d60931b6044820152606401610ad5565b60005b83811015610d0657828282818110610c9657610c96612eb3565b9050602002810190610ca89190612ec9565b60146000888886818110610cbe57610cbe612eb3565b9050602002016020810190610cd39190612a89565b61ffff168152602081019190915260400160002091610cf3919083612f5e565b5080610cfe81613034565b915050610c7c565b5050505050565b610d173382611ce1565b610d335760405162461bcd60e51b8152600401610ad59061304d565b610c0a838383611dd7565b323314610d7b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ad5565b42600f541115610dbe5760405162461bcd60e51b815260206004820152600e60248201526d53616c657320696e61637469766560901b6044820152606401610ad5565b600b5461014d90610ddc908390640100000000900461ffff1661309e565b61ffff161115610e1b5760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610ad5565b33600090815260156020526040902054600290610e3d90839061ffff1661309e565b61ffff161115610e855760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ad5565b610e9b61ffff82166702c68af0bb1400006130c0565b341015610edd5760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610ad5565b60005b8161ffff168161ffff161015610f0b57610ef933611f7e565b80610f03816130d7565b915050610ee0565b5080600b60048282829054906101000a900461ffff16610f2b919061309e565b82546101009290920a61ffff81810219909316918316021790915533600090815260156020526040812080548594509092610f689185911661309e565b92506101000a81548161ffff021916908361ffff16021790555050565b6000546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610ad590612e7e565b6012610c0a828483612f5e565b6000546001600160a01b03163314610fe65760405162461bcd60e51b8152600401610ad590612e7e565b600f55565b6000610ff6836113e1565b82106110585760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ad5565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b031633146110ab5760405162461bcd60e51b8152600401610ad590612e7e565b6040514790339082156108fc029083906000818181858888f193505050501580156110da573d6000803e3d6000fd5b5050565b610c0a83838360405180602001604052806000815250611566565b600061110460095490565b82106111675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ad5565b6009828154811061117a5761117a612eb3565b90600052602060002001549050919050565b6000546001600160a01b031633146111b65760405162461bcd60e51b8152600401610ad590612e7e565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146112025760405162461bcd60e51b8152600401610ad590612e7e565b6011610c0a828483612f5e565b6014602052600090815260409020805461122890612e44565b80601f016020809104026020016040519081016040528092919081815260200182805461125490612e44565b80156112a15780601f10611276576101008083540402835291602001916112a1565b820191906000526020600020905b81548152906001019060200180831161128457829003601f168201915b505050505081565b6000818152600360205260408120546001600160a01b0316806109c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad5565b6040516a073796e746869612d6472760ac1b60208201526001600160f01b031960f086901b16602b8201526bffffffffffffffffffffffff19606085901b16602d820152600090819060410160405160208183030381529060405280519060200120905061138e818561181f565b80156113c857506001600160a01b03851660009081526015602052604090205461ffff808816916113c19186911661309e565b61ffff1611155b9150505b949350505050565b6011805461122890612e44565b60006001600160a01b03821661144c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad5565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114925760405162461bcd60e51b8152600401610ad590612e7e565b61149c600061211e565b565b6012805461122890612e44565b6000546001600160a01b031633146114d55760405162461bcd60e51b8152600401610ad590612e7e565b600b805460ff1916911515919091179055565b6000546001600160a01b031633146115125760405162461bcd60e51b8152600401610ad590612e7e565b600e55565b6060600280546109dd90612e44565b6110da33838361216e565b6000546001600160a01b0316331461155b5760405162461bcd60e51b8152600401610ad590612e7e565b600c91909155600d55565b6115703383611ce1565b61158c5760405162461bcd60e51b8152600401610ad59061304d565b6115988484848461223c565b50505050565b6000818152600360205260409020546060906001600160a01b03166115fb5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b6044820152606401610ad5565b600b5460ff16611697576012805461161290612e44565b80601f016020809104026020016040519081016040528092919081815260200182805461163e90612e44565b801561168b5780601f106116605761010080835404028352916020019161168b565b820191906000526020600020905b81548152906001019060200180831161166e57829003601f168201915b50505050509050919050565b61ffff8216600090815260146020526040812080546116b590612e44565b905011156116db5761ffff82166000908152601460205260409020805461161290612e44565b60116116e68361226f565b6040516020016116f79291906130f8565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146117375760405162461bcd60e51b8152600401610ad590612e7e565b61174561014d61016861317f565b600b5461ffff91821691611762918491620100009091041661309e565b61ffff1611156117a65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610ad5565b60005b8161ffff168161ffff1610156117ff57600b546117ed90339083906117da9062010000900461ffff1661014d61309e565b6117e4919061309e565b61ffff16612370565b806117f7816130d7565b9150506117a9565b5080600b60028282829054906101000a900461ffff16610f68919061309e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050600080600061187d8661238a565b6010546040805160008152602081018083528a905260ff861691810191909152606081018490526080810183905293965091945092506001600160a01b03169060019060a0016020604051602081039080840390855afa1580156118e5573d6000803e3d6000fd5b505050602060405103516001600160a01b03161494505050505092915050565b6000546001600160a01b0316331461192f5760405162461bcd60e51b8152600401610ad590612e7e565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad5565b61199d8161211e565b50565b3233146119dd5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610ad5565b600e5442101580156119f05750600f5442105b80611a0a5750600c544210158015611a0a5750600d544211155b611a475760405162461bcd60e51b815260206004820152600e60248201526d53616c657320696e61637469766560901b6044820152606401610ad5565b600b5461014d90611a65908390640100000000900461ffff1661309e565b61ffff161115611aa45760405162461bcd60e51b815260206004820152600a60248201526908af0c6cacac840dac2f60b31b6044820152606401610ad5565b611ae7843385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250611320915050565b611b205760405162461bcd60e51b815260206004820152600a602482015269496e656c696769626c6560b01b6044820152606401610ad5565b611b3661ffff82166702c68af0bb1400006130c0565b341015611b785760405162461bcd60e51b815260206004820152601060248201526f092dce6eaccccd2c6d2cadce8408aa8960831b6044820152606401610ad5565b60005b8161ffff168161ffff161015611ba657611b9433611f7e565b80611b9e816130d7565b915050611b7b565b5080600b60048282829054906101000a900461ffff16611bc6919061309e565b82546101009290920a61ffff81810219909316918316021790915533600090815260156020526040812080548594509092611c039185911661309e565b92506101000a81548161ffff021916908361ffff16021790555050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c5457506001600160e01b03198216635b5e139f60e01b145b806109c857506301ffc9a760e01b6001600160e01b03198316146109c8565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ca8826112a9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611d5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad5565b6000611d65836112a9565b9050806001600160a01b0316846001600160a01b03161480611dac57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806113cc5750836001600160a01b0316611dc584610a60565b6001600160a01b031614949350505050565b826001600160a01b0316611dea826112a9565b6001600160a01b031614611e4e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ad5565b6001600160a01b038216611eb05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad5565b611ebb8383836123fc565b611ec6600082611c73565b6001600160a01b0383166000908152600460205260408120805460019290611eef90849061319a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f1d9084906131ad565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b5460009061ffff600160301b90910416424484611f9c60095490565b6040805160208101959095528401929092526bffffffffffffffffffffffff19606091821b811682850152607484019290925230901b16609482015260a8016040516020818303038152906040528051906020012060001c611ffe91906131d6565b61200990600161309e565b61ffff80821660009081526013602052604081205492935091166120375761203260018361317f565b612059565b61ffff808316600090815260136020526040902054612059916001911661317f565b600b5461ffff600160301b90910481166000908152601360205260409020549192501661209357600b54600160301b900461ffff166120b4565b600b5461ffff600160301b9091048116600090815260136020526040902054165b61ffff8381166000908152601360205260409020805461ffff191692821692909217909155600b80546001926006916120f6918591600160301b90041661317f565b92506101000a81548161ffff021916908361ffff160217905550610c0a838261ffff16612370565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036121cf5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad5565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612247848484611dd7565b612253848484846124b4565b6115985760405162461bcd60e51b8152600401610ad5906131ea565b6060816000036122965750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122c057806122aa81613034565b91506122b99050600a8361323c565b915061229a565b60008167ffffffffffffffff8111156122db576122db612b7f565b6040519080825280601f01601f191660200182016040528015612305576020820181803683370190505b5090505b84156113cc5761231a60018361319a565b9150612327600a866131d6565b6123329060306131ad565b60f81b81838151811061234757612347612eb3565b60200101906001600160f81b031916908160001a905350612369600a8661323c565b9450612309565b6110da8282604051806020016040528060008152506125b2565b600080600083516041146123e05760405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ad5565b5050506020810151604082015160609092015160001a92909190565b6001600160a01b0383166124575761245281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61247a565b816001600160a01b0316836001600160a01b03161461247a5761247a83826125e5565b6001600160a01b03821661249157610c0a81612682565b826001600160a01b0316826001600160a01b031614610c0a57610c0a8282612731565b60006001600160a01b0384163b156125aa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124f8903390899088908890600401613250565b6020604051808303816000875af1925050508015612533575060408051601f3d908101601f191682019092526125309181019061328d565b60015b612590573d808015612561576040519150601f19603f3d011682016040523d82523d6000602084013e612566565b606091505b5080516000036125885760405162461bcd60e51b8152600401610ad5906131ea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113cc565b5060016113cc565b6125bc8383612775565b6125c960008484846124b4565b610c0a5760405162461bcd60e51b8152600401610ad5906131ea565b600060016125f2846113e1565b6125fc919061319a565b60008381526008602052604090205490915080821461264f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906126949060019061319a565b6000838152600a6020526040812054600980549394509092849081106126bc576126bc612eb3565b9060005260206000200154905080600983815481106126dd576126dd612eb3565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612715576127156132aa565b6001900381819060005260206000200160009055905550505050565b600061273c836113e1565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166127cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad5565b6000818152600360205260409020546001600160a01b0316156128305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad5565b61283c600083836123fc565b6001600160a01b03821660009081526004602052604081208054600192906128659084906131ad565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461199d57600080fd5b6000602082840312156128eb57600080fd5b81356128f6816128c3565b9392505050565b60005b83811015612918578181015183820152602001612900565b50506000910152565b600081518084526129398160208601602086016128fd565b601f01601f19169290920160200192915050565b6020815260006128f66020830184612921565b60006020828403121561297257600080fd5b5035919050565b80356001600160a01b038116811461299057600080fd5b919050565b600080604083850312156129a857600080fd5b6129b183612979565b946020939093013593505050565b60008083601f8401126129d157600080fd5b50813567ffffffffffffffff8111156129e957600080fd5b6020830191508360208260051b8501011115612a0457600080fd5b9250929050565b60008060008060408587031215612a2157600080fd5b843567ffffffffffffffff80821115612a3957600080fd5b612a45888389016129bf565b90965094506020870135915080821115612a5e57600080fd5b50612a6b878288016129bf565b95989497509550505050565b803561ffff8116811461299057600080fd5b600060208284031215612a9b57600080fd5b6128f682612a77565b600080600060608486031215612ab957600080fd5b612ac284612979565b9250612ad060208501612979565b9150604084013590509250925092565b60008083601f840112612af257600080fd5b50813567ffffffffffffffff811115612b0a57600080fd5b602083019150836020828501011115612a0457600080fd5b60008060208385031215612b3557600080fd5b823567ffffffffffffffff811115612b4c57600080fd5b612b5885828601612ae0565b90969095509350505050565b600060208284031215612b7657600080fd5b6128f682612979565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612ba657600080fd5b813567ffffffffffffffff80821115612bc157612bc1612b7f565b604051601f8301601f19908116603f01168101908282118183101715612be957612be9612b7f565b81604052838152866020858801011115612c0257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612c3857600080fd5b612c4185612a77565b9350612c4f60208601612979565b9250604085013567ffffffffffffffff811115612c6b57600080fd5b612c7787828801612b95565b925050612c8660608601612a77565b905092959194509250565b8035801515811461299057600080fd5b600060208284031215612cb357600080fd5b6128f682612c91565b60008060408385031215612ccf57600080fd5b612cd883612979565b9150612ce660208401612c91565b90509250929050565b60008060408385031215612d0257600080fd5b50508035926020909101359150565b60008060008060808587031215612d2757600080fd5b612d3085612979565b9350612d3e60208601612979565b925060408501359150606085013567ffffffffffffffff811115612d6157600080fd5b612d6d87828801612b95565b91505092959194509250565b60008060408385031215612d8c57600080fd5b82359150602083013567ffffffffffffffff811115612daa57600080fd5b612db685828601612b95565b9150509250929050565b60008060408385031215612dd357600080fd5b612ddc83612979565b9150612ce660208401612979565b60008060008060608587031215612e0057600080fd5b612e0985612a77565b9350602085013567ffffffffffffffff811115612e2557600080fd5b612e3187828801612ae0565b9094509250612c86905060408601612a77565b600181811c90821680612e5857607f821691505b602082108103612e7857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112612ee057600080fd5b83018035915067ffffffffffffffff821115612efb57600080fd5b602001915036819003821315612a0457600080fd5b601f821115610c0a57600081815260208120601f850160051c81016020861015612f375750805b601f850160051c820191505b81811015612f5657828155600101612f43565b505050505050565b67ffffffffffffffff831115612f7657612f76612b7f565b612f8a83612f848354612e44565b83612f10565b6000601f841160018114612fbe5760008515612fa65750838201355b600019600387901b1c1916600186901b178355610d06565b600083815260209020601f19861690835b82811015612fef5786850135825560209485019460019092019101612fcf565b508682101561300c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016130465761304661301e565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b61ffff8181168382160190808211156130b9576130b961301e565b5092915050565b80820281158282048414176109c8576109c861301e565b600061ffff8083168181036130ee576130ee61301e565b6001019392505050565b600080845461310681612e44565b6001828116801561311e576001811461313357613162565b60ff1984168752821515830287019450613162565b8860005260208060002060005b858110156131595781548a820152908401908201613140565b50505082870194505b5050505083516131768183602088016128fd565b01949350505050565b61ffff8281168282160390808211156130b9576130b961301e565b818103818111156109c8576109c861301e565b808201808211156109c8576109c861301e565b634e487b7160e01b600052601260045260246000fd5b6000826131e5576131e56131c0565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261324b5761324b6131c0565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061328390830184612921565b9695505050505050565b60006020828403121561329f57600080fd5b81516128f6816128c3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d002a0fcbbeea890c765f42eb74b6fe7b4302ffc6caab014916e3f645ffe43b564736f6c63430008110033

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.