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

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

Registers a royalty pool

Parameters

Name
Type
Description

_royaltyPool

address

The address of the royalty pool contract

registerColleCommissions

Registers a colleCommissions contract

Parameters

Name
Type
Description

_colleCommissions

address

The address of the colleCommissions contract

getRoyalty

Returns the royalty associated with a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier associated with the royalty

getRoyaltyPool

Returns the current royalty pool

getColleComissions

Returns the current colleCommissions contract

isRoyaltyRegistered

Checks if a royalty is registered for a given account tier

Parameters

Name
Type
Description

_accountTier

bytes32

The account tier to check

Last updated