RoyaltyPool

Contract for managing a pool of previous owners to pay royalties to. The pool includes an initial owner and recent owners.

Pool

struct Pool {
  address initialOwner;
  address[4] recentOwners;
}

constructor

constructor() public

Sets initial owner weight as 1 upon contract creation

onlyEscrow

modifier onlyEscrow()

setInitialOwnerWeight

function setInitialOwnerWeight(uint256 _weight) external

Set initial owner's weight

Parameters

Name
Type
Description

_weight

uint256

New weight to set for initial owner

trackNewOwner

Tracks a new owner of a token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

_owner

address

The address of the new owner

trackInitialOwner

Tracks a new owner of a token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

_owner

address

The address of the new owner

_trackNewOwner

Tracks a new owner of a token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

_owner

address

The address of the new owner

getInitialOwnerWeight

Returns the weight of the initial owner

getInitialOwner

Returns the initial owner of a given token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

getRecentOwners

Returns the recent owners of a given token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

totalPoolShares

Returns the total pool shares for a given token

Parameters

Name
Type
Description

_erc721

address

The address of the token

_tokenId

uint256

The ID of the token

supportsInterface

Checks if the contract implements an interface.

Parameters

Name
Type
Description

_interfaceId

bytes4

The ID of the interface.

Return Values

Name
Type
Description

[0]

bool

True if the contract implements the interface, false otherwise.

Last updated