ETH Price: $3,470.65 (+0.56%)

Voyager Bowls (VOYB)
 

Overview

TokenID

18

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
TBDVoyagerBowls

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 19 : TBDVoyagerBowls.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "tiny-erc721/contracts/TinyERC721.sol";

import "./TokenSale.sol";

contract TBDVoyagerBowls is TinyERC721, ERC2981, Ownable, TokenSale {
    uint256 public maxSupply = 1000;
    string private baseURI;

    // third constructor argument is maximum batch size, 0 for no limit
    constructor() TinyERC721("Voyager Bowls", "VOYB", 0) {}

    function cutSupply() external onlyOwner {
        maxSupply = totalSupply();
    }

    function setRoyalty(address receiver, uint96 value) external onlyOwner {
        _setDefaultRoyalty(receiver, value);
    }

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

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

    function _guardMint(address, uint256 quantity)
        internal
        view
        virtual
        override
    {
        unchecked {
            require(tx.origin == msg.sender, "Can't mint from contract");
            require(
                totalSupply() + quantity <= maxSupply,
                "Exceeds max supply"
            );
        }
    }

    function _mintTokens(address to, uint256 quantity)
        internal
        virtual
        override
    {
        _mint(to, quantity);
    }

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

    function withdraw(address receiver) external onlyOwner {
        (bool success, ) = receiver.call{value: address(this).balance}("");
        require(success, "Withdrawal failed");
    }
}

File 2 of 19 : TokenSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";

abstract contract TokenSale is Ownable {
    event SaleStatusChange(uint256 indexed saleId, bool enabled);

    using BitMaps for BitMaps.BitMap;

    struct SaleConfig {
        bool enabled;
        uint8 maxPerTransaction;
        uint64 unitPrice;
        address signerAddress;
    }

    mapping(uint256 => SaleConfig) private _saleConfig;
    mapping(uint256 => BitMaps.BitMap) private _allowlist;

    modifier canMint(
        uint256 saleId,
        address to,
        uint256 amount
    ) {
        _guardMint(to, amount);

        unchecked {
            SaleConfig memory saleConfig = _saleConfig[saleId];
            require(saleConfig.enabled, "Sale not enabled");
            require(
                amount <= saleConfig.maxPerTransaction,
                "Exceeds max per transaction"
            );
            require(
                amount * saleConfig.unitPrice == msg.value,
                "Invalid funds provided"
            );
        }

        _;
    }

    function allowlistMint(
        uint256 saleId,
        uint256 amount,
        uint256 nonce,
        bytes calldata signature
    ) external payable virtual canMint(saleId, _msgSender(), amount) {
        require(
            _validateSignature(saleId, nonce, signature),
            "Invalid signature"
        );
        require(!_allowlist[saleId].get(nonce), "Nonce already used");

        _allowlist[saleId].set(nonce);

        _mintTokens(_msgSender(), amount);
    }

    function devMint(uint256 amount) external virtual onlyOwner {
        _guardMint(_msgSender(), amount);

        _mintTokens(_msgSender(), amount);
    }

    function getSaleConfig(uint256 saleId)
        external
        view
        returns (SaleConfig memory)
    {
        return _saleConfig[saleId];
    }

    function setSaleConfig(
        uint256 saleId,
        uint256 maxPerTransaction,
        uint256 unitPrice,
        address signerAddress
    ) external onlyOwner {
        _saleConfig[saleId].maxPerTransaction = uint8(maxPerTransaction);
        _saleConfig[saleId].unitPrice = uint64(unitPrice);
        _saleConfig[saleId].signerAddress = signerAddress;
    }

    function setSaleStatus(uint256 saleId, bool enabled) external onlyOwner {
        if (_saleConfig[saleId].enabled != enabled) {
            _saleConfig[saleId].enabled = enabled;
            emit SaleStatusChange(saleId, enabled);
        }
    }

    function getAllowlistNonceStatus(uint256 saleId, uint256 nonce)
        external
        view
        returns (bool)
    {
        BitMaps.BitMap storage allowlist = _allowlist[saleId];
        return allowlist.get(nonce);
    }

    function setAllowlistNonceStatus(
        uint256 saleId,
        uint256 nonce,
        bool value
    ) external onlyOwner {
        BitMaps.BitMap storage allowlist = _allowlist[saleId];
        allowlist.setTo(nonce, value);
    }

    function _validateSignature(
        uint256 saleId,
        uint256 nonce,
        bytes calldata signature
    ) internal view virtual returns (bool) {
        bytes32 dataHash = keccak256(
            abi.encodePacked(saleId, nonce, _msgSender())
        );
        bytes32 message = ECDSA.toEthSignedMessageHash(dataHash);

        return
            SignatureChecker.isValidSignatureNow(
                _saleConfig[saleId].signerAddress,
                message,
                signature
            );
    }

    function _guardMint(address to, uint256 quantity) internal view virtual {}

    function _mintTokens(address to, uint256 quantity) internal virtual;
}

File 3 of 19 : TinyERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error TokenDataQueryForNonexistentToken();
error OwnerQueryForNonexistentToken();
error OperatorQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

  struct TokenData {
    address owner;
    bytes12 aux;
  }

  uint256 private immutable _maxBatchSize;

  mapping(uint256 => TokenData) private _tokens;
  uint256 private _mintCounter;

  string private _name;
  string private _symbol;

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

  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_
  ) {
    _name = name_;
    _symbol = symbol_;
    _maxBatchSize = maxBatchSize_;
  }

  function totalSupply() public view virtual returns (uint256) {
    return _mintCounter;
  }

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

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

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

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

  function _baseURI() internal view virtual returns (string memory) {
    return '';
  }

  function balanceOf(address owner) public view virtual override returns (uint256) {
    if (owner == address(0)) revert BalanceQueryForZeroAddress();

    uint256 total = totalSupply();
    uint256 count;
    address lastOwner;
    for (uint256 i; i < total; ++i) {
      address tokenOwner = _tokens[i].owner;
      if (tokenOwner != address(0)) lastOwner = tokenOwner;
      if (lastOwner == owner) ++count;
    }

    return count;
  }

  function _tokenData(uint256 tokenId) internal view returns (TokenData storage) {
    if (!_exists(tokenId)) revert TokenDataQueryForNonexistentToken();

    TokenData storage token = _tokens[tokenId];
    uint256 currentIndex = tokenId;
    while (token.owner == address(0)) {
      unchecked {
        --currentIndex;
      }
      token = _tokens[currentIndex];
    }

    return token;
  }

  function ownerOf(uint256 tokenId) public view virtual override returns (address) {
    if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();
    return _tokenData(tokenId).owner;
  }

  function approve(address to, uint256 tokenId) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    address owner = token.owner;
    if (to == owner) revert ApprovalToCurrentOwner();

    if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
      revert ApprovalCallerNotOwnerNorApproved();
    }

    _approve(to, tokenId, token);
  }

  function getApproved(uint256 tokenId) public view virtual override returns (address) {
    if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

    return _tokenApprovals[tokenId];
  }

  function setApprovalForAll(address operator, bool approved) public virtual override {
    if (operator == _msgSender()) revert ApproveToCaller();

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

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

  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved();

    _transfer(from, to, tokenId, token);
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    safeTransferFrom(from, to, tokenId, '');
  }

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public virtual override {
    TokenData memory token = _tokenData(tokenId);
    if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved();

    _safeTransfer(from, to, tokenId, token, _data);
  }

  function _safeTransfer(
    address from,
    address to,
    uint256 tokenId,
    TokenData memory token,
    bytes memory _data
  ) internal virtual {
    _transfer(from, to, tokenId, token);

    if (to.isContract() && !_checkOnERC721Received(from, to, tokenId, _data))
      revert TransferToNonERC721ReceiverImplementer();
  }

  function _exists(uint256 tokenId) internal view virtual returns (bool) {
    return tokenId < _mintCounter;
  }

  function _isApprovedOrOwner(
    address spender,
    uint256 tokenId,
    TokenData memory token
  ) internal view virtual returns (bool) {
    address owner = token.owner;
    return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
  }

  function _safeMint(address to, uint256 quantity) internal virtual {
    _safeMint(to, quantity, '');
  }

  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal virtual {
    uint256 startTokenId = _mintCounter;
    _mint(to, quantity);

    if (to.isContract()) {
      unchecked {
        for (uint256 i; i < quantity; ++i) {
          if (!_checkOnERC721Received(address(0), to, startTokenId + i, _data))
            revert TransferToNonERC721ReceiverImplementer();
        }
      }
    }
  }

  function _mint(address to, uint256 quantity) internal virtual {
    if (to == address(0)) revert MintToZeroAddress();
    if (quantity == 0) revert MintZeroQuantity();

    uint256 startTokenId = _mintCounter;
    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    unchecked {
      for (uint256 i; i < quantity; ++i) {
        if (_maxBatchSize == 0 ? i == 0 : i % _maxBatchSize == 0) {
          TokenData storage token = _tokens[startTokenId + i];
          token.owner = to;
          token.aux = _calculateAux(address(0), to, startTokenId + i, 0);
        }

        emit Transfer(address(0), to, startTokenId + i);
      }
      _mintCounter += quantity;
    }

    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  function _transfer(
    address from,
    address to,
    uint256 tokenId,
    TokenData memory token
  ) internal virtual {
    if (token.owner != from) revert TransferFromIncorrectOwner();
    if (to == address(0)) revert TransferToZeroAddress();

    _beforeTokenTransfers(from, to, tokenId, 1);

    _approve(address(0), tokenId, token);

    unchecked {
      uint256 nextTokenId = tokenId + 1;
      if (_exists(nextTokenId)) {
        TokenData storage nextToken = _tokens[nextTokenId];
        if (nextToken.owner == address(0)) {
          nextToken.owner = token.owner;
          nextToken.aux = token.aux;
        }
      }
    }

    TokenData storage newToken = _tokens[tokenId];
    newToken.owner = to;
    newToken.aux = _calculateAux(from, to, tokenId, token.aux);

    emit Transfer(from, to, tokenId);

    _afterTokenTransfers(from, to, tokenId, 1);
  }

  function _calculateAux(
    address from,
    address to,
    uint256 tokenId,
    bytes12 current
  ) internal view virtual returns (bytes12) {}

  function _approve(
    address to,
    uint256 tokenId,
    TokenData memory token
  ) internal virtual {
    _tokenApprovals[tokenId] = to;
    emit Approval(token.owner, to, tokenId);
  }

  function _checkOnERC721Received(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) private returns (bool) {
    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 TransferToNonERC721ReceiverImplementer();
      } else {
        assembly {
          revert(add(32, reason), mload(reason))
        }
      }
    }
  }

  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

File 4 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 5 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 6 of 19 : 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 7 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 8 of 19 : 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 9 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 19 : 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 12 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 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 13 of 19 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 14 of 19 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.1) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../Address.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length == 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 15 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 16 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 17 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 18 of 19 : 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);
}

File 19 of 19 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenDataQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SaleStatusChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":"cutSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getAllowlistNonceStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"getSaleConfig","outputs":[{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint8","name":"maxPerTransaction","type":"uint8"},{"internalType":"uint64","name":"unitPrice","type":"uint64"},{"internalType":"address","name":"signerAddress","type":"address"}],"internalType":"struct TokenSale.SaleConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAllowlistNonceStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"maxPerTransaction","type":"uint256"},{"internalType":"uint256","name":"unitPrice","type":"uint256"},{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526103e8600b553480156200001757600080fd5b506040518060400160405280600d81526020016c566f796167657220426f776c7360981b815250604051806040016040528060048152602001632b27aca160e11b815250600082600290816200006e91906200018c565b5060036200007d83826200018c565b50608052506200008f90503362000095565b62000258565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011257607f821691505b6020821081036200013357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018757600081815260208120601f850160051c81016020861015620001625750805b601f850160051c820191505b8181101562000183578281556001016200016e565b5050505b505050565b81516001600160401b03811115620001a857620001a8620000e7565b620001c081620001b98454620000fd565b8462000139565b602080601f831160018114620001f85760008415620001df5750858301515b600019600386901b1c1916600185901b17855562000183565b600085815260208120601f198616915b82811015620002295788860151825594840194600190910190840162000208565b5085821015620002485787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516125e66200027b600039600081816119e60152611a0c01526125e66000f3fe6080604052600436106101cd5760003560e01c80636352211e116100f7578063b54c5c3111610095578063d17f57b711610064578063d17f57b7146105fd578063d5abeb011461061d578063e985e9c514610633578063f2fde38b1461067c57600080fd5b8063b54c5c311461057d578063b88d4fde1461059d578063c5fa9ace146105bd578063c87b56dd146105dd57600080fd5b80638da5cb5b116100d15780638da5cb5b1461050a5780638f2fc60b1461052857806395d89b4114610548578063a22cb4651461055d57600080fd5b80636352211e146104b557806370a08231146104d5578063715018a6146104f557600080fd5b806321d805cc1161016f57806342842e0e1161013e57806342842e0e146104425780634831793d1461046257806351cff8d91461047557806355f804b31461049557600080fd5b806321d805cc146103ae57806323b872dd146103c35780632a55205a146103e3578063375a069a1461042257600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806314bedada1461028357806318160ddd146102a357806318d425d1146102c257600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611e3a565b61069c565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6106ad565b6040516101fe9190611ea7565b34801561023557600080fd5b50610249610244366004611eba565b61073f565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611eef565b610785565b005b34801561028f57600080fd5b5061028161029e366004611f19565b610839565b3480156102af57600080fd5b506001545b6040519081526020016101fe565b3480156102ce57600080fd5b506103636102dd366004611eba565b604080516080810182526000808252602082018190529181018290526060810191909152506000908152600960209081526040918290208251608081018452905460ff808216151583526101008204169282019290925262010000820467ffffffffffffffff1692810192909252600160501b90046001600160a01b0316606082015290565b6040516101fe919081511515815260208083015160ff169082015260408083015167ffffffffffffffff16908201526060918201516001600160a01b03169181019190915260800190565b3480156103ba57600080fd5b506102816108ce565b3480156103cf57600080fd5b506102816103de366004611f58565b6108de565b3480156103ef57600080fd5b506104036103fe366004611f94565b610950565b604080516001600160a01b0390931683526020830191909152016101fe565b34801561042e57600080fd5b5061028161043d366004611eba565b610a0d565b34801561044e57600080fd5b5061028161045d366004611f58565b610a2c565b610281610470366004611fb6565b610a4c565b34801561048157600080fd5b50610281610490366004612043565b610ccb565b3480156104a157600080fd5b506102816104b03660046120ea565b610d7a565b3480156104c157600080fd5b506102496104d0366004611eba565b610d8e565b3480156104e157600080fd5b506102b46104f0366004612043565b610dd1565b34801561050157600080fd5b50610281610e77565b34801561051657600080fd5b506008546001600160a01b0316610249565b34801561053457600080fd5b50610281610543366004612133565b610e8b565b34801561055457600080fd5b5061021c610e9d565b34801561056957600080fd5b5061028161057836600461218b565b610eac565b34801561058957600080fd5b506102816105983660046121be565b610f41565b3480156105a957600080fd5b506102816105b83660046121e1565b610fbc565b3480156105c957600080fd5b506101f26105d8366004611f94565b611036565b3480156105e957600080fd5b5061021c6105f8366004611eba565b611068565b34801561060957600080fd5b5061028161061836600461225d565b6110ee565b34801561062957600080fd5b506102b4600b5481565b34801561063f57600080fd5b506101f261064e366004612292565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561068857600080fd5b50610281610697366004612043565b61110f565b60006106a78261119c565b92915050565b6060600280546106bc906122bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106e8906122bc565b80156107355780601f1061070a57610100808354040283529160200191610735565b820191906000526020600020905b81548152906001019060200180831161071857829003601f168201915b5050505050905090565b600061074c826001541190565b610769576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610790826111c1565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036107ea5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061080a5750610808813361064e565b155b15610828576040516367d9dca160e11b815260040160405180910390fd5b61083384848461122a565b50505050565b61084161128b565b60009384526009602052604090932080546001600160a01b03909416600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff67ffffffffffffffff909316620100000269ffffffffffffffff00001960ff909516610100029490941669ffffffffffffffffff0019909516949094179290921716919091179055565b6108d661128b565b600154600b55565b60006108e9826111c1565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506109273383836112e5565b61094457604051632ce44b5f60e11b815260040160405180910390fd5b61083384848484611356565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916109cf5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906109f3906bffffffffffffffffffffffff168761230c565b6109fd9190612339565b91519350909150505b9250929050565b610a1561128b565b610a1f3382611462565b610a29338261150d565b50565b610a4783838360405180602001604052806000815250610fbc565b505050565b843385610a598282611462565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610b0c5760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f7420656e61626c65640000000000000000000000000000000060448201526064015b60405180910390fd5b806020015160ff16821115610b635760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610b03565b34816040015167ffffffffffffffff16830214610bc25760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610b03565b50610bcf88878787611517565b610c1b5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610b03565b6000888152600a6020908152604080832060088a901c8452909152902054600160ff88161b1615610c8e5760405162461bcd60e51b815260206004820152601260248201527f4e6f6e636520616c7265616479207573656400000000000000000000000000006044820152606401610b03565b6000888152600a6020908152604080832060088a901c845290915290208054600160ff89161b179055610cc1338861150d565b5050505050505050565b610cd361128b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610d20576040519150601f19603f3d011682016040523d82523d6000602084013e610d25565b606091505b5050905080610d765760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610b03565b5050565b610d8261128b565b600c610d76828261239b565b6000610d9b826001541190565b610db857604051636f96cda160e11b815260040160405180910390fd5b610dc1826111c1565b546001600160a01b031692915050565b60006001600160a01b038216610dfa576040516323d3ad8160e21b815260040160405180910390fd5b6000610e0560015490565b905060008060005b83811015610e6d576000818152602081905260409020546001600160a01b03168015610e37578092505b866001600160a01b0316836001600160a01b031603610e5c57610e598461245b565b93505b50610e668161245b565b9050610e0d565b5090949350505050565b610e7f61128b565b610e896000611610565b565b610e9361128b565b610d768282611662565b6060600380546106bc906122bc565b336001600160a01b03831603610ed55760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f4961128b565b60008281526009602052604090205460ff16151581151514610d7657600082815260096020908152604091829020805460ff1916841515908117909155915191825283917fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a25050565b6000610fc7836111c1565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506110053384836112e5565b61102257604051632ce44b5f60e11b815260040160405180910390fd5b61102f858585848661177c565b5050505050565b6000828152600a60209081526040808320600885901c845291829052822054600160ff85161b1615155b949350505050565b6060611075826001541190565b61109257604051630a14c4b560e41b815260040160405180910390fd5b600061109c6117c8565b905060008151116110bc57604051806020016040528060008152506110e7565b806110c6846117d7565b6040516020016110d7929190612474565b6040516020818303038152906040525b9392505050565b6110f661128b565b6000838152600a602052604090206108338184846118f0565b61111761128b565b6001600160a01b0381166111935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b03565b610a2981611610565b60006001600160e01b0319821663152a902d60e11b14806106a757506106a78261193f565b60006111ce826001541190565b6111eb576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b03166112235760001901600081815260208190526040902091506111fb565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b6008546001600160a01b03163314610e895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b03565b80516000906001600160a01b03858116908216148061132957506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b8061134d5750846001600160a01b03166113428561073f565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b03161461138b5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166113b257604051633a954ecd60e21b815260040160405180910390fd5b6113be6000838361122a565b600182016113cd816001541190565b1561141057600081815260208190526040902080546001600160a01b031661140e578251602084015160a01c600160a01b026001600160a01b039091161781555b505b506000828152602081905260408082206001600160a01b0386811680835592519193869392918916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a461102f565b3233146114b15760405162461bcd60e51b815260206004820152601860248201527f43616e2774206d696e742066726f6d20636f6e747261637400000000000000006044820152606401610b03565b600b54816114be60015490565b011115610d765760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610b03565b610d76828261198f565b60408051602080820187905281830186905233606090811b6bffffffffffffffffffffffff191690830152825160548184030181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b08084018290528451808503909101815260d09093019093528151910120600091908290600088815260096020908152604091829020548251601f890183900483028101830190935287835292935061160592600160501b90046001600160a01b03169184918990899081908401838280828437600092019190915250611ab692505050565b979650505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff821611156116e85760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b03565b6001600160a01b03821661173e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b03565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b61178885858585611356565b6001600160a01b0384163b151580156117aa57506117a885858584611c0d565b155b1561102f576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546106bc906122bc565b6060816000036117fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561182857806118128161245b565b91506118219050600a83612339565b9150611802565b60008167ffffffffffffffff8111156118435761184361205e565b6040519080825280601f01601f19166020018201604052801561186d576020820181803683370190505b5090505b8415611060576118826001836124a3565b915061188f600a866124b6565b61189a9060306124ca565b60f81b8183815181106118af576118af6124dd565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506118e9600a86612339565b9450611871565b801561191a57600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006001600160e01b031982166380ac58cd60e01b148061197057506001600160e01b03198216635b5e139f60e01b145b806106a757506301ffc9a760e01b6001600160e01b03198316146106a7565b6001600160a01b0382166119b557604051622e076360e81b815260040160405180910390fd5b806000036119d65760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611aa8577f000000000000000000000000000000000000000000000000000000000000000015611a40577f00000000000000000000000000000000000000000000000000000000000000008181611a3957611a39612323565b0615611a43565b80155b15611a665781810160009081526020819052604090206001600160a01b03851690555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001016119dc565b506001805483019055505050565b6000806000611ac58585611cf5565b90925090506000816004811115611ade57611ade6124f3565b148015611afc5750856001600160a01b0316826001600160a01b0316145b15611b0c576001925050506110e7565b600080876001600160a01b0316631626ba7e60e01b8888604051602401611b34929190612509565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051611b879190612522565b600060405180830381855afa9150503d8060008114611bc2576040519150601f19603f3d011682016040523d82523d6000602084013e611bc7565b606091505b5091509150818015611bda575080516020145b8015611c0157508051630b135d3f60e11b90611bff908301602090810190840161253e565b145b98975050505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c42903390899088908890600401612557565b6020604051808303816000875af1925050508015611c7d575060408051601f3d908101601f19168201909252611c7a91810190612593565b60015b611cdb573d808015611cab576040519150601f19603f3d011682016040523d82523d6000602084013e611cb0565b606091505b508051600003611cd3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611060565b6000808251604103611d2b5760208301516040840151606085015160001a611d1f87828585611d37565b94509450505050610a06565b50600090506002610a06565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d6e5750600090506003611e1b565b8460ff16601b14158015611d8657508460ff16601c14155b15611d975750600090506004611e1b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611deb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611e1457600060019250925050611e1b565b9150600090505b94509492505050565b6001600160e01b031981168114610a2957600080fd5b600060208284031215611e4c57600080fd5b81356110e781611e24565b60005b83811015611e72578181015183820152602001611e5a565b50506000910152565b60008151808452611e93816020860160208601611e57565b601f01601f19169290920160200192915050565b6020815260006110e76020830184611e7b565b600060208284031215611ecc57600080fd5b5035919050565b80356001600160a01b0381168114611eea57600080fd5b919050565b60008060408385031215611f0257600080fd5b611f0b83611ed3565b946020939093013593505050565b60008060008060808587031215611f2f57600080fd5b843593506020850135925060408501359150611f4d60608601611ed3565b905092959194509250565b600080600060608486031215611f6d57600080fd5b611f7684611ed3565b9250611f8460208501611ed3565b9150604084013590509250925092565b60008060408385031215611fa757600080fd5b50508035926020909101359150565b600080600080600060808688031215611fce57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611ffb57600080fd5b818801915088601f83011261200f57600080fd5b81358181111561201e57600080fd5b89602082850101111561203057600080fd5b9699959850939650602001949392505050565b60006020828403121561205557600080fd5b6110e782611ed3565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561208f5761208f61205e565b604051601f8501601f19908116603f011681019082821181831017156120b7576120b761205e565b816040528093508581528686860111156120d057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156120fc57600080fd5b813567ffffffffffffffff81111561211357600080fd5b8201601f8101841361212457600080fd5b61106084823560208401612074565b6000806040838503121561214657600080fd5b61214f83611ed3565b915060208301356bffffffffffffffffffffffff8116811461217057600080fd5b809150509250929050565b80358015158114611eea57600080fd5b6000806040838503121561219e57600080fd5b6121a783611ed3565b91506121b56020840161217b565b90509250929050565b600080604083850312156121d157600080fd5b823591506121b56020840161217b565b600080600080608085870312156121f757600080fd5b61220085611ed3565b935061220e60208601611ed3565b925060408501359150606085013567ffffffffffffffff81111561223157600080fd5b8501601f8101871361224257600080fd5b61225187823560208401612074565b91505092959194509250565b60008060006060848603121561227257600080fd5b83359250602084013591506122896040850161217b565b90509250925092565b600080604083850312156122a557600080fd5b6122ae83611ed3565b91506121b560208401611ed3565b600181811c908216806122d057607f821691505b6020821081036122f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106a7576106a76122f6565b634e487b7160e01b600052601260045260246000fd5b60008261234857612348612323565b500490565b601f821115610a4757600081815260208120601f850160051c810160208610156123745750805b601f850160051c820191505b8181101561239357828155600101612380565b505050505050565b815167ffffffffffffffff8111156123b5576123b561205e565b6123c9816123c384546122bc565b8461234d565b602080601f8311600181146123fe57600084156123e65750858301515b600019600386901b1c1916600185901b178555612393565b600085815260208120601f198616915b8281101561242d5788860151825594840194600190910190840161240e565b508582101561244b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001820161246d5761246d6122f6565b5060010190565b60008351612486818460208801611e57565b83519083019061249a818360208801611e57565b01949350505050565b818103818111156106a7576106a76122f6565b6000826124c5576124c5612323565b500690565b808201808211156106a7576106a76122f6565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b8281526040602082015260006110606040830184611e7b565b60008251612534818460208701611e57565b9190910192915050565b60006020828403121561255057600080fd5b5051919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125896080830184611e7b565b9695505050505050565b6000602082840312156125a557600080fd5b81516110e781611e2456fea264697066735822122012942d791ae38b8244cf80b1619f63eda6fd690cda1a4d62f435dc42ed3bb9c164736f6c63430008110033

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80636352211e116100f7578063b54c5c3111610095578063d17f57b711610064578063d17f57b7146105fd578063d5abeb011461061d578063e985e9c514610633578063f2fde38b1461067c57600080fd5b8063b54c5c311461057d578063b88d4fde1461059d578063c5fa9ace146105bd578063c87b56dd146105dd57600080fd5b80638da5cb5b116100d15780638da5cb5b1461050a5780638f2fc60b1461052857806395d89b4114610548578063a22cb4651461055d57600080fd5b80636352211e146104b557806370a08231146104d5578063715018a6146104f557600080fd5b806321d805cc1161016f57806342842e0e1161013e57806342842e0e146104425780634831793d1461046257806351cff8d91461047557806355f804b31461049557600080fd5b806321d805cc146103ae57806323b872dd146103c35780632a55205a146103e3578063375a069a1461042257600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806314bedada1461028357806318160ddd146102a357806318d425d1146102c257600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611e3a565b61069c565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6106ad565b6040516101fe9190611ea7565b34801561023557600080fd5b50610249610244366004611eba565b61073f565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611eef565b610785565b005b34801561028f57600080fd5b5061028161029e366004611f19565b610839565b3480156102af57600080fd5b506001545b6040519081526020016101fe565b3480156102ce57600080fd5b506103636102dd366004611eba565b604080516080810182526000808252602082018190529181018290526060810191909152506000908152600960209081526040918290208251608081018452905460ff808216151583526101008204169282019290925262010000820467ffffffffffffffff1692810192909252600160501b90046001600160a01b0316606082015290565b6040516101fe919081511515815260208083015160ff169082015260408083015167ffffffffffffffff16908201526060918201516001600160a01b03169181019190915260800190565b3480156103ba57600080fd5b506102816108ce565b3480156103cf57600080fd5b506102816103de366004611f58565b6108de565b3480156103ef57600080fd5b506104036103fe366004611f94565b610950565b604080516001600160a01b0390931683526020830191909152016101fe565b34801561042e57600080fd5b5061028161043d366004611eba565b610a0d565b34801561044e57600080fd5b5061028161045d366004611f58565b610a2c565b610281610470366004611fb6565b610a4c565b34801561048157600080fd5b50610281610490366004612043565b610ccb565b3480156104a157600080fd5b506102816104b03660046120ea565b610d7a565b3480156104c157600080fd5b506102496104d0366004611eba565b610d8e565b3480156104e157600080fd5b506102b46104f0366004612043565b610dd1565b34801561050157600080fd5b50610281610e77565b34801561051657600080fd5b506008546001600160a01b0316610249565b34801561053457600080fd5b50610281610543366004612133565b610e8b565b34801561055457600080fd5b5061021c610e9d565b34801561056957600080fd5b5061028161057836600461218b565b610eac565b34801561058957600080fd5b506102816105983660046121be565b610f41565b3480156105a957600080fd5b506102816105b83660046121e1565b610fbc565b3480156105c957600080fd5b506101f26105d8366004611f94565b611036565b3480156105e957600080fd5b5061021c6105f8366004611eba565b611068565b34801561060957600080fd5b5061028161061836600461225d565b6110ee565b34801561062957600080fd5b506102b4600b5481565b34801561063f57600080fd5b506101f261064e366004612292565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561068857600080fd5b50610281610697366004612043565b61110f565b60006106a78261119c565b92915050565b6060600280546106bc906122bc565b80601f01602080910402602001604051908101604052809291908181526020018280546106e8906122bc565b80156107355780601f1061070a57610100808354040283529160200191610735565b820191906000526020600020905b81548152906001019060200180831161071857829003601f168201915b5050505050905090565b600061074c826001541190565b610769576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610790826111c1565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036107ea5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061080a5750610808813361064e565b155b15610828576040516367d9dca160e11b815260040160405180910390fd5b61083384848461122a565b50505050565b61084161128b565b60009384526009602052604090932080546001600160a01b03909416600160501b027fffff0000000000000000000000000000000000000000ffffffffffffffffffff67ffffffffffffffff909316620100000269ffffffffffffffff00001960ff909516610100029490941669ffffffffffffffffff0019909516949094179290921716919091179055565b6108d661128b565b600154600b55565b60006108e9826111c1565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506109273383836112e5565b61094457604051632ce44b5f60e11b815260040160405180910390fd5b61083384848484611356565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916109cf5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906109f3906bffffffffffffffffffffffff168761230c565b6109fd9190612339565b91519350909150505b9250929050565b610a1561128b565b610a1f3382611462565b610a29338261150d565b50565b610a4783838360405180602001604052806000815250610fbc565b505050565b843385610a598282611462565b6000838152600960209081526040918290208251608081018452905460ff808216151580845261010083049091169383019390935262010000810467ffffffffffffffff1693820193909352600160501b9092046001600160a01b03166060830152610b0c5760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f7420656e61626c65640000000000000000000000000000000060448201526064015b60405180910390fd5b806020015160ff16821115610b635760405162461bcd60e51b815260206004820152601b60248201527f45786365656473206d617820706572207472616e73616374696f6e00000000006044820152606401610b03565b34816040015167ffffffffffffffff16830214610bc25760405162461bcd60e51b815260206004820152601660248201527f496e76616c69642066756e64732070726f7669646564000000000000000000006044820152606401610b03565b50610bcf88878787611517565b610c1b5760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610b03565b6000888152600a6020908152604080832060088a901c8452909152902054600160ff88161b1615610c8e5760405162461bcd60e51b815260206004820152601260248201527f4e6f6e636520616c7265616479207573656400000000000000000000000000006044820152606401610b03565b6000888152600a6020908152604080832060088a901c845290915290208054600160ff89161b179055610cc1338861150d565b5050505050505050565b610cd361128b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610d20576040519150601f19603f3d011682016040523d82523d6000602084013e610d25565b606091505b5050905080610d765760405162461bcd60e51b815260206004820152601160248201527f5769746864726177616c206661696c65640000000000000000000000000000006044820152606401610b03565b5050565b610d8261128b565b600c610d76828261239b565b6000610d9b826001541190565b610db857604051636f96cda160e11b815260040160405180910390fd5b610dc1826111c1565b546001600160a01b031692915050565b60006001600160a01b038216610dfa576040516323d3ad8160e21b815260040160405180910390fd5b6000610e0560015490565b905060008060005b83811015610e6d576000818152602081905260409020546001600160a01b03168015610e37578092505b866001600160a01b0316836001600160a01b031603610e5c57610e598461245b565b93505b50610e668161245b565b9050610e0d565b5090949350505050565b610e7f61128b565b610e896000611610565b565b610e9361128b565b610d768282611662565b6060600380546106bc906122bc565b336001600160a01b03831603610ed55760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f4961128b565b60008281526009602052604090205460ff16151581151514610d7657600082815260096020908152604091829020805460ff1916841515908117909155915191825283917fdc9c33543bf9b9927437d643702debb0a51f3673cd8991fb0f03bd169e939b3c910160405180910390a25050565b6000610fc7836111c1565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506110053384836112e5565b61102257604051632ce44b5f60e11b815260040160405180910390fd5b61102f858585848661177c565b5050505050565b6000828152600a60209081526040808320600885901c845291829052822054600160ff85161b1615155b949350505050565b6060611075826001541190565b61109257604051630a14c4b560e41b815260040160405180910390fd5b600061109c6117c8565b905060008151116110bc57604051806020016040528060008152506110e7565b806110c6846117d7565b6040516020016110d7929190612474565b6040516020818303038152906040525b9392505050565b6110f661128b565b6000838152600a602052604090206108338184846118f0565b61111761128b565b6001600160a01b0381166111935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b03565b610a2981611610565b60006001600160e01b0319821663152a902d60e11b14806106a757506106a78261193f565b60006111ce826001541190565b6111eb576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b03166112235760001901600081815260208190526040902091506111fb565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b6008546001600160a01b03163314610e895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b03565b80516000906001600160a01b03858116908216148061132957506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b8061134d5750846001600160a01b03166113428561073f565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b03161461138b5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166113b257604051633a954ecd60e21b815260040160405180910390fd5b6113be6000838361122a565b600182016113cd816001541190565b1561141057600081815260208190526040902080546001600160a01b031661140e578251602084015160a01c600160a01b026001600160a01b039091161781555b505b506000828152602081905260408082206001600160a01b0386811680835592519193869392918916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a461102f565b3233146114b15760405162461bcd60e51b815260206004820152601860248201527f43616e2774206d696e742066726f6d20636f6e747261637400000000000000006044820152606401610b03565b600b54816114be60015490565b011115610d765760405162461bcd60e51b815260206004820152601260248201527f45786365656473206d617820737570706c7900000000000000000000000000006044820152606401610b03565b610d76828261198f565b60408051602080820187905281830186905233606090811b6bffffffffffffffffffffffff191690830152825160548184030181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b08084018290528451808503909101815260d09093019093528151910120600091908290600088815260096020908152604091829020548251601f890183900483028101830190935287835292935061160592600160501b90046001600160a01b03169184918990899081908401838280828437600092019190915250611ab692505050565b979650505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff821611156116e85760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b03565b6001600160a01b03821661173e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b03565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b61178885858585611356565b6001600160a01b0384163b151580156117aa57506117a885858584611c0d565b155b1561102f576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546106bc906122bc565b6060816000036117fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561182857806118128161245b565b91506118219050600a83612339565b9150611802565b60008167ffffffffffffffff8111156118435761184361205e565b6040519080825280601f01601f19166020018201604052801561186d576020820181803683370190505b5090505b8415611060576118826001836124a3565b915061188f600a866124b6565b61189a9060306124ca565b60f81b8183815181106118af576118af6124dd565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506118e9600a86612339565b9450611871565b801561191a57600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006001600160e01b031982166380ac58cd60e01b148061197057506001600160e01b03198216635b5e139f60e01b145b806106a757506301ffc9a760e01b6001600160e01b03198316146106a7565b6001600160a01b0382166119b557604051622e076360e81b815260040160405180910390fd5b806000036119d65760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611aa8577f000000000000000000000000000000000000000000000000000000000000000015611a40577f00000000000000000000000000000000000000000000000000000000000000008181611a3957611a39612323565b0615611a43565b80155b15611a665781810160009081526020819052604090206001600160a01b03851690555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001016119dc565b506001805483019055505050565b6000806000611ac58585611cf5565b90925090506000816004811115611ade57611ade6124f3565b148015611afc5750856001600160a01b0316826001600160a01b0316145b15611b0c576001925050506110e7565b600080876001600160a01b0316631626ba7e60e01b8888604051602401611b34929190612509565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051611b879190612522565b600060405180830381855afa9150503d8060008114611bc2576040519150601f19603f3d011682016040523d82523d6000602084013e611bc7565b606091505b5091509150818015611bda575080516020145b8015611c0157508051630b135d3f60e11b90611bff908301602090810190840161253e565b145b98975050505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c42903390899088908890600401612557565b6020604051808303816000875af1925050508015611c7d575060408051601f3d908101601f19168201909252611c7a91810190612593565b60015b611cdb573d808015611cab576040519150601f19603f3d011682016040523d82523d6000602084013e611cb0565b606091505b508051600003611cd3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611060565b6000808251604103611d2b5760208301516040840151606085015160001a611d1f87828585611d37565b94509450505050610a06565b50600090506002610a06565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611d6e5750600090506003611e1b565b8460ff16601b14158015611d8657508460ff16601c14155b15611d975750600090506004611e1b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611deb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611e1457600060019250925050611e1b565b9150600090505b94509492505050565b6001600160e01b031981168114610a2957600080fd5b600060208284031215611e4c57600080fd5b81356110e781611e24565b60005b83811015611e72578181015183820152602001611e5a565b50506000910152565b60008151808452611e93816020860160208601611e57565b601f01601f19169290920160200192915050565b6020815260006110e76020830184611e7b565b600060208284031215611ecc57600080fd5b5035919050565b80356001600160a01b0381168114611eea57600080fd5b919050565b60008060408385031215611f0257600080fd5b611f0b83611ed3565b946020939093013593505050565b60008060008060808587031215611f2f57600080fd5b843593506020850135925060408501359150611f4d60608601611ed3565b905092959194509250565b600080600060608486031215611f6d57600080fd5b611f7684611ed3565b9250611f8460208501611ed3565b9150604084013590509250925092565b60008060408385031215611fa757600080fd5b50508035926020909101359150565b600080600080600060808688031215611fce57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611ffb57600080fd5b818801915088601f83011261200f57600080fd5b81358181111561201e57600080fd5b89602082850101111561203057600080fd5b9699959850939650602001949392505050565b60006020828403121561205557600080fd5b6110e782611ed3565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561208f5761208f61205e565b604051601f8501601f19908116603f011681019082821181831017156120b7576120b761205e565b816040528093508581528686860111156120d057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156120fc57600080fd5b813567ffffffffffffffff81111561211357600080fd5b8201601f8101841361212457600080fd5b61106084823560208401612074565b6000806040838503121561214657600080fd5b61214f83611ed3565b915060208301356bffffffffffffffffffffffff8116811461217057600080fd5b809150509250929050565b80358015158114611eea57600080fd5b6000806040838503121561219e57600080fd5b6121a783611ed3565b91506121b56020840161217b565b90509250929050565b600080604083850312156121d157600080fd5b823591506121b56020840161217b565b600080600080608085870312156121f757600080fd5b61220085611ed3565b935061220e60208601611ed3565b925060408501359150606085013567ffffffffffffffff81111561223157600080fd5b8501601f8101871361224257600080fd5b61225187823560208401612074565b91505092959194509250565b60008060006060848603121561227257600080fd5b83359250602084013591506122896040850161217b565b90509250925092565b600080604083850312156122a557600080fd5b6122ae83611ed3565b91506121b560208401611ed3565b600181811c908216806122d057607f821691505b6020821081036122f057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106a7576106a76122f6565b634e487b7160e01b600052601260045260246000fd5b60008261234857612348612323565b500490565b601f821115610a4757600081815260208120601f850160051c810160208610156123745750805b601f850160051c820191505b8181101561239357828155600101612380565b505050505050565b815167ffffffffffffffff8111156123b5576123b561205e565b6123c9816123c384546122bc565b8461234d565b602080601f8311600181146123fe57600084156123e65750858301515b600019600386901b1c1916600185901b178555612393565b600085815260208120601f198616915b8281101561242d5788860151825594840194600190910190840161240e565b508582101561244b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001820161246d5761246d6122f6565b5060010190565b60008351612486818460208801611e57565b83519083019061249a818360208801611e57565b01949350505050565b818103818111156106a7576106a76122f6565b6000826124c5576124c5612323565b500690565b808201808211156106a7576106a76122f6565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b8281526040602082015260006110606040830184611e7b565b60008251612534818460208701611e57565b9190910192915050565b60006020828403121561255057600080fd5b5051919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125896080830184611e7b565b9695505050505050565b6000602082840312156125a557600080fd5b81516110e781611e2456fea264697066735822122012942d791ae38b8244cf80b1619f63eda6fd690cda1a4d62f435dc42ed3bb9c164736f6c63430008110033

Loading...
Loading
Loading...
Loading
[ 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.