* Make holder fns public * Add context, remove msg.sender from check * Fix location of Holder arguments * Add beforeTransfer hook * Minor test improvements * Add ERC1155Burnable and tests * Add ERC1155Pausable * Add ERC1155PresetMinterPauser.sol * Add uri constructors * Improved revert reasons * Initial docs improvements * Add missing docs * Improve acceptance checks revert reasons * Apply suggestions from code review Co-authored-by: Francisco Giordano <frangio.1@gmail.com> * Remove note about 1155 preset uri in mint * Add rquirements to balanceOfBatch * Add note about URI and uri * Fix list in docs * Fix lint errors * Use natural sorting for API titles * Fix doc references * Escape {id} references to remove docgen warnings * Added intro docs, fixed links * Apply suggestions from code review Co-authored-by: Francisco Giordano <frangio.1@gmail.com> * Add changelog entry Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
20 lines
560 B
Solidity
20 lines
560 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.2;
|
|
|
|
import "./IERC1155.sol";
|
|
|
|
/**
|
|
* @dev Interface of the optional ERC1155MetadataExtension interface, as defined
|
|
* in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
|
|
*/
|
|
interface IERC1155MetadataURI is IERC1155 {
|
|
/**
|
|
* @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);
|
|
}
|