Skip to content

feat(rpc): introduce taiko_setBatchToLastBlock and taiko_lastL1OriginByBatchID RPC methods for Shasta protocol#11

Merged
davidtaikocha merged 6 commits intomainfrom
update-devnet-genesis-2
Sep 22, 2025
Merged

feat(rpc): introduce taiko_setBatchToLastBlock and taiko_lastL1OriginByBatchID RPC methods for Shasta protocol#11
davidtaikocha merged 6 commits intomainfrom
update-devnet-genesis-2

Conversation

@davidtaikocha
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces two new RPC methods for the Shasta protocol: taiko_setBatchToLastBlock for setting batch-to-block mappings and taiko_lastL1OriginByBatchID for retrieving L1 origins by batch ID. The implementation also includes code formatting improvements for better readability.

  • Adds a new database table BatchToLastBlock to store batch ID to last block number mappings
  • Implements taiko_setBatchToLastBlock method for storing batch-to-block relationships
  • Implements taiko_lastL1OriginByBatchID method for querying L1 origins by batch ID

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/db/model.rs Adds new BatchToLastBlock table definition for storing batch-to-block mappings
src/rpc/eth/eth.rs Implements last_l1_origin_by_batch_id method for retrieving L1 origins by batch ID
src/rpc/eth/auth.rs Implements set_batch_to_last_block method and includes code formatting improvements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@davidtaikocha davidtaikocha merged commit 4338b00 into main Sep 22, 2025
3 checks passed
@davidtaikocha davidtaikocha deleted the update-devnet-genesis-2 branch September 22, 2025 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants