Token Slabs-Collection

Overview ERC-721

Total Supply:
269 LNQ-ASSET

Holders:
24 addresses

Transfers:
-

Profile Summary

 
Contract:
0xde3e274945027f4a36365a7d736fa1f191fe0af80xdE3e274945027f4a36365a7D736fa1F191fE0AF8

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ERC721SlabsCollection

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : ERC721Collection.sol
/***
 *      ______   __            __                 
 *     /      \ |  \          |  \                
 *    |  $$$$$$\| $$  ______  | $$____    _______ 
 *    | $$___\$$| $$ |      \ | $$    \  /       \
 *     \$$    \ | $$  \$$$$$$\| $$$$$$$\|  $$$$$$$
 *     _\$$$$$$\| $$ /      $$| $$  | $$ \$$    \ 
 *    |  \__| $$| $$|  $$$$$$$| $$__/ $$ _\$$$$$$\
 *     \$$    $$| $$ \$$    $$| $$    $$|       $$
 *      \$$$$$$  \$$  \$$$$$$$ \$$$$$$$  \$$$$$$$ 
 *                                                
 *                                                
 *                                                
 */
// SPDX-License-Identifier: None
pragma solidity ^0.8.1;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/metatx/ERC2771Context.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "../utils/Whitelist.sol";
import "../utils/Authorizable.sol";
import "../MarketPlace/interfaces/IRoyaltyFeeRegistry.sol";

/**
 * @title ERC721Collection
 * @notice ERC721Collection NFT collection contract.
 */
contract ERC721SlabsCollection is
    ERC2771Context,
    ERC721URIStorage,
    ERC2981,
    Authorizable,
    Whitelist
{
    using Address for address;
    using Strings for uint256;
    using EnumerableSet for EnumerableSet.UintSet;

    uint256 public totalSupply;

    uint256 public maxRoyalty;
    /**
     * @dev Mapping from holder address to their (enumerable) set of owned tokens.
     */
    mapping(address => EnumerableSet.UintSet) private _holderTokens;
    /**
     * @dev Mapping from token to initial owner.
     */
    mapping(uint256 => address) public initialOwner;

    uint256 public counter = 0;

    address public royaltyRegistry;

    //events
    event RoyalityLimitChanged(
        address _owner,
        uint256 _oldLimit,
        uint256 _newLimit
    );
    event SetRoyaltyRegistry(address indexed _address);

    /**
     * @notice Constructor
     * @param _name name of the collection
     * @param _symbol symbol of the collection
     * @param trustedForwarder trusted forwarder address
     */
    constructor(
        string memory _name,
        string memory _symbol,
        address trustedForwarder,
        address _royaltyRegistry
    ) ERC721(_name, _symbol) ERC2771Context(trustedForwarder) {
        require(
            trustedForwarder != address(0),
            "ERC721-Collection: address must be valid"
        );
        maxRoyalty = 2000;
        royaltyRegistry = _royaltyRegistry;
    }

    /**
     * @dev modifer to check only initial owner can set royality
     * @param _tokenId token id of the collection
     */
    modifier onlyInitialOwner(uint256 _tokenId) {
        require(
            initialOwner[_tokenId] == _msgSender(),
            "ERC721-Collection: only initial owner can set the royality"
        );
        _;
    }

    /**
     * @dev modifer to check only valid address can mint token
     */
    modifier onlyValidOwner() {
        require(
            isAuthorized(msg.sender) || owner() == _msgSender(),
            "caller is not the SuperAdmin or Admin"
        );
        _;
    }

    /**
     * @dev Sets the royalty info for any token.
     * @param _tokenId token id of the collection NFT
     * @param _receiver royalty receiver address
     * @param _feeNumerator percentage of royalty fee
     */
    function setRoyaltyforToken(
        uint256 _tokenId,
        address _receiver,
        uint96 _feeNumerator
    ) external onlyInitialOwner(_tokenId) {
        require(
            _feeNumerator <= maxRoyalty,
            "royalty for token must be less than maxRoyalty"
        );
        _setTokenRoyalty(_tokenId, _receiver, _feeNumerator);
    }

    /**
     * @dev Deletes the royalty info for any token.
     * @param _tokenId token id of the collection
     */
    function resetTokenRoyalty(uint256 _tokenId)
        external
        onlyInitialOwner(_tokenId)
    {
        _resetTokenRoyalty(_tokenId);
    }

    /**
     * @dev change the royality limit.
     * @param _limit limit of the royalty percentage
     */
    function changeLimitOfRoyality(uint256 _limit) external onlyOwner {
        require(
            _limit <= _feeDenominator(),
            "ERC721-Collection: royalty must be less than equal to 100%"
        );
        uint256 _oldLimit = maxRoyalty;
        require(
            _limit != _oldLimit,
            "ERC721-Collection: limit must be different"
        );
        maxRoyalty = _limit;
        emit RoyalityLimitChanged(_msgSender(), _oldLimit, _limit);
    }

    /**
     * @dev change the royalty registory address.
     * @param _address royalty registry address
     */
    function setRoyaltyRegistry(address _address) external onlyOwner {
        require(_address != address(0), "invalid address");
        require(_address != royaltyRegistry, "same address already");
        royaltyRegistry = _address;
        emit SetRoyaltyRegistry(_address);
    }

    /**
     * @dev Mints batch token.
     * @param _to The address at token mint
     * @param _amount amount of token mint
     * @param _tokenURIs token meta data URL
     * @param _feeNumerator _feeNumerator percentage of royalty fee
     * @param _receivers addresses of factional royalty receivers
     * @param _fees percentage of fees for receivers
     */
    function batchMint(
        address _to,
        uint256 _amount,
        string[] memory _tokenURIs,
        uint96 _feeNumerator,
        address[] memory _receivers,
        uint256[] memory _fees
    ) external onlyValidOwner {
        require(_amount <= 10, "NFT amount more than 10");
        require(_amount == _tokenURIs.length, "invalid inputs");
        for (uint8 i = 0; i < _amount; i++) {
            mint(_to, _tokenURIs[i], _feeNumerator, _receivers, _fees);
        }
    }

    /**
     * @dev Mints single token.
     * @param _to The address at token mint
     * @param _tokenURI token meta data URL
     * @param _feeNumerator _feeNumerator percentage of royalty fee
     * @param _receivers addresses of factional royalty receivers
     * @param _fees percentage of fees for receivers
     */
    function mint(
        address _to,
        string memory _tokenURI,
        uint96 _feeNumerator,
        address[] memory _receivers,
        uint256[] memory _fees
    ) public onlyValidOwner returns (uint256 tokenId) {
        require(_to != address(0), "ERC721-Collection: _to address not valid");
        require(
            bytes(_tokenURI).length > 0,
            "ERC721-Collection: Token URI is not valid"
        );
        counter++;
        tokenId = counter;
        totalSupply = totalSupply + 1;
        bool added = _holderTokens[_to].add(tokenId);
        require(added, "tokenId is not added");
        initialOwner[tokenId] = _to;
        if (_feeNumerator != 0) {
            _setTokenRoyalty(tokenId, _to, _feeNumerator);
        }
        if (_receivers.length > 0) {
            IRoyaltyFeeRegistry(royaltyRegistry).updateRoyaltyInfoForNFT(
                address(this),
                tokenId,
                _receivers,
                _fees
            );
        }
        _safeMint(_to, tokenId);
        _setTokenURI(tokenId, _tokenURI);
    }

    /**
     * @dev Burns token of entered token id.
     * @param _tokenId token id of token
     */
    function burn(uint256 _tokenId) public {
        require(
            _isApprovedOrOwner(_msgSender(), _tokenId),
            "ERC721-Collection: burn caller is not owner nor approved"
        );
        address tokenOwner = ownerOf(_tokenId);
        bool removed = _holderTokens[tokenOwner].remove(_tokenId);
        require(removed, "ERC721-Collection: token not removed");
        delete initialOwner[_tokenId];
        _burn(_tokenId);
    }

    /**
     * @dev disable approve.
     */
    function approve(address to, uint256 tokenId) public override {
        if (to.isContract()) {
            require(
                isWhitelisted(to) || isPublicSale,
                "ERC721-Collection: Only whitelist is allowed"
            );
        }
        super.approve(to, tokenId);
    }

    /**
     * @dev disable owner to set approve for those operator not in whitelist.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
    {
        if (operator.isContract()) {
            require(
                isWhitelisted(operator) || isPublicSale,
                "ERC721-Collection: Only whitelist is allowed"
            );
        }
        super.setApprovalForAll(operator, approved);
    }

    /**
     * @dev Transfers token from 'from' address to 'to' address.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721-Collection: transfer caller is not owner nor approved"
        );
        bool removed = _holderTokens[from].remove(tokenId);
        bool added = _holderTokens[to].add(tokenId);
        require(
            removed && added,
            "ERC721-Collection: transfer caller is not valid"
        );
        _transfer(from, to, tokenId);
    }

    /**
     * @dev Safe transfers token from 'from' address to 'to' address.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safe transfers token from 'from' address to 'to' address.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721-Collection: transfer caller is not owner nor approved"
        );
        bool removed = _holderTokens[from].remove(tokenId);
        bool added = _holderTokens[to].add(tokenId);
        require(
            removed && added,
            "ERC721-Collection: transfer caller is not valid"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Returns an array of tokens owned by the argument address.
     * @param _address The address of the user
     */
    function getTokens(address _address)
        external
        view
        returns (uint256[] memory)
    {
        return _holderTokens[_address].values();
    }

    /**
     * @dev Returns the token id from the array of tokens owned by the argument address present at the argument index.
     * @param _address address of the user
     * @param _index _index of the user nft array
     */
    function tokenOfOwnerByIndex(address _address, uint256 _index)
        external
        view
        returns (uint256)
    {
        return _holderTokens[_address].at(_index);
    }

    function _msgSender()
        internal
        view
        override(Context, ERC2771Context)
        returns (address sender)
    {
        sender = ERC2771Context._msgSender();
    }

    function _msgData()
        internal
        view
        override(Context, ERC2771Context)
        returns (bytes memory)
    {
        return ERC2771Context._msgData();
    }

    /**
     * @dev returns true if the contract supports the interface with entered bytecode.
     * @dev 0x2a55205a to test eip 2981
     * @param interfaceId interface id of the contract
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 19 : Whitelist.sol
// SPDX-License-Identifier: None
pragma solidity ^0.8.1;

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

contract Whitelist is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private whitelistedMap;

    bool public isPublicSale;

    event Whitelisted(address indexed account, bool isWhitelisted);
    event ChangeSaleType(bool _isPublicSale);

    /**
     * @dev Whitelist MarketPlace address and any contract address to approve.
     * @param _address address want to whitelist
     */
    function addAddress(address _address) external onlyOwner {
        require(
            !whitelistedMap.contains(_address),
            "WhiteList: address already whitelisted"
        );
        whitelistedMap.add(_address);
        emit Whitelisted(_address, true);
    }

    /**
     * @dev remove from Whitelist.
     */
    function removeAddress(address _address) external onlyOwner {
        require(
            whitelistedMap.contains(_address),
            "WhiteList: address already removed"
        );
        whitelistedMap.remove(_address);
        emit Whitelisted(_address, false);
    }

    /**
     * @dev chnage sale type is public or not.
     */
    function changeSaleType(bool _isPublicSale) external onlyOwner {
        require(_isPublicSale != isPublicSale, " already set");
        isPublicSale = _isPublicSale;
        emit ChangeSaleType(_isPublicSale);
    }

    /**
     * @notice Returns if an _address is in the whitelisted
     * @param _address address of the strategy
     */
    function isWhitelisted(address _address) public view returns (bool) {
        return whitelistedMap.contains(_address);
    }

    /**
     * @notice View number of whitelisted
     */
    function viewCountWhitelisted() external view returns (uint256) {
        return whitelistedMap.length();
    }

    /**
     * @notice See whitelisted in the system
     * @param cursor cursor (should start at 0 for first request)
     * @param size size of the response (e.g., 50)
     */
    function viewWhitelisted(uint256 cursor, uint256 size)
        external
        view
        returns (address[] memory, uint256)
    {
        uint256 length = size;

        if (length > whitelistedMap.length() - cursor) {
            length = whitelistedMap.length() - cursor;
        }

        address[] memory whitelisted = new address[](length);

        for (uint256 i = 0; i < length; i++) {
            whitelisted[i] = whitelistedMap.at(cursor + i);
        }

        return (whitelisted, cursor + length);
    }
}

File 3 of 19 : Authorizable.sol
// SPDX-License-Identifier: None
pragma solidity 0.8.11;

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

contract Authorizable is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private authorized;

    event AddAuthorized(address indexed _address);
    event RemoveAuthorized(address indexed _address);

    modifier onlyAuthorized() {
        require(
            isAuthorized(_msgSender()) || owner() == _msgSender(),
            "Authorizable: caller is not the SuperAdmin or Admin"
        );
        _;
    }

    function addAuthorized(address _toAdd) external onlyOwner {
        require(
            _toAdd != address(0),
            "Authorizable: _toAdd isn't vaild address"
        );
        require(
            !authorized.contains(_toAdd),
            "Authorizable: _toAdd is already added"
        );
        authorized.add(_toAdd);
        emit AddAuthorized(_toAdd);
    }

    function removeAuthorized(address _toRemove) external onlyOwner {
        require(
            _toRemove != address(0),
            "Authorizable: _toRemove isn't vaild address"
        );
        require(
            authorized.contains(_toRemove),
            "Authorizable: address already removed"
        );
        authorized.remove(_toRemove);
        emit RemoveAuthorized(_toRemove);
    }

    /**
     * @notice Returns if an _address is in the whitelisted
     * @param _address address of the strategy
     */
    function isAuthorized(address _address) public view returns (bool) {
        return authorized.contains(_address);
    }

    /**
     * @notice View number of authorized
     */
    function viewCountAuthorized() external view returns (uint256) {
        return authorized.length();
    }

    /**
     * @notice See authorized in the system
     * @param cursor cursor (should start at 0 for first request)
     * @param size size of the response (e.g., 50)
     */
    function viewAuthorized(uint256 cursor, uint256 size)
        external
        view
        returns (address[] memory, uint256)
    {
        uint256 length = size;

        if (length > authorized.length() - cursor) {
            length = authorized.length() - cursor;
        }

        address[] memory _authorized = new address[](length);

        for (uint256 i = 0; i < length; i++) {
            _authorized[i] = authorized.at(cursor + i);
        }

        return (_authorized, cursor + length);
    }
}

File 4 of 19 : IRoyaltyFeeRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRoyaltyFeeRegistry {
    function updateRoyaltyFeeLimitForERC721(uint256 _royaltyFeeLimit) external;
    function updateRoyaltyFeeLimitForERC1155(uint256 _royaltyFeeLimit) external;

    function updateRoyaltyReceiverLimit(uint256 newMaxNumberOfReceivers)
        external;

    function updateRoyaltyInfoForNFT(
        address collection,
        uint256 tokenId,
        address[] memory receivers,
        uint256[] memory fees
    ) external;

    function royaltyFeeInfoCollection(address collection)
        external
        view
        returns (address, uint256);

    function royaltyFeeInfoCollection(address collection, uint256 tokenId)
        external
        view
        returns (address[] memory, uint256[] memory);

    function removeRoyaltyInfoForNFT(address collection, uint256 tokenId)
        external;
}

File 5 of 19 : ERC2771Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (metatx/ERC2771Context.sol)

pragma solidity ^0.8.9;

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

/**
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771Context is Context {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address private immutable _trustedForwarder;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(address trustedForwarder) {
        _trustedForwarder = trustedForwarder;
    }

    function isTrustedForwarder(address forwarder) public view virtual returns (bool) {
        return forwarder == _trustedForwarder;
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            /// @solidity memory-safe-assembly
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

File 6 of 19 : 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 19 : 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;
    }
}

File 8 of 19 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 19 : 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 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : 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 18 of 19 : 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 19 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"trustedForwarder","type":"address"},{"internalType":"address","name":"_royaltyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"AddAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isPublicSale","type":"bool"}],"name":"ChangeSaleType","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":"_address","type":"address"}],"name":"RemoveAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_oldLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"RoyalityLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetRoyaltyRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"Whitelisted","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toAdd","type":"address"}],"name":"addAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string[]","name":"_tokenURIs","type":"string[]"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"changeLimitOfRoyality","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSale","type":"bool"}],"name":"changeSaleType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"initialOwner","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRoyalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toRemove","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"resetTokenRoyalty","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":[],"name":"royaltyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRoyaltyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyforToken","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":"address","name":"_address","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":"uint256","name":"cursor","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"viewAuthorized","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewCountAuthorized","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewCountWhitelisted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cursor","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"viewWhitelisted","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405260006013553480156200001657600080fd5b5060405162003b2138038062003b21833981016040819052620000399162000369565b6001600160a01b0382166080528351849084906200005f906000906020850190620001d9565b50805162000075906001906020840190620001d9565b505050620000926200008c6200012e60201b60201c565b6200014a565b6001600160a01b038216620000fe5760405162461bcd60e51b815260206004820152602860248201527f4552433732312d436f6c6c656374696f6e3a2061646472657373206d757374206044820152671899481d985b1a5960c21b606482015260840160405180910390fd5b6107d0601055601480546001600160a01b0319166001600160a01b03929092169190911790555062000435915050565b6000620001456200019c60201b62001b481760201c565b905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6080516000906001600160a01b0316331415620001c0575060131936013560601c90565b62000145620001d560201b62001b8d1760201c565b3390565b828054620001e790620003f8565b90600052602060002090601f0160209004810192826200020b576000855562000256565b82601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002a757600080fd5b81516001600160401b0380821115620002c457620002c46200027f565b604051601f8301601f19908116603f01168101908282118183101715620002ef57620002ef6200027f565b816040528381526020925086838588010111156200030c57600080fd5b600091505b8382101562000330578582018301518183018401529082019062000311565b83821115620003425760008385830101525b9695505050505050565b80516001600160a01b03811681146200036457600080fd5b919050565b600080600080608085870312156200038057600080fd5b84516001600160401b03808211156200039857600080fd5b620003a68883890162000295565b95506020870151915080821115620003bd57600080fd5b50620003cc8782880162000295565b935050620003dd604086016200034c565b9150620003ed606086016200034c565b905092959194509250565b600181811c908216806200040d57607f821691505b602082108114156200042f57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516136c9620004586000396000818161045e0152611b4c01526136c96000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063674a12c711610151578063a5a865dc116100c3578063dbbb47a011610087578063dbbb47a0146105c0578063e985e9c5146105d3578063ef9b75071461060f578063f2fde38b14610622578063fbe90b4d14610635578063fe9fbb801461063d57600080fd5b8063a5a865dc14610559578063b88d4fde14610566578063c87b56dd14610579578063cf1c316a1461058c578063d31883021461059f57600080fd5b806384a608e21161011557806384a608e2146104f45780638a616bc0146105075780638da5cb5b1461051a57806395d89b411461052b578063a11b071214610533578063a22cb4651461054657600080fd5b8063674a12c7146104aa57806370a08231146104b3578063715018a6146104c65780637374e8b9146104ce578063807e9bae146104e157600080fd5b8063315a403d116101ea578063450efe21116101ae578063450efe2114610408578063485d7d94146104285780634ba79dfe1461043b578063572b6c051461044e57806361bc221a1461048e5780636352211e1461049757600080fd5b8063315a403d146103a957806338eada1c146103bc5780633af32abf146103cf57806342842e0e146103e257806342966c68146103f557600080fd5b806312b73af41161023c57806312b73af41461030957806318160ddd1461031f578063207ce2fe1461032857806323b872dd146103515780632a55205a146103645780632f745c591461039657600080fd5b806301ffc9a71461027957806306fdde03146102a1578063081812fc146102b6578063095ea7b3146102e15780630fee7d2a146102f6575b600080fd5b61028c610287366004612bb9565b610650565b60405190151581526020015b60405180910390f35b6102a9610661565b6040516102989190612c2e565b6102c96102c4366004612c41565b6106f3565b6040516001600160a01b039091168152602001610298565b6102f46102ef366004612c76565b61071a565b005b6102f4610304366004612c41565b610773565b6103116108b3565b604051908152602001610298565b610311600f5481565b6102c9610336366004612c41565b6012602052600090815260409020546001600160a01b031681565b6102f461035f366004612ca0565b6108c4565b610377610372366004612cdc565b610973565b604080516001600160a01b039093168352602083019190915201610298565b6103116103a4366004612c76565b610a1f565b6102f46103b7366004612d0e565b610a48565b6102f46103ca366004612d29565b610adf565b61028c6103dd366004612d29565b610b9d565b6102f46103f0366004612ca0565b610baa565b6102f4610403366004612c41565b610bca565b61041b610416366004612d29565b610cf8565b6040516102989190612d7f565b6102f4610436366004612d29565b610d1c565b6102f4610449366004612d29565b610e36565b61028c61045c366004612d29565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811691161490565b61031160135481565b6102c96104a5366004612c41565b610ee8565b61031160105481565b6103116104c1366004612d29565b610f48565b6102f4610fce565b6102f46104dc366004612f59565b610fe2565b6102f46104ef36600461307c565b611120565b6102f4610502366004612d29565b6111e5565b6102f4610515366004612c41565b6112d4565b6009546001600160a01b03166102c9565b6102a9611328565b6014546102c9906001600160a01b031681565b6102f46105543660046130b8565b611337565b600e5461028c9060ff1681565b6102f46105743660046130eb565b611383565b6102a9610587366004612c41565b611434565b6102f461059a366004612d29565b611545565b6105b26105ad366004612cdc565b61165d565b6040516102989291906131a0565b6103116105ce3660046131c2565b611752565b61028c6105e136600461326c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6105b261061d366004612cdc565b6119da565b6102f4610630366004612d29565b611ab6565b610311611b2f565b61028c61064b366004612d29565b611b3b565b600061065b82611b91565b92915050565b60606000805461067090613296565b80601f016020809104026020016040519081016040528092919081815260200182805461069c90613296565b80156106e95780601f106106be576101008083540402835291602001916106e9565b820191906000526020600020905b8154815290600101906020018083116106cc57829003601f168201915b5050505050905090565b60006106fe82611bb6565b506000908152600460205260409020546001600160a01b031690565b6001600160a01b0382163b156107655761073382610b9d565b806107405750600e5460ff165b6107655760405162461bcd60e51b815260040161075c906132d1565b60405180910390fd5b61076f8282611c15565b5050565b61077b611d38565b6127108111156107f35760405162461bcd60e51b815260206004820152603a60248201527f4552433732312d436f6c6c656374696f6e3a20726f79616c7479206d7573742060448201527f6265206c657373207468616e20657175616c20746f2031303025000000000000606482015260840161075c565b601054818114156108595760405162461bcd60e51b815260206004820152602a60248201527f4552433732312d436f6c6c656374696f6e3a206c696d6974206d75737420626560448201526908191a5999995c995b9d60b21b606482015260840161075c565b60108290557f24e9ac82874a292ce9f8cd8bab098623c61cf4c32301b7a050722aa0dd765e85610887611db1565b604080516001600160a01b03909216825260208201849052810184905260600160405180910390a15050565b60006108bf600a611dbb565b905090565b6108d56108cf611db1565b82611dc5565b6108f15760405162461bcd60e51b815260040161075c9061331d565b6001600160a01b03831660009081526011602052604081206109139083611e43565b6001600160a01b0384166000908152601160205260408120919250906109399084611e4f565b90508180156109455750805b6109615760405162461bcd60e51b815260040161075c9061337a565b61096c858585611e5b565b5050505050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109e85750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a07906001600160601b0316876133df565b610a119190613414565b915196919550909350505050565b6001600160a01b0382166000908152601160205260408120610a419083611ff7565b9392505050565b610a50611d38565b600e5460ff1615158115151415610a985760405162461bcd60e51b815260206004820152600c60248201526b08185b1c9958591e481cd95d60a21b604482015260640161075c565b600e805460ff19168215159081179091556040519081527f91fc31429831c0c8ac26b9e7b1f6e2755d47bdfb3e8a18d8a7e37bca99b5a4849060200160405180910390a150565b610ae7611d38565b610af2600c82612003565b15610b4e5760405162461bcd60e51b815260206004820152602660248201527f57686974654c6973743a206164647265737320616c72656164792077686974656044820152651b1a5cdd195960d21b606482015260840161075c565b610b59600c82612025565b50604051600181526001600160a01b038216907fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440906020015b60405180910390a250565b600061065b600c83612003565b610bc583838360405180602001604052806000815250611383565b505050565b610bd56108cf611db1565b610c475760405162461bcd60e51b815260206004820152603860248201527f4552433732312d436f6c6c656374696f6e3a206275726e2063616c6c6572206960448201527f73206e6f74206f776e6572206e6f7220617070726f7665640000000000000000606482015260840161075c565b6000610c5282610ee8565b6001600160a01b038116600090815260116020526040812091925090610c789084611e43565b905080610cd35760405162461bcd60e51b8152602060048201526024808201527f4552433732312d436f6c6c656374696f6e3a20746f6b656e206e6f742072656d6044820152631bdd995960e21b606482015260840161075c565b600083815260126020526040902080546001600160a01b0319169055610bc58361203a565b6001600160a01b038116600090815260116020526040902060609061065b9061207a565b610d24611d38565b6001600160a01b038116610d8e5760405162461bcd60e51b815260206004820152602b60248201527f417574686f72697a61626c653a205f746f52656d6f76652069736e277420766160448201526a696c64206164647265737360a81b606482015260840161075c565b610d99600a82612003565b610df35760405162461bcd60e51b815260206004820152602560248201527f417574686f72697a61626c653a206164647265737320616c72656164792072656044820152641b5bdd995960da1b606482015260840161075c565b610dfe600a82612087565b506040516001600160a01b038216907f6cb2a178f9ae3629708944a9acf87ec4168299dbe69adce578a7186a14902adf90600090a250565b610e3e611d38565b610e49600c82612003565b610ea05760405162461bcd60e51b815260206004820152602260248201527f57686974654c6973743a206164647265737320616c72656164792072656d6f76604482015261195960f21b606482015260840161075c565b610eab600c82612087565b50604051600081526001600160a01b038216907fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f2644090602001610b92565b6000818152600260205260408120546001600160a01b03168061065b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075c565b60006001600160a01b038216610fb25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161075c565b506001600160a01b031660009081526003602052604090205490565b610fd6611d38565b610fe0600061209c565b565b610feb33611b3b565b8061101f5750610ff9611db1565b6001600160a01b03166110146009546001600160a01b031690565b6001600160a01b0316145b61103b5760405162461bcd60e51b815260040161075c90613428565b600a85111561108c5760405162461bcd60e51b815260206004820152601760248201527f4e465420616d6f756e74206d6f7265207468616e203130000000000000000000604482015260640161075c565b835185146110cd5760405162461bcd60e51b815260206004820152600e60248201526d696e76616c696420696e7075747360901b604482015260640161075c565b60005b858160ff1610156111175761110487868360ff16815181106110f4576110f461346d565b6020026020010151868686611752565b508061110f81613483565b9150506110d0565b50505050505050565b82611129611db1565b6000828152601260205260409020546001600160a01b039081169116146111625760405162461bcd60e51b815260040161075c906134a3565b601054826001600160601b031611156111d45760405162461bcd60e51b815260206004820152602e60248201527f726f79616c747920666f7220746f6b656e206d757374206265206c657373207460448201526d68616e206d6178526f79616c747960901b606482015260840161075c565b6111df8484846120ee565b50505050565b6111ed611d38565b6001600160a01b0381166112355760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b604482015260640161075c565b6014546001600160a01b038281169116141561128a5760405162461bcd60e51b815260206004820152601460248201527373616d65206164647265737320616c726561647960601b604482015260640161075c565b601480546001600160a01b0319166001600160a01b0383169081179091556040517f43e78472550a1cafa06f3703ee455b86a8e0f3159f466f22e31112458e8da25390600090a250565b806112dd611db1565b6000828152601260205260409020546001600160a01b039081169116146113165760405162461bcd60e51b815260040161075c906134a3565b50600090815260086020526040812055565b60606001805461067090613296565b6001600160a01b0382163b156113795761135082610b9d565b8061135d5750600e5460ff165b6113795760405162461bcd60e51b815260040161075c906132d1565b61076f82826121fc565b61139461138e611db1565b83611dc5565b6113b05760405162461bcd60e51b815260040161075c9061331d565b6001600160a01b03841660009081526011602052604081206113d29084611e43565b6001600160a01b0385166000908152601160205260408120919250906113f89085611e4f565b90508180156114045750805b6114205760405162461bcd60e51b815260040161075c9061337a565b61142c8686868661220e565b505050505050565b606061143f82611bb6565b6000828152600660205260408120805461145890613296565b80601f016020809104026020016040519081016040528092919081815260200182805461148490613296565b80156114d15780601f106114a6576101008083540402835291602001916114d1565b820191906000526020600020905b8154815290600101906020018083116114b457829003601f168201915b5050505050905060006114ef60408051602081019091526000815290565b9050805160001415611502575092915050565b81511561153457808260405160200161151c929190613500565b60405160208183030381529060405292505050919050565b61153d84612241565b949350505050565b61154d611d38565b6001600160a01b0381166115b45760405162461bcd60e51b815260206004820152602860248201527f417574686f72697a61626c653a205f746f4164642069736e2774207661696c64604482015267206164647265737360c01b606482015260840161075c565b6115bf600a82612003565b1561161a5760405162461bcd60e51b815260206004820152602560248201527f417574686f72697a61626c653a205f746f41646420697320616c726561647920604482015264185919195960da1b606482015260840161075c565b611625600a82612025565b506040516001600160a01b038216907fa6f04ef390ee5829dc9be99664fd8d9aeea059278dbda4f988499726455801ce90600090a250565b60606000828461166d600c611dbb565b611677919061352f565b8111156116965784611689600c611dbb565b611693919061352f565b90505b60008167ffffffffffffffff8111156116b1576116b1612d92565b6040519080825280602002602001820160405280156116da578160200160208202803683370190505b50905060005b82811015611739576116fd6116f58289613546565b600c90611ff7565b82828151811061170f5761170f61346d565b6001600160a01b0390921660209283029190910190910152806117318161355e565b9150506116e0565b50806117458388613546565b9350935050509250929050565b600061175d33611b3b565b80611791575061176b611db1565b6001600160a01b03166117866009546001600160a01b031690565b6001600160a01b0316145b6117ad5760405162461bcd60e51b815260040161075c90613428565b6001600160a01b0386166118145760405162461bcd60e51b815260206004820152602860248201527f4552433732312d436f6c6c656374696f6e3a205f746f2061646472657373206e6044820152671bdd081d985b1a5960c21b606482015260840161075c565b60008551116118775760405162461bcd60e51b815260206004820152602960248201527f4552433732312d436f6c6c656374696f6e3a20546f6b656e20555249206973206044820152681b9bdd081d985b1a5960ba1b606482015260840161075c565b601380549060006118878361355e565b91905055506013549050600f5460016118a09190613546565b600f556001600160a01b03861660009081526011602052604081206118c59083611e4f565b90508061190b5760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b9259081a5cc81b9bdd08185919195960621b604482015260640161075c565b600082815260126020526040902080546001600160a01b0319166001600160a01b0389161790556001600160601b0385161561194c5761194c8288876120ee565b8351156119bc57601454604051631a90740560e31b81526001600160a01b039091169063d483a02890611989903090869089908990600401613579565b600060405180830381600087803b1580156119a357600080fd5b505af11580156119b7573d6000803e3d6000fd5b505050505b6119c687836122b4565b6119d082876122ce565b5095945050505050565b6060600082846119ea600a611dbb565b6119f4919061352f565b811115611a135784611a06600a611dbb565b611a10919061352f565b90505b60008167ffffffffffffffff811115611a2e57611a2e612d92565b604051908082528060200260200182016040528015611a57578160200160208202803683370190505b50905060005b8281101561173957611a7a611a728289613546565b600a90611ff7565b828281518110611a8c57611a8c61346d565b6001600160a01b039092166020928302919091019091015280611aae8161355e565b915050611a5d565b611abe611d38565b6001600160a01b038116611b235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075c565b611b2c8161209c565b50565b60006108bf600c611dbb565b600061065b600a83612003565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331415611b88575060131936013560601c90565b503390565b3390565b60006001600160e01b0319821663152a902d60e11b148061065b575061065b82612368565b6000818152600260205260409020546001600160a01b0316611b2c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075c565b6000611c2082610ee8565b9050806001600160a01b0316836001600160a01b03161415611c8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161075c565b806001600160a01b0316611ca0611db1565b6001600160a01b03161480611cbc5750611cbc816105e1611db1565b611d2e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161075c565b610bc583836123b8565b611d40611db1565b6001600160a01b0316611d5b6009546001600160a01b031690565b6001600160a01b031614610fe05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161075c565b60006108bf611b48565b600061065b825490565b600080611dd183610ee8565b9050806001600160a01b0316846001600160a01b03161480611e1857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061153d5750836001600160a01b0316611e31846106f3565b6001600160a01b031614949350505050565b6000610a418383612426565b6000610a418383612519565b826001600160a01b0316611e6e82610ee8565b6001600160a01b031614611ed25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161075c565b6001600160a01b038216611f345760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161075c565b611f3f6000826123b8565b6001600160a01b0383166000908152600360205260408120805460019290611f6890849061352f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f96908490613546565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000610a418383612568565b6001600160a01b03811660009081526001830160205260408120541515610a41565b6000610a41836001600160a01b038416612519565b61204381612592565b6000818152600660205260409020805461205c90613296565b159050611b2c576000818152600660205260408120611b2c91612ad0565b60606000610a418361262d565b6000610a41836001600160a01b038416612426565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b038216111561215c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161075c565b6001600160a01b0382166121b25760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161075c565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600890529190942093519051909116600160a01b029116179055565b61076f612207611db1565b8383612689565b612219848484611e5b565b61222584848484612758565b6111df5760405162461bcd60e51b815260040161075c906135bd565b606061224c82611bb6565b600061226360408051602081019091526000815290565b905060008151116122835760405180602001604052806000815250610a41565b8061228d8461285d565b60405160200161229e929190613500565b6040516020818303038152906040529392505050565b61076f82826040518060200160405280600081525061295b565b6000828152600260205260409020546001600160a01b03166123495760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161075c565b60008281526006602090815260409091208251610bc592840190612b0a565b60006001600160e01b031982166380ac58cd60e01b148061239957506001600160e01b03198216635b5e139f60e01b145b8061065b57506301ffc9a760e01b6001600160e01b031983161461065b565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123ed82610ee8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600183016020526040812054801561250f57600061244a60018361352f565b855490915060009061245e9060019061352f565b90508181146124c357600086600001828154811061247e5761247e61346d565b90600052602060002001549050808760000184815481106124a1576124a161346d565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806124d4576124d461360f565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061065b565b600091505061065b565b60008181526001830160205260408120546125605750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561065b565b50600061065b565b600082600001828154811061257f5761257f61346d565b9060005260206000200154905092915050565b600061259d82610ee8565b90506125aa6000836123b8565b6001600160a01b03811660009081526003602052604081208054600192906125d390849061352f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561267d57602002820191906000526020600020905b815481526020019060010190808311612669575b50505050509050919050565b816001600160a01b0316836001600160a01b031614156126eb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161075c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006001600160a01b0384163b1561285257836001600160a01b031663150b7a02612781611db1565b8786866040518563ffffffff1660e01b81526004016127a39493929190613625565b6020604051808303816000875af19250505080156127de575060408051601f3d908101601f191682019092526127db91810190613662565b60015b612838573d80801561280c576040519150601f19603f3d011682016040523d82523d6000602084013e612811565b606091505b5080516128305760405162461bcd60e51b815260040161075c906135bd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061153d565b506001949350505050565b6060816128815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128ab57806128958161355e565b91506128a49050600a83613414565b9150612885565b60008167ffffffffffffffff8111156128c6576128c6612d92565b6040519080825280601f01601f1916602001820160405280156128f0576020820181803683370190505b5090505b841561153d5761290560018361352f565b9150612912600a8661367f565b61291d906030613546565b60f81b8183815181106129325761293261346d565b60200101906001600160f81b031916908160001a905350612954600a86613414565b94506128f4565b612965838361298e565b6129726000848484612758565b610bc55760405162461bcd60e51b815260040161075c906135bd565b6001600160a01b0382166129e45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161075c565b6000818152600260205260409020546001600160a01b031615612a495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161075c565b6001600160a01b0382166000908152600360205260408120805460019290612a72908490613546565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054612adc90613296565b6000825580601f10612aec575050565b601f016020900490600052602060002090810190611b2c9190612b8e565b828054612b1690613296565b90600052602060002090601f016020900481019282612b385760008555612b7e565b82601f10612b5157805160ff1916838001178555612b7e565b82800160010185558215612b7e579182015b82811115612b7e578251825591602001919060010190612b63565b50612b8a929150612b8e565b5090565b5b80821115612b8a5760008155600101612b8f565b6001600160e01b031981168114611b2c57600080fd5b600060208284031215612bcb57600080fd5b8135610a4181612ba3565b60005b83811015612bf1578181015183820152602001612bd9565b838111156111df5750506000910152565b60008151808452612c1a816020860160208601612bd6565b601f01601f19169290920160200192915050565b602081526000610a416020830184612c02565b600060208284031215612c5357600080fd5b5035919050565b80356001600160a01b0381168114612c7157600080fd5b919050565b60008060408385031215612c8957600080fd5b612c9283612c5a565b946020939093013593505050565b600080600060608486031215612cb557600080fd5b612cbe84612c5a565b9250612ccc60208501612c5a565b9150604084013590509250925092565b60008060408385031215612cef57600080fd5b50508035926020909101359150565b80358015158114612c7157600080fd5b600060208284031215612d2057600080fd5b610a4182612cfe565b600060208284031215612d3b57600080fd5b610a4182612c5a565b600081518084526020808501945080840160005b83811015612d7457815187529582019590820190600101612d58565b509495945050505050565b602081526000610a416020830184612d44565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612dd157612dd1612d92565b604052919050565b600067ffffffffffffffff821115612df357612df3612d92565b5060051b60200190565b600067ffffffffffffffff831115612e1757612e17612d92565b612e2a601f8401601f1916602001612da8565b9050828152838383011115612e3e57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612e6657600080fd5b610a4183833560208501612dfd565b80356001600160601b0381168114612c7157600080fd5b600082601f830112612e9d57600080fd5b81356020612eb2612ead83612dd9565b612da8565b82815260059290921b84018101918181019086841115612ed157600080fd5b8286015b84811015612ef357612ee681612c5a565b8352918301918301612ed5565b509695505050505050565b600082601f830112612f0f57600080fd5b81356020612f1f612ead83612dd9565b82815260059290921b84018101918181019086841115612f3e57600080fd5b8286015b84811015612ef35780358352918301918301612f42565b60008060008060008060c08789031215612f7257600080fd5b612f7b87612c5a565b95506020808801359550604088013567ffffffffffffffff80821115612fa057600080fd5b818a0191508a601f830112612fb457600080fd5b8135612fc2612ead82612dd9565b81815260059190911b8301840190848101908d831115612fe157600080fd5b8585015b83811015613017578481351115612ffb57600080fd5b61300a8f888335890101612e55565b8352918601918601612fe5565b50985061302991505060608b01612e75565b955060808a013592508083111561303f57600080fd5b61304b8b848c01612e8c565b945060a08a013592508083111561306157600080fd5b505061306f89828a01612efe565b9150509295509295509295565b60008060006060848603121561309157600080fd5b833592506130a160208501612c5a565b91506130af60408501612e75565b90509250925092565b600080604083850312156130cb57600080fd5b6130d483612c5a565b91506130e260208401612cfe565b90509250929050565b6000806000806080858703121561310157600080fd5b61310a85612c5a565b935061311860208601612c5a565b925060408501359150606085013567ffffffffffffffff81111561313b57600080fd5b8501601f8101871361314c57600080fd5b61315b87823560208401612dfd565b91505092959194509250565b600081518084526020808501945080840160005b83811015612d745781516001600160a01b03168752958201959082019060010161317b565b6040815260006131b36040830185613167565b90508260208301529392505050565b600080600080600060a086880312156131da57600080fd5b6131e386612c5a565b9450602086013567ffffffffffffffff8082111561320057600080fd5b61320c89838a01612e55565b955061321a60408901612e75565b9450606088013591508082111561323057600080fd5b61323c89838a01612e8c565b9350608088013591508082111561325257600080fd5b5061325f88828901612efe565b9150509295509295909350565b6000806040838503121561327f57600080fd5b61328883612c5a565b91506130e260208401612c5a565b600181811c908216806132aa57607f821691505b602082108114156132cb57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f4552433732312d436f6c6c656374696f6e3a204f6e6c792077686974656c697360408201526b1d081a5cc8185b1b1bddd95960a21b606082015260800190565b6020808252603c908201527f4552433732312d436f6c6c656374696f6e3a207472616e736665722063616c6c60408201527f6572206973206e6f74206f776e6572206e6f7220617070726f76656400000000606082015260800190565b6020808252602f908201527f4552433732312d436f6c6c656374696f6e3a207472616e736665722063616c6c60408201526e195c881a5cc81b9bdd081d985b1a59608a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156133f9576133f96133c9565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613423576134236133fe565b500490565b60208082526025908201527f63616c6c6572206973206e6f742074686520537570657241646d696e206f722060408201526420b236b4b760d91b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff81141561349a5761349a6133c9565b60010192915050565b6020808252603a908201527f4552433732312d436f6c6c656374696f6e3a206f6e6c7920696e697469616c2060408201527f6f776e65722063616e207365742074686520726f79616c697479000000000000606082015260800190565b60008351613512818460208801612bd6565b835190830190613526818360208801612bd6565b01949350505050565b600082821015613541576135416133c9565b500390565b60008219821115613559576135596133c9565b500190565b6000600019821415613572576135726133c9565b5060010190565b60018060a01b03851681528360208201526080604082015260006135a06080830185613167565b82810360608401526135b28185612d44565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061365890830184612c02565b9695505050505050565b60006020828403121561367457600080fd5b8151610a4181612ba3565b60008261368e5761368e6133fe565b50069056fea264697066735822122056c2cb758bb26333c5a608dcfbb717a212686a334d7d7497372c68d83693645964736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000003de6b7eea508d747a0fa14a3809cff3ced60f89c000000000000000000000000a347f107cca05c9006faf26388882f6aa428e8190000000000000000000000000000000000000000000000000000000000000010536c6162732d436f6c6c656374696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094c4e512d41535345540000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000003de6b7eea508d747a0fa14a3809cff3ced60f89c000000000000000000000000a347f107cca05c9006faf26388882f6aa428e8190000000000000000000000000000000000000000000000000000000000000010536c6162732d436f6c6c656374696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094c4e512d41535345540000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Slabs-Collection
Arg [1] : _symbol (string): LNQ-ASSET
Arg [2] : trustedForwarder (address): 0x3de6b7eea508d747a0fa14a3809cff3ced60f89c
Arg [3] : _royaltyRegistry (address): 0xa347f107cca05c9006faf26388882f6aa428e819

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000003de6b7eea508d747a0fa14a3809cff3ced60f89c
Arg [3] : 000000000000000000000000a347f107cca05c9006faf26388882f6aa428e819
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [5] : 536c6162732d436f6c6c656374696f6e00000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 4c4e512d41535345540000000000000000000000000000000000000000000000


Loading