Repository navigation
Conversation
This was referenced Nov 17, 2026
sneurlax
force-pushed
the
feat/grin
branch
5 times, most recently
from
November 17, 2026 20:06
d3ee97f to
f949ece
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## staging #1538 +/- ##
===========================================
+ Coverage 20.67% 21.57% +0.90%
===========================================
Files 1148 1159 +11
Lines 114416 115925 +1509
===========================================
+ Hits 23653 25015 +1362
- Misses 90763 90910 +147 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sneurlax
force-pushed
the
feat/grin
branch
5 times, most recently
from
November 21, 2026 09:20
d1fa13d to
0262879
Compare
sneurlax
marked this pull request as ready for review
December 2, 2026 15:06
sneurlax
force-pushed
the
feat/grin
branch
2 times, most recently
from
December 2, 2026 20:22
5133ab4 to
8610907
Compare
These files were last changed before the SDK constraint moved to 3.13, so CI's format check would fail on any later change to them. This commit is the formatter's output only.
sneurlax
force-pushed
the
feat/grin
branch
3 times, most recently
from
December 3, 2026 18:00
9596ad5 to
a94a821
Compare
Add the Grin coin, wallet core and transport policy through grin_native, the only Grin Dart dependency. grin_native 001df2a builds grin-ffi from cypherstack/grin-wallet, whose grin submodule is cypherstack/grin. Every app depends on grin_native for the API lib/ uses, but only an app configured with GRIN builds and bundles grin-ffi. process_pubspec_deps.dart sets hooks.user_defines.grin_native.enabled from the GRIN flag, so Stack Duo and Campfire turn the hook off. Grin is not in the app's coin list yet. A send to a grin1 address creates a Slatepack that only the Slatepack screens can show, so the coin list entry comes with them. Until then, tests that build a Grin wallet add Grin to the coin list through AppConfig.coinsOverride, so they run in every app config. Grin tests reuse the MemorySecrets fixture from xelis_test_fakes.dart.
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
grin_nativepackage only.Grin is not added to the app's coin list here. The Slatepack screens it needs come with #1540, along with the coin list entry, the README line and the wallet creation matrix entry.
Commits
style: dart format five views that predate the 3.13 SDK bumpis formatter output only. Those five files were last changed before the SDK constraint moved to 3.13, so CI's format check fails on any change to them. Runningdart formaton the staging versions reproduces this commit.feat: add Grin wallet through grin_nativeis the change.Size
The feature commit is 67 files, +8689/-74. New Grin library files are about 3.4k lines, including about 180 lines of checkpoint data, and new tests and fakes about 4.5k. Existing files get +560/-69 in
lib/and +238/-1 in tests, mostly adding Grin to existing coin checks: restore flows, the node form, wallet settings, send fee handling, the native library list, the price id, and the reset list. The larger shared edits are the Grin delete, deferred-delete retry and unfinished-wallet secret cleanup inservices/wallets.dart, Grin status labels and keys inTransactionV2, onion handling in the node form, the Stack Backup wait for the Grin scan, its choice of wallet ids and the Grin files its revert deletes, and a test-only coin list override inAppConfig.Since the last push
Fixes for the fifth review, of
a94a821c2. Each has a test that fails without it. The fixes for the consolidated review of20cf703b0and for my own review were in the previous push.exa mple.com, was accepted becauseUri.parsepercent-encodes it, and the wallet then failed to open with it.grinNodeUrlnow refuses such a host, so the form shows why and a saved node gets the invalid-node handling.Not changed here
init()throws,services/wallets.dartskips the startup refresh for every wallet. This predates this PR and affects all coins; Grin is one more coin whoseinit()can throw.defaultBlockExplorerthrows, as Epic Cash's and MWC's do. Hide unsupported coins from block explorer settings #1518 leaves those coins out of the block explorer settings and should land before Integrate Grin with the shared Slatepack UI #1540, which lists Grin.WalletInfo.updateOtherDatareads the record and writes it back outside one transaction, so writes from different parts of the app can overwrite each other. That is staging's helper, used by every coin.Wallet.createandinit(isRestore: true).Dependency boundary
grin_nativeresolves from https://github.com/cypherstack/grin_native at001df2a47375dc03b7d5a8024b53d96f458cccaf, pathpackages/grin_native. Its build hook compiles grin-ffi against https://github.com/cypherstack/grin-wallet at59537fb, whosegrinsubmodule is https://github.com/cypherstack/grin at99f327d, all over public HTTPS. There is no baregrindependency orpackage:grin/import. The Epic and MWC plugin pins are staging's.grin_nativeis outsideENABLE_GRINin the pubspec template becauselib/uses the API it re-exports directly. TheGRINflag selects the native backend and decides whether the hook builds grin-ffi at all.Verification
At this PR's head (
07b96f261):dart analyze(lib,test,integration_test): no errors, and no new issues in the changed files.flutter testsuite: 1606 passed, 8 skipped, and two Firo cache reset tests infiro_cache_refresh_reset_test.dartthat time out in full runs on this machine and pass when run on their own, as in earlier review stacks.scripts/teststhat CI runs, run as CI runs them: pass.001df2a:dart run tool/ci.dartpasses, with the Android and Flutter build stages skipped; that includescargo test, the bindings check and both packages' Dart tests.At the top of the stack (#1540), the full suite: 1735 passed, 8 skipped, and one Firo cache reset test in
firo_cache_reset_lifecycle_test.dartthat timed out and passes on its own. The native e2e suite from #1539: 9/9, with grin-ffi built from grin_native001df2a.