IERC1155MetadataURI.sol 560 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.6.2;
  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. interface IERC1155MetadataURI is IERC1155 {
  9. /**
  10. * @dev Returns the URI for token type `id`.
  11. *
  12. * If the `\{id\}` substring is present in the URI, it must be replaced by
  13. * clients with the actual token type ID.
  14. */
  15. function uri(uint256 id) external view returns (string memory);
  16. }