MarketplaceAuction class
Handles auction listings
Signature:
export declare class MarketplaceAuction
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(contractWrapper, storage) | Constructs a new instance of the MarketplaceAuction class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
encoder | ContractEncoder<MarketplaceContract> |
Methods
Method | Modifiers | Description |
---|---|---|
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 |