ETH Price: $3,339.97 (-0.71%)

Token

RiftValleyMotelCoin (RVMC)
 

Overview

Max Total Supply

30,138 RVMC

Holders

7,070

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x70a30db1a191391459509f5fd6e0d53b6daf893f
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

These coins grant users access to the next step in customizing ALTS by adidas PFP avatar.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RVMC

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : RVMC.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract RVMC is
    ERC1155,
    ERC1155Supply,
    ERC1155Burnable,
    ERC2981,
    DefaultOperatorFilterer,
    Ownable,
    Pausable
{
    /// @notice Token name
    string public name;

    /// @notice Token symbol
    string public symbol;

    constructor(string memory baseUri) ERC1155(baseUri) {
        _pause();
    }

    /// @notice Mints tokens
    /// @param recipients The addresses to receive the tokens
    /// @param amounts The amounts of tokens to mint
    /// @param tokenId The ID of the tokens to mint
    function mintBatch(
        address[] calldata recipients,
        uint256[] calldata amounts,
        uint256 tokenId
    ) public onlyOwner {
        require(
            recipients.length == amounts.length,
            "Mismatched recipients and amounts"
        );

        unchecked {
            for (uint256 i = 0; i < recipients.length; i++) {
                _mint(recipients[i], tokenId, amounts[i], "");
            }
        }
    }

    /// @notice Pauses the ability transfer tokens
    function pause() external onlyOwner {
        _pause();
    }

    /// @notice Unpause (resume) the ability transfer tokens
    function unpause() external onlyOwner {
        _unpause();
    }

    /// @notice Sets the base URI for the token's metadata
    /// @param baseURI The new base URI
    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }

    /// @notice Sets the name and symbol for the token's metadata
    /// @param newName The new base URI
    /// @param newSymbol The new base URI
    function setNameAndSymbol(
        string calldata newName,
        string calldata newSymbol
    ) external onlyOwner {
        name = newName;
        symbol = newSymbol;
    }

    /// @notice Sets the default royalty for the token
    /// @param receiver The receiver of the royalty fees
    /// @param feeNumerator The value of the royalty fees
    function setDefaultRoyalty(
        address receiver,
        uint96 feeNumerator
    ) public onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

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

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override whenNotPaused onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public override whenNotPaused {
        super.burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public override whenNotPaused {
        super.burnBatch(account, ids, values);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 6 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 19 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 8 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 9 of 19 : 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 10 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 11 of 19 : 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 12 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

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

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

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

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

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

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"tokenId","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":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"},{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604081815234620003835760009062002c0c803803809162000024828762000388565b853983019260209081818603126200037f5780516001600160401b03918282116200037b5701601f908682820112156200037b5780518381116200034b57855191601f19986200007b878b87860116018562000388565b828452868383010111620003775787918691835b8281106200035f575050830101528051918383116200034b57600254916001928381811c9116801562000340575b878210146200032c57828111620002e7575b5087988896979850879285116001146200028257508592849290918362000276575b50501b916000199060031b1c1916176002555b6daaeb6d7670e522a718067333cd4e803b620001ec575b505060065483519490915033906001600160a01b038316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001600160a81b0319163360ff60a01b1916179260a084901c60ff16620001b957507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589192600160a01b176006558251338152a1516128499081620003c38239f35b60649162461bcd60e51b82526004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152fd5b803b15620002725782906044865180958193633e9f1edf60e11b8352306004840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af1801562000268576200023f575b84916200011b565b81949294116200025457825291388062000237565b634e487b7160e01b82526041600452602482fd5b84513d87823e3d90fd5b8280fd5b015192503880620000f1565b600287528787209394939291908416875b89828210620002cf5750508411620002b5575b505050811b0160025562000104565b015160001960f88460031b161c19169055388080620002a6565b8484015186558c995094870194938401930162000293565b600289528689208380870160051c82019289881062000322575b0160051c01905b818110620003175750620000cf565b898155840162000308565b9250819262000301565b634e487b7160e01b89526022600452602489fd5b90607f1690620000bd565b634e487b7160e01b87526041600452602487fd5b8181018401518682018501528a94508893016200008f565b8780fd5b8580fd5b8380fd5b600080fd5b601f909101601f19168101906001600160401b03821190821017620003ac57604052565b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e14611fb257806301ffc9a714611f2a57806302fe530514611da057806304634d8d14611c9657806306fdde0314611bf05780630e89341c14611b0e5780632a55205a14611a4c5780632eb2c2d6146116535780633f4ba83a146115b757806341f434341461158e57806345d11c2d1461128d5780634e1273f4146110ef5780634f558e79146110c15780635a44621514610ddd5780635c975abb14610db75780636b20c45414610b56578063715018a614610af95780638456cb5914610a975780638da5cb5b14610a6e57806395d89b4114610988578063a22cb4651461089b578063bd85b0391461086f578063e985e9c514610819578063f242432a1461041b578063f2fde38b146103575763f5298aca1461013957600080fd5b3461035257606036600319011261035257610152611fe1565b60249081356044803592610164612495565b6001600160a01b0316913383148015610329575b610181906124dc565b82159261018e841561267a565b61019782612470565b916101a186612470565b9460006040516101b081612028565b526102cf575b60005b8351811015610252576101cc8185612334565b516101d78288612334565b5190806000526003602081815260406000205492848410610210579061020b95949392916000525203604060002055612325565b6101b9565b506084906000805160206127f48339815191528a60288f6040519462461bcd60e51b8652600486015284015282015267616c537570706c7960c01b6064820152fd5b6000838389818452836020526040842083855260205280604085205461027a828210156126d2565b838652856020526040862085875260205203604085205560405191825260208201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a46102cd604051612028565b005b949195929060005b875181101561031e57806102ee6103199288612334565b516102f9828b612334565b516000526003602052610312604060002091825461236e565b9055612325565b6102d7565b5090929591946101b6565b5082600052600160205260406000203360005260205261018160ff604060002054169050610178565b600080fd5b3461035257602036600319011261035257610370611fe1565b610378612248565b6001600160a01b039081169081156103c757600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346103525760a036600319011261035257610434611fe1565b61043c611ff7565b90608480356001600160401b0381116103525761045d903690600401612199565b90610466612495565b6001600160a01b039183831633148015908161080b575b906107e0575b61048c906124dc565b8285161561049a811561253f565b6104a5604435612470565b6104b0606435612470565b91858716156107a0575b6106f2575b505060443560005260209460008652604060002084861660005286526040600020546104ef606435821015612599565b604435600052600087526040600020858716600052875260643590036040600020556044356000526000865260406000208482166000528652604060002061053a606435825461236e565b905560405160443581526064358782015284821690858716907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4803b61058157005b60a060006105cb958895604051978896879586938563f23a6e6160e01b9d8e87523360048801521660248601526044356044860152606435606486015284015260a48301906120e4565b0393165af1600091816106c3575b506106985750506001906105eb6123e4565b6308c379a014610663575b506105fd57005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608490fd5b0390fd5b61066b612402565b908161067757506105f6565b61065f60405192839262461bcd60e51b8452600484015260248301906120e4565b6001600160e01b0319161490506102cd575b60405162461bcd60e51b81528061065f6004820161239b565b6106e4919250843d86116106eb575b6106dc8183612043565b81019061237b565b90846105d9565b503d6106d2565b92959194909360005b84518110156107915761070e8186612334565b519061071a8188612334565b5182600052600360205260406000205481811061074e5761074993600052600360205203604060002055612325565b6106fb565b60405162461bcd60e51b815260206004820152602860248201526000805160206127f4833981519152604482015267616c537570706c7960c01b60648201528b90fd5b509350939094915085806104bf565b959260009794919592975b86518110156107d257806107c26107cd928b612334565b516102f9828a612334565b6107ab565b5092959691949093966104ba565b50828416600052600160205260406000203360005260205261048c60ff604060002054169050610483565b6108143361272a565b61047d565b3461035257604036600319011261035257610832611fe1565b61083a611ff7565b9060018060a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b346103525760203660031901126103525760043560005260036020526020604060002054604051908152f35b34610352576040366003190112610352576108b4611fe1565b60243590811515809203610352576108cb8161272a565b6001600160a01b03169033821461093157336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b346103525760003660031901126103525760405160006008546109aa816120aa565b80845290600190818116908115610a4757506001146109ec575b6109e8846109d481860382612043565b6040519182916020835260208301906120e4565b0390f35b6008600090815292507ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b828410610a2f5750505081016020016109d4826109c4565b80546020858701810191909152909301928101610a17565b60ff191660208087019190915292151560051b850190920192506109d491508390506109c4565b34610352576000366003190112610352576006546040516001600160a01b039091168152602090f35b3461035257600036600319011261035257610ab0612248565b610ab8612495565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b3461035257600036600319011261035257610b12612248565b600680546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461035257606036600319011261035257610b6f611fe1565b6024906001600160401b0390823582811161035257610b9290369060040161213b565b91604490813590811161035257610bad90369060040161213b565b91610bb6612495565b6001600160a01b0316923384148015610d8e575b610bd3906124dc565b8315610bdf811561267a565b610bec82518551146125f8565b6000604051610bfa81612028565b52610d56575b60005b8151811015610c9c57610c168183612334565b51610c218286612334565b5190806000526003602081815260406000205492848410610c5a5790610c5595949392916000525203604060002055612325565b610c03565b60405162461bcd60e51b8152600481018390526028818d01526000805160206127f4833981519152818a015267616c537570706c7960c01b6064820152608490fd5b83828660005b8251811015610d115780610cb9610d0c9285612334565b51610cc48287612334565b519080600052602060008152604060002086600052815260406000205491610cee848410156126d2565b60005260008152604060002090866000525203604060002055612325565b610ca2565b50907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb610d48600094604051918291339583612655565b0390a46102cd604051612028565b9260009491945b8451811015610d845780610d74610d7f9286612334565b516102f98288612334565b610d5d565b5092939093610c00565b50836000526001602052604060002033600052602052610bd360ff604060002054169050610bca565b3461035257600036600319011261035257602060ff60065460a01c166040519015158152f35b34610352576040366003190112610352576001600160401b0360043581811161035257610e0e90369060040161221b565b919060243582811161035257610e2890369060040161221b565b929093610e33612248565b818111610fa95780610e466007546120aa565b93601f94858111611053575b50600090858311600114610fca57600092610fbf575b50508160011b916000199060031b1c1916176007555b8211610fa957610e8f6008546120aa565b818111610f4c575b506000908211600114610ed2578192600092610ec7575b5050600019600383901b1c191660019190911b17600855005b013590508280610eae565b601f198216927ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39160005b858110610f3457508360019510610f1a575b505050811b01600855005b0135600019600384901b60f8161c19169055828080610f0f565b90926020600181928686013581550194019101610efd565b7ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38280850160051c82019260208610610fa0575b0160051c01905b818110610f945750610e97565b60008155600101610f87565b92508192610f80565b634e487b7160e01b600052604160045260246000fd5b013590508680610e68565b909150601f1983169160076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889260005b81811061103b5750908460019594939210611021575b505050811b01600755610e7e565b0135600019600384901b60f8161c19169055868080611013565b91936020600181928787013581550195019201610ffd565b90915060076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6888580850160051c820192602086106110b8575b9085949392910160051c01905b8181106110a95750610e52565b6000815584935060010161109c565b9250819261108f565b3461035257602036600319011261035257600435600052600360205260206040600020541515604051908152f35b34610352576040366003190112610352576004356001600160401b0380821161035257366023830112156103525781600401359061112c82612124565b9261113a6040519485612043565b82845260209260248486019160051b8301019136831161035257602401905b82821061126e575050506024359081116103525761117b90369060040161213b565b82518151036112175782519261119084612124565b9361119e6040519586612043565b8085526111ad601f1991612124565b01368486013760005b8151811015611200576111fb906111eb6001600160a01b036111d88386612334565b51166111e48387612334565b51906122a0565b6111f58288612334565b52612325565b6111b6565b5050506109e86040519282849384528301906121e7565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b0381168103610352578152908401908401611159565b34610352576060366003190112610352576001600160401b03600435818111610352576112be9036906004016121b7565b9091602435908111610352576112d89036906004016121b7565b90916112e2612248565b81810361153f57826000855b8382106112f757005b61130282858361235e565b35936001600160a01b03851685036103525761131f83878661235e565b35906040519261132e84612028565b600084526001600160a01b038716156114f05761134c604435612470565b9561135684612470565b9860005b8851811015611381578061137161137c928d612334565b516102f9828c612334565b61135a565b50965096909750939291909360443560005260209260008452604060002060018060a01b038316600052845260406000206113bd84825461236e565b90556040805160443581528581018590526001600160a01b0384169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a4813b611418575b50505050600101909291936112ee565b61145f600092859260405194858094819363f23a6e6160e01b998a84523360048501528460248501526044356044850152606484015260a0608484015260a48301906120e4565b03926001600160a01b03165af1600091816114d1575b506114b85750506001906114876123e4565b6308c379a0146114a4575b506105fd576001905b90868080611408565b6114ac612402565b90816106775750611492565b6001600160e01b0319160390506106aa5760019061149b565b6114e9919250843d86116106eb576106dc8183612043565b9089611475565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f4d69736d61746368656420726563697069656e747320616e6420616d6f756e746044820152607360f81b6064820152608490fd5b346103525760003660031901126103525760206040516daaeb6d7670e522a718067333cd4e8152f35b34610352576000366003190112610352576115d0612248565b60065460ff8160a01c16156116175760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b346103525760031960a0368201126103525761166d611fe1565b90611676611ff7565b6044908135926001600160401b03938481116103525761169a90369060040161213b565b60648035868111610352576116b390369060040161213b565b946084968735908111610352576116ce903690600401612199565b6116d6612495565b6001600160a01b0394898616331480159081611a3e575b90611a13575b6116fc906124dc565b61170985518951146125f8565b85871615611717811561253f565b868b16156119d0575b61191b575b60005b85518110156117be578061173f6117b99288612334565b518c61174b838d612334565b519180600052826020926000845260406000208d821660005284526040600020549061177983831015612599565b83600052600085528d60406000209116600052845203604060002055600052600081526040600020908a8c1660005252610312604060002091825461236e565b611728565b50888a989796949789604051887f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb89808d169416928061180087339583612655565b0390a4873b61180b57005b60405198899788968863bc197c8160e01b9d8e8a523360048b0152166024890152870160a0905260a4870161183f916121e7565b90848783030190870152611852916121e7565b918483030190840152611864916120e4565b03921691815a602094600091f1600091816118fb575b506118d3575050600161188b6123e4565b6308c379a01461189c575b6105fd57005b6118a4612402565b806118af5750611896565b60405162461bcd60e51b81526020600482015290819061065f9060248301906120e4565b6001600160e01b031916146102cd5760405162461bcd60e51b81528061065f6004820161239b565b61191491925060203d81116106eb576106dc8183612043565b908361187a565b9796949060009993999692965b85518110156119c05761193b8187612334565b516119468289612334565b5190806000526020600381526040600020549183831061197f5761197a949392916003916000525203604060002055612325565b611928565b508b9067616c537570706c7960c01b8f6000805160206127f48339815191528e6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b5090949697989298959195611725565b99969498959392919060005b8a51811015611a0457808b6102f9826119f86119ff958f612334565b5192612334565b6119dc565b50909192939598949699611720565b50858a1660005260016020526040600020336000526020526116fc60ff6040600020541690506116f3565b611a473361272a565b6116ed565b3461035257604036600319011261035257602435600435600052600560205260406000209060405191611a7e8361200d565b546001600160a01b0380821680855260a09290921c6020850152929015611aec575b6001600160601b0360208201511691828102928184041490151715611ad657604092612710915116918351928352046020820152f35b634e487b7160e01b600052601160045260246000fd5b50604051611af98161200d565b600454838116825260a01c6020820152611aa0565b3461035257602080600319360112610352576040519060008260025491611b34836120aa565b92838352600190858282169182600014611bd0575050600114611b73575b50611b5f92500383612043565b6109e86040519282849384528301906120e4565b84915060026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace906000915b858310611bb8575050611b5f935082010185611b52565b80548389018501528794508693909201918101611ba1565b60ff191685820152611b5f95151560051b8501019250879150611b529050565b34610352576000366003190112610352576040516000600754611c12816120aa565b80845290600190818116908115610a475750600114611c3b576109e8846109d481860382612043565b6007600090815292507fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b828410611c7e5750505081016020016109d4826109c4565b80546020858701810191909152909301928101611c66565b3461035257604036600319011261035257611caf611fe1565b602435906001600160601b0382168083036103525761271090611cd0612248565b11611d48576001600160a01b0316908115611d0357611cf060405161200d565b60a01b6001600160a01b03191617600455005b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b3461035257602080600319360112610352576001600160401b03600435818111610352573660238201121561035257611de3903690602481600401359101612064565b91611dec612248565b8251918211610fa957611e006002546120aa565b601f8111611ec6575b5080601f8311600114611e4557508192600092611e3a575b5050600019600383901b1c191660019190911b17600255005b015190508280611e21565b90601f1983169360026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b868210611eae5750508360019510611e95575b505050811b01600255005b015160001960f88460031b161c19169055828080611e8a565b80600185968294968601518155019501930190611e77565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f840160051c810191838510611f20575b601f0160051c01905b818110611f145750611e09565b60008155600101611f07565b9091508190611efe565b346103525760203660031901126103525760043563ffffffff60e01b81168091036103525760209063152a902d60e11b8114908115611f6f575b506040519015158152f35b636cdb3d1360e11b811491508115611fa1575b8115611f90575b5082611f64565b6301ffc9a760e01b14905082611f89565b6303a24d0760e21b81149150611f82565b34610352576040366003190112610352576020611fd9611fd0611fe1565b602435906122a0565b604051908152f35b600435906001600160a01b038216820361035257565b602435906001600160a01b038216820361035257565b604081019081106001600160401b03821117610fa957604052565b602081019081106001600160401b03821117610fa957604052565b90601f801991011681019081106001600160401b03821117610fa957604052565b9291926001600160401b038211610fa9576040519161208d601f8201601f191660200184612043565b829481845281830111610352578281602093846000960137010152565b90600182811c921680156120da575b60208310146120c457565b634e487b7160e01b600052602260045260246000fd5b91607f16916120b9565b919082519283825260005b848110612110575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016120ef565b6001600160401b038111610fa95760051b60200190565b81601f820112156103525780359161215283612124565b926121606040519485612043565b808452602092838086019260051b820101928311610352578301905b82821061218a575050505090565b8135815290830190830161217c565b9080601f83011215610352578160206121b493359101612064565b90565b9181601f84011215610352578235916001600160401b038311610352576020808501948460051b01011161035257565b90815180825260208080930193019160005b828110612207575050505090565b8351855293810193928101926001016121f9565b9181601f84011215610352578235916001600160401b038311610352576020838186019501011161035257565b6006546001600160a01b0316330361225c57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156122cd57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611ad65760010190565b80518210156123485760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91908110156123485760051b0190565b91908201809211611ad657565b9081602091031261035257516001600160e01b0319811681036103525790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d116123f157565b905060046000803e60005160e01c90565b600060443d106121b457604051600319913d83016004833e81516001600160401b03918282113d60248401111761245f57818401948551938411612467573d8501016020848701011161245f57506121b492910160200190612043565b949350505050565b50949350505050565b6040519061247d8261200d565b60018252602082016020368237825115612348575290565b60ff60065460a01c166124a457565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b156124e357565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561254657565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b156125a057565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b156125ff57565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b909161266c6121b4936040845260408401906121e7565b9160208184039101526121e7565b1561268157565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b156126d957565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e90813b612744575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa9081156127e7576000916127a6575b501561278e5750565b60249060405190633b79c77360e21b82526004820152fd5b6020813d82116127df575b816127be60209383612043565b810103126127db57519081151582036127d8575038612785565b80fd5b5080fd5b3d91506127b1565b6040513d6000823e3d90fdfe455243313135353a206275726e20616d6f756e74206578636565647320746f74a26469706673582212209dd76aa25834ca72b1f71e341dec8d08d4b3422bbe29bcdb7f58401a21b1fdf164736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c8062fdd58e14611fb257806301ffc9a714611f2a57806302fe530514611da057806304634d8d14611c9657806306fdde0314611bf05780630e89341c14611b0e5780632a55205a14611a4c5780632eb2c2d6146116535780633f4ba83a146115b757806341f434341461158e57806345d11c2d1461128d5780634e1273f4146110ef5780634f558e79146110c15780635a44621514610ddd5780635c975abb14610db75780636b20c45414610b56578063715018a614610af95780638456cb5914610a975780638da5cb5b14610a6e57806395d89b4114610988578063a22cb4651461089b578063bd85b0391461086f578063e985e9c514610819578063f242432a1461041b578063f2fde38b146103575763f5298aca1461013957600080fd5b3461035257606036600319011261035257610152611fe1565b60249081356044803592610164612495565b6001600160a01b0316913383148015610329575b610181906124dc565b82159261018e841561267a565b61019782612470565b916101a186612470565b9460006040516101b081612028565b526102cf575b60005b8351811015610252576101cc8185612334565b516101d78288612334565b5190806000526003602081815260406000205492848410610210579061020b95949392916000525203604060002055612325565b6101b9565b506084906000805160206127f48339815191528a60288f6040519462461bcd60e51b8652600486015284015282015267616c537570706c7960c01b6064820152fd5b6000838389818452836020526040842083855260205280604085205461027a828210156126d2565b838652856020526040862085875260205203604085205560405191825260208201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a46102cd604051612028565b005b949195929060005b875181101561031e57806102ee6103199288612334565b516102f9828b612334565b516000526003602052610312604060002091825461236e565b9055612325565b6102d7565b5090929591946101b6565b5082600052600160205260406000203360005260205261018160ff604060002054169050610178565b600080fd5b3461035257602036600319011261035257610370611fe1565b610378612248565b6001600160a01b039081169081156103c757600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346103525760a036600319011261035257610434611fe1565b61043c611ff7565b90608480356001600160401b0381116103525761045d903690600401612199565b90610466612495565b6001600160a01b039183831633148015908161080b575b906107e0575b61048c906124dc565b8285161561049a811561253f565b6104a5604435612470565b6104b0606435612470565b91858716156107a0575b6106f2575b505060443560005260209460008652604060002084861660005286526040600020546104ef606435821015612599565b604435600052600087526040600020858716600052875260643590036040600020556044356000526000865260406000208482166000528652604060002061053a606435825461236e565b905560405160443581526064358782015284821690858716907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4803b61058157005b60a060006105cb958895604051978896879586938563f23a6e6160e01b9d8e87523360048801521660248601526044356044860152606435606486015284015260a48301906120e4565b0393165af1600091816106c3575b506106985750506001906105eb6123e4565b6308c379a014610663575b506105fd57005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608490fd5b0390fd5b61066b612402565b908161067757506105f6565b61065f60405192839262461bcd60e51b8452600484015260248301906120e4565b6001600160e01b0319161490506102cd575b60405162461bcd60e51b81528061065f6004820161239b565b6106e4919250843d86116106eb575b6106dc8183612043565b81019061237b565b90846105d9565b503d6106d2565b92959194909360005b84518110156107915761070e8186612334565b519061071a8188612334565b5182600052600360205260406000205481811061074e5761074993600052600360205203604060002055612325565b6106fb565b60405162461bcd60e51b815260206004820152602860248201526000805160206127f4833981519152604482015267616c537570706c7960c01b60648201528b90fd5b509350939094915085806104bf565b959260009794919592975b86518110156107d257806107c26107cd928b612334565b516102f9828a612334565b6107ab565b5092959691949093966104ba565b50828416600052600160205260406000203360005260205261048c60ff604060002054169050610483565b6108143361272a565b61047d565b3461035257604036600319011261035257610832611fe1565b61083a611ff7565b9060018060a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b346103525760203660031901126103525760043560005260036020526020604060002054604051908152f35b34610352576040366003190112610352576108b4611fe1565b60243590811515809203610352576108cb8161272a565b6001600160a01b03169033821461093157336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608490fd5b346103525760003660031901126103525760405160006008546109aa816120aa565b80845290600190818116908115610a4757506001146109ec575b6109e8846109d481860382612043565b6040519182916020835260208301906120e4565b0390f35b6008600090815292507ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b828410610a2f5750505081016020016109d4826109c4565b80546020858701810191909152909301928101610a17565b60ff191660208087019190915292151560051b850190920192506109d491508390506109c4565b34610352576000366003190112610352576006546040516001600160a01b039091168152602090f35b3461035257600036600319011261035257610ab0612248565b610ab8612495565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b3461035257600036600319011261035257610b12612248565b600680546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461035257606036600319011261035257610b6f611fe1565b6024906001600160401b0390823582811161035257610b9290369060040161213b565b91604490813590811161035257610bad90369060040161213b565b91610bb6612495565b6001600160a01b0316923384148015610d8e575b610bd3906124dc565b8315610bdf811561267a565b610bec82518551146125f8565b6000604051610bfa81612028565b52610d56575b60005b8151811015610c9c57610c168183612334565b51610c218286612334565b5190806000526003602081815260406000205492848410610c5a5790610c5595949392916000525203604060002055612325565b610c03565b60405162461bcd60e51b8152600481018390526028818d01526000805160206127f4833981519152818a015267616c537570706c7960c01b6064820152608490fd5b83828660005b8251811015610d115780610cb9610d0c9285612334565b51610cc48287612334565b519080600052602060008152604060002086600052815260406000205491610cee848410156126d2565b60005260008152604060002090866000525203604060002055612325565b610ca2565b50907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb610d48600094604051918291339583612655565b0390a46102cd604051612028565b9260009491945b8451811015610d845780610d74610d7f9286612334565b516102f98288612334565b610d5d565b5092939093610c00565b50836000526001602052604060002033600052602052610bd360ff604060002054169050610bca565b3461035257600036600319011261035257602060ff60065460a01c166040519015158152f35b34610352576040366003190112610352576001600160401b0360043581811161035257610e0e90369060040161221b565b919060243582811161035257610e2890369060040161221b565b929093610e33612248565b818111610fa95780610e466007546120aa565b93601f94858111611053575b50600090858311600114610fca57600092610fbf575b50508160011b916000199060031b1c1916176007555b8211610fa957610e8f6008546120aa565b818111610f4c575b506000908211600114610ed2578192600092610ec7575b5050600019600383901b1c191660019190911b17600855005b013590508280610eae565b601f198216927ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39160005b858110610f3457508360019510610f1a575b505050811b01600855005b0135600019600384901b60f8161c19169055828080610f0f565b90926020600181928686013581550194019101610efd565b7ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38280850160051c82019260208610610fa0575b0160051c01905b818110610f945750610e97565b60008155600101610f87565b92508192610f80565b634e487b7160e01b600052604160045260246000fd5b013590508680610e68565b909150601f1983169160076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889260005b81811061103b5750908460019594939210611021575b505050811b01600755610e7e565b0135600019600384901b60f8161c19169055868080611013565b91936020600181928787013581550195019201610ffd565b90915060076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6888580850160051c820192602086106110b8575b9085949392910160051c01905b8181106110a95750610e52565b6000815584935060010161109c565b9250819261108f565b3461035257602036600319011261035257600435600052600360205260206040600020541515604051908152f35b34610352576040366003190112610352576004356001600160401b0380821161035257366023830112156103525781600401359061112c82612124565b9261113a6040519485612043565b82845260209260248486019160051b8301019136831161035257602401905b82821061126e575050506024359081116103525761117b90369060040161213b565b82518151036112175782519261119084612124565b9361119e6040519586612043565b8085526111ad601f1991612124565b01368486013760005b8151811015611200576111fb906111eb6001600160a01b036111d88386612334565b51166111e48387612334565b51906122a0565b6111f58288612334565b52612325565b6111b6565b5050506109e86040519282849384528301906121e7565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608490fd5b81356001600160a01b0381168103610352578152908401908401611159565b34610352576060366003190112610352576001600160401b03600435818111610352576112be9036906004016121b7565b9091602435908111610352576112d89036906004016121b7565b90916112e2612248565b81810361153f57826000855b8382106112f757005b61130282858361235e565b35936001600160a01b03851685036103525761131f83878661235e565b35906040519261132e84612028565b600084526001600160a01b038716156114f05761134c604435612470565b9561135684612470565b9860005b8851811015611381578061137161137c928d612334565b516102f9828c612334565b61135a565b50965096909750939291909360443560005260209260008452604060002060018060a01b038316600052845260406000206113bd84825461236e565b90556040805160443581528581018590526001600160a01b0384169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a4813b611418575b50505050600101909291936112ee565b61145f600092859260405194858094819363f23a6e6160e01b998a84523360048501528460248501526044356044850152606484015260a0608484015260a48301906120e4565b03926001600160a01b03165af1600091816114d1575b506114b85750506001906114876123e4565b6308c379a0146114a4575b506105fd576001905b90868080611408565b6114ac612402565b90816106775750611492565b6001600160e01b0319160390506106aa5760019061149b565b6114e9919250843d86116106eb576106dc8183612043565b9089611475565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f4d69736d61746368656420726563697069656e747320616e6420616d6f756e746044820152607360f81b6064820152608490fd5b346103525760003660031901126103525760206040516daaeb6d7670e522a718067333cd4e8152f35b34610352576000366003190112610352576115d0612248565b60065460ff8160a01c16156116175760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b346103525760031960a0368201126103525761166d611fe1565b90611676611ff7565b6044908135926001600160401b03938481116103525761169a90369060040161213b565b60648035868111610352576116b390369060040161213b565b946084968735908111610352576116ce903690600401612199565b6116d6612495565b6001600160a01b0394898616331480159081611a3e575b90611a13575b6116fc906124dc565b61170985518951146125f8565b85871615611717811561253f565b868b16156119d0575b61191b575b60005b85518110156117be578061173f6117b99288612334565b518c61174b838d612334565b519180600052826020926000845260406000208d821660005284526040600020549061177983831015612599565b83600052600085528d60406000209116600052845203604060002055600052600081526040600020908a8c1660005252610312604060002091825461236e565b611728565b50888a989796949789604051887f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb89808d169416928061180087339583612655565b0390a4873b61180b57005b60405198899788968863bc197c8160e01b9d8e8a523360048b0152166024890152870160a0905260a4870161183f916121e7565b90848783030190870152611852916121e7565b918483030190840152611864916120e4565b03921691815a602094600091f1600091816118fb575b506118d3575050600161188b6123e4565b6308c379a01461189c575b6105fd57005b6118a4612402565b806118af5750611896565b60405162461bcd60e51b81526020600482015290819061065f9060248301906120e4565b6001600160e01b031916146102cd5760405162461bcd60e51b81528061065f6004820161239b565b61191491925060203d81116106eb576106dc8183612043565b908361187a565b9796949060009993999692965b85518110156119c05761193b8187612334565b516119468289612334565b5190806000526020600381526040600020549183831061197f5761197a949392916003916000525203604060002055612325565b611928565b508b9067616c537570706c7960c01b8f6000805160206127f48339815191528e6040519462461bcd60e51b8652600486015260286024860152840152820152fd5b5090949697989298959195611725565b99969498959392919060005b8a51811015611a0457808b6102f9826119f86119ff958f612334565b5192612334565b6119dc565b50909192939598949699611720565b50858a1660005260016020526040600020336000526020526116fc60ff6040600020541690506116f3565b611a473361272a565b6116ed565b3461035257604036600319011261035257602435600435600052600560205260406000209060405191611a7e8361200d565b546001600160a01b0380821680855260a09290921c6020850152929015611aec575b6001600160601b0360208201511691828102928184041490151715611ad657604092612710915116918351928352046020820152f35b634e487b7160e01b600052601160045260246000fd5b50604051611af98161200d565b600454838116825260a01c6020820152611aa0565b3461035257602080600319360112610352576040519060008260025491611b34836120aa565b92838352600190858282169182600014611bd0575050600114611b73575b50611b5f92500383612043565b6109e86040519282849384528301906120e4565b84915060026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace906000915b858310611bb8575050611b5f935082010185611b52565b80548389018501528794508693909201918101611ba1565b60ff191685820152611b5f95151560051b8501019250879150611b529050565b34610352576000366003190112610352576040516000600754611c12816120aa565b80845290600190818116908115610a475750600114611c3b576109e8846109d481860382612043565b6007600090815292507fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b828410611c7e5750505081016020016109d4826109c4565b80546020858701810191909152909301928101611c66565b3461035257604036600319011261035257611caf611fe1565b602435906001600160601b0382168083036103525761271090611cd0612248565b11611d48576001600160a01b0316908115611d0357611cf060405161200d565b60a01b6001600160a01b03191617600455005b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b3461035257602080600319360112610352576001600160401b03600435818111610352573660238201121561035257611de3903690602481600401359101612064565b91611dec612248565b8251918211610fa957611e006002546120aa565b601f8111611ec6575b5080601f8311600114611e4557508192600092611e3a575b5050600019600383901b1c191660019190911b17600255005b015190508280611e21565b90601f1983169360026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b868210611eae5750508360019510611e95575b505050811b01600255005b015160001960f88460031b161c19169055828080611e8a565b80600185968294968601518155019501930190611e77565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f840160051c810191838510611f20575b601f0160051c01905b818110611f145750611e09565b60008155600101611f07565b9091508190611efe565b346103525760203660031901126103525760043563ffffffff60e01b81168091036103525760209063152a902d60e11b8114908115611f6f575b506040519015158152f35b636cdb3d1360e11b811491508115611fa1575b8115611f90575b5082611f64565b6301ffc9a760e01b14905082611f89565b6303a24d0760e21b81149150611f82565b34610352576040366003190112610352576020611fd9611fd0611fe1565b602435906122a0565b604051908152f35b600435906001600160a01b038216820361035257565b602435906001600160a01b038216820361035257565b604081019081106001600160401b03821117610fa957604052565b602081019081106001600160401b03821117610fa957604052565b90601f801991011681019081106001600160401b03821117610fa957604052565b9291926001600160401b038211610fa9576040519161208d601f8201601f191660200184612043565b829481845281830111610352578281602093846000960137010152565b90600182811c921680156120da575b60208310146120c457565b634e487b7160e01b600052602260045260246000fd5b91607f16916120b9565b919082519283825260005b848110612110575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016120ef565b6001600160401b038111610fa95760051b60200190565b81601f820112156103525780359161215283612124565b926121606040519485612043565b808452602092838086019260051b820101928311610352578301905b82821061218a575050505090565b8135815290830190830161217c565b9080601f83011215610352578160206121b493359101612064565b90565b9181601f84011215610352578235916001600160401b038311610352576020808501948460051b01011161035257565b90815180825260208080930193019160005b828110612207575050505090565b8351855293810193928101926001016121f9565b9181601f84011215610352578235916001600160401b038311610352576020838186019501011161035257565b6006546001600160a01b0316330361225c57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156122cd57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608490fd5b6000198114611ad65760010190565b80518210156123485760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91908110156123485760051b0190565b91908201809211611ad657565b9081602091031261035257516001600160e01b0319811681036103525790565b60809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b60009060033d116123f157565b905060046000803e60005160e01c90565b600060443d106121b457604051600319913d83016004833e81516001600160401b03918282113d60248401111761245f57818401948551938411612467573d8501016020848701011161245f57506121b492910160200190612043565b949350505050565b50949350505050565b6040519061247d8261200d565b60018252602082016020368237825115612348575290565b60ff60065460a01c166124a457565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b156124e357565b60405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201526d195c881bdc88185c1c1c9bdd995960921b6064820152608490fd5b1561254657565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b156125a057565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608490fd5b156125ff57565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608490fd5b909161266c6121b4936040845260408401906121e7565b9160208184039101526121e7565b1561268157565b60405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b156126d957565b60405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e90813b612744575050565b604051633185c44d60e21b81523060048201526001600160a01b039091166024820181905291602090829060449082905afa9081156127e7576000916127a6575b501561278e5750565b60249060405190633b79c77360e21b82526004820152fd5b6020813d82116127df575b816127be60209383612043565b810103126127db57519081151582036127d8575038612785565b80fd5b5080fd5b3d91506127b1565b6040513d6000823e3d90fdfe455243313135353a206275726e20616d6f756e74206578636565647320746f74a26469706673582212209dd76aa25834ca72b1f71e341dec8d08d4b3422bbe29bcdb7f58401a21b1fdf164736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseUri (string):

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


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.