ETH Price: $3,356.88 (-2.82%)
Gas: 2 Gwei

Token

LoveNFT Collections (LPM_NFT)
 

Overview

Max Total Supply

362 LPM_NFT

Holders

9

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Love Power Coin: Deployer
0x0d6f043296c9e950aE5aAF8ADD002358cd24bD46
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
LoveNFTShared

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 2 of 26 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

pragma solidity ^0.8.0;

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

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

File 4 of 26 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.0;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 5 of 26 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 6 of 26 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @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, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 7 of 26 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 8 of 26 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 9 of 26 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 26 : 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 12 of 26 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 13 of 26 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.8;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}

File 14 of 26 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        return
            (error == ECDSA.RecoverError.NoError && recovered == signer) ||
            isValidERC1271SignatureNow(signer, hash, signature);
    }

    /**
     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
     * against the signer smart contract using ERC1271.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidERC1271SignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length >= 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 15 of 26 : 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 16 of 26 : 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 17 of 26 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 18 of 26 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 19 of 26 : ShortStrings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.8;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 20 of 26 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 21 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 22 of 26 : ERC1155Royalty.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.18;

import {ERC2981} from '@openzeppelin/contracts/token/common/ERC2981.sol';
import {ERC1155} from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';

abstract contract ERC1155Royalty is ERC1155, ERC2981 {
  /**
   * @dev See {IERC165-supportsInterface}.
   */
  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC2981) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  function feeDenominator() public pure returns (uint96) {
    return _feeDenominator();
  }

  function _burn(address from, uint256 id, uint256 amount) internal virtual override(ERC1155) {
    super._burn(from, id, amount);
    _resetTokenRoyalty(id);
  }
}

File 23 of 26 : ERC1155SignatureMint.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.18;

import {SignatureChecker} from '@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol';
import {ERC1155} from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import {EIP712, ECDSA} from '@openzeppelin/contracts/utils/cryptography/EIP712.sol';

abstract contract ERC1155SignatureMint is ERC1155, EIP712 {
  using SignatureChecker for address;

  using ECDSA for bytes32;

  bytes32 internal constant TYPEHASH =
    keccak256(
      'MintRequest(uint256 tokenId,uint256 price,uint128 startTimestamp,uint128 endTimestamp,string uri,address royaltyRecipient,uint96 royaltyFraction,bytes32 uid)'
    );
  // uid => executed bool
  mapping(bytes32 uid => bool isExecuted) private _executed;

  struct MintRequest {
    uint256 tokenId;
    uint256 price;
    uint128 startTimestamp;
    uint128 endTimestamp;
    string uri;
    address royaltyRecipient;
    uint96 royaltyFraction;
    bytes32 uid;
  }

  constructor(string memory name, string memory version) EIP712(name, version) {}

  function _processRequest(address _signer, MintRequest calldata _req, bytes calldata _signature) internal {
    require(!_executed[_req.uid], 'Request already executed');
    require(_req.startTimestamp <= block.timestamp && block.timestamp <= _req.endTimestamp, 'Request expired');
    bytes32 requestHash = super._hashTypedDataV4(keccak256(_encodeRequest(_req)));
    bool success = _verify(_signer, requestHash, _signature);
    require(success, 'Invalid request');
    _executed[_req.uid] = true;
  }

  function _verify(address _signer, bytes32 requestHash, bytes calldata signature) internal view returns (bool) {
    return SignatureChecker.isValidSignatureNow(_signer, requestHash, signature);
  }

  function _encodeRequest(MintRequest calldata _req) internal pure returns (bytes memory) {
    return
      abi.encode(
        TYPEHASH,
        _req.tokenId,
        _req.price,
        _req.startTimestamp,
        _req.endTimestamp,
        keccak256(bytes(_req.uri)),
        _req.royaltyRecipient,
        _req.royaltyFraction,
        _req.uid
      );
  }
}

File 24 of 26 : ERC1155URIStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import {ERC1155} from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';

abstract contract ERC1155URIStorage is ERC1155 {
  mapping(uint256 tokenId => string tokenUri) private _tokenURIs;

  function uri(uint256 tokenId) public view virtual override returns (string memory) {
    return _tokenURIs[tokenId];
  }

  function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
    _tokenURIs[tokenId] = _tokenURI;
  }
}

File 25 of 26 : TokenIdentifiers.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;

import {Strings} from '@openzeppelin/contracts/utils/Strings.sol';

/*
    DESIGN NOTES:
    Token ids are a concatenation of:
   * creator: hex address of the creator of the token. 160 bits
   * index: Index for this token (the regular ID), up to 2^56 - 1. 56 bits
   * collection: Virtual collection id for this token, up to 2^40 - 1 (1 trillion).  40 bits

  */
/**
 * @title TokenIdentifiers
 * support for authentication and metadata for token ids
 */

library TokenIdentifiers {
  uint56 private constant MAX_INDEX = 0xFFFFFFFFFFFFFF;
  uint40 private constant MAX_COLLECTION = 0xFFFFFFFFFF;

  // Function to create a token ID based on creator, index, and supply
  function createTokenId(address creator, uint256 index, uint256 collection) internal pure returns (uint256) {
    // Concatenate the values into a single uint256 token ID
    uint256 tokenID = (uint256(uint160(creator)) << 96) | (uint256(index) << 40) | uint256(collection);
    return tokenID;
  }

  function tokenCreator(uint256 _id) internal pure returns (address) {
    return address(uint160(_id >> 96));
  }

  function tokenIndex(uint256 _id) internal pure returns (uint56) {
    return uint56((_id >> 40) & MAX_INDEX);
  }

  function tokenCollection(uint256 _id) internal pure returns (uint40) {
    return uint40(_id & MAX_COLLECTION);
  }

  // Function to extract creator, index, and supply from a token ID
  function decodeTokenId(uint256 _id) internal pure returns (address creator, uint56 index, uint40 collection) {
    creator = tokenCreator(_id);
    index = tokenIndex(_id);
    collection = tokenCollection(_id);
  }
}

File 26 of 26 : LoveNFTShared.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.18;

import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';
import {Strings} from '@openzeppelin/contracts/utils/Strings.sol';
import {ERC1155} from '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import {ERC1155Royalty} from './lib/ERC1155Royalty.sol';
import {TokenIdentifiers} from './lib/TokenIdentifiers.sol';
import {ERC1155SignatureMint} from './lib/ERC1155SignatureMint.sol';
import {ERC1155URIStorage} from './lib/ERC1155URIStorage.sol';

contract LoveNFTShared is ERC1155, Ownable, ERC1155Royalty, ERC1155URIStorage, ERC1155SignatureMint {
  using TokenIdentifiers for uint256;
  using Strings for uint256;

  string public constant symbol = 'LPM_NFT';
  string public constant name = 'LoveNFT Collections';
  uint96 public constant MAXIMUM_ROYALTY_FEE = 2000; // 20%
  // Mapping of minted tokens
  mapping(uint256 tokenId => bool isMinted) private _minted;
  // Total amount of tokens minted
  uint256 private _totalSupply;
  address private immutable _operator;

  constructor(address operator) ERC1155('https://lpm.is/api/token/{id}') ERC1155SignatureMint('LoveNFTShared', '1') {
    require(operator != address(0), 'Invalid address');
    _operator = operator;
  }

  function redeem(address account, MintRequest calldata _req, bytes calldata signature) external {
    require(msg.sender == _operator, 'Only operator can redeem');
    address signer = _req.tokenId.tokenCreator();
    _processRequest(signer, _req, signature);
    _mintWithURI(account, _req.tokenId, _req.uri);
    if (_req.royaltyRecipient != address(0)) {
      require(_req.royaltyFraction <= MAXIMUM_ROYALTY_FEE, 'invalid royalty fee');
      _setTokenRoyalty(_req.tokenId, _req.royaltyRecipient, _req.royaltyFraction);
    }
  }

  function uri(uint256 tokenId) public view override(ERC1155, ERC1155URIStorage) returns (string memory) {
    return super.uri(tokenId);
  }

  function setTokenRoyalty(uint256 id, address receiver, uint96 feeNumerator) external {
    require(msg.sender == id.tokenCreator(), 'Only creator can set royalty');
    require(feeNumerator <= MAXIMUM_ROYALTY_FEE, 'invalid royalty fee');
    (, uint256 currentFeeFraction) = royaltyInfo(id, uint256(_feeDenominator()));
    require(uint256(feeNumerator) <= currentFeeFraction, 'new fee too high');
    _setTokenRoyalty(id, receiver, feeNumerator);
  }

  function exists(uint256 tokenId) public view returns (bool) {
    return _minted[tokenId];
  }

  function totalSupply() public view returns (uint256) {
    return _totalSupply;
  }

  function decodeTokenId(uint256 tokenId) public pure returns (address creator, uint256 index, uint256 collection) {
    return tokenId.decodeTokenId();
  }

  function encodeTokenId(address creator, uint256 index, uint256 collection) public pure returns (uint256) {
    return TokenIdentifiers.createTokenId(creator, index, collection);
  }

  function _mintWithURI(address to, uint256 id, string memory tokenURI) internal {
    _mint(to, id, 1, '');
    _setTokenURI(id, tokenURI);
  }

  function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal override(ERC1155) {
    require(!_minted[id], 'Token already minted');
    _minted[id] = true;
    ++_totalSupply;
    super._mint(to, id, amount, data);
  }

  function _mintBatch(
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal override(ERC1155) {
    uint256 length = ids.length;
    for (uint256 i = 0; i < length; ++i) {
      require(!_minted[ids[i]], 'Token already minted');
      _minted[ids[i]] = true;
    }
    super._mintBatch(to, ids, amounts, data);
    _totalSupply += length;
  }

  function _burn(address account, uint256 id, uint256 amount) internal override(ERC1155, ERC1155Royalty) {
    super._burn(account, id, amount);
    _totalSupply--;
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC1155Royalty) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":[],"name":"EIP712DomainChanged","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"MAXIMUM_ROYALTY_FEE","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"decodeTokenId","outputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"collection","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"collection","type":"uint256"}],"name":"encodeTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDenominator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"startTimestamp","type":"uint128"},{"internalType":"uint128","name":"endTimestamp","type":"uint128"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint96","name":"royaltyFraction","type":"uint96"},{"internalType":"bytes32","name":"uid","type":"bytes32"}],"internalType":"struct ERC1155SignatureMint.MintRequest","name":"_req","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6101806040523480156200001257600080fd5b5060405162003062380380620030628339810160408190526200003591620002f6565b6040518060400160405280600d81526020016c131bdd9953919514da185c9959609a1b815250604051806040016040528060018152602001603160f81b81525081816040518060400160405280601d81526020017f68747470733a2f2f6c706d2e69732f6170692f746f6b656e2f7b69647d000000815250620000be81620001fc60201b60201c565b50620000ca336200020e565b620000e56007836200026060201b62000b2b1790919060201c565b610120526200010281600862000260602090811b62000b2b17901c565b61014052815160208084019190912060e052815190820120610100524660a0526200019060e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05250506001600160a01b038116620001e95760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b6001600160a01b0316610160526200050e565b60026200020a8282620003cd565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208351101562000280576200027883620002b0565b9050620002aa565b826200029783620002f360201b62000b5c1760201c565b90620002a49082620003cd565b5060ff90505b92915050565b600080829050601f81511115620002de578260405163305a27a960e01b8152600401620001e0919062000499565b8051620002eb82620004e9565b179392505050565b90565b6000602082840312156200030957600080fd5b81516001600160a01b03811681146200032157600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035357607f821691505b6020821081036200037457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003c857600081815260208120601f850160051c81016020861015620003a35750805b601f850160051c820191505b81811015620003c457828155600101620003af565b5050505b505050565b81516001600160401b03811115620003e957620003e962000328565b6200040181620003fa84546200033e565b846200037a565b602080601f831160018114620004395760008415620004205750858301515b600019600386901b1c1916600185901b178555620003c4565b600085815260208120601f198616915b828110156200046a5788860151825594840194600190910190840162000449565b5085821015620004895787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b81811015620004c857858101830151858201604001528201620004aa565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620003745760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051612aee62000574600039600061083401526000610a0e015260006109e301526000611a8101526000611a59015260006119b4015260006119de01526000611a080152612aee6000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c80634f558e79116100c35780638da5cb5b1161007c5780638da5cb5b1461033757806395d89b4114610352578063a22cb46514610378578063e985e9c51461038b578063f242432a146103c7578063f2fde38b146103da57600080fd5b80634f558e79146102935780635944c753146102b6578063715018a6146102c957806371f94ff4146102d15780637efd9112146102e457806384b0196e1461031c57600080fd5b806318160ddd1161011557806318160ddd146102085780632a55205a146102105780632e3f6446146102425780632eb2c2d61461024b57806344247b97146102605780634e1273f41461027357600080fd5b8062fdd58e1461015157806301ffc9a71461017757806306fdde031461019a5780630e89341c146101d9578063180b0d7e146101ec575b600080fd5b61016461015f366004611e74565b6103ed565b6040519081526020015b60405180910390f35b61018a610185366004611eb4565b610486565b604051901515815260200161016e565b6101cc604051806040016040528060138152602001724c6f76654e465420436f6c6c656374696f6e7360681b81525081565b60405161016e9190611f28565b6101cc6101e7366004611f3b565b610491565b6127105b6040516001600160601b03909116815260200161016e565b600b54610164565b61022361021e366004611f54565b6104a1565b604080516001600160a01b03909316835260208301919091520161016e565b6101f06107d081565b61025e6102593660046120c2565b61054f565b005b61016461026e36600461216c565b61059b565b61028661028136600461219f565b6105c2565b60405161016e91906122a5565b61018a6102a1366004611f3b565b6000908152600a602052604090205460ff1690565b61025e6102c43660046122cf565b6106ec565b61025e610815565b61025e6102df36600461230b565b610829565b6102f76102f2366004611f3b565b6109a9565b604080516001600160a01b03909416845260208401929092529082015260600161016e565b6103246109d5565b60405161016e97969594939291906123b6565b6003546040516001600160a01b03909116815260200161016e565b6101cc6040518060400160405280600781526020016613141357d3919560ca1b81525081565b61025e610386366004612426565b610a5e565b61018a610399366004612462565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61025e6103d5366004612495565b610a6d565b61025e6103e83660046124fa565b610ab2565b60006001600160a01b03831661045d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061048082610b5f565b606061048082610b6a565b905090565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916105165750604080518082019091526004546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610535906001600160601b03168761252b565b61053f9190612542565b91519350909150505b9250929050565b6001600160a01b03851633148061056b575061056b8533610399565b6105875760405162461bcd60e51b815260040161045490612564565b6105948585858585610c0c565b5050505050565b6000602883901b606085901b6bffffffffffffffffffffffff19161782175b949350505050565b606081518351146106275760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610454565b6000835167ffffffffffffffff81111561064357610643611f76565b60405190808252806020026020018201604052801561066c578160200160208202803683370190505b50905060005b84518110156106e4576106b7858281518110610690576106906125b2565b60200260200101518583815181106106aa576106aa6125b2565b60200260200101516103ed565b8282815181106106c9576106c96125b2565b60209081029190910101526106dd816125c8565b9050610672565b509392505050565b6106f68360601c90565b6001600160a01b0316336001600160a01b0316146107565760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792063726561746f722063616e2073657420726f79616c7479000000006044820152606401610454565b6107d06001600160601b03821611156107a75760405162461bcd60e51b8152602060048201526013602482015272696e76616c696420726f79616c74792066656560681b6044820152606401610454565b60006107b5846127106104a1565b91505080826001600160601b031611156108045760405162461bcd60e51b815260206004820152601060248201526f0dccaee40cccaca40e8dede40d0d2ced60831b6044820152606401610454565b61080f848484610de9565b50505050565b61081d610ef7565b6108276000610f51565b565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108a15760405162461bcd60e51b815260206004820152601860248201527f4f6e6c79206f70657261746f722063616e2072656465656d00000000000000006044820152606401610454565b823560601c6108b281858585610fa3565b6108ff8585356108c560808801886125e1565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061111492505050565b600061091160c0860160a087016124fa565b6001600160a01b031614610594576107d061093260e0860160c08701612628565b6001600160601b0316111561097f5760405162461bcd60e51b8152602060048201526013602482015272696e76616c696420726f79616c74792066656560681b6044820152606401610454565b610594843561099460c0870160a088016124fa565b6109a460e0880160c08901612628565b610de9565b60008060006109b78461113f565b91945066ffffffffffffff16925064ffffffffff1690509193909250565b600060608082808083610a097f00000000000000000000000000000000000000000000000000000000000000006007611174565b610a347f00000000000000000000000000000000000000000000000000000000000000006008611174565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b610a69338383611218565b5050565b6001600160a01b038516331480610a895750610a898533610399565b610aa55760405162461bcd60e51b815260040161045490612564565b61059485858585856112f8565b610aba610ef7565b6001600160a01b038116610b1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610454565b610b2881610f51565b50565b6000602083511015610b4757610b4083611422565b9050610480565b81610b5284826126c3565b5060ff9050610480565b90565b600061048082611460565b6000818152600660205260409020805460609190610b8790612643565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb390612643565b8015610c005780601f10610bd557610100808354040283529160200191610c00565b820191906000526020600020905b815481529060010190602001808311610be357829003601f168201915b50505050509050919050565b8151835114610c6e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610454565b6001600160a01b038416610c945760405162461bcd60e51b815260040161045490612783565b3360005b8451811015610d7b576000858281518110610cb557610cb56125b2565b602002602001015190506000858381518110610cd357610cd36125b2565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610d235760405162461bcd60e51b8152600401610454906127c8565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610d60908490612812565b9250508190555050505080610d74906125c8565b9050610c98565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610dcb929190612825565b60405180910390a4610de1818787878787611485565b505050505050565b6127106001600160601b0382161115610e575760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610454565b6001600160a01b038216610ead5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610454565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600590529190942093519051909116600160a01b029116179055565b6003546001600160a01b031633146108275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610454565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60e083013560009081526009602052604090205460ff16156110075760405162461bcd60e51b815260206004820152601860248201527f5265717565737420616c726561647920657865637574656400000000000000006044820152606401610454565b42611018606085016040860161284a565b6001600160801b031611158015611047575061103a608084016060850161284a565b6001600160801b03164211155b6110855760405162461bcd60e51b815260206004820152600f60248201526e14995c5d595cdd08195e1c1a5c9959608a1b6044820152606401610454565b600061109f611093856115e9565b805190602001206116f2565b905060006110af8683868661171f565b9050806110f05760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c995c5d595cdd608a1b6044820152606401610454565b5050505060e001356000908152600960205260409020805460ff1916600117905550565b611130838360016040518060200160405280600081525061176b565b61113a82826117fa565b505050565b600080600061114e8460601c90565b92506111638460281c66ffffffffffffff1690565b9294929364ffffffffff1692915050565b606060ff831461118757610b4083611812565b81805461119390612643565b80601f01602080910402602001604051908101604052809291908181526020018280546111bf90612643565b801561120c5780601f106111e15761010080835404028352916020019161120c565b820191906000526020600020905b8154815290600101906020018083116111ef57829003601f168201915b50505050509050610480565b816001600160a01b0316836001600160a01b03160361128b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610454565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661131e5760405162461bcd60e51b815260040161045490612783565b33600061132a85611851565b9050600061133785611851565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561137a5760405162461bcd60e51b8152600401610454906127c8565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906113b7908490612812565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611417848a8a8a8a8a61189c565b505050505050505050565b600080829050601f8151111561144d578260405163305a27a960e01b81526004016104549190611f28565b805161145882612873565b179392505050565b60006001600160e01b0319821663152a902d60e11b1480610480575061048082611957565b6001600160a01b0384163b15610de15760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906114c99089908990889088908890600401612897565b6020604051808303816000875af1925050508015611504575060408051601f3d908101601f19168201909252611501918101906128f5565b60015b6115b057611510612912565b806308c379a003611549575061152461292d565b8061152f575061154b565b8060405162461bcd60e51b81526004016104549190611f28565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610454565b6001600160e01b0319811663bc197c8160e01b146115e05760405162461bcd60e51b8152600401610454906129b7565b50505050505050565b60607f624477eadb24f2bea1d10c1daf48c41e3052cad13a35059d039d831e22fd458f823560208401356116228585016040870161284a565b611632608087016060880161284a565b61163f60808801886125e1565b60405161164d9291906129ff565b60405190819003902061166660c0890160a08a016124fa565b61167660e08a0160c08b01612628565b60408051602081019990995288019690965260608701949094526001600160801b039283166080870152911660a085015260c08401526001600160a01b031660e0838101919091526001600160601b03909116610100830152830135610120820152610140016040516020818303038152906040529050919050565b60006104806116ff6119a7565b8360405161190160f01b8152600281019290925260228201526042902090565b6000611762858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ad292505050565b95945050505050565b6000838152600a602052604090205460ff16156117c15760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b6044820152606401610454565b6000838152600a60205260408120805460ff19166001179055600b80549091906117ea906125c8565b9091555061080f84848484611b33565b600082815260066020526040902061113a82826126c3565b6060600061181f83611c3e565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061188b5761188b6125b2565b602090810291909101015292915050565b6001600160a01b0384163b15610de15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906118e09089908990889088908890600401612a0f565b6020604051808303816000875af192505050801561191b575060408051601f3d908101601f19168201909252611918918101906128f5565b60015b61192757611510612912565b6001600160e01b0319811663f23a6e6160e01b146115e05760405162461bcd60e51b8152600401610454906129b7565b60006001600160e01b03198216636cdb3d1360e11b148061198857506001600160e01b031982166303a24d0760e21b145b8061048057506301ffc9a760e01b6001600160e01b0319831614610480565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611a0057507f000000000000000000000000000000000000000000000000000000000000000046145b15611a2a57507f000000000000000000000000000000000000000000000000000000000000000090565b61049c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6000806000611ae18585611c66565b90925090506000816004811115611afa57611afa612a54565b148015611b185750856001600160a01b0316826001600160a01b0316145b80611b295750611b29868686611ca8565b9695505050505050565b6001600160a01b038416611b935760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610454565b336000611b9f85611851565b90506000611bac85611851565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611bde908490612812565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46115e08360008989898961189c565b600060ff8216601f81111561048057604051632cd44ac360e21b815260040160405180910390fd5b6000808251604103611c9c5760208301516040840151606085015160001a611c9087828585611d94565b94509450505050610548565b50600090506002610548565b6000806000856001600160a01b0316631626ba7e60e01b8686604051602401611cd2929190612a6a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611d109190612a83565b600060405180830381855afa9150503d8060008114611d4b576040519150601f19603f3d011682016040523d82523d6000602084013e611d50565b606091505b5091509150818015611d6457506020815110155b8015611b2957508051630b135d3f60e11b90611d899083016020908101908401612a9f565b149695505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611dcb5750600090506003611e4f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611e1f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611e4857600060019250925050611e4f565b9150600090505b94509492505050565b80356001600160a01b0381168114611e6f57600080fd5b919050565b60008060408385031215611e8757600080fd5b611e9083611e58565b946020939093013593505050565b6001600160e01b031981168114610b2857600080fd5b600060208284031215611ec657600080fd5b8135611ed181611e9e565b9392505050565b60005b83811015611ef3578181015183820152602001611edb565b50506000910152565b60008151808452611f14816020860160208601611ed8565b601f01601f19169290920160200192915050565b602081526000611ed16020830184611efc565b600060208284031215611f4d57600080fd5b5035919050565b60008060408385031215611f6757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611fb257611fb2611f76565b6040525050565b600067ffffffffffffffff821115611fd357611fd3611f76565b5060051b60200190565b600082601f830112611fee57600080fd5b81356020611ffb82611fb9565b6040516120088282611f8c565b83815260059390931b850182019282810191508684111561202857600080fd5b8286015b84811015612043578035835291830191830161202c565b509695505050505050565b600082601f83011261205f57600080fd5b813567ffffffffffffffff81111561207957612079611f76565b604051612090601f8301601f191660200182611f8c565b8181528460208386010111156120a557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156120da57600080fd5b6120e386611e58565b94506120f160208701611e58565b9350604086013567ffffffffffffffff8082111561210e57600080fd5b61211a89838a01611fdd565b9450606088013591508082111561213057600080fd5b61213c89838a01611fdd565b9350608088013591508082111561215257600080fd5b5061215f8882890161204e565b9150509295509295909350565b60008060006060848603121561218157600080fd5b61218a84611e58565b95602085013595506040909401359392505050565b600080604083850312156121b257600080fd5b823567ffffffffffffffff808211156121ca57600080fd5b818501915085601f8301126121de57600080fd5b813560206121eb82611fb9565b6040516121f88282611f8c565b83815260059390931b850182019282810191508984111561221857600080fd5b948201945b8386101561223d5761222e86611e58565b8252948201949082019061221d565b9650508601359250508082111561225357600080fd5b5061226085828601611fdd565b9150509250929050565b600081518084526020808501945080840160005b8381101561229a5781518752958201959082019060010161227e565b509495945050505050565b602081526000611ed1602083018461226a565b80356001600160601b0381168114611e6f57600080fd5b6000806000606084860312156122e457600080fd5b833592506122f460208501611e58565b9150612302604085016122b8565b90509250925092565b6000806000806060858703121561232157600080fd5b61232a85611e58565b9350602085013567ffffffffffffffff8082111561234757600080fd5b90860190610100828903121561235c57600080fd5b9093506040860135908082111561237257600080fd5b818701915087601f83011261238657600080fd5b81358181111561239557600080fd5b8860208285010111156123a757600080fd5b95989497505060200194505050565b60ff60f81b8816815260e0602082015260006123d560e0830189611efc565b82810360408401526123e78189611efc565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612418818561226a565b9a9950505050505050505050565b6000806040838503121561243957600080fd5b61244283611e58565b91506020830135801515811461245757600080fd5b809150509250929050565b6000806040838503121561247557600080fd5b61247e83611e58565b915061248c60208401611e58565b90509250929050565b600080600080600060a086880312156124ad57600080fd5b6124b686611e58565b94506124c460208701611e58565b93506040860135925060608601359150608086013567ffffffffffffffff8111156124ee57600080fd5b61215f8882890161204e565b60006020828403121561250c57600080fd5b611ed182611e58565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761048057610480612515565b60008261255f57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600182016125da576125da612515565b5060010190565b6000808335601e198436030181126125f857600080fd5b83018035915067ffffffffffffffff82111561261357600080fd5b60200191503681900382131561054857600080fd5b60006020828403121561263a57600080fd5b611ed1826122b8565b600181811c9082168061265757607f821691505b60208210810361267757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561113a57600081815260208120601f850160051c810160208610156126a45750805b601f850160051c820191505b81811015610de1578281556001016126b0565b815167ffffffffffffffff8111156126dd576126dd611f76565b6126f1816126eb8454612643565b8461267d565b602080601f831160018114612726576000841561270e5750858301515b600019600386901b1c1916600185901b178555610de1565b600085815260208120601f198616915b8281101561275557888601518255948401946001909101908401612736565b50858210156127735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b8082018082111561048057610480612515565b604081526000612838604083018561226a565b8281036020840152611762818561226a565b60006020828403121561285c57600080fd5b81356001600160801b0381168114611ed157600080fd5b805160208083015191908110156126775760001960209190910360031b1b16919050565b6001600160a01b0386811682528516602082015260a0604082018190526000906128c39083018661226a565b82810360608401526128d5818661226a565b905082810360808401526128e98185611efc565b98975050505050505050565b60006020828403121561290757600080fd5b8151611ed181611e9e565b600060033d1115610b5c5760046000803e5060005160e01c90565b600060443d101561293b5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561296b57505050505090565b82850191508151818111156129835750505050505090565b843d870101602082850101111561299d5750505050505090565b6129ac60208286010187611f8c565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b8183823760009101908152919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a4990830184611efc565b979650505050505050565b634e487b7160e01b600052602160045260246000fd5b8281526040602082015260006105ba6040830184611efc565b60008251612a95818460208701611ed8565b9190910192915050565b600060208284031215612ab157600080fd5b505191905056fea2646970667358221220d6f34bb7dfe6e037aeb2e027c8b76138569179c7553c0d857261b8200fd1fb3b64736f6c63430008120033000000000000000000000000f6e16c6424685d672d636b9146714ca9e9e458da

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014c5760003560e01c80634f558e79116100c35780638da5cb5b1161007c5780638da5cb5b1461033757806395d89b4114610352578063a22cb46514610378578063e985e9c51461038b578063f242432a146103c7578063f2fde38b146103da57600080fd5b80634f558e79146102935780635944c753146102b6578063715018a6146102c957806371f94ff4146102d15780637efd9112146102e457806384b0196e1461031c57600080fd5b806318160ddd1161011557806318160ddd146102085780632a55205a146102105780632e3f6446146102425780632eb2c2d61461024b57806344247b97146102605780634e1273f41461027357600080fd5b8062fdd58e1461015157806301ffc9a71461017757806306fdde031461019a5780630e89341c146101d9578063180b0d7e146101ec575b600080fd5b61016461015f366004611e74565b6103ed565b6040519081526020015b60405180910390f35b61018a610185366004611eb4565b610486565b604051901515815260200161016e565b6101cc604051806040016040528060138152602001724c6f76654e465420436f6c6c656374696f6e7360681b81525081565b60405161016e9190611f28565b6101cc6101e7366004611f3b565b610491565b6127105b6040516001600160601b03909116815260200161016e565b600b54610164565b61022361021e366004611f54565b6104a1565b604080516001600160a01b03909316835260208301919091520161016e565b6101f06107d081565b61025e6102593660046120c2565b61054f565b005b61016461026e36600461216c565b61059b565b61028661028136600461219f565b6105c2565b60405161016e91906122a5565b61018a6102a1366004611f3b565b6000908152600a602052604090205460ff1690565b61025e6102c43660046122cf565b6106ec565b61025e610815565b61025e6102df36600461230b565b610829565b6102f76102f2366004611f3b565b6109a9565b604080516001600160a01b03909416845260208401929092529082015260600161016e565b6103246109d5565b60405161016e97969594939291906123b6565b6003546040516001600160a01b03909116815260200161016e565b6101cc6040518060400160405280600781526020016613141357d3919560ca1b81525081565b61025e610386366004612426565b610a5e565b61018a610399366004612462565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61025e6103d5366004612495565b610a6d565b61025e6103e83660046124fa565b610ab2565b60006001600160a01b03831661045d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061048082610b5f565b606061048082610b6a565b905090565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916105165750604080518082019091526004546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610535906001600160601b03168761252b565b61053f9190612542565b91519350909150505b9250929050565b6001600160a01b03851633148061056b575061056b8533610399565b6105875760405162461bcd60e51b815260040161045490612564565b6105948585858585610c0c565b5050505050565b6000602883901b606085901b6bffffffffffffffffffffffff19161782175b949350505050565b606081518351146106275760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610454565b6000835167ffffffffffffffff81111561064357610643611f76565b60405190808252806020026020018201604052801561066c578160200160208202803683370190505b50905060005b84518110156106e4576106b7858281518110610690576106906125b2565b60200260200101518583815181106106aa576106aa6125b2565b60200260200101516103ed565b8282815181106106c9576106c96125b2565b60209081029190910101526106dd816125c8565b9050610672565b509392505050565b6106f68360601c90565b6001600160a01b0316336001600160a01b0316146107565760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792063726561746f722063616e2073657420726f79616c7479000000006044820152606401610454565b6107d06001600160601b03821611156107a75760405162461bcd60e51b8152602060048201526013602482015272696e76616c696420726f79616c74792066656560681b6044820152606401610454565b60006107b5846127106104a1565b91505080826001600160601b031611156108045760405162461bcd60e51b815260206004820152601060248201526f0dccaee40cccaca40e8dede40d0d2ced60831b6044820152606401610454565b61080f848484610de9565b50505050565b61081d610ef7565b6108276000610f51565b565b336001600160a01b037f000000000000000000000000f6e16c6424685d672d636b9146714ca9e9e458da16146108a15760405162461bcd60e51b815260206004820152601860248201527f4f6e6c79206f70657261746f722063616e2072656465656d00000000000000006044820152606401610454565b823560601c6108b281858585610fa3565b6108ff8585356108c560808801886125e1565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061111492505050565b600061091160c0860160a087016124fa565b6001600160a01b031614610594576107d061093260e0860160c08701612628565b6001600160601b0316111561097f5760405162461bcd60e51b8152602060048201526013602482015272696e76616c696420726f79616c74792066656560681b6044820152606401610454565b610594843561099460c0870160a088016124fa565b6109a460e0880160c08901612628565b610de9565b60008060006109b78461113f565b91945066ffffffffffffff16925064ffffffffff1690509193909250565b600060608082808083610a097f4c6f76654e46545368617265640000000000000000000000000000000000000d6007611174565b610a347f31000000000000000000000000000000000000000000000000000000000000016008611174565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b610a69338383611218565b5050565b6001600160a01b038516331480610a895750610a898533610399565b610aa55760405162461bcd60e51b815260040161045490612564565b61059485858585856112f8565b610aba610ef7565b6001600160a01b038116610b1f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610454565b610b2881610f51565b50565b6000602083511015610b4757610b4083611422565b9050610480565b81610b5284826126c3565b5060ff9050610480565b90565b600061048082611460565b6000818152600660205260409020805460609190610b8790612643565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb390612643565b8015610c005780601f10610bd557610100808354040283529160200191610c00565b820191906000526020600020905b815481529060010190602001808311610be357829003601f168201915b50505050509050919050565b8151835114610c6e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610454565b6001600160a01b038416610c945760405162461bcd60e51b815260040161045490612783565b3360005b8451811015610d7b576000858281518110610cb557610cb56125b2565b602002602001015190506000858381518110610cd357610cd36125b2565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610d235760405162461bcd60e51b8152600401610454906127c8565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610d60908490612812565b9250508190555050505080610d74906125c8565b9050610c98565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610dcb929190612825565b60405180910390a4610de1818787878787611485565b505050505050565b6127106001600160601b0382161115610e575760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610454565b6001600160a01b038216610ead5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610454565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600590529190942093519051909116600160a01b029116179055565b6003546001600160a01b031633146108275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610454565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60e083013560009081526009602052604090205460ff16156110075760405162461bcd60e51b815260206004820152601860248201527f5265717565737420616c726561647920657865637574656400000000000000006044820152606401610454565b42611018606085016040860161284a565b6001600160801b031611158015611047575061103a608084016060850161284a565b6001600160801b03164211155b6110855760405162461bcd60e51b815260206004820152600f60248201526e14995c5d595cdd08195e1c1a5c9959608a1b6044820152606401610454565b600061109f611093856115e9565b805190602001206116f2565b905060006110af8683868661171f565b9050806110f05760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081c995c5d595cdd608a1b6044820152606401610454565b5050505060e001356000908152600960205260409020805460ff1916600117905550565b611130838360016040518060200160405280600081525061176b565b61113a82826117fa565b505050565b600080600061114e8460601c90565b92506111638460281c66ffffffffffffff1690565b9294929364ffffffffff1692915050565b606060ff831461118757610b4083611812565b81805461119390612643565b80601f01602080910402602001604051908101604052809291908181526020018280546111bf90612643565b801561120c5780601f106111e15761010080835404028352916020019161120c565b820191906000526020600020905b8154815290600101906020018083116111ef57829003601f168201915b50505050509050610480565b816001600160a01b0316836001600160a01b03160361128b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610454565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661131e5760405162461bcd60e51b815260040161045490612783565b33600061132a85611851565b9050600061133785611851565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561137a5760405162461bcd60e51b8152600401610454906127c8565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906113b7908490612812565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611417848a8a8a8a8a61189c565b505050505050505050565b600080829050601f8151111561144d578260405163305a27a960e01b81526004016104549190611f28565b805161145882612873565b179392505050565b60006001600160e01b0319821663152a902d60e11b1480610480575061048082611957565b6001600160a01b0384163b15610de15760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906114c99089908990889088908890600401612897565b6020604051808303816000875af1925050508015611504575060408051601f3d908101601f19168201909252611501918101906128f5565b60015b6115b057611510612912565b806308c379a003611549575061152461292d565b8061152f575061154b565b8060405162461bcd60e51b81526004016104549190611f28565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610454565b6001600160e01b0319811663bc197c8160e01b146115e05760405162461bcd60e51b8152600401610454906129b7565b50505050505050565b60607f624477eadb24f2bea1d10c1daf48c41e3052cad13a35059d039d831e22fd458f823560208401356116228585016040870161284a565b611632608087016060880161284a565b61163f60808801886125e1565b60405161164d9291906129ff565b60405190819003902061166660c0890160a08a016124fa565b61167660e08a0160c08b01612628565b60408051602081019990995288019690965260608701949094526001600160801b039283166080870152911660a085015260c08401526001600160a01b031660e0838101919091526001600160601b03909116610100830152830135610120820152610140016040516020818303038152906040529050919050565b60006104806116ff6119a7565b8360405161190160f01b8152600281019290925260228201526042902090565b6000611762858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ad292505050565b95945050505050565b6000838152600a602052604090205460ff16156117c15760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b6044820152606401610454565b6000838152600a60205260408120805460ff19166001179055600b80549091906117ea906125c8565b9091555061080f84848484611b33565b600082815260066020526040902061113a82826126c3565b6060600061181f83611c3e565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061188b5761188b6125b2565b602090810291909101015292915050565b6001600160a01b0384163b15610de15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906118e09089908990889088908890600401612a0f565b6020604051808303816000875af192505050801561191b575060408051601f3d908101601f19168201909252611918918101906128f5565b60015b61192757611510612912565b6001600160e01b0319811663f23a6e6160e01b146115e05760405162461bcd60e51b8152600401610454906129b7565b60006001600160e01b03198216636cdb3d1360e11b148061198857506001600160e01b031982166303a24d0760e21b145b8061048057506301ffc9a760e01b6001600160e01b0319831614610480565b6000306001600160a01b037f000000000000000000000000b0a5818c8c2011cce667e56f9d1e512d6ad83d8216148015611a0057507f000000000000000000000000000000000000000000000000000000000000000146145b15611a2a57507fb6c8357b2e28c3b848d1c611912841d8508648ebe1b5cedc534372954ac8027590565b61049c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fef595a8060c9179f8c30d96d0f35d852e34a7adc1a2fd37ce747c70b7e13a90b918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6000806000611ae18585611c66565b90925090506000816004811115611afa57611afa612a54565b148015611b185750856001600160a01b0316826001600160a01b0316145b80611b295750611b29868686611ca8565b9695505050505050565b6001600160a01b038416611b935760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610454565b336000611b9f85611851565b90506000611bac85611851565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611bde908490612812565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46115e08360008989898961189c565b600060ff8216601f81111561048057604051632cd44ac360e21b815260040160405180910390fd5b6000808251604103611c9c5760208301516040840151606085015160001a611c9087828585611d94565b94509450505050610548565b50600090506002610548565b6000806000856001600160a01b0316631626ba7e60e01b8686604051602401611cd2929190612a6a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611d109190612a83565b600060405180830381855afa9150503d8060008114611d4b576040519150601f19603f3d011682016040523d82523d6000602084013e611d50565b606091505b5091509150818015611d6457506020815110155b8015611b2957508051630b135d3f60e11b90611d899083016020908101908401612a9f565b149695505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611dcb5750600090506003611e4f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611e1f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611e4857600060019250925050611e4f565b9150600090505b94509492505050565b80356001600160a01b0381168114611e6f57600080fd5b919050565b60008060408385031215611e8757600080fd5b611e9083611e58565b946020939093013593505050565b6001600160e01b031981168114610b2857600080fd5b600060208284031215611ec657600080fd5b8135611ed181611e9e565b9392505050565b60005b83811015611ef3578181015183820152602001611edb565b50506000910152565b60008151808452611f14816020860160208601611ed8565b601f01601f19169290920160200192915050565b602081526000611ed16020830184611efc565b600060208284031215611f4d57600080fd5b5035919050565b60008060408385031215611f6757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611fb257611fb2611f76565b6040525050565b600067ffffffffffffffff821115611fd357611fd3611f76565b5060051b60200190565b600082601f830112611fee57600080fd5b81356020611ffb82611fb9565b6040516120088282611f8c565b83815260059390931b850182019282810191508684111561202857600080fd5b8286015b84811015612043578035835291830191830161202c565b509695505050505050565b600082601f83011261205f57600080fd5b813567ffffffffffffffff81111561207957612079611f76565b604051612090601f8301601f191660200182611f8c565b8181528460208386010111156120a557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156120da57600080fd5b6120e386611e58565b94506120f160208701611e58565b9350604086013567ffffffffffffffff8082111561210e57600080fd5b61211a89838a01611fdd565b9450606088013591508082111561213057600080fd5b61213c89838a01611fdd565b9350608088013591508082111561215257600080fd5b5061215f8882890161204e565b9150509295509295909350565b60008060006060848603121561218157600080fd5b61218a84611e58565b95602085013595506040909401359392505050565b600080604083850312156121b257600080fd5b823567ffffffffffffffff808211156121ca57600080fd5b818501915085601f8301126121de57600080fd5b813560206121eb82611fb9565b6040516121f88282611f8c565b83815260059390931b850182019282810191508984111561221857600080fd5b948201945b8386101561223d5761222e86611e58565b8252948201949082019061221d565b9650508601359250508082111561225357600080fd5b5061226085828601611fdd565b9150509250929050565b600081518084526020808501945080840160005b8381101561229a5781518752958201959082019060010161227e565b509495945050505050565b602081526000611ed1602083018461226a565b80356001600160601b0381168114611e6f57600080fd5b6000806000606084860312156122e457600080fd5b833592506122f460208501611e58565b9150612302604085016122b8565b90509250925092565b6000806000806060858703121561232157600080fd5b61232a85611e58565b9350602085013567ffffffffffffffff8082111561234757600080fd5b90860190610100828903121561235c57600080fd5b9093506040860135908082111561237257600080fd5b818701915087601f83011261238657600080fd5b81358181111561239557600080fd5b8860208285010111156123a757600080fd5b95989497505060200194505050565b60ff60f81b8816815260e0602082015260006123d560e0830189611efc565b82810360408401526123e78189611efc565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612418818561226a565b9a9950505050505050505050565b6000806040838503121561243957600080fd5b61244283611e58565b91506020830135801515811461245757600080fd5b809150509250929050565b6000806040838503121561247557600080fd5b61247e83611e58565b915061248c60208401611e58565b90509250929050565b600080600080600060a086880312156124ad57600080fd5b6124b686611e58565b94506124c460208701611e58565b93506040860135925060608601359150608086013567ffffffffffffffff8111156124ee57600080fd5b61215f8882890161204e565b60006020828403121561250c57600080fd5b611ed182611e58565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761048057610480612515565b60008261255f57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600182016125da576125da612515565b5060010190565b6000808335601e198436030181126125f857600080fd5b83018035915067ffffffffffffffff82111561261357600080fd5b60200191503681900382131561054857600080fd5b60006020828403121561263a57600080fd5b611ed1826122b8565b600181811c9082168061265757607f821691505b60208210810361267757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561113a57600081815260208120601f850160051c810160208610156126a45750805b601f850160051c820191505b81811015610de1578281556001016126b0565b815167ffffffffffffffff8111156126dd576126dd611f76565b6126f1816126eb8454612643565b8461267d565b602080601f831160018114612726576000841561270e5750858301515b600019600386901b1c1916600185901b178555610de1565b600085815260208120601f198616915b8281101561275557888601518255948401946001909101908401612736565b50858210156127735787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b8082018082111561048057610480612515565b604081526000612838604083018561226a565b8281036020840152611762818561226a565b60006020828403121561285c57600080fd5b81356001600160801b0381168114611ed157600080fd5b805160208083015191908110156126775760001960209190910360031b1b16919050565b6001600160a01b0386811682528516602082015260a0604082018190526000906128c39083018661226a565b82810360608401526128d5818661226a565b905082810360808401526128e98185611efc565b98975050505050505050565b60006020828403121561290757600080fd5b8151611ed181611e9e565b600060033d1115610b5c5760046000803e5060005160e01c90565b600060443d101561293b5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561296b57505050505090565b82850191508151818111156129835750505050505090565b843d870101602082850101111561299d5750505050505090565b6129ac60208286010187611f8c565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b8183823760009101908152919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a4990830184611efc565b979650505050505050565b634e487b7160e01b600052602160045260246000fd5b8281526040602082015260006105ba6040830184611efc565b60008251612a95818460208701611ed8565b9190910192915050565b600060208284031215612ab157600080fd5b505191905056fea2646970667358221220d6f34bb7dfe6e037aeb2e027c8b76138569179c7553c0d857261b8200fd1fb3b64736f6c63430008120033

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

000000000000000000000000f6e16c6424685d672d636b9146714ca9e9e458da

-----Decoded View---------------
Arg [0] : operator (address): 0xf6E16C6424685D672d636B9146714CA9e9e458Da

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


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.