ETH Price: $3,388.11 (+1.25%)

Token

Kevin The Monkey (KTM)
 

Overview

Max Total Supply

3,222 KTM

Holders

877

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 KTM
0x195cc9fda221fd14f0cfb7ce82fc6cc2e79f93e9
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:
GenerativeCollection

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 19 : GenerativeCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface PresaleContract721Interface {
  function balanceOf(address owner) external view returns (uint256 balance);
}

interface PresaleContract1155Interface {
  function balanceOf(address _owner, uint256 _id)
    external
    view
    returns (uint256);

  function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
    external
    view
    returns (uint256[] memory);
}

error NotEnoughEther();
error NotEligiblePresale();
error ExceededMaxSupply();
error ExceededMaxPurchaseable();

contract GenerativeCollection is
  ERC721,
  ERC721Enumerable,
  ERC721URIStorage,
  ERC721Burnable,
  ReentrancyGuard,
  Pausable,
  AccessControl
{
  using Counters for Counters.Counter;
  Counters.Counter private _tokenIdCounter;

  string private _metadataBaseURI;

  uint256 public constant MAX_SUPPLY = 4444;
  uint256 public constant MAX_NFT_PURCHASEABLE = 20;
  uint256 public constant MAX_PRESALE_MINTING = 10;

  uint256 private _reserved = 200;
  uint256 private _mintPrice = 0.08 ether;

  bool private _isPresale = false;

  struct PresaleContract {
    address contractAddress;
    uint256[] tokenIds;
  }
  PresaleContract[] private _presaleContracts;
  mapping(address => uint256) private _presaleMintedAddresses;

  constructor() ERC721("Kevin The Monkey", "KTM") {
    _metadataBaseURI = "/";

    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

    // increment so first minted ID is 1
    _tokenIdCounter.increment();

    pause();
  }

  modifier whenNotExceededMaxPresaleMintLimit(
    address sender,
    uint256 numberOfTokens
  ) {
    if (_isPresale) {
      require(
        _presaleMintedAddresses[sender] + numberOfTokens <= MAX_PRESALE_MINTING,
        "Presale mint limit reached"
      );
    }

    _;
  }

  modifier whenPresale(address sender) {
    if (_isPresale) {
      bool isEligible = false;
      for (uint256 i = 0; i < _presaleContracts.length; i++) {
        // check if presale address is a contract
        if (!(_presaleContracts[i].contractAddress.code.length > 0)) {
          break;
        }

        if (
          // ERC721 presale
          _presaleContracts[i].tokenIds.length == 0 &&
          PresaleContract721Interface(_presaleContracts[i].contractAddress)
            .balanceOf(sender) >
          0
        ) {
          isEligible = true;
          break;
        } else if (_presaleContracts[i].tokenIds.length > 0) {
          // ERC1155
          // compile the array of addresses for the batch call
          address[] memory addresses = new address[](
            _presaleContracts[i].tokenIds.length
          );
          for (uint256 j = 0; j < addresses.length; j++) {
            addresses[j] = sender;
          }

          // check balances of tokens for user
          uint256[] memory balances = PresaleContract1155Interface(
            _presaleContracts[i].contractAddress
          ).balanceOfBatch(addresses, _presaleContracts[i].tokenIds);

          for (uint256 k = 0; k < balances.length; k++) {
            if (balances[k] > 0) {
              isEligible = true;
              break;
            }
          }
        }
      }

      if (!isEligible) {
        revert NotEligiblePresale();
      }
    }

    _;
  }

  modifier whenAmountIsZero(uint256 numberOfTokens) {
    require(numberOfTokens != 0, "Mint amount cannot be zero");

    _;
  }

  modifier whenNotExceedMaxPurchaseable(uint256 numberOfTokens) {
    if (numberOfTokens < 0 || numberOfTokens > MAX_NFT_PURCHASEABLE) {
      revert ExceededMaxPurchaseable();
    }

    _;
  }

  modifier whenNotExceedMaxSupply(uint256 numberOfTokens) {
    if (totalSupply() + numberOfTokens > (MAX_SUPPLY - _reserved)) {
      revert ExceededMaxSupply();
    }

    _;
  }

  modifier hasEnoughEther(uint256 numberOfTokens) {
    if (msg.value < _mintPrice * numberOfTokens) {
      revert NotEnoughEther();
    }

    _;
  }

  function mintNft(uint256 numberOfTokens)
    public
    payable
    nonReentrant
    whenNotExceededMaxPresaleMintLimit(msg.sender, numberOfTokens)
    whenPresale(msg.sender)
    whenNotPaused
    whenAmountIsZero(numberOfTokens)
    whenNotExceedMaxPurchaseable(numberOfTokens)
    whenNotExceedMaxSupply(numberOfTokens)
    hasEnoughEther(numberOfTokens)
  {
    // keep track of who has minted in presale to limit presale minting
    if (_isPresale) {
      _presaleMintedAddresses[msg.sender] += numberOfTokens;
    }

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < MAX_SUPPLY) {
        _safeMint(msg.sender, _tokenIdCounter.current());
        _tokenIdCounter.increment();
      }
    }
  }

  function mintNftTo(uint256 numberOfTokens, address recipient)
    public
    payable
    nonReentrant
    whenNotPaused
    whenAmountIsZero(numberOfTokens)
    whenNotExceedMaxPurchaseable(numberOfTokens)
    whenNotExceedMaxSupply(numberOfTokens)
    hasEnoughEther(numberOfTokens)
  {
    if (_isPresale) {
      revert NotEligiblePresale();
    }

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < MAX_SUPPLY) {
        _safeMint(recipient, _tokenIdCounter.current());
        _tokenIdCounter.increment();
      }
    }
  }

  function giveAwayNft(address to, uint256 numberOfTokens)
    public
    nonReentrant
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    require(numberOfTokens <= _reserved, "Exceeds reserved supply");

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < MAX_SUPPLY) {
        _safeMint(to, _tokenIdCounter.current());
        _tokenIdCounter.increment();
      }
    }

    _reserved -= numberOfTokens;
  }

  function endPresale() public onlyRole(DEFAULT_ADMIN_ROLE) {
    require(_isPresale, "Presale already ended");
    _isPresale = false;
  }

  function isPresale() public view virtual returns (bool) {
    return _isPresale;
  }

  function addPresaleContract(
    address contractAddress,
    uint256[] memory tokenIds
  ) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _presaleContracts.push(
      PresaleContract({ contractAddress: contractAddress, tokenIds: tokenIds })
    );
  }

  function clearPresaleContracts() public onlyRole(DEFAULT_ADMIN_ROLE) {
    // reset the presale contracts array
    delete _presaleContracts;
  }

  function getPresaleContracts()
    public
    view
    returns (PresaleContract[] memory)
  {
    return _presaleContracts;
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 tokenCount = balanceOf(_owner);

    uint256[] memory tokenIds = new uint256[](tokenCount);
    for (uint256 i; i < tokenCount; i++) {
      tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
    }

    return tokenIds;
  }

  function getMintPrice() public view returns (uint256) {
    return _mintPrice;
  }

  function setMintPrice(uint256 newPrice) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _mintPrice = newPrice;
  }

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

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

  function setBaseURI(string memory baseUri)
    public
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    _metadataBaseURI = baseUri;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721, ERC721URIStorage)
    returns (string memory)
  {
    return super.tokenURI(tokenId);
  }

  function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _pause();
  }

  function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _unpause();
  }

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

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

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

  function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
    uint256 balance = address(this).balance;
    // This forwards all available gas. Be sure to check the return value!
    (bool success, ) = msg.sender.call{ value: balance }("");

    require(success, "Transfer failed.");
  }

  receive() external payable {}
}

File 2 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 6 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 8 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 12 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 13 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 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 15 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 16 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 17 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 18 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExceededMaxPurchaseable","type":"error"},{"inputs":[],"name":"ExceededMaxSupply","type":"error"},{"inputs":[],"name":"NotEligiblePresale","type":"error"},{"inputs":[],"name":"NotEnoughEther","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_PURCHASEABLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"addPresaleContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearPresaleContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleContracts","outputs":[{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"internalType":"struct GenerativeCollection.PresaleContract[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"giveAwayNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintNft","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintNftTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260c860105567011c37937e0800006011556012805460ff191690553480156200002c57600080fd5b50604080518082018252601081526f4b6576696e20546865204d6f6e6b657960801b6020808301918252835180850190945260038452624b544d60e81b9084015281519192916200008091600091620004e0565b50805162000096906001906020840190620004e0565b50506001600b819055600c805460ff1916905560408051808201909152818152602f60f81b6020909101908152620000d29250600f91620004e0565b50620000e060003362000107565b620000f7600e6200011760201b620021421760201c565b6200010162000120565b6200073d565b6200011382826200013b565b5050565b80546001019055565b60006200012e8133620001df565b6200013862000285565b50565b6000828152600d602090815260408083206001600160a01b038516845290915290205460ff1662000113576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600d602090815260408083206001600160a01b038516845290915290205460ff1662000113576200022b816001600160a01b031660146200032060201b6200214b1760201c565b620002418360206200214b62000320821b17811c565b60405160200162000254929190620005b9565b60408051601f198184030181529082905262461bcd60e51b82526200027c9160040162000632565b60405180910390fd5b600c5460ff1615620002cd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200027c565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003033390565b6040516001600160a01b03909116815260200160405180910390a1565b60606000620003318360026200067d565b6200033e9060026200069f565b6001600160401b03811115620003585762000358620006ba565b6040519080825280601f01601f19166020018201604052801562000383576020820181803683370190505b509050600360fc1b81600081518110620003a157620003a1620006d0565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620003d357620003d3620006d0565b60200101906001600160f81b031916908160001a9053506000620003f98460026200067d565b620004069060016200069f565b90505b600181111562000488576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106200043e576200043e620006d0565b1a60f81b828281518110620004575762000457620006d0565b60200101906001600160f81b031916908160001a90535060049490941c936200048081620006e6565b905062000409565b508315620004d95760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016200027c565b9392505050565b828054620004ee9062000700565b90600052602060002090601f0160209004810192826200051257600085556200055d565b82601f106200052d57805160ff19168380011785556200055d565b828001600101855582156200055d579182015b828111156200055d57825182559160200191906001019062000540565b506200056b9291506200056f565b5090565b5b808211156200056b576000815560010162000570565b60005b83811015620005a357818101518382015260200162000589565b83811115620005b3576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620005f381601785016020880162000586565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200062681602884016020880162000586565b01602801949350505050565b60208152600082518060208401526200065381604085016020870162000586565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156200069a576200069a62000667565b500290565b60008219821115620006b557620006b562000667565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081620006f857620006f862000667565b506000190190565b600181811c908216806200071557607f821691505b602082108114156200073757634e487b7160e01b600052602260045260246000fd5b50919050565b6147cb806200074d6000396000f3fe6080604052600436106102e05760003560e01c80635c975abb11610184578063a22cb465116100d6578063c87b56dd1161008a578063d547741f11610064578063d547741f146107ce578063e985e9c5146107ee578063f4a0a5281461084457600080fd5b8063c87b56dd14610777578063cc7feda614610797578063d4dc69b0146107ac57600080fd5b8063a7f93ebd116100bb578063a7f93ebd1461072d578063b88d4fde14610742578063b95121b31461076257600080fd5b8063a22cb465146106f8578063a43be57b1461071857600080fd5b80638456cb591161013857806395d89b411161011257806395d89b41146106ae578063972d7b33146106c3578063a217fddf146106e357600080fd5b80638456cb591461062e57806391d148541461064357806395364a841461069657600080fd5b80636c0360eb116101695780636c0360eb146105e657806370a08231146105fb5780637aabccb11461061b57600080fd5b80635c975abb146105ae5780636352211e146105c657600080fd5b806332cb6b0c1161023d57806342966c68116101f15780634f6ccce7116101cb5780634f6ccce714610559578063505329931461057957806355f804b31461058e57600080fd5b806342966c68146104ec578063438b63001461050c5780634df6e3221461053957600080fd5b80633ccfd60b116102225780633ccfd60b146104a25780633f4ba83a146104b757806342842e0e146104cc57600080fd5b806332cb6b0c1461046c57806336568abe1461048257600080fd5b806318160ddd11610294578063248a9ca311610279578063248a9ca3146103fc5780632f2ff15d1461042c5780632f745c591461044c57600080fd5b806318160ddd146103bd57806323b872dd146103dc57600080fd5b8063081812fc116102c5578063081812fc14610343578063095ea7b3146103885780630d730acc146103aa57600080fd5b806301ffc9a7146102ec57806306fdde031461032157600080fd5b366102e757005b600080fd5b3480156102f857600080fd5b5061030c610307366004613dbe565b610864565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b50610336610875565b6040516103189190613e51565b34801561034f57600080fd5b5061036361035e366004613e64565b610907565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610318565b34801561039457600080fd5b506103a86103a3366004613ea6565b6109e6565b005b6103a86103b8366004613e64565b610b73565b3480156103c957600080fd5b506008545b604051908152602001610318565b3480156103e857600080fd5b506103a86103f7366004613ed0565b6112c7565b34801561040857600080fd5b506103ce610417366004613e64565b6000908152600d602052604090206001015490565b34801561043857600080fd5b506103a8610447366004613f0c565b611369565b34801561045857600080fd5b506103ce610467366004613ea6565b61138f565b34801561047857600080fd5b506103ce61115c81565b34801561048e57600080fd5b506103a861049d366004613f0c565b61145e565b3480156104ae57600080fd5b506103a8611511565b3480156104c357600080fd5b506103a86115d1565b3480156104d857600080fd5b506103a86104e7366004613ed0565b6115e8565b3480156104f857600080fd5b506103a8610507366004613e64565b611603565b34801561051857600080fd5b5061052c610527366004613f38565b6116a1565b6040516103189190613f53565b34801561054557600080fd5b506103a8610554366004613ea6565b611743565b34801561056557600080fd5b506103ce610574366004613e64565b611899565b34801561058557600080fd5b506103ce601481565b34801561059a57600080fd5b506103a86105a936600461408b565b611957565b3480156105ba57600080fd5b50600c5460ff1661030c565b3480156105d257600080fd5b506103636105e1366004613e64565b611976565b3480156105f257600080fd5b50610336611a28565b34801561060757600080fd5b506103ce610616366004613f38565b611a37565b6103a8610629366004613f0c565b611b05565b34801561063a57600080fd5b506103a8611dc2565b34801561064f57600080fd5b5061030c61065e366004613f0c565b6000918252600d6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106a257600080fd5b5060125460ff1661030c565b3480156106ba57600080fd5b50610336611dd6565b3480156106cf57600080fd5b506103a86106de3660046140f8565b611de5565b3480156106ef57600080fd5b506103ce600081565b34801561070457600080fd5b506103a86107133660046141a1565b611ec2565b34801561072457600080fd5b506103a8611ecd565b34801561073957600080fd5b506011546103ce565b34801561074e57600080fd5b506103a861075d3660046141dd565b611f70565b34801561076e57600080fd5b506103a8612018565b34801561078357600080fd5b50610336610792366004613e64565b612030565b3480156107a357600080fd5b506103ce600a81565b3480156107b857600080fd5b506107c161203b565b6040516103189190614259565b3480156107da57600080fd5b506103a86107e9366004613f0c565b61210a565b3480156107fa57600080fd5b5061030c61080936600461432d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085057600080fd5b506103a861085f366004613e64565b612130565b600061086f82612395565b92915050565b60606000805461088490614357565b80601f01602080910402602001604051908101604052809291908181526020018280546108b090614357565b80156108fd5780601f106108d2576101008083540402835291602001916108fd565b820191906000526020600020905b8154815290600101906020018083116108e057829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166109bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109f182611976565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aaf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109b4565b3373ffffffffffffffffffffffffffffffffffffffff82161480610ad85750610ad88133610809565b610b64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b4565b610b6e83836123eb565b505050565b6002600b541415610be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b556012543390829060ff1615610c905773ffffffffffffffffffffffffffffffffffffffff8216600090815260146020526040902054600a90610c289083906143da565b1115610c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f50726573616c65206d696e74206c696d6974207265616368656400000000000060448201526064016109b4565b601254339060ff1615611082576000805b60135481101561104857600060138281548110610cc057610cc06143f2565b600091825260209091206002909102015473ffffffffffffffffffffffffffffffffffffffff163b11610cf257611048565b60138181548110610d0557610d056143f2565b6000918252602090912060016002909202010154158015610de95750600060138281548110610d3657610d366143f2565b60009182526020909120600290910201546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152909116906370a082319060240160206040518083038186803b158015610daf57600080fd5b505afa158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de79190614421565b115b15610df75760019150611048565b600060138281548110610e0c57610e0c6143f2565b906000526020600020906002020160010180549050111561103657600060138281548110610e3c57610e3c6143f2565b90600052602060002090600202016001018054905067ffffffffffffffff811115610e6957610e69613f97565b604051908082528060200260200182016040528015610e92578160200160208202803683370190505b50905060005b8151811015610eeb5784828281518110610eb457610eb46143f2565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610ee38161443a565b915050610e98565b50600060138381548110610f0157610f016143f2565b60009182526020909120600290910201546013805473ffffffffffffffffffffffffffffffffffffffff90921691634e1273f491859187908110610f4757610f476143f2565b90600052602060002090600202016001016040518363ffffffff1660e01b8152600401610f75929190614473565b60006040518083038186803b158015610f8d57600080fd5b505afa158015610fa1573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610fe79190810190614508565b905060005b8151811015611032576000828281518110611009576110096143f2565b602002602001015111156110205760019450611032565b8061102a8161443a565b915050610fec565b5050505b806110408161443a565b915050610ca1565b5080611080576040517f35e3e74c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b600c5460ff16156110ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b8380611157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f00000000000060448201526064016109b4565b846014811115611193576040517fb637d13b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8560105461115c6111a49190614599565b816111ae60085490565b6111b891906143da565b11156111f0576040517ffb88d21500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86806011546111ff91906145b0565b341015611238576040517f8a0d377900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125460ff16156112685733600090815260146020526040812080548a92906112629084906143da565b90915550505b60005b888110156112b75761115c61127f60085490565b10156112a55761129733611292600e5490565b61248b565b6112a5600e80546001019055565b806112af8161443a565b91505061126b565b50506001600b5550505050505050565b6112d2335b826124a5565b61135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b4565b610b6e838383612615565b6000828152600d60205260409020600101546113858133612887565b610b6e8383612959565b600061139a83611a37565b8210611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b4565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b73ffffffffffffffffffffffffffffffffffffffff81163314611503576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109b4565b61150d8282612a4d565b5050565b600061151d8133612887565b6040514790600090339083908381818185875af1925050503d8060008114611561576040519150601f19603f3d011682016040523d82523d6000602084013e611566565b606091505b5050905080610b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109b4565b60006115dd8133612887565b6115e5612b08565b50565b610b6e83838360405180602001604052806000815250611f70565b61160c336112cc565b611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016109b4565b6115e581612be9565b606060006116ae83611a37565b905060008167ffffffffffffffff8111156116cb576116cb613f97565b6040519080825280602002602001820160405280156116f4578160200160208202803683370190505b50905060005b8281101561173b5761170c858261138f565b82828151811061171e5761171e6143f2565b6020908102919091010152806117338161443a565b9150506116fa565b509392505050565b6002600b5414156117b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b5560006117c18133612887565b60105482111561182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4578636565647320726573657276656420737570706c7900000000000000000060448201526064016109b4565b60005b828110156118775761115c61184460085490565b10156118655761185784611292600e5490565b611865600e80546001019055565b8061186f8161443a565b915050611830565b50816010600082825461188a9190614599565b90915550506001600b55505050565b60006118a460085490565b8210611932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109b4565b60088281548110611945576119456143f2565b90600052602060002001549050919050565b60006119638133612887565b8151610b6e90600f906020850190613c02565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061086f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109b4565b6060611a32612bf2565b905090565b600073ffffffffffffffffffffffffffffffffffffffff8216611adc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109b4565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6002600b541415611b72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b55600c5460ff1615611be4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b8180611c4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f00000000000060448201526064016109b4565b826014811115611c88576040517fb637d13b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360105461115c611c999190614599565b81611ca360085490565b611cad91906143da565b1115611ce5576040517ffb88d21500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8480601154611cf491906145b0565b341015611d2d576040517f8a0d377900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125460ff1615611d6a576040517f35e3e74c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b86811015611db45761115c611d8160085490565b1015611da257611d9486611292600e5490565b611da2600e80546001019055565b80611dac8161443a565b915050611d6d565b50506001600b555050505050565b6000611dce8133612887565b6115e5612c01565b60606001805461088490614357565b6000611df18133612887565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff848116825260208083018581526013805460018101825560009190915284517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090600290920291820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190951617845590518051611eba937f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a091909301929190910190613c86565b505050505050565b61150d338383612cc1565b6000611ed98133612887565b60125460ff16611f45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f50726573616c6520616c726561647920656e646564000000000000000000000060448201526064016109b4565b50601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b611f7a33836124a5565b612006576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b4565b61201284848484612def565b50505050565b60006120248133612887565b6115e560136000613cc0565b606061086f82612e92565b60606013805480602002602001604051908101604052809291908181526020016000905b8282101561210157600084815260209081902060408051808201825260028602909201805473ffffffffffffffffffffffffffffffffffffffff1683526001810180548351818702810187019094528084529394919385830193928301828280156120e957602002820191906000526020600020905b8154815260200190600101908083116120d5575b5050505050815250508152602001906001019061205f565b50505050905090565b6000828152600d60205260409020600101546121268133612887565b610b6e8383612a4d565b600061213c8133612887565b50601155565b80546001019055565b6060600061215a8360026145b0565b6121659060026143da565b67ffffffffffffffff81111561217d5761217d613f97565b6040519080825280601f01601f1916602001820160405280156121a7576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106121de576121de6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612241576122416143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061227d8460026145b0565b6122889060016143da565b90505b6001811115612325577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106122c9576122c96143f2565b1a60f81b8282815181106122df576122df6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361231e816145ed565b905061228b565b50831561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109b4565b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061086f575061086f82613037565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061244582611976565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61150d82826040518060200160405280600081525061308d565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109b4565b600061256183611976565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125d057508373ffffffffffffffffffffffffffffffffffffffff166125b884610907565b73ffffffffffffffffffffffffffffffffffffffff16145b8061260d575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661263582611976565b73ffffffffffffffffffffffffffffffffffffffff16146126d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109b4565b73ffffffffffffffffffffffffffffffffffffffff821661277a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109b4565b612785838383613130565b6127906000826123eb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054600192906127c6908490614599565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906128019084906143da565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661150d576128df8173ffffffffffffffffffffffffffffffffffffffff16601461214b565b6128ea83602061214b565b6040516020016128fb929190614622565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526109b491600401613e51565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661150d576000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129ef3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561150d576000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600c5460ff16612b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016109b4565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6115e58161313b565b6060600f805461088490614357565b600c5460ff1615612c6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612bbf3390565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b4565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612dfa848484612615565b612e068484848461317b565b612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612f46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e00000000000000000000000000000060648201526084016109b4565b6000828152600a602052604081208054612f5f90614357565b80601f0160208091040260200160405190810160405280929190818152602001828054612f8b90614357565b8015612fd85780601f10612fad57610100808354040283529160200191612fd8565b820191906000526020600020905b815481529060010190602001808311612fbb57829003601f168201915b505050505090506000612fe9612bf2565b9050805160001415612ffc575092915050565b81511561302e5780826040516020016130169291906146a3565b60405160208183030381529060405292505050919050565b61260d8461337a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061086f575061086f82613489565b613097838361356c565b6130a4600084848461317b565b610b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b610b6e83838361373a565b61314481613840565b6000818152600a60205260409020805461315d90614357565b1590506115e5576000818152600a602052604081206115e591613ce1565b600073ffffffffffffffffffffffffffffffffffffffff84163b1561336f576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906131f29033908990889088906004016146d2565b602060405180830381600087803b15801561320c57600080fd5b505af192505050801561325a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526132579181019061471b565b60015b613324573d808015613288576040519150601f19603f3d011682016040523d82523d6000602084013e61328d565b606091505b50805161331c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061260d565b506001949350505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff1661342e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109b4565b6000613438612bf2565b90506000815111613458576040518060200160405280600081525061238e565b8061346284613919565b6040516020016134739291906146a3565b6040516020818303038152906040529392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061351c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061086f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461086f565b73ffffffffffffffffffffffffffffffffffffffff82166135e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b4565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b4565b61368160008383613130565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906136b79084906143da565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b73ffffffffffffffffffffffffffffffffffffffff83166137a25761379d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6137df565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137df576137df8382613a4b565b73ffffffffffffffffffffffffffffffffffffffff821661380357610b6e81613b02565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610b6e57610b6e8282613bb1565b600061384b82611976565b905061385981600084613130565b6138646000836123eb565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812080546001929061389a908490614599565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60608161395957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613983578061396d8161443a565b915061397c9050600a83614767565b915061395d565b60008167ffffffffffffffff81111561399e5761399e613f97565b6040519080825280601f01601f1916602001820160405280156139c8576020820181803683370190505b5090505b841561260d576139dd600183614599565b91506139ea600a8661477b565b6139f59060306143da565b60f81b818381518110613a0a57613a0a6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613a44600a86614767565b94506139cc565b60006001613a5884611a37565b613a629190614599565b600083815260076020526040902054909150808214613ac25773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b600854600090613b1490600190614599565b60008381526009602052604081205460088054939450909284908110613b3c57613b3c6143f2565b906000526020600020015490508060088381548110613b5d57613b5d6143f2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b9557613b9561478f565b6001900381819060005260206000200160009055905550505050565b6000613bbc83611a37565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613c0e90614357565b90600052602060002090601f016020900481019282613c305760008555613c76565b82601f10613c4957805160ff1916838001178555613c76565b82800160010185558215613c76579182015b82811115613c76578251825591602001919060010190613c5b565b50613c82929150613d17565b5090565b828054828255906000526020600020908101928215613c765791602002820182811115613c76578251825591602001919060010190613c5b565b50805460008255600202906000526020600020908101906115e59190613d2c565b508054613ced90614357565b6000825580601f10613cfd575050565b601f0160209004906000526020600020908101906115e591905b5b80821115613c825760008155600101613d18565b80821115613c825780547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556000613d696001830182613d72565b50600201613d2c565b50805460008255906000526020600020908101906115e59190613d17565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146115e557600080fd5b600060208284031215613dd057600080fd5b813561238e81613d90565b60005b83811015613df6578181015183820152602001613dde565b838111156120125750506000910152565b60008151808452613e1f816020860160208601613ddb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061238e6020830184613e07565b600060208284031215613e7657600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114613ea157600080fd5b919050565b60008060408385031215613eb957600080fd5b613ec283613e7d565b946020939093013593505050565b600080600060608486031215613ee557600080fd5b613eee84613e7d565b9250613efc60208501613e7d565b9150604084013590509250925092565b60008060408385031215613f1f57600080fd5b82359150613f2f60208401613e7d565b90509250929050565b600060208284031215613f4a57600080fd5b61238e82613e7d565b6020808252825182820181905260009190848201906040850190845b81811015613f8b57835183529284019291840191600101613f6f565b50909695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561400d5761400d613f97565b604052919050565b600067ffffffffffffffff83111561402f5761402f613f97565b61406060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613fc6565b905082815283838301111561407457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561409d57600080fd5b813567ffffffffffffffff8111156140b457600080fd5b8201601f810184136140c557600080fd5b61260d84823560208401614015565b600067ffffffffffffffff8211156140ee576140ee613f97565b5060051b60200190565b6000806040838503121561410b57600080fd5b61411483613e7d565b915060208084013567ffffffffffffffff81111561413157600080fd5b8401601f8101861361414257600080fd5b8035614155614150826140d4565b613fc6565b81815260059190911b8201830190838101908883111561417457600080fd5b928401925b8284101561419257833582529284019290840190614179565b80955050505050509250929050565b600080604083850312156141b457600080fd5b6141bd83613e7d565b9150602083013580151581146141d257600080fd5b809150509250929050565b600080600080608085870312156141f357600080fd5b6141fc85613e7d565b935061420a60208601613e7d565b925060408501359150606085013567ffffffffffffffff81111561422d57600080fd5b8501601f8101871361423e57600080fd5b61424d87823560208401614015565b91505092959194509250565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561431e578984037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00186528251805173ffffffffffffffffffffffffffffffffffffffff168552880151888501889052805188860181905290890190839060608701905b808310156143095783518252928b019260019290920191908b01906142e9565b50978a01979550505091870191600101614281565b50919998505050505050505050565b6000806040838503121561434057600080fd5b61434983613e7d565b9150613f2f60208401613e7d565b600181811c9082168061436b57607f821691505b602082108114156143a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156143ed576143ed6143ab565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561443357600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561446c5761446c6143ab565b5060010190565b604080825283519082018190526000906020906060840190828701845b828110156144c257815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101614490565b505050838103828501528454808252600086815283812092840191905b818110156144fb578354835260019384019392850192016144df565b5090979650505050505050565b6000602080838503121561451b57600080fd5b825167ffffffffffffffff81111561453257600080fd5b8301601f8101851361454357600080fd5b8051614551614150826140d4565b81815260059190911b8201830190838101908783111561457057600080fd5b928401925b8284101561458e57835182529284019290840190614575565b979650505050505050565b6000828210156145ab576145ab6143ab565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145e8576145e86143ab565b500290565b6000816145fc576145fc6143ab565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161465a816017850160208801613ddb565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614697816028840160208801613ddb565b01602801949350505050565b600083516146b5818460208801613ddb565b8351908301906146c9818360208801613ddb565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526147116080830184613e07565b9695505050505050565b60006020828403121561472d57600080fd5b815161238e81613d90565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261477657614776614738565b500490565b60008261478a5761478a614738565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea164736f6c6343000809000a

Deployed Bytecode

0x6080604052600436106102e05760003560e01c80635c975abb11610184578063a22cb465116100d6578063c87b56dd1161008a578063d547741f11610064578063d547741f146107ce578063e985e9c5146107ee578063f4a0a5281461084457600080fd5b8063c87b56dd14610777578063cc7feda614610797578063d4dc69b0146107ac57600080fd5b8063a7f93ebd116100bb578063a7f93ebd1461072d578063b88d4fde14610742578063b95121b31461076257600080fd5b8063a22cb465146106f8578063a43be57b1461071857600080fd5b80638456cb591161013857806395d89b411161011257806395d89b41146106ae578063972d7b33146106c3578063a217fddf146106e357600080fd5b80638456cb591461062e57806391d148541461064357806395364a841461069657600080fd5b80636c0360eb116101695780636c0360eb146105e657806370a08231146105fb5780637aabccb11461061b57600080fd5b80635c975abb146105ae5780636352211e146105c657600080fd5b806332cb6b0c1161023d57806342966c68116101f15780634f6ccce7116101cb5780634f6ccce714610559578063505329931461057957806355f804b31461058e57600080fd5b806342966c68146104ec578063438b63001461050c5780634df6e3221461053957600080fd5b80633ccfd60b116102225780633ccfd60b146104a25780633f4ba83a146104b757806342842e0e146104cc57600080fd5b806332cb6b0c1461046c57806336568abe1461048257600080fd5b806318160ddd11610294578063248a9ca311610279578063248a9ca3146103fc5780632f2ff15d1461042c5780632f745c591461044c57600080fd5b806318160ddd146103bd57806323b872dd146103dc57600080fd5b8063081812fc116102c5578063081812fc14610343578063095ea7b3146103885780630d730acc146103aa57600080fd5b806301ffc9a7146102ec57806306fdde031461032157600080fd5b366102e757005b600080fd5b3480156102f857600080fd5b5061030c610307366004613dbe565b610864565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b50610336610875565b6040516103189190613e51565b34801561034f57600080fd5b5061036361035e366004613e64565b610907565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610318565b34801561039457600080fd5b506103a86103a3366004613ea6565b6109e6565b005b6103a86103b8366004613e64565b610b73565b3480156103c957600080fd5b506008545b604051908152602001610318565b3480156103e857600080fd5b506103a86103f7366004613ed0565b6112c7565b34801561040857600080fd5b506103ce610417366004613e64565b6000908152600d602052604090206001015490565b34801561043857600080fd5b506103a8610447366004613f0c565b611369565b34801561045857600080fd5b506103ce610467366004613ea6565b61138f565b34801561047857600080fd5b506103ce61115c81565b34801561048e57600080fd5b506103a861049d366004613f0c565b61145e565b3480156104ae57600080fd5b506103a8611511565b3480156104c357600080fd5b506103a86115d1565b3480156104d857600080fd5b506103a86104e7366004613ed0565b6115e8565b3480156104f857600080fd5b506103a8610507366004613e64565b611603565b34801561051857600080fd5b5061052c610527366004613f38565b6116a1565b6040516103189190613f53565b34801561054557600080fd5b506103a8610554366004613ea6565b611743565b34801561056557600080fd5b506103ce610574366004613e64565b611899565b34801561058557600080fd5b506103ce601481565b34801561059a57600080fd5b506103a86105a936600461408b565b611957565b3480156105ba57600080fd5b50600c5460ff1661030c565b3480156105d257600080fd5b506103636105e1366004613e64565b611976565b3480156105f257600080fd5b50610336611a28565b34801561060757600080fd5b506103ce610616366004613f38565b611a37565b6103a8610629366004613f0c565b611b05565b34801561063a57600080fd5b506103a8611dc2565b34801561064f57600080fd5b5061030c61065e366004613f0c565b6000918252600d6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156106a257600080fd5b5060125460ff1661030c565b3480156106ba57600080fd5b50610336611dd6565b3480156106cf57600080fd5b506103a86106de3660046140f8565b611de5565b3480156106ef57600080fd5b506103ce600081565b34801561070457600080fd5b506103a86107133660046141a1565b611ec2565b34801561072457600080fd5b506103a8611ecd565b34801561073957600080fd5b506011546103ce565b34801561074e57600080fd5b506103a861075d3660046141dd565b611f70565b34801561076e57600080fd5b506103a8612018565b34801561078357600080fd5b50610336610792366004613e64565b612030565b3480156107a357600080fd5b506103ce600a81565b3480156107b857600080fd5b506107c161203b565b6040516103189190614259565b3480156107da57600080fd5b506103a86107e9366004613f0c565b61210a565b3480156107fa57600080fd5b5061030c61080936600461432d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085057600080fd5b506103a861085f366004613e64565b612130565b600061086f82612395565b92915050565b60606000805461088490614357565b80601f01602080910402602001604051908101604052809291908181526020018280546108b090614357565b80156108fd5780601f106108d2576101008083540402835291602001916108fd565b820191906000526020600020905b8154815290600101906020018083116108e057829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166109bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109f182611976565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aaf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109b4565b3373ffffffffffffffffffffffffffffffffffffffff82161480610ad85750610ad88133610809565b610b64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b4565b610b6e83836123eb565b505050565b6002600b541415610be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b556012543390829060ff1615610c905773ffffffffffffffffffffffffffffffffffffffff8216600090815260146020526040902054600a90610c289083906143da565b1115610c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f50726573616c65206d696e74206c696d6974207265616368656400000000000060448201526064016109b4565b601254339060ff1615611082576000805b60135481101561104857600060138281548110610cc057610cc06143f2565b600091825260209091206002909102015473ffffffffffffffffffffffffffffffffffffffff163b11610cf257611048565b60138181548110610d0557610d056143f2565b6000918252602090912060016002909202010154158015610de95750600060138281548110610d3657610d366143f2565b60009182526020909120600290910201546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152909116906370a082319060240160206040518083038186803b158015610daf57600080fd5b505afa158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de79190614421565b115b15610df75760019150611048565b600060138281548110610e0c57610e0c6143f2565b906000526020600020906002020160010180549050111561103657600060138281548110610e3c57610e3c6143f2565b90600052602060002090600202016001018054905067ffffffffffffffff811115610e6957610e69613f97565b604051908082528060200260200182016040528015610e92578160200160208202803683370190505b50905060005b8151811015610eeb5784828281518110610eb457610eb46143f2565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280610ee38161443a565b915050610e98565b50600060138381548110610f0157610f016143f2565b60009182526020909120600290910201546013805473ffffffffffffffffffffffffffffffffffffffff90921691634e1273f491859187908110610f4757610f476143f2565b90600052602060002090600202016001016040518363ffffffff1660e01b8152600401610f75929190614473565b60006040518083038186803b158015610f8d57600080fd5b505afa158015610fa1573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610fe79190810190614508565b905060005b8151811015611032576000828281518110611009576110096143f2565b602002602001015111156110205760019450611032565b8061102a8161443a565b915050610fec565b5050505b806110408161443a565b915050610ca1565b5080611080576040517f35e3e74c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b600c5460ff16156110ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b8380611157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f00000000000060448201526064016109b4565b846014811115611193576040517fb637d13b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8560105461115c6111a49190614599565b816111ae60085490565b6111b891906143da565b11156111f0576040517ffb88d21500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86806011546111ff91906145b0565b341015611238576040517f8a0d377900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125460ff16156112685733600090815260146020526040812080548a92906112629084906143da565b90915550505b60005b888110156112b75761115c61127f60085490565b10156112a55761129733611292600e5490565b61248b565b6112a5600e80546001019055565b806112af8161443a565b91505061126b565b50506001600b5550505050505050565b6112d2335b826124a5565b61135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b4565b610b6e838383612615565b6000828152600d60205260409020600101546113858133612887565b610b6e8383612959565b600061139a83611a37565b8210611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109b4565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b73ffffffffffffffffffffffffffffffffffffffff81163314611503576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109b4565b61150d8282612a4d565b5050565b600061151d8133612887565b6040514790600090339083908381818185875af1925050503d8060008114611561576040519150601f19603f3d011682016040523d82523d6000602084013e611566565b606091505b5050905080610b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109b4565b60006115dd8133612887565b6115e5612b08565b50565b610b6e83838360405180602001604052806000815250611f70565b61160c336112cc565b611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016109b4565b6115e581612be9565b606060006116ae83611a37565b905060008167ffffffffffffffff8111156116cb576116cb613f97565b6040519080825280602002602001820160405280156116f4578160200160208202803683370190505b50905060005b8281101561173b5761170c858261138f565b82828151811061171e5761171e6143f2565b6020908102919091010152806117338161443a565b9150506116fa565b509392505050565b6002600b5414156117b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b5560006117c18133612887565b60105482111561182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4578636565647320726573657276656420737570706c7900000000000000000060448201526064016109b4565b60005b828110156118775761115c61184460085490565b10156118655761185784611292600e5490565b611865600e80546001019055565b8061186f8161443a565b915050611830565b50816010600082825461188a9190614599565b90915550506001600b55505050565b60006118a460085490565b8210611932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109b4565b60088281548110611945576119456143f2565b90600052602060002001549050919050565b60006119638133612887565b8151610b6e90600f906020850190613c02565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061086f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109b4565b6060611a32612bf2565b905090565b600073ffffffffffffffffffffffffffffffffffffffff8216611adc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109b4565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6002600b541415611b72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109b4565b6002600b55600c5460ff1615611be4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b8180611c4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f00000000000060448201526064016109b4565b826014811115611c88576040517fb637d13b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360105461115c611c999190614599565b81611ca360085490565b611cad91906143da565b1115611ce5576040517ffb88d21500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8480601154611cf491906145b0565b341015611d2d576040517f8a0d377900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125460ff1615611d6a576040517f35e3e74c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b86811015611db45761115c611d8160085490565b1015611da257611d9486611292600e5490565b611da2600e80546001019055565b80611dac8161443a565b915050611d6d565b50506001600b555050505050565b6000611dce8133612887565b6115e5612c01565b60606001805461088490614357565b6000611df18133612887565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff848116825260208083018581526013805460018101825560009190915284517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090600290920291820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190951617845590518051611eba937f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a091909301929190910190613c86565b505050505050565b61150d338383612cc1565b6000611ed98133612887565b60125460ff16611f45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f50726573616c6520616c726561647920656e646564000000000000000000000060448201526064016109b4565b50601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b611f7a33836124a5565b612006576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109b4565b61201284848484612def565b50505050565b60006120248133612887565b6115e560136000613cc0565b606061086f82612e92565b60606013805480602002602001604051908101604052809291908181526020016000905b8282101561210157600084815260209081902060408051808201825260028602909201805473ffffffffffffffffffffffffffffffffffffffff1683526001810180548351818702810187019094528084529394919385830193928301828280156120e957602002820191906000526020600020905b8154815260200190600101908083116120d5575b5050505050815250508152602001906001019061205f565b50505050905090565b6000828152600d60205260409020600101546121268133612887565b610b6e8383612a4d565b600061213c8133612887565b50601155565b80546001019055565b6060600061215a8360026145b0565b6121659060026143da565b67ffffffffffffffff81111561217d5761217d613f97565b6040519080825280601f01601f1916602001820160405280156121a7576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106121de576121de6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612241576122416143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061227d8460026145b0565b6122889060016143da565b90505b6001811115612325577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106122c9576122c96143f2565b1a60f81b8282815181106122df576122df6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361231e816145ed565b905061228b565b50831561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109b4565b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061086f575061086f82613037565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061244582611976565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61150d82826040518060200160405280600081525061308d565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109b4565b600061256183611976565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125d057508373ffffffffffffffffffffffffffffffffffffffff166125b884610907565b73ffffffffffffffffffffffffffffffffffffffff16145b8061260d575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661263582611976565b73ffffffffffffffffffffffffffffffffffffffff16146126d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109b4565b73ffffffffffffffffffffffffffffffffffffffff821661277a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109b4565b612785838383613130565b6127906000826123eb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081208054600192906127c6908490614599565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906128019084906143da565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661150d576128df8173ffffffffffffffffffffffffffffffffffffffff16601461214b565b6128ea83602061214b565b6040516020016128fb929190614622565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526109b491600401613e51565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661150d576000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129ef3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561150d576000828152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600c5460ff16612b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016109b4565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6115e58161313b565b6060600f805461088490614357565b600c5460ff1615612c6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109b4565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612bbf3390565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b4565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612dfa848484612615565b612e068484848461317b565b612012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612f46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e00000000000000000000000000000060648201526084016109b4565b6000828152600a602052604081208054612f5f90614357565b80601f0160208091040260200160405190810160405280929190818152602001828054612f8b90614357565b8015612fd85780601f10612fad57610100808354040283529160200191612fd8565b820191906000526020600020905b815481529060010190602001808311612fbb57829003601f168201915b505050505090506000612fe9612bf2565b9050805160001415612ffc575092915050565b81511561302e5780826040516020016130169291906146a3565b60405160208183030381529060405292505050919050565b61260d8461337a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061086f575061086f82613489565b613097838361356c565b6130a4600084848461317b565b610b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b610b6e83838361373a565b61314481613840565b6000818152600a60205260409020805461315d90614357565b1590506115e5576000818152600a602052604081206115e591613ce1565b600073ffffffffffffffffffffffffffffffffffffffff84163b1561336f576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906131f29033908990889088906004016146d2565b602060405180830381600087803b15801561320c57600080fd5b505af192505050801561325a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526132579181019061471b565b60015b613324573d808015613288576040519150601f19603f3d011682016040523d82523d6000602084013e61328d565b606091505b50805161331c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109b4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061260d565b506001949350505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff1661342e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109b4565b6000613438612bf2565b90506000815111613458576040518060200160405280600081525061238e565b8061346284613919565b6040516020016134739291906146a3565b6040516020818303038152906040529392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061351c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061086f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461086f565b73ffffffffffffffffffffffffffffffffffffffff82166135e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b4565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b4565b61368160008383613130565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906136b79084906143da565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b73ffffffffffffffffffffffffffffffffffffffff83166137a25761379d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6137df565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137df576137df8382613a4b565b73ffffffffffffffffffffffffffffffffffffffff821661380357610b6e81613b02565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610b6e57610b6e8282613bb1565b600061384b82611976565b905061385981600084613130565b6138646000836123eb565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812080546001929061389a908490614599565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60608161395957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613983578061396d8161443a565b915061397c9050600a83614767565b915061395d565b60008167ffffffffffffffff81111561399e5761399e613f97565b6040519080825280601f01601f1916602001820160405280156139c8576020820181803683370190505b5090505b841561260d576139dd600183614599565b91506139ea600a8661477b565b6139f59060306143da565b60f81b818381518110613a0a57613a0a6143f2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613a44600a86614767565b94506139cc565b60006001613a5884611a37565b613a629190614599565b600083815260076020526040902054909150808214613ac25773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b600854600090613b1490600190614599565b60008381526009602052604081205460088054939450909284908110613b3c57613b3c6143f2565b906000526020600020015490508060088381548110613b5d57613b5d6143f2565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613b9557613b9561478f565b6001900381819060005260206000200160009055905550505050565b6000613bbc83611a37565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613c0e90614357565b90600052602060002090601f016020900481019282613c305760008555613c76565b82601f10613c4957805160ff1916838001178555613c76565b82800160010185558215613c76579182015b82811115613c76578251825591602001919060010190613c5b565b50613c82929150613d17565b5090565b828054828255906000526020600020908101928215613c765791602002820182811115613c76578251825591602001919060010190613c5b565b50805460008255600202906000526020600020908101906115e59190613d2c565b508054613ced90614357565b6000825580601f10613cfd575050565b601f0160209004906000526020600020908101906115e591905b5b80821115613c825760008155600101613d18565b80821115613c825780547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556000613d696001830182613d72565b50600201613d2c565b50805460008255906000526020600020908101906115e59190613d17565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146115e557600080fd5b600060208284031215613dd057600080fd5b813561238e81613d90565b60005b83811015613df6578181015183820152602001613dde565b838111156120125750506000910152565b60008151808452613e1f816020860160208601613ddb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061238e6020830184613e07565b600060208284031215613e7657600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114613ea157600080fd5b919050565b60008060408385031215613eb957600080fd5b613ec283613e7d565b946020939093013593505050565b600080600060608486031215613ee557600080fd5b613eee84613e7d565b9250613efc60208501613e7d565b9150604084013590509250925092565b60008060408385031215613f1f57600080fd5b82359150613f2f60208401613e7d565b90509250929050565b600060208284031215613f4a57600080fd5b61238e82613e7d565b6020808252825182820181905260009190848201906040850190845b81811015613f8b57835183529284019291840191600101613f6f565b50909695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561400d5761400d613f97565b604052919050565b600067ffffffffffffffff83111561402f5761402f613f97565b61406060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613fc6565b905082815283838301111561407457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561409d57600080fd5b813567ffffffffffffffff8111156140b457600080fd5b8201601f810184136140c557600080fd5b61260d84823560208401614015565b600067ffffffffffffffff8211156140ee576140ee613f97565b5060051b60200190565b6000806040838503121561410b57600080fd5b61411483613e7d565b915060208084013567ffffffffffffffff81111561413157600080fd5b8401601f8101861361414257600080fd5b8035614155614150826140d4565b613fc6565b81815260059190911b8201830190838101908883111561417457600080fd5b928401925b8284101561419257833582529284019290840190614179565b80955050505050509250929050565b600080604083850312156141b457600080fd5b6141bd83613e7d565b9150602083013580151581146141d257600080fd5b809150509250929050565b600080600080608085870312156141f357600080fd5b6141fc85613e7d565b935061420a60208601613e7d565b925060408501359150606085013567ffffffffffffffff81111561422d57600080fd5b8501601f8101871361423e57600080fd5b61424d87823560208401614015565b91505092959194509250565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561431e578984037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00186528251805173ffffffffffffffffffffffffffffffffffffffff168552880151888501889052805188860181905290890190839060608701905b808310156143095783518252928b019260019290920191908b01906142e9565b50978a01979550505091870191600101614281565b50919998505050505050505050565b6000806040838503121561434057600080fd5b61434983613e7d565b9150613f2f60208401613e7d565b600181811c9082168061436b57607f821691505b602082108114156143a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156143ed576143ed6143ab565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561443357600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561446c5761446c6143ab565b5060010190565b604080825283519082018190526000906020906060840190828701845b828110156144c257815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101614490565b505050838103828501528454808252600086815283812092840191905b818110156144fb578354835260019384019392850192016144df565b5090979650505050505050565b6000602080838503121561451b57600080fd5b825167ffffffffffffffff81111561453257600080fd5b8301601f8101851361454357600080fd5b8051614551614150826140d4565b81815260059190911b8201830190838101908783111561457057600080fd5b928401925b8284101561458e57835182529284019290840190614575565b979650505050505050565b6000828210156145ab576145ab6143ab565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145e8576145e86143ab565b500290565b6000816145fc576145fc6143ab565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161465a816017850160208801613ddb565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614697816028840160208801613ddb565b01602801949350505050565b600083516146b5818460208801613ddb565b8351908301906146c9818360208801613ddb565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526147116080830184613e07565b9695505050505050565b60006020828403121561472d57600080fd5b815161238e81613d90565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261477657614776614738565b500490565b60008261478a5761478a614738565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea164736f6c6343000809000a

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

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