Abstract devtool coupling behind a general client interface#1272
Abstract devtool coupling behind a general client interface#1272Timi16 wants to merge 10 commits into
Conversation
Introduce TestWallet trait, WalletPoolBalances, and TestClients<W> so wallet-test code depends on a backend-agnostic interface rather than devtool specifics (zingolabs#1264). Also addresses pacu's review on zingolabs#1259: - Replace hand-rolled txid_internal_bytes with TxId-based txid_from_devtool (proven ecosystem type). - Return Zatoshis from spendable_balance instead of raw u64. Refs zingolabs#1264, zingolabs#1262
|
If you can produce a variant of this that does not add new dependencies that would be more interesting. |
Okat alright would look into it thank you |
|
Moving to draft until it removes new dependencies. |
37c6cb0 to
6308346
Compare
Made changes and ready to review |
zancas
left a comment
There was a problem hiding this comment.
Why isn't this PR'd against https://github.com/zingolabs/infrastructure ?
|
The changes in this PR live entirely in The abstraction wraps The |
|
Let me get back to work |
…t-interface # Conflicts: # live-tests/e2e/tests/devtool.rs # live-tests/e2e/tests/devtool_zcashd.rs # live-tests/e2e/tests/test_vectors.rs
9bf1ab0 to
c83bef5
Compare
c83bef5 to
3e1e755
Compare
|
OK marking draft for now. |
Okay |
Why did you make this a draft please would love to know |
Introduce TestWallet trait, WalletPoolBalances, and TestClients generic struct so wallet-test code depends on a
backend-agnostic interface rather than devtool specifics (Abstract devtool coupling behind a general client interface #1264).
zcash_primitives instead of raw byte manipulation.
Addresses nachog00's review feedback on PR excise zingolib, replace with devtool #1259 and pacu's review comments.
Refs Abstract devtool coupling behind a general client interface #1264, Follow-Up to MVP devtool migration, necessary for full coverage and coherent upstream tracking #1262
Test plan
regtest node