cartesi / explorer

Cartesi Blockchain Explorer
https://explorer.cartesi.io
Apache License 2.0
9 stars 12 forks source link

[Experiment]: A new Indexing protocol solution for Rollups #32

Closed brunomenezes closed 1 year ago

brunomenezes commented 1 year ago

📄 Context

Subgraph was the first (allegedly) good solution in the market as an indexing protocol. Still, it lacks flexibility on the graphQL API that force us to create summary entities here and there and more complex cases with pagination become constrained, if not impossible. Furthermore, we can't extend the graphQL API with custom resolvers which would be a killer feature (making that experiment unnecessary); on top of that is the language chosen, i.e. AssemblyScript, which is confusing since it uses the extension .ts, causing all sorts of pitfalls along the way until you become a scarred warrior 🥷. Besides that, the way we have our Subgraph set is working, but I want to look at other indexing protocol solutions available like subsquid or satsuma

✔️ Solution

For this experiment, I will pick the Subsquid. I'll add the pros and cons below and focus on my perceived benefits from the DX perspective. The deployment of the squid in the Aquarium service has its learning curve and details (e.g. Premium users vs Free users).

Pro

📈 Subtasks

brunomenezes commented 1 year ago

The result of this initial experiment are the following projects:

and deployed applications: