robotter-ai / solita

Genrates an SDK API from solana contract IDL.
Apache License 2.0
0 stars 0 forks source link

Research customizable and standardized code patterns in Indexer Framework #4

Closed MHHukiewitz closed 2 years ago

MHHukiewitz commented 2 years ago

As the IDL provides a lot of necessary information for us to standardize access to the given on-chain program, there still remains some research to be done on what code can be further generated with the IDL and which code has to be generated given a user's input.

The basic structure of an indexer looks like this:

A possible route to take with Anchor-based programs, is to generate a GraphQL schema from the IDL, let the user modify the schema, and feed both into a generator for an indexer.

The GraphQL schema allows us to know:

Image

MHHukiewitz commented 2 years ago

So far, so good.