IRoyaltyRegistry

This interface describes the functions exposed by the royalty registry.

RegisteredRoyalty

event RegisteredRoyalty(address royalty, bytes32 accountTier)

Emitted when a royalty is registered.

UnregisteredRoyalty

event UnregisteredRoyalty(address royalty, bytes32 accountTier)

Emitted when a royalty is unregistered.

RegisteredRoyaltyPool

event RegisteredRoyaltyPool(address royaltyPool)

Emitted when a royalty pool is registered.

UpdatedColleComissions

event UpdatedColleComissions(address colleComission)

Emitted when the comission payout address has been updated.

registerRoyalty

Register a new royalty.

Parameters

Name
Type
Description

_accountTier

bytes32

The tier of the account for which to register the royalty.

_royalty

address

The address of the royalty contract.

unregisterRoyalty

Unregister an existing royalty.

Parameters

Name
Type
Description

_accountTier

bytes32

The tier of the account for which to unregister the royalty.

registerRoyaltyPool

Register a new royalty pool.

Parameters

Name
Type
Description

_royaltyPool

address

The address of the royalty pool contract.

registerColleCommissions

Register a new colleCommissions.

Parameters

Name
Type
Description

_colleCommissions

address

The address of the colleCommissions contract.

getRoyalty

Get the royalty of a specific account tier.

Parameters

Name
Type
Description

_accountTier

bytes32

The tier of the account for which to get the royalty.

Return Values

Name
Type
Description

[0]

contract BaseRoyalty

The royalty contract of the specified account tier.

getRoyaltyPool

Get the royalty pool.

Return Values

Name
Type
Description

[0]

contract IRoyaltyPool

The royalty pool contract.

getColleComissions

Get the colleComissions.

Return Values

Name
Type
Description

[0]

address

The address of the colleComissions contract.

isRoyaltyRegistered

Check if a royalty is registered for a specific account tier.

Parameters

Name
Type
Description

_accountTier

bytes32

The tier of the account for which to check the royalty.

Return Values

Name
Type
Description

[0]

bool

True if a royalty is registered for the specified account tier, false otherwise.

Last updated