From 18bedf64b087b484fa59f4f2fb9a2f1b81eb7878 Mon Sep 17 00:00:00 2001 From: viraladmin <00purple@gmail.com> Date: Thu, 16 Jul 2026 08:46:52 -0600 Subject: [PATCH] added features and fixed cache reset buggs --- Cargo.lock | 82 +- Cargo.toml | 2 +- README.md | 6 +- frontend/index.html | 82 +- frontend/js/address_data_page.js | 593 ++++++++++++ frontend/js/app_state.js | 30 +- frontend/js/collateral_claim_form.js | 11 +- frontend/js/dashboard_network.js | 18 +- frontend/js/data_storage_form.js | 444 +++++++++ frontend/js/history_page.js | 30 +- frontend/js/loan_payment_form.js | 11 +- frontend/js/loans_page.js | 296 +++++- frontend/js/navigation_actions.js | 20 + frontend/js/settings_page.js | 32 +- frontend/js/transaction_history.js | 215 ++++- frontend/js/wallet_session.js | 9 + frontend/styles.css | 202 ++++- src/main.rs | 79 +- src/wallet_app/commands_network_cache.rs | 49 +- src/wallet_app/commands_transactions.rs | 1056 +++++++++++++++++++++- src/wallet_app/commands_wallet.rs | 8 +- src/wallet_app/shared_rpc.rs | 17 + src/wallet_app/transaction_decode.rs | 108 ++- src/wallet_app/types.rs | 5 + src/wallet_app/wallet_files.rs | 10 +- 25 files changed, 3191 insertions(+), 224 deletions(-) create mode 100644 frontend/js/address_data_page.js create mode 100644 frontend/js/data_storage_form.js diff --git a/Cargo.lock b/Cargo.lock index 78c5fb3..9deaef6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,44 +202,6 @@ dependencies = [ "objc2", ] -[[package]] -name = "blockchain" -version = "0.1.0" -dependencies = [ - "anyhow", - "base64 0.22.1", - "chrono", - "cid", - "colored", - "encrypted_images", - "falcon-rs", - "flexi_logger", - "fn-dsa", - "hex", - "ipnetwork", - "lazy_static", - "log", - "nix 0.27.1", - "once_cell", - "rand 0.8.6", - "rayon", - "ripemd", - "rpassword", - "rust-ini", - "rustyline", - "rustyline-derive", - "serde", - "serde_json", - "shellexpand", - "skein", - "sled", - "tokio", - "tokio-postgres", - "windows-service", - "windows-sys 0.61.2", - "winreg 0.52.0", -] - [[package]] name = "brotli" version = "8.0.3" @@ -558,13 +520,51 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f421161cb492475f1661ddc9815a745a1c894592070661180fdec3d4872e9c3" +[[package]] +name = "contractless" +version = "0.1.0" +dependencies = [ + "anyhow", + "base64 0.22.1", + "chrono", + "cid", + "colored", + "encrypted_images", + "falcon-rs", + "flexi_logger", + "fn-dsa", + "hex", + "ipnetwork", + "lazy_static", + "log", + "nix 0.27.1", + "once_cell", + "rand 0.8.6", + "rayon", + "ripemd", + "rpassword", + "rust-ini", + "rustyline", + "rustyline-derive", + "serde", + "serde_json", + "shellexpand", + "skein", + "sled", + "tokio", + "tokio-postgres", + "windows-service", + "windows-sys 0.61.2", + "winreg 0.52.0", +] + [[package]] name = "contractless-wallet" version = "0.1.0" dependencies = [ "base64 0.22.1", - "blockchain", "clipboard-win", + "contractless", "native-dialog", "reqwest 0.12.28", "serde", @@ -1196,9 +1196,9 @@ dependencies = [ [[package]] name = "encrypted_images" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "761fe0fc7059c1e9cb4217f49263b146d269322354aeefb8fc519a60b2e8cef1" +checksum = "dda784ca648e472fc1bb0e408cb60b22e6b1647511d3c8f7144dadcf7133f605" dependencies = [ "base64 0.21.7", "encoding", diff --git a/Cargo.toml b/Cargo.toml index 6f9f5eb..ffaced4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ build = "build.rs" tauri-build = { version = "2", features = [] } [dependencies] -blockchain = { path = ".." } +contractless = { path = ".." } base64 = "0.22" native-dialog = "0.6" reqwest = { version = "0.12", features = ["rustls-tls"] } diff --git a/README.md b/README.md index 5f6c906..51dc9bc 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,10 @@ Contractless/ The wallet depends on the blockchain crate with: ```toml -blockchain = { path = ".." } +contractless = { path = ".." } ``` -Because of that, `gui wallet/` must be in the same folder that contains the Contractless `src/` folder and root `Cargo.toml`. If the wallet folder is moved somewhere else, the parent `..` path will not point at the blockchain crate and the wallet will not build. +Because of that, `gui_wallet/` must be in the same folder that contains the Contractless `src/` folder and root `Cargo.toml`. If the wallet folder is moved somewhere else, the parent `..` path will not point at the blockchain crate and the wallet will not build. ## Layout @@ -35,7 +35,7 @@ Because of that, `gui wallet/` must be in the same folder that contains the Cont ## Build Check -From `gui wallet/`: +From `gui_wallet/`: ```bash cargo check diff --git a/frontend/index.html b/frontend/index.html index 3c05da3..ba86bf9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -177,6 +177,10 @@ % Marketing + + + + + @@ -1106,7 +1163,7 @@ + +