Skip to main content

MarketplaceAuction class

Handles auction listings

Signature:

export declare class MarketplaceAuction

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper, storage)Constructs a new instance of the MarketplaceAuction class

Methods

MethodModifiersDescription
buyoutListing(listingId)Buyout Auction
cancelListing(listingId)Cancel Auction Listing
closeListing(listingId, closeFor)Close the Auction
createListing(listing)Create Auction
getAddress()
getBidBufferBps()Get the buffer in basis points between offers
getListing(listingId)Get an Auction listing by id
getMinimumNextBid(listingId)returns the minimum bid a user can place to outbid the previous highest bid
getWinner(listingId)Get Auction Winner
getWinningBid(listingId)Get Highest Bid
makeBid(listingId, pricePerToken)Bid On Auction
updateListing(listing)Update an Auction listing with new metadata