Repository navigation
feat: on-chain LCAI bridge history with Lightscan links - #27
Merged
Merged
Conversation
Hyperlane's hosted explorer does not index Lightchain, so the tray's API history was always empty, and Buy & Bridge transfers were never recorded. - history/useBridgeHistory: rebuild the wallet's bridge history from the warp-route events (SentTransferRemote / ReceivedTransferRemote) via the Etherscan logs API (Ethereum/Sepolia) and Lightscan's Blockscout API (Lightchain). Sends are paired with deliveries by amount and order to derive Delivered vs pending and the destination tx hash. Both directions. - SideBarMenu: use on-chain history merged with this browser's local list (de-duplicated by origin tx). Each row links to the Lightscan tx of the delivery (or the origin tx on the other explorer). Drops the Hyperlane GraphQL source and infinite scroll. - ZapForm: record the zap in local history once mined, from the Zapped event, so it appears immediately and upgrades to Delivered on refresh. - TransfersDetailsModal: show the destination tx with its explorer link. - TransferContext: add destinationTxHash. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
lightnessonchain
approved these changes
Oct 8, 2026
This branch was successfully deployed
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.
Summary
#26 merged before this commit was pushed, so the tray history fix needs its own PR.
Hyperlane's hosted explorer does not index Lightchain, so the wallet tray's transfer history was always empty, and Buy & Bridge transfers were never recorded locally.
src/features/history/useBridgeHistory.ts: rebuilds the connected wallet's LCAI bridge history from the warp-routeSentTransferRemote/ReceivedTransferRemoteevents, via the Etherscan logs API (Ethereum / Sepolia) and Lightscan's Blockscout API (Lightchain). Sends are paired with deliveries by amount and order to derive Delivered vs pending and the destination tx hash. Both directions.SideBarMenu: on-chain history merged with this browser's local list, de-duplicated by origin tx. Each row links to the Lightscan transaction of the delivery (or the origin tx on the other explorer). Hyperlane GraphQL source and infinite scroll removed.ZapForm: records the zap in local history from theZappedevent as soon as it mines, so it shows immediately and upgrades to Delivered on refresh.TransfersDetailsModal: shows the destination tx with its explorer link.Verified against the test wallet: 3 mainnet zaps, all Delivered, each ~40s after send, with Lightscan hashes.
🤖 Generated with Claude Code