Complete/test json-rpc-bridge (historical sync)#6
Merged
Conversation
Moved bridges to better namespace structure:
- crates/bridges/erigon-bridge → crates/bridges/evm/erigon-bridge
- crates/bridges/jsonrpc-bridge → crates/bridges/evm/jsonrpc-bridge
Benefits:
- Clear EVM-specific namespace for future multi-chain support
- Consistent location for all EVM-related bridges
- Better organization as we add more bridge types
Also updated to use workspace dependencies:
- Added erigon-bridge, jsonrpc-bridge, phaser-bridge, evm-common to
workspace.dependencies in root Cargo.toml
- Updated all crates to use `{ workspace = true }` instead of relative paths
- Cleaner dependency management across the workspace
No functional changes - pure reorganization.
Migrate from deprecated .on_* methods to new .connect_* methods: - on_ws -> connect_ws - on_http -> connect_http - on_ipc -> connect_ipc
Implement create_historical_stream to fetch specific block ranges via batch requests. Update do_get to handle both QueryMode::Historical and QueryMode::Live. Add max_batch_size configuration and update capabilities to include data type support (blocks/transactions/logs). Historical mode fetches blocks in batches and converts them to Arrow RecordBatches, while live mode continues using broadcast channels.
Extract both first and last block numbers from each batch to accurately track the block range being written. Update temp filenames to include the starting block number for better debugging.
Correctly calculate segment_to as (segment_num + 1) * segment_size - 1 and clamp segment_from to respect the requested from_block parameter.
Remove default endpoint value to require explicit configuration. Apply cargo fmt formatting throughout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.