Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #1568.
Commits
feat: add a Zcash migration view to the More menu.Size
5 files, +574: the view (273 lines), its test (252), and 49 lines that add the entry to the two menus and the route.
How it works
lib/pages/zcash_migration/zcash_migration_view.dartholds the view andZcashMigrationPanel, the list of pools, which takes its amounts and callbacks as arguments.ZcashWallet.movableFunds()when it opens and again after a move is confirmed.ConfirmTransactionView, unchanged: a pushed route on mobile and a dialog on desktop, as the send views open it. The move is given an empty note, which the mobile confirmation requires.wallet_view.dart's More list and one indesktop_wallet_features.dart, both conditional on the wallet being a Zcash wallet.Known limits
Verification
At this PR's head (
1d75b536e):test/pages/zcash_migration/zcash_migration_view_test.dart: 5 pass. The panel shows each pool's amount and reports a tap only for a pool that holds funds. On the mobile and on the desktop layout, with a faked wallet: the view shows the wallet's funds, shows the wallet's message when a move is refused, opens the confirmation view with the prepared move, and leaving the confirmation cancels the move in the wallet.flutter analyzeon the changed Dart files: no errors or warnings. CI's format check on them: clean.flutter testsuite: 1587 passed, 8 skipped.Not run: a move with funds through the view in the built app, and the view in a mobile build. The moves are run against a regtest chain by the end-to-end suite in #1568, which calls the wallet directly.