aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-01 19:12:51 -0700
committerAdam Soltys <[email protected]>2026-08-01 19:12:51 -0700
commit9196f4804851a87c8356418b1c4cade6e87c54ba (patch)
treed077e8c2d6973477aa7c246b60e8d3370e1f0db7
parentb73bb9ee51b9be33bc1859fd56d3e11905c3d456 (diff)
downloadcoinosv3-9196f4804851a87c8356418b1c4cade6e87c54ba.tar.gz
coinosv3-9196f4804851a87c8356418b1c4cade6e87c54ba.zip
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 <[email protected]>
-rw-r--r--src/api.js9
1 files changed, 6 insertions, 3 deletions
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