cennznet / api-nft

Tracks NFTs on CENNZnet
https://cennznet.js.org/api-nft/
Apache License 2.0
0 stars 0 forks source link

`NFTRecord.type` in `timeline` properties should follow the specs #19

Closed ken-futureverse closed 2 years ago

ken-futureverse commented 2 years ago

type should be NFT_CREATED, NFT_LISTED and NFT_TRANSFERRED, it shows LISTING_STARTED atm

https://nft-api.centrality.me/nft/token/62_0_10

ken-futureverse commented 2 years ago

Resolve issues with NFT API

KarishmaBothara commented 2 years ago

I remember we agreed on this LISTING_STARTED, LISTING_CLOSED etc https://github.com/cennznet/api-nft/blob/53c1343c7424275f61f1da1433c44d70fb30105c/docs/cennznet-api-nft.yml#L170

ken-futureverse commented 2 years ago

yep that's for ListingRecord, for NFTRecord we go with NFT_CREATED | NFT_LISTED | NFT_TRANSFERRED

https://github.com/cennznet/api-nft/blob/53c1343c7424275f61f1da1433c44d70fb30105c/docs/cennznet-api-nft.yml#L128