ZoraMarketWrapper
Market wrapper enabling auction crowdfunds to bid on Zora auctions.
Code
Functions
auctionExists
Determine whether there is an existing auction for this token on the market
function auctionExists(uint256 auctionId) public view returns (bool);
Returns
Name | Type | Description |
---|---|---|
bool | TRUE if the auction exists |
auctionIdMatchesToken
Determine whether the given auctionId is an auction for the tokenId + nftContract
function auctionIdMatchesToken(uint256 auctionId, address nftContract, uint256 tokenId)
public
view
override
returns (bool);
Returns
Name | Type | Description |
---|---|---|
bool | TRUE if the auctionId matches the tokenId + nftContract |
getCurrentHighestBidder
Query the current highest bidder for this auction
function getCurrentHighestBidder(uint256 auctionId) external view override returns (address);
Returns
Name | Type | Description |
---|---|---|
address | highest bidder |
getMinimumBid
Calculate the minimum next bid for this auction
function getMinimumBid(uint256 auctionId) external view override returns (uint256);
Returns
Name | Type | Description |
---|---|---|
uint256 | minimum bid amount |
bid
Submit bid to Market contract
function bid(uint256 auctionId, uint256 bidAmount) external override;
isFinalized
Determine whether the auction has been finalized
function isFinalized(uint256 auctionId) external view override returns (bool);
Returns
Name | Type | Description |
---|---|---|
bool | TRUE if the auction has been finalized |
finalize
Finalize the results of the auction
function finalize(uint256 auctionId) external override;