STR 1348 Withdrawal request indexer for monitoring dashboard#223
Draft
krsnapaudel wants to merge 5 commits intomainfrom
Draft
STR 1348 Withdrawal request indexer for monitoring dashboard#223krsnapaudel wants to merge 5 commits intomainfrom
krsnapaudel wants to merge 5 commits intomainfrom
Conversation
storopoli
requested changes
May 5, 2026
e59aced to
ff8a74a
Compare
storopoli
approved these changes
May 6, 2026
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
Foundation for a dashboard-side EVM withdrawal indexer: tails
WithdrawalIntentEventlogs from the bridge-out precompile and persists them in FIFO order. First half of recoveringwithdrawal_request_txid ↔ deposit_idxafter the bridge stopped carrying the WRT. Pairing is deferred to a follow-up.What's in
bin/dashboard+crates/{bridge,network,config,utils}.WithdrawalIndexerDbwith transactionalinsert_withdrawal_event(atomic across rows + reverse index, idempotent on replay) and bijection-enforcinginsert_pairing.eth_getLogs→ decode viaalpen_reth_primitives→ expand byFIXED_WITHDRAWAL_SATS→ persist. Cursor-aware, finality-lag-aware, log-order-normalized.#[ignore]d) against testnet.strata_tasks::TaskExecutor+ShutdownGuardfor all four long-running tasks (network, bridge, indexer, HTTP).nightly-2026-01-01.Fixes STR-1348
NOTE: We cannot merge this yet. We need to figure out the versions of
alpenandstrata-bridgethat we can use.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
rows_persist_across_reopen.(block_number, log_index)order.FIXED_WITHDRAWAL_SATSre-derived fromWEI_PER_BTC / WEI_PER_SAT.load_from_path, getters,WithdrawalIndexerConfigdefaults.Optional live smoke (
#[ignore])ETH_RPC_URL=https://rpc.testnet.alpenlabs.io cargo test live_smoke -- --ignored --nocapture— exercisesJsonRpcEthClient+ decoder againstreal bridgeout logs; confirms ABI parity with the pinned
alpen-reth-primitivesrev.Checklist: