IERC1155MetadataURI.sol 680 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts v4.4.0-rc.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol)
  3. pragma solidity ^0.8.0;
  4. import "../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[EIP].
  8. *
  9. * _Available since v3.1._
  10. */
  11. interface IERC1155MetadataURI is IERC1155 {
  12. /**
  13. * @dev Returns the URI for token type `id`.
  14. *
  15. * If the `\{id\}` substring is present in the URI, it must be replaced by
  16. * clients with the actual token type ID.
  17. */
  18. function uri(uint256 id) external view returns (string memory);
  19. }