From a4af249a3d4570743f4102e1b5ea83236b78dcd3 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Mon, 20 Apr 2026 15:17:40 +0200 Subject: [PATCH] feat: use new module name --- CMakeLists.txt | 2 +- README.md | 26 +- flake.lock | 376 ++++++++-------------------- flake.nix | 14 +- metadata.json | 6 +- src/LEZWalletBackend.cpp | 4 +- src/LEZWalletPlugin.h | 2 +- src/qml/ExecutionZoneWalletView.qml | 8 +- 8 files changed, 148 insertions(+), 290 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d9f5c4..cd8ee12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ else() endif() logos_module( - NAME logos_execution_zone_wallet_ui + NAME lez_wallet_ui REP_FILE src/LEZWalletBackend.rep SOURCES src/LEZWalletPluginInterface.h diff --git a/README.md b/README.md index a7dc3d5..134e693 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ Built with [`logos-module-builder`](https://github.com/logos-co/logos-module-bui nix run # With local workspace overrides -nix run --override-input liblogos_execution_zone_wallet_module path:../logos-execution-zone-module \ +nix run --override-input lez_wallet_module path:../logos-execution-zone-module \ --override-input logos-module-builder path:../logos-module-builder ``` -The standalone app starts Logos Core, loads `capability_module` and `liblogos_execution_zone_wallet_module`, then launches the QML UI via an isolated `ui-host` process. +The standalone app starts Logos Core, loads `capability_module` and the `lez_wallet_module` core plugin (flake input name must match `metadata.json` `dependencies`), then launches the QML UI via an isolated `ui-host` process. ### In Basecamp @@ -82,6 +82,28 @@ logos-execution-zone-wallet-ui/ Config path and storage path are persisted via QSettings (`Logos`, `ExecutionZoneWalletUI`). On first run, if opening the wallet fails, the onboarding screen is shown to create a new wallet. +### Resetting saved paths and onboarding + +Saved config path, storage path, and related UI state come from **QSettings** (organization `Logos`, application `ExecutionZoneWalletUI`), in addition to whatever files live on disk under your chosen storage path. + +To fully reset onboarding and drop old paths: + +1. **Quit** the app (and any `ui-host` process if you use standalone). +2. **Remove wallet data** on disk if you no longer need it (your storage directory). +3. **Clear persisted settings** for this app so QSettings does not immediately repopulate the old paths. Where that store lives is **platform-specific** (Qt native format per OS). + +**macOS** — preferences are under the domain `com.logos.ExecutionZoneWalletUI`. After quitting the app: + +```bash +defaults delete com.logos.ExecutionZoneWalletUI 2>/dev/null +rm -f ~/Library/Preferences/com.logos.ExecutionZoneWalletUI.plist +killall cfprefsd +``` + +Restarting `cfprefsd` (it comes back automatically) avoids stale in-memory preference cache. + +On **Linux** and **Windows**, use your platform’s usual way to clear app settings (e.g. delete the Qt settings file under `~/.config` / registry / `%AppData%` for `Logos` / `ExecutionZoneWalletUI`, or an equivalent tool), following [QSettings](https://doc.qt.io/qt-6/qsettings.html#locations) locations for the native format on that OS. + ### QML Hot Reload During development, set `DEV_QML_PATH` to load QML from disk without recompiling: diff --git a/flake.lock b/flake.lock index dedebd7..e40ffae 100644 --- a/flake.lock +++ b/flake.lock @@ -15,24 +15,24 @@ "type": "github" } }, - "liblogos_execution_zone_wallet_module": { + "lez_wallet_module": { "inputs": { "logos-core": "logos-core", "logos-execution-zone": "logos-execution-zone", "logos-liblogos": "logos-liblogos", "logos-module-viewer": "logos-module-viewer", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "nixpkgs" ] }, "locked": { - "lastModified": 1774887382, - "narHash": "sha256-jhVROJI+3+aFPUxwVRcWuk5zwUYkm9Y+9h3R8j1hzJA=", + "lastModified": 1776690100, + "narHash": "sha256-2a675HsqPRv/kTcl0KOIuFA2MVcN0CdmbXLfmUVE29o=", "owner": "logos-blockchain", "repo": "logos-execution-zone-module", - "rev": "b94ce296a09ec82cc644d623ef6473ddb729ea58", + "rev": "e13c262dc0c6be78c6d4bd7838c041d16b5ad04c", "type": "github" }, "original": { @@ -64,7 +64,7 @@ "logos-cpp-sdk": "logos-cpp-sdk", "logos-liblogos": "logos-liblogos_2", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "logos-capability-module", "logos-liblogos", @@ -90,7 +90,7 @@ "logos-cpp-sdk": "logos-cpp-sdk_5", "logos-liblogos": "logos-liblogos_3", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-capability-module", "logos-liblogos", @@ -116,7 +116,7 @@ "logos-cpp-sdk": "logos-cpp-sdk_8", "logos-liblogos": "logos-liblogos_5", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-liblogos", "logos-capability-module", @@ -196,33 +196,6 @@ "type": "github" } }, - "logos-capability-module_6": { - "inputs": { - "logos-cpp-sdk": "logos-cpp-sdk_18", - "logos-liblogos": "logos-liblogos_9", - "nixpkgs": [ - "nix-bundle-lgx", - "logos-package", - "logos-liblogos", - "logos-capability-module", - "logos-liblogos", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1767809111, - "narHash": "sha256-jehjsB+BpDJlVu3I7x+vFVOdXmy9MDmFTJtRqzFUONo=", - "owner": "logos-co", - "repo": "logos-capability-module", - "rev": "7b35383e0aa4e28a4633ed18a87efb57636939b1", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-capability-module", - "type": "github" - } - }, "logos-core": { "inputs": { "nixpkgs": "nixpkgs" @@ -433,42 +406,6 @@ "type": "github" } }, - "logos-cpp-sdk_18": { - "inputs": { - "nixpkgs": "nixpkgs_62" - }, - "locked": { - "lastModified": 1761230734, - "narHash": "sha256-CMRUwXH7pJZ1OI6bd/TDDDXKqQ1tQZHQEOOwK8TgYHI=", - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "rev": "4b143922c190df00bb3835441c9f0075cb28283b", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "type": "github" - } - }, - "logos-cpp-sdk_19": { - "inputs": { - "nixpkgs": "nixpkgs_63" - }, - "locked": { - "lastModified": 1761230734, - "narHash": "sha256-CMRUwXH7pJZ1OI6bd/TDDDXKqQ1tQZHQEOOwK8TgYHI=", - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "rev": "4b143922c190df00bb3835441c9f0075cb28283b", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "type": "github" - } - }, "logos-cpp-sdk_2": { "inputs": { "nixpkgs": "nixpkgs_5" @@ -487,42 +424,6 @@ "type": "github" } }, - "logos-cpp-sdk_20": { - "inputs": { - "nixpkgs": "nixpkgs_64" - }, - "locked": { - "lastModified": 1767724329, - "narHash": "sha256-UPkqxqxbKwU5Dmu00TnjiJVXUmfVylF3p1qziEuYwIE=", - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "rev": "32f1d7080d784ff044d91d076ef2f0c7305d4784", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "type": "github" - } - }, - "logos-cpp-sdk_21": { - "inputs": { - "nixpkgs": "nixpkgs_65" - }, - "locked": { - "lastModified": 1767724329, - "narHash": "sha256-UPkqxqxbKwU5Dmu00TnjiJVXUmfVylF3p1qziEuYwIE=", - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "rev": "32f1d7080d784ff044d91d076ef2f0c7305d4784", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-cpp-sdk", - "type": "github" - } - }, "logos-cpp-sdk_3": { "inputs": { "nixpkgs": "nixpkgs_6" @@ -704,7 +605,7 @@ "nix-bundle-appimage": "nix-bundle-appimage", "nix-bundle-dir": "nix-bundle-dir_2", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "logos-cpp-sdk", "nixpkgs" @@ -728,7 +629,7 @@ "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_2", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "logos-capability-module", "logos-liblogos", @@ -754,7 +655,7 @@ "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_6", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-capability-module", "logos-liblogos", @@ -782,7 +683,7 @@ "logos-cpp-sdk": "logos-cpp-sdk_10", "logos-module": "logos-module_2", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-liblogos", "logos-cpp-sdk", @@ -807,7 +708,7 @@ "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_9", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-liblogos", "logos-capability-module", @@ -834,7 +735,7 @@ "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_13", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-package-manager", "logos-liblogos", @@ -885,65 +786,11 @@ "type": "github" } }, - "logos-liblogos_8": { - "inputs": { - "logos-capability-module": "logos-capability-module_6", - "logos-cpp-sdk": "logos-cpp-sdk_20", - "logos-module": "logos-module_9", - "nixpkgs": [ - "nix-bundle-lgx", - "logos-package", - "logos-liblogos", - "logos-cpp-sdk", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1770154824, - "narHash": "sha256-WGI+3FkPdeytfLJ3ZJYr1O8esUnQjcmMJEYwB/EBZMs=", - "owner": "logos-co", - "repo": "logos-liblogos", - "rev": "901dd86d47216b15b6f1260b7b6bb4ecd88a8f9d", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-liblogos", - "type": "github" - } - }, - "logos-liblogos_9": { - "inputs": { - "logos-cpp-sdk": "logos-cpp-sdk_19", - "nixpkgs": [ - "nix-bundle-lgx", - "logos-package", - "logos-liblogos", - "logos-capability-module", - "logos-liblogos", - "logos-cpp-sdk", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1761845775, - "narHash": "sha256-ulK8xq05ejK6qIgZ7WtWb/MJt2rk5BKfDA2z7mM3wq8=", - "owner": "logos-co", - "repo": "logos-liblogos", - "rev": "a92c2c1268bc70764c8f73c7bce07d21024f5af9", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-liblogos", - "type": "github" - } - }, "logos-module": { "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_4", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "logos-module", "logos-cpp-sdk", @@ -982,11 +829,11 @@ ] }, "locked": { - "lastModified": 1776372591, - "narHash": "sha256-uuY3FvSbWF11DR7JO9jyMDV25fLJoxT9TpDW7l/BngM=", + "lastModified": 1776431480, + "narHash": "sha256-QMdoBJfwQzXemrGKiWPGY797DQ6aH/NuzK0T2SNP+ho=", "owner": "logos-co", "repo": "logos-module-builder", - "rev": "e14aaa89f9ef652daf201cfaf3d06817ac8a440e", + "rev": "1247e5c0cc8823a75412e82b2c1ff2409bb1eacd", "type": "github" }, "original": { @@ -1002,7 +849,7 @@ "logos-liblogos": "logos-liblogos_4", "logos-package-manager": "logos-package-manager", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-liblogos", "nixpkgs" @@ -1026,7 +873,7 @@ "inputs": { "logos-cpp-sdk": "logos-cpp-sdk_11", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-liblogos", "logos-module", @@ -1201,32 +1048,6 @@ "type": "github" } }, - "logos-module_9": { - "inputs": { - "logos-cpp-sdk": "logos-cpp-sdk_21", - "nixpkgs": [ - "nix-bundle-lgx", - "logos-package", - "logos-liblogos", - "logos-module", - "logos-cpp-sdk", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1770062426, - "narHash": "sha256-zc7ZxDTlqOCYGyEHhrTA/7GS1EWh7+4amdPUKh+gGds=", - "owner": "logos-co", - "repo": "logos-module", - "rev": "f7ee69d9ad9f27c84f04f59896e9194125e951dc", - "type": "github" - }, - "original": { - "owner": "logos-co", - "repo": "logos-module", - "type": "github" - } - }, "logos-nix": { "inputs": { "nixpkgs": "nixpkgs_20" @@ -1893,6 +1714,60 @@ "type": "github" } }, + "logos-nix_43": { + "inputs": { + "nixpkgs": "nixpkgs_62" + }, + "locked": { + "lastModified": 1774455309, + "narHash": "sha256-3AN7aFnArdysrbQQ2UskWzjNSFADb4hDCsnx69Fa0ng=", + "owner": "logos-co", + "repo": "logos-nix", + "rev": "e637a1f5e871244d1c2df1e3c52a067f2eb406f2", + "type": "github" + }, + "original": { + "owner": "logos-co", + "repo": "logos-nix", + "type": "github" + } + }, + "logos-nix_44": { + "inputs": { + "nixpkgs": "nixpkgs_63" + }, + "locked": { + "lastModified": 1773955630, + "narHash": "sha256-KqzMoWYIVp2xMgphs7v02T/BE54RKMFxpdC2duhJKG0=", + "owner": "logos-co", + "repo": "logos-nix", + "rev": "0e9e6d66ab8eb34f59e45ed448f7dc29130feb88", + "type": "github" + }, + "original": { + "owner": "logos-co", + "repo": "logos-nix", + "type": "github" + } + }, + "logos-nix_45": { + "inputs": { + "nixpkgs": "nixpkgs_64" + }, + "locked": { + "lastModified": 1773955630, + "narHash": "sha256-KqzMoWYIVp2xMgphs7v02T/BE54RKMFxpdC2duhJKG0=", + "owner": "logos-co", + "repo": "logos-nix", + "rev": "0e9e6d66ab8eb34f59e45ed448f7dc29130feb88", + "type": "github" + }, + "original": { + "owner": "logos-co", + "repo": "logos-nix", + "type": "github" + } + }, "logos-nix_5": { "inputs": { "nixpkgs": "nixpkgs_24" @@ -2007,7 +1882,7 @@ "logos-liblogos": "logos-liblogos_6", "logos-package": "logos-package", "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-module-viewer", "logos-package-manager", "logos-liblogos", @@ -2217,20 +2092,20 @@ }, "logos-package_7": { "inputs": { - "logos-liblogos": "logos-liblogos_8", + "logos-nix": "logos-nix_44", "nixpkgs": [ "nix-bundle-lgx", "logos-package", - "logos-liblogos", + "logos-nix", "nixpkgs" ] }, "locked": { - "lastModified": 1772710235, - "narHash": "sha256-QJgetqq0PWKbQXuMw8Z+SHqyk+40P3830lUhgVVL4Kc=", + "lastModified": 1775835037, + "narHash": "sha256-Cti0DhkzyLQs98BSzcHWMLtGXpa3n+R+5upfSw6vKdQ=", "owner": "logos-co", "repo": "logos-package", - "rev": "02fae070cc5e404f6447cc57760b748d246357ab", + "rev": "ff93a0df15ceab255f27687d22d962ea2737efbe", "type": "github" }, "original": { @@ -2331,11 +2206,11 @@ ] }, "locked": { - "lastModified": 1776372380, - "narHash": "sha256-kleKGfcRgtIjeltogH0NCFrp5QwetlXsHJxOTllP13E=", + "lastModified": 1776431432, + "narHash": "sha256-eO1nnUS33OUkdU36I27OJ0wVcFxRFkJDVuRYT6WKzy8=", "owner": "logos-co", "repo": "logos-standalone-app", - "rev": "5e122402898c1d896cc6b72db04c6277697a2f2f", + "rev": "09461edcaa1c617f813120124655c37f803e3a17", "type": "github" }, "original": { @@ -2388,11 +2263,11 @@ ] }, "locked": { - "lastModified": 1776372308, + "lastModified": 1776431382, "narHash": "sha256-21SqqdOuHBLUGcYxGvjtC4iKp+wLGEQOKn64qLVl/+0=", "owner": "logos-co", "repo": "logos-view-module-runtime", - "rev": "5dc32e0131e9abf0a86c085119aa082d56486d9e", + "rev": "d611d697bf4ff48405d71f6ea29b8103d7969b22", "type": "github" }, "original": { @@ -2478,7 +2353,7 @@ "nix-bundle-dir": { "inputs": { "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-liblogos", "nix-bundle-appimage", "nixpkgs" @@ -2500,14 +2375,20 @@ }, "nix-bundle-dir_10": { "inputs": { - "nixpkgs": "nixpkgs_66" + "logos-nix": "logos-nix_45", + "nixpkgs": [ + "nix-bundle-lgx", + "nix-bundle-dir", + "logos-nix", + "nixpkgs" + ] }, "locked": { - "lastModified": 1771971384, - "narHash": "sha256-fq0H+sxQhkGN054jdN+ZfHZibbOjHA+KD5SpRH78T1g=", + "lastModified": 1774455641, + "narHash": "sha256-HrVJguPxhIoZMCH+x8Wooa0tE6slUhgNOU6P89t2uQc=", "owner": "logos-co", "repo": "nix-bundle-dir", - "rev": "1ecb9662145a1ad84007a970b4bef50a4af159c9", + "rev": "3d155cab09051703a0b02ff2de166a53c30cbca8", "type": "github" }, "original": { @@ -2796,16 +2677,21 @@ }, "nix-bundle-lgx_4": { "inputs": { + "logos-nix": "logos-nix_43", "logos-package": "logos-package_7", "nix-bundle-dir": "nix-bundle-dir_10", - "nixpkgs": "nixpkgs_67" + "nixpkgs": [ + "nix-bundle-lgx", + "logos-nix", + "nixpkgs" + ] }, "locked": { - "lastModified": 1772710643, - "narHash": "sha256-PP/gXPF5oomX1Up8QHWiVhCdTw8QF9he2FnzugcjDFE=", + "lastModified": 1775836380, + "narHash": "sha256-XbBPcMuDFA/SxYVw9TIRQbhie5Vj5MqwdU+Gh1iR1LA=", "owner": "logos-co", "repo": "nix-bundle-lgx", - "rev": "6c29284f49f2d11df8d4ccb369bcd4d05a22ffb7", + "rev": "9d8f8602b1574ec9ac4c9b31ae0c92570221c268", "type": "github" }, "original": { @@ -3816,54 +3702,6 @@ "type": "github" } }, - "nixpkgs_65": { - "locked": { - "lastModified": 1759036355, - "narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_66": { - "locked": { - "lastModified": 1770562336, - "narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "d6c71932130818840fc8fe9509cf50be8c64634f", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_67": { - "locked": { - "lastModified": 1772542754, - "narHash": "sha256-WGV2hy+VIeQsYXpsLjdr4GvHv5eECMISX1zKLTedhdg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "8c809a146a140c5c8806f13399592dbcb1bb5dc4", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_7": { "locked": { "lastModified": 1759036355, @@ -3940,7 +3778,7 @@ }, "root": { "inputs": { - "liblogos_execution_zone_wallet_module": "liblogos_execution_zone_wallet_module", + "lez_wallet_module": "lez_wallet_module", "logos-module-builder": "logos-module-builder", "nix-bundle-lgx": "nix-bundle-lgx_4" } @@ -3948,7 +3786,7 @@ "rust-overlay": { "inputs": { "nixpkgs": [ - "liblogos_execution_zone_wallet_module", + "lez_wallet_module", "logos-execution-zone", "nixpkgs" ] diff --git a/flake.nix b/flake.nix index 6b23c31..3cd2b25 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ inputs = { logos-module-builder.url = "github:logos-co/logos-module-builder"; nix-bundle-lgx.url = "github:logos-co/nix-bundle-lgx"; - liblogos_execution_zone_wallet_module.url = "github:logos-blockchain/logos-execution-zone-module"; + lez_wallet_module.url = "github:logos-blockchain/logos-execution-zone-module"; }; outputs = inputs@{ logos-module-builder, ... }: @@ -23,7 +23,7 @@ # empty stubs in to satisfy the include + initializer. preConfigure = '' mkdir -p ./generated_code/include - cat > ./generated_code/include/liblogos_execution_zone_wallet_module_api.h <<'EOF' + cat > ./generated_code/include/lez_wallet_module_api.h <<'EOF' #pragma once #include "logos_api.h" @@ -32,15 +32,13 @@ // raw LogosAPIClient::invokeRemoteMethod() instead, so this empty class // only needs to satisfy the umbrella logos_sdk.h's member declaration and // constructor initializer. -class LiblogosExecutionZoneWalletModule { +class LezWalletModule { public: - explicit LiblogosExecutionZoneWalletModule(LogosAPI* /*api*/) {} + explicit LezWalletModule(LogosAPI* /*api*/) {} }; EOF - cat > ./generated_code/include/liblogos_execution_zone_wallet_module_api.cpp <<'EOF' -// Stub source for the typed wrapper. The umbrella logos_sdk.cpp #includes -// this file; the class is fully defined inline in the header above so this -// translation unit is intentionally empty. + cat > ./generated_code/include/lez_wallet_module_api.cpp <<'EOF' +// Stub: class is inline in lez_wallet_module_api.h; logos_sdk.cpp #includes this file. EOF ''; }; diff --git a/metadata.json b/metadata.json index 96c1e49..fe25ede 100644 --- a/metadata.json +++ b/metadata.json @@ -1,14 +1,14 @@ { - "name": "logos_execution_zone_wallet_ui", + "name": "lez_wallet_ui", "version": "1.0.0", "type": "ui_qml", "category": "wallet", "description": "Execution Zone Wallet UI module for the Logos application", "author": "Logos Blockchain Team", - "main": "logos_execution_zone_wallet_ui_plugin", + "main": "lez_wallet_ui_plugin", "icon": "src/qml/icons/copy.svg", "view": "qml/ExecutionZoneWalletView.qml", - "dependencies": ["liblogos_execution_zone_wallet_module"], + "dependencies": ["lez_wallet_module"], "nix": { "packages": { diff --git a/src/LEZWalletBackend.cpp b/src/LEZWalletBackend.cpp index 5bb86e8..14de14d 100644 --- a/src/LEZWalletBackend.cpp +++ b/src/LEZWalletBackend.cpp @@ -18,7 +18,7 @@ namespace { const char SETTINGS_APP[] = "ExecutionZoneWalletUI"; const char CONFIG_PATH_KEY[] = "configPath"; const char STORAGE_PATH_KEY[] = "storagePath"; - const QString WALLET_MODULE_NAME = QStringLiteral("liblogos_execution_zone_wallet_module"); + const QString WALLET_MODULE_NAME = QStringLiteral("lez_wallet_module"); const int WALLET_FFI_SUCCESS = 0; // Convert a decimal amount string to 32-char hex (16 bytes little-endian) @@ -47,7 +47,7 @@ LEZWalletBackend::LEZWalletBackend(LogosAPI* logosAPI, QObject* parent) : LEZWalletBackendSimpleSource(parent), m_accountModel(new LEZWalletAccountModel(this)), m_filteredAccountModel(new LEZAccountFilterModel(this)), - m_logosAPI(logosAPI ? logosAPI : new LogosAPI("logos_execution_zone_wallet_ui", this)), + m_logosAPI(logosAPI ? logosAPI : new LogosAPI("lez_wallet_ui", this)), m_walletClient(nullptr) { m_filteredAccountModel->setSourceModel(m_accountModel); diff --git a/src/LEZWalletPlugin.h b/src/LEZWalletPlugin.h index 09ae25b..e50b826 100644 --- a/src/LEZWalletPlugin.h +++ b/src/LEZWalletPlugin.h @@ -24,7 +24,7 @@ public: explicit LEZWalletPlugin(QObject* parent = nullptr); ~LEZWalletPlugin() override; - QString name() const override { return "logos_execution_zone_wallet_ui"; } + QString name() const override { return "lez_wallet_ui"; } QString version() const override { return "1.0.0"; } // Called by ui-host after plugin load. Creates the backend and wires diff --git a/src/qml/ExecutionZoneWalletView.qml b/src/qml/ExecutionZoneWalletView.qml index 3c90a5b..e9850bb 100644 --- a/src/qml/ExecutionZoneWalletView.qml +++ b/src/qml/ExecutionZoneWalletView.qml @@ -9,14 +9,14 @@ import "views" Rectangle { id: root - readonly property var backend: logos.module("logos_execution_zone_wallet_ui") - readonly property var accountModel: logos.model("logos_execution_zone_wallet_ui", "accountModel") + readonly property var backend: logos.module("lez_wallet_ui") + readonly property var accountModel: logos.model("lez_wallet_ui", "accountModel") property bool ready: false Connections { target: logos function onViewModuleReadyChanged(moduleName, isReady) { - if (moduleName === "logos_execution_zone_wallet_ui") + if (moduleName === "lez_wallet_ui") root.ready = isReady && root.backend !== null } } @@ -93,7 +93,7 @@ Rectangle { Component.onCompleted: { root.ready = root.backend !== null - && logos.isViewModuleReady("logos_execution_zone_wallet_ui") + && logos.isViewModuleReady("lez_wallet_ui") if (root.ready) d.updateStack(d.isWalletOpen) }