Float-Capital / float-subgraph-uncrashable

Safe Subgraph Code Generation Framework
https://float-capital.github.io/float-subgraph-uncrashable/
MIT License
4 stars 0 forks source link

Ensure codegen script accommodates all subgraph types (eg derived fields) #7

Open SvenMuller95 opened 2 years ago

SvenMuller95 commented 2 years ago
MJYoung114 commented 2 years ago

need to handle derivedFrom types -> suggestion is to ignore these in the generated code for an entity, The field will be set in the derived from entity https://thegraph.com/docs/en/developing/creating-a-subgraph/#reverse-lookups

MJYoung114 commented 2 years ago
JasoonS commented 1 year ago

I think in the process of doing this task more type documentation and structuring can be done in the code. Currently almost everything is polymorphic. It might be good to use less polymorphic structures in the code.