MarketHub
The contract implements the functionality of the market hub, which includes multiple registries, escrow, vault, and other functionalities.
constructor
The constructor initializes the contract by setting the necessary parameters and registering the contract with Escrow and Vault.
Parameters
_upgradeGatekeeper
address
The address of the upgrade gatekeeper.
_escrow
address
The address of the escrow.
_vault
address
The address of the vault.
notifySaleClosed
Notifies that a particular sale for a ERC721 has closed (i.e. successfully sold, fault/not as described, or lost/damaged in shipment)
Parameters
_saleId
uint256
The id of the sale that has closed.
setMinUSDCPrice
Function to set the minimum USDC price.
Parameters
_minUSDCPrice
uint256
The minimum USDC price.
getMinUSDCPrice
Function to get the minimum USDC price.
Return Values
[0]
uint256
The minimum USDC price.
getUpgradeGatekeeper
Function to get the upgrade gatekeeper.
Return Values
[0]
contract IUpgradeGatekeeper
The address of the upgrade gatekeeper.
getEscrow
Function to get the escrow.
Return Values
[0]
contract IEscrow
The address of the escrow.
getVault
Function to get the vault.
Return Values
[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
[0]
bool
A boolean indicating whether new sales are allowed.
Last updated