Closed nvdtf closed 2 years ago
Totally agree. Especially in the case that there are more than one type of NFTs in storefront, it makes very challenging to handle ListingCompleted
event. We prefer to add both nftID
and nftType
, if possible.
Yes, this is a must have for us. Otherwise, we need to implement workarounds in order to filter out events for our NFTs types.
Most marketplaces need to handle stale/ghost listings to provide a good UX (see discussion https://github.com/onflow/nft-storefront/issues/21). They need to remove the corresponding listings when an NFT is sold/removed through other apps. One solution for the marketplace app is to listen for
ListingCompleted
events and remove the listings for the corresponding NFTs in the DB/UI. The currentListingCompleted
event has minimal data whileListingAvailable
provides the needednftID
[andnftType
] fields, so the app has to track/store both events and match the storefront/listing IDs. If we store and emitnftID
[andnftType
] on the contract, the marketplace's logic would be simplified.