From 1ceb56c7b89154b7e172573e23ea5850073d4bfd Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 15 Jun 2025 18:39:48 -0700 Subject: [PATCH] Update wallet UI to use PaperclipChain - Remove Ethereum/Web3 references from HTML - Create PaperclipWallets class with Ed25519 key support - Add PaperclipDatabase for wallet storage - Update module loading order in index.html - Convert button classes from btn-etho to btn-clips --- index.html | 49 +++--- renderer/paperclip-database.js | 296 +++++++++++++++++++++++++++++++++ renderer/paperclip-wallets.js | 271 ++++++++++++++++++++++++++++++ renderer/wallets.js | 27 ++- 4 files changed, 604 insertions(+), 39 deletions(-) create mode 100644 renderer/paperclip-database.js create mode 100644 renderer/paperclip-wallets.js diff --git a/index.html b/index.html index 6d29f97..dfc1343 100755 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - $ETHO Desktop Wallet + PaperclipWallet @@ -29,7 +29,6 @@ - @@ -74,10 +73,10 @@ }); var timeouts = [ - { text: "Starting Node...", delay: 1250 }, - { text: "Connecting to Network...", delay: 6400 }, - { text: "Updating...", delay: 7320 }, - { text: "Launching...", delay: 7400 } + { text: "Starting PaperclipChain node...", delay: 1250 }, + { text: "Connecting to network...", delay: 6400 }, + { text: "Loading wallet...", delay: 7320 }, + { text: "Ready", delay: 7400 } ]; timeouts.forEach((item, index) => { @@ -86,14 +85,16 @@ }, item.delay + Math.random() * 50 * index); }); - $(document).on("onGethReady", function () { + $(document).on("onNodeReady", function () { setTimeout(() => { loading_screen.finish(); }, 5500); }); $(window).on("beforeunload", function () { - EthoBlockchain.closeConnection(); + if (window.PaperclipChain) { + PaperclipChain.stopConnection(); + } }); @@ -117,7 +118,7 @@ - Send + Send @@ -142,17 +143,17 @@