IERC1155MetadataURI.sol 591 B

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