Skip to content

feat!: define the Wallet abstraction the harness actuates generically#280

Merged
zancas merged 1 commit into
bump_to_NU6.3from
add_zingo_cli
Jul 8, 2026
Merged

feat!: define the Wallet abstraction the harness actuates generically#280
zancas merged 1 commit into
bump_to_NU6.3from
add_zingo_cli

Conversation

@zancas

@zancas zancas commented Jul 8, 2026

Copy link
Copy Markdown
Member

Rename the client layer to the Wallet abstraction: the client module becomes wallet, the Client and ClientConfig traits become Wallet and WalletConfig, and ClientError becomes WalletError, whose messages now name the operation rather than one binary. The trait is the interface through which the harness drives any wallet implementation, and implementations live with their binaries: the zcash-devtool one remains in-tree for now, and a zingo-cli implementation lands in the zingolib repository against zingolabs/zingolib#2419 (the request spec is added as zingolib-wallet-impl-spec.md; nothing implements the second wallet here).

Add LocalNet::launch_wallet::(make_config), the generic actuation path: it mints the WalletNetwork from the running Validator, wires the Indexer connection, and launches whichever implementation the caller names. The integration tests' helper now routes through it. Add ValidatorHeights::activation_heights(), a read-only accessor, because a foreign implementation must serialize the reported schedule into its own binary's configuration; construction remains private, so the ADR 0003 provenance guarantee is untouched. CONTEXT.md gains the Wallet glossary term.

Rename the client layer to the Wallet abstraction: the client module
becomes wallet, the Client and ClientConfig traits become Wallet and
WalletConfig, and ClientError becomes WalletError, whose messages now
name the operation rather than one binary. The trait is the interface
through which the harness drives any wallet implementation, and
implementations live with their binaries: the zcash-devtool one
remains in-tree for now, and a zingo-cli implementation lands in the
zingolib repository against zingolabs/zingolib#2419 (the request spec
is added as zingolib-wallet-impl-spec.md; nothing implements the
second wallet here).

Add LocalNet::launch_wallet::<W>(make_config), the generic actuation
path: it mints the WalletNetwork from the running Validator, wires the
Indexer connection, and launches whichever implementation the caller
names. The integration tests' helper now routes through it. Add
ValidatorHeights::activation_heights(), a read-only accessor, because
a foreign implementation must serialize the reported schedule into its
own binary's configuration; construction remains private, so the ADR
0003 provenance guarantee is untouched. CONTEXT.md gains the Wallet
glossary term.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zancas zancas merged commit f6a2af5 into bump_to_NU6.3 Jul 8, 2026
12 checks passed
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