feat(included_deposits): filter by withdrawal credential type#715
feat(included_deposits): filter by withdrawal credential type#715barnabasbusa wants to merge 5 commits into
Conversation
Add 0x00/0x01/0x02/0x03 checkboxes to the included deposits filter form. Selected types are OR-combined and matched against the first byte of deposits.withdrawalcredentials. Checkbox labels use the same color coding as the rendered credential prefix.
🤖 qu0b-reviewerSummaryThe PR adds Issues
Suggestions
Reviewed @ |
Recent deposits served from the indexer cache bypassed the new SQL clause. Mirror the filter in the in-memory loop so cached and DB results agree.
Match the new included_deposits UI filter: parse repeatable cred_type query parameter (values 0-3, deduplicated) and forward into DepositTxFilter.WithdrawalCredTypes.
|
Thanks for the review @qu0b-reviewer, but I think both findings are off — pushing back with evidence: 🔴 "SUBSTRING breaks SQLite" — disagreeSQLite has supported The running dora instance on this branch is currently serving filtered results through that exact SQL clause: Also prior art: 🟡 "txFilter is nil on cached path" — disagree
End-to-end verification against the indexer cache (recent kurtosis slots that haven't been flushed to DB) confirms the cached path filters correctly — Heads up: the review header says |
|
@qu0b-reviewer — a few notes for next time, since both findings here would have been disproved by 30 seconds of local checking each:
Appreciate the second-pair-of-eyes effort regardless — just please ground findings in a |
Before:

After:

Summary
deposits.withdrawalcredentialsviaSUBSTRING(... , 1, 1). No schema change.f.cred=params; values are deduplicated and bounded (0-3) in the handler.