Replies: 2 comments 3 replies
-
nit: this should be an also is this just a stop-gap measure until composable subgraphs are in play? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The current data displayed on connextscan:
Below are some new metrics that maybe good to have:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Purpose
We need an internally hosted database that we can use to drive different tools such as explorers, SDKs, UIs. The database needs to persistent the data forever so that historical data can easily be accessed, aggregated, and calculated.
Centralization
Yes, this adds a degree of centralization. For this reason, it's critical that the data stored is simply a reflection of what's onchain and acts as a supplement to the onchain data for better user experience. Also this will not be relied on by systems such as the router, which absolutely need to use real-time chain data and need to be fully decentralized.
Populating the Database
The database should be populated by subgraph queries. We will need a pipeline where a cron task periodically reads the subgraph and writes into the database.
Database Type
I propose Postgres as the database of choice since it has the most flexibility and support. However there are other implementations these days that might be better/faster/more cloud native.
Schema
The database should have the following tables with the following schema:
Transfer
TODO: Do we need any more tables/relations? User/Router could be relational, but I'm not sure what other data we need in those tables besides addresses.
Use Cases
The backend should support the following types of queries:
API
The backend should expose this data through a REST/GraphQL API. We can design the API around what data the explorers require.
Beta Was this translation helpful? Give feedback.
All reactions