Skip to content

Share the Epic Cash and MWC Slatepack UI - #1507

Open
sneurlax wants to merge 1 commit into
stagingfrom
feat/slatepack-interface
Open

sneurlax wants to merge 1 commit into
stagingfrom
feat/slatepack-interface

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Epic Cash and MWC share one Slatepack UI for method selection, manual send creation/results, import/receive/finalize, QR/input dialogs, and transaction cancellation presentation. Their wallet engines, lifecycle, synchronization, listener, restore/rescan, configuration, history merge, and native adapters remain coin-specific.

This is one refactor commit on the latest GitHub staging head:

  • staging: 05b0ad33bbfa5fe8da9073241562bb5461b8ad8d
  • this PR: 31224b637f96f995ff1508db5961e12c17721f78

Scope boundaries

  • No pubspec.yaml or pubspec.lock changes.
  • No Epic or MWC plugin pin changes.
  • No shared wallet-engine superclass.
  • No database/schema/migration, wallet-screen lifecycle, listener, sync/rescan, restore, exit, or native FFI lifecycle refactor.
  • Coin differences are expressed through the small SlatepackInterface UI contract and coin-specific adapters.

Correctness

The rewrite addresses the review regressions directly:

  • manual Slate sends bypass the normal fee-estimate/confirmation/PIN path, so an estimate using different coin selection cannot produce a false fee warning;
  • local slate ownership is recorded at creation, removing the self-import window before history refresh;
  • receive/finalize paths do not start a wallet refresh, avoiding the MWC listener-stop/UI-blocking path;
  • native creation starts only after the progress route is fully visible;
  • Epic's pinned plugin result is interpreted according to its real finalize-and-broadcast contract, while MWC retains explicit broadcast status;
  • cancellation falls back to each coin's pre-refactor rule; no wallet-engine cancellation policy is introduced.

Verification

  • GitHub CI is green at this exact head: full tests/coverage, Linux release bundle, and Windows build-script checks (run 44862808079).
  • The final downstream stack passed 470/470 changed unit/widget tests on macOS and the exact final macOS debug app built successfully.
  • The real Linux app was exercised with Epic and MWC on desktop and mobile-sized layouts through the shared send/receive screens, including closing the wallet without provider/dispose errors.
  • Changed production code is formatter-clean and git diff --check is clean; analyzer diagnostics on touched legacy files predate this stack.

Downstream stack

All three are stacked directly and linearly on this exact head.

@sneurlax

Copy link
Copy Markdown
Member Author

See staging...refactor/epic-mwc-unify-rebased for an easier-to-review core of this functionality

@sneurlax sneurlax changed the title Unified Slatepack interface for MimbleWimble coins Unify the Epic Cash and MWC wallets and slatepack UI Nov 11, 2026
@sneurlax
sneurlax marked this pull request as ready for review November 11, 2026 02:29
@sneurlax

Copy link
Copy Markdown
Member Author

See that last note:

Known issue, fixed separately:

We will want to update this after those merge

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.42547% with 464 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.61%. Comparing base (ba44e64) to head (31224b6).
⚠️ Report is 7 commits behind head on staging.

Files with missing lines Patch % Lines
..._view/wallet_view/sub_widgets/desktop_receive.dart 34.88% 56 Missing ⚠️
lib/pages/slatepack/slatepack_input_field.dart 51.42% 51 Missing ⚠️
...b/wallets/wallet/impl/mimblewimblecoin_wallet.dart 11.11% 48 Missing ⚠️
lib/models/slatepack_models.dart 15.21% 39 Missing ⚠️
lib/pages/slatepack/slatepack_dialog.dart 78.52% 32 Missing ⚠️
...ction_views/tx_v2/transaction_v2_details_view.dart 0.00% 31 Missing ⚠️
lib/wallets/wallet/impl/epiccash_wallet.dart 16.66% 30 Missing ⚠️
...t/wallet_mixin_interfaces/slatepack_interface.dart 76.37% 30 Missing ⚠️
lib/pages/receive_view/receive_view.dart 0.00% 29 Missing ⚠️
...ew/transaction_views/transaction_details_view.dart 20.00% 24 Missing ⚠️
... and 17 more
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1507      +/-   ##
===========================================
+ Coverage    16.67%   17.61%   +0.93%     
===========================================
  Files         1145     1149       +4     
  Lines       114436   114122     -314     
===========================================
+ Hits         19086    20098    +1012     
+ Misses       95350    94024    -1326     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sneurlax

Copy link
Copy Markdown
Member Author

Pin-scope fix verified on head 2d67f21be2ce3d5d80b9860c0a35f2dabf176bbd.

@sneurlax
sneurlax force-pushed the feat/slatepack-interface branch from 2d67f21 to c9338d5 Compare November 20, 2026 20:34
@sneurlax sneurlax changed the title Unify the Epic Cash and MWC wallets and Slatepack UI Share the Epic Cash and MWC Slatepack UI Nov 20, 2026
@sneurlax
sneurlax force-pushed the feat/slatepack-interface branch from c9338d5 to 31224b6 Compare November 21, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant