Skip to content

Port WebZjs to the NU7 crates - #21

Open
ETIM-PAUL wants to merge 4 commits into
red-dev-inc:mainfrom
ETIM-PAUL:pr/nu7-bump
Open

ETIM-PAUL wants to merge 4 commits into
red-dev-inc:mainfrom
ETIM-PAUL:pr/nu7-bump

Conversation

@ETIM-PAUL

@ETIM-PAUL ETIM-PAUL commented Oct 28, 2026 •

Copy link
Copy Markdown

What

Moves WebZjs to the librustzcash NU7 pre-releases so the wallet works on testnet after NU7 activated (height 4,465,026, branch id 0x77190AD9, v6 transactions).

  • Port to the NU7 crates. Exact -pre.1 pins. The change pool comes from the active upgrade instead of being hard-coded (chain_params.rs). The Orchard circuit version comes from the PCZT's branch, and proofs are created for both the Orchard and Ironwood bundles.
  • Vendor tonic-web-wasm-client 0.8.0 with a Trailers-Only fix. lightwalletd answers some calls with a Trailers-Only gRPC-web response, which the published client rejects (upstream issue #99, PR #113).
  • Expose the Ironwood balance to JavaScript. ironwood_balance is added to the account balance, and the web-wallet hooks include it, so Ironwood funds don't show as zero.
  • Depend on the NU7 zcash_client_memory by git revision, pinned to the companion PR's commit.

Why

main is on NU6.3 crates, which don't know the NU7 branch. On testnet, sync and send stop working past NU7.

Stack

This is PR 1 of 4 in WebZjs. It depends on red-dev-inc/zcash_client_memory#23 (pinned here by revision; repoint it after that merges). Merge order: red-dev-inc/zcash_client_memory#23 → this PR → #22 (payments + memo API) → #23 (raw memo access) → #24 (network-upgrade check).

Overlap with sqhell's open PRs: #7 (Trailers-Only) and #15 (Ironwood pool in the wallet) cover some of the same ground. If you'd rather land those first, I'll rebase this onto them and drop the duplicate parts.

Testing

  • cargo fmt --check, plus cargo clippy --all --lib -- -D warnings with the flags in rust-checks.yml: clean.
  • cargo test --locked -p webzjs-wallet --lib: 26 passed. The wasm build (--features "wasm wasm-parallel") compiles.
  • Live on testnet: synced past NU7, and a v6 spend was mined at 4,506,299 with branch 0x77190ad9 (37268e66bffcf2185c7b4bc5cd81dfdee7566ff093d3f4c848cba8a81129d4b5).
  • Not tested here: the MetaMask Snap and packages/web-wallet on NU7, and mainnet (no NU7 height is set yet).

🤖 Generated with Claude Code

Replace the local path override with a pinned git revision of the
zcash_client_memory NU7 port, so the workspace builds from a clean clone.
Repoint it at red-dev-inc/zcash_client_memory once that port merges.

This branch has not been deployed

No deployments
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