Skip to content
This repository was archived by the owner on Jul 15, 2026. It is now read-only.

Use audit events for TIPS transaction views#166

Open
niran wants to merge 11 commits into
masterfrom
niran/transaction-events-query
Open

Use audit events for TIPS transaction views#166
niran wants to merge 11 commits into
masterfrom
niran/transaction-events-query

Conversation

@niran

@niran niran commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the TIPS UI transaction data path with audit-archiver backed reads while preserving S3 fallback compatibility for deployments where audit-archiver has not been fully rolled out.

  • Reads transaction, bundle, rejected transaction, and block event-history data from the audit JSON-RPC API via TIPS_UI_AUDIT_RPC_URL.
  • Keeps S3-backed endpoints as fallbacks so existing functionality continues to work while audit-backed data becomes available.
  • Keeps TIPS_UI_RPC_URL for canonical block and transaction details, including enriching bundle transactions from RPC instead of relying on synthetic audit payload fields.
  • Joins bundle, transaction, payload, flashblock, and block-context audit events so bundle and block pages can show relevant event history.
  • Displays event history on block pages and polishes block/bundle event rows with a compact timeline layout, consistent Block #N · FBM context, elapsed T + ... timing after the first event, source/target/reason chips, and a JSON expander button.
  • Adapts current audit event payloads including SIMULATION_SUCCEEDED, SIMULATION_FAILED, BUILDER_REJECTED, metering responses, payload IDs, flashblock indices, and observability source metadata.

Verification

  • bun test src/lib/audit-events.test.ts
  • bun run build

Notes

  • The audit API is preferred when available; S3 fallback remains intentionally present for compatibility during rollout.
  • TIPS_UI_RPC_URL is still required for canonical transaction and block data enrichment.

@niran niran force-pushed the niran/transaction-events-query branch from 3557db7 to 6e54969 Compare June 11, 2026 22:47
@niran niran changed the title Add audit event backed TIPS routes Use audit events for TIPS transaction views Jun 18, 2026
niran added 2 commits June 17, 2026 23:41
Treat the audit JSON-RPC path as optional so block, transaction, bundle, and rejection views continue serving legacy S3 data during rollout or audit outages. Add a bounded audit request timeout and remove the remaining untyped metering access so the PR passes local lint and type checks.
@niran niran marked this pull request as ready for review July 14, 2026 23:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant