ETH Price: $3,354.85 (-3.46%)

Token

MinimenClub (MM)
 

Overview

Max Total Supply

3,333 MM

Holders

1,625

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MM
0x4be287d1b14335e6e6b7c190e433d9a62138d39b
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:
MinimenClub

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                                                                                  //
//                        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//                        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//                        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//                        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@    //
//    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@    //
//    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@    //
//    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@    //
//    @@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//    @@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//    @@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//    @@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    //
//                                                                                                  //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

import "../token/ERC721/extensions/ERC721OwnerEnumerable.sol";
import "../utils/ECDSA.sol";

error InvalidSignature();
error NoContractMinting();
error NoContractClaiming();
error NotTokenOwner();
error OverMintLimit();
error OverSupplyLimit();
error SenderNotApproved();
error TokenAlreadyClaimed();
error TokenNotClaimable();
error TransferTooEarlyAfterLock();

interface IMintable {
    function mint(address claimer) external;
}

/**
 * MinimenClub is the first contract in a pair of contracts that allow for a legendary claimable mint.
 * This first contract has many tokens with a select number of the first tokenIds having the ability to claim a
 * token from the second (legendary) collection. Tokens from this collection are minted with onchain randomness
 * meaning that ever call to {mint} will give a random token from the entire collection.
 *
 * Claiming a token not only gives the user a token from the legendary collection, but also a new tokenURI from
 * this collection.
 *
 * Additionally, this contract places a 5 minute transfer hold on recently claimed tokens. This is done to prevent a frontrunner
 * from selling an unclaimed rare token on a marketplace and frontrunning the sale of the transaction with a {claim} call
 * which would result in the buyer recieving a rare token that already has the legendary token claimed even though it
 * would be unclaimed before they initiated the sale.
 */
contract MinimenClub is ERC721OwnerEnumerable {
    using ECDSA for bytes32;
    using Strings for uint256;

    // Used to prevent sellers from front-running a Claim transaction before
    // another user's buy transaction can go through.
    uint256 public constant POST_CLAIM_LOCK_TIME = 300;
    uint256 public constant LEGENDARY_COUNT = 69;
    uint256 public constant MAX_TOKENS = 3333;

    // Address of the wallet that can approve other addresses to mint
    address public mintApproverAddress;

    // This must be the address of contract which follows IMintable interface.
    address public legendaryTokenAddress;

    // Used to maintain constant time on-chain random ID generation
    uint256[MAX_TOKENS] private indices;

    // Used to track if a token is claimed, and block immediate transfers after claim
    mapping(uint256 => uint256) internal _claimedTimestamp;

    // Token metadata for all tokens when they are first minted
    string public tokenDirectory;

    // Token metadata for the legendary tokens that are claimable
    string public claimedDirectory;

    constructor(
        string memory name,
        string memory symbol,
        string memory _tokenDirectory,
        string memory _claimedDirectory,
        uint256 royalty,
        address royaltyWallet,
        address mintApprover
    ) ERC721(name, symbol) {
        tokenDirectory = _tokenDirectory;
        claimedDirectory = _claimedDirectory;
        mintApproverAddress = mintApprover;
        _setRoyaltyBPS(royalty);
        _setRoyaltyWallet(royaltyWallet);
        _setTokenRange(1, MAX_TOKENS);
    }

    /**
     * @dev allows owner to update royalties following EIP-2981 at anytime
     */
    function updateRoyalty(uint256 royaltyBPS, address royaltyWallet)
        external
        onlyOwner
    {
        _setRoyaltyBPS(royaltyBPS);
        _setRoyaltyWallet(royaltyWallet);
    }

    /**
     * @dev Display either the original or the claimed metadata of a token based on if
     * the token is claimable or not
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert QueryForNonexistentToken();
        if (_claimedTimestamp[tokenId] != 0) {
            return
                string(
                    abi.encodePacked(claimedDirectory, "/", tokenId.toString())
                );
        }
        return
            string(abi.encodePacked(tokenDirectory, "/", tokenId.toString()));
    }

    /**
     * @dev Updates the address that must approve of wallets for mint.
     */
    function setMintApprover(address approver) external onlyOwner {
        mintApproverAddress = approver;
    }

    /**
     * @dev Returns if a given tokenId is both a legendary token and has not been claimed yet.
     */
    function isClaimable(uint256 tokenId) public view returns (bool) {
        return
            tokenId - _minTokenId < LEGENDARY_COUNT &&
            _claimedTimestamp[tokenId] == 0;
    }

    /**
     * @dev Quick function to view only claimable tokens rather than using the Enumerable methods.
     * This will enable us to get all claimable tokens an address has in constant time porpotional
     * to the LEGENDARY_COUNT rather than MAX_TOKENS
     */
    function getClaimableTokens(address owner)
        public
        view
        returns (uint256[] memory)
    {
        if (owner == address(0)) revert QueryForZeroAddress();

        uint256[] memory tokenIds = new uint256[](LEGENDARY_COUNT);
        uint256 index = 0;

        for (uint256 i = _minTokenId; i <= _minTokenId + LEGENDARY_COUNT; i++) {
            address tokenOwner = _owners[i];
            if (tokenOwner == owner && isClaimable(i)) {
                tokenIds[index] = i;
                index++;
            }
        }
        return tokenIds;
    }

    /**
     * @dev Updates the token metadata of all tokens.
     */
    function setTokenDirectory(string memory _tokenDirectory)
        external
        onlyOwner
    {
        tokenDirectory = _tokenDirectory;
    }

    /**
     * @dev Updates the token metadata of claimed tokens.
     */
    function setClaimedDirectory(string memory _claimedDirectory)
        external
        onlyOwner
    {
        claimedDirectory = _claimedDirectory;
    }

    /**
     * @dev Sets the address of the Legendary contract which this contract will mint from when
     * a user claims a token. That contract is created to allow this and only this contract to
     * mint from it.
     */
    function setLegendaryTokenAddress(address _legendaryTokenAddress)
        external
        onlyOwner
    {
        legendaryTokenAddress = _legendaryTokenAddress;
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Makes sure tokens which were just claimed cannot be transfered to prevent
     * front-running a claim transaction before a sale.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);
        if (
            _claimedTimestamp[tokenId] != 0 &&
            _claimedTimestamp[tokenId] + POST_CLAIM_LOCK_TIME > block.timestamp
        ) {
            revert TransferTooEarlyAfterLock();
        }
    }

    /**
     * @dev Function to allow the owner to airdrop tokens to any address. Not checkedd to save gas but
     * it should be limited to around 100 - 150 mints per transaction max.
     *
     * Note: airdropping to an address from this function prevents that address from being able to mint
     * through the mint method because it will count towards an address's numberMinted
     */
    function ownerMint(address receiver, uint256 amount) external onlyOwner {
        if (totalSupply() >= _tokenLimit()) revert OverSupplyLimit();

        if (totalSupply() + amount > _tokenLimit()) {
            _mintRandomIndex(receiver, _tokenLimit() - totalSupply());
        } else {
            _mintRandomIndex(receiver, amount);
        }
    }

    /**
     * @dev Hash an order that we need to check against the signature to see who the signer is.
     * see {_hashForAllowList} to see the hash that needs to be signed.
     */
    function _hashToCheckForApproved(address approved)
        internal
        view
        returns (bytes32)
    {
        return
            ECDSA.toEthSignedMessageHash(
                keccak256(abi.encode(address(this), block.chainid, approved))
            );
    }

    /**
     * @dev Free mint method which checks that the address is one that has the correct signature from
     * the mintApproverAddress AND the sender matches that address.
     *
     * Only Wallet Addresses are allowed to mint and any contracts will be denied.
     */
    function mint(address approvedWallet, bytes memory signature) external {
        if (totalSupply() >= _tokenLimit()) revert OverSupplyLimit();
        if (_addressData[_msgSender()].numberMinted > 0) revert OverMintLimit();
        if (approvedWallet != _msgSender()) revert SenderNotApproved();
        if (Address.isContract(_msgSender())) revert NoContractMinting();

        bytes32 hash = _hashToCheckForApproved(approvedWallet);
        if (hash.recover(signature) != mintApproverAddress) {
            revert InvalidSignature();
        }

        _mintRandomIndex(approvedWallet, 1);
    }

    /**
     * @dev Claims an array of tokenIds that all must be owned by the message sender and must
     * be claimable. Claiming does the following:
     * - changes the tokenURI of the tokenId
     * - makes a tokenId no longer claimable
     * - mints a random token from the legendary collection to the claimer
     *
     * Only Wallet Addresses are allowed to claim and any contracts will be denied.
     */
    function claim(uint256[] memory tokenIds) external {
        if (Address.isContract(_msgSender())) revert NoContractClaiming();
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            if (ownerOf(tokenId) != _msgSender()) revert NotTokenOwner();
            if (!isClaimable(tokenId)) revert TokenNotClaimable();

            _claimedTimestamp[tokenId] = block.timestamp;
            IMintable(legendaryTokenAddress).mint(_msgSender());
        }
    }

    /// @notice Generates a pseudo random index of our tokens that has not been used so far
    function _mintRandomIndex(address claimer, uint256 amount) internal {
        uint256 supplyLeft = _tokenLimit() - totalSupply();

        for (uint256 i = 0; i < amount; i++) {
            // generate a random index from the remaining supply
            uint256 index = _random(supplyLeft);
            uint256 tokenAtPlace = indices[index];

            uint256 tokenId;
            // if we havent stored a replacement token...
            if (tokenAtPlace == 0) {
                //... we just return the current index
                tokenId = index;
            } else {
                // else we take the replace we stored with logic below
                tokenId = tokenAtPlace;
            }

            // get the highest token id we havent handed out
            uint256 lastTokenAvailable = indices[supplyLeft - 1];
            // we need to store a replacement token for the next time we roll the same index
            // if the last token is still unused...
            if (lastTokenAvailable == 0) {
                // ... we store the last token as index
                indices[index] = supplyLeft - 1;
            } else {
                // ... we store the token that was stored for the last token
                indices[index] = lastTokenAvailable;
            }

            _mint(claimer, tokenId + _minTokenId);
            supplyLeft--;
        }
    }

    /// @notice Generates a pseudo random number based on arguments with decent entropy
    /// @param max The maximum value we want to receive
    /// @return A random number less than the max
    function _random(uint256 max) internal view returns (uint256) {
        uint256 rand = uint256(
            keccak256(
                abi.encode(
                    _msgSender(),
                    block.difficulty,
                    block.timestamp,
                    blockhash(block.number - 1)
                )
            )
        );
        return rand % max;
    }
}

File 2 of 15 : ERC721OwnerEnumerable.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";

error IndexOverOwnerBalance();
error IndexOverTokenCount();
error InvalidRange();
error MethodDisabled();
error QueryForZeroAddress();

/**
 * @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.
 *
 * To save gas {tokenByIndex} is disabled because it increases mint cost by ~40%.
 */
abstract contract ERC721OwnerEnumerable is ERC721, IERC721Enumerable {
    // Must be populated for {tokenOfOwnerByIndex} to work.
    uint128 internal _minTokenId;
    uint128 internal _maxTokenId;

    // Tracks the total supply.
    uint256 internal _totalSupply;

    /**
     * @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 To save gas, this is not explicity checked when minting a tokenId,
     * It is the responsibility of the extending contracts to make sure this is not exceeded
     * If they want Enumerable to work properly.
     *
     * The range includes the minId but excludes the maxId.
     */
    function _setTokenRange(uint256 minId, uint256 maxId) internal {
        if (_minTokenId > _maxTokenId) revert InvalidRange();
        _minTokenId = uint128(minId);
        _maxTokenId = uint128(maxId);
    }

    /**
     * @dev helpler function for valid mintIds
     */
    function _tokenIdInRange(uint256 tokenId) internal view returns (bool) {
        return
            uint128(tokenId) >= _minTokenId && uint128(tokenId) <= _maxTokenId;
    }

    /**
     * @dev helpler function for total tokens within the range
     */
    function _tokenLimit() internal view returns (uint256) {
        return _maxTokenId - _minTokenId + 1;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        if (index >= balanceOf(owner)) revert IndexOverOwnerBalance();
        if (owner == address(0)) revert QueryForZeroAddress();
        if (_maxTokenId == 0) revert MethodDisabled();
        uint256 tokenIdsIdx = 0;

        for (uint256 i = _minTokenId; i <= _maxTokenId; i++) {
            address tokenOwner = _owners[i];
            if (tokenOwner == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert IndexOverOwnerBalance();
    }

    /**
     * @dev Since {tokenOfOwnerByIndex} would repeat work to get all tokenIds of an address, this method
     * is included to speed it to an O(n) instead of a O(n ** 2) operation.
     */
    function tokensOfOwner(address owner)
        public
        view
        virtual
        returns (uint256[] memory)
    {
        if (owner == address(0)) revert QueryForZeroAddress();
        if (_maxTokenId == 0) revert MethodDisabled();

        uint256[] memory tokenIds = new uint256[](balanceOf(owner));
        uint256 index = 0;

        for (uint256 i = _minTokenId; i <= _maxTokenId; i++) {
            address tokenOwner = _owners[i];
            if (tokenOwner == owner) {
                tokenIds[index] = i;
                index++;
            }
        }
        return tokenIds;
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256)
        public
        view
        virtual
        override
        returns (uint256)
    {
        revert MethodDisabled();
    }

    /**
     * @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)) {
            _totalSupply += 1;
        }

        if (to == address(0)) {
            _totalSupply -= 1;
        }
    }
}

File 3 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

File 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/Ownable.sol";
import "../../utils/Strings.sol";
import "../../utils/ERC165.sol";
import "../../utils/IERC2981.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error InvalidBatchAmount();
error MintToZeroAddress();
error MintExistingToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error QueryForNonexistentToken();

/**
 * @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}.
 *
 * This implementation also follows the EIP-2981 royalty standard and the Ownable standard.
 */
contract ERC721 is Ownable, ERC165, IERC721, IERC721Metadata, IERC2981 {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // Constant used to help calculate royalties
    uint256 private constant MAX_BPS = 10000;

    // Percent of sale in basis points set for royalties
    uint256 private royaltyBPS;

    // Address royalties get sent to
    address private royaltyWallet;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => AddressData) internal _addressData;

    // 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 ||
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev see {IERC2981-supportsInterface}
     */
    function royaltyInfo(uint256, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        uint256 royalty = (_salePrice * royaltyBPS) / MAX_BPS;
        return (royaltyWallet, royalty);
    }

    function _setRoyaltyWallet(address wallet) internal {
        royaltyWallet = wallet;
    }

    /**
     * @dev Royalty is in Basis Points, and any number higher than the max gets defaulted
     * to the max.
     */
    function _setRoyaltyBPS(uint256 newRoyalty) internal {
        if (newRoyalty > MAX_BPS) {
            royaltyBPS = MAX_BPS;
        } else {
            royaltyBPS = newRoyalty;
        }
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _addressData[owner].balance;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner = _owners[tokenId];
        if (!_exists(tokenId)) revert QueryForNonexistentToken();
        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);
        if (to == owner) revert ApprovalToCurrentOwner();
        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _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 {
        if (!_isApprovedOrOwner(_msgSender(), tokenId)) {
            revert TransferCallerNotOwnerNorApproved();
        }

        _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 {
        if (!_isApprovedOrOwner(_msgSender(), tokenId)) {
            revert TransferCallerNotOwnerNorApproved();
        }
        _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);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @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);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @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 {
        if (to == address(0)) revert MintToZeroAddress();
        if (_exists(tokenId)) revert MintExistingToken();

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

        _addressData[to].balance += 1;
        _addressData[to].numberMinted += 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);

        _addressData[owner].balance -= 1;
        _addressData[owner].numberBurned += 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 {
        if (ERC721.ownerOf(tokenId) != from) {
            revert TransferFromIncorrectOwner();
        }
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        _addressData[from].balance -= 1;
        _addressData[to].balance += 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 {
        if (owner == operator) revert ApproveToCaller();
        _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 {
        if (!_exists(tokenId)) revert QueryForNonexistentToken();
    }

    /**
     * @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
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private {
        if (!to.isContract()) {
            return;
        }

        try
            IERC721Receiver(to).onERC721Received(
                _msgSender(),
                from,
                tokenId,
                data
            )
        returns (bytes4 retval) {
            if (retval != IERC721Receiver.onERC721Received.selector) {
                revert TransferToNonERC721ReceiverImplementer();
            }
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                /// @solidity memory-safe-assembly
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @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 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 6 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/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 7 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 8 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 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

error CallerNotOwner();
error OwnerNotZero();

/**
 * @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 {
        if (owner() != _msgSender()) revert CallerNotOwner();
    }

    /**
     * @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 {
        if (newOwner == address(0)) revert OwnerNotZero();
        _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 11 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 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 : IERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * ERC165 bytes to add to interface array - set in parent contract
     * implementing this standard
     *
     * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
     * bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
     * _registerInterface(_INTERFACE_ID_ERC2981);
     */

    /**
     * @notice Called with the sale price to determine how much royalty
     *          is owed and to whom.
     * @param _tokenId - the NFT asset queried for royalty information
     * @param _salePrice - the sale price of the NFT asset specified by _tokenId
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for _salePrice
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 14 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 15 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_tokenDirectory","type":"string"},{"internalType":"string","name":"_claimedDirectory","type":"string"},{"internalType":"uint256","name":"royalty","type":"uint256"},{"internalType":"address","name":"royaltyWallet","type":"address"},{"internalType":"address","name":"mintApprover","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerNotOwner","type":"error"},{"inputs":[],"name":"IndexOverOwnerBalance","type":"error"},{"inputs":[],"name":"InvalidRange","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MethodDisabled","type":"error"},{"inputs":[],"name":"MintExistingToken","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"NoContractClaiming","type":"error"},{"inputs":[],"name":"NoContractMinting","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[],"name":"OverMintLimit","type":"error"},{"inputs":[],"name":"OverSupplyLimit","type":"error"},{"inputs":[],"name":"OwnerNotZero","type":"error"},{"inputs":[],"name":"QueryForNonexistentToken","type":"error"},{"inputs":[],"name":"QueryForZeroAddress","type":"error"},{"inputs":[],"name":"SenderNotApproved","type":"error"},{"inputs":[],"name":"TokenNotClaimable","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"TransferTooEarlyAfterLock","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LEGENDARY_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POST_CLAIM_LOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimedDirectory","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getClaimableTokens","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":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendaryTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"approvedWallet","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintApproverAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_claimedDirectory","type":"string"}],"name":"setClaimedDirectory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_legendaryTokenAddress","type":"address"}],"name":"setLegendaryTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"setMintApprover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenDirectory","type":"string"}],"name":"setTokenDirectory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenDirectory","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyBPS","type":"uint256"},{"internalType":"address","name":"royaltyWallet","type":"address"}],"name":"updateRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002c0038038062002c00833981016040819052620000349162000342565b86866200004133620000fa565b815162000056906003906020850190620001b2565b5080516200006c906004906020840190620001b2565b50508551620000859150610d13906020880190620001b2565b5083516200009c90610d14906020870190620001b2565b50600b80546001600160a01b0319166001600160a01b038316179055620000c3836200014a565b600280546001600160a01b0319166001600160a01b038416179055620000ed6001610d0562000163565b5050505050505062000467565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127108111156200015e5761271060015550565b600155565b6009546001600160801b03600160801b8204811691161115620001995760405163561ce9bb60e01b815260040160405180910390fd5b6001600160801b03908116600160801b02911617600955565b828054620001c0906200042a565b90600052602060002090601f016020900481019282620001e457600085556200022f565b82601f10620001ff57805160ff19168380011785556200022f565b828001600101855582156200022f579182015b828111156200022f57825182559160200191906001019062000212565b506200023d92915062000241565b5090565b5b808211156200023d576000815560010162000242565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028057600080fd5b81516001600160401b03808211156200029d576200029d62000258565b604051601f8301601f19908116603f01168101908282118183101715620002c857620002c862000258565b81604052838152602092508683858801011115620002e557600080fd5b600091505b83821015620003095785820183015181830184015290820190620002ea565b838211156200031b5760008385830101525b9695505050505050565b80516001600160a01b03811681146200033d57600080fd5b919050565b600080600080600080600060e0888a0312156200035e57600080fd5b87516001600160401b03808211156200037657600080fd5b620003848b838c016200026e565b985060208a01519150808211156200039b57600080fd5b620003a98b838c016200026e565b975060408a0151915080821115620003c057600080fd5b620003ce8b838c016200026e565b965060608a0151915080821115620003e557600080fd5b50620003f48a828b016200026e565b945050608088015192506200040c60a0890162000325565b91506200041c60c0890162000325565b905092959891949750929550565b600181811c908216806200043f57607f821691505b602082108114156200046157634e487b7160e01b600052602260045260246000fd5b50919050565b61278980620004776000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80637661e83e11610130578063a22cb465116100b8578063e985e9c51161007c578063e985e9c5146104c7578063f2fde38b14610503578063f47c84c514610516578063f5edd1ef1461051f578063f7922e951461053257600080fd5b8063a22cb46514610468578063b510391f1461047b578063b88d4fde1461048e578063c87b56dd146104a1578063cc8d64a2146104b457600080fd5b80638da5cb5b116100ff5780638da5cb5b14610416578063915791251461042757806395d89b411461043a57806396df294d146104425780639d6335d71461045557600080fd5b80637661e83e146103d5578063835b9453146103dd5780638462151c146103f057806389610a091461040357600080fd5b80632a55205a116101be5780636352211e116101825780636352211e1461038c57806364143b081461039f5780636ba4c138146103a757806370a08231146103ba578063715018a6146103cd57600080fd5b80632a55205a1461030e5780632f745c591461034057806342842e0e14610353578063484b973c146103665780634f6ccce71461037957600080fd5b80630af4750e116102055780630af4750e146102b45780630d6a871f146102ca57806318160ddd146102d35780631b831ead146102db57806323b872dd146102fb57600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a610245366004611fc2565b610545565b60405190151581526020015b60405180910390f35b610267610570565b6040516102569190612037565b61028761028236600461204a565b610602565b6040516001600160a01b039091168152602001610256565b6102b26102ad36600461207f565b610629565b005b6102bc604581565b604051908152602001610256565b6102bc61012c81565b600a546102bc565b6102ee6102e93660046120a9565b6106b6565b60405161025691906120c4565b6102b2610309366004612108565b6107af565b61032161031c366004612144565b6107e1565b604080516001600160a01b039093168352602083019190915201610256565b6102bc61034e36600461207f565b61081a565b6102b2610361366004612108565b610935565b6102b261037436600461207f565b610950565b6102bc61038736600461204a565b6109d5565b61028761039a36600461204a565b6109f0565b610267610a26565b6102b26103b53660046121ac565b610ab5565b6102bc6103c83660046120a9565b610c08565b6102b2610c56565b610267610c6a565b6102b26103eb3660046122a8565b610c78565b6102ee6103fe3660046120a9565b610c94565b61024a61041136600461204a565b610dc8565b6000546001600160a01b0316610287565b6102b26104353660046120a9565b610e01565b610267610e2b565b600b54610287906001600160a01b031681565b6102b26104633660046122f0565b610e3a565b6102b261047636600461231c565b610e6a565b6102b2610489366004612378565b610e75565b6102b261049c3660046123c5565b610f82565b6102676104af36600461204a565b610fbb565b6102b26104c23660046120a9565b611047565b61024a6104d536600461242c565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6102b26105113660046120a9565b611071565b6102bc610d0581565b600c54610287906001600160a01b031681565b6102b26105403660046122a8565b6110ac565b60006001600160e01b0319821663780e9d6360e01b148061056a575061056a826110c8565b92915050565b60606003805461057f90612456565b80601f01602080910402602001604051908101604052809291908181526020018280546105ab90612456565b80156105f85780601f106105cd576101008083540402835291602001916105f8565b820191906000526020600020905b8154815290600101906020018083116105db57829003601f168201915b5050505050905090565b600061060d82611133565b506000908152600760205260409020546001600160a01b031690565b6000610634826109f0565b9050806001600160a01b0316836001600160a01b031614156106695760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610689575061068781336104d5565b155b156106a7576040516367d9dca160e11b815260040160405180910390fd5b6106b18383611168565b505050565b60606001600160a01b0382166106df5760405163197ce4cd60e31b815260040160405180910390fd5b6040805160458082526108c08201909252600091602082016108a080368337019050506009549091506000906001600160801b03165b60095461072d906045906001600160801b03166124a7565b81116107a6576000818152600560205260409020546001600160a01b0390811690861681148015610762575061076282610dc8565b15610793578184848151811061077a5761077a6124bf565b60209081029190910101528261078f816124d5565b9350505b508061079e816124d5565b915050610715565b50909392505050565b6107b933826111d6565b6107d657604051632ce44b5f60e11b815260040160405180910390fd5b6106b1838383611255565b6000806000612710600154856107f791906124f0565b6108019190612525565b6002546001600160a01b031693509150505b9250929050565b600061082583610c08565b8210610844576040516355c65cdf60e01b815260040160405180910390fd5b6001600160a01b03831661086b5760405163197ce4cd60e31b815260040160405180910390fd5b600954600160801b90046001600160801b031661089b5760405163989aff9960e01b815260040160405180910390fd5b6009546000906001600160801b03165b600954600160801b90046001600160801b0316811161091b576000818152600560205260409020546001600160a01b0390811690861681141561090857848314156108fa5750915061056a9050565b82610904816124d5565b9350505b5080610913816124d5565b9150506108ab565b506040516355c65cdf60e01b815260040160405180910390fd5b6106b183838360405180602001604052806000815250610f82565b6109586113d8565b610960611403565b600a54106109815760405163adb211d960e01b815260040160405180910390fd5b610989611403565b81610993600a5490565b61099d91906124a7565b11156109cb576109c7826109b0600a5490565b6109b8611403565b6109c29190612539565b61143f565b5050565b6109c7828261143f565b600060405163989aff9960e01b815260040160405180910390fd5b6000818152600560205260408120546001600160a01b03168061056a57604051636c01c8cf60e11b815260040160405180910390fd5b610d138054610a3490612456565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6090612456565b8015610aad5780601f10610a8257610100808354040283529160200191610aad565b820191906000526020600020905b815481529060010190602001808311610a9057829003601f168201915b505050505081565b610ac9335b6001600160a01b03163b151590565b15610ae757604051638e26464160e01b815260040160405180910390fd5b60005b81518110156109c7576000828281518110610b0757610b076124bf565b60200260200101519050610b183390565b6001600160a01b0316610b2a826109f0565b6001600160a01b031614610b51576040516359dc379f60e01b815260040160405180910390fd5b610b5a81610dc8565b610b7757604051633b6d512960e01b815260040160405180910390fd5b6000818152610d1260205260409020429055600c546001600160a01b0316636a627842336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015610bdc57600080fd5b505af1158015610bf0573d6000803e3d6000fd5b50505050508080610c00906124d5565b915050610aea565b60006001600160a01b038216610c31576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610c5e6113d8565b610c68600061154d565b565b610d148054610a3490612456565b610c806113d8565b80516109c790610d13906020840190611f13565b60606001600160a01b038216610cbd5760405163197ce4cd60e31b815260040160405180910390fd5b600954600160801b90046001600160801b0316610ced5760405163989aff9960e01b815260040160405180910390fd5b6000610cf883610c08565b6001600160401b03811115610d0f57610d0f612166565b604051908082528060200260200182016040528015610d38578160200160208202803683370190505b506009549091506000906001600160801b03165b600954600160801b90046001600160801b031681116107a6576000818152600560205260409020546001600160a01b03908116908616811415610db55781848481518110610d9c57610d9c6124bf565b602090810291909101015282610db1816124d5565b9350505b5080610dc0816124d5565b915050610d4c565b600954600090604590610de4906001600160801b031684612539565b10801561056a5750506000908152610d1260205260409020541590565b610e096113d8565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461057f90612456565b610e426113d8565b610e4b8261159d565b600280546001600160a01b0319166001600160a01b0383161790555050565b6109c73383836115b5565b610e7d611403565b600a5410610e9e5760405163adb211d960e01b815260040160405180910390fd5b33600090815260066020526040902054600160401b90046001600160401b031615610edc5760405163436a537960e01b815260040160405180910390fd5b6001600160a01b0382163314610f055760405163430c29ad60e11b815260040160405180910390fd5b610f0e33610aba565b15610f2c5760405163e053100760e01b815260040160405180910390fd5b6000610f3783611655565b600b549091506001600160a01b0316610f5082846116e9565b6001600160a01b031614610f7757604051638baa579f60e01b815260040160405180910390fd5b6106b183600161143f565b610f8c33836111d6565b610fa957604051632ce44b5f60e11b815260040160405180910390fd5b610fb58484848461170d565b50505050565b6000818152600560205260409020546060906001600160a01b0316610ff357604051636c01c8cf60e11b815260040160405180910390fd5b6000828152610d1260205260409020541561103b57610d1461101483611724565b60405160200161102592919061256c565b6040516020818303038152906040529050919050565b610d1361101483611724565b61104f6113d8565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6110796113d8565b6001600160a01b0381166110a05760405163513027b560e11b815260040160405180910390fd5b6110a98161154d565b50565b6110b46113d8565b80516109c790610d14906020840190611f13565b60006001600160e01b031982166380ac58cd60e01b14806110f957506001600160e01b03198216635b5e139f60e01b145b8061111457506001600160e01b0319821663152a902d60e11b145b8061056a57506301ffc9a760e01b6001600160e01b031983161461056a565b6000818152600560205260409020546001600160a01b03166110a957604051636c01c8cf60e11b815260040160405180910390fd5b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119d826109f0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806111e2836109f0565b9050806001600160a01b0316846001600160a01b0316148061122957506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b8061124d5750836001600160a01b031661124284610602565b6001600160a01b0316145b949350505050565b826001600160a01b0316611268826109f0565b6001600160a01b03161461128e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0382166112b557604051633a954ecd60e21b815260040160405180910390fd5b6112c0838383611821565b600081815260076020908152604080832080546001600160a01b03191690556001600160a01b03861683526006909152812080546001929061130c9084906001600160401b0316612623565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b038416600090815260066020526040812080546001945090926113589185911661264b565b82546001600160401b039182166101009390930a92830291909202199091161790555060008181526005602052604080822080546001600160a01b038087166001600160a01b0319909216821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610c6857604051632e6c18c960e11b815260040160405180910390fd5b600954600090611426906001600160801b0380821691600160801b900416612676565b611431906001612696565b6001600160801b0316905090565b600061144a600a5490565b611452611403565b61145c9190612539565b905060005b82811015610fb557600061147483611884565b90506000600d82610d05811061148c5761148c6124bf565b0154905060008161149e5750816114a1565b50805b6000600d6114b0600188612539565b610d0581106114c1576114c16124bf565b01549050806114f0576114d5600187612539565b600d85610d0581106114e9576114e96124bf565b0155611508565b80600d85610d058110611505576115056124bf565b01555b600954611529908990611524906001600160801b0316856124a7565b6118e8565b85611533816126b8565b965050505050508080611545906124d5565b915050611461565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127108111156115b05761271060015550565b600155565b816001600160a01b0316836001600160a01b031614156115e85760405163b06307db60e01b815260040160405180910390fd5b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040805130602082015246918101919091526001600160a01b038216606082015260009061056a90608001604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006116f88585611a55565b9150915061170581611ac2565b509392505050565b611718848484611255565b610fb584848484611c82565b6060816117485750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611772578061175c816124d5565b915061176b9050600a83612525565b915061174c565b6000816001600160401b0381111561178c5761178c612166565b6040519080825280601f01601f1916602001820160405280156117b6576020820181803683370190505b5090505b841561124d576117cb600183612539565b91506117d8600a866126cf565b6117e39060306124a7565b60f81b8183815181106117f8576117f86124bf565b60200101906001600160f81b031916908160001a90535061181a600a86612525565b94506117ba565b61182c838383611da5565b6000818152610d1260205260409020541580159061186657506000818152610d12602052604090205442906118649061012c906124a7565b115b156106b15760405163d148980b60e01b815260040160405180910390fd5b600080334442611895600143612539565b604080516001600160a01b039095166020860152840192909252606083015240608082015260a00160408051601f19818403018152919052805160209091012090506118e183826126cf565b9392505050565b6001600160a01b03821661190e57604051622e076360e81b815260040160405180910390fd5b6000818152600560205260409020546001600160a01b0316156119445760405163186a1c7360e11b815260040160405180910390fd5b61195060008383611821565b6001600160a01b03821660009081526006602052604081208054600192906119829084906001600160401b031661264b565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b038416600090815260066020526040902080546001935090916008916119d8918591600160401b90041661264b565b82546001600160401b039182166101009390930a92830291909202199091161790555060008181526005602052604080822080546001600160a01b0386166001600160a01b0319909116811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080825160411415611a8c5760208301516040840151606085015160001a611a8087828585611df7565b94509450505050610813565b825160401415611ab65760208301516040840151611aab868383611ee4565b935093505050610813565b50600090506002610813565b6000816004811115611ad657611ad66126e3565b1415611adf5750565b6001816004811115611af357611af36126e3565b1415611b465760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115611b5a57611b5a6126e3565b1415611ba85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611b3d565b6003816004811115611bbc57611bbc6126e3565b1415611c155760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611b3d565b6004816004811115611c2957611c296126e3565b14156110a95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611b3d565b6001600160a01b0383163b611c9657610fb5565b604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290611cc89033908890879087906004016126f9565b602060405180830381600087803b158015611ce257600080fd5b505af1925050508015611d12575060408051601f3d908101601f19168201909252611d0f91810190612736565b60015b611d6d573d808015611d40576040519150601f19603f3d011682016040523d82523d6000602084013e611d45565b606091505b508051611d65576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14611d9e576040516368d2bf6b60e11b815260040160405180910390fd5b5050505050565b6001600160a01b038316611dcc576001600a6000828254611dc691906124a7565b90915550505b6001600160a01b0382166106b1576001600a6000828254611ded9190612539565b9091555050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611e2e5750600090506003611edb565b8460ff16601b14158015611e4657508460ff16601c14155b15611e575750600090506004611edb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611eab573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ed457600060019250925050611edb565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611f0587828885611df7565b935093505050935093915050565b828054611f1f90612456565b90600052602060002090601f016020900481019282611f415760008555611f87565b82601f10611f5a57805160ff1916838001178555611f87565b82800160010185558215611f87579182015b82811115611f87578251825591602001919060010190611f6c565b50611f93929150611f97565b5090565b5b80821115611f935760008155600101611f98565b6001600160e01b0319811681146110a957600080fd5b600060208284031215611fd457600080fd5b81356118e181611fac565b60005b83811015611ffa578181015183820152602001611fe2565b83811115610fb55750506000910152565b60008151808452612023816020860160208601611fdf565b601f01601f19169290920160200192915050565b6020815260006118e1602083018461200b565b60006020828403121561205c57600080fd5b5035919050565b80356001600160a01b038116811461207a57600080fd5b919050565b6000806040838503121561209257600080fd5b61209b83612063565b946020939093013593505050565b6000602082840312156120bb57600080fd5b6118e182612063565b6020808252825182820181905260009190848201906040850190845b818110156120fc578351835292840192918401916001016120e0565b50909695505050505050565b60008060006060848603121561211d57600080fd5b61212684612063565b925061213460208501612063565b9150604084013590509250925092565b6000806040838503121561215757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156121a4576121a4612166565b604052919050565b600060208083850312156121bf57600080fd5b82356001600160401b03808211156121d657600080fd5b818501915085601f8301126121ea57600080fd5b8135818111156121fc576121fc612166565b8060051b915061220d84830161217c565b818152918301840191848101908884111561222757600080fd5b938501935b838510156122455784358252938501939085019061222c565b98975050505050505050565b60006001600160401b0383111561226a5761226a612166565b61227d601f8401601f191660200161217c565b905082815283838301111561229157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156122ba57600080fd5b81356001600160401b038111156122d057600080fd5b8201601f810184136122e157600080fd5b61124d84823560208401612251565b6000806040838503121561230357600080fd5b8235915061231360208401612063565b90509250929050565b6000806040838503121561232f57600080fd5b61233883612063565b91506020830135801515811461234d57600080fd5b809150509250929050565b600082601f83011261236957600080fd5b6118e183833560208501612251565b6000806040838503121561238b57600080fd5b61239483612063565b915060208301356001600160401b038111156123af57600080fd5b6123bb85828601612358565b9150509250929050565b600080600080608085870312156123db57600080fd5b6123e485612063565b93506123f260208601612063565b92506040850135915060608501356001600160401b0381111561241457600080fd5b61242087828801612358565b91505092959194509250565b6000806040838503121561243f57600080fd5b61244883612063565b915061231360208401612063565b600181811c9082168061246a57607f821691505b6020821081141561248b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156124ba576124ba612491565b500190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156124e9576124e9612491565b5060010190565b600081600019048311821515161561250a5761250a612491565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125345761253461250f565b500490565b60008282101561254b5761254b612491565b500390565b60008151612562818560208601611fdf565b9290920192915050565b600080845481600182811c91508083168061258857607f831692505b60208084108214156125a857634e487b7160e01b86526022600452602486fd5b8180156125bc57600181146125cd576125fa565b60ff198616895284890196506125fa565b60008b81526020902060005b868110156125f25781548b8201529085019083016125d9565b505084890196505b50505050505061261a61261482602f60f81b815260010190565b85612550565b95945050505050565b60006001600160401b038381169083168181101561264357612643612491565b039392505050565b60006001600160401b0380831681851680830382111561266d5761266d612491565b01949350505050565b60006001600160801b038381169083168181101561264357612643612491565b60006001600160801b0380831681851680830382111561266d5761266d612491565b6000816126c7576126c7612491565b506000190190565b6000826126de576126de61250f565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061272c9083018461200b565b9695505050505050565b60006020828403121561274857600080fd5b81516118e181611fac56fea264697066735822122055afd62a5824acf55f9b385208cd67b16a2ea9bfed81996192378e53d421adc864736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002b2000000000000000000000000118b9935cac62f0ddeb8f532afecc262fe7b7b61000000000000000000000000c9fc6393deae69f008e4b106d00c5eee451f7b89000000000000000000000000000000000000000000000000000000000000000b4d696e696d656e436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d4d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d547a66664546557361586b3958613371514c395a3357583554576f52524d6b4b5139786542313478356d3873000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d525a4633673744565342336e70774c6473637865727571346878667459715a684d6b705a5851394c41617858000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c80637661e83e11610130578063a22cb465116100b8578063e985e9c51161007c578063e985e9c5146104c7578063f2fde38b14610503578063f47c84c514610516578063f5edd1ef1461051f578063f7922e951461053257600080fd5b8063a22cb46514610468578063b510391f1461047b578063b88d4fde1461048e578063c87b56dd146104a1578063cc8d64a2146104b457600080fd5b80638da5cb5b116100ff5780638da5cb5b14610416578063915791251461042757806395d89b411461043a57806396df294d146104425780639d6335d71461045557600080fd5b80637661e83e146103d5578063835b9453146103dd5780638462151c146103f057806389610a091461040357600080fd5b80632a55205a116101be5780636352211e116101825780636352211e1461038c57806364143b081461039f5780636ba4c138146103a757806370a08231146103ba578063715018a6146103cd57600080fd5b80632a55205a1461030e5780632f745c591461034057806342842e0e14610353578063484b973c146103665780634f6ccce71461037957600080fd5b80630af4750e116102055780630af4750e146102b45780630d6a871f146102ca57806318160ddd146102d35780631b831ead146102db57806323b872dd146102fb57600080fd5b806301ffc9a71461023757806306fdde031461025f578063081812fc14610274578063095ea7b31461029f575b600080fd5b61024a610245366004611fc2565b610545565b60405190151581526020015b60405180910390f35b610267610570565b6040516102569190612037565b61028761028236600461204a565b610602565b6040516001600160a01b039091168152602001610256565b6102b26102ad36600461207f565b610629565b005b6102bc604581565b604051908152602001610256565b6102bc61012c81565b600a546102bc565b6102ee6102e93660046120a9565b6106b6565b60405161025691906120c4565b6102b2610309366004612108565b6107af565b61032161031c366004612144565b6107e1565b604080516001600160a01b039093168352602083019190915201610256565b6102bc61034e36600461207f565b61081a565b6102b2610361366004612108565b610935565b6102b261037436600461207f565b610950565b6102bc61038736600461204a565b6109d5565b61028761039a36600461204a565b6109f0565b610267610a26565b6102b26103b53660046121ac565b610ab5565b6102bc6103c83660046120a9565b610c08565b6102b2610c56565b610267610c6a565b6102b26103eb3660046122a8565b610c78565b6102ee6103fe3660046120a9565b610c94565b61024a61041136600461204a565b610dc8565b6000546001600160a01b0316610287565b6102b26104353660046120a9565b610e01565b610267610e2b565b600b54610287906001600160a01b031681565b6102b26104633660046122f0565b610e3a565b6102b261047636600461231c565b610e6a565b6102b2610489366004612378565b610e75565b6102b261049c3660046123c5565b610f82565b6102676104af36600461204a565b610fbb565b6102b26104c23660046120a9565b611047565b61024a6104d536600461242c565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6102b26105113660046120a9565b611071565b6102bc610d0581565b600c54610287906001600160a01b031681565b6102b26105403660046122a8565b6110ac565b60006001600160e01b0319821663780e9d6360e01b148061056a575061056a826110c8565b92915050565b60606003805461057f90612456565b80601f01602080910402602001604051908101604052809291908181526020018280546105ab90612456565b80156105f85780601f106105cd576101008083540402835291602001916105f8565b820191906000526020600020905b8154815290600101906020018083116105db57829003601f168201915b5050505050905090565b600061060d82611133565b506000908152600760205260409020546001600160a01b031690565b6000610634826109f0565b9050806001600160a01b0316836001600160a01b031614156106695760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610689575061068781336104d5565b155b156106a7576040516367d9dca160e11b815260040160405180910390fd5b6106b18383611168565b505050565b60606001600160a01b0382166106df5760405163197ce4cd60e31b815260040160405180910390fd5b6040805160458082526108c08201909252600091602082016108a080368337019050506009549091506000906001600160801b03165b60095461072d906045906001600160801b03166124a7565b81116107a6576000818152600560205260409020546001600160a01b0390811690861681148015610762575061076282610dc8565b15610793578184848151811061077a5761077a6124bf565b60209081029190910101528261078f816124d5565b9350505b508061079e816124d5565b915050610715565b50909392505050565b6107b933826111d6565b6107d657604051632ce44b5f60e11b815260040160405180910390fd5b6106b1838383611255565b6000806000612710600154856107f791906124f0565b6108019190612525565b6002546001600160a01b031693509150505b9250929050565b600061082583610c08565b8210610844576040516355c65cdf60e01b815260040160405180910390fd5b6001600160a01b03831661086b5760405163197ce4cd60e31b815260040160405180910390fd5b600954600160801b90046001600160801b031661089b5760405163989aff9960e01b815260040160405180910390fd5b6009546000906001600160801b03165b600954600160801b90046001600160801b0316811161091b576000818152600560205260409020546001600160a01b0390811690861681141561090857848314156108fa5750915061056a9050565b82610904816124d5565b9350505b5080610913816124d5565b9150506108ab565b506040516355c65cdf60e01b815260040160405180910390fd5b6106b183838360405180602001604052806000815250610f82565b6109586113d8565b610960611403565b600a54106109815760405163adb211d960e01b815260040160405180910390fd5b610989611403565b81610993600a5490565b61099d91906124a7565b11156109cb576109c7826109b0600a5490565b6109b8611403565b6109c29190612539565b61143f565b5050565b6109c7828261143f565b600060405163989aff9960e01b815260040160405180910390fd5b6000818152600560205260408120546001600160a01b03168061056a57604051636c01c8cf60e11b815260040160405180910390fd5b610d138054610a3490612456565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6090612456565b8015610aad5780601f10610a8257610100808354040283529160200191610aad565b820191906000526020600020905b815481529060010190602001808311610a9057829003601f168201915b505050505081565b610ac9335b6001600160a01b03163b151590565b15610ae757604051638e26464160e01b815260040160405180910390fd5b60005b81518110156109c7576000828281518110610b0757610b076124bf565b60200260200101519050610b183390565b6001600160a01b0316610b2a826109f0565b6001600160a01b031614610b51576040516359dc379f60e01b815260040160405180910390fd5b610b5a81610dc8565b610b7757604051633b6d512960e01b815260040160405180910390fd5b6000818152610d1260205260409020429055600c546001600160a01b0316636a627842336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b158015610bdc57600080fd5b505af1158015610bf0573d6000803e3d6000fd5b50505050508080610c00906124d5565b915050610aea565b60006001600160a01b038216610c31576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b610c5e6113d8565b610c68600061154d565b565b610d148054610a3490612456565b610c806113d8565b80516109c790610d13906020840190611f13565b60606001600160a01b038216610cbd5760405163197ce4cd60e31b815260040160405180910390fd5b600954600160801b90046001600160801b0316610ced5760405163989aff9960e01b815260040160405180910390fd5b6000610cf883610c08565b6001600160401b03811115610d0f57610d0f612166565b604051908082528060200260200182016040528015610d38578160200160208202803683370190505b506009549091506000906001600160801b03165b600954600160801b90046001600160801b031681116107a6576000818152600560205260409020546001600160a01b03908116908616811415610db55781848481518110610d9c57610d9c6124bf565b602090810291909101015282610db1816124d5565b9350505b5080610dc0816124d5565b915050610d4c565b600954600090604590610de4906001600160801b031684612539565b10801561056a5750506000908152610d1260205260409020541590565b610e096113d8565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60606004805461057f90612456565b610e426113d8565b610e4b8261159d565b600280546001600160a01b0319166001600160a01b0383161790555050565b6109c73383836115b5565b610e7d611403565b600a5410610e9e5760405163adb211d960e01b815260040160405180910390fd5b33600090815260066020526040902054600160401b90046001600160401b031615610edc5760405163436a537960e01b815260040160405180910390fd5b6001600160a01b0382163314610f055760405163430c29ad60e11b815260040160405180910390fd5b610f0e33610aba565b15610f2c5760405163e053100760e01b815260040160405180910390fd5b6000610f3783611655565b600b549091506001600160a01b0316610f5082846116e9565b6001600160a01b031614610f7757604051638baa579f60e01b815260040160405180910390fd5b6106b183600161143f565b610f8c33836111d6565b610fa957604051632ce44b5f60e11b815260040160405180910390fd5b610fb58484848461170d565b50505050565b6000818152600560205260409020546060906001600160a01b0316610ff357604051636c01c8cf60e11b815260040160405180910390fd5b6000828152610d1260205260409020541561103b57610d1461101483611724565b60405160200161102592919061256c565b6040516020818303038152906040529050919050565b610d1361101483611724565b61104f6113d8565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6110796113d8565b6001600160a01b0381166110a05760405163513027b560e11b815260040160405180910390fd5b6110a98161154d565b50565b6110b46113d8565b80516109c790610d14906020840190611f13565b60006001600160e01b031982166380ac58cd60e01b14806110f957506001600160e01b03198216635b5e139f60e01b145b8061111457506001600160e01b0319821663152a902d60e11b145b8061056a57506301ffc9a760e01b6001600160e01b031983161461056a565b6000818152600560205260409020546001600160a01b03166110a957604051636c01c8cf60e11b815260040160405180910390fd5b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119d826109f0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806111e2836109f0565b9050806001600160a01b0316846001600160a01b0316148061122957506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b8061124d5750836001600160a01b031661124284610602565b6001600160a01b0316145b949350505050565b826001600160a01b0316611268826109f0565b6001600160a01b03161461128e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0382166112b557604051633a954ecd60e21b815260040160405180910390fd5b6112c0838383611821565b600081815260076020908152604080832080546001600160a01b03191690556001600160a01b03861683526006909152812080546001929061130c9084906001600160401b0316612623565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b038416600090815260066020526040812080546001945090926113589185911661264b565b82546001600160401b039182166101009390930a92830291909202199091161790555060008181526005602052604080822080546001600160a01b038087166001600160a01b0319909216821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b03163314610c6857604051632e6c18c960e11b815260040160405180910390fd5b600954600090611426906001600160801b0380821691600160801b900416612676565b611431906001612696565b6001600160801b0316905090565b600061144a600a5490565b611452611403565b61145c9190612539565b905060005b82811015610fb557600061147483611884565b90506000600d82610d05811061148c5761148c6124bf565b0154905060008161149e5750816114a1565b50805b6000600d6114b0600188612539565b610d0581106114c1576114c16124bf565b01549050806114f0576114d5600187612539565b600d85610d0581106114e9576114e96124bf565b0155611508565b80600d85610d058110611505576115056124bf565b01555b600954611529908990611524906001600160801b0316856124a7565b6118e8565b85611533816126b8565b965050505050508080611545906124d5565b915050611461565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127108111156115b05761271060015550565b600155565b816001600160a01b0316836001600160a01b031614156115e85760405163b06307db60e01b815260040160405180910390fd5b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040805130602082015246918101919091526001600160a01b038216606082015260009061056a90608001604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006116f88585611a55565b9150915061170581611ac2565b509392505050565b611718848484611255565b610fb584848484611c82565b6060816117485750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611772578061175c816124d5565b915061176b9050600a83612525565b915061174c565b6000816001600160401b0381111561178c5761178c612166565b6040519080825280601f01601f1916602001820160405280156117b6576020820181803683370190505b5090505b841561124d576117cb600183612539565b91506117d8600a866126cf565b6117e39060306124a7565b60f81b8183815181106117f8576117f86124bf565b60200101906001600160f81b031916908160001a90535061181a600a86612525565b94506117ba565b61182c838383611da5565b6000818152610d1260205260409020541580159061186657506000818152610d12602052604090205442906118649061012c906124a7565b115b156106b15760405163d148980b60e01b815260040160405180910390fd5b600080334442611895600143612539565b604080516001600160a01b039095166020860152840192909252606083015240608082015260a00160408051601f19818403018152919052805160209091012090506118e183826126cf565b9392505050565b6001600160a01b03821661190e57604051622e076360e81b815260040160405180910390fd5b6000818152600560205260409020546001600160a01b0316156119445760405163186a1c7360e11b815260040160405180910390fd5b61195060008383611821565b6001600160a01b03821660009081526006602052604081208054600192906119829084906001600160401b031661264b565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b038416600090815260066020526040902080546001935090916008916119d8918591600160401b90041661264b565b82546001600160401b039182166101009390930a92830291909202199091161790555060008181526005602052604080822080546001600160a01b0386166001600160a01b0319909116811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080825160411415611a8c5760208301516040840151606085015160001a611a8087828585611df7565b94509450505050610813565b825160401415611ab65760208301516040840151611aab868383611ee4565b935093505050610813565b50600090506002610813565b6000816004811115611ad657611ad66126e3565b1415611adf5750565b6001816004811115611af357611af36126e3565b1415611b465760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b6002816004811115611b5a57611b5a6126e3565b1415611ba85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611b3d565b6003816004811115611bbc57611bbc6126e3565b1415611c155760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611b3d565b6004816004811115611c2957611c296126e3565b14156110a95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611b3d565b6001600160a01b0383163b611c9657610fb5565b604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290611cc89033908890879087906004016126f9565b602060405180830381600087803b158015611ce257600080fd5b505af1925050508015611d12575060408051601f3d908101601f19168201909252611d0f91810190612736565b60015b611d6d573d808015611d40576040519150601f19603f3d011682016040523d82523d6000602084013e611d45565b606091505b508051611d65576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14611d9e576040516368d2bf6b60e11b815260040160405180910390fd5b5050505050565b6001600160a01b038316611dcc576001600a6000828254611dc691906124a7565b90915550505b6001600160a01b0382166106b1576001600a6000828254611ded9190612539565b9091555050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611e2e5750600090506003611edb565b8460ff16601b14158015611e4657508460ff16601c14155b15611e575750600090506004611edb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611eab573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611ed457600060019250925050611edb565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611f0587828885611df7565b935093505050935093915050565b828054611f1f90612456565b90600052602060002090601f016020900481019282611f415760008555611f87565b82601f10611f5a57805160ff1916838001178555611f87565b82800160010185558215611f87579182015b82811115611f87578251825591602001919060010190611f6c565b50611f93929150611f97565b5090565b5b80821115611f935760008155600101611f98565b6001600160e01b0319811681146110a957600080fd5b600060208284031215611fd457600080fd5b81356118e181611fac565b60005b83811015611ffa578181015183820152602001611fe2565b83811115610fb55750506000910152565b60008151808452612023816020860160208601611fdf565b601f01601f19169290920160200192915050565b6020815260006118e1602083018461200b565b60006020828403121561205c57600080fd5b5035919050565b80356001600160a01b038116811461207a57600080fd5b919050565b6000806040838503121561209257600080fd5b61209b83612063565b946020939093013593505050565b6000602082840312156120bb57600080fd5b6118e182612063565b6020808252825182820181905260009190848201906040850190845b818110156120fc578351835292840192918401916001016120e0565b50909695505050505050565b60008060006060848603121561211d57600080fd5b61212684612063565b925061213460208501612063565b9150604084013590509250925092565b6000806040838503121561215757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156121a4576121a4612166565b604052919050565b600060208083850312156121bf57600080fd5b82356001600160401b03808211156121d657600080fd5b818501915085601f8301126121ea57600080fd5b8135818111156121fc576121fc612166565b8060051b915061220d84830161217c565b818152918301840191848101908884111561222757600080fd5b938501935b838510156122455784358252938501939085019061222c565b98975050505050505050565b60006001600160401b0383111561226a5761226a612166565b61227d601f8401601f191660200161217c565b905082815283838301111561229157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156122ba57600080fd5b81356001600160401b038111156122d057600080fd5b8201601f810184136122e157600080fd5b61124d84823560208401612251565b6000806040838503121561230357600080fd5b8235915061231360208401612063565b90509250929050565b6000806040838503121561232f57600080fd5b61233883612063565b91506020830135801515811461234d57600080fd5b809150509250929050565b600082601f83011261236957600080fd5b6118e183833560208501612251565b6000806040838503121561238b57600080fd5b61239483612063565b915060208301356001600160401b038111156123af57600080fd5b6123bb85828601612358565b9150509250929050565b600080600080608085870312156123db57600080fd5b6123e485612063565b93506123f260208601612063565b92506040850135915060608501356001600160401b0381111561241457600080fd5b61242087828801612358565b91505092959194509250565b6000806040838503121561243f57600080fd5b61244883612063565b915061231360208401612063565b600181811c9082168061246a57607f821691505b6020821081141561248b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156124ba576124ba612491565b500190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156124e9576124e9612491565b5060010190565b600081600019048311821515161561250a5761250a612491565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125345761253461250f565b500490565b60008282101561254b5761254b612491565b500390565b60008151612562818560208601611fdf565b9290920192915050565b600080845481600182811c91508083168061258857607f831692505b60208084108214156125a857634e487b7160e01b86526022600452602486fd5b8180156125bc57600181146125cd576125fa565b60ff198616895284890196506125fa565b60008b81526020902060005b868110156125f25781548b8201529085019083016125d9565b505084890196505b50505050505061261a61261482602f60f81b815260010190565b85612550565b95945050505050565b60006001600160401b038381169083168181101561264357612643612491565b039392505050565b60006001600160401b0380831681851680830382111561266d5761266d612491565b01949350505050565b60006001600160801b038381169083168181101561264357612643612491565b60006001600160801b0380831681851680830382111561266d5761266d612491565b6000816126c7576126c7612491565b506000190190565b6000826126de576126de61250f565b500690565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061272c9083018461200b565b9695505050505050565b60006020828403121561274857600080fd5b81516118e181611fac56fea264697066735822122055afd62a5824acf55f9b385208cd67b16a2ea9bfed81996192378e53d421adc864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002b2000000000000000000000000118b9935cac62f0ddeb8f532afecc262fe7b7b61000000000000000000000000c9fc6393deae69f008e4b106d00c5eee451f7b89000000000000000000000000000000000000000000000000000000000000000b4d696e696d656e436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d4d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d547a66664546557361586b3958613371514c395a3357583554576f52524d6b4b5139786542313478356d3873000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d525a4633673744565342336e70774c6473637865727571346878667459715a684d6b705a5851394c41617858000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): MinimenClub
Arg [1] : symbol (string): MM
Arg [2] : _tokenDirectory (string): QmTzffEFUsaXk9Xa3qQL9Z3WX5TWoRRMkKQ9xeB14x5m8s
Arg [3] : _claimedDirectory (string): QmRZF3g7DVSB3npwLdscxeruq4hxftYqZhMkpZXQ9LAaxX
Arg [4] : royalty (uint256): 690
Arg [5] : royaltyWallet (address): 0x118B9935Cac62F0dDEB8F532Afecc262fE7B7b61
Arg [6] : mintApprover (address): 0xc9fC6393DeAe69F008E4b106D00c5eEe451F7b89

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000002b2
Arg [5] : 000000000000000000000000118b9935cac62f0ddeb8f532afecc262fe7b7b61
Arg [6] : 000000000000000000000000c9fc6393deae69f008e4b106d00c5eee451f7b89
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [8] : 4d696e696d656e436c7562000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 4d4d000000000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [12] : 516d547a66664546557361586b3958613371514c395a3357583554576f52524d
Arg [13] : 6b4b5139786542313478356d3873000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [15] : 516d525a4633673744565342336e70774c647363786572757134687866745971
Arg [16] : 5a684d6b705a5851394c41617858000000000000000000000000000000000000


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.