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

feat: add latest synced block data #721

Merged
merged 6 commits into from
Feb 14, 2025
Merged

Conversation

PJColombo
Copy link
Member

@PJColombo PJColombo commented Feb 13, 2025

Checklist

  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

It updates the BlockchainSyncState model by keeping track of the last synced block root and slot.

This PR is related to following indexer PR

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 80e6944

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@blobscan/api Minor
@blobscan/db Minor
@blobscan/rest-api-server Patch
@blobscan/web Patch
@blobscan/blob-propagation-jobs-cli Patch
@blobscan/stats-aggregation-cli Patch
@blobscan/auth Patch
@blobscan/blob-propagator Patch
@blobscan/blob-storage-manager Patch
@blobscan/optimism-decoder Patch
@blobscan/rollups Patch
@blobscan/syncers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blobscan-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 5:02pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
blobscan-docs ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 5:02pm
blobscan-gnosis ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 5:02pm
blobscan-holesky ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 5:02pm
blobscan-mainnet ⬜️ Ignored (Inspect) Feb 13, 2025 5:02pm
blobscan-sepolia ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 5:02pm

Copy link
Contributor

github-actions bot commented Feb 13, 2025

📦 Next.js Bundle Analysis for @blobscan/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 96.29630% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.81%. Comparing base (22ae59a) to head (80e6944).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../api/src/routers/blockchain-sync-state/getState.ts 77.77% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #721   +/-   ##
=======================================
  Coverage   88.81%   88.81%           
=======================================
  Files         163      163           
  Lines       11073    11094   +21     
  Branches     1208     1208           
=======================================
+ Hits         9834     9853   +19     
- Misses       1239     1241    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PJColombo PJColombo changed the title Feat/add latest synced block data feat: add latest synced block data Feb 13, 2025
@PJColombo PJColombo marked this pull request as ready for review February 14, 2025 14:18
@PJColombo PJColombo merged commit 242af90 into main Feb 14, 2025
14 checks passed
@PJColombo PJColombo deleted the feat/add-latest-synced-block-data branch February 14, 2025 14:19
@github-actions github-actions bot mentioned this pull request Feb 14, 2025
luis-herasme pushed a commit that referenced this pull request Feb 24, 2025
* feat(db): add last synced block slot and root fields

* feat(api): expose last upper synced block root and slot fields

* chore: add changeset

* test: uncomment env var

* test(api): add tests

* fix(api): validate slot, block number, and block root when updating or fetching blockchain sync state
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.

1 participant