Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

historical plots of money supply, ceremony population size #7

Open
brenzi opened this issue May 21, 2020 · 2 comments
Open

historical plots of money supply, ceremony population size #7

brenzi opened this issue May 21, 2020 · 2 comments

Comments

@brenzi
Copy link
Member

brenzi commented May 21, 2020

In the currency sidebar we could show historical plots with

  • money supply vs time
  • number of ceremony participants vs time
  • number of tx/day
  • tx volume /day

As this gh-pages homepage is stateless and the blockchain doesn't archive the history for easy queries, we would need to populate an external db with statistics

  1. polkascan does exactly this: maintain a node and put all state updates in a queryable db
    • we would depend on polkascan to support (and maintain) our chain(s)
    • probably impractical for Testnet Cantillon and Mainnet where we'll have to do custom queries on enclave state to get money supply and ceremony statistics
  2. develop and run our own archiver node, populating a db, (maybe forking from polkascan).
    • needs external service
    • possibly use grafana to render plots and serve entire dashboards
  3. just scan recent history by RPC with at_block.
    • will be slow
@brenzi
Copy link
Member Author

brenzi commented Sep 13, 2020

could we extend substrate's prometheus interface for these statistics?

@brenzi
Copy link
Member Author

brenzi commented Mar 7, 2021

we may consider offchain indexing with custom RPC api to fetch history data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant