Skip to content

feat: add Stellar network presets - #428

Merged
meshackyaro merged 2 commits into
trustflow-protocol:mainfrom
Johnjnr1:feat/network-presets
Oct 6, 2026
Merged

meshackyaro merged 2 commits into
trustflow-protocol:mainfrom
Johnjnr1:feat/network-presets

Conversation

@Johnjnr1

@Johnjnr1 Johnjnr1 commented Oct 1, 2026

Copy link
Copy Markdown

closes #370

Implemented four presets in network.ts, with NETWORKS as the canonical export and NETWORK_CONFIGS retained as a compatibility alias. TrustFlowClient now accepts each network by name, rejects empty passphrases and unsupported runtime network values, and provides switchNetwork() to update endpoints and passphrase while clearing cached connections. connect() now checks Horizon and Soroban RPC health.

Added focused coverage for presets, switching, passphrase validation, and endpoint failures. Source and test typechecks, lint, and git diff --check pass. Jest could not start: its configured transformer failed to resolve ts-jest, so the tests remain unexecuted.

@drips-wave

drips-wave Bot commented Oct 1, 2026

Copy link
Copy Markdown

@Johnjnr1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Johnjnr1

Johnjnr1 commented Oct 3, 2026

Copy link
Copy Markdown
Author

@connelevalsam @pheobeayo please review my work and merge

@meshackyaro
meshackyaro merged commit 5bd34db into trustflow-protocol:main Oct 6, 2026
3 of 8 checks 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.

Add predefined network presets for Mainnet, Testnet, Futurenet, and Localnet

3 participants