Skip to content

Remove account migration - no more migration - #612

Merged
n13 merged 2 commits into
mainfrom
remove-account-migration
Aug 16, 2026
Merged

Remove account migration - no more migration#612
n13 merged 2 commits into
mainfrom
remove-account-migration

Conversation

@n13

@n13 n13 commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Why

The old-chain account migration window is over.

What

  • WalletInitializer: reduced to wallet-exists + mnemonic-lost checks. Removed the migration detection, MigrationDialog, migrate/try-later handlers, and the Supabase account_id_mappings upload.
  • quantus_sdk: deleted MigrationService (and its export). Removed from SettingsService: legacy old-accounts storage (accounts v1–v4 keys), hasOldAccounts / getOldAccounts / clearOldAccounts / setOldAccountsData, and the deferred-upload accountsToMigrate methods.
  • l10n: removed all migration* strings from app_en.arb / app_id.arb and regenerated the localization classes (pure deletions).
  • Tests: deleted the two SDK migration test suites; trimmed the stale generated mocks for the removed SettingsService API.

Kept as-is: the internal single-account→list prefs-format migration in SettingsService.getAccounts (app storage format, unrelated to chain account migration), and the mining rewards screen's read of account_id_mappings — reward attribution across migrated accounts still works.

Net: −1,089 lines.

Testing

  • quantus_sdk: dart analyze clean, full flutter test suite passes (177 tests)
  • mobile-app: unit suite passes (268 tests), including the wallet-creation tests that use the trimmed mocks

n13 added 2 commits August 16, 2026 20:56
The old-chain account migration window is over: all invalid rows were
cleaned from the account_id_mappings table and anon write access was
revoked, so the app can no longer upload migrations anyway.

- Remove MigrationService, MigrationDialog, and the migration flow
  from WalletInitializer (including the Supabase upload)
- Remove legacy old-accounts storage (accounts v1-v4 keys) and the
  deferred accountsToMigrate methods from SettingsService
- Remove migration l10n strings (en, id) and regenerate localizations
- Remove migration tests and stale generated mocks

@n13 n13 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

No blocking findings. The migration decommission is internally consistent: wallet initialization no longer invokes the removed flow, the SDK export/API and stale migration tests/mocks/localizations are removed together, the unrelated single-account preferences migration remains intact, and the mining-rewards read-only account_id_mappings lookup is preserved.

Validation:

  • Exact head cbf067c15d6f6f714a2360ade2659536e4ea59b6: git diff --check and the non-mutating workspace formatting gate passed.
  • Repository-wide flutter analyze . --fatal-infos passed across all four packages.
  • Mobile-app suite: 288 tests passed.
  • Non-native quantus_sdk suite: 165 tests passed.
  • Refreshed GitHub Quantus Apps CI passed all steps on the exact head.

GitHub does not allow authors to formally approve their own PR, so this comment records the approval opinion.

@n13
n13 merged commit 398f91d into main Aug 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant