Skip to content

Solidity API

IPropsRoyalty

Interface for the PropsRoyalty facet, extending ERC2981 functionality

This interface defines methods for setting and managing royalties for tokens

setDefaultRoyalty

solidity
function setDefaultRoyalty(address recipient, uint96 royaltyBPS) external

Sets the default royalty information for all tokens

This function allows setting a default royalty that applies to all tokens unless overridden

Parameters

NameTypeDescription
recipientaddressAddress to receive royalties
royaltyBPSuint96Royalty amount in basis points (BPS). 100 BPS = 1%

deleteDefaultRoyalty

solidity
function deleteDefaultRoyalty() external

Deletes the default royalty information

This function removes any previously set default royalty

setTokenRoyalty

solidity
function setTokenRoyalty(uint256 tokenId, address recipient, uint96 royaltyBPS) external

Sets the token-specific royalty information

This function allows setting a custom royalty for a specific token, overriding the default

Parameters

NameTypeDescription
tokenIduint256ID of the token for which to set the royalty
recipientaddressAddress to receive royalties for this specific token
royaltyBPSuint96Royalty amount in basis points (BPS) for this specific token. 100 BPS = 1%

resetTokenRoyalty

solidity
function resetTokenRoyalty(uint256 tokenId) external

Deletes token-specific royalty information

This function removes any custom royalty set for a specific token, reverting it to the default royalty (if any)

Parameters

NameTypeDescription
tokenIduint256ID of the token for which to reset the royalty

feeDenominator

solidity
function feeDenominator() external pure returns (uint96)

Returns the fee denominator used in royalty calculations

This function returns the denominator used to calculate royalty percentages

Return Values

NameTypeDescription
[0]uint96The fee denominator value, typically 10000 for basis points (100% = 10000)