From dcab5c10ec7b2bcd5db67d0165d26980d0be5637 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Sun, 6 Sep 2026 02:33:27 +0200 Subject: [PATCH] feat(theseus/bchwallet): bundled Bitcoin Cash wallet add-on skeleton Manifest declaring sidebar-panel, vault-derive, page-inject (https://*.x) and approval-modal; registers the Wallet sidebar panel. Shows up in Settings > Extensions and opens from the sidebar. --- bundled-addons/bchwallet/addon.json | 14 +++++++++++ bundled-addons/bchwallet/index.js | 9 +++++++ bundled-addons/bchwallet/panel.html | 29 +++++++++++++++++++++++ bundled-addons/bchwallet/wallet-inject.js | 1 + 4 files changed, 53 insertions(+) create mode 100644 bundled-addons/bchwallet/addon.json create mode 100644 bundled-addons/bchwallet/index.js create mode 100644 bundled-addons/bchwallet/panel.html create mode 100644 bundled-addons/bchwallet/wallet-inject.js diff --git a/bundled-addons/bchwallet/addon.json b/bundled-addons/bchwallet/addon.json new file mode 100644 index 0000000..eeac612 --- /dev/null +++ b/bundled-addons/bchwallet/addon.json @@ -0,0 +1,14 @@ +{ + "id": "bchwallet", + "name": "Bitcoin Cash Wallet", + "version": "0.1.0", + "description": "Send, receive and sign with a BCH wallet derived from your Theseus vault. Dapps on .x sites can request payments through window.bitcoincash.", + "author": "Silent Mode", + "icon": "₿", + "main": "index.js", + "capabilities": ["sidebar-panel", "vault-derive", "page-inject", "approval-modal"], + "page-inject": { + "preload": "wallet-inject.js", + "origins": ["https://*.x/*"] + } +} diff --git a/bundled-addons/bchwallet/index.js b/bundled-addons/bchwallet/index.js new file mode 100644 index 0000000..9b9b142 --- /dev/null +++ b/bundled-addons/bchwallet/index.js @@ -0,0 +1,9 @@ +// Bitcoin Cash Wallet — bundled Theseus add-on. activate() runs in the main +// process; all key material lives here, in memory, and is re-derived from the +// password vault on every launch. +module.exports = { + activate(api) { + api.registerSidebarPanel({ id: "main", title: "Wallet", icon: "₿", page: "panel.html" }); + api.log("wallet panel registered"); + }, +}; diff --git a/bundled-addons/bchwallet/panel.html b/bundled-addons/bchwallet/panel.html new file mode 100644 index 0000000..9d7bf93 --- /dev/null +++ b/bundled-addons/bchwallet/panel.html @@ -0,0 +1,29 @@ + + + + +Bitcoin Cash Wallet + + + +
₿Bitcoin Cash Wallet
+
Loading…
+ + diff --git a/bundled-addons/bchwallet/wallet-inject.js b/bundled-addons/bchwallet/wallet-inject.js new file mode 100644 index 0000000..346aea5 --- /dev/null +++ b/bundled-addons/bchwallet/wallet-inject.js @@ -0,0 +1 @@ +// Placeholder — filled in by the dapp-bridge step.