IERC1155MetadataURI.sol 677 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)
  3. pragma solidity ^0.8.20;
  4. import {IERC1155} from "../IERC1155.sol";
  5. /**
  6. * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
  7. * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[ERC].
  8. */
  9. interface IERC1155MetadataURI is IERC1155 {
  10. /**
  11. * @dev Returns the URI for token type `id`.
  12. *
  13. * If the `\{id\}` substring is present in the URI, it must be replaced by
  14. * clients with the actual token type ID.
  15. */
  16. function uri(uint256 id) external view returns (string memory);
  17. }