Skip to main content

ZoraMarketWrapper

Market wrapper enabling auction crowdfunds to bid on Zora auctions.

Code

ZoraMarketWrapper.sol

Functions

auctionExists

Determine whether there is an existing auction for this token on the market

function auctionExists(uint256 auctionId) public view returns (bool);

Returns

NameTypeDescription
boolTRUE 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

NameTypeDescription
boolTRUE 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

NameTypeDescription
addresshighest bidder

getMinimumBid

Calculate the minimum next bid for this auction

function getMinimumBid(uint256 auctionId) external view override returns (uint256);

Returns

NameTypeDescription
uint256minimum 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

NameTypeDescription
boolTRUE if the auction has been finalized

finalize

Finalize the results of the auction

function finalize(uint256 auctionId) external override;