gui icon indicating copy to clipboard operation
gui copied to clipboard

Add Import to Wallet GUI

Open KolbyML opened this issue 3 years ago • 6 comments

This PR does a few things

  • Refactors importmulti and importdescripters RPC code
  • Adds functions to interfaces
  • Adds GUI's for importpubkey, importprivkey, importaddress, importmulti, and importdescriptors RPCs

The dialogs are located under File -> Import to Wallet... The options vary based on what is supported with your specific wallet type.

Dialogs are Located Import Public Key Dialog
image image
Import Private Key Dialog Import Address Dialog
image image
Import Multi Dialog scriptPubKey Tab Import Multi Dialog Descriptor Tab
image image
Import Descriptors Dialog
image

For Range before I had a lineedit with placeholders begin and end, @achow101 suggested I used QSpinBox, but it doesn't have placeholder text. So Currently if both are default value it counts as no input. It would look very nice if I implemented a custom QAbstractSpinBox with placeholder text, but I am not sure if it is overkill for this PR.

KolbyML avatar Aug 08 '22 17:08 KolbyML

Concept ACK. Perhaps it would be better to split each menu item into its own PR.

w0xlt avatar Aug 09 '22 21:08 w0xlt

@KolbyML

It is not an appropriate usage of CI resources to debug your branch.

hebasto avatar Aug 25 '22 09:08 hebasto

@KolbyML

It is not an appropriate usage of CI resources to debug your branch.

@hebasto oh, sorry for doing that. How should I debug the Win64 native [vs2022] linker error I have then going forward? Thank you for letting me know

KolbyML avatar Aug 25 '22 09:08 KolbyML

How should I debug the Win64 native [vs2022] linker error I have then going forward? Thank you for letting me know

bitcoin/bitcoin#25929 should fix it

hebasto avatar Aug 25 '22 09:08 hebasto

How should I debug the Win64 native [vs2022] linker error I have then going forward? Thank you for letting me know

bitcoin/bitcoin#25929 should fix it

Thank you for letting me know that was driving me crazy. Cause it seemed like my code was fine. I will push my changes, then switch the PR to a draft then, since I think that won't trigger CI. Worse comes to worse I will just work on a local branch like I was originally before working on the PR.

Edit: switch it to a draft till I am done implementing tests for importmulti/importdescriptors

KolbyML avatar Aug 25 '22 09:08 KolbyML

Edit: switch it to a draft till I am done implementing tests for importmulti/importdescriptors

image

Just click "Convert to draft" :)

hebasto avatar Aug 25 '22 09:08 hebasto

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

DrahtBot avatar Oct 21 '22 13:10 DrahtBot

🐙 This pull request conflicts with the target branch and needs rebase.

DrahtBot avatar Dec 06 '22 11:12 DrahtBot