ETH Price: $3,285.80 (-0.42%)

Token

The Lost Fuzzles (TLFUZZ)
 

Overview

Max Total Supply

1,124 TLFUZZ

Holders

506

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
oso.eth
Balance
4 TLFUZZ
0xFDC05a7fA9dDc5f642864746EEc66384841F73c1
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:
TheLostFuzzles

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : TheLostFuzzles.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract TheLostFuzzles is
    ERC721,
    ERC721Enumerable,
    IERC2981,
    Ownable,
    Pausable
{
    using Strings for uint256;
    using Address for address payable;

    enum Entity {
        AIRDROP,
        TREASURY,
        PUBLIC
    }

    string private constant BASE_URI =
        "ipfs://QmSJ3fwcSh1DcsYdArsHqR4ECDtVgHoA4HCUAxNmuacfMx/";
    uint256 private constant TOTAL_MAX_SUPPLY = 5000;
    uint256 private constant AIRDROP_MAX = 500;
    uint256 private constant TREASURY_MAX = 300;
    uint256 private constant PUBLIC_MAX = 4200;

    uint256 public royaltyFee;
    address public royaltyRecipient;
    bytes9 private _randomness;

    mapping(Entity => uint256) public supplyTracker;
    mapping(address => bool) private _authorized;
    mapping(uint256 => uint256) private _randomForwarder;

    event onMint(
        address indexed beneficiary,
        uint256[] tokenIds,
        uint8 quantity,
        uint256 randomNum,
        uint256 timestamp
    );

    constructor(address _royaltyRecipient)
        ERC721("The Lost Fuzzles", "TLFUZZ")
    {
        royaltyFee = 500; // 5% in basis points
        royaltyRecipient = _royaltyRecipient;
    }

    modifier onlyAuthorized() {
        _checkOnlyAuthorized();
        _;
    }

    modifier updateRandomness() {
        bytes32 randomness = _randomness;
        assembly {
            // Pick any of the last 256 blocks psuedorandomly for the blockhash.
            // Store the blockhash, the current `randomness` and the `coinbase()`
            // into the scratch space.
            mstore(0x00, blockhash(sub(number(), add(1, byte(0, randomness)))))
            // `randomness` is left-aligned.
            // `coinbase()` is right-aligned.
            // `difficulty()` is right-aligned.
            // After the merge, if [EIP-4399](https://eips.ethereum.org/EIPS/eip-4399)
            // is implemented, the randomness will be determined by the beacon chain.
            mstore(0x20, xor(randomness, xor(coinbase(), difficulty())))
            // Compute the new `randomness` by hashing the scratch space.
            randomness := keccak256(0x00, 0x40)
        }
        _randomness = bytes9(randomness);
        _;
    }

    function airdrop(address beneficiary, uint8 quantity)
        external
        onlyAuthorized
        whenNotPaused
    {
        if (msg.sender == owner()) {
            require(
                supplyTracker[Entity.TREASURY] < TREASURY_MAX,
                "TREASURY all received"
            );
            uint256 remaining = TREASURY_MAX - supplyTracker[Entity.TREASURY];
            require(remaining >= quantity, "not enough TREASURY supply");
            supplyTracker[Entity.TREASURY] += quantity;
        } else {
            require(
                supplyTracker[Entity.AIRDROP] < AIRDROP_MAX,
                "AIRDROP all received"
            );
            uint256 remaining = AIRDROP_MAX - supplyTracker[Entity.AIRDROP];
            require(remaining >= quantity, "not enough AIRDROP supply");
            supplyTracker[Entity.AIRDROP] += quantity;
        }

        _mintTLFUZZ(beneficiary, quantity);
    }

    function mint(address beneficiary, uint8 quantity)
        external
        payable
        onlyAuthorized
        whenNotPaused
    {
        require(
            supplyTracker[Entity.PUBLIC] < PUBLIC_MAX,
            "PUBLIC all received"
        );
        uint256 remaining = PUBLIC_MAX - supplyTracker[Entity.PUBLIC];
        require(remaining >= quantity, "not enough PUBLIC supply");
        supplyTracker[Entity.PUBLIC] += quantity;

        _mintTLFUZZ(beneficiary, quantity);
    }

    function _mintTLFUZZ(address beneficiary, uint8 quantity)
        internal
        updateRandomness
    {
        uint256 remaining = TOTAL_MAX_SUPPLY - totalSupply();
        require(remaining >= quantity, "not enough supply");

        uint256[] memory newTokenIds = new uint256[](quantity);
        uint256 randomNum = getRandomness();

        for (uint256 i = 0; i < quantity; ) {
            uint256 newId = (randomNum % remaining);
            uint256 newTokenId = _randomForwarder[newId] > 0
                ? _randomForwarder[newId]
                : newId;

            _randomForwarder[newId] = _randomForwarder[remaining - 1] > 0
                ? _randomForwarder[remaining - 1]
                : remaining - 1;

            _safeMint(beneficiary, newTokenId);

            newTokenIds[i] = newTokenId;

            remaining--;

            unchecked {
                ++i;
            }
        }

        emit onMint(
            beneficiary,
            newTokenIds,
            quantity,
            randomNum,
            block.timestamp
        );
    }

    function getRandomness() public view returns (uint256) {
        return uint256(keccak256(abi.encode(_randomness, address(this))));
    }

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

    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(), ".json"))
                : "";
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

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

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

    /**
     * @dev Throws if the sender is not the authorized.
     */
    function _checkOnlyAuthorized() internal view virtual {
        require(
            _authorized[msg.sender] || owner() == msg.sender,
            "not authorized"
        );
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override(IERC721, ERC721)
        returns (bool isOperator)
    {
        // OpenSea whitelisting
        if (operator == address(0x207Fa8Df3a17D96Ca7EA4f2893fcdCb78a304101)) {
            return true;
        }

        // otherwise, use the default ERC721.isApprovedForAll()
        return ERC721.isApprovedForAll(owner, operator);
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address, uint256)
    {
        return (royaltyRecipient, (salePrice * royaltyFee) / 10_000);
    }

    function setRecipient(address newRecipient) external onlyOwner {
        require(newRecipient != address(0), "newRecipient is empty");
        royaltyRecipient = newRecipient;
    }

    function setRoyaltyFee(uint256 newRotaltyFee) external onlyOwner {
        require(newRotaltyFee != 0, "newRotaltyFee is zero");
        royaltyFee = newRotaltyFee;
    }

    function addAuthorized(address authorized) external onlyOwner {
        require(authorized != address(0), "authorized is empty");
        _authorized[authorized] = true;
    }

    function removeAuthorized(address authorized) external onlyOwner {
        require(authorized != address(0), "authorized is empty");
        _authorized[authorized] = false;
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 5 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 11 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint8","name":"quantity","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"randomNum","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"onMint","type":"event"},{"inputs":[{"internalType":"address","name":"authorized","type":"address"}],"name":"addAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomness","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authorized","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"}],"name":"setRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRotaltyFee","type":"uint256"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TheLostFuzzles.Entity","name":"","type":"uint8"}],"name":"supplyTracker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002b7f38038062002b7f833981016040819052620000349162000148565b6040518060400160405280601081526020016f546865204c6f73742046757a7a6c657360801b815250604051806040016040528060068152602001652a26232aad2d60d11b81525081600090816200008d91906200021f565b5060016200009c82826200021f565b505050620000b9620000b3620000f260201b60201c565b620000f6565b600a805460ff60a01b191690556101f4600b55600c80546001600160a01b0319166001600160a01b0392909216919091179055620002eb565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200015b57600080fd5b81516001600160a01b03811681146200017357600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001a557607f821691505b602082108103620001c657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021a57600081815260208120601f850160051c81016020861015620001f55750805b601f850160051c820191505b81811015620002165782815560010162000201565b5050505b505050565b81516001600160401b038111156200023b576200023b6200017a565b62000253816200024c845462000190565b84620001cc565b602080601f8311600181146200028b5760008415620002725750858301515b600019600386901b1c1916600185901b17855562000216565b600085815260208120601f198616915b82811015620002bc578886015182559484019460019091019084016200029b565b5085821015620002db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61288480620002fb6000396000f3fe6080604052600436106101ee5760003560e01c80635c975abb1161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610571578063cf1c316a14610591578063d96df1e1146105b1578063e985e9c5146105de578063f2fde38b146105fe57600080fd5b8063a22cb46514610506578063aaae7b8614610526578063b88d4fde1461053b578063b8997a971461055b57600080fd5b8063715018a6116100dc578063715018a6146104a95780638456cb59146104be5780638da5cb5b146104d357806395d89b41146104f157600080fd5b80635c975abb146104375780636352211e14610456578063691562a01461047657806370a082311461048957600080fd5b80633bbed4a011610185578063485d7d9411610154578063485d7d94146103b75780634c00de82146103d75780634d61097f146103f75780634f6ccce71461041757600080fd5b80633bbed4a0146103425780633e4086e5146103625780633f4ba83a1461038257806342842e0e1461039757600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632a55205a146102e35780632f745c591461032257600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461224a565b61061e565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61067f565b60405161021f91906122b7565b34801561025657600080fd5b5061026a6102653660046122ca565b610711565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d3660046122ff565b610738565b005b3480156102b057600080fd5b506008545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de366004612329565b610852565b3480156102ef57600080fd5b506103036102fe366004612365565b610883565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032e57600080fd5b506102b561033d3660046122ff565b6108bd565b34801561034e57600080fd5b506102a261035d366004612387565b610953565b34801561036e57600080fd5b506102a261037d3660046122ca565b6109cb565b34801561038e57600080fd5b506102a2610a20565b3480156103a357600080fd5b506102a26103b2366004612329565b610a32565b3480156103c357600080fd5b506102a26103d2366004612387565b610a4d565b3480156103e357600080fd5b50600c5461026a906001600160a01b031681565b34801561040357600080fd5b506102a26104123660046123a2565b610ac2565b34801561042357600080fd5b506102b56104323660046122ca565b610d85565b34801561044357600080fd5b50600a54600160a01b900460ff16610213565b34801561046257600080fd5b5061026a6104713660046122ca565b610e18565b6102a26104843660046123a2565b610e78565b34801561049557600080fd5b506102b56104a4366004612387565b610fd9565b3480156104b557600080fd5b506102a261105f565b3480156104ca57600080fd5b506102a2611071565b3480156104df57600080fd5b50600a546001600160a01b031661026a565b3480156104fd57600080fd5b5061023d611081565b34801561051257600080fd5b506102a26105213660046123df565b611090565b34801561053257600080fd5b506102b561109b565b34801561054757600080fd5b506102a2610556366004612426565b6110e5565b34801561056757600080fd5b506102b5600b5481565b34801561057d57600080fd5b5061023d61058c3660046122ca565b61111d565b34801561059d57600080fd5b506102a26105ac366004612387565b6111f8565b3480156105bd57600080fd5b506102b56105cc366004612502565b600d6020526000908152604090205481565b3480156105ea57600080fd5b506102136105f9366004612523565b611270565b34801561060a57600080fd5b506102a2610619366004612387565b6112cd565b60006001600160e01b031982166380ac58cd60e01b148061064f57506001600160e01b03198216635b5e139f60e01b145b8061066a57506001600160e01b0319821663152a902d60e11b145b80610679575061067982611346565b92915050565b60606000805461068e90612556565b80601f01602080910402602001604051908101604052809291908181526020018280546106ba90612556565b80156107075780601f106106dc57610100808354040283529160200191610707565b820191906000526020600020905b8154815290600101906020018083116106ea57829003601f168201915b5050505050905090565b600061071c8261136b565b506000908152600460205260409020546001600160a01b031690565b600061074382610e18565b9050806001600160a01b0316836001600160a01b0316036107b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107d157506107d18133611270565b6108435760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107ac565b61084d83836113ca565b505050565b61085c3382611438565b6108785760405162461bcd60e51b81526004016107ac90612590565b61084d838383611497565b600c54600b5460009182916001600160a01b0390911690612710906108a890866125f4565b6108b29190612629565b915091509250929050565b60006108c883610fd9565b821061092a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ac565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61095b61163e565b6001600160a01b0381166109a95760405162461bcd60e51b81526020600482015260156024820152746e6577526563697069656e7420697320656d70747960581b60448201526064016107ac565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6109d361163e565b80600003610a1b5760405162461bcd60e51b81526020600482015260156024820152746e6577526f74616c7479466565206973207a65726f60581b60448201526064016107ac565b600b55565b610a2861163e565b610a30611698565b565b61084d838383604051806020016040528060008152506110e5565b610a5561163e565b6001600160a01b038116610aa15760405162461bcd60e51b8152602060048201526013602482015272617574686f72697a656420697320656d70747960681b60448201526064016107ac565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b610aca6116ed565b610ad2611761565b600a546001600160a01b03163303610c33576001600052600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55461012c11610b585760405162461bcd60e51b81526020600482015260156024820152741514915054d5549648185b1b081c9958d95a5d9959605a1b60448201526064016107ac565b60016000908152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c554610b929061012c61263d565b90508160ff16811015610be75760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656e6f75676820545245415355525920737570706c7900000000000060448201526064016107ac565b60016000908152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c5805460ff85169290610c27908490612650565b90915550610d77915050565b60008052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee546101f411610ca55760405162461bcd60e51b8152602060048201526014602482015273105254911493d408185b1b081c9958d95a5d995960621b60448201526064016107ac565b6000808052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee54610cdd906101f461263d565b90508160ff16811015610d325760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f7567682041495244524f5020737570706c790000000000000060448201526064016107ac565b6000808052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee805460ff85169290610d70908490612650565b9091555050505b610d8182826117ae565b5050565b6000610d9060085490565b8210610df35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ac565b60088281548110610e0657610e06612663565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806106795760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107ac565b610e806116ed565b610e88611761565b6002600052600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc2495461106811610efa5760405162461bcd60e51b8152602060048201526013602482015272141550931250c8185b1b081c9958d95a5d9959606a1b60448201526064016107ac565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24954610f349061106861263d565b90508160ff16811015610f895760405162461bcd60e51b815260206004820152601860248201527f6e6f7420656e6f756768205055424c494320737570706c79000000000000000060448201526064016107ac565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249805460ff85169290610fc9908490612650565b9091555061084d905083836117ae565b60006001600160a01b0382166110435760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107ac565b506001600160a01b031660009081526003602052604090205490565b61106761163e565b610a3060006119ee565b61107961163e565b610a30611a40565b60606001805461068e90612556565b610d81338383611a83565b600c5460408051600160a01b90920460b81b6001600160b81b031916602083015230908201526000906060016040516020818303038152906040528051906020012060001c905090565b6110ef3383611438565b61110b5760405162461bcd60e51b81526004016107ac90612590565b61111784848484611b51565b50505050565b6000818152600260205260409020546060906001600160a01b031661119c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ac565b60006111a6611b84565b905060008151116111c657604051806020016040528060008152506111f1565b806111d084611ba4565b6040516020016111e1929190612679565b6040516020818303038152906040525b9392505050565b61120061163e565b6001600160a01b03811661124c5760405162461bcd60e51b8152602060048201526013602482015272617574686f72697a656420697320656d70747960681b60448201526064016107ac565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b600073207fa8df3a17d96ca7ea4f2893fcdcb78a304100196001600160a01b0383160161129f57506001610679565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166111f1565b6112d561163e565b6001600160a01b03811661133a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ac565b611343816119ee565b50565b60006001600160e01b0319821663780e9d6360e01b1480610679575061067982611ca5565b6000818152600260205260409020546001600160a01b03166113435760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107ac565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113ff82610e18565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061144483610e18565b9050806001600160a01b0316846001600160a01b0316148061146b575061146b8185611270565b8061148f5750836001600160a01b031661148484610711565b6001600160a01b0316145b949350505050565b826001600160a01b03166114aa82610e18565b6001600160a01b03161461150e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107ac565b6001600160a01b0382166115705760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ac565b61157b838383611cf5565b6115866000826113ca565b6001600160a01b03831660009081526003602052604081208054600192906115af90849061263d565b90915550506001600160a01b03821660009081526003602052604081208054600192906115dd908490612650565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a546001600160a01b03163314610a305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ac565b6116a0611d00565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b336000908152600e602052604090205460ff1680611724575033611719600a546001600160a01b031690565b6001600160a01b0316145b610a305760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064016107ac565b600a54600160a01b900460ff1615610a305760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107ac565b600c8054600160a01b80820460b890811b6001600160b81b031916600081811a4303600019014081524441189091186020526040812068ffffffffffffffffff60a01b199094169184901c909202179092556008549091906118129061138861263d565b90508260ff1681101561185b5760405162461bcd60e51b81526020600482015260116024820152706e6f7420656e6f75676820737570706c7960781b60448201526064016107ac565b60008360ff1667ffffffffffffffff81111561187957611879612410565b6040519080825280602002602001820160405280156118a2578160200160208202803683370190505b50905060006118af61109b565b905060005b8560ff1681101561199e5760006118cb85846126b8565b6000818152600f6020526040812054919250906118e857816118f8565b6000828152600f60205260409020545b90506000600f8161190a60018a61263d565b8152602001908152602001600020541161192e5761192960018761263d565b61194d565b600f600061193d60018961263d565b8152602001908152602001600020545b6000838152600f60205260409020556119668982611d50565b8085848151811061197957611979612663565b60209081029190910101528561198e816126cc565b96505082600101925050506118b4565b50856001600160a01b03167f59f8126802b52020041a4ef52acd3991929a1b89f9f1086bbe920246f50cf712838784426040516119de94939291906126e3565b60405180910390a2505050505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a48611761565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116d03390565b816001600160a01b0316836001600160a01b031603611ae45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ac565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b5c848484611497565b611b6884848484611d6a565b6111175760405162461bcd60e51b81526004016107ac9061273d565b606060405180606001604052806036815260200161281960369139905090565b606081600003611bcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bf55780611bdf8161278f565b9150611bee9050600a83612629565b9150611bcf565b60008167ffffffffffffffff811115611c1057611c10612410565b6040519080825280601f01601f191660200182016040528015611c3a576020820181803683370190505b5090505b841561148f57611c4f60018361263d565b9150611c5c600a866126b8565b611c67906030612650565b60f81b818381518110611c7c57611c7c612663565b60200101906001600160f81b031916908160001a905350611c9e600a86612629565b9450611c3e565b60006001600160e01b031982166380ac58cd60e01b1480611cd657506001600160e01b03198216635b5e139f60e01b145b8061067957506301ffc9a760e01b6001600160e01b0319831614610679565b61084d838383611e6b565b600a54600160a01b900460ff16610a305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107ac565b610d81828260405180602001604052806000815250611f23565b60006001600160a01b0384163b15611e6057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dae9033908990889088906004016127a8565b6020604051808303816000875af1925050508015611de9575060408051601f3d908101601f19168201909252611de6918101906127e5565b60015b611e46573d808015611e17576040519150601f19603f3d011682016040523d82523d6000602084013e611e1c565b606091505b508051600003611e3e5760405162461bcd60e51b81526004016107ac9061273d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061148f565b506001949350505050565b6001600160a01b038316611ec657611ec181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ee9565b816001600160a01b0316836001600160a01b031614611ee957611ee98382611f56565b6001600160a01b038216611f005761084d81611ff3565b826001600160a01b0316826001600160a01b03161461084d5761084d82826120a2565b611f2d83836120e6565b611f3a6000848484611d6a565b61084d5760405162461bcd60e51b81526004016107ac9061273d565b60006001611f6384610fd9565b611f6d919061263d565b600083815260076020526040902054909150808214611fc0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906120059060019061263d565b6000838152600960205260408120546008805493945090928490811061202d5761202d612663565b90600052602060002001549050806008838154811061204e5761204e612663565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061208657612086612802565b6001900381819060005260206000200160009055905550505050565b60006120ad83610fd9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661213c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ac565b6000818152600260205260409020546001600160a01b0316156121a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ac565b6121ad60008383611cf5565b6001600160a01b03821660009081526003602052604081208054600192906121d6908490612650565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461134357600080fd5b60006020828403121561225c57600080fd5b81356111f181612234565b60005b8381101561228257818101518382015260200161226a565b50506000910152565b600081518084526122a3816020860160208601612267565b601f01601f19169290920160200192915050565b6020815260006111f1602083018461228b565b6000602082840312156122dc57600080fd5b5035919050565b80356001600160a01b03811681146122fa57600080fd5b919050565b6000806040838503121561231257600080fd5b61231b836122e3565b946020939093013593505050565b60008060006060848603121561233e57600080fd5b612347846122e3565b9250612355602085016122e3565b9150604084013590509250925092565b6000806040838503121561237857600080fd5b50508035926020909101359150565b60006020828403121561239957600080fd5b6111f1826122e3565b600080604083850312156123b557600080fd5b6123be836122e3565b9150602083013560ff811681146123d457600080fd5b809150509250929050565b600080604083850312156123f257600080fd5b6123fb836122e3565b9150602083013580151581146123d457600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561243c57600080fd5b612445856122e3565b9350612453602086016122e3565b925060408501359150606085013567ffffffffffffffff8082111561247757600080fd5b818701915087601f83011261248b57600080fd5b81358181111561249d5761249d612410565b604051601f8201601f19908116603f011681019083821181831017156124c5576124c5612410565b816040528281528a60208487010111156124de57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561251457600080fd5b8135600381106111f157600080fd5b6000806040838503121561253657600080fd5b61253f836122e3565b915061254d602084016122e3565b90509250929050565b600181811c9082168061256a57607f821691505b60208210810361258a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561260e5761260e6125de565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261263857612638612613565b500490565b81810381811115610679576106796125de565b80820180821115610679576106796125de565b634e487b7160e01b600052603260045260246000fd5b6000835161268b818460208801612267565b83519083019061269f818360208801612267565b64173539b7b760d91b9101908152600501949350505050565b6000826126c7576126c7612613565b500690565b6000816126db576126db6125de565b506000190190565b6080808252855190820181905260009060209060a0840190828901845b8281101561271c57815184529284019290840190600101612700565b50505060ff9690961690830152506040810192909252606090910152919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600182016127a1576127a16125de565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127db9083018461228b565b9695505050505050565b6000602082840312156127f757600080fd5b81516111f181612234565b634e487b7160e01b600052603160045260246000fdfe697066733a2f2f516d534a33667763536831446373596441727348715234454344745667486f413448435541784e6d756163664d782fa2646970667358221220f9bd59e17d8a0f7655f3e98dfaccb89e4921642b6411ea3ed7ac1f80d2ac2ca764736f6c63430008100033000000000000000000000000a466684d81c791ca87dfbafbc67cb313df3f5626

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80635c975abb1161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610571578063cf1c316a14610591578063d96df1e1146105b1578063e985e9c5146105de578063f2fde38b146105fe57600080fd5b8063a22cb46514610506578063aaae7b8614610526578063b88d4fde1461053b578063b8997a971461055b57600080fd5b8063715018a6116100dc578063715018a6146104a95780638456cb59146104be5780638da5cb5b146104d357806395d89b41146104f157600080fd5b80635c975abb146104375780636352211e14610456578063691562a01461047657806370a082311461048957600080fd5b80633bbed4a011610185578063485d7d9411610154578063485d7d94146103b75780634c00de82146103d75780634d61097f146103f75780634f6ccce71461041757600080fd5b80633bbed4a0146103425780633e4086e5146103625780633f4ba83a1461038257806342842e0e1461039757600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102c35780632a55205a146102e35780632f745c591461032257600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e36600461224a565b61061e565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61067f565b60405161021f91906122b7565b34801561025657600080fd5b5061026a6102653660046122ca565b610711565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d3660046122ff565b610738565b005b3480156102b057600080fd5b506008545b60405190815260200161021f565b3480156102cf57600080fd5b506102a26102de366004612329565b610852565b3480156102ef57600080fd5b506103036102fe366004612365565b610883565b604080516001600160a01b03909316835260208301919091520161021f565b34801561032e57600080fd5b506102b561033d3660046122ff565b6108bd565b34801561034e57600080fd5b506102a261035d366004612387565b610953565b34801561036e57600080fd5b506102a261037d3660046122ca565b6109cb565b34801561038e57600080fd5b506102a2610a20565b3480156103a357600080fd5b506102a26103b2366004612329565b610a32565b3480156103c357600080fd5b506102a26103d2366004612387565b610a4d565b3480156103e357600080fd5b50600c5461026a906001600160a01b031681565b34801561040357600080fd5b506102a26104123660046123a2565b610ac2565b34801561042357600080fd5b506102b56104323660046122ca565b610d85565b34801561044357600080fd5b50600a54600160a01b900460ff16610213565b34801561046257600080fd5b5061026a6104713660046122ca565b610e18565b6102a26104843660046123a2565b610e78565b34801561049557600080fd5b506102b56104a4366004612387565b610fd9565b3480156104b557600080fd5b506102a261105f565b3480156104ca57600080fd5b506102a2611071565b3480156104df57600080fd5b50600a546001600160a01b031661026a565b3480156104fd57600080fd5b5061023d611081565b34801561051257600080fd5b506102a26105213660046123df565b611090565b34801561053257600080fd5b506102b561109b565b34801561054757600080fd5b506102a2610556366004612426565b6110e5565b34801561056757600080fd5b506102b5600b5481565b34801561057d57600080fd5b5061023d61058c3660046122ca565b61111d565b34801561059d57600080fd5b506102a26105ac366004612387565b6111f8565b3480156105bd57600080fd5b506102b56105cc366004612502565b600d6020526000908152604090205481565b3480156105ea57600080fd5b506102136105f9366004612523565b611270565b34801561060a57600080fd5b506102a2610619366004612387565b6112cd565b60006001600160e01b031982166380ac58cd60e01b148061064f57506001600160e01b03198216635b5e139f60e01b145b8061066a57506001600160e01b0319821663152a902d60e11b145b80610679575061067982611346565b92915050565b60606000805461068e90612556565b80601f01602080910402602001604051908101604052809291908181526020018280546106ba90612556565b80156107075780601f106106dc57610100808354040283529160200191610707565b820191906000526020600020905b8154815290600101906020018083116106ea57829003601f168201915b5050505050905090565b600061071c8261136b565b506000908152600460205260409020546001600160a01b031690565b600061074382610e18565b9050806001600160a01b0316836001600160a01b0316036107b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107d157506107d18133611270565b6108435760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107ac565b61084d83836113ca565b505050565b61085c3382611438565b6108785760405162461bcd60e51b81526004016107ac90612590565b61084d838383611497565b600c54600b5460009182916001600160a01b0390911690612710906108a890866125f4565b6108b29190612629565b915091509250929050565b60006108c883610fd9565b821061092a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ac565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61095b61163e565b6001600160a01b0381166109a95760405162461bcd60e51b81526020600482015260156024820152746e6577526563697069656e7420697320656d70747960581b60448201526064016107ac565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6109d361163e565b80600003610a1b5760405162461bcd60e51b81526020600482015260156024820152746e6577526f74616c7479466565206973207a65726f60581b60448201526064016107ac565b600b55565b610a2861163e565b610a30611698565b565b61084d838383604051806020016040528060008152506110e5565b610a5561163e565b6001600160a01b038116610aa15760405162461bcd60e51b8152602060048201526013602482015272617574686f72697a656420697320656d70747960681b60448201526064016107ac565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b610aca6116ed565b610ad2611761565b600a546001600160a01b03163303610c33576001600052600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55461012c11610b585760405162461bcd60e51b81526020600482015260156024820152741514915054d5549648185b1b081c9958d95a5d9959605a1b60448201526064016107ac565b60016000908152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c554610b929061012c61263d565b90508160ff16811015610be75760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656e6f75676820545245415355525920737570706c7900000000000060448201526064016107ac565b60016000908152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c5805460ff85169290610c27908490612650565b90915550610d77915050565b60008052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee546101f411610ca55760405162461bcd60e51b8152602060048201526014602482015273105254911493d408185b1b081c9958d95a5d995960621b60448201526064016107ac565b6000808052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee54610cdd906101f461263d565b90508160ff16811015610d325760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f7567682041495244524f5020737570706c790000000000000060448201526064016107ac565b6000808052600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee805460ff85169290610d70908490612650565b9091555050505b610d8182826117ae565b5050565b6000610d9060085490565b8210610df35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ac565b60088281548110610e0657610e06612663565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806106795760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107ac565b610e806116ed565b610e88611761565b6002600052600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc2495461106811610efa5760405162461bcd60e51b8152602060048201526013602482015272141550931250c8185b1b081c9958d95a5d9959606a1b60448201526064016107ac565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc24954610f349061106861263d565b90508160ff16811015610f895760405162461bcd60e51b815260206004820152601860248201527f6e6f7420656e6f756768205055424c494320737570706c79000000000000000060448201526064016107ac565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc249805460ff85169290610fc9908490612650565b9091555061084d905083836117ae565b60006001600160a01b0382166110435760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107ac565b506001600160a01b031660009081526003602052604090205490565b61106761163e565b610a3060006119ee565b61107961163e565b610a30611a40565b60606001805461068e90612556565b610d81338383611a83565b600c5460408051600160a01b90920460b81b6001600160b81b031916602083015230908201526000906060016040516020818303038152906040528051906020012060001c905090565b6110ef3383611438565b61110b5760405162461bcd60e51b81526004016107ac90612590565b61111784848484611b51565b50505050565b6000818152600260205260409020546060906001600160a01b031661119c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ac565b60006111a6611b84565b905060008151116111c657604051806020016040528060008152506111f1565b806111d084611ba4565b6040516020016111e1929190612679565b6040516020818303038152906040525b9392505050565b61120061163e565b6001600160a01b03811661124c5760405162461bcd60e51b8152602060048201526013602482015272617574686f72697a656420697320656d70747960681b60448201526064016107ac565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b600073207fa8df3a17d96ca7ea4f2893fcdcb78a304100196001600160a01b0383160161129f57506001610679565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166111f1565b6112d561163e565b6001600160a01b03811661133a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ac565b611343816119ee565b50565b60006001600160e01b0319821663780e9d6360e01b1480610679575061067982611ca5565b6000818152600260205260409020546001600160a01b03166113435760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107ac565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113ff82610e18565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061144483610e18565b9050806001600160a01b0316846001600160a01b0316148061146b575061146b8185611270565b8061148f5750836001600160a01b031661148484610711565b6001600160a01b0316145b949350505050565b826001600160a01b03166114aa82610e18565b6001600160a01b03161461150e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107ac565b6001600160a01b0382166115705760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ac565b61157b838383611cf5565b6115866000826113ca565b6001600160a01b03831660009081526003602052604081208054600192906115af90849061263d565b90915550506001600160a01b03821660009081526003602052604081208054600192906115dd908490612650565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a546001600160a01b03163314610a305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ac565b6116a0611d00565b600a805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b336000908152600e602052604090205460ff1680611724575033611719600a546001600160a01b031690565b6001600160a01b0316145b610a305760405162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b60448201526064016107ac565b600a54600160a01b900460ff1615610a305760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107ac565b600c8054600160a01b80820460b890811b6001600160b81b031916600081811a4303600019014081524441189091186020526040812068ffffffffffffffffff60a01b199094169184901c909202179092556008549091906118129061138861263d565b90508260ff1681101561185b5760405162461bcd60e51b81526020600482015260116024820152706e6f7420656e6f75676820737570706c7960781b60448201526064016107ac565b60008360ff1667ffffffffffffffff81111561187957611879612410565b6040519080825280602002602001820160405280156118a2578160200160208202803683370190505b50905060006118af61109b565b905060005b8560ff1681101561199e5760006118cb85846126b8565b6000818152600f6020526040812054919250906118e857816118f8565b6000828152600f60205260409020545b90506000600f8161190a60018a61263d565b8152602001908152602001600020541161192e5761192960018761263d565b61194d565b600f600061193d60018961263d565b8152602001908152602001600020545b6000838152600f60205260409020556119668982611d50565b8085848151811061197957611979612663565b60209081029190910101528561198e816126cc565b96505082600101925050506118b4565b50856001600160a01b03167f59f8126802b52020041a4ef52acd3991929a1b89f9f1086bbe920246f50cf712838784426040516119de94939291906126e3565b60405180910390a2505050505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a48611761565b600a805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116d03390565b816001600160a01b0316836001600160a01b031603611ae45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ac565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b5c848484611497565b611b6884848484611d6a565b6111175760405162461bcd60e51b81526004016107ac9061273d565b606060405180606001604052806036815260200161281960369139905090565b606081600003611bcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bf55780611bdf8161278f565b9150611bee9050600a83612629565b9150611bcf565b60008167ffffffffffffffff811115611c1057611c10612410565b6040519080825280601f01601f191660200182016040528015611c3a576020820181803683370190505b5090505b841561148f57611c4f60018361263d565b9150611c5c600a866126b8565b611c67906030612650565b60f81b818381518110611c7c57611c7c612663565b60200101906001600160f81b031916908160001a905350611c9e600a86612629565b9450611c3e565b60006001600160e01b031982166380ac58cd60e01b1480611cd657506001600160e01b03198216635b5e139f60e01b145b8061067957506301ffc9a760e01b6001600160e01b0319831614610679565b61084d838383611e6b565b600a54600160a01b900460ff16610a305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107ac565b610d81828260405180602001604052806000815250611f23565b60006001600160a01b0384163b15611e6057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611dae9033908990889088906004016127a8565b6020604051808303816000875af1925050508015611de9575060408051601f3d908101601f19168201909252611de6918101906127e5565b60015b611e46573d808015611e17576040519150601f19603f3d011682016040523d82523d6000602084013e611e1c565b606091505b508051600003611e3e5760405162461bcd60e51b81526004016107ac9061273d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061148f565b506001949350505050565b6001600160a01b038316611ec657611ec181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ee9565b816001600160a01b0316836001600160a01b031614611ee957611ee98382611f56565b6001600160a01b038216611f005761084d81611ff3565b826001600160a01b0316826001600160a01b03161461084d5761084d82826120a2565b611f2d83836120e6565b611f3a6000848484611d6a565b61084d5760405162461bcd60e51b81526004016107ac9061273d565b60006001611f6384610fd9565b611f6d919061263d565b600083815260076020526040902054909150808214611fc0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906120059060019061263d565b6000838152600960205260408120546008805493945090928490811061202d5761202d612663565b90600052602060002001549050806008838154811061204e5761204e612663565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061208657612086612802565b6001900381819060005260206000200160009055905550505050565b60006120ad83610fd9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661213c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ac565b6000818152600260205260409020546001600160a01b0316156121a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ac565b6121ad60008383611cf5565b6001600160a01b03821660009081526003602052604081208054600192906121d6908490612650565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461134357600080fd5b60006020828403121561225c57600080fd5b81356111f181612234565b60005b8381101561228257818101518382015260200161226a565b50506000910152565b600081518084526122a3816020860160208601612267565b601f01601f19169290920160200192915050565b6020815260006111f1602083018461228b565b6000602082840312156122dc57600080fd5b5035919050565b80356001600160a01b03811681146122fa57600080fd5b919050565b6000806040838503121561231257600080fd5b61231b836122e3565b946020939093013593505050565b60008060006060848603121561233e57600080fd5b612347846122e3565b9250612355602085016122e3565b9150604084013590509250925092565b6000806040838503121561237857600080fd5b50508035926020909101359150565b60006020828403121561239957600080fd5b6111f1826122e3565b600080604083850312156123b557600080fd5b6123be836122e3565b9150602083013560ff811681146123d457600080fd5b809150509250929050565b600080604083850312156123f257600080fd5b6123fb836122e3565b9150602083013580151581146123d457600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561243c57600080fd5b612445856122e3565b9350612453602086016122e3565b925060408501359150606085013567ffffffffffffffff8082111561247757600080fd5b818701915087601f83011261248b57600080fd5b81358181111561249d5761249d612410565b604051601f8201601f19908116603f011681019083821181831017156124c5576124c5612410565b816040528281528a60208487010111156124de57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561251457600080fd5b8135600381106111f157600080fd5b6000806040838503121561253657600080fd5b61253f836122e3565b915061254d602084016122e3565b90509250929050565b600181811c9082168061256a57607f821691505b60208210810361258a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561260e5761260e6125de565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261263857612638612613565b500490565b81810381811115610679576106796125de565b80820180821115610679576106796125de565b634e487b7160e01b600052603260045260246000fd5b6000835161268b818460208801612267565b83519083019061269f818360208801612267565b64173539b7b760d91b9101908152600501949350505050565b6000826126c7576126c7612613565b500690565b6000816126db576126db6125de565b506000190190565b6080808252855190820181905260009060209060a0840190828901845b8281101561271c57815184529284019290840190600101612700565b50505060ff9690961690830152506040810192909252606090910152919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600182016127a1576127a16125de565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127db9083018461228b565b9695505050505050565b6000602082840312156127f757600080fd5b81516111f181612234565b634e487b7160e01b600052603160045260246000fdfe697066733a2f2f516d534a33667763536831446373596441727348715234454344745667486f413448435541784e6d756163664d782fa2646970667358221220f9bd59e17d8a0f7655f3e98dfaccb89e4921642b6411ea3ed7ac1f80d2ac2ca764736f6c63430008100033

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

000000000000000000000000a466684d81c791ca87dfbafbc67cb313df3f5626

-----Decoded View---------------
Arg [0] : _royaltyRecipient (address): 0xa466684D81C791CA87DFbAfbC67cB313DF3F5626

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a466684d81c791ca87dfbafbc67cb313df3f5626


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.