From 9196f4804851a87c8356418b1c4cade6e87c54ba Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 1 Aug 2026 19:12:51 -0700 Subject: Default new mainnet wallets to the coinos ASP (ark.coinos.io) Existing wallets with an explicitly chosen provider keep it; a wallet that was riding the old default keeps its second.tech coins under that server's namespace and can reselect it in Settings at any time. Co-Authored-By: Claude Fable 5 --- src/api.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index 456b840..8fefa5f 100644 --- a/src/api.js +++ b/src/api.js @@ -209,8 +209,8 @@ export function getBoltzWs() { const p = getBoltzProvider(); return p.ws || deri const ARK_PRESETS_BY_NET = { mainnet: [ { id: 'off', label: 'Off', ark: '', esplora: '' }, - { id: 'second', label: 'Second (ark.second.tech)', ark: 'https://ark.second.tech', esplora: 'https://mempool.second.tech/api' }, { id: 'coinos', label: 'coinos (ark.coinos.io)', ark: 'https://ark.coinos.io', esplora: 'https://mempool.space/api' }, + { id: 'second', label: 'Second (ark.second.tech)', ark: 'https://ark.second.tech', esplora: 'https://mempool.second.tech/api' }, { id: 'custom', label: 'Custom…', ark: '', esplora: '' }, ], // No public ASP on these networks (Second runs signet + mainnet only) — @@ -236,8 +236,11 @@ const ARK_PRESETS_BY_NET = { ], }; // On by default where a known-good server exists; the Settings card can -// always turn it off. -const ARK_DEFAULT = { mainnet: 'second', testnet: 'off', signet: 'second', mutinynet: 'off', regtest: 'local' }; +// always turn it off. NOTE for anyone flipping the mainnet default: ark +// state is namespaced per server, so a user who never explicitly picked a +// provider follows the default — their coins on the old ASP stay safe under +// its namespace but disappear from view until they reselect it in Settings. +const ARK_DEFAULT = { mainnet: 'coinos', testnet: 'off', signet: 'second', mutinynet: 'off', regtest: 'local' }; const ARK_PROVIDER_KEY = 'btc-wallet-ark-provider'; // selected preset id, per network const ARK_CUSTOM_KEY = 'btc-wallet-ark-custom'; // { ark, esplora } for custom, per network -- cgit v1.2.3