You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Satoshi Genesis sample wallet to self-hosted onboarding (#234)
* Add Satoshi Genesis sample wallet to self-hosted onboarding
Add a second sample wallet option alongside Bacon in the self-hosted
onboarding flow. On mainnet/testnet, it uses Satoshi's real genesis
block coinbase public key. On regtest, it uses a deterministic funded
address for a useful onboarding experience.
Refactor the sample wallet system from single-wallet to multi-wallet:
- Replace SAMPLE_WALLET_SLUG + network-keyed record with SampleWallet[]
array supporting per-network descriptor overrides
- Sample wallet buttons now fill the form inline instead of navigating
to separate routes
- Prompt stays visible until user adds a non-sample wallet, with
already-added sample wallets filtered from the buttons
- Generalize bacon-specific naming throughout (isBaconWallet →
isSampleWallet, baconPrefilled → samplePrefilled with {name} param)
- Update all 9 locale files with new translation keys
- Add deterministic satoshi-genesis wallet to dev.sh (funded 0.5 BTC)
* Remove dead code: handleSelectSampleWallet and unused SAMPLE_WALLETS import
Sample wallet selection is now inline (no navigation), so the
handleSelectSampleWallet handler and its wiring are no longer needed.
* Remove unused handleSkipToForm and add test for all sample wallets added
Address review feedback: remove handleSkipToForm dead code from the
wizard hook, and add a test verifying the sample prompt hides when
both sample wallets have already been added.
* Translate guidesPrompt key across all locale files
Copy file name to clipboardExpand all lines: frontend/messages/en-US.json
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -460,13 +460,16 @@
460
460
},
461
461
"wizard": {
462
462
"keysStaySafe": "Canary only needs your output descriptor, XPUB, or address to monitor your transactions. Your private keys stay safe in your wallet.",
463
-
"tryBaconWallet": "New here? Try with a sample wallet first to see how Canary works.",
464
-
"useBaconWallet": "Use Bacon Wallet",
463
+
"trySampleWallet": "New here? Try with a sample wallet first to see how Canary works.",
464
+
"sampleWallets": {
465
+
"bacon": "Use Bacon Wallet",
466
+
"satoshi-genesis": "Use Satoshi Genesis Address"
467
+
},
465
468
"guidesPrompt": "Unsure how to obtain output descriptors or XPUBs? Follow our guides below:",
466
469
"exportSteps": "Follow these steps to export your descriptor from {walletName}",
467
470
"pasteXpub": "Paste your XPUB below.",
468
471
"pasteDescriptor": "Paste your output descriptor or XPUB below.",
469
-
"baconPrefilled": "We've prefilled the Bacon sample wallet for you. Just click Add Wallet to continue.",
472
+
"samplePrefilled": "We've prefilled the {name} sample wallet for you. Just click Add Wallet to continue.",
0 commit comments