Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: cairo <cairoeth@protonmail.com> Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: sudo rm -rf --no-preserve-root / <pcaversaccio@users.noreply.github.com> Co-authored-by: danilo neves cruz <cruzdanilo@gmail.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: skyge <1506186404li@gmail.com> Co-authored-by: PurrProof <149718167+PurrProof@users.noreply.github.com> Co-authored-by: Eric Lau <ericglau@outlook.com> Co-authored-by: plooten <sunxingzhecrypto@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Md Zartaj Afser <91191500+Zartaj0@users.noreply.github.com>
27 lines
1.1 KiB
Solidity
27 lines
1.1 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)
|
|
|
|
pragma solidity ^0.8.20;
|
|
|
|
import {IERC165} from "../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.
|
|
*/
|
|
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.
|
|
*
|
|
* NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the
|
|
* royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.
|
|
*/
|
|
function royaltyInfo(
|
|
uint256 tokenId,
|
|
uint256 salePrice
|
|
) external view returns (address receiver, uint256 royaltyAmount);
|
|
}
|