ETH Price: $3,442.77 (-1.19%)
Gas: 5.66 Gwei

Token

adidas Virtual Gear (AVG)
 

Overview

Max Total Supply

12,698 AVG

Holders

6,820

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
pizzatown.eth
Balance
1 AVG
0x879112353f5AD3b25cE1F3A5C6ECfE8512c4B850
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Unveiling the genesis collection of adidas Virtual Gear. An eclectic mix of impossible silhouettes, tying together past and future, virtual and physical, communities and creators, culture and identity. Representing our first NFT collection of wearables, a new, interoperable product category “Virtual Gear”, accelerates our collective drive towards strengthening web3, and the adidas community-based, member-first, open metaverse pledge.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AdidasVirtualGear

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : AdidasVirtualGear.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./DefaultOperatorFilterer.sol";
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

interface ITMAirdrop {
    function burn(uint256 tokenId) external;
    function ownerOf(uint256 tokenId) external view returns (address);
    function balanceOf(address account) external view returns (uint256);
}

contract AdidasVirtualGear is ERC721Enumerable, ERC2981, Ownable, DefaultOperatorFilterer {
    using Strings for uint256;

    string public baseUri = "";
    string public uriSuffix = ".json";

    // Token name
    string private _name;
    // Token symbol
    string private _symbol;
    // minting status
    bool private _mintEnabled = false;
    // max supply
    uint256 private _maxSupply; 
    // v1 airdrop contract address
    ITMAirdrop private _airdropContract;

    constructor(string memory __name, string memory __symbol, address _address, string memory _baseUri, string memory _uriSuffix, uint256 __maxSupply) ERC721(__name, __symbol) {
        _name = __name;
        _symbol = __symbol;
        baseUri = _baseUri;
        uriSuffix = _uriSuffix;
        _maxSupply = __maxSupply;
        _airdropContract = ITMAirdrop(_address);
    }

    // Max Amount of Token that can ever be minted
    function maxSupply() public view virtual returns (uint256) {
        return _maxSupply;
    }

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

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

    function setNameAndSymbol(string calldata __name, string calldata __symbol) public onlyOwner {
        _name = __name;
        _symbol = __symbol;
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token.");

        string memory currentBaseURI = _baseURI();
        return string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix));
    }

    function reduceMaxSupply(uint256 amount) private {
        _maxSupply -= amount;
    }

    // Token Burning
    function batchBurn(uint256[] calldata _tokenIds) public {
        for (uint256 i; i < _tokenIds.length; ) {
            require(msg.sender == ownerOf(_tokenIds[i]), "Only token owner can burn.");
            _burn(_tokenIds[i]);
            unchecked {
                i++;
            }
        }

        // Reducing Max Supply
        reduceMaxSupply(_tokenIds.length);
    }

    // Upgrade Token
    function upgradeToken(uint256[] calldata _tokenIds) public {
        uint256 numToken = _tokenIds.length;
        require(numToken > 1, "More than 1 token must be submitted.");
        for (uint256 i=1; i < numToken; ) {
            require(msg.sender == ownerOf(_tokenIds[i]), "Only token owner can burn.");
            _burn(_tokenIds[i]);
            unchecked {
                i++;
            }
        }

        // Reducing Max Supply
        reduceMaxSupply(numToken - 1);
    }

    // Burns and Mints, also requires Approval
    function burnToMint(uint256[] calldata _tokenIds) public {
        require(_mintEnabled == true, "Minting not enabled yet!");

        uint256 newSupplyAmount = totalSupply() + _tokenIds.length;
        require(newSupplyAmount <= _maxSupply, "Reached minting limit.");
        
        for (uint256 i; i<_tokenIds.length;) {
            require(msg.sender == _airdropContract.ownerOf(_tokenIds[i]), "Only token owner can burn and mint."); 
            _airdropContract.burn(_tokenIds[i]);
            _mint(msg.sender, _tokenIds[i]);
            unchecked{
               i++;
            }
        }    
    }

    // Airdrop minting
    function mintMany(address[] calldata _to, uint256[] calldata _tokenIds) public onlyOwner {
        require(_to.length == _tokenIds.length, "Mismatched lengths.");

        uint256 newSupplyAmount = totalSupply() + _tokenIds.length;
        require(newSupplyAmount <= _maxSupply, "Reached minting limit.");

        for (uint256 i; i < _to.length; ) {
            _mint(_to[i], _tokenIds[i]);
            unchecked {
                i++;
            }
        }
    }

    // Token Ownership
    function walletOfCapsuleOwner(address __owner, uint256 _startingIndex, uint256 _endingIndex) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = _airdropContract.balanceOf(__owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = _startingIndex;
        uint256 ownedTokenIndex = 0;

        uint256 capsuleSupply = _endingIndex;

        if (ownerTokenCount > 0) {
            unchecked {
                while (ownedTokenIndex < ownerTokenCount && currentTokenId < capsuleSupply) {
                    try _airdropContract.ownerOf(currentTokenId) returns (address currentTokenOwner) {
                        if (currentTokenOwner == __owner) {
                            ownedTokenIds[ownedTokenIndex] = currentTokenId;
                                ownedTokenIndex++;
                        }
                    } catch {
                        // Do nothing for now
                    }
                        currentTokenId++;
                }
            }
        } 
        return ownedTokenIds;
    }

    function walletOfOwner(address __owner) public view returns (uint256[] memory){
        uint256 ownerTokenCount = balanceOf(__owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        for (uint256 i; i<ownerTokenCount;){
            ownedTokenIds[i] = tokenOfOwnerByIndex(__owner, i);
            unchecked {
                i++;
            }
        }
        return ownedTokenIds;
    }

    // Minting Status
    function setMintStatus(bool enabled) public onlyOwner {
        _mintEnabled = enabled;
    }

    // URI methods
    function _baseURI() internal view virtual override returns (string memory) {
        return baseUri;
    }

    function setBaseUri(string calldata _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    function setUriSuffix(string calldata _uriSuffix) public onlyOwner {
        uriSuffix = _uriSuffix;
    }

    // Operator Registry Controls
    function updateOperator(address _operator, bool _filtered) public onlyOwner {
        OPERATOR_FILTER_REGISTRY.updateOperator(address(this), _operator, _filtered);
    }

    // Royalties
    function setRoyalties(address recipient, uint96 value) public onlyOwner {
        _setDefaultRoyalty(recipient, value);
    }

    // @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    // Registry Validated Transfers 
    function setApprovalForAll(address operator, bool approved) public override(ERC721,IERC721) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public override(ERC721,IERC721) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override(ERC721,IERC721) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721,IERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override(ERC721,IERC721)
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 7 of 20 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 8 of 20 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 9 of 20 : 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 10 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 16 of 20 : 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 17 of 20 : 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 18 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 19 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

File 20 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":"address","name":"_address","type":"address"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_uriSuffix","type":"string"},{"internalType":"uint256","name":"__maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"burnToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_filtered","type":"bool"}],"name":"updateOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"upgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"__owner","type":"address"},{"internalType":"uint256","name":"_startingIndex","type":"uint256"},{"internalType":"uint256","name":"_endingIndex","type":"uint256"}],"name":"walletOfCapsuleOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"__owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

60a060405260006080908152600d906200001a908262000381565b50604080518082019091526005815264173539b7b760d91b6020820152600e9062000046908262000381565b506011805460ff191690553480156200005e57600080fd5b50604051620037f9380380620037f9833981016040819052620000819162000519565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600187876000620000a8838262000381565b506001620000b7828262000381565b505050620000d4620000ce6200028660201b60201c565b6200028a565b6daaeb6d7670e522a718067333cd4e3b15620002195780156200016757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014857600080fd5b505af11580156200015d573d6000803e3d6000fd5b5050505062000219565b6001600160a01b03821615620001b85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ff57600080fd5b505af115801562000214573d6000803e3d6000fd5b505050505b50600f90506200022a878262000381565b50601062000239868262000381565b50600d62000248848262000381565b50600e62000257838262000381565b506012555050601380546001600160a01b0319166001600160a01b039290921691909117905550620005ed9050565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200030757607f821691505b6020821081036200032857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037c57600081815260208120601f850160051c81016020861015620003575750805b601f850160051c820191505b81811015620003785782815560010162000363565b5050505b505050565b81516001600160401b038111156200039d576200039d620002dc565b620003b581620003ae8454620002f2565b846200032e565b602080601f831160018114620003ed5760008415620003d45750858301515b600019600386901b1c1916600185901b17855562000378565b600085815260208120601f198616915b828110156200041e57888601518255948401946001909101908401620003fd565b50858210156200043d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f8301126200045f57600080fd5b81516001600160401b03808211156200047c576200047c620002dc565b604051601f8301601f19908116603f01168101908282118183101715620004a757620004a7620002dc565b81604052838152602092508683858801011115620004c457600080fd5b600091505b83821015620004e85785820183015181830184015290820190620004c9565b600093810190920192909252949350505050565b80516001600160a01b03811681146200051457600080fd5b919050565b60008060008060008060c087890312156200053357600080fd5b86516001600160401b03808211156200054b57600080fd5b620005598a838b016200044d565b975060208901519150808211156200057057600080fd5b6200057e8a838b016200044d565b96506200058e60408a01620004fc565b95506060890151915080821115620005a557600080fd5b620005b38a838b016200044d565b94506080890151915080821115620005ca57600080fd5b50620005d989828a016200044d565b92505060a087015190509295509295509295565b6131fc80620005fd6000396000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c80636352211e11610145578063a22cb465116100bd578063d5abeb011161008c578063e985e9c511610071578063e985e9c5146104c9578063f2fde38b14610505578063fe8c45e81461051857600080fd5b8063d5abeb01146104ae578063dc8e92ea146104b657600080fd5b8063a22cb46514610462578063b88d4fde14610475578063c21b471b14610488578063c87b56dd1461049b57600080fd5b80638836c3c01161011457806395d89b41116100f957806395d89b411461043f5780639abc832014610447578063a0bcfc7f1461044f57600080fd5b80638836c3c01461041b5780638da5cb5b1461042e57600080fd5b80636352211e146103da5780636d44a3b2146103ed57806370a0823114610400578063715018a61461041357600080fd5b80632a55205a116101d857806342842e0e116101a75780634f6ccce71161018c5780634f6ccce7146103ac5780635503a0e8146103bf5780635a446215146103c757600080fd5b806342842e0e14610379578063438b63001461038c57600080fd5b80632a55205a1461030e5780632f745c59146103405780633386cc4e146103535780634029a3ce1461036657600080fd5b806316ba10e01161021457806316ba10e0146102c357806318160ddd146102d65780631f85e3ca146102e857806323b872dd146102fb57600080fd5b806301ffc9a71461024657806306fdde031461026e578063081812fc14610283578063095ea7b3146102ae575b600080fd5b6102596102543660046128f8565b61052b565b60405190151581526020015b60405180910390f35b61027661053c565b604051610265919061296c565b61029661029136600461297f565b6105ce565b6040516001600160a01b039091168152602001610265565b6102c16102bc3660046129ad565b6105f5565b005b6102c16102d1366004612a1b565b6106c5565b6008545b604051908152602001610265565b6102c16102f6366004612a6b565b6106da565b6102c1610309366004612a88565b6106f5565b61032161031c366004612ac9565b6107d0565b604080516001600160a01b039093168352602083019190915201610265565b6102da61034e3660046129ad565b61088d565b6102c1610361366004612b30565b610935565b6102c1610374366004612b66565b610bb4565b6102c1610387366004612a88565b610ccc565b61039f61039a366004612bd2565b610d9c565b6040516102659190612bef565b6102da6103ba36600461297f565b610e34565b610276610ed8565b6102c16103d5366004612c33565b610f66565b6102966103e836600461297f565b610f90565b6102c16103fb366004612c93565b610ff5565b6102da61040e366004612bd2565b611087565b6102c1611121565b6102c1610429366004612b30565b611135565b600c546001600160a01b0316610296565b610276611274565b610276611283565b6102c161045d366004612a1b565b611290565b6102c1610470366004612c93565b6112a5565b6102c1610483366004612ce2565b61136b565b6102c1610496366004612dc2565b611442565b6102766104a936600461297f565b611458565b6012546102da565b6102c16104c4366004612b30565b611526565b6102596104d7366004612e01565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c1610513366004612bd2565b6115cd565b61039f610526366004612e2f565b61165d565b60006105368261182b565b92915050565b6060600f805461054b90612e64565b80601f016020809104026020016040519081016040528092919081815260200182805461057790612e64565b80156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b5050505050905090565b60006105d982611869565b506000908152600460205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b156106b657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612e9e565b6106b657604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106c083836118cd565b505050565b6106cd6119f9565b600e6106c0828483612f01565b6106e26119f9565b6011805460ff1916911515919091179055565b826daaeb6d7670e522a718067333cd4e3b156107bf57336001600160a01b0382160361072b57610726848484611a53565b6107ca565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af115801561077c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a09190612e9e565b6107bf57604051633b79c77360e21b81523360048201526024016106ad565b6107ca848484611a53565b50505050565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161084f575060408051808201909152600a546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610873906bffffffffffffffffffffffff1687612fd7565b61087d9190613004565b91519350909150505b9250929050565b600061089883611087565b821061090c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016106ad565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b60115460ff16151560011461098c5760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206e6f7420656e61626c65642079657421000000000000000060448201526064016106ad565b60008161099860085490565b6109a29190613018565b90506012548111156109f65760405162461bcd60e51b815260206004820152601660248201527f52656163686564206d696e74696e67206c696d69742e0000000000000000000060448201526064016106ad565b60005b828110156107ca576013546001600160a01b0316636352211e858584818110610a2457610a2461302b565b905060200201356040518263ffffffff1660e01b8152600401610a4991815260200190565b602060405180830381865afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a9190613041565b6001600160a01b0316336001600160a01b031614610b105760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e20616e64206d6960448201527f6e742e000000000000000000000000000000000000000000000000000000000060648201526084016106ad565b6013546001600160a01b03166342966c68858584818110610b3357610b3361302b565b905060200201356040518263ffffffff1660e01b8152600401610b5891815260200190565b600060405180830381600087803b158015610b7257600080fd5b505af1158015610b86573d6000803e3d6000fd5b50505050610bac33858584818110610ba057610ba061302b565b90506020020135611ada565b6001016109f9565b610bbc6119f9565b828114610c0b5760405162461bcd60e51b815260206004820152601360248201527f4d69736d617463686564206c656e677468732e0000000000000000000000000060448201526064016106ad565b600081610c1760085490565b610c219190613018565b9050601254811115610c755760405162461bcd60e51b815260206004820152601660248201527f52656163686564206d696e74696e67206c696d69742e0000000000000000000060448201526064016106ad565b60005b84811015610cc457610cbc868683818110610c9557610c9561302b565b9050602002016020810190610caa9190612bd2565b858584818110610ba057610ba061302b565b600101610c78565b505050505050565b826daaeb6d7670e522a718067333cd4e3b15610d9157336001600160a01b03821603610cfd57610726848484611c28565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190612e9e565b610d9157604051633b79c77360e21b81523360048201526024016106ad565b6107ca848484611c28565b60606000610da983611087565b905060008167ffffffffffffffff811115610dc657610dc6612ccc565b604051908082528060200260200182016040528015610def578160200160208202803683370190505b50905060005b82811015610e2c57610e07858261088d565b828281518110610e1957610e1961302b565b6020908102919091010152600101610df5565b509392505050565b6000610e3f60085490565b8210610eb35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016106ad565b60088281548110610ec657610ec661302b565b90600052602060002001549050919050565b600e8054610ee590612e64565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1190612e64565b8015610f5e5780601f10610f3357610100808354040283529160200191610f5e565b820191906000526020600020905b815481529060010190602001808311610f4157829003601f168201915b505050505081565b610f6e6119f9565b600f610f7b848683612f01565b506010610f89828483612f01565b5050505050565b6000818152600260205260408120546001600160a01b0316806105365760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106ad565b610ffd6119f9565b6040517fa2f367ab0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316602482015281151560448201526daaeb6d7670e522a718067333cd4e9063a2f367ab90606401600060405180830381600087803b15801561107357600080fd5b505af1158015610cc4573d6000803e3d6000fd5b60006001600160a01b0382166111055760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016106ad565b506001600160a01b031660009081526003602052604090205490565b6111296119f9565b6111336000611c43565b565b80600181116111ab5760405162461bcd60e51b8152602060048201526024808201527f4d6f7265207468616e203120746f6b656e206d757374206265207375626d697460448201527f7465642e0000000000000000000000000000000000000000000000000000000060648201526084016106ad565b60015b81811015611260576111d78484838181106111cb576111cb61302b565b90506020020135610f90565b6001600160a01b0316336001600160a01b0316146112375760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e2e00000000000060448201526064016106ad565b61125884848381811061124c5761124c61302b565b90506020020135611c95565b6001016111ae565b506106c061126f60018361305e565b611d3c565b60606010805461054b90612e64565b600d8054610ee590612e64565b6112986119f9565b600d6106c0828483612f01565b816daaeb6d7670e522a718067333cd4e3b1561136157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113399190612e9e565b61136157604051633b79c77360e21b81526001600160a01b03821660048201526024016106ad565b6106c08383611d56565b836daaeb6d7670e522a718067333cd4e3b1561143657336001600160a01b038216036113a25761139d85858585611d61565b610f89565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156113f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114179190612e9e565b61143657604051633b79c77360e21b81523360048201526024016106ad565b610f8985858585611d61565b61144a6119f9565b6114548282611de9565b5050565b6000818152600260205260409020546060906001600160a01b03166114e55760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e0000000000000000000000000000000060648201526084016106ad565b60006114ef611f03565b9050806114fb84611f12565b600e60405160200161150f93929190613071565b604051602081830303815290604052915050919050565b60005b818110156115c3576115468383838181106111cb576111cb61302b565b6001600160a01b0316336001600160a01b0316146115a65760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e2e00000000000060448201526064016106ad565b6115bb83838381811061124c5761124c61302b565b600101611529565b5061145481611d3c565b6115d56119f9565b6001600160a01b0381166116515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106ad565b61165a81611c43565b50565b6013546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190613111565b905060008167ffffffffffffffff81111561170657611706612ccc565b60405190808252806020026020018201604052801561172f578160200160208202803683370190505b50905084600085841561181e575b848210801561174b57508083105b1561181e576013546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0390911690636352211e90602401602060405180830381865afa9250505080156117ce575060408051601f3d908101601f191682019092526117cb91810190613041565b60015b1561181357896001600160a01b0316816001600160a01b03160361181157838584815181106117ff576117ff61302b565b60209081029190910101526001909201915b505b60019092019161173d565b5091979650505050505050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061053657506105368261204f565b6000818152600260205260409020546001600160a01b031661165a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106ad565b60006118d882610f90565b9050806001600160a01b0316836001600160a01b0316036119615760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016106ad565b336001600160a01b038216148061197d575061197d81336104d7565b6119ef5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106ad565b6106c0838361208d565b600c546001600160a01b031633146111335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ad565b611a5d33826120fb565b611acf5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016106ad565b6106c0838383612179565b6001600160a01b038216611b305760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ad565b6000818152600260205260409020546001600160a01b031615611b955760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ad565b611ba160008383612351565b6001600160a01b0382166000908152600360205260408120805460019290611bca908490613018565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6106c08383836040518060200160405280600081525061136b565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ca082610f90565b9050611cae81600084612351565b611cb960008361208d565b6001600160a01b0381166000908152600360205260408120805460019290611ce290849061305e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8060126000828254611d4e919061305e565b909155505050565b611454338383612409565b611d6b33836120fb565b611ddd5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016106ad565b6107ca848484846124d7565b6127106bffffffffffffffffffffffff82161115611e6f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016106ad565b6001600160a01b038216611ec55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016106ad565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600a55565b6060600d805461054b90612e64565b606081600003611f5557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f7f5780611f698161312a565b9150611f789050600a83613004565b9150611f59565b60008167ffffffffffffffff811115611f9a57611f9a612ccc565b6040519080825280601f01601f191660200182016040528015611fc4576020820181803683370190505b5090505b841561204757611fd960018361305e565b9150611fe6600a86613143565b611ff1906030613018565b60f81b8183815181106120065761200661302b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612040600a86613004565b9450611fc8565b949350505050565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610536575061053682612560565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120c282610f90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061210783610f90565b9050806001600160a01b0316846001600160a01b0316148061214e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806120475750836001600160a01b0316612167846105ce565b6001600160a01b031614949350505050565b826001600160a01b031661218c82610f90565b6001600160a01b0316146122085760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106ad565b6001600160a01b0382166122835760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106ad565b61228e838383612351565b61229960008261208d565b6001600160a01b03831660009081526003602052604081208054600192906122c290849061305e565b90915550506001600160a01b03821660009081526003602052604081208054600192906122f0908490613018565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0383166123ac576123a781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123cf565b816001600160a01b0316836001600160a01b0316146123cf576123cf83826125fb565b6001600160a01b0382166123e6576106c081612698565b826001600160a01b0316826001600160a01b0316146106c0576106c08282612747565b816001600160a01b0316836001600160a01b03160361246a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ad565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124e2848484612179565b6124ee8484848461278b565b6107ca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106ad565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125c357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061053657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610536565b6000600161260884611087565b612612919061305e565b600083815260076020526040902054909150808214612665576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126aa9060019061305e565b600083815260096020526040812054600880549394509092849081106126d2576126d261302b565b9060005260206000200154905080600883815481106126f3576126f361302b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061272b5761272b613157565b6001900381819060005260206000200160009055905550505050565b600061275283611087565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b0384163b156128d757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127cf90339089908890889060040161316d565b6020604051808303816000875af192505050801561280a575060408051601f3d908101601f19168201909252612807918101906131a9565b60015b6128bd573d808015612838576040519150601f19603f3d011682016040523d82523d6000602084013e61283d565b606091505b5080516000036128b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106ad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612047565b506001949350505050565b6001600160e01b03198116811461165a57600080fd5b60006020828403121561290a57600080fd5b8135612915816128e2565b9392505050565b60005b8381101561293757818101518382015260200161291f565b50506000910152565b6000815180845261295881602086016020860161291c565b601f01601f19169290920160200192915050565b6020815260006129156020830184612940565b60006020828403121561299157600080fd5b5035919050565b6001600160a01b038116811461165a57600080fd5b600080604083850312156129c057600080fd5b82356129cb81612998565b946020939093013593505050565b60008083601f8401126129eb57600080fd5b50813567ffffffffffffffff811115612a0357600080fd5b60208301915083602082850101111561088657600080fd5b60008060208385031215612a2e57600080fd5b823567ffffffffffffffff811115612a4557600080fd5b612a51858286016129d9565b90969095509350505050565b801515811461165a57600080fd5b600060208284031215612a7d57600080fd5b813561291581612a5d565b600080600060608486031215612a9d57600080fd5b8335612aa881612998565b92506020840135612ab881612998565b929592945050506040919091013590565b60008060408385031215612adc57600080fd5b50508035926020909101359150565b60008083601f840112612afd57600080fd5b50813567ffffffffffffffff811115612b1557600080fd5b6020830191508360208260051b850101111561088657600080fd5b60008060208385031215612b4357600080fd5b823567ffffffffffffffff811115612b5a57600080fd5b612a5185828601612aeb565b60008060008060408587031215612b7c57600080fd5b843567ffffffffffffffff80821115612b9457600080fd5b612ba088838901612aeb565b90965094506020870135915080821115612bb957600080fd5b50612bc687828801612aeb565b95989497509550505050565b600060208284031215612be457600080fd5b813561291581612998565b6020808252825182820181905260009190848201906040850190845b81811015612c2757835183529284019291840191600101612c0b565b50909695505050505050565b60008060008060408587031215612c4957600080fd5b843567ffffffffffffffff80821115612c6157600080fd5b612c6d888389016129d9565b90965094506020870135915080821115612c8657600080fd5b50612bc6878288016129d9565b60008060408385031215612ca657600080fd5b8235612cb181612998565b91506020830135612cc181612a5d565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612cf857600080fd5b8435612d0381612998565b93506020850135612d1381612998565b925060408501359150606085013567ffffffffffffffff80821115612d3757600080fd5b818701915087601f830112612d4b57600080fd5b813581811115612d5d57612d5d612ccc565b604051601f8201601f19908116603f01168101908382118183101715612d8557612d85612ccc565b816040528281528a6020848701011115612d9e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612dd557600080fd5b8235612de081612998565b915060208301356bffffffffffffffffffffffff81168114612cc157600080fd5b60008060408385031215612e1457600080fd5b8235612e1f81612998565b91506020830135612cc181612998565b600080600060608486031215612e4457600080fd5b8335612e4f81612998565b95602085013595506040909401359392505050565b600181811c90821680612e7857607f821691505b602082108103612e9857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612eb057600080fd5b815161291581612a5d565b601f8211156106c057600081815260208120601f850160051c81016020861015612ee25750805b601f850160051c820191505b81811015610cc457828155600101612eee565b67ffffffffffffffff831115612f1957612f19612ccc565b612f2d83612f278354612e64565b83612ebb565b6000601f841160018114612f615760008515612f495750838201355b600019600387901b1c1916600186901b178355610f89565b600083815260209020601f19861690835b82811015612f925786850135825560209485019460019092019101612f72565b5086821015612faf5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761053657610536612fc1565b634e487b7160e01b600052601260045260246000fd5b60008261301357613013612fee565b500490565b8082018082111561053657610536612fc1565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561305357600080fd5b815161291581612998565b8181038181111561053657610536612fc1565b6000845160206130848285838a0161291c565b8551918401916130978184848a0161291c565b85549201916000906130a881612e64565b600182811680156130c057600181146130d557613101565b60ff1984168752821515830287019450613101565b896000528560002060005b848110156130f9578154898201529083019087016130e0565b505082870194505b50929a9950505050505050505050565b60006020828403121561312357600080fd5b5051919050565b60006001820161313c5761313c612fc1565b5060010190565b60008261315257613152612fee565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261319f6080830184612940565b9695505050505050565b6000602082840312156131bb57600080fd5b8151612915816128e256fea2646970667358221220b3842e0e08f07d31470051f27fcafada0a94e380a00bfad12f57c66cac3a09d264736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000455c732fee7b5c3b09531439b598ead4817d5274000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000005ed80000000000000000000000000000000000000000000000000000000000000013616469646173205669727475616c20476561720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034156470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6170692e6164696461732e6c616e642f6170692f72657665616c2f6765742d6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102415760003560e01c80636352211e11610145578063a22cb465116100bd578063d5abeb011161008c578063e985e9c511610071578063e985e9c5146104c9578063f2fde38b14610505578063fe8c45e81461051857600080fd5b8063d5abeb01146104ae578063dc8e92ea146104b657600080fd5b8063a22cb46514610462578063b88d4fde14610475578063c21b471b14610488578063c87b56dd1461049b57600080fd5b80638836c3c01161011457806395d89b41116100f957806395d89b411461043f5780639abc832014610447578063a0bcfc7f1461044f57600080fd5b80638836c3c01461041b5780638da5cb5b1461042e57600080fd5b80636352211e146103da5780636d44a3b2146103ed57806370a0823114610400578063715018a61461041357600080fd5b80632a55205a116101d857806342842e0e116101a75780634f6ccce71161018c5780634f6ccce7146103ac5780635503a0e8146103bf5780635a446215146103c757600080fd5b806342842e0e14610379578063438b63001461038c57600080fd5b80632a55205a1461030e5780632f745c59146103405780633386cc4e146103535780634029a3ce1461036657600080fd5b806316ba10e01161021457806316ba10e0146102c357806318160ddd146102d65780631f85e3ca146102e857806323b872dd146102fb57600080fd5b806301ffc9a71461024657806306fdde031461026e578063081812fc14610283578063095ea7b3146102ae575b600080fd5b6102596102543660046128f8565b61052b565b60405190151581526020015b60405180910390f35b61027661053c565b604051610265919061296c565b61029661029136600461297f565b6105ce565b6040516001600160a01b039091168152602001610265565b6102c16102bc3660046129ad565b6105f5565b005b6102c16102d1366004612a1b565b6106c5565b6008545b604051908152602001610265565b6102c16102f6366004612a6b565b6106da565b6102c1610309366004612a88565b6106f5565b61032161031c366004612ac9565b6107d0565b604080516001600160a01b039093168352602083019190915201610265565b6102da61034e3660046129ad565b61088d565b6102c1610361366004612b30565b610935565b6102c1610374366004612b66565b610bb4565b6102c1610387366004612a88565b610ccc565b61039f61039a366004612bd2565b610d9c565b6040516102659190612bef565b6102da6103ba36600461297f565b610e34565b610276610ed8565b6102c16103d5366004612c33565b610f66565b6102966103e836600461297f565b610f90565b6102c16103fb366004612c93565b610ff5565b6102da61040e366004612bd2565b611087565b6102c1611121565b6102c1610429366004612b30565b611135565b600c546001600160a01b0316610296565b610276611274565b610276611283565b6102c161045d366004612a1b565b611290565b6102c1610470366004612c93565b6112a5565b6102c1610483366004612ce2565b61136b565b6102c1610496366004612dc2565b611442565b6102766104a936600461297f565b611458565b6012546102da565b6102c16104c4366004612b30565b611526565b6102596104d7366004612e01565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c1610513366004612bd2565b6115cd565b61039f610526366004612e2f565b61165d565b60006105368261182b565b92915050565b6060600f805461054b90612e64565b80601f016020809104026020016040519081016040528092919081815260200182805461057790612e64565b80156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b5050505050905090565b60006105d982611869565b506000908152600460205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b156106b657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612e9e565b6106b657604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106c083836118cd565b505050565b6106cd6119f9565b600e6106c0828483612f01565b6106e26119f9565b6011805460ff1916911515919091179055565b826daaeb6d7670e522a718067333cd4e3b156107bf57336001600160a01b0382160361072b57610726848484611a53565b6107ca565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af115801561077c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a09190612e9e565b6107bf57604051633b79c77360e21b81523360048201526024016106ad565b6107ca848484611a53565b50505050565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161084f575060408051808201909152600a546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610873906bffffffffffffffffffffffff1687612fd7565b61087d9190613004565b91519350909150505b9250929050565b600061089883611087565b821061090c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016106ad565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b60115460ff16151560011461098c5760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206e6f7420656e61626c65642079657421000000000000000060448201526064016106ad565b60008161099860085490565b6109a29190613018565b90506012548111156109f65760405162461bcd60e51b815260206004820152601660248201527f52656163686564206d696e74696e67206c696d69742e0000000000000000000060448201526064016106ad565b60005b828110156107ca576013546001600160a01b0316636352211e858584818110610a2457610a2461302b565b905060200201356040518263ffffffff1660e01b8152600401610a4991815260200190565b602060405180830381865afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a9190613041565b6001600160a01b0316336001600160a01b031614610b105760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e20616e64206d6960448201527f6e742e000000000000000000000000000000000000000000000000000000000060648201526084016106ad565b6013546001600160a01b03166342966c68858584818110610b3357610b3361302b565b905060200201356040518263ffffffff1660e01b8152600401610b5891815260200190565b600060405180830381600087803b158015610b7257600080fd5b505af1158015610b86573d6000803e3d6000fd5b50505050610bac33858584818110610ba057610ba061302b565b90506020020135611ada565b6001016109f9565b610bbc6119f9565b828114610c0b5760405162461bcd60e51b815260206004820152601360248201527f4d69736d617463686564206c656e677468732e0000000000000000000000000060448201526064016106ad565b600081610c1760085490565b610c219190613018565b9050601254811115610c755760405162461bcd60e51b815260206004820152601660248201527f52656163686564206d696e74696e67206c696d69742e0000000000000000000060448201526064016106ad565b60005b84811015610cc457610cbc868683818110610c9557610c9561302b565b9050602002016020810190610caa9190612bd2565b858584818110610ba057610ba061302b565b600101610c78565b505050505050565b826daaeb6d7670e522a718067333cd4e3b15610d9157336001600160a01b03821603610cfd57610726848484611c28565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015610d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d729190612e9e565b610d9157604051633b79c77360e21b81523360048201526024016106ad565b6107ca848484611c28565b60606000610da983611087565b905060008167ffffffffffffffff811115610dc657610dc6612ccc565b604051908082528060200260200182016040528015610def578160200160208202803683370190505b50905060005b82811015610e2c57610e07858261088d565b828281518110610e1957610e1961302b565b6020908102919091010152600101610df5565b509392505050565b6000610e3f60085490565b8210610eb35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016106ad565b60088281548110610ec657610ec661302b565b90600052602060002001549050919050565b600e8054610ee590612e64565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1190612e64565b8015610f5e5780601f10610f3357610100808354040283529160200191610f5e565b820191906000526020600020905b815481529060010190602001808311610f4157829003601f168201915b505050505081565b610f6e6119f9565b600f610f7b848683612f01565b506010610f89828483612f01565b5050505050565b6000818152600260205260408120546001600160a01b0316806105365760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106ad565b610ffd6119f9565b6040517fa2f367ab0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038316602482015281151560448201526daaeb6d7670e522a718067333cd4e9063a2f367ab90606401600060405180830381600087803b15801561107357600080fd5b505af1158015610cc4573d6000803e3d6000fd5b60006001600160a01b0382166111055760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016106ad565b506001600160a01b031660009081526003602052604090205490565b6111296119f9565b6111336000611c43565b565b80600181116111ab5760405162461bcd60e51b8152602060048201526024808201527f4d6f7265207468616e203120746f6b656e206d757374206265207375626d697460448201527f7465642e0000000000000000000000000000000000000000000000000000000060648201526084016106ad565b60015b81811015611260576111d78484838181106111cb576111cb61302b565b90506020020135610f90565b6001600160a01b0316336001600160a01b0316146112375760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e2e00000000000060448201526064016106ad565b61125884848381811061124c5761124c61302b565b90506020020135611c95565b6001016111ae565b506106c061126f60018361305e565b611d3c565b60606010805461054b90612e64565b600d8054610ee590612e64565b6112986119f9565b600d6106c0828483612f01565b816daaeb6d7670e522a718067333cd4e3b1561136157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af1158015611315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113399190612e9e565b61136157604051633b79c77360e21b81526001600160a01b03821660048201526024016106ad565b6106c08383611d56565b836daaeb6d7670e522a718067333cd4e3b1561143657336001600160a01b038216036113a25761139d85858585611d61565b610f89565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c6171134906044016020604051808303816000875af11580156113f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114179190612e9e565b61143657604051633b79c77360e21b81523360048201526024016106ad565b610f8985858585611d61565b61144a6119f9565b6114548282611de9565b5050565b6000818152600260205260409020546060906001600160a01b03166114e55760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e2e0000000000000000000000000000000060648201526084016106ad565b60006114ef611f03565b9050806114fb84611f12565b600e60405160200161150f93929190613071565b604051602081830303815290604052915050919050565b60005b818110156115c3576115468383838181106111cb576111cb61302b565b6001600160a01b0316336001600160a01b0316146115a65760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920746f6b656e206f776e65722063616e206275726e2e00000000000060448201526064016106ad565b6115bb83838381811061124c5761124c61302b565b600101611529565b5061145481611d3c565b6115d56119f9565b6001600160a01b0381166116515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106ad565b61165a81611c43565b50565b6013546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156116c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e99190613111565b905060008167ffffffffffffffff81111561170657611706612ccc565b60405190808252806020026020018201604052801561172f578160200160208202803683370190505b50905084600085841561181e575b848210801561174b57508083105b1561181e576013546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0390911690636352211e90602401602060405180830381865afa9250505080156117ce575060408051601f3d908101601f191682019092526117cb91810190613041565b60015b1561181357896001600160a01b0316816001600160a01b03160361181157838584815181106117ff576117ff61302b565b60209081029190910101526001909201915b505b60019092019161173d565b5091979650505050505050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061053657506105368261204f565b6000818152600260205260409020546001600160a01b031661165a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016106ad565b60006118d882610f90565b9050806001600160a01b0316836001600160a01b0316036119615760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016106ad565b336001600160a01b038216148061197d575061197d81336104d7565b6119ef5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106ad565b6106c0838361208d565b600c546001600160a01b031633146111335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ad565b611a5d33826120fb565b611acf5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016106ad565b6106c0838383612179565b6001600160a01b038216611b305760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ad565b6000818152600260205260409020546001600160a01b031615611b955760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ad565b611ba160008383612351565b6001600160a01b0382166000908152600360205260408120805460019290611bca908490613018565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6106c08383836040518060200160405280600081525061136b565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ca082610f90565b9050611cae81600084612351565b611cb960008361208d565b6001600160a01b0381166000908152600360205260408120805460019290611ce290849061305e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8060126000828254611d4e919061305e565b909155505050565b611454338383612409565b611d6b33836120fb565b611ddd5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016106ad565b6107ca848484846124d7565b6127106bffffffffffffffffffffffff82161115611e6f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016106ad565b6001600160a01b038216611ec55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016106ad565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600a55565b6060600d805461054b90612e64565b606081600003611f5557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f7f5780611f698161312a565b9150611f789050600a83613004565b9150611f59565b60008167ffffffffffffffff811115611f9a57611f9a612ccc565b6040519080825280601f01601f191660200182016040528015611fc4576020820181803683370190505b5090505b841561204757611fd960018361305e565b9150611fe6600a86613143565b611ff1906030613018565b60f81b8183815181106120065761200661302b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612040600a86613004565b9450611fc8565b949350505050565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610536575061053682612560565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120c282610f90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061210783610f90565b9050806001600160a01b0316846001600160a01b0316148061214e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806120475750836001600160a01b0316612167846105ce565b6001600160a01b031614949350505050565b826001600160a01b031661218c82610f90565b6001600160a01b0316146122085760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016106ad565b6001600160a01b0382166122835760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106ad565b61228e838383612351565b61229960008261208d565b6001600160a01b03831660009081526003602052604081208054600192906122c290849061305e565b90915550506001600160a01b03821660009081526003602052604081208054600192906122f0908490613018565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0383166123ac576123a781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6123cf565b816001600160a01b0316836001600160a01b0316146123cf576123cf83826125fb565b6001600160a01b0382166123e6576106c081612698565b826001600160a01b0316826001600160a01b0316146106c0576106c08282612747565b816001600160a01b0316836001600160a01b03160361246a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ad565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6124e2848484612179565b6124ee8484848461278b565b6107ca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106ad565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125c357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061053657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610536565b6000600161260884611087565b612612919061305e565b600083815260076020526040902054909150808214612665576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126aa9060019061305e565b600083815260096020526040812054600880549394509092849081106126d2576126d261302b565b9060005260206000200154905080600883815481106126f3576126f361302b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061272b5761272b613157565b6001900381819060005260206000200160009055905550505050565b600061275283611087565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006001600160a01b0384163b156128d757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127cf90339089908890889060040161316d565b6020604051808303816000875af192505050801561280a575060408051601f3d908101601f19168201909252612807918101906131a9565b60015b6128bd573d808015612838576040519150601f19603f3d011682016040523d82523d6000602084013e61283d565b606091505b5080516000036128b55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016106ad565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612047565b506001949350505050565b6001600160e01b03198116811461165a57600080fd5b60006020828403121561290a57600080fd5b8135612915816128e2565b9392505050565b60005b8381101561293757818101518382015260200161291f565b50506000910152565b6000815180845261295881602086016020860161291c565b601f01601f19169290920160200192915050565b6020815260006129156020830184612940565b60006020828403121561299157600080fd5b5035919050565b6001600160a01b038116811461165a57600080fd5b600080604083850312156129c057600080fd5b82356129cb81612998565b946020939093013593505050565b60008083601f8401126129eb57600080fd5b50813567ffffffffffffffff811115612a0357600080fd5b60208301915083602082850101111561088657600080fd5b60008060208385031215612a2e57600080fd5b823567ffffffffffffffff811115612a4557600080fd5b612a51858286016129d9565b90969095509350505050565b801515811461165a57600080fd5b600060208284031215612a7d57600080fd5b813561291581612a5d565b600080600060608486031215612a9d57600080fd5b8335612aa881612998565b92506020840135612ab881612998565b929592945050506040919091013590565b60008060408385031215612adc57600080fd5b50508035926020909101359150565b60008083601f840112612afd57600080fd5b50813567ffffffffffffffff811115612b1557600080fd5b6020830191508360208260051b850101111561088657600080fd5b60008060208385031215612b4357600080fd5b823567ffffffffffffffff811115612b5a57600080fd5b612a5185828601612aeb565b60008060008060408587031215612b7c57600080fd5b843567ffffffffffffffff80821115612b9457600080fd5b612ba088838901612aeb565b90965094506020870135915080821115612bb957600080fd5b50612bc687828801612aeb565b95989497509550505050565b600060208284031215612be457600080fd5b813561291581612998565b6020808252825182820181905260009190848201906040850190845b81811015612c2757835183529284019291840191600101612c0b565b50909695505050505050565b60008060008060408587031215612c4957600080fd5b843567ffffffffffffffff80821115612c6157600080fd5b612c6d888389016129d9565b90965094506020870135915080821115612c8657600080fd5b50612bc6878288016129d9565b60008060408385031215612ca657600080fd5b8235612cb181612998565b91506020830135612cc181612a5d565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612cf857600080fd5b8435612d0381612998565b93506020850135612d1381612998565b925060408501359150606085013567ffffffffffffffff80821115612d3757600080fd5b818701915087601f830112612d4b57600080fd5b813581811115612d5d57612d5d612ccc565b604051601f8201601f19908116603f01168101908382118183101715612d8557612d85612ccc565b816040528281528a6020848701011115612d9e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612dd557600080fd5b8235612de081612998565b915060208301356bffffffffffffffffffffffff81168114612cc157600080fd5b60008060408385031215612e1457600080fd5b8235612e1f81612998565b91506020830135612cc181612998565b600080600060608486031215612e4457600080fd5b8335612e4f81612998565b95602085013595506040909401359392505050565b600181811c90821680612e7857607f821691505b602082108103612e9857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612eb057600080fd5b815161291581612a5d565b601f8211156106c057600081815260208120601f850160051c81016020861015612ee25750805b601f850160051c820191505b81811015610cc457828155600101612eee565b67ffffffffffffffff831115612f1957612f19612ccc565b612f2d83612f278354612e64565b83612ebb565b6000601f841160018114612f615760008515612f495750838201355b600019600387901b1c1916600186901b178355610f89565b600083815260209020601f19861690835b82811015612f925786850135825560209485019460019092019101612f72565b5086821015612faf5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761053657610536612fc1565b634e487b7160e01b600052601260045260246000fd5b60008261301357613013612fee565b500490565b8082018082111561053657610536612fc1565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561305357600080fd5b815161291581612998565b8181038181111561053657610536612fc1565b6000845160206130848285838a0161291c565b8551918401916130978184848a0161291c565b85549201916000906130a881612e64565b600182811680156130c057600181146130d557613101565b60ff1984168752821515830287019450613101565b896000528560002060005b848110156130f9578154898201529083019087016130e0565b505082870194505b50929a9950505050505050505050565b60006020828403121561312357600080fd5b5051919050565b60006001820161313c5761313c612fc1565b5060010190565b60008261315257613152612fee565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261319f6080830184612940565b9695505050505050565b6000602082840312156131bb57600080fd5b8151612915816128e256fea2646970667358221220b3842e0e08f07d31470051f27fcafada0a94e380a00bfad12f57c66cac3a09d264736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000455c732fee7b5c3b09531439b598ead4817d5274000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000005ed80000000000000000000000000000000000000000000000000000000000000013616469646173205669727475616c20476561720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034156470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6170692e6164696461732e6c616e642f6170692f72657665616c2f6765742d6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __name (string): adidas Virtual Gear
Arg [1] : __symbol (string): AVG
Arg [2] : _address (address): 0x455c732fee7b5c3B09531439B598eaD4817d5274
Arg [3] : _baseUri (string): https://api.adidas.land/api/reveal/get-metadata/
Arg [4] : _uriSuffix (string): .json
Arg [5] : __maxSupply (uint256): 24280

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000455c732fee7b5c3b09531439b598ead4817d5274
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000005ed8
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [7] : 616469646173205669727475616c204765617200000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 4156470000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [11] : 68747470733a2f2f6170692e6164696461732e6c616e642f6170692f72657665
Arg [12] : 616c2f6765742d6d657461646174612f00000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [14] : 2e6a736f6e000000000000000000000000000000000000000000000000000000


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.