Replies: 4 comments 6 replies
-
Maybe for more stats like this we could put it into a dedicated stats page which has these pretty graphs? |
Beta Was this translation helpful? Give feedback.
-
Yeah I also thought about this, but out of the box, there's not much extra info that would make a good statistic. But there's one thing I thought about: I think the graph in general is able to be queried up to a certain block "height". So if you would actually walk the graph down by decreasing the block-height, you could generate a timeline over all the stats in the proxy - and that could prove very interesting! Similar to that graph that is tweeted once in a while where you can see the number of wallets grow over time. The thing is, querying that info is certainly quite "expensive", i.e. lot's of queries before you can generate a meaningful chart. Ideally we would need a persistent cache for that, after all the "old" information should never change (unless the code of the graph is changed and generates different info). |
Beta Was this translation helpful? Give feedback.
-
So now that @danielsolistensvik has given this a shot with https://github.com/danielsolistensvik/LoopStats, I have some additional thoughts. The current implementation of LoopStats is limited, because it relies on querying the graph at the right times to get the - at that moment - latest statistics from the proxy entity. That is also why it can't generate statistics for the past and couldn't regenerate it, should the graph change in the future. But all of these shortcomings could be solved by using queries with block height params (see example in my comment in #149). But then what you end up with, is basically your own mechanism of what the graph actually does. Just so we're on the same page: the subgraph indexes all Ethereum blocks and searches for interactions with the Loopring smart contract. It then parses this information to extract all the info that is stored in those blocks and generates different datasets of the various entities. If the code of the graph changes, it completely reindexes and regenerates everything. So from a technical standpoint, I think it would be ideal if the graph would collect and store that statistic, just like it already does for volumes and prices of pairs. But to get that, we would need to get our copy of the graph working again and then extend the code to collect the info we want. It would also make us completely independent (see #50). To be honest, I'm not really keen to invest the time needed to get everything up and running and learn the code, but I certainly would be willing to help with code reviews. Let me know what you think about that. |
Beta Was this translation helpful? Give feedback.
-
Have you guys seen the dashboard that brecht made on dune? https://dune.com/Brecht/loopring This is really on another level regarding stats. I wonder if we can query these as well? |
Beta Was this translation helpful? Give feedback.
-
The Proxy singleton provides loads of interesting information, so I tried building a pie chart with the different transactions counts:
But honestly, after seeing it, I'm not sure if this is actually helpful? It shows that Swaps, Orderbooktrades and Transfers are the 3 big players and I doubt these numbers will change much in relation to each other.
I've stashed the changes away for now as there were still quite a few things to be done to consider this ready.
Beta Was this translation helpful? Give feedback.
All reactions