Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Create Stats entity #18

Open
vikiival opened this issue Dec 16, 2021 · 1 comment
Open

Create Stats entity #18

vikiival opened this issue Dec 16, 2021 · 1 comment

Comments

@vikiival
Copy link
Member

What if we can calculate the stats on demand?

@vikiival
Copy link
Member Author

Fast draft for the collection stats

type CollectionStat @entity {
  id: ID!
  alreadyMinted: Int!
  collection: CollectionEntity!
  uniqueOwners: [UniqueOwner]!
  volumes: [Volume]!
  listed: Int!
  score: Int!
  totalVolume: BigInt!
}

type Volume @entity {
  id: ID!
  collection: Collection!
  date: Date!
  amount: BigInt!
}

type UniqueOwner @jsonField {
  owner: String!
  count: Int!
}

@vikiival vikiival changed the title Create Account and Stats entity Create Stats entity Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant