Skip to content

Conversation

@JulianVentura
Copy link
Contributor

@JulianVentura JulianVentura commented Jan 6, 2025

Add last 24 hours number of proofs verified endpoint

Description

We need access to the number of verified proofs on the last 24 hours, so we can provide that information on the Aligned web. This PR adds a new endpoint providing that information.

How to test

  1. Start a devnet, including the explorer
  2. Send a fixed amount of proofs on different batches, for instance 5 batches
  3. Visit /api/proofs_verified_last_24h and you should see the number of proofs verified in the last 24 hours.
  4. Verify that the provided value matches with the sent and verified proofs. For that, you can check in the explorer the amount of proofs sent (manually sum them all)

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@JulianVentura JulianVentura marked this pull request as ready for review January 6, 2025 16:56
@avilagaston9 avilagaston9 changed the title feat(explorer): Add endpoint to fetch last 24 hours number of proofs verified hotfix(explorer): Add endpoint to fetch last 24 hours number of proofs verified Jan 6, 2025
Copy link
Contributor

@uri-99 uri-99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code working as expected

@MauroToscano MauroToscano merged commit e6a5de4 into testnet Jan 6, 2025
1 check passed
@MauroToscano MauroToscano deleted the feat/explorer-api-fetch-last-batch-number-of-proofs branch January 6, 2025 19:32
PatStiles pushed a commit that referenced this pull request Jan 9, 2025
…s verified (#1710)

Co-authored-by: Julian Ventura <[email protected]>
Co-authored-by: avilagaston9 <[email protected]>
Co-authored-by: Mauro Toscano <[email protected]>
Co-authored-by: JuArce <[email protected]>
PatStiles pushed a commit that referenced this pull request Jan 10, 2025
…s verified (#1710)

Co-authored-by: Julian Ventura <[email protected]>
Co-authored-by: avilagaston9 <[email protected]>
Co-authored-by: Mauro Toscano <[email protected]>
Co-authored-by: JuArce <[email protected]>
PatStiles pushed a commit that referenced this pull request Jan 10, 2025
…s verified (#1710)

Co-authored-by: Julian Ventura <[email protected]>
Co-authored-by: avilagaston9 <[email protected]>
Co-authored-by: Mauro Toscano <[email protected]>
Co-authored-by: JuArce <[email protected]>
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

Successfully merging this pull request may close these issues.

6 participants