New Mimicry collection stats query with chain ID support
Nov 4, 2022
- New NFT collection stats query — Added the `MimicryCollectionStat` query for retrieving collection-level NFT metrics, including **TAMI** and **Market Cap**.
- Collection stats now require a chain ID — Collection stats queries now need a `chainId` in addition to the collection address and metric. The query type was also renamed from `MimicryCollectionMetric` to `MimicryCollectionStat`.
API
- Added support for the `MimicryCollectionStat` data spec with `chainId`, `collectionAddress`, and `metric` inputs.
- Defined two supported metric values: `0` for TAMI and `1` for Market Cap.
Breaking Changes
- Renamed the query type from `MimicryCollectionMetric` to `MimicryCollectionStat`.
- Added a required `chainId` parameter to collection stats queries.
Documentation
- Updated the example query data, JSON schema, and Solidity sample to match the new parameter order.
- Clarified how TAMI and Market Cap values are calculated.
- Updated the Market Cap example to describe the calculation using historical sales data.