Skip to content

Remove wallet migrate + legacy import (companion to sphere-sdk#655)#53

Merged
vrogojin merged 1 commit into
@vrogojin/uxffrom
vrogojin/uxf-p6-remove-legacy-migrate
Jul 8, 2026
Merged

Remove wallet migrate + legacy import (companion to sphere-sdk#655)#53
vrogojin merged 1 commit into
@vrogojin/uxffrom
vrogojin/uxf-p6-remove-legacy-migrate

Conversation

@vrogojin

@vrogojin vrogojin commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Companion PR to sphere-sdk#655 (wave 6-P2-19 v1-purge).

sphere-sdk deleted the importLegacyTokens export. Without this CLI companion PR merged FIRST, sphere-cli blows up at boot:

SyntaxError: does not provide an export named 'importLegacyTokens'

Removed the legacy migrate subcommand + import + migration-hint block. Build passes.

…ort dependency

Companion PR to sphere-sdk#655 (wave 6-P2-19) which deletes the legacy
v1 import path entirely per user directive "No v1 backward compatibility!".

Removals from src/legacy/legacy-cli.ts:
- `import { importLegacyTokens } from '@unicitylabs/sphere-sdk/profile'`
  — the deleted SDK export
- `case 'migrate':` handler (~186 LoC) — the imperative migrate command
- `'wallet migrate':` help-table entry
- Migration hint block at legacy-wallet detection ("Legacy wallet
  detected at ... — run: sphere wallet migrate")
- 'migrate' entry in the wallet subcommand list

Rationale: v1 aggregator is retired; v1 wallets can no longer transact.
Rather than keep an import path that reads dead-format data, delete it
entirely and rebuild any migration flow as a first-class import if the
need arises again.

Must land BEFORE sphere-sdk#655 or the CLI blows up at boot with
`SyntaxError: does not provide an export named 'importLegacyTokens'`.

Build: `npm run build` clean.
@vrogojin vrogojin merged commit 6cab293 into @vrogojin/uxf Jul 8, 2026
@vrogojin vrogojin deleted the vrogojin/uxf-p6-remove-legacy-migrate branch July 8, 2026 14:11
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