Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/wallet orchard UA RPCs #5300

Merged

Conversation

LarryRuane
Copy link
Collaborator

@LarryRuane LarryRuane commented Sep 15, 2021

Changes to wallet RPC code for orchard / NU5.

Part of #5177.
Part of #5178.
Part of #5180.
Part of #5181.
Part of #5182.
Part of #5183.
Part of #5191.

src/rust/src/address_ffi.rs Outdated Show resolved Hide resolved
@LarryRuane
Copy link
Collaborator Author

Force-pushed to clean up ParseArbitraryInt() slightly, and add more tests.

src/test/util_tests.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, some minor comments.

src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 44b0dc7e13e9741aca4033ac2e6b1c82e667ac06 with some more non-blocking suggestions.

@str4d
Copy link
Contributor

str4d commented Dec 14, 2021

Blocking: Please rebase this PR to remove commit de1d41b, which should not be in the git history (it is the commit that was pushed directly to #5419, that I subsequently removed because it referred to a non-existent commit). This will also enable the most recent fixup commit (44b0dc7e13e9741aca4033ac2e6b1c82e667ac06) to be removed.

@LarryRuane
Copy link
Collaborator Author

Blocking: Please rebase this PR

Done, just force-pushed (to f21c0a49551a0abccd2efbe37f690e0d902c300f).

I'd like to do one more quick force-push for @daira's comments, they shouldn't take long.

@LarryRuane
Copy link
Collaborator Author

Force-push (to 296b743cd6d397fc15ec3ce483d128806eeadcaa) to address Daira's review comments.

src/test/util_tests.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
"\nResult:\n"
"{\n"
" \"account\": n, (numeric) next available account number\n"
" \"unifiedaddress\" (string) The default address for this account\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be unifiedaddress (i.e. specifically indicating it is a Unified Address), or could it just be address (leaving the address kind defined by the string encoding)? If the latter, then we could instead make this defaultaddress to convey the documented semantics.

src/wallet/rpcwallet.cpp Show resolved Hide resolved
src/wallet/rpcwallet.cpp Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Outdated Show resolved Hide resolved
src/wallet/test/rpc_wallet_tests.cpp Outdated Show resolved Hide resolved
src/wallet/rpcwallet.cpp Show resolved Hide resolved
The new RPCs aren't functional, only have argument parsing and sample
outputs, guarded by experimental -orchardwallet flag.

These changes used the tickets linked from
zcash#5056 as a guide.
Copy link
Collaborator Author

@LarryRuane LarryRuane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force-pushed to address review comments

src/wallet/rpcwallet.cpp Show resolved Hide resolved
src/wallet/test/rpc_wallet_tests.cpp Outdated Show resolved Hide resolved
@mdr0id mdr0id added safe-to-build Used to send PR to prod CI environment and removed safe-to-build Used to send PR to prod CI environment labels Dec 16, 2021
@nuttycom nuttycom self-requested a review December 17, 2021 17:05
Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r3ld3v r3ld3v added S-committed Status: Planned work in a sprint and removed S-committed Status: Planned work in a sprint labels Dec 20, 2021
Copy link
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK f139cdc

@str4d str4d merged commit 3acc685 into zcash:feature/wallet_unified_addresses Dec 20, 2021
@str4d str4d mentioned this pull request Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-committed Status: Planned work in a sprint safe-to-build Used to send PR to prod CI environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants