Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design new 2.0 SubSquid schema #5

Open
3 tasks
vikiival opened this issue Mar 30, 2023 · 5 comments
Open
3 tasks

Design new 2.0 SubSquid schema #5

vikiival opened this issue Mar 30, 2023 · 5 comments
Labels
schema Requires changing schema

Comments

@vikiival
Copy link
Member

          > 9th of April

Will take that time to design new Schema 2.0 😅

Originally posted by @vikiival in kodadot/nft-gallery#5388 (comment)

Tasks:

  • Go through app/figma and identify data we need / miss
  • Inset helper fields such as displayPrice
  • Use more raw queries to recalculate fields for collections

May need help from @exezbcz for task 1.

@vikiival vikiival added the schema Requires changing schema label Mar 30, 2023
@daiagi
Copy link

daiagi commented Apr 9, 2023

Any updates on this?

@exezbcz
Copy link
Member

exezbcz commented Apr 9, 2023

@daiagi I will have call tomorrow with viki

@vikiival
Copy link
Member Author

@daiagi
Copy link

daiagi commented Jul 4, 2023

@vikiival
what about if we add previousOwner field to the schema:

type Event implements EventType @entity {
  id: ID!
  blockNumber: BigInt
  timestamp: DateTime!
  caller: String!
  currentOwner: String! # currentOwner
  previousOwner: String! # previousOwner or sender
  interaction: Interaction!
  meta: String!
  nft: NFTEntity!
  # version: Int!
}

this should allow to create a resolver for the flippers tab in collection activity pretty straight forward i think

@vikiival
Copy link
Member Author

vikiival commented Jul 4, 2023

Or maybe we can do a Flip entity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema Requires changing schema
Projects
None yet
Development

No branches or pull requests

3 participants