Add TeraTestNet (ttn) network support - #55
Merged
Conversation
Bump @bsv/* deps to latest (wallet-toolbox 2.1.30 -> 2.3.2, which adds 'ttn' to the Chain type and auto-configures ttn service endpoints). Widen the app's network type from 'main' | 'test' to 'main' | 'test' | 'ttn' across IPC, storage, and wallet plumbing; add a TeraTestNet option to the network selector; and route WhatsOnChain calls through a new chain-keyed helper so funding/legacy-bridge flows hit the ttn WoC host. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTzRUkGAVsfXyD5fMT1UXY
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
ttn) as a third network alongside mainnet/testnet@bsv/*deps to latest —wallet-toolbox/-client2.1.30 → 2.3.2, which adds'ttn'to theChaintype and auto-configures ttn service endpoints (ARC, ChainTracks, WhatsOnChain)Changes
@bsv/*→ latest (seepackage.json)'main' | 'test'→'main' | 'test' | 'ttn'across IPC (global.d.ts,electron/{main,preload,storage,monitor-worker}.ts),StorageElectronIPC,WalletService,WABConfig,getBeefForTxid,GreeterWalletConfig+wallet_config_teratestnetkey in all 12 translation sectionschaintoWalletContextValue;networkmapsmain→mainnet, elsetestnet(ttn uses testnet-style addresses)src/lib/utils/woc.ts(wocApiBase/wocExplorerBase); funding + legacy-bridge UTXO/BEEF fetches now pick the ttn WoC host viachainTest plan
tsc --noEmit(renderer) — cleantsc -p tsconfig.electron.json— cleannpm test— 13/13 (translation coverage incl. new key)api.woc-ttn.bsvblockchain.tech🤖 Generated with Claude Code