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

feat: gate controller-only asset tracking - #363

Closed
ulissesferreira wants to merge 1 commit into
WPN-1497-controller-readsfrom
WPN-1499-stop-snap-tracking
Closed

feat: gate controller-only asset tracking#363
ulissesferreira wants to merge 1 commit into
WPN-1497-controller-readsfrom
WPN-1499-stop-snap-tracking

Conversation

@ulissesferreira

@ulissesferreira ulissesferreira commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Explanation

Stacked on: ##362 (WPN-1497-special-assets-writes)

This is PR 4/4 — the final stage for WPN-1478.

Current state: Through stage 2, the Snap continues to poll the chain and persist assets locally alongside the controller write path. This dual-write ensures rollback safety (if the rollout flag is reduced, Snap state is still accurate).

This PR: At stage 3 (ReadAssetsControllerOnly), gates all Snap-side tracking and persistence off:

  • Polling stops
  • AssetsService.saveMany / local persistence stops
  • AccountAssetListUpdated / AccountBalancesUpdated events stop

The controller is now the sole source of truth for Tron assets. Rollback requires re-enabling tracking + resync.

Files: 2 modified. Built on reads branch.

References

  • Parent: WPN-1478 (Migrate Tron Snap to consume AssetsController)
  • Sub-task: WPN-1499 (Stage 2→3: stop Snap tracking)
  • Follow-up cleanup: WPN-1488 (remove dead Snap asset code after soak period)
  • Depends on Core: WPN-1489, WPN-1490

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
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Disables Snap asset persistence for controller-only migration stages.

Builds on WPN-1478-controller-reads-fallback.

Jira: WPN-1478
@ulissesferreira
ulissesferreira changed the base branch from WPN-1497-controller-reads to main July 21, 2026 16:25
@ulissesferreira
ulissesferreira changed the base branch from main to WPN-1497-controller-reads July 21, 2026 16:26
@ulissesferreira

Copy link
Copy Markdown
Contributor Author

Tentative approach under old ASSETS-2 shape — superseded by WPN-1478 redesign.

@ulissesferreira
ulissesferreira deleted the WPN-1499-stop-snap-tracking branch July 24, 2026 18:24
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