IERC2981.sol 888 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)
  3. pragma solidity ^0.8.0;
  4. import "../utils/introspection/IERC165.sol";
  5. /**
  6. * @dev Interface for the NFT Royalty Standard.
  7. *
  8. * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
  9. * support for royalty payments across all NFT marketplaces and ecosystem participants.
  10. *
  11. * _Available since v4.5._
  12. */
  13. interface IERC2981 is IERC165 {
  14. /**
  15. * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
  16. * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
  17. */
  18. function royaltyInfo(uint256 tokenId, uint256 salePrice)
  19. external
  20. view
  21. returns (address receiver, uint256 royaltyAmount);
  22. }