IMarketplace Contract
This interface defines the basic functions and events for a marketplace contract. This contract allows for listing items, making bids, and purchasing items. It is intended to be implemented by specific marketplace contracts.
Functions
- listItem: Lists a new item for sale.
- makeBid: Places a bid on an item.
- buyItem: Purchases an item.
- cancelListing: Cancels a listing for an item.
- withdrawBid: Withdraws a bid on an item.
- getItemDetails: Returns information about an item.
Events
- ItemListed: Emitted when a new item is listed.
- BidPlaced: Emitted when a bid is placed on an item.
- ItemBought: Emitted when an item is purchased.
- ListingCancelled: Emitted when a listing is cancelled.
- BidWithdrawn: Emitted when a bid is withdrawn.