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

Create a new /status route in aggregator #2071

Open
8 of 23 tasks
jpraynaud opened this issue Nov 4, 2024 · 0 comments
Open
8 of 23 tasks

Create a new /status route in aggregator #2071

jpraynaud opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
feature 🚀 New implemented feature

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Nov 4, 2024

Why

We need to create a status page on the aggregator that displays basic information which will be used in particular by the explorer.

What

Create a /status route that displays the aggregator status with the following information:

  • Epoch (epoch service)
  • Cardano era (epoch service)
  • Mithril era (epoch service)
  • Cardano node version (static)
  • Aggregator version (static)
  • Protocol parameters (epoch service)
  • Next protocol parameters (epoch service)
  • Total signers (epoch service)
  • Total next signers (epoch service)
  • Total stakes signers (epoch service)
  • Total next stakes signers (epoch service)
  • Adoption rate (% stake of Cardano in Mithril / % SPOs of Cardano in Mithril) (epoch service)

How

  • Compute the Cardano era with the chain observer:
    • In the Pallas observer, with the queries_v16::get_current_era function and Era type
    • In the Cardano CLI observer (use the query tip command and read the era field)
  • Record in epoch service the new information:
    • Cardano era
    • Mithril era
    • Total SPOs (with StakeDistributionService)
    • Total stake (with StakeDistributionService)
  • Create new /status route that displays the status in aggregator
    • Epoch
    • Cardano era
    • Mithril era
    • Cardano node version
    • Aggregator version
    • Protocol parameters
    • Next protocol parameters
    • Total signers
    • Total next signers
    • Total stakes signers
    • Total next stakes signers
    • Total SPOs in Cardano
    • Total stake in Cardano
  • Update OpenAPI specs

Later

  • Latest imported block number
  • Latest immutable file number
@jpraynaud jpraynaud changed the title Create a new route in aggregator that gives status insights for explorer Create a new /status route in aggregator Nov 4, 2024
@jpraynaud jpraynaud added the feature 🚀 New implemented feature label Nov 4, 2024
@dlachaume dlachaume self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New implemented feature
Projects
None yet
Development

No branches or pull requests

2 participants