Repository navigation
feat: rpc capability discovery, evm lifecycle states, soroban footprint, sequence reservation - #1403
Merged
mijinummi merged 1 commit intoOct 21, 2026
Conversation
…nt, sequence reservation Closes MDTechLabs#1323 Closes MDTechLabs#1324 Closes MDTechLabs#1325 Closes MDTechLabs#1326
|
@Sarietgold Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
7 tasks
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.
Description
This PR implements chain-specific RPC capability discovery, EVM transaction lifecycle state machine, Soroban authorization footprint regression tests, and Stellar account sequence reservation.
Closes #1323
Closes #1324
Closes #1325
Closes #1326
Changes Made
1. Chain-Specific RPC Capability Discovery (
apps/api/src/execution/evm/rpc-capability-discovery.ts) — Closes #1323ChainRpcCapabilityDiscoveryServiceto dynamically probe, validate, and record EVM node RPC capabilities (EIP-1559, EIP-4844, debugTrace, stateOverride, finalityTags, wsSubscriptions).ChainIdMismatchErrorto strictly enforce chain boundaries and prevent cross-chain transaction replay/execution against mismatched network endpoints.sanitizeEndpointto redact secrets, tokens, API keys, basic authentication, and path-based API keys from logs, diagnostics, and metrics.2. EVM Transaction Lifecycle State Machine (
apps/api/src/execution/evm/evm-transaction-lifecycle.ts) — Closes #1324EvmTransactionLifecycleManagerenforcing valid EVM execution states:prepared,submitted,in_mempool,mined,confirmed,replaced,reorg_detected,reverted,timed_out,cancelled.LifecycleVersionConflictError) to prevent concurrent race conditions and duplicate submissions.minedtoconfirmedonce target confirmations are reached.reorg_detected.privateKey,secret,token,signature,mnemonic).3. Soroban Authorization Footprint Regression Suite (
apps/api/src/soroban/authorization/soroban-footprint.ts) — Closes #1325SorobanFootprintValidatorfor Soroban contract invocations and ledger footprint validation (readOnlyandreadWritesets).readWritekeys across parallel transactions.cpuInstructions,memoryBytes,readBytes,writeBytes) withResourceLimitExceededError.NetworkPassphraseMismatchErrorto prevent cross-network replay between Stellar Public Mainnet and Testnet.4. Stellar Account Sequence Reservation (
apps/api/src/stellar/sequence/stellar-sequence-reservation.ts) — Closes #1326StellarSequenceReservationServiceto atomically allocate and manage monotonic transaction sequences for Stellar source accounts across concurrent bridge execution workers.SequenceGapDetectedError) when releasing middle-of-stack sequences.expireDue()) for stale reservations.SequenceReservationLimitError) to guard against runaway uncommitted sequences.Testing & Verification
apps/api/src/execution/evm/rpc-capability-discovery.spec.tsapps/api/src/execution/evm/evm-transaction-lifecycle.spec.tsapps/api/src/soroban/authorization/soroban-footprint.spec.tsapps/api/src/stellar/sequence/stellar-sequence-reservation.spec.ts