feat(cli): --network on (Phase-6 v2)#55
Merged
Merged
Conversation
…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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Extends PR #54's per-command network threading to
sphere host local-spawntoo. Needed to bring up a local HM for non-trader tenants (escrow, faucet) on testnet2.