ETH Price: $3,115.98 (+1.31%)
 

Overview

Max Total Supply

25

Holders

26

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x6b78569e01979663386496c03d676f810ed5853f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DEDPRZ_Seed_NFT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

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

import 'erc1155delta/contracts/extensions/ERC1155DeltaQueryable.sol';
import { ERC2981 } from '@openzeppelin/contracts/token/common/ERC2981.sol';
import 'operator-filter-registry/src/DefaultOperatorFilterer.sol';

/**
 /$$$$$$$  /$$$$$$$$ /$$$$$$$  /$$$$$$$  /$$$$$$$  /$$$$$$$$
| $$__  $$| $$_____/| $$__  $$| $$__  $$| $$__  $$|_____ $$ 
| $$  \ $$| $$      | $$  \ $$| $$  \ $$| $$  \ $$     /$$/ 
| $$  | $$| $$$$$   | $$  | $$| $$$$$$$/| $$$$$$$/    /$$/  
| $$  | $$| $$__/   | $$  | $$| $$____/ | $$__  $$   /$$/   
| $$  | $$| $$      | $$  | $$| $$      | $$  \ $$  /$$/    
| $$$$$$$/| $$$$$$$$| $$$$$$$/| $$      | $$  | $$ /$$$$$$$$
|_______/ |________/|_______/ |__/      |__/  |__/|________/

www.dedprz.io
*/

/**
 * @title DEDPRZ Contract
 * @dev Extends ERC1155Delta Non-Fungible Token Standard
 */
contract DEDPRZ_Seed_NFT is
  ERC1155DeltaQueryable,
  ERC2981,
  DefaultOperatorFilterer
{
  address public owner; // contract owner

  /// @dev Owner only modifier
  modifier onlyOwner() {
    require(msg.sender == owner, '!Owner');
    _;
  }

  /// @dev Constructooor
  constructor()
    ERC1155Delta('https://dedprz-seed.s3.amazonaws.com/{id}.json')
    ERC1155DeltaQueryable()
    ERC2981()
  {
    // set owner
    owner = msg.sender;

    // mint 25 NFTs to deploying wallet
    _mint(msg.sender, 25);

    // set default royalty
    _setDefaultRoyalty(owner, 500);
  }

  /// @dev Override to use filter operator
  function setApprovalForAll(
    address operator,
    bool approved
  ) public override onlyAllowedOperatorApproval(operator) {
    super.setApprovalForAll(operator, approved);
  }

  /// @dev Override transfer to use filter operator
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    uint256 amount,
    bytes memory data
  ) public override onlyAllowedOperator(from) {
    super.safeTransferFrom(from, to, tokenId, amount, data);
  }

  /// @dev Override batch transfer to use filter operator
  function safeBatchTransferFrom(
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) public virtual override onlyAllowedOperator(from) {
    super.safeBatchTransferFrom(from, to, ids, amounts, data);
  }

  /// @dev Override ERC1155Delta to also support ERC2981 royalty standard
  function supportsInterface(
    bytes4 interfaceId
  ) public view virtual override(ERC1155Delta, ERC2981) returns (bool) {
    return
      ERC1155Delta.supportsInterface(interfaceId) ||
      ERC2981.supportsInterface(interfaceId);
  }

  /// @notice Owner transfer function to send each of the 25 tokens to 25 different addresses
  function ownerTransfer(
    address[] memory to,
    uint256[] memory ids
  ) external onlyOwner {
    for (uint256 i = 0; i < 25; i++) {
      _safeTransferFrom(msg.sender, to[i], ids[i], 1, '');
    }
  }

  /// @notice Get total minted
  function totalMinted() public view returns (uint256) {
    return _totalMinted();
  }

  /// @notice Set owner address
  function setOwner(address newOwner) external onlyOwner {
    owner = newOwner;
  }

  /// @notice Set URI of tokens for future IPFS update
  function setURI(string memory newuri) external virtual onlyOwner {
    _setURI(newuri);
  }

  /// @notice Set royalty for marketplaces complying with ERC2981 standard
  function setDefaultRoyalty(
    address receiver,
    uint96 feeNumerator
  ) public onlyOwner {
    _setDefaultRoyalty(receiver, feeNumerator);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 4 of 20 : 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 5 of 20 : 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 6 of 20 : 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 7 of 20 : 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 8 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 11 of 20 : ERC1155Delta.sol
// SPDX-License-Identifier: MIT
// Creator: Ctor Lab (https://ctor.xyz)

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "solady/src/utils/LibBitmap.sol";

import "./IERC1155Delta.sol";


contract ERC1155Delta is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Delta {

    using Address for address;
    using LibBitmap for LibBitmap.Bitmap;

    // Mapping from accout to owned tokens
    mapping(address => LibBitmap.Bitmap) internal _owned;
    
    // 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;

    // The next token ID to be minted.
    uint256 private _currentIndex;

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

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal pure virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        return _nextTokenId() - _startTokenId();
    }

    /**
     * @dev Returns true if the account owns the `id` token.
     */
    function isOwnerOf(address account, uint256 id) public view virtual override returns(bool) {
        return _owned[account].get(id);
    }

    /**
     * @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 ||
            interfaceId == type(IERC1155Delta).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) {
        if(account == address(0)) {
            revert BalanceQueryForZeroAddress();
        }
        if(_owned[account].get(id)) {
            return 1;
        } else {
            return 0;
        }   
    }

    /**
     * @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)
    {
        if(accounts.length != ids.length) {
            revert InputLengthMistmatch();
        }

        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 {
        if(from == _msgSender() || isApprovedForAll(from, _msgSender())){
            _safeTransferFrom(from, to, id, amount, data);
        } else {
            revert TransferCallerNotOwnerNorApproved();
        }
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        if(!(from == _msgSender() || isApprovedForAll(from, _msgSender()))) {
            revert TransferCallerNotOwnerNorApproved();
        }
        _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.
     * - `amount` cannot be zero.
     * - `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 {
        if(to == address(0)) {
            revert TransferToZeroAddress();
        }

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

        _beforeTokenTransfer(operator, from, to, ids);

        if(amount == 1 && _owned[from].get(id)) {
            _owned[from].unset(id);
            _owned[to].set(id);
        } else {
            revert TransferFromIncorrectOwnerOrInvalidAmount();
        } 

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

        _afterTokenTransfer(operator, from, to, ids);

        _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 {
        if(ids.length != amounts.length) {
            revert InputLengthMistmatch();
        }

        if(to == address(0)) {
            revert TransferToZeroAddress();
        }
        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids);

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

            if(amount == 1 && _owned[from].get(id)) {
                _owned[from].unset(id);
                _owned[to].set(id);
            } else {
                revert TransferFromIncorrectOwnerOrInvalidAmount();
            }
        }

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

        _afterTokenTransfer(operator, from, to, ids);

        _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;
    }

    function _mint(
        address to,
        uint256 amount
    ) internal virtual {
        _mint(to, amount, "");
    }

    /**
     * @dev Creates `amount` tokens, and assigns them to `to`.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `amount` cannot be zero.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 amount,
        bytes memory data
    ) internal virtual {
       (uint256[] memory ids, uint256[] memory amounts) =  _mintWithoutCheck(to, amount);

        uint256 end = _currentIndex;
        _doSafeBatchTransferAcceptanceCheck(_msgSender(), address(0), to, ids, amounts, data);
        if (_currentIndex != end) revert();
    }

    function _mintWithoutCheck(
        address to,
        uint256 amount
    ) internal virtual returns(uint256[] memory ids, uint256[] memory amounts) {

        if(to == address(0)) {
            revert MintToZeroAddress();
        }
        if(amount == 0) {
            revert MintZeroQuantity();
        }

        address operator = _msgSender();

        ids = new uint256[](amount);
        amounts = new uint256[](amount);
        uint256 startTokenId = _nextTokenId();

        unchecked {
            require(type(uint256).max - amount >= startTokenId);
            for(uint256 i = 0; i < amount; i++) {
                ids[i] = startTokenId + i;
                amounts[i] = 1;
            }
        }
        
        _beforeTokenTransfer(operator, address(0), to, ids);

        _owned[to].setBatch(startTokenId, amount);
        _currentIndex += amount;

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

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

    }

    /**
     * @dev Destroys token of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have the token of token type `id`.
     */
    function _burn(
        address from,
        uint256 id
    ) internal virtual {
        if(from == address(0)){
            revert BurnFromZeroAddress();
        }

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

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

        if(!_owned[from].get(id)) {
            revert BurnFromNonOnwerAddress();
        }

        _owned[from].unset(id);

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

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

    /**
     * @dev Destroys tokens of token types in `ids` from `from`
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have the token of token types in `ids`.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids
    ) internal virtual {
        if(from == address(0)){
            revert BurnFromZeroAddress();
        }

        address operator = _msgSender();

        uint256[] memory amounts = new uint256[](ids.length);

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

        unchecked {
            for(uint256 i = 0; i < ids.length; i++) {
                amounts[i] = 1;
                uint256 id = ids[i];
                if(!_owned[from].get(id)) {
                    revert BurnFromNonOnwerAddress();
                }
                _owned[from].unset(id);
            }
        }
        
        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids);

    }


     /**
     * @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
    ) 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
    ) 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 TransferToNonERC1155ReceiverImplementer();
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert TransferToNonERC1155ReceiverImplementer();
            }
        }
    }

    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 TransferToNonERC1155ReceiverImplementer();
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert TransferToNonERC1155ReceiverImplementer();
            }
        }
    }

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

File 12 of 20 : ERC1155DeltaQueryable.sol
// SPDX-License-Identifier: MIT
// Creator: Ctor Lab (https://ctor.xyz)

pragma solidity ^0.8.0;

import "solady/src/utils/LibBitmap.sol";

import "../ERC1155Delta.sol";

import "./IERC1155DeltaQueryable.sol";

abstract contract ERC1155DeltaQueryable is IERC1155DeltaQueryable, ERC1155Delta {
    using LibBitmap for LibBitmap.Bitmap;


    /**
     * @dev Returns the number of tokens owned by `owner`.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        return balanceOf(owner, _startTokenId(), _nextTokenId());
    }


    /**
     * @dev Returns the number of tokens owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function balanceOf(address owner, uint256 start, uint256 stop) public view virtual override returns (uint256) {
        return _owned[owner].popCount(start, stop - start);
    }


    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC1155DelataQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) public view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            
            
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            
            // Set `stop = min(stop, stopLimit)`.
            uint256 stopLimit = _nextTokenId();
            if (stop > stopLimit) {
                stop = stopLimit;
            }

            uint256 tokenIdsLength;
            if(start < stop) {
                tokenIdsLength = balanceOf(owner, start, stop);
            } else {
                tokenIdsLength = 0;
            }
            
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);

            LibBitmap.Bitmap storage bmap = _owned[owner];
            
            for ((uint256 i, uint256 tokenIdsIdx) = (start, 0); tokenIdsIdx != tokenIdsLength; ++i) {
                if(bmap.get(i) ) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC1155DeltaQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) public view virtual override returns (uint256[] memory) {
        if(_totalMinted() == 0) {
            return new uint256[](0);
        }
        return tokensOfOwnerIn(owner, _startTokenId(), _nextTokenId());
    }
}

File 13 of 20 : IERC1155DeltaQueryable.sol
// SPDX-License-Identifier: MIT
// Creator: Ctor Lab (https://ctor.xyz)

pragma solidity ^0.8.0;



interface IERC1155DeltaQueryable {

    error InvalidQueryRange();

    function balanceOf(address owner) external view returns (uint256);

    function balanceOf(address owner, uint256 start, uint256 stop) external view returns (uint256);

    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    function tokensOfOwner(address owner) external view returns (uint256[] memory);
    
}

File 14 of 20 : IERC1155Delta.sol
// SPDX-License-Identifier: MIT
// Creator: Ctor Lab (https://ctor.xyz)

pragma solidity ^0.8.0;


interface IERC1155Delta {

    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * Cannot burn from the zero address.
     */
    error BurnFromZeroAddress();

    /**
     * Cannot burn from the address that doesn't owne the token.
     */
    error BurnFromNonOnwerAddress();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from` or the `amount` is not 1.
     */
    error TransferFromIncorrectOwnerOrInvalidAmount();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC1155Receiver interface.
     */
    error TransferToNonERC1155ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The length of input arraies is not matching.
     */
    error InputLengthMistmatch();
    

    function isOwnerOf(address account, uint256 id) external view returns(bool);

}

File 15 of 20 : 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 16 of 20 : 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 17 of 20 : 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 18 of 20 : 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);
            }
        }
    }
}

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

/// @notice Library for bit twiddling operations.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibBit.sol)
/// @author Inspired by (https://graphics.stanford.edu/~seander/bithacks.html)
library LibBit {
    /// @dev Find last set.
    /// Returns the index of the most significant bit of `x`,
    /// counting from the least significant bit position.
    /// If `x` is zero, returns 256.
    /// Equivalent to `log2(x)`, but without reverting for the zero case.
    function fls(uint256 x) internal pure returns (uint256 r) {
        /// @solidity memory-safe-assembly
        assembly {
            r := shl(8, iszero(x))

            r := or(r, shl(7, lt(0xffffffffffffffffffffffffffffffff, x)))
            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))
            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))

            // For the remaining 32 bits, use a De Bruijn lookup.
            x := shr(r, x)
            x := or(x, shr(1, x))
            x := or(x, shr(2, x))
            x := or(x, shr(4, x))
            x := or(x, shr(8, x))
            x := or(x, shr(16, x))

            // forgefmt: disable-next-item
            r := or(r, byte(shr(251, mul(x, shl(224, 0x07c4acdd))),
                0x0009010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f))
        }
    }

    /// @dev Count leading zeros.
    /// Returns the number of zeros preceding the most significant one bit.
    /// If `x` is zero, returns 256.
    function clz(uint256 x) internal pure returns (uint256 r) {
        /// @solidity memory-safe-assembly
        assembly {
            let t := add(iszero(x), 255)

            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))
            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))
            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))

            // For the remaining 32 bits, use a De Bruijn lookup.
            x := shr(r, x)
            x := or(x, shr(1, x))
            x := or(x, shr(2, x))
            x := or(x, shr(4, x))
            x := or(x, shr(8, x))
            x := or(x, shr(16, x))

            // forgefmt: disable-next-item
            r := sub(t, or(r, byte(shr(251, mul(x, shl(224, 0x07c4acdd))),
                0x0009010a0d15021d0b0e10121619031e080c141c0f111807131b17061a05041f)))
        }
    }

    /// @dev Find first set.
    /// Returns the index of the least significant bit of `x`,
    /// counting from the least significant bit position.
    /// If `x` is zero, returns 256.
    /// Equivalent to `ctz` (count trailing zeros), which gives
    /// the number of zeros following the least significant one bit.
    function ffs(uint256 x) internal pure returns (uint256 r) {
        /// @solidity memory-safe-assembly
        assembly {
            r := shl(8, iszero(x))

            // Isolate the least significant bit.
            x := and(x, add(not(x), 1))

            r := or(r, shl(7, lt(0xffffffffffffffffffffffffffffffff, x)))
            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))
            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))

            // For the remaining 32 bits, use a De Bruijn lookup.
            // forgefmt: disable-next-item
            r := or(r, byte(shr(251, mul(shr(r, x), shl(224, 0x077cb531))), 
                0x00011c021d0e18031e16140f191104081f1b0d17151310071a0c12060b050a09))
        }
    }

    /// @dev Returns the number of set bits in `x`.
    function popCount(uint256 x) internal pure returns (uint256 c) {
        /// @solidity memory-safe-assembly
        assembly {
            let max := not(0)
            let isMax := eq(x, max)
            x := sub(x, and(shr(1, x), div(max, 3)))
            x := add(and(x, div(max, 5)), and(shr(2, x), div(max, 5)))
            x := and(add(x, shr(4, x)), div(max, 17))
            c := or(shl(8, isMax), shr(248, mul(x, div(max, 255))))
        }
    }

    /// @dev Returns whether `x` is a power of 2.
    function isPo2(uint256 x) internal pure returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            // Equivalent to `x && !(x & (x - 1))`.
            result := iszero(add(and(x, sub(x, 1)), iszero(x)))
        }
    }
}

File 20 of 20 : LibBitmap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./LibBit.sol";

/// @notice Library for storage of packed unsigned booleans.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibBitmap.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibBitmap.sol)
/// @author Modified from Solidity-Bits (https://github.com/estarriolvetch/solidity-bits/blob/main/contracts/BitMaps.sol)
library LibBitmap {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The constant returned when a bitmap scan does not find a result.
    uint256 internal constant NOT_FOUND = type(uint256).max;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STRUCTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev A bitmap in storage.
    struct Bitmap {
        mapping(uint256 => uint256) map;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         OPERATIONS                         */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the boolean value of the bit at `index` in `bitmap`.
    function get(Bitmap storage bitmap, uint256 index) internal view returns (bool isSet) {
        // It is better to set `isSet` to either 0 or 1, than zero vs non-zero.
        // Both cost the same amount of gas, but the former allows the returned value
        // to be reused without cleaning the upper bits.
        uint256 b = (bitmap.map[index >> 8] >> (index & 0xff)) & 1;
        /// @solidity memory-safe-assembly
        assembly {
            isSet := b
        }
    }

    /// @dev Updates the bit at `index` in `bitmap` to true.
    function set(Bitmap storage bitmap, uint256 index) internal {
        bitmap.map[index >> 8] |= (1 << (index & 0xff));
    }

    /// @dev Updates the bit at `index` in `bitmap` to false.
    function unset(Bitmap storage bitmap, uint256 index) internal {
        bitmap.map[index >> 8] &= ~(1 << (index & 0xff));
    }

    /// @dev Flips the bit at `index` in `bitmap`.
    /// Returns the boolean result of the flipped bit.
    function toggle(Bitmap storage bitmap, uint256 index) internal returns (bool newIsSet) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, shr(8, index))
            mstore(0x20, bitmap.slot)
            let storageSlot := keccak256(0x00, 0x40)
            let shift := and(index, 0xff)
            let storageValue := sload(storageSlot)

            let mask := shl(shift, 1)
            storageValue := xor(storageValue, mask)
            // It makes sense to return the `newIsSet`,
            // as it allow us to skip an additional warm `sload`,
            // and it costs minimal gas (about 15),
            // which may be optimized away if the returned value is unused.
            newIsSet := iszero(iszero(and(storageValue, mask)))
            sstore(storageSlot, storageValue)
        }
    }

    /// @dev Updates the bit at `index` in `bitmap` to `shouldSet`.
    function setTo(Bitmap storage bitmap, uint256 index, bool shouldSet) internal {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, bitmap.slot)
            mstore(0x00, shr(8, index))
            let storageSlot := keccak256(0x00, 0x40)
            let storageValue := sload(storageSlot)
            let shift := and(index, 0xff)

            sstore(
                storageSlot,
                // Unsets the bit at `shift` via `and`, then sets its new value via `or`.
                or(and(storageValue, not(shl(shift, 1))), shl(shift, iszero(iszero(shouldSet))))
            )
        }
    }

    /// @dev Consecutively sets `amount` of bits starting from the bit at `start`.
    function setBatch(Bitmap storage bitmap, uint256 start, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let max := not(0)
            let shift := and(start, 0xff)
            mstore(0x20, bitmap.slot)
            mstore(0x00, shr(8, start))
            if iszero(lt(add(shift, amount), 257)) {
                let storageSlot := keccak256(0x00, 0x40)
                sstore(storageSlot, or(sload(storageSlot), shl(shift, max)))
                let bucket := add(mload(0x00), 1)
                let bucketEnd := add(mload(0x00), shr(8, add(amount, shift)))
                amount := and(add(amount, shift), 0xff)
                shift := 0
                for {} iszero(eq(bucket, bucketEnd)) { bucket := add(bucket, 1) } {
                    mstore(0x00, bucket)
                    sstore(keccak256(0x00, 0x40), max)
                }
                mstore(0x00, bucket)
            }
            let storageSlot := keccak256(0x00, 0x40)
            sstore(storageSlot, or(sload(storageSlot), shl(shift, shr(sub(256, amount), max))))
        }
    }

    /// @dev Consecutively unsets `amount` of bits starting from the bit at `start`.
    function unsetBatch(Bitmap storage bitmap, uint256 start, uint256 amount) internal {
        /// @solidity memory-safe-assembly
        assembly {
            let shift := and(start, 0xff)
            mstore(0x20, bitmap.slot)
            mstore(0x00, shr(8, start))
            if iszero(lt(add(shift, amount), 257)) {
                let storageSlot := keccak256(0x00, 0x40)
                sstore(storageSlot, and(sload(storageSlot), not(shl(shift, not(0)))))
                let bucket := add(mload(0x00), 1)
                let bucketEnd := add(mload(0x00), shr(8, add(amount, shift)))
                amount := and(add(amount, shift), 0xff)
                shift := 0
                for {} iszero(eq(bucket, bucketEnd)) { bucket := add(bucket, 1) } {
                    mstore(0x00, bucket)
                    sstore(keccak256(0x00, 0x40), 0)
                }
                mstore(0x00, bucket)
            }
            let storageSlot := keccak256(0x00, 0x40)
            sstore(
                storageSlot, and(sload(storageSlot), not(shl(shift, shr(sub(256, amount), not(0)))))
            )
        }
    }

    /// @dev Returns number of set bits within a range by
    /// scanning `amount` of bits starting from the bit at `start`.
    function popCount(Bitmap storage bitmap, uint256 start, uint256 amount)
        internal
        view
        returns (uint256 count)
    {
        unchecked {
            uint256 bucket = start >> 8;
            uint256 shift = start & 0xff;
            if (!(amount + shift < 257)) {
                count = LibBit.popCount(bitmap.map[bucket] >> shift);
                uint256 bucketEnd = bucket + ((amount + shift) >> 8);
                amount = (amount + shift) & 0xff;
                shift = 0;
                for (++bucket; bucket != bucketEnd; ++bucket) {
                    count += LibBit.popCount(bitmap.map[bucket]);
                }
            }
            count += LibBit.popCount((bitmap.map[bucket] >> shift) << (256 - amount));
        }
    }

    /// @dev Returns the index of the most significant set bit before the bit at `before`.
    /// If no set bit is found, returns `NOT_FOUND`.
    function findLastSet(Bitmap storage bitmap, uint256 before)
        internal
        view
        returns (uint256 setBitIndex)
    {
        uint256 bucket;
        uint256 bucketBits;
        /// @solidity memory-safe-assembly
        assembly {
            setBitIndex := not(0)
            bucket := shr(8, before)
            mstore(0x00, bucket)
            mstore(0x20, bitmap.slot)
            let offset := and(0xff, not(before)) // `256 - (255 & before) - 1`.
            bucketBits := shr(offset, shl(offset, sload(keccak256(0x00, 0x40))))
            if iszero(bucketBits) {
                for {} bucket {} {
                    bucket := add(bucket, setBitIndex) // `sub(bucket, 1)`.
                    mstore(0x00, bucket)
                    bucketBits := sload(keccak256(0x00, 0x40))
                    if bucketBits { break }
                }
            }
        }
        if (bucketBits != 0) {
            setBitIndex = (bucket << 8) | LibBit.fls(bucketBits);
            /// @solidity memory-safe-assembly
            assembly {
                setBitIndex := or(setBitIndex, sub(0, gt(setBitIndex, before)))
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BurnFromNonOnwerAddress","type":"error"},{"inputs":[],"name":"BurnFromZeroAddress","type":"error"},{"inputs":[],"name":"InputLengthMistmatch","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwnerOrInvalidAmount","type":"error"},{"inputs":[],"name":"TransferToNonERC1155ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"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":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"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":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"ownerTransfer","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":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060600160405280602e815260200162002b2c602e91396200004e81620001dd565b6000600355506daaeb6d7670e522a718067333cd4e3b1562000199578015620000e757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000c857600080fd5b505af1158015620000dd573d6000803e3d6000fd5b5050505062000199565b6001600160a01b03821615620001385760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000ad565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200017f57600080fd5b505af115801562000194573d6000803e3d6000fd5b505050505b5050600680546001600160a01b03191633908117909155620001bd906019620001ef565b600654620001d7906001600160a01b03166101f462000211565b62000b13565b6002620001eb8282620007cb565b5050565b620001eb8282604051806020016040528060008152506200031660201b60201c565b6127106001600160601b0382161115620002855760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002dd5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200027c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600455565b60008062000325858562000355565b60035491935091506200033e336000888686896200055d565b80600354146200034d57600080fd5b505050505050565b6060806001600160a01b0384166200037f57604051622e076360e81b815260040160405180910390fd5b82600003620003a15760405163b562e8dd60e01b815260040160405180910390fd5b33836001600160401b03811115620003bd57620003bd6200072a565b604051908082528060200260200182016040528015620003e7578160200160208202803683370190505b509250836001600160401b038111156200040557620004056200072a565b6040519080825280602002602001820160405280156200042f578160200160208202803683370190505b50915060006200043e60035490565b905080856000190310156200045257600080fd5b60005b85811015620004ad5780820185828151811062000476576200047662000897565b602002602001018181525050600184828151811062000499576200049962000897565b602090810291909101015260010162000455565b506001600160a01b038616600090815260208181526040909120620004df918390889062000ab26200069b821b17901c565b8460036000828254620004f39190620008ad565b92505081905550856001600160a01b031660006001600160a01b0316836001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516200054c92919062000912565b60405180910390a450509250929050565b6200057c846001600160a01b03166200071b60201b62000b2f1760201c565b156200034d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190620005b890899089908890889088906004016200098c565b6020604051808303816000875af1925050508015620005f6575060408051601f3d908101601f19168201909252620005f391810190620009f0565b60015b62000660576200060562000a23565b806308c379a0036200064557506200061c62000a6f565b8062000629575062000647565b8060405162461bcd60e51b81526004016200027c919062000afe565b505b604051639c05499b60e01b815260040160405180910390fd5b6001600160e01b0319811663bc197c8160e01b146200069257604051639c05499b60e01b815260040160405180910390fd5b50505050505050565b60001960ff8316846020528360081c6000526101018382011062000700576000805160408220805485851b1790559390910160ff811693600181019160081c015b808214620006fb578160005283604060002055600182019150620006dc565b506000525b60406000208284610100031c821b8154178155505050505050565b6001600160a01b03163b151590565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200075557607f821691505b6020821081036200077657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007c657600081815260208120601f850160051c81016020861015620007a55750805b601f850160051c820191505b818110156200034d57828155600101620007b1565b505050565b81516001600160401b03811115620007e757620007e76200072a565b620007ff81620007f8845462000740565b846200077c565b602080601f8311600181146200083757600084156200081e5750858301515b600019600386901b1c1916600185901b1785556200034d565b600085815260208120601f198616915b82811015620008685788860151825594840194600190910190840162000847565b5085821015620008875787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b80820180821115620008cf57634e487b7160e01b600052601160045260246000fd5b92915050565b600081518084526020808501945080840160005b838110156200090757815187529582019590820190600101620008e9565b509495945050505050565b604081526000620009276040830185620008d5565b82810360208401526200093b8185620008d5565b95945050505050565b6000815180845260005b818110156200096c576020818501810151868301820152016200094e565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b0386811682528516602082015260a060408201819052600090620009ba90830186620008d5565b8281036060840152620009ce8186620008d5565b90508281036080840152620009e4818562000944565b98975050505050505050565b60006020828403121562000a0357600080fd5b81516001600160e01b03198116811462000a1c57600080fd5b9392505050565b600060033d111562000a3d5760046000803e5060005160e01c5b90565b601f8201601f191681016001600160401b038111828210171562000a685762000a686200072a565b6040525050565b600060443d101562000a7e5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000aae57505050505090565b828501915081518181111562000ac75750505050505090565b843d870101602082850101111562000ae25750505050505090565b62000af36020828601018762000a40565b509095945050505050565b60208152600062000a1c602083018462000944565b6120098062000b236000396000f3fe608060405234801561001057600080fd5b50600436106101765760003560e01c806341f43434116100d857806399a2557a1161008c578063c5b8f77211610066578063c5b8f7721461033e578063e985e9c514610351578063f242432a1461038d57600080fd5b806399a2557a14610310578063a22cb46514610323578063a2309ff81461033657600080fd5b806370a08231116100bd57806370a08231146102d75780638462151c146102ea5780638da5cb5b146102fd57600080fd5b806341f434341461028a5780634e1273f4146102b757600080fd5b806313af40351161012f5780632d760d57116101145780632d760d57146102515780632eb2c2d61461026457806333abb0321461027757600080fd5b806313af40351461020c5780632a55205a1461021f57600080fd5b806302fe53051161016057806302fe5305146101c457806304634d8d146101d95780630e89341c146101ec57600080fd5b8062fdd58e1461017b57806301ffc9a7146101a1575b600080fd5b61018e610189366004611698565b6103a0565b6040519081526020015b60405180910390f35b6101b46101af3660046116d8565b610427565b6040519015158152602001610198565b6101d76101d2366004611796565b610441565b005b6101d76101e73660046117df565b610495565b6101ff6101fa366004611827565b6104e6565b6040516101989190611886565b6101d761021a366004611899565b61057a565b61023261022d3660046118b4565b6105f7565b604080516001600160a01b039093168352602083019190915201610198565b61018e61025f3660046118d6565b6106b2565b6101d76102723660046119be565b6106e9565b6101d7610285366004611a68565b610718565b61029f6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610198565b6102ca6102c5366004611a68565b6107cd565b6040516101989190611b6e565b61018e6102e5366004611899565b6108b6565b6102ca6102f8366004611899565b6108c5565b60065461029f906001600160a01b031681565b6102ca61031e3660046118d6565b6108f4565b6101d7610331366004611b8f565b610a32565b61018e610a46565b6101b461034c366004611698565b610a55565b6101b461035f366004611bbb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101d761039b366004611bee565b610a8b565b60006001600160a01b0383166103e2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600090815260208181526040808320600886901c845290915290205460ff83161c6001161561041d57506001610421565b5060005b92915050565b600061043282610b3e565b80610421575061042182610c0d565b6006546001600160a01b031633146104895760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b60448201526064015b60405180910390fd5b61049281610c4b565b50565b6006546001600160a01b031633146104d85760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b6104e28282610c57565b5050565b6060600280546104f590611c53565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611c53565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b50505050509050919050565b6006546001600160a01b031633146105bd5760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916106765750604080518082019091526004546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061069a906bffffffffffffffffffffffff1687611ca3565b6106a49190611cba565b915196919550909350505050565b60006106e1836106c28185611cdc565b6001600160a01b03871660009081526020819052604090209190610d71565b949350505050565b846001600160a01b03811633146107035761070333610e14565b6107108686868686610eff565b505050505050565b6006546001600160a01b0316331461075b5760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b60005b60198110156107c8576107b63384838151811061077d5761077d611cef565b602002602001015184848151811061079757610797611cef565b6020026020010151600160405180602001604052806000815250610f4c565b806107c081611d05565b91505061075e565b505050565b606081518351146107f157604051637801f4e960e01b815260040160405180910390fd5b6000835167ffffffffffffffff81111561080d5761080d6116f5565b604051908082528060200260200182016040528015610836578160200160208202803683370190505b50905060005b84518110156108ae5761088185828151811061085a5761085a611cef565b602002602001015185838151811061087457610874611cef565b60200260200101516103a0565b82828151811061089357610893611cef565b60209081029190910101526108a781611d05565b905061083c565b509392505050565b600061042182826003546106b2565b60606108cf6110c1565b6000036108ea57505060408051600081526020810190915290565b6104218260006003545b606081831061092f576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061093a60035490565b905080831115610948578092505b6000838510156109645761095d8686866106b2565b9050610968565b5060005b60008167ffffffffffffffff811115610983576109836116f5565b6040519080825280602002602001820160405280156109ac578160200160208202803683370190505b506001600160a01b038816600090815260208190526040812091925087905b848114610a2457600882901c60009081526020849052604090205460ff83161c60011615610a195781848280600101935081518110610a0c57610a0c611cef565b6020026020010181815250505b8160010191506109cb565b509198975050505050505050565b81610a3c81610e14565b6107c883836110d1565b6000610a506110c1565b905090565b6001600160a01b038216600090815260208181526040808320600885901c845290915281205460ff83161c6001165b9392505050565b846001600160a01b0381163314610aa557610aa533610e14565b61071086868686866110dc565b60001960ff8316846020528360081c60005261010183820110610b14576000805160408220805485851b1790559390910160ff811693600181019160081c015b808214610b0f578160005283604060002055600182019150610af2565b506000525b60406000208284610100031c821b8154178155505050505050565b6001600160a01b03163b151590565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610ba157506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bd557506001600160e01b031982167fc5b8f77200000000000000000000000000000000000000000000000000000000145b8061042157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610421565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610421575061042182610b3e565b60026104e28282611d64565b6127106bffffffffffffffffffffffff82161115610cdd5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610480565b6001600160a01b038216610d335760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610480565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600455565b6000600883901c60ff841661010184820110610de757600082815260208790526040902054610da190821c611128565b930160ff8116939250600182019160009160081c015b808314610de557600083815260208890526040902054610dd690611128565b84019350826001019250610db7565b505b600082815260208790526040902054610e0890821c6101008690031b611128565b90920195945050505050565b6daaeb6d7670e522a718067333cd4e3b15610492576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebe9190611e24565b610492576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610480565b6001600160a01b038516331480610f1b5750610f1b853361035f565b610f3857604051632ce44b5f60e11b815260040160405180910390fd5b610f4585858585856111d8565b5050505050565b6001600160a01b038416610f7357604051633a954ecd60e21b815260040160405180910390fd5b336000610f7f85611375565b9050836001148015610fbb57506001600160a01b038716600090815260208181526040808320600889901c845290915290205460ff86161c6001165b15611018576001600160a01b0387811660009081526020818152604080832060088a901c8085529083528184208054600160ff8d161b8019909116909155948b16845283835281842090845290915290208054909117905561104a565b6040517f37dbad3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516110a2929190918252602082015260400190565b60405180910390a46110b88288888888886113bc565b50505050505050565b600080600354610a509190611cdc565b6104e23383836114cc565b6001600160a01b0385163314806110f857506110f8853361035f565b1561110f5761110a8585858585610f4c565b610f45565b604051632ce44b5f60e11b815260040160405180910390fd5b7f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f5555555555555555555555555555555555555555555555555555555555555555600183901c168203600281901c7f3333333333333333333333333333333333333333333333333333333333333333908116911601600481901c01167f01010101010101010101010101010101010101010101010101010101010101010260f81c6000199190911460081b1790565b81518351146111fa57604051637801f4e960e01b815260040160405180910390fd5b6001600160a01b03841661122157604051633a954ecd60e21b815260040160405180910390fd5b3360005b845181101561130f57600085828151811061124257611242611cef565b60200260200101519050600085838151811061126057611260611cef565b602002602001015190508060011480156112a457506001600160a01b038916600090815260208181526040808320600886901c845290915290205460ff83161c6001165b1561101857506001600160a01b03888116600090815260208181526040808320600886901c8085529083528184208054600160ff9098169790971b80199097169055938b168352828252808320938352929052208054909117905561130881611d05565b9050611225565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161135f929190611e41565b60405180910390a46107108187878787876115c0565b6040805160018082528183019092526060916020808301908036833701905050905081816000815181106113ab576113ab611cef565b602002602001018181525050919050565b6001600160a01b0384163b156107105760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906114009089908990889088908890600401611e6f565b6020604051808303816000875af192505050801561143b575060408051601f3d908101601f1916820190925261143891810190611eb2565b60015b61149b57611447611ecf565b806308c379a003611480575061145b611eeb565b806114665750611482565b8060405162461bcd60e51b81526004016104809190611886565b505b604051639c05499b60e01b815260040160405180910390fd5b6001600160e01b0319811663f23a6e6160e01b146110b857604051639c05499b60e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b0316036115535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610480565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384163b156107105760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906116049089908990889088908890600401611f75565b6020604051808303816000875af192505050801561163f575060408051601f3d908101601f1916820190925261163c91810190611eb2565b60015b61164b57611447611ecf565b6001600160e01b0319811663bc197c8160e01b146110b857604051639c05499b60e01b815260040160405180910390fd5b80356001600160a01b038116811461169357600080fd5b919050565b600080604083850312156116ab57600080fd5b6116b48361167c565b946020939093013593505050565b6001600160e01b03198116811461049257600080fd5b6000602082840312156116ea57600080fd5b8135610a84816116c2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611731576117316116f5565b6040525050565b600067ffffffffffffffff831115611752576117526116f5565b604051611769601f8501601f19166020018261170b565b80915083815284848401111561177e57600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156117a857600080fd5b813567ffffffffffffffff8111156117bf57600080fd5b8201601f810184136117d057600080fd5b6106e184823560208401611738565b600080604083850312156117f257600080fd5b6117fb8361167c565b915060208301356bffffffffffffffffffffffff8116811461181c57600080fd5b809150509250929050565b60006020828403121561183957600080fd5b5035919050565b6000815180845260005b818110156118665760208185018101518683018201520161184a565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610a846020830184611840565b6000602082840312156118ab57600080fd5b610a848261167c565b600080604083850312156118c757600080fd5b50508035926020909101359150565b6000806000606084860312156118eb57600080fd5b6118f48461167c565b95602085013595506040909401359392505050565b600067ffffffffffffffff821115611923576119236116f5565b5060051b60200190565b600082601f83011261193e57600080fd5b8135602061194b82611909565b604051611958828261170b565b83815260059390931b850182019282810191508684111561197857600080fd5b8286015b84811015611993578035835291830191830161197c565b509695505050505050565b600082601f8301126119af57600080fd5b610a8483833560208501611738565b600080600080600060a086880312156119d657600080fd5b6119df8661167c565b94506119ed6020870161167c565b9350604086013567ffffffffffffffff80821115611a0a57600080fd5b611a1689838a0161192d565b94506060880135915080821115611a2c57600080fd5b611a3889838a0161192d565b93506080880135915080821115611a4e57600080fd5b50611a5b8882890161199e565b9150509295509295909350565b60008060408385031215611a7b57600080fd5b823567ffffffffffffffff80821115611a9357600080fd5b818501915085601f830112611aa757600080fd5b81356020611ab482611909565b604051611ac1828261170b565b83815260059390931b8501820192828101915089841115611ae157600080fd5b948201945b83861015611b0657611af78661167c565b82529482019490820190611ae6565b96505086013592505080821115611b1c57600080fd5b50611b298582860161192d565b9150509250929050565b600081518084526020808501945080840160005b83811015611b6357815187529582019590820190600101611b47565b509495945050505050565b602081526000610a846020830184611b33565b801515811461049257600080fd5b60008060408385031215611ba257600080fd5b611bab8361167c565b9150602083013561181c81611b81565b60008060408385031215611bce57600080fd5b611bd78361167c565b9150611be56020840161167c565b90509250929050565b600080600080600060a08688031215611c0657600080fd5b611c0f8661167c565b9450611c1d6020870161167c565b93506040860135925060608601359150608086013567ffffffffffffffff811115611c4757600080fd5b611a5b8882890161199e565b600181811c90821680611c6757607f821691505b602082108103611c8757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761042157610421611c8d565b600082611cd757634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561042157610421611c8d565b634e487b7160e01b600052603260045260246000fd5b600060018201611d1757611d17611c8d565b5060010190565b601f8211156107c857600081815260208120601f850160051c81016020861015611d455750805b601f850160051c820191505b8181101561071057828155600101611d51565b815167ffffffffffffffff811115611d7e57611d7e6116f5565b611d9281611d8c8454611c53565b84611d1e565b602080601f831160018114611dc75760008415611daf5750858301515b600019600386901b1c1916600185901b178555610710565b600085815260208120601f198616915b82811015611df657888601518255948401946001909101908401611dd7565b5085821015611e145787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215611e3657600080fd5b8151610a8481611b81565b604081526000611e546040830185611b33565b8281036020840152611e668185611b33565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611ea760a0830184611840565b979650505050505050565b600060208284031215611ec457600080fd5b8151610a84816116c2565b600060033d1115611ee85760046000803e5060005160e01c5b90565b600060443d1015611ef95790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611f2957505050505090565b8285019150815181811115611f415750505050505090565b843d8701016020828501011115611f5b5750505050505090565b611f6a6020828601018761170b565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152611fa160a0830186611b33565b8281036060840152611fb38186611b33565b90508281036080840152611fc78185611840565b9897505050505050505056fea26469706673582212208e6e6691ea89827a2a0922c52defd0effe20deb201d10e63ce4a677a4304b9bf64736f6c6343000811003368747470733a2f2f64656470727a2d736565642e73332e616d617a6f6e6177732e636f6d2f7b69647d2e6a736f6e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101765760003560e01c806341f43434116100d857806399a2557a1161008c578063c5b8f77211610066578063c5b8f7721461033e578063e985e9c514610351578063f242432a1461038d57600080fd5b806399a2557a14610310578063a22cb46514610323578063a2309ff81461033657600080fd5b806370a08231116100bd57806370a08231146102d75780638462151c146102ea5780638da5cb5b146102fd57600080fd5b806341f434341461028a5780634e1273f4146102b757600080fd5b806313af40351161012f5780632d760d57116101145780632d760d57146102515780632eb2c2d61461026457806333abb0321461027757600080fd5b806313af40351461020c5780632a55205a1461021f57600080fd5b806302fe53051161016057806302fe5305146101c457806304634d8d146101d95780630e89341c146101ec57600080fd5b8062fdd58e1461017b57806301ffc9a7146101a1575b600080fd5b61018e610189366004611698565b6103a0565b6040519081526020015b60405180910390f35b6101b46101af3660046116d8565b610427565b6040519015158152602001610198565b6101d76101d2366004611796565b610441565b005b6101d76101e73660046117df565b610495565b6101ff6101fa366004611827565b6104e6565b6040516101989190611886565b6101d761021a366004611899565b61057a565b61023261022d3660046118b4565b6105f7565b604080516001600160a01b039093168352602083019190915201610198565b61018e61025f3660046118d6565b6106b2565b6101d76102723660046119be565b6106e9565b6101d7610285366004611a68565b610718565b61029f6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610198565b6102ca6102c5366004611a68565b6107cd565b6040516101989190611b6e565b61018e6102e5366004611899565b6108b6565b6102ca6102f8366004611899565b6108c5565b60065461029f906001600160a01b031681565b6102ca61031e3660046118d6565b6108f4565b6101d7610331366004611b8f565b610a32565b61018e610a46565b6101b461034c366004611698565b610a55565b6101b461035f366004611bbb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101d761039b366004611bee565b610a8b565b60006001600160a01b0383166103e2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600090815260208181526040808320600886901c845290915290205460ff83161c6001161561041d57506001610421565b5060005b92915050565b600061043282610b3e565b80610421575061042182610c0d565b6006546001600160a01b031633146104895760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b60448201526064015b60405180910390fd5b61049281610c4b565b50565b6006546001600160a01b031633146104d85760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b6104e28282610c57565b5050565b6060600280546104f590611c53565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611c53565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b50505050509050919050565b6006546001600160a01b031633146105bd5760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008281526005602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916106765750604080518082019091526004546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061069a906bffffffffffffffffffffffff1687611ca3565b6106a49190611cba565b915196919550909350505050565b60006106e1836106c28185611cdc565b6001600160a01b03871660009081526020819052604090209190610d71565b949350505050565b846001600160a01b03811633146107035761070333610e14565b6107108686868686610eff565b505050505050565b6006546001600160a01b0316331461075b5760405162461bcd60e51b815260206004820152600660248201526510a7bbb732b960d11b6044820152606401610480565b60005b60198110156107c8576107b63384838151811061077d5761077d611cef565b602002602001015184848151811061079757610797611cef565b6020026020010151600160405180602001604052806000815250610f4c565b806107c081611d05565b91505061075e565b505050565b606081518351146107f157604051637801f4e960e01b815260040160405180910390fd5b6000835167ffffffffffffffff81111561080d5761080d6116f5565b604051908082528060200260200182016040528015610836578160200160208202803683370190505b50905060005b84518110156108ae5761088185828151811061085a5761085a611cef565b602002602001015185838151811061087457610874611cef565b60200260200101516103a0565b82828151811061089357610893611cef565b60209081029190910101526108a781611d05565b905061083c565b509392505050565b600061042182826003546106b2565b60606108cf6110c1565b6000036108ea57505060408051600081526020810190915290565b6104218260006003545b606081831061092f576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061093a60035490565b905080831115610948578092505b6000838510156109645761095d8686866106b2565b9050610968565b5060005b60008167ffffffffffffffff811115610983576109836116f5565b6040519080825280602002602001820160405280156109ac578160200160208202803683370190505b506001600160a01b038816600090815260208190526040812091925087905b848114610a2457600882901c60009081526020849052604090205460ff83161c60011615610a195781848280600101935081518110610a0c57610a0c611cef565b6020026020010181815250505b8160010191506109cb565b509198975050505050505050565b81610a3c81610e14565b6107c883836110d1565b6000610a506110c1565b905090565b6001600160a01b038216600090815260208181526040808320600885901c845290915281205460ff83161c6001165b9392505050565b846001600160a01b0381163314610aa557610aa533610e14565b61071086868686866110dc565b60001960ff8316846020528360081c60005261010183820110610b14576000805160408220805485851b1790559390910160ff811693600181019160081c015b808214610b0f578160005283604060002055600182019150610af2565b506000525b60406000208284610100031c821b8154178155505050505050565b6001600160a01b03163b151590565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610ba157506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bd557506001600160e01b031982167fc5b8f77200000000000000000000000000000000000000000000000000000000145b8061042157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610421565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610421575061042182610b3e565b60026104e28282611d64565b6127106bffffffffffffffffffffffff82161115610cdd5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610480565b6001600160a01b038216610d335760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610480565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600455565b6000600883901c60ff841661010184820110610de757600082815260208790526040902054610da190821c611128565b930160ff8116939250600182019160009160081c015b808314610de557600083815260208890526040902054610dd690611128565b84019350826001019250610db7565b505b600082815260208790526040902054610e0890821c6101008690031b611128565b90920195945050505050565b6daaeb6d7670e522a718067333cd4e3b15610492576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebe9190611e24565b610492576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610480565b6001600160a01b038516331480610f1b5750610f1b853361035f565b610f3857604051632ce44b5f60e11b815260040160405180910390fd5b610f4585858585856111d8565b5050505050565b6001600160a01b038416610f7357604051633a954ecd60e21b815260040160405180910390fd5b336000610f7f85611375565b9050836001148015610fbb57506001600160a01b038716600090815260208181526040808320600889901c845290915290205460ff86161c6001165b15611018576001600160a01b0387811660009081526020818152604080832060088a901c8085529083528184208054600160ff8d161b8019909116909155948b16845283835281842090845290915290208054909117905561104a565b6040517f37dbad3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516110a2929190918252602082015260400190565b60405180910390a46110b88288888888886113bc565b50505050505050565b600080600354610a509190611cdc565b6104e23383836114cc565b6001600160a01b0385163314806110f857506110f8853361035f565b1561110f5761110a8585858585610f4c565b610f45565b604051632ce44b5f60e11b815260040160405180910390fd5b7f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f5555555555555555555555555555555555555555555555555555555555555555600183901c168203600281901c7f3333333333333333333333333333333333333333333333333333333333333333908116911601600481901c01167f01010101010101010101010101010101010101010101010101010101010101010260f81c6000199190911460081b1790565b81518351146111fa57604051637801f4e960e01b815260040160405180910390fd5b6001600160a01b03841661122157604051633a954ecd60e21b815260040160405180910390fd5b3360005b845181101561130f57600085828151811061124257611242611cef565b60200260200101519050600085838151811061126057611260611cef565b602002602001015190508060011480156112a457506001600160a01b038916600090815260208181526040808320600886901c845290915290205460ff83161c6001165b1561101857506001600160a01b03888116600090815260208181526040808320600886901c8085529083528184208054600160ff9098169790971b80199097169055938b168352828252808320938352929052208054909117905561130881611d05565b9050611225565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161135f929190611e41565b60405180910390a46107108187878787876115c0565b6040805160018082528183019092526060916020808301908036833701905050905081816000815181106113ab576113ab611cef565b602002602001018181525050919050565b6001600160a01b0384163b156107105760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906114009089908990889088908890600401611e6f565b6020604051808303816000875af192505050801561143b575060408051601f3d908101601f1916820190925261143891810190611eb2565b60015b61149b57611447611ecf565b806308c379a003611480575061145b611eeb565b806114665750611482565b8060405162461bcd60e51b81526004016104809190611886565b505b604051639c05499b60e01b815260040160405180910390fd5b6001600160e01b0319811663f23a6e6160e01b146110b857604051639c05499b60e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b0316036115535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610480565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384163b156107105760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906116049089908990889088908890600401611f75565b6020604051808303816000875af192505050801561163f575060408051601f3d908101601f1916820190925261163c91810190611eb2565b60015b61164b57611447611ecf565b6001600160e01b0319811663bc197c8160e01b146110b857604051639c05499b60e01b815260040160405180910390fd5b80356001600160a01b038116811461169357600080fd5b919050565b600080604083850312156116ab57600080fd5b6116b48361167c565b946020939093013593505050565b6001600160e01b03198116811461049257600080fd5b6000602082840312156116ea57600080fd5b8135610a84816116c2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611731576117316116f5565b6040525050565b600067ffffffffffffffff831115611752576117526116f5565b604051611769601f8501601f19166020018261170b565b80915083815284848401111561177e57600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156117a857600080fd5b813567ffffffffffffffff8111156117bf57600080fd5b8201601f810184136117d057600080fd5b6106e184823560208401611738565b600080604083850312156117f257600080fd5b6117fb8361167c565b915060208301356bffffffffffffffffffffffff8116811461181c57600080fd5b809150509250929050565b60006020828403121561183957600080fd5b5035919050565b6000815180845260005b818110156118665760208185018101518683018201520161184a565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610a846020830184611840565b6000602082840312156118ab57600080fd5b610a848261167c565b600080604083850312156118c757600080fd5b50508035926020909101359150565b6000806000606084860312156118eb57600080fd5b6118f48461167c565b95602085013595506040909401359392505050565b600067ffffffffffffffff821115611923576119236116f5565b5060051b60200190565b600082601f83011261193e57600080fd5b8135602061194b82611909565b604051611958828261170b565b83815260059390931b850182019282810191508684111561197857600080fd5b8286015b84811015611993578035835291830191830161197c565b509695505050505050565b600082601f8301126119af57600080fd5b610a8483833560208501611738565b600080600080600060a086880312156119d657600080fd5b6119df8661167c565b94506119ed6020870161167c565b9350604086013567ffffffffffffffff80821115611a0a57600080fd5b611a1689838a0161192d565b94506060880135915080821115611a2c57600080fd5b611a3889838a0161192d565b93506080880135915080821115611a4e57600080fd5b50611a5b8882890161199e565b9150509295509295909350565b60008060408385031215611a7b57600080fd5b823567ffffffffffffffff80821115611a9357600080fd5b818501915085601f830112611aa757600080fd5b81356020611ab482611909565b604051611ac1828261170b565b83815260059390931b8501820192828101915089841115611ae157600080fd5b948201945b83861015611b0657611af78661167c565b82529482019490820190611ae6565b96505086013592505080821115611b1c57600080fd5b50611b298582860161192d565b9150509250929050565b600081518084526020808501945080840160005b83811015611b6357815187529582019590820190600101611b47565b509495945050505050565b602081526000610a846020830184611b33565b801515811461049257600080fd5b60008060408385031215611ba257600080fd5b611bab8361167c565b9150602083013561181c81611b81565b60008060408385031215611bce57600080fd5b611bd78361167c565b9150611be56020840161167c565b90509250929050565b600080600080600060a08688031215611c0657600080fd5b611c0f8661167c565b9450611c1d6020870161167c565b93506040860135925060608601359150608086013567ffffffffffffffff811115611c4757600080fd5b611a5b8882890161199e565b600181811c90821680611c6757607f821691505b602082108103611c8757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761042157610421611c8d565b600082611cd757634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561042157610421611c8d565b634e487b7160e01b600052603260045260246000fd5b600060018201611d1757611d17611c8d565b5060010190565b601f8211156107c857600081815260208120601f850160051c81016020861015611d455750805b601f850160051c820191505b8181101561071057828155600101611d51565b815167ffffffffffffffff811115611d7e57611d7e6116f5565b611d9281611d8c8454611c53565b84611d1e565b602080601f831160018114611dc75760008415611daf5750858301515b600019600386901b1c1916600185901b178555610710565b600085815260208120601f198616915b82811015611df657888601518255948401946001909101908401611dd7565b5085821015611e145787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215611e3657600080fd5b8151610a8481611b81565b604081526000611e546040830185611b33565b8281036020840152611e668185611b33565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611ea760a0830184611840565b979650505050505050565b600060208284031215611ec457600080fd5b8151610a84816116c2565b600060033d1115611ee85760046000803e5060005160e01c5b90565b600060443d1015611ef95790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611f2957505050505090565b8285019150815181811115611f415750505050505090565b843d8701016020828501011115611f5b5750505050505090565b611f6a6020828601018761170b565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a06040830152611fa160a0830186611b33565b8281036060840152611fb38186611b33565b90508281036080840152611fc78185611840565b9897505050505050505056fea26469706673582212208e6e6691ea89827a2a0922c52defd0effe20deb201d10e63ce4a677a4304b9bf64736f6c63430008110033

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.