Skip to content

feat(cli): --network on (Phase-6 v2)#55

Merged
vrogojin merged 1 commit into
@vrogojin/uxffrom
vrogojin/uxf-p6-local-spawn-network
Jul 8, 2026
Merged

feat(cli): --network on (Phase-6 v2)#55
vrogojin merged 1 commit into
@vrogojin/uxffrom
vrogojin/uxf-p6-local-spawn-network

Conversation

@vrogojin

@vrogojin vrogojin commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Extends PR #54's per-command network threading to sphere host local-spawn too. Needed to bring up a local HM for non-trader tenants (escrow, faucet) on testnet2.

…pawn`

Widen `sphere host local-spawn` to accept `--network <name>` so the
per-user HM boots with the right `UNICITY_NETWORK` env var. Extends
the wave-6 pattern from PR #54 (`sphere trader spawn --network`) so
operators can bring up their own HM directly for spawning
non-trader tenants (escrow, faucet, etc.) on testnet2.

Uncovered while spawning a local v2 escrow tenant to complete
trader-roundtrip against v2 — see sphere-sdk#657 (Wave 6-P2-21
invoice-token registration) and follow-up issue on escrow
deposit-detection.

- Add `network?: string` to `LocalSpawnOpts`
- Add `.option('--network <name>', 'Sphere network: testnet|testnet2|mainnet|dev')` to `sphere host local-spawn`
- Thread through to `ensureLocalHM({network})`

Zero regression on existing callers — omitted flag falls back to the
same `SPHERE_LOCAL_HM_NETWORK` env / 'testnet' default the earlier
patch established.
@vrogojin vrogojin merged commit 8147121 into @vrogojin/uxf Jul 8, 2026
@vrogojin vrogojin deleted the vrogojin/uxf-p6-local-spawn-network branch July 8, 2026 18:15
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