You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(stellar): fetch live data in keyring listAccountAssets and getAccountBalances + read balance data from AssetsController + stop account sync while Asset migration is on - #331
Keyring listAccountAssets and getAccountBalances read live holdings from AssetsController when the Stellar asset migration is on.
Account synchronization is skipped only while that migration is on. AssetsController owns fungible holdings in that mode, so the snap does not persist on-chain account snapshots or emit keyring balance events. When migration is off, account sync still runs against snap state.
References
Checklist
I've updated the test suite for new or updated code as appropriate
I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
There are confirmed blocking issues that force migration behavior on unconditionally and bypass the intended migration guard when backfilling the catalog, plus a formatting issue likely to fail lint/format checks.
Get a fresh assessment by requesting another Copilot review.
Adds initial “Core assets migration” plumbing for the Stellar snap so that (when a remote flag enables it) holdings and catalog metadata can be read from Core’s AssetsController instead of snap state, while still allowing fallback to existing snap persistence where needed.
Changes:
Introduces AssetsService + CoreAssetsAdapter and wires Core messenger/endowments to fetch account assets and asset metadata.
Updates on-chain account resolution/sync to optionally bind balances from Core assets and (optionally) overlay account ledger meta from Soroban RPC.
Extends network layer with getAccountLedgerMeta and adds additional validation helpers for Stellar int64-like values.
File
Description
yarn.lock
Adds Core migration-related dependencies for the Stellar snap workspace.
The PR title says account synchronization stops while Asset migration is off, but this guard skips synchronization only when isMigrationEnabled() is true; the surrounding implementation and tests describe the opposite behavior. Please correct the title/description if migration-on is intended, or revisit the guard if migration-off is the requirement.
stanleyyconsensys
changed the title
feat(stellar): fetch live data in keyring listAccountAssets and getAccountBalances + read balance data from AssetsController + stop account sync while Asset migration is off
feat(stellar): fetch live data in keyring listAccountAssets and getAccountBalances + read balance data from AssetsController + stop account sync while Asset migration is on
Oct 23, 2026
Updated changelog to clarify asset balance reading conditions and included SEP-41 balances.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
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.
Explanation
Keyring
listAccountAssetsandgetAccountBalancesread live holdings from AssetsController when the Stellar asset migration is on.Account synchronization is skipped only while that migration is on. AssetsController owns fungible holdings in that mode, so the snap does not persist on-chain account snapshots or emit keyring balance events. When migration is off, account sync still runs against snap state.
References
Checklist