Replies: 5 comments 8 replies
-
Should we decide what parts to add in hasura action for the 0.1.0 tag release? currently it's account balances, total supply, validator commission, and delegator rewards. |
Beta Was this translation helpful? Give feedback.
-
leaving a note from campfire, please add opinions if any :) Directly from the node, particularly user-specific data:
BDjuno, particularly publicly available info:
|
Beta Was this translation helpful? Give feedback.
-
Graphql staging server for testing purpose (Sifchain): https://gql-dev.sifchain.forbole.com/console/ Will prepare a graphql staging server of Desmos for @calvinkei 's deployment on Forbole X |
Beta Was this translation helpful? Give feedback.
-
@huichiaotsou @MonikaCat I just realized one thing during a call with Ravi: one of the most impacting things right now are delegators and validator rewards. Did you take care of moving them to be a node-based query as well instead of a periodic operation run every X blocks? |
Beta Was this translation helpful? Give feedback.
-
Currently inside BDJuno we query pretty much all the data from the nodes at specific intervals, and then the fronted fetches these data using Hasura, which exposes the methods to access the underlying DB in which the data is stored.
Although this method currently works, there are some instances where it's particularly difficult to keep the data correctly updated. This is particularly true for the delegations data, which are queried only when the user wants to see their wallet details, but should be kept updated at every block (due to the staking rewards).
For this reason, I think what we could do is explore whether we can replace the periodic parsing of some data with the implementation of custom Hasura services that allow us to query the node rather than relying on the stored data. This would then look like the following:
This is explained in detail here: Turn your Go REST API to GraphQL using Hasura Actions.
PRos
Cons
Beta Was this translation helpful? Give feedback.
All reactions