Skip to content

Add TeraTestNet (ttn) network support - #55

Merged
sirdeggen merged 1 commit into
masterfrom
feat/teratestnet-support
Jun 25, 2026
Merged

Add TeraTestNet (ttn) network support#55
sirdeggen merged 1 commit into
masterfrom
feat/teratestnet-support

Conversation

@sirdeggen

Copy link
Copy Markdown
Contributor

Summary

  • Add TeraTestNet (ttn) as a third network alongside mainnet/testnet
  • Bump all @bsv/* deps to latest — wallet-toolbox/-client 2.1.30 → 2.3.2, which adds 'ttn' to the Chain type and auto-configures ttn service endpoints (ARC, ChainTracks, WhatsOnChain)

Changes

  • Deps: @bsv/* → latest (see package.json)
  • Types: widen network union 'main' | 'test''main' | 'test' | 'ttn' across IPC (global.d.ts, electron/{main,preload,storage,monitor-worker}.ts), StorageElectronIPC, WalletService, WABConfig, getBeefForTxid, Greeter
  • UI: TeraTestNet button in WalletConfig + wallet_config_teratestnet key in all 12 translation sections
  • Context: add chain to WalletContextValue; network maps main→mainnet, else testnet (ttn uses testnet-style addresses)
  • Endpoints: new src/lib/utils/woc.ts (wocApiBase/wocExplorerBase); funding + legacy-bridge UTXO/BEEF fetches now pick the ttn WoC host via chain
  • electron/storage.ts: skip the bsvb.tech ChainTracks override for ttn — keep the toolbox arcade default

Test plan

  • tsc --noEmit (renderer) — clean
  • tsc -p tsconfig.electron.json — clean
  • npm test — 13/13 (translation coverage incl. new key)
  • Manual: select TeraTestNet, confirm wallet connects + funding flow hits api.woc-ttn.bsvblockchain.tech

🤖 Generated with Claude Code

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
@sirdeggen
sirdeggen merged commit 7d469c7 into master Jun 25, 2026
6 checks passed
@sirdeggen
sirdeggen deleted the feat/teratestnet-support branch June 25, 2026 17:12
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