You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
732 B
23 lines
732 B
4 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
pragma solidity ^0.8.0;
|
||
|
|
||
|
import "./IERC165.sol";
|
||
|
|
||
|
/**
|
||
|
* @dev Interface for the NFT Royalty Standard
|
||
|
*/
|
||
|
interface IERC2981 is IERC165 {
|
||
|
/**
|
||
|
* @notice Called with the sale price to determine how much royalty is owed and to whom.
|
||
|
* @param tokenId - the NFT asset queried for royalty information
|
||
|
* @param salePrice - the sale price of the NFT asset specified by `tokenId`
|
||
|
* @return receiver - address of who should be sent the royalty payment
|
||
|
* @return royaltyAmount - the royalty payment amount for `salePrice`
|
||
|
*/
|
||
|
function royaltyInfo(uint256 tokenId, uint256 salePrice)
|
||
|
external
|
||
|
view
|
||
|
returns (address receiver, uint256 royaltyAmount);
|
||
|
}
|