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.