solana-labs / solana

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://solanalabs.com
Apache License 2.0
12.98k stars 4.17k forks source link

Explorer: Add stats about active stake and (de)activating stake #14853

Closed danpaul000 closed 2 years ago

danpaul000 commented 3 years ago

Problem

With increased interest in staking and associated user workflow and timing, it would be good for us to provide some network level numbers regarding total stake and state transitions on the explorer.

Proposed Solution

On the explorer homepage, add a new block (or a new tab at the top of the page a la "Cluster Stats" and "Supply"), which includes the following:

mvines commented 3 years ago

For explorer, we're lacking nice RPC APIs for the global state of activating/deactivating state. At present the explorer would need to pull all stake accounts to build this data.

danpaul000 commented 3 years ago

@mvines what is a reasonable estimate for the amount of time before we could get an MVP of this on the explorer? What with the community vote coming down the line real soon, we might get hammered with questions about this very shortly.

mvines commented 3 years ago

@oJshua has a pretty big backlog but chat with him to see what's doable with the current RPC APIs.

For example, solana stake-history shows historical stake activation so that could be exposed, but we have no way to easily figure the stake delegations/deactivations that have occurred in the current epoch

mvines commented 3 years ago

But also if the new Solana Beach contains some of this information, which it seems to do, then I'm happy to avoid new explorer features for now

danpaul000 commented 3 years ago

Yeah, I'm certainly not trying to make needless work here, but the new SB is a couple weeks out, and I'm trying to figure what we're going to needed if/when the masses decend on us.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 2 years ago

This stale issue has been automatically closed. Thank you for your contributions.