threefoldfoundation / www_threefold_io

ThreeFold main website
1 stars 5 forks source link

Add utilization stats to threefold.io #386

Open samtaggart opened 6 months ago

samtaggart commented 6 months ago

Similar to how Akash does it here https://stats.akash.network/ we want to add just a few utilization stats to the website, as we currently have for capacity stats.

Potentially:

Then we need to decide how we want to show these stats (probably in a line graph like below).

Screenshot 2024-03-01 at 09 40 55 (1)

samtaggart commented 6 months ago

Comment from @scottyeager

Gathering these figures requires use of GraphQL, so that probably involves adding a bit of Javascript.

There's some limitations too. Specially in regard to what was requested, deployment contracts only have a creation timestamp and a current state. There's no way to determine when a contract was deleted.

That means creating a graph of newly created contracts is fairly straightforward, but graphing the active contract count is not.

Comment from me:

I'm not saying those need to be the stats exactly it was just a proposition.

I also think it's OK to talk about contracts created even if they are no longer active. It still shows utilization.

If you have better recommendations for which stats to show please let me know!