IERC2981.sol 729 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "./IERC165.sol";
  4. /**
  5. * @dev Interface for the NFT Royalty Standard
  6. */
  7. interface IERC2981 is IERC165 {
  8. /**
  9. * @dev Called with the sale price to determine how much royalty is owed and to whom.
  10. * @param tokenId - the NFT asset queried for royalty information
  11. * @param salePrice - the sale price of the NFT asset specified by `tokenId`
  12. * @return receiver - address of who should be sent the royalty payment
  13. * @return royaltyAmount - the royalty payment amount for `salePrice`
  14. */
  15. function royaltyInfo(uint256 tokenId, uint256 salePrice)
  16. external
  17. view
  18. returns (address receiver, uint256 royaltyAmount);
  19. }