IERC4906.sol 846 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.1.0-rc.0) (interfaces/IERC4906.sol)
  3. pragma solidity ^0.8.20;
  4. import {IERC165} from "./IERC165.sol";
  5. import {IERC721} from "./IERC721.sol";
  6. /// @title ERC-721 Metadata Update Extension
  7. interface IERC4906 is IERC165, IERC721 {
  8. /// @dev This event emits when the metadata of a token is changed.
  9. /// So that the third-party platforms such as NFT market could
  10. /// timely update the images and related attributes of the NFT.
  11. event MetadataUpdate(uint256 _tokenId);
  12. /// @dev This event emits when the metadata of a range of tokens is changed.
  13. /// So that the third-party platforms such as NFT market could
  14. /// timely update the images and related attributes of the NFTs.
  15. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
  16. }