Royalty ERC-1155

Description

The RoyaltyERC1155 contract is an extension that provides royalty functionality for ERC-1155 tokens. It allows setting default royalty information as well as specific royalty details for individual tokens, similar to the functionality provided by RoyaltyERC721. This enables creators to receive a percentage of secondary sales as a royalty.

Callback Functions

FunctionDescription
onInstallCalled by the Core during the installation of the Extension. Sets default royalty information.
onUninstallCalled by the Core during the uninstallation of the Extension.

Fallback Functions

FunctionDescription
royaltyInfoReturns the royalty recipient and amount for a given sale based on the token ID and sale price.
getDefaultRoyaltyInfoReturns the default royalty information for the tokens, including the recipient and basis points (bps).
getRoyaltyInfoForTokenReturns the overridden royalty information for a specific token ID, including the recipient and basis points (bps).
setDefaultRoyaltyInfoSets the default royalty information for the tokens. Requires manager role.
setRoyaltyInfoForTokenSets specific royalty information for a given token ID. Requires manager role.

Required Interfaces

InterfaceID
ERC-11550xd9b67a26

Supported Interfaces

InterfaceID
IERC29810x2a55205a