ETH Price: $3,435.61 (+2.74%)

Token

Bonny Dolls (DOLLS)
 

Overview

Max Total Supply

0 DOLLS

Holders

86

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
teegasnfttee.eth
Balance
31 DOLLS
0x7e5c4d9b5e87f9584a96665d409f8d62a52cc918
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:
BonnyDolls

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : BonnyDolls.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

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

        delete length;
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721V2.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 tokenId < _owners.length && _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 = ERC721V2.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);
        _owners.push(to);

        emit Transfer(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 = ERC721V2.ownerOf(tokenId);

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

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

        emit Transfer(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(ERC721V2.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        emit Transfer(from, to, tokenId);
    }

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


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


contract BonnyDolls is Ownable, ERC721V2 {
    using Strings for uint256;
    using SafeMath for uint256;
    using ECDSA for bytes32;

    uint256 public constant PRICE = 60 * 10**15; // .06 eth
    uint256 public constant MAX_BY_MINT = 10;
    uint256 public constant MAX_RESERVE_COUNT = 100;
    uint256 public constant LAUNCH_TIMESTAMP = 1643310000; // Thu Jan 27 2022 19:00:00 GMT+0000
    uint256 public MAX_ELEMENTS = 1500;
    uint256 public WHITELIST_RESERVE = 500;

    uint256 private _reservedCount = 0;
    uint256 private _reserveAtATime = 10;

    bool public isSaleOpen = false;

    mapping(address => bool) public allowedErc20Tokens;
    mapping(address => uint256) public userClaimed;
    mapping(address => uint256) public userBoughtPresale;

    address public constant t1 = 0x891096Eb11b84Aa3c12e346C64ae60f8E54d074a;
    address public constant t2 = 0x80F5D7940408bFaa3Ab08d252C63616e492B4B1e;
    address public constant t3 = 0x0a15f8D9b8aCb352eE11a1D76e967Ab44842e9f3;

    address private _signer = 0x8A5cCf0bb1b0FecC6bed2B3b5Ed3B739030C3DD0;

    string public baseTokenURI;

    constructor(string memory baseURI) ERC721V2("Bonny Dolls", "DOLLS") {
        setBaseURI(baseURI);
    }

    modifier saleIsOpen {
        if (_msgSender() != owner()) {
            require(isSaleOpen, "Sale is not open");
        }
        _;
    }

    function totalMint() public view returns (uint256) {
        return _owners.length;
    }

    function reserveTokens() public onlyOwner {
        require(_reservedCount + _reserveAtATime <= MAX_RESERVE_COUNT, "Max reserve exceeded");
        uint256 total = _owners.length;
        for (uint256 i = 0; i < _reserveAtATime; i++) {
            _reservedCount++;
            _mint(msg.sender, total++);
        }
    }

    function presaleMint(uint256 _amount, uint256 _price, bytes memory _signature) external payable saleIsOpen {
        require(userBoughtPresale[msg.sender] < _amount, "Discounted count exceeds max allowed");
        uint256 total = _owners.length;
        require(total + _amount <= MAX_ELEMENTS, "Max limit");
        require(total <= MAX_ELEMENTS, "All NFTs are sold out");
        require(_amount <= MAX_BY_MINT, "Exceeds number");
        require(msg.value >= _price.mul(_amount), "Value below price");
        
        address _minter = _msgSender();

        address signer = verifyMint(_minter, address(0), _amount, _amount, _price, _signature);
        require(signer == _signer, "Not authorized to mint");

        for (uint256 i = 0; i < _amount; i++) {
            userBoughtPresale[msg.sender] += 1;
            _mint(msg.sender, total++);
        }  
    }

    function mint(uint256 _amount) external payable saleIsOpen {
        uint256 total = _owners.length;
        require(total + _amount + WHITELIST_RESERVE <= MAX_ELEMENTS, "Max limit");
        require(total <= MAX_ELEMENTS, "All NFTs are sold out");
        require(_amount <= MAX_BY_MINT, "Exceeds per mint");
        require(msg.value >= price(_amount), "Value below price");

        for (uint256 i = 0; i < _amount; i++) {
            _mint(msg.sender, total++);
        }
    }

    function mintWithErc20(address _tokenAddress, uint256 _amount, uint256 _price, bytes memory _signature) external saleIsOpen {
        uint256 total = _owners.length;
        require(total + _amount + WHITELIST_RESERVE <= MAX_ELEMENTS, "Max limit");
        require(total <= MAX_ELEMENTS, "All NFTs are sold out");
        require(_amount <= MAX_BY_MINT, "Exceeds number");
        require(allowedErc20Tokens[_tokenAddress], "You can not mint with this token");

        address _minter = _msgSender();
        address signer = verifyMint(_minter, _tokenAddress, _amount, _amount, _price, _signature);
        require(signer == _signer, "Not authorized to mint");  

        IERC20(_tokenAddress).transferFrom(
            msg.sender,
            address(this),
            _price * _amount
        );

        for (uint256 i = 0; i < _amount; i++) {
            _mint(msg.sender, total++);
        }
    }

    function claim(uint256 _userClaims, uint256 _amount, bytes memory _signature) external saleIsOpen {
        require(userClaimed[msg.sender] < _userClaims, "Claiming exceeds max allowed");
        uint256 total = _owners.length;
        require(total + _amount <= MAX_ELEMENTS, "Max limit");
        require(total <= MAX_ELEMENTS, "All NFTs are sold out");

        address _minter = _msgSender();

        address signer = verifyMint(_minter, address(0), _amount, _userClaims, 0, _signature);
        require(signer == _signer, "Not authorized to mint");

        for (uint256 i = 0; i < _amount; i++) {
            userClaimed[msg.sender] += 1;
            _mint(msg.sender, total++);
        }
    }

    function verifyMint(address _minter, address _token, uint256 _amount, uint256 _userClaims, uint256 _price, bytes memory _signature) public pure returns (address) {
        return ECDSA.recover(keccak256(abi.encode(_minter, _token, _amount, _userClaims, _price)), _signature);
    }

    function price(uint256 _count) public pure returns (uint256) {
        return PRICE.mul(_count);
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    function setSaleOpen(bool _isSaleOpen) external onlyOwner {
        isSaleOpen = _isSaleOpen;
    }

    function setReserveAtATime(uint256 _count) public onlyOwner {
        _reserveAtATime = _count;
    }

    function setMaxElements(uint _count) public onlyOwner {
        uint256 total = _owners.length;
        require(_count > total, "Incorrect new amount");
        MAX_ELEMENTS = _count;
    }

    function setAllowanceErc20(address _tokenAddress, bool _allow) external onlyOwner {
        require(_tokenAddress != address(0), "Incorrect address");
        allowedErc20Tokens[_tokenAddress] = _allow;
    }

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

    function setWhitelistReserve(uint _reserve) external onlyOwner {
        WHITELIST_RESERVE = _reserve;
    }

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

    function withdrawEther() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _withdrawEther(t1, balance.mul(50).div(100));
        _withdrawEther(t2, balance.mul(20).div(100));
        _withdrawEther(t3, balance.mul(10).div(100));

        _withdrawEther(t1, address(this).balance);
    }

    function _withdrawEther(address _address, uint256 _amount) private {
        payable(_address).transfer(_amount);
    }

    function withdrawTokens(address _tokenAddress) external onlyOwner {
        uint256 balance = IERC20(_tokenAddress).balanceOf(address(this));
        require(balance > 0);

        _withdrawTokens(_tokenAddress, t1, balance.mul(50).div(100));
        _withdrawTokens(_tokenAddress, t2, balance.mul(20).div(100));
        _withdrawTokens(_tokenAddress, t3, balance.mul(10).div(100));

        _withdrawTokens(_tokenAddress, t1, IERC20(_tokenAddress).balanceOf(address(this)));
    }

    function _withdrawTokens(address _tokenAddress, address _address, uint256 _amount) private {
        IERC20(_tokenAddress).transfer(_address, _amount);
    }
}

File 2 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 3 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 6 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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);
    }

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

    /**
     * @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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(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 {}
}

File 7 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 12 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LAUNCH_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BY_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedErc20Tokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_userClaims","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claim","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":[{"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":"isSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWithErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveTokens","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":"_tokenAddress","type":"address"},{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowanceErc20","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":"_count","type":"uint256"}],"name":"setMaxElements","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setReserveAtATime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSaleOpen","type":"bool"}],"name":"setSaleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserve","type":"uint256"}],"name":"setWhitelistReserve","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":[],"name":"t1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"t2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"t3","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"totalMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBoughtPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_userClaims","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifyMint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526105dc6006556101f46007556000600855600a6009819055805460ff19169055600e80546001600160a01b031916738a5ccf0bb1b0fecc6bed2b3b5ed3b739030c3dd01790553480156200005757600080fd5b50604051620034ec380380620034ec8339810160408190526200007a91620002a4565b6040518060400160405280600b81526020016a426f6e6e7920446f6c6c7360a81b81525060405180604001604052806005815260200164444f4c4c5360d81b815250620000d6620000d06200011c60201b60201c565b62000120565b8151620000eb906001906020850190620001e8565b50805162000101906002906020840190620001e8565b50505062000115816200017060201b60201c565b50620003bd565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001e490600f906020840190620001e8565b5050565b828054620001f69062000380565b90600052602060002090601f0160209004810192826200021a576000855562000265565b82601f106200023557805160ff191683800117855562000265565b8280016001018555821562000265579182015b828111156200026557825182559160200191906001019062000248565b506200027392915062000277565b5090565b5b8082111562000273576000815560010162000278565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620002b857600080fd5b82516001600160401b0380821115620002d057600080fd5b818501915085601f830112620002e557600080fd5b815181811115620002fa57620002fa6200028e565b604051601f8201601f19908116603f011681019083821181831017156200032557620003256200028e565b8160405282815288868487010111156200033e57600080fd5b600093505b8284101562000362578484018601518185018701529285019262000343565b82841115620003745760008684830101525b98975050505050505050565b600181811c908216806200039557607f821691505b60208210811415620003b757634e487b7160e01b600052602260045260246000fd5b50919050565b61311f80620003cd6000396000f3fe6080604052600436106102885760003560e01c80638ad5de281161015a578063c87b56dd116100c1578063e954f41d1161007a578063e954f41d14610793578063e985e9c5146107ab578063f2fde38b146107f4578063f6c9d9e314610814578063f72b5e3614610834578063fb5343f31461085457600080fd5b8063c87b56dd146106d3578063cfad78b1146106f3578063d29e95ba1461071b578063d547cfb71461073b578063d63ba14914610750578063d950587c1461076357600080fd5b8063a3bc794011610113578063a3bc7940146105fe578063aa7655381461062b578063af979f251461064b578063b88d4fde1461066b578063baf2f8681461068b578063bb7f4909146106b357600080fd5b80638ad5de28146105685780638d859f3e1461057d5780638da5cb5b1461059857806395d89b41146105b6578063a0712d68146105cb578063a22cb465146105de57600080fd5b806342842e0e116101fe5780636c19e783116101b75780636c19e783146104c957806370a08231146104e9578063715018a61461050957806371f9f2001461051e5780637362377b1461053e57806376500c171461055357600080fd5b806342842e0e1461041457806349df728c1461043457806355f804b31461045457806359a7715a146104745780635eddd157146104895780636352211e146104a957600080fd5b806323b872dd1161025057806323b872dd1461035857806326a49e371461037857806327ac36c4146103a657806333eb474c146103bb5780633502a716146103d15780633b7fcdca146103e757600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c5780631a0813301461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046128ab565b61087c565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108ce565b6040516102b99190612920565b3480156102f057600080fd5b506103046102ff366004612933565b610960565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612968565b6109ed565b005b34801561034a57600080fd5b50600a546102ad9060ff1681565b34801561036457600080fd5b5061033c610373366004612992565b610b03565b34801561038457600080fd5b50610398610393366004612933565b610b34565b6040519081526020016102b9565b3480156103b257600080fd5b5061033c610b47565b3480156103c757600080fd5b5061039860075481565b3480156103dd57600080fd5b5061039860065481565b3480156103f357600080fd5b506103986104023660046129ce565b600c6020526000908152604090205481565b34801561042057600080fd5b5061033c61042f366004612992565b610c19565b34801561044057600080fd5b5061033c61044f3660046129ce565b610c34565b34801561046057600080fd5b5061033c61046f366004612a75565b610e00565b34801561048057600080fd5b50600354610398565b34801561049557600080fd5b5061033c6104a4366004612ade565b610e3d565b3480156104b557600080fd5b506103046104c4366004612933565b610fc1565b3480156104d557600080fd5b5061033c6104e43660046129ce565b61104d565b3480156104f557600080fd5b506103986105043660046129ce565b611099565b34801561051557600080fd5b5061033c61116b565b34801561052a57600080fd5b5061033c610539366004612933565b6111a1565b34801561054a57600080fd5b5061033c61121a565b34801561055f57600080fd5b50610398606481565b34801561057457600080fd5b50610398600a81565b34801561058957600080fd5b5061039866d529ae9e86000081565b3480156105a457600080fd5b506000546001600160a01b0316610304565b3480156105c257600080fd5b506102d76112ed565b61033c6105d9366004612933565b6112fc565b3480156105ea57600080fd5b5061033c6105f9366004612b3c565b611448565b34801561060a57600080fd5b506103986106193660046129ce565b600d6020526000908152604090205481565b34801561063757600080fd5b5061033c610646366004612b3c565b61150d565b34801561065757600080fd5b5061033c610666366004612b73565b6115ac565b34801561067757600080fd5b5061033c610686366004612b90565b6115e9565b34801561069757600080fd5b506103047380f5d7940408bfaa3ab08d252c63616e492b4b1e81565b3480156106bf57600080fd5b5061033c6106ce366004612bf8565b611621565b3480156106df57600080fd5b506102d76106ee366004612933565b611875565b3480156106ff57600080fd5b50610304730a15f8d9b8acb352ee11a1d76e967ab44842e9f381565b34801561072757600080fd5b50610304610736366004612c41565b611916565b34801561074757600080fd5b506102d7611979565b61033c61075e366004612ade565b611a07565b34801561076f57600080fd5b506102ad61077e3660046129ce565b600b6020526000908152604090205460ff1681565b34801561079f57600080fd5b506103986361f2ebb081565b3480156107b757600080fd5b506102ad6107c6366004612cbb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561080057600080fd5b5061033c61080f3660046129ce565b611c16565b34801561082057600080fd5b5061033c61082f366004612933565b611cae565b34801561084057600080fd5b5061033c61084f366004612933565b611cdd565b34801561086057600080fd5b5061030473891096eb11b84aa3c12e346c64ae60f8e54d074a81565b60006001600160e01b031982166380ac58cd60e01b14806108ad57506001600160e01b03198216635b5e139f60e01b145b806108c857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108dd90612cee565b80601f016020809104026020016040519081016040528092919081815260200182805461090990612cee565b80156109565780601f1061092b57610100808354040283529160200191610956565b820191906000526020600020905b81548152906001019060200180831161093957829003601f168201915b5050505050905090565b600061096b82611d0c565b6109d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109f882610fc1565b9050806001600160a01b0316836001600160a01b03161415610a665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c8565b336001600160a01b0382161480610a825750610a8281336107c6565b610af45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c8565b610afe8383611d56565b505050565b610b0d3382611dc4565b610b295760405162461bcd60e51b81526004016109c890612d29565b610afe838383611eae565b60006108c866d529ae9e86000083612004565b6000546001600160a01b03163314610b715760405162461bcd60e51b81526004016109c890612d7a565b6064600954600854610b839190612dc5565b1115610bc85760405162461bcd60e51b815260206004820152601460248201527313585e081c995cd95c9d9948195e18d95959195960621b60448201526064016109c8565b60035460005b600954811015610c155760088054906000610be883612ddd565b9190505550610c03338380610bfc90612ddd565b9450612017565b80610c0d81612ddd565b915050610bce565b5050565b610afe838383604051806020016040528060008152506115e9565b6000546001600160a01b03163314610c5e5760405162461bcd60e51b81526004016109c890612d7a565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ca057600080fd5b505afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd89190612df8565b905060008111610ce757600080fd5b610d1b8273891096eb11b84aa3c12e346c64ae60f8e54d074a610d166064610d10866032612004565b9061213f565b61214b565b610d44827380f5d7940408bfaa3ab08d252c63616e492b4b1e610d166064610d10866014612004565b610d6d82730a15f8d9b8acb352ee11a1d76e967ab44842e9f3610d166064610d1086600a612004565b6040516370a0823160e01b8152306004820152610c1590839073891096eb11b84aa3c12e346c64ae60f8e54d074a906001600160a01b038316906370a082319060240160206040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d169190612df8565b6000546001600160a01b03163314610e2a5760405162461bcd60e51b81526004016109c890612d7a565b8051610c1590600f9060208401906127fc565b6000546001600160a01b03163314610e7157600a5460ff16610e715760405162461bcd60e51b81526004016109c890612e11565b336000908152600c60205260409020548311610ecf5760405162461bcd60e51b815260206004820152601c60248201527f436c61696d696e672065786365656473206d617820616c6c6f7765640000000060448201526064016109c8565b600354600654610edf8483612dc5565b1115610efd5760405162461bcd60e51b81526004016109c890612e3b565b600654811115610f1f5760405162461bcd60e51b81526004016109c890612e5e565b336000610f30828287898289611916565b600e549091506001600160a01b03808316911614610f605760405162461bcd60e51b81526004016109c890612e8d565b60005b85811015610fb857336000908152600c60205260408120805460019290610f8b908490612dc5565b90915550610fa690503385610f9f81612ddd565b9650612017565b80610fb081612ddd565b915050610f63565b50505050505050565b60008060038381548110610fd757610fd7612ebd565b6000918252602090912001546001600160a01b03169050806108c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c8565b6000546001600160a01b031633146110775760405162461bcd60e51b81526004016109c890612d7a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166111045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c8565b600354600090815b81811015611162576003818154811061112757611127612ebd565b6000918252602090912001546001600160a01b03868116911614156111525761114f83612ddd565b92505b61115b81612ddd565b905061110c565b50909392505050565b6000546001600160a01b031633146111955760405162461bcd60e51b81526004016109c890612d7a565b61119f60006121cd565b565b6000546001600160a01b031633146111cb5760405162461bcd60e51b81526004016109c890612d7a565b6003548082116112145760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081b995dc8185b5bdd5b9d60621b60448201526064016109c8565b50600655565b6000546001600160a01b031633146112445760405162461bcd60e51b81526004016109c890612d7a565b478061124f57600080fd5b61127c73891096eb11b84aa3c12e346c64ae60f8e54d074a6112776064610d10856032612004565b61221d565b6112a47380f5d7940408bfaa3ab08d252c63616e492b4b1e6112776064610d10856014612004565b6112cc730a15f8d9b8acb352ee11a1d76e967ab44842e9f36112776064610d1085600a612004565b6112ea73891096eb11b84aa3c12e346c64ae60f8e54d074a4761221d565b50565b6060600280546108dd90612cee565b6000546001600160a01b0316331461133057600a5460ff166113305760405162461bcd60e51b81526004016109c890612e11565b6003546006546007546113438484612dc5565b61134d9190612dc5565b111561136b5760405162461bcd60e51b81526004016109c890612e3b565b60065481111561138d5760405162461bcd60e51b81526004016109c890612e5e565b600a8211156113d15760405162461bcd60e51b815260206004820152601060248201526f115e18d959591cc81c195c881b5a5b9d60821b60448201526064016109c8565b6113da82610b34565b34101561141d5760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b60448201526064016109c8565b60005b82811015610afe576114363383610bfc81612ddd565b8061144081612ddd565b915050611420565b6001600160a01b0382163314156114a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146115375760405162461bcd60e51b81526004016109c890612d7a565b6001600160a01b0382166115815760405162461bcd60e51b8152602060048201526011602482015270496e636f7272656374206164647265737360781b60448201526064016109c8565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146115d65760405162461bcd60e51b81526004016109c890612d7a565b600a805460ff1916911515919091179055565b6115f33383611dc4565b61160f5760405162461bcd60e51b81526004016109c890612d29565b61161b84848484612253565b50505050565b6000546001600160a01b0316331461165557600a5460ff166116555760405162461bcd60e51b81526004016109c890612e11565b6003546006546007546116688684612dc5565b6116729190612dc5565b11156116905760405162461bcd60e51b81526004016109c890612e3b565b6006548111156116b25760405162461bcd60e51b81526004016109c890612e5e565b600a8411156116f45760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b23990373ab6b132b960911b60448201526064016109c8565b6001600160a01b0385166000908152600b602052604090205460ff1661175c5760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206e6f74206d696e742077697468207468697320746f6b656e60448201526064016109c8565b33600061176d828888808989611916565b600e549091506001600160a01b0380831691161461179d5760405162461bcd60e51b81526004016109c890612e8d565b6001600160a01b0387166323b872dd33306117b88a8a612ed3565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561180757600080fd5b505af115801561181b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183f9190612ef2565b5060005b8681101561186b576118593385610f9f81612ddd565b8061186381612ddd565b915050611843565b5050505050505050565b606061188082611d0c565b6118e45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c8565b600f6118ef83612286565b604051602001611900929190612f2b565b6040516020818303038152906040529050919050565b604080516001600160a01b038089166020830152871691810191909152606081018590526080810184905260a0810183905260009061196e9060c0016040516020818303038152906040528051906020012083612384565b979650505050505050565b600f805461198690612cee565b80601f01602080910402602001604051908101604052809291908181526020018280546119b290612cee565b80156119ff5780601f106119d4576101008083540402835291602001916119ff565b820191906000526020600020905b8154815290600101906020018083116119e257829003601f168201915b505050505081565b6000546001600160a01b03163314611a3b57600a5460ff16611a3b5760405162461bcd60e51b81526004016109c890612e11565b336000908152600d60205260409020548311611aa55760405162461bcd60e51b8152602060048201526024808201527f446973636f756e74656420636f756e742065786365656473206d617820616c6c6044820152631bddd95960e21b60648201526084016109c8565b600354600654611ab58583612dc5565b1115611ad35760405162461bcd60e51b81526004016109c890612e3b565b600654811115611af55760405162461bcd60e51b81526004016109c890612e5e565b600a841115611b375760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b23990373ab6b132b960911b60448201526064016109c8565b611b418385612004565b341015611b845760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b60448201526064016109c8565b336000611b95828288808989611916565b600e549091506001600160a01b03808316911614611bc55760405162461bcd60e51b81526004016109c890612e8d565b60005b86811015610fb857336000908152600d60205260408120805460019290611bf0908490612dc5565b90915550611c0490503385610f9f81612ddd565b80611c0e81612ddd565b915050611bc8565b6000546001600160a01b03163314611c405760405162461bcd60e51b81526004016109c890612d7a565b6001600160a01b038116611ca55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c8565b6112ea816121cd565b6000546001600160a01b03163314611cd85760405162461bcd60e51b81526004016109c890612d7a565b600955565b6000546001600160a01b03163314611d075760405162461bcd60e51b81526004016109c890612d7a565b600755565b600354600090821080156108c8575060006001600160a01b031660038381548110611d3957611d39612ebd565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d8b82610fc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611dcf82611d0c565b611e305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c8565b6000611e3b83610fc1565b9050806001600160a01b0316846001600160a01b03161480611e765750836001600160a01b0316611e6b84610960565b6001600160a01b0316145b80611ea657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ec182610fc1565b6001600160a01b031614611f295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109c8565b6001600160a01b038216611f8b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c8565b611f96600082611d56565b8160038281548110611faa57611faa612ebd565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006120108284612ed3565b9392505050565b6001600160a01b03821661206d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c8565b61207681611d0c565b156120c35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c8565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006120108284612fe8565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561219557600080fd5b505af11580156121a9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161b9190612ef2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610afe573d6000803e3d6000fd5b61225e848484611eae565b61226a848484846123a8565b61161b5760405162461bcd60e51b81526004016109c890612ffc565b6060816122aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d457806122be81612ddd565b91506122cd9050600a83612fe8565b91506122ae565b60008167ffffffffffffffff8111156122ef576122ef6129e9565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b8415611ea65761232e60018361304e565b915061233b600a86613065565b612346906030612dc5565b60f81b81838151811061235b5761235b612ebd565b60200101906001600160f81b031916908160001a90535061237d600a86612fe8565b945061231d565b600080600061239385856124b5565b915091506123a081612525565b509392505050565b60006001600160a01b0384163b156124aa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123ec903390899088908890600401613079565b602060405180830381600087803b15801561240657600080fd5b505af1925050508015612436575060408051601f3d908101601f19168201909252612433918101906130b6565b60015b612490573d808015612464576040519150601f19603f3d011682016040523d82523d6000602084013e612469565b606091505b5080516124885760405162461bcd60e51b81526004016109c890612ffc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea6565b506001949350505050565b6000808251604114156124ec5760208301516040840151606085015160001a6124e0878285856126e0565b9450945050505061251e565b825160401415612516576020830151604084015161250b8683836127cd565b93509350505061251e565b506000905060025b9250929050565b6000816004811115612539576125396130d3565b14156125425750565b6001816004811115612556576125566130d3565b14156125a45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109c8565b60028160048111156125b8576125b86130d3565b14156126065760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109c8565b600381600481111561261a5761261a6130d3565b14156126735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109c8565b6004816004811115612687576126876130d3565b14156112ea5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109c8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271757506000905060036127c4565b8460ff16601b1415801561272f57508460ff16601c14155b1561274057506000905060046127c4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612794573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bd576000600192509250506127c4565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ee878288856126e0565b935093505050935093915050565b82805461280890612cee565b90600052602060002090601f01602090048101928261282a5760008555612870565b82601f1061284357805160ff1916838001178555612870565b82800160010185558215612870579182015b82811115612870578251825591602001919060010190612855565b5061287c929150612880565b5090565b5b8082111561287c5760008155600101612881565b6001600160e01b0319811681146112ea57600080fd5b6000602082840312156128bd57600080fd5b813561201081612895565b60005b838110156128e35781810151838201526020016128cb565b8381111561161b5750506000910152565b6000815180845261290c8160208601602086016128c8565b601f01601f19169290920160200192915050565b60208152600061201060208301846128f4565b60006020828403121561294557600080fd5b5035919050565b80356001600160a01b038116811461296357600080fd5b919050565b6000806040838503121561297b57600080fd5b6129848361294c565b946020939093013593505050565b6000806000606084860312156129a757600080fd5b6129b08461294c565b92506129be6020850161294c565b9150604084013590509250925092565b6000602082840312156129e057600080fd5b6120108261294c565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a1a57612a1a6129e9565b604051601f8501601f19908116603f01168101908282118183101715612a4257612a426129e9565b81604052809350858152868686011115612a5b57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612a8757600080fd5b813567ffffffffffffffff811115612a9e57600080fd5b8201601f81018413612aaf57600080fd5b611ea6848235602084016129ff565b600082601f830112612acf57600080fd5b612010838335602085016129ff565b600080600060608486031215612af357600080fd5b8335925060208401359150604084013567ffffffffffffffff811115612b1857600080fd5b612b2486828701612abe565b9150509250925092565b80151581146112ea57600080fd5b60008060408385031215612b4f57600080fd5b612b588361294c565b91506020830135612b6881612b2e565b809150509250929050565b600060208284031215612b8557600080fd5b813561201081612b2e565b60008060008060808587031215612ba657600080fd5b612baf8561294c565b9350612bbd6020860161294c565b925060408501359150606085013567ffffffffffffffff811115612be057600080fd5b612bec87828801612abe565b91505092959194509250565b60008060008060808587031215612c0e57600080fd5b612c178561294c565b93506020850135925060408501359150606085013567ffffffffffffffff811115612be057600080fd5b60008060008060008060c08789031215612c5a57600080fd5b612c638761294c565b9550612c716020880161294c565b945060408701359350606087013592506080870135915060a087013567ffffffffffffffff811115612ca257600080fd5b612cae89828a01612abe565b9150509295509295509295565b60008060408385031215612cce57600080fd5b612cd78361294c565b9150612ce56020840161294c565b90509250929050565b600181811c90821680612d0257607f821691505b60208210811415612d2357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dd857612dd8612daf565b500190565b6000600019821415612df157612df1612daf565b5060010190565b600060208284031215612e0a57600080fd5b5051919050565b60208082526010908201526f29b0b6329034b9903737ba1037b832b760811b604082015260600190565b60208082526009908201526813585e081b1a5b5a5d60ba1b604082015260600190565b602080825260159082015274105b1b081391951cc8185c99481cdbdb19081bdd5d605a1b604082015260600190565b602080825260169082015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612eed57612eed612daf565b500290565b600060208284031215612f0457600080fd5b815161201081612b2e565b60008151612f218185602086016128c8565b9290920192915050565b600080845481600182811c915080831680612f4757607f831692505b6020808410821415612f6757634e487b7160e01b86526022600452602486fd5b818015612f7b5760018114612f8c57612fb9565b60ff19861689528489019650612fb9565b60008b81526020902060005b86811015612fb15781548b820152908501908301612f98565b505084890196505b505050505050612fc98185612f0f565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612ff757612ff7612fd2565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561306057613060612daf565b500390565b60008261307457613074612fd2565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130ac908301846128f4565b9695505050505050565b6000602082840312156130c857600080fd5b815161201081612895565b634e487b7160e01b600052602160045260246000fdfea26469706673582212207673cd16299214e7fefacc4852194c0282163b6d8f4d9637b0c9eb08535819ed64736f6c634300080900330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6170692e626f6e6e79646f6c6c732e696f2f6170692f76312f6e6674732f0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102885760003560e01c80638ad5de281161015a578063c87b56dd116100c1578063e954f41d1161007a578063e954f41d14610793578063e985e9c5146107ab578063f2fde38b146107f4578063f6c9d9e314610814578063f72b5e3614610834578063fb5343f31461085457600080fd5b8063c87b56dd146106d3578063cfad78b1146106f3578063d29e95ba1461071b578063d547cfb71461073b578063d63ba14914610750578063d950587c1461076357600080fd5b8063a3bc794011610113578063a3bc7940146105fe578063aa7655381461062b578063af979f251461064b578063b88d4fde1461066b578063baf2f8681461068b578063bb7f4909146106b357600080fd5b80638ad5de28146105685780638d859f3e1461057d5780638da5cb5b1461059857806395d89b41146105b6578063a0712d68146105cb578063a22cb465146105de57600080fd5b806342842e0e116101fe5780636c19e783116101b75780636c19e783146104c957806370a08231146104e9578063715018a61461050957806371f9f2001461051e5780637362377b1461053e57806376500c171461055357600080fd5b806342842e0e1461041457806349df728c1461043457806355f804b31461045457806359a7715a146104745780635eddd157146104895780636352211e146104a957600080fd5b806323b872dd1161025057806323b872dd1461035857806326a49e371461037857806327ac36c4146103a657806333eb474c146103bb5780633502a716146103d15780633b7fcdca146103e757600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c5780631a0813301461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046128ab565b61087c565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d76108ce565b6040516102b99190612920565b3480156102f057600080fd5b506103046102ff366004612933565b610960565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612968565b6109ed565b005b34801561034a57600080fd5b50600a546102ad9060ff1681565b34801561036457600080fd5b5061033c610373366004612992565b610b03565b34801561038457600080fd5b50610398610393366004612933565b610b34565b6040519081526020016102b9565b3480156103b257600080fd5b5061033c610b47565b3480156103c757600080fd5b5061039860075481565b3480156103dd57600080fd5b5061039860065481565b3480156103f357600080fd5b506103986104023660046129ce565b600c6020526000908152604090205481565b34801561042057600080fd5b5061033c61042f366004612992565b610c19565b34801561044057600080fd5b5061033c61044f3660046129ce565b610c34565b34801561046057600080fd5b5061033c61046f366004612a75565b610e00565b34801561048057600080fd5b50600354610398565b34801561049557600080fd5b5061033c6104a4366004612ade565b610e3d565b3480156104b557600080fd5b506103046104c4366004612933565b610fc1565b3480156104d557600080fd5b5061033c6104e43660046129ce565b61104d565b3480156104f557600080fd5b506103986105043660046129ce565b611099565b34801561051557600080fd5b5061033c61116b565b34801561052a57600080fd5b5061033c610539366004612933565b6111a1565b34801561054a57600080fd5b5061033c61121a565b34801561055f57600080fd5b50610398606481565b34801561057457600080fd5b50610398600a81565b34801561058957600080fd5b5061039866d529ae9e86000081565b3480156105a457600080fd5b506000546001600160a01b0316610304565b3480156105c257600080fd5b506102d76112ed565b61033c6105d9366004612933565b6112fc565b3480156105ea57600080fd5b5061033c6105f9366004612b3c565b611448565b34801561060a57600080fd5b506103986106193660046129ce565b600d6020526000908152604090205481565b34801561063757600080fd5b5061033c610646366004612b3c565b61150d565b34801561065757600080fd5b5061033c610666366004612b73565b6115ac565b34801561067757600080fd5b5061033c610686366004612b90565b6115e9565b34801561069757600080fd5b506103047380f5d7940408bfaa3ab08d252c63616e492b4b1e81565b3480156106bf57600080fd5b5061033c6106ce366004612bf8565b611621565b3480156106df57600080fd5b506102d76106ee366004612933565b611875565b3480156106ff57600080fd5b50610304730a15f8d9b8acb352ee11a1d76e967ab44842e9f381565b34801561072757600080fd5b50610304610736366004612c41565b611916565b34801561074757600080fd5b506102d7611979565b61033c61075e366004612ade565b611a07565b34801561076f57600080fd5b506102ad61077e3660046129ce565b600b6020526000908152604090205460ff1681565b34801561079f57600080fd5b506103986361f2ebb081565b3480156107b757600080fd5b506102ad6107c6366004612cbb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561080057600080fd5b5061033c61080f3660046129ce565b611c16565b34801561082057600080fd5b5061033c61082f366004612933565b611cae565b34801561084057600080fd5b5061033c61084f366004612933565b611cdd565b34801561086057600080fd5b5061030473891096eb11b84aa3c12e346c64ae60f8e54d074a81565b60006001600160e01b031982166380ac58cd60e01b14806108ad57506001600160e01b03198216635b5e139f60e01b145b806108c857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108dd90612cee565b80601f016020809104026020016040519081016040528092919081815260200182805461090990612cee565b80156109565780601f1061092b57610100808354040283529160200191610956565b820191906000526020600020905b81548152906001019060200180831161093957829003601f168201915b5050505050905090565b600061096b82611d0c565b6109d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109f882610fc1565b9050806001600160a01b0316836001600160a01b03161415610a665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c8565b336001600160a01b0382161480610a825750610a8281336107c6565b610af45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c8565b610afe8383611d56565b505050565b610b0d3382611dc4565b610b295760405162461bcd60e51b81526004016109c890612d29565b610afe838383611eae565b60006108c866d529ae9e86000083612004565b6000546001600160a01b03163314610b715760405162461bcd60e51b81526004016109c890612d7a565b6064600954600854610b839190612dc5565b1115610bc85760405162461bcd60e51b815260206004820152601460248201527313585e081c995cd95c9d9948195e18d95959195960621b60448201526064016109c8565b60035460005b600954811015610c155760088054906000610be883612ddd565b9190505550610c03338380610bfc90612ddd565b9450612017565b80610c0d81612ddd565b915050610bce565b5050565b610afe838383604051806020016040528060008152506115e9565b6000546001600160a01b03163314610c5e5760405162461bcd60e51b81526004016109c890612d7a565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ca057600080fd5b505afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd89190612df8565b905060008111610ce757600080fd5b610d1b8273891096eb11b84aa3c12e346c64ae60f8e54d074a610d166064610d10866032612004565b9061213f565b61214b565b610d44827380f5d7940408bfaa3ab08d252c63616e492b4b1e610d166064610d10866014612004565b610d6d82730a15f8d9b8acb352ee11a1d76e967ab44842e9f3610d166064610d1086600a612004565b6040516370a0823160e01b8152306004820152610c1590839073891096eb11b84aa3c12e346c64ae60f8e54d074a906001600160a01b038316906370a082319060240160206040518083038186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d169190612df8565b6000546001600160a01b03163314610e2a5760405162461bcd60e51b81526004016109c890612d7a565b8051610c1590600f9060208401906127fc565b6000546001600160a01b03163314610e7157600a5460ff16610e715760405162461bcd60e51b81526004016109c890612e11565b336000908152600c60205260409020548311610ecf5760405162461bcd60e51b815260206004820152601c60248201527f436c61696d696e672065786365656473206d617820616c6c6f7765640000000060448201526064016109c8565b600354600654610edf8483612dc5565b1115610efd5760405162461bcd60e51b81526004016109c890612e3b565b600654811115610f1f5760405162461bcd60e51b81526004016109c890612e5e565b336000610f30828287898289611916565b600e549091506001600160a01b03808316911614610f605760405162461bcd60e51b81526004016109c890612e8d565b60005b85811015610fb857336000908152600c60205260408120805460019290610f8b908490612dc5565b90915550610fa690503385610f9f81612ddd565b9650612017565b80610fb081612ddd565b915050610f63565b50505050505050565b60008060038381548110610fd757610fd7612ebd565b6000918252602090912001546001600160a01b03169050806108c85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c8565b6000546001600160a01b031633146110775760405162461bcd60e51b81526004016109c890612d7a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166111045760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c8565b600354600090815b81811015611162576003818154811061112757611127612ebd565b6000918252602090912001546001600160a01b03868116911614156111525761114f83612ddd565b92505b61115b81612ddd565b905061110c565b50909392505050565b6000546001600160a01b031633146111955760405162461bcd60e51b81526004016109c890612d7a565b61119f60006121cd565b565b6000546001600160a01b031633146111cb5760405162461bcd60e51b81526004016109c890612d7a565b6003548082116112145760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd081b995dc8185b5bdd5b9d60621b60448201526064016109c8565b50600655565b6000546001600160a01b031633146112445760405162461bcd60e51b81526004016109c890612d7a565b478061124f57600080fd5b61127c73891096eb11b84aa3c12e346c64ae60f8e54d074a6112776064610d10856032612004565b61221d565b6112a47380f5d7940408bfaa3ab08d252c63616e492b4b1e6112776064610d10856014612004565b6112cc730a15f8d9b8acb352ee11a1d76e967ab44842e9f36112776064610d1085600a612004565b6112ea73891096eb11b84aa3c12e346c64ae60f8e54d074a4761221d565b50565b6060600280546108dd90612cee565b6000546001600160a01b0316331461133057600a5460ff166113305760405162461bcd60e51b81526004016109c890612e11565b6003546006546007546113438484612dc5565b61134d9190612dc5565b111561136b5760405162461bcd60e51b81526004016109c890612e3b565b60065481111561138d5760405162461bcd60e51b81526004016109c890612e5e565b600a8211156113d15760405162461bcd60e51b815260206004820152601060248201526f115e18d959591cc81c195c881b5a5b9d60821b60448201526064016109c8565b6113da82610b34565b34101561141d5760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b60448201526064016109c8565b60005b82811015610afe576114363383610bfc81612ddd565b8061144081612ddd565b915050611420565b6001600160a01b0382163314156114a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146115375760405162461bcd60e51b81526004016109c890612d7a565b6001600160a01b0382166115815760405162461bcd60e51b8152602060048201526011602482015270496e636f7272656374206164647265737360781b60448201526064016109c8565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146115d65760405162461bcd60e51b81526004016109c890612d7a565b600a805460ff1916911515919091179055565b6115f33383611dc4565b61160f5760405162461bcd60e51b81526004016109c890612d29565b61161b84848484612253565b50505050565b6000546001600160a01b0316331461165557600a5460ff166116555760405162461bcd60e51b81526004016109c890612e11565b6003546006546007546116688684612dc5565b6116729190612dc5565b11156116905760405162461bcd60e51b81526004016109c890612e3b565b6006548111156116b25760405162461bcd60e51b81526004016109c890612e5e565b600a8411156116f45760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b23990373ab6b132b960911b60448201526064016109c8565b6001600160a01b0385166000908152600b602052604090205460ff1661175c5760405162461bcd60e51b815260206004820181905260248201527f596f752063616e206e6f74206d696e742077697468207468697320746f6b656e60448201526064016109c8565b33600061176d828888808989611916565b600e549091506001600160a01b0380831691161461179d5760405162461bcd60e51b81526004016109c890612e8d565b6001600160a01b0387166323b872dd33306117b88a8a612ed3565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561180757600080fd5b505af115801561181b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183f9190612ef2565b5060005b8681101561186b576118593385610f9f81612ddd565b8061186381612ddd565b915050611843565b5050505050505050565b606061188082611d0c565b6118e45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c8565b600f6118ef83612286565b604051602001611900929190612f2b565b6040516020818303038152906040529050919050565b604080516001600160a01b038089166020830152871691810191909152606081018590526080810184905260a0810183905260009061196e9060c0016040516020818303038152906040528051906020012083612384565b979650505050505050565b600f805461198690612cee565b80601f01602080910402602001604051908101604052809291908181526020018280546119b290612cee565b80156119ff5780601f106119d4576101008083540402835291602001916119ff565b820191906000526020600020905b8154815290600101906020018083116119e257829003601f168201915b505050505081565b6000546001600160a01b03163314611a3b57600a5460ff16611a3b5760405162461bcd60e51b81526004016109c890612e11565b336000908152600d60205260409020548311611aa55760405162461bcd60e51b8152602060048201526024808201527f446973636f756e74656420636f756e742065786365656473206d617820616c6c6044820152631bddd95960e21b60648201526084016109c8565b600354600654611ab58583612dc5565b1115611ad35760405162461bcd60e51b81526004016109c890612e3b565b600654811115611af55760405162461bcd60e51b81526004016109c890612e5e565b600a841115611b375760405162461bcd60e51b815260206004820152600e60248201526d22bc31b2b2b23990373ab6b132b960911b60448201526064016109c8565b611b418385612004565b341015611b845760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b60448201526064016109c8565b336000611b95828288808989611916565b600e549091506001600160a01b03808316911614611bc55760405162461bcd60e51b81526004016109c890612e8d565b60005b86811015610fb857336000908152600d60205260408120805460019290611bf0908490612dc5565b90915550611c0490503385610f9f81612ddd565b80611c0e81612ddd565b915050611bc8565b6000546001600160a01b03163314611c405760405162461bcd60e51b81526004016109c890612d7a565b6001600160a01b038116611ca55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c8565b6112ea816121cd565b6000546001600160a01b03163314611cd85760405162461bcd60e51b81526004016109c890612d7a565b600955565b6000546001600160a01b03163314611d075760405162461bcd60e51b81526004016109c890612d7a565b600755565b600354600090821080156108c8575060006001600160a01b031660038381548110611d3957611d39612ebd565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d8b82610fc1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611dcf82611d0c565b611e305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c8565b6000611e3b83610fc1565b9050806001600160a01b0316846001600160a01b03161480611e765750836001600160a01b0316611e6b84610960565b6001600160a01b0316145b80611ea657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ec182610fc1565b6001600160a01b031614611f295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109c8565b6001600160a01b038216611f8b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c8565b611f96600082611d56565b8160038281548110611faa57611faa612ebd565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006120108284612ed3565b9392505050565b6001600160a01b03821661206d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c8565b61207681611d0c565b156120c35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c8565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006120108284612fe8565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561219557600080fd5b505af11580156121a9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161b9190612ef2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610afe573d6000803e3d6000fd5b61225e848484611eae565b61226a848484846123a8565b61161b5760405162461bcd60e51b81526004016109c890612ffc565b6060816122aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d457806122be81612ddd565b91506122cd9050600a83612fe8565b91506122ae565b60008167ffffffffffffffff8111156122ef576122ef6129e9565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b8415611ea65761232e60018361304e565b915061233b600a86613065565b612346906030612dc5565b60f81b81838151811061235b5761235b612ebd565b60200101906001600160f81b031916908160001a90535061237d600a86612fe8565b945061231d565b600080600061239385856124b5565b915091506123a081612525565b509392505050565b60006001600160a01b0384163b156124aa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123ec903390899088908890600401613079565b602060405180830381600087803b15801561240657600080fd5b505af1925050508015612436575060408051601f3d908101601f19168201909252612433918101906130b6565b60015b612490573d808015612464576040519150601f19603f3d011682016040523d82523d6000602084013e612469565b606091505b5080516124885760405162461bcd60e51b81526004016109c890612ffc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea6565b506001949350505050565b6000808251604114156124ec5760208301516040840151606085015160001a6124e0878285856126e0565b9450945050505061251e565b825160401415612516576020830151604084015161250b8683836127cd565b93509350505061251e565b506000905060025b9250929050565b6000816004811115612539576125396130d3565b14156125425750565b6001816004811115612556576125566130d3565b14156125a45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109c8565b60028160048111156125b8576125b86130d3565b14156126065760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109c8565b600381600481111561261a5761261a6130d3565b14156126735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109c8565b6004816004811115612687576126876130d3565b14156112ea5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109c8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271757506000905060036127c4565b8460ff16601b1415801561272f57508460ff16601c14155b1561274057506000905060046127c4565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612794573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bd576000600192509250506127c4565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ee878288856126e0565b935093505050935093915050565b82805461280890612cee565b90600052602060002090601f01602090048101928261282a5760008555612870565b82601f1061284357805160ff1916838001178555612870565b82800160010185558215612870579182015b82811115612870578251825591602001919060010190612855565b5061287c929150612880565b5090565b5b8082111561287c5760008155600101612881565b6001600160e01b0319811681146112ea57600080fd5b6000602082840312156128bd57600080fd5b813561201081612895565b60005b838110156128e35781810151838201526020016128cb565b8381111561161b5750506000910152565b6000815180845261290c8160208601602086016128c8565b601f01601f19169290920160200192915050565b60208152600061201060208301846128f4565b60006020828403121561294557600080fd5b5035919050565b80356001600160a01b038116811461296357600080fd5b919050565b6000806040838503121561297b57600080fd5b6129848361294c565b946020939093013593505050565b6000806000606084860312156129a757600080fd5b6129b08461294c565b92506129be6020850161294c565b9150604084013590509250925092565b6000602082840312156129e057600080fd5b6120108261294c565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612a1a57612a1a6129e9565b604051601f8501601f19908116603f01168101908282118183101715612a4257612a426129e9565b81604052809350858152868686011115612a5b57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612a8757600080fd5b813567ffffffffffffffff811115612a9e57600080fd5b8201601f81018413612aaf57600080fd5b611ea6848235602084016129ff565b600082601f830112612acf57600080fd5b612010838335602085016129ff565b600080600060608486031215612af357600080fd5b8335925060208401359150604084013567ffffffffffffffff811115612b1857600080fd5b612b2486828701612abe565b9150509250925092565b80151581146112ea57600080fd5b60008060408385031215612b4f57600080fd5b612b588361294c565b91506020830135612b6881612b2e565b809150509250929050565b600060208284031215612b8557600080fd5b813561201081612b2e565b60008060008060808587031215612ba657600080fd5b612baf8561294c565b9350612bbd6020860161294c565b925060408501359150606085013567ffffffffffffffff811115612be057600080fd5b612bec87828801612abe565b91505092959194509250565b60008060008060808587031215612c0e57600080fd5b612c178561294c565b93506020850135925060408501359150606085013567ffffffffffffffff811115612be057600080fd5b60008060008060008060c08789031215612c5a57600080fd5b612c638761294c565b9550612c716020880161294c565b945060408701359350606087013592506080870135915060a087013567ffffffffffffffff811115612ca257600080fd5b612cae89828a01612abe565b9150509295509295509295565b60008060408385031215612cce57600080fd5b612cd78361294c565b9150612ce56020840161294c565b90509250929050565b600181811c90821680612d0257607f821691505b60208210811415612d2357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dd857612dd8612daf565b500190565b6000600019821415612df157612df1612daf565b5060010190565b600060208284031215612e0a57600080fd5b5051919050565b60208082526010908201526f29b0b6329034b9903737ba1037b832b760811b604082015260600190565b60208082526009908201526813585e081b1a5b5a5d60ba1b604082015260600190565b602080825260159082015274105b1b081391951cc8185c99481cdbdb19081bdd5d605a1b604082015260600190565b602080825260169082015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612eed57612eed612daf565b500290565b600060208284031215612f0457600080fd5b815161201081612b2e565b60008151612f218185602086016128c8565b9290920192915050565b600080845481600182811c915080831680612f4757607f831692505b6020808410821415612f6757634e487b7160e01b86526022600452602486fd5b818015612f7b5760018114612f8c57612fb9565b60ff19861689528489019650612fb9565b60008b81526020902060005b86811015612fb15781548b820152908501908301612f98565b505084890196505b505050505050612fc98185612f0f565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612ff757612ff7612fd2565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008282101561306057613060612daf565b500390565b60008261307457613074612fd2565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130ac908301846128f4565b9695505050505050565b6000602082840312156130c857600080fd5b815161201081612895565b634e487b7160e01b600052602160045260246000fdfea26469706673582212207673cd16299214e7fefacc4852194c0282163b6d8f4d9637b0c9eb08535819ed64736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6170692e626f6e6e79646f6c6c732e696f2f6170692f76312f6e6674732f0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://api.bonnydolls.io/api/v1/nfts/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [2] : 68747470733a2f2f6170692e626f6e6e79646f6c6c732e696f2f6170692f7631
Arg [3] : 2f6e6674732f0000000000000000000000000000000000000000000000000000


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.