Skip to main content

MarketplaceDirect class

Handles direct listings

Signature:

export declare class MarketplaceDirect

Constructors

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

Methods

MethodModifiersDescription
acceptOffer(listingId, addressOfOfferor)Accept an offer on a direct listing
buyoutListing(listingId, quantityDesired, receiver)Buy a Listing
cancelListing(listingId)Cancel Direct Listing
createListing(listing)Create Direct Listing
getActiveOffer(listingId, address)Get the active offer on a listing
getAddress()
getListing(listingId)Get a direct listing by id
makeOffer(listingId, quantityDesired, currencyContractAddress, pricePerToken, expirationDate)Make an offer for a Direct Listing
updateListing(listing)Update a Direct listing with new metadata.Note: cannot update a listing with a new quantity of 0. Use cancelDirectListing to remove a listing instead.