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

Properties

PropertyModifiersTypeDescription
encoderContractEncoder<MarketplaceContract>

Methods

MethodModifiersDescription
buyoutListing(listingId)Buyout Auction
cancelListing(listingId)Cancel Auction Listing
closeListing(listingId, closeFor)Close the Auction for the buyer or the seller
createListing(listing)Create Auction
executeSale(listingId)Execute the Auction Sale
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