holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
162 stars 38 forks source link

#604: collection nft count and floor price #612

Closed austinmilt closed 2 years ago

austinmilt commented 2 years ago

This PR adds collection NFT count and floor price to queries that return a collection NFT. It was necessary to do a major refactor of Nft to make this possible, as CollectionNft was a limited copy of Nft.

Note that any potential shortcuts suggested for this PR should be considered in relation to its effect on Holaplex.com and marketplaces repo queries. Some side effects in Holaplex.com do not manifest until you run both yarn generate:graphql and try out the app with yarn dev

Note: This should NOT be merged and deployed without an accompanying PR for holaplex.com (here), as it will break.

Marketplaces looks to be safe - only requirement is changing on Nft to on Collection for requests that return Collection, which marketplaces are not using.

Start in objects/nft.tsx

Main Changes

closes #604