token-gallery-contracts/contracts/IERC1155MetadataURI.sol

22 lines
594 B
Solidity
Raw Normal View History

2025-01-18 12:44:49 +00:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.2;
/**
* @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 {
/**
* @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);
event URI(string value, uint256 id);
}