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.
25 lines
888 B
25 lines
888 B
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/introspection/IERC165.sol";
|
|
|
|
/**
|
|
* @dev Interface for the NFT Royalty Standard.
|
|
*
|
|
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
|
|
* support for royalty payments across all NFT marketplaces and ecosystem participants.
|
|
*
|
|
* _Available since v4.5._
|
|
*/
|
|
interface IERC2981 is IERC165 {
|
|
/**
|
|
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
|
|
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
|
|
*/
|
|
function royaltyInfo(uint256 tokenId, uint256 salePrice)
|
|
external
|
|
view
|
|
returns (address receiver, uint256 royaltyAmount);
|
|
}
|
|
|