Itheum / data-dex

DApp with suite of web3 tools to trade personal data on MultiversX
https://datadex.itheum.io
GNU General Public License v3.0
468 stars 6 forks source link

Data NFT Marketplace - Show "Listing Time" for Marketplace items #171

Open newbreedofgeek opened 1 year ago

newbreedofgeek commented 1 year ago

For all Data NFT tiles in the "Public marketplace" and the "My Data NFTs" sections, we need to show "listing time". This is the date for when the Owner listed it into the Marketplace. @damienen @bucurdavid is this possible - i.e. to get the date?

@icegriffinguru UI should look like this: (note that the Listing time text size and font needs to be same as Creation Time)

image
bucurdavid commented 1 year ago

It is possible to store the timestamp in the Offer struct

newbreedofgeek commented 1 year ago

... but is it a good design pattern to store it in the SC. Or should we store this in a Web2 API?

bucurdavid commented 1 year ago

The listing time could be handled with the Web2 API, because it is not critical data. If in the future we will need to deal with refund policy, I think the purchase time needs to be stored in the SC.

newbreedofgeek commented 1 year ago

yes agree - for phase 1 we dont need the 'refund'. We can aim to do this in the web2 API which we are designing now