IERC2981.sol 788 B

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