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
  • constructor
  • Parameters
  • notifySaleClosed
  • Parameters
  • setMinUSDCPrice
  • Parameters
  • getMinUSDCPrice
  • Return Values
  • getUpgradeGatekeeper
  • Return Values
  • getEscrow
  • Return Values
  • getVault
  • Return Values
  • pauseNewSales
  • unpauseNewSales
  • allowNewSales
  • Return Values
  1. marketplace

MarketHub

The contract implements the functionality of the market hub, which includes multiple registries, escrow, vault, and other functionalities.

constructor

constructor(address _upgradeGatekeeper, address _escrow, address _vault) public

The constructor initializes the contract by setting the necessary parameters and registering the contract with Escrow and Vault.

Parameters

Name
Type
Description

_upgradeGatekeeper

address

The address of the upgrade gatekeeper.

_escrow

address

The address of the escrow.

_vault

address

The address of the vault.

notifySaleClosed

function notifySaleClosed(uint256 _saleId) public

Notifies that a particular sale for a ERC721 has closed (i.e. successfully sold, fault/not as described, or lost/damaged in shipment)

Parameters

Name
Type
Description

_saleId

uint256

The id of the sale that has closed.

setMinUSDCPrice

function setMinUSDCPrice(uint256 _minUSDCPrice) public

Function to set the minimum USDC price.

Parameters

Name
Type
Description

_minUSDCPrice

uint256

The minimum USDC price.

getMinUSDCPrice

function getMinUSDCPrice() public view returns (uint256)

Function to get the minimum USDC price.

Return Values

Name
Type
Description

[0]

uint256

The minimum USDC price.

getUpgradeGatekeeper

function getUpgradeGatekeeper() public view returns (contract IUpgradeGatekeeper)

Function to get the upgrade gatekeeper.

Return Values

Name
Type
Description

[0]

contract IUpgradeGatekeeper

The address of the upgrade gatekeeper.

getEscrow

function getEscrow() public view returns (contract IEscrow)

Function to get the escrow.

Return Values

Name
Type
Description

[0]

contract IEscrow

The address of the escrow.

getVault

function getVault() public view returns (contract IVault)

Function to get the vault.

Return Values

Name
Type
Description

[0]

contract IVault

The address of the vault.

pauseNewSales

function pauseNewSales() public

Function to pause new sales.

unpauseNewSales

function unpauseNewSales() public

Function to unpause new sales.

allowNewSales

function allowNewSales() public view returns (bool)

Function to check if new sales are allowed.

Return Values

Name
Type
Description

[0]

bool

A boolean indicating whether new sales are allowed.

PreviousIMarketHubRegistrarNextMarketHubRegistrar

Last updated 2 years ago