Colle Marketplace
Colle.ioWebApp (Live)WebApp (Test)
  • Contracts Overview
  • Functional Requirements
  • Contract Descriptions
  • Technical Project & Audit Details
  • Test Coverage Report
  • Static Analysis
  • Royalty Pool Explained
  • Sale State Explained
  • Sales Tax Explained
  • marketplace
    • IMarketHub
    • IMarketHubRegistrar
    • MarketHub
    • MarketHubRegistrar
    • MarketHubRegistrarUpgradeable
    • collections
      • ColleCollection
      • ColleCollectionUpgradeable
      • CollectionRegistry
      • IColleCollection
      • IColleCollectionUpgradeable
      • ICollectionRegistry
    • currencies
      • BaseCurrency
      • CurrencyRegistry
      • ICurrency
      • ICurrencyRegistry
      • USDCCurrency
    • escrow
      • EscrowUpgradeable
      • IEscrow
      • IEscrowRegistry
    • kycs
      • Account
      • IKYCRegistry
      • KYCRegistry
    • markets
      • BaseMarketUpgradeable
      • IListingMarket
      • IMarket
      • IMarketRegistry
      • IOfferMarket
      • ListingMarketUpgradeable
      • MarketRegistry
      • OfferMarketUpgradeable
    • royalties
      • BaseRoyalty
      • BlackTierRoyalty
      • GoldTierRoyalty
      • GreenTierRoyalty
      • IRoyalty
      • IRoyaltyPool
      • IRoyaltyRegistry
      • PlatinumTierRoyalty
      • RoyaltyPool
      • RoyaltyRegistry
      • v1
        • BlackTierRoyaltyV1
        • GoldTierRoyaltyV1
        • GreenTierRoyaltyV1
        • PlatinumTierRoyaltyV1
    • taxes
      • ITaxPolicyRegistry
      • Tax
      • TaxPolicyRegistry
    • upgrade-gatekeeper
      • IUpgradeGatekeeper
      • UpgradeGatekeeper
    • vaults
      • IVault
      • IVaultRegistry
      • VaultUpgradeable
  • team-smart-wallet
    • ITeamSmartWallet
    • ITeamSmartWalletHelper
    • TeamSmartWallet
    • TeamSmartWalletFactory
    • TeamSmartWalletPermitHelper
  • utils
    • MarketAccess
    • MarketAccessUpgradeable
    • Signature
    • SignatureValidator
Powered by GitBook
On this page
  • Pool
  • constructor
  • onlyEscrow
  • setInitialOwnerWeight
  • Parameters
  • trackNewOwner
  • Parameters
  • trackInitialOwner
  • Parameters
  • _trackNewOwner
  • Parameters
  • getInitialOwnerWeight
  • getInitialOwner
  • Parameters
  • getRecentOwners
  • Parameters
  • totalPoolShares
  • Parameters
  • supportsInterface
  • Parameters
  • Return Values
  1. marketplace
  2. royalties

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

function trackNewOwner(address _erc721, uint256 _tokenId, address _owner) external

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

function trackInitialOwner(address _erc721, uint256 _tokenId, address _owner) external

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

function _trackNewOwner(address _erc721, uint256 _tokenId, address _owner) internal

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

function getInitialOwnerWeight() external view returns (uint256)

Returns the weight of the initial owner

getInitialOwner

function getInitialOwner(address _erc721, uint256 _tokenId) external view returns (address)

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

function getRecentOwners(address _erc721, uint256 _tokenId) external view returns (address[4])

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

function totalPoolShares(address _erc721, uint256 _tokenId) external view returns (uint256)

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

function supportsInterface(bytes4 _interfaceId) public view virtual returns (bool)

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.

PreviousPlatinumTierRoyaltyNextRoyaltyRegistry

Last updated 1 year ago