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

Implement Cardano stake distribution HTTP routes #1872

Merged

Conversation

dlachaume
Copy link
Collaborator

@dlachaume dlachaume commented Jul 31, 2024

Content

This PR introduces new HTTP routes in the Aggregator REST API specifically for handling the signed entity type CardanoStakeDistribution:

  • /artifact/cardano-stake-distributions
  • /artifact/cardano-stake-distribution/{hash}
  • /artifact/cardano-stake-distribution/epoch/{epoch}

The end to end test has been updated to include the verification of CardanoStakeDistribution certification, ensuring that the new routes respond correctly.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
  • Documentation
    • Update README file (if relevant)
    • Update documentation website (if relevant)
    • Add dev blog post (if relevant)

Issue(s)

Closes #1841

@dlachaume dlachaume requested a review from jpraynaud July 31, 2024 10:35
@dlachaume dlachaume self-assigned this Jul 31, 2024
@dlachaume dlachaume requested a review from sfauvel July 31, 2024 10:35
Copy link

github-actions bot commented Jul 31, 2024

Test Results

    4 files  ± 0     53 suites  +1   9m 21s ⏱️ +14s
1 215 tests +23  1 215 ✅ +23  0 💤 ±0  0 ❌ ±0 
1 381 runs  +23  1 381 ✅ +23  0 💤 ±0  0 ❌ ±0 

Results for commit 6639770. ± Comparison against base commit a2faf35.

♻️ This comment has been updated with latest results.

CHANGELOG.md Outdated Show resolved Hide resolved
mithril-common/src/messages/cardano_stake_distribution.rs Outdated Show resolved Hide resolved
mithril-aggregator/src/database/record/signed_entity.rs Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
mithril-test-lab/mithril-end-to-end/src/end_to_end_spec.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@sfauvel sfauvel left a comment

Choose a reason for hiding this comment

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

LGTM
Just a few questions about the way of testing

@dlachaume dlachaume force-pushed the dlachaume/1841/implement-cardano-stake-distribution-routes branch from 6f683a2 to 3aa5077 Compare August 1, 2024 16:10
dlachaume and others added 14 commits August 2, 2024 14:11
Add test tooling for `CardanoStakeDistributionMessage` and `CardanoStakeDistribution` signed entity
… by epoch

Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
…CardanoStakeDistribution` by epoch

Remove previous implementation
…signed entity instead of using the epoch of the artifact to build the messages
Co-authored-by: Sébastien Fauvel <sfauvel@users.noreply.github.com>
@dlachaume dlachaume force-pushed the dlachaume/1841/implement-cardano-stake-distribution-routes branch from 3aa5077 to 03f838d Compare August 2, 2024 16:35
@dlachaume dlachaume force-pushed the dlachaume/1841/implement-cardano-stake-distribution-routes branch from 03f838d to af00dec Compare August 2, 2024 16:47
@dlachaume dlachaume force-pushed the dlachaume/1841/implement-cardano-stake-distribution-routes branch 2 times, most recently from bccf5be to a8fd4b5 Compare August 5, 2024 13:50
@dlachaume dlachaume force-pushed the dlachaume/1841/implement-cardano-stake-distribution-routes branch from a8fd4b5 to 66a4aa1 Compare August 5, 2024 15:39
Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dlachaume dlachaume merged commit dcf8f63 into main Aug 5, 2024
40 checks passed
@dlachaume dlachaume deleted the dlachaume/1841/implement-cardano-stake-distribution-routes branch August 5, 2024 15:56
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.

Implement routes for Cardano Stake Distribution in aggregator REST API
3 participants