Repository navigation
Conversation
The file predates the formatter that CI's changed-file check runs, so any change to it fails that check. Formatting only.
This was referenced Dec 3, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## staging #1563 +/- ##
===========================================
+ Coverage 20.67% 21.80% +1.13%
===========================================
Files 1148 1157 +9
Lines 114416 116360 +1944
===========================================
+ Hits 23653 25374 +1721
- Misses 90763 90986 +223 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
zcash_flutterpackage only. Its build hook compiles thezcash-ffiRust library.Zcash is not added to the app's coin list here. The views it needs come with the UI PR at the top of this stack, along with the coin list entry, the README line and the wallet creation matrix entry. Until then the
ZCASHflag builds and bundleszcash-ffiand nothing opens a Zcash wallet.This is the first of a stack: this PR, then end-to-end tests against a local regtest chain, then the UI, then the Sapling parameter download.
What the wallet does
recover) connect to the node, check the birthday against it and return. The scan is the wallet's next refresh, whichrecoverstarts without waiting for it, as the Monero wallets do: from an old birthday it takes a long time.Commits
style: dart format address.dartis formatter output only. That file was last changed before the SDK constraint moved to 3.13, so CI's format check fails on any change to it. Runningdart formaton the staging version reproduces this commit.feat: add Zcash wallet through zcash_flutteris the change.Size
The feature commit is 40 files, +11457/-6. New Zcash library files are about 4.7k lines and new tests and fakes about 6.7k. Existing files get about +60/-6: the coin's address types in
Address(and its generated file), the price id, the reset list, the native library check, the wallet's files and keys deleted inservices/wallets.dart, a test-only coin list override inAppConfig, theZCASHflag inconfigure_stack_wallet.sh, the dependency in the pubspec template, andPLACEHOLDER_IF_<marker>substitution intool/process_pubspec_deps.dart, which lets a pubspec setting outside a marker's block follow the marker.Known limits
zcash_flutter.torSupportis false).recoverPreparedSendrebuilds a send that was left prepared or with an unknown outcome so it can be confirmed again. No view calls it yet. Without it, the nextprepareSendfrees the notes of a send that was only prepared, and one whose submission was interrupted is listed as unconfirmed until it is mined or expires.Not changed here
init()throws,services/wallets.dartskips the startup refresh for every wallet. This predates this PR and affects all coins.TransactionV2.getFeereads the fee override that the Zcash mapper sets for shielded sends. A send found by a restore has no record of its fee, so it shows fee 0 and the amount includes the fee.Dependency boundary
zcash_flutterresolves from https://github.com/ManyMath/zcash atc8bc869ba9ba0227f944329df9e875d2a55c5983, pathpackages/zcash_flutter, and thezcashpackage it depends on is overridden to the same commit, pathpackages/zcash. The hook buildszcash-ffiwith the Rust toolchain that the package'srust-toolchain.tomlpins (1.99.1), from crates.io sources.zcash_flutteris outsideENABLE_ZCASHin the pubspec template becauselib/uses the API it re-exports directly. TheZCASHflag decides whether the hook builds the library at all (hooks.user_defines.zcash_flutter.enabled).Verification
At this PR's head (
c92fd8f96):flutter analyzeon the changed Dart files: no errors, and no new warnings (the ones reported are in staging'sservices/wallets.dartandwallets/wallet/wallet.dart).test/wallets/zcash_*_test.dartand the native library check): 131 pass. CI buildszcash-ffithrough the hook, as it configures the app withbuild_app.sh.flutter testsuite, run at the head of Add Zcash regtest end-to-end test coverage #1564 (which adds the integration test only): 1559 passed, 8 skipped, and four Firo cache tests (infiro_cache_clear_test.dart,firo_cache_reset_lifecycle_test.dartandfiro_cache_refresh_reset_test.dart) that time out in full runs on this machine and pass when those files are run on their own (17/17).scripts/teststhat CI runs, run as CI runs them: pass.