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

Market Collections By Queries as Deprecated #779

Open kristianeboe opened 1 year ago

kristianeboe commented 1 year ago

Goal

Mark CollectionsByVolumeQuery and CollectionsByMarketCapQuery as deprecated with a note to use collectionTrends.

Description

query CollectionsByVolumeQuery(
  $term: String
  $startDate: DateTimeUtc!
  $endDate: DateTimeUtc!
  $orderDirection: OrderDirection!
  $limit: Int!
  $offset: Int!
) {
  collectionsFeaturedByVolume(
    term: $term
    startDate: $startDate
    endDate: $endDate
    orderDirection: $orderDirection
    limit: $limit
    offset: $offset
  ) {
    floorPrice
    nftCount
    volumeTotal
    holderCount
    nft {
      address
      mintAddress
      name
      image
    }
  }
}

query CollectionsByMarketCapQuery(
  $term: String
  $startDate: DateTimeUtc!
  $endDate: DateTimeUtc!
  $orderDirection: OrderDirection!
  $limit: Int!
  $offset: Int!
) {
  collectionsFeaturedByMarketCap(
    term: $term
    startDate: $startDate
    endDate: $endDate
    orderDirection: $orderDirection
    limit: $limit
    offset: $offset
  ) {
    floorPrice
    nftCount
    volumeTotal
    holderCount
    nft {
      address
      mintAddress
      name
      image
    }
  }
}
kespinola commented 1 year ago

These queries should be marked as deprecated now that collectionTrends exists.