RoyaltyRegistry

Registry contract for handling royalties. It allows registering, unregistering of royalties, and getting details about royalties.

royalties

mapping(bytes32 => address) royalties

royaltyPool

contract IRoyaltyPool royaltyPool

colleCommissions

address colleCommissions

registerRoyalty

function registerRoyalty(bytes32 _accountTier, address _royalty) external

Registers a royalty for a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier to associate with the royalty

_royalty

address

The address of the royalty contract

unregisterRoyalty

function unregisterRoyalty(bytes32 _accountTier) external

Unregisters a royalty associated with a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier associated with the royalty to unregister

registerRoyaltyPool

function registerRoyaltyPool(address _royaltyPool) external

Registers a royalty pool

Parameters

Name
Type
Description

_royaltyPool

address

The address of the royalty pool contract

registerColleCommissions

function registerColleCommissions(address _colleCommissions) external

Registers a colleCommissions contract

Parameters

Name
Type
Description

_colleCommissions

address

The address of the colleCommissions contract

getRoyalty

function getRoyalty(bytes32 _accountTier) external view returns (contract BaseRoyalty)

Returns the royalty associated with a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier associated with the royalty

getRoyaltyPool

function getRoyaltyPool() external view returns (contract IRoyaltyPool)

Returns the current royalty pool

getColleComissions

function getColleComissions() external view returns (address)

Returns the current colleCommissions contract

isRoyaltyRegistered

function isRoyaltyRegistered(bytes32 _accountTier) external view returns (bool)

Checks if a royalty is registered for a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier to check

Last updated