Repository navigation
[Feature] #69 — Multi-network support (Mainnet / Testnet / Futurenet) - #71
Merged
SharifIbrahimDev merged 2 commits intoJun 24, 2026
Conversation
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.
Summary
Implements issue #69 — allows ChainScope to connect to any Stellar
network seamlessly, both via CLI flag and live TUI hotkey switching.
Changes
New
src/config/networks.ts— central network registry with Horizon URLs,Soroban RPC endpoints, and passphrases for all three networks
src/hooks/useNetwork.ts— React hook exposingsetNetwork()andcycleNetwork()for Dashboard integrationtests/config/networks.test.ts— 12 tests covering URL uniqueness,passphrase uniqueness, and
resolveNetwork()case-insensitivitytests/hooks/useNetwork.test.ts— 11 tests covering cycle logic,selection, and UI label formatting
Modified
src/index.js—--network <mainnet|testnet|futurenet>flag +--watchmode with[n]hotkey to cycle networks livetests/mocks/horizonMock.ts— mock helpers now accept anetworkparam to target any of the three Horizon base URLs
tests/integration/horizonMock.test.ts— added testnet/futurenetmock tests + network isolation assertion
package.json— widened engine constraint from>=20 <21to>=20Acceptance Criteria
--networkCLI flag works for all three networks[n]hotkey cycles networks dynamically in--watchmodeTests
42 passing, 0 failing
Closes #69