refactor: split lavap into two distinct deployment modes and d…#2108
Merged
Conversation
…ecouple smart router from blockchain dependencies Major architectural refactoring that splits lavap into two distinct deployment modes and decouples the smart router from blockchain dependencies. Core Changes: 1. Split lavap into two separate commands: - lavap rpcconsumer - Decentralized mode with blockchain pairing - lavap rpcsmartrouter - Centralized/enterprise mode with static providers 2. Disconnected rpcsmartrouter from blockchain: - No blockchain state tracking - Removed dependency on ongoing blockchain queries - No epoch management - Uses standalone epoch timer (15-minute default) - No on-chain pairing - Static providers configured via YAML instead - Optional blockchain connection - Only queries spec once during initialization (can use static spec files) - Ephemeral key mode - Can run without keyring/wallet using generated ephemeral keys - Approximate block height - Calculated from epoch timer instead of blockchain queries Additional Improvements: - Enhanced static provider validation with spec path validation and improved configuration handling - Improved session/epoch management with callbacks for flexible block height sources - Better error handling in relay functions, health commands, and E2E test scripts - E2E test infrastructure with error diagnostics and enhanced blockchain query handling - Code quality improvements including fixed linting issues and reduced conditional nesting
Test Results2 954 tests +132 2 953 ✅ +132 32m 1s ⏱️ +48s Results for commit f5c4067. ± Comparison against base commit 2279f66. This pull request removes 32 and adds 164 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
AnnaR-prog
approved these changes
Nov 18, 2025
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.
…ecouple smart router from blockchain dependencies
Description
Major architectural refactoring that splits
lavapinto two distinct deployment modes and decouples the smart router from blockchain dependencies.Core Changes
1. Split lavap into two separate commands:
lavap rpcconsumer- Decentralized mode with blockchain pairinglavap rpcsmartrouter- Centralized/enterprise mode with static providers2. Disconnected rpcsmartrouter from blockchain:
Additional Improvements
Architecture Impact