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 to set the minimum USDC price.

Parameters

Name
Type
Description

_minUSDCPrice

uint256

The minimum USDC price.

getMinUSDCPrice

Function to get the minimum USDC price.

Return Values

Name
Type
Description

[0]

uint256

The minimum USDC price.

getUpgradeGatekeeper

Function to get the upgrade gatekeeper.

Return Values

Name
Type
Description

[0]

contract IUpgradeGatekeeper

The address of the upgrade gatekeeper.

getEscrow

Function to get the escrow.

Return Values

Name
Type
Description

[0]

contract IEscrow

The address of the escrow.

getVault

Function to get the vault.

Return Values

Name
Type
Description

[0]

contract IVault

The address of the vault.

pauseNewSales

Function to pause new sales.

unpauseNewSales

Function to unpause new sales.

allowNewSales

Function to check if new sales are allowed.

Return Values

Name
Type
Description

[0]

bool

A boolean indicating whether new sales are allowed.

Last updated