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

Expose more getters in Wallet and other useful descriptor traits #562

Merged
merged 5 commits into from
Apr 5, 2022

Conversation

afilini
Copy link
Member

@afilini afilini commented Mar 9, 2022

Description

Expose more getters and internal utilities for people who need to work with descriptors.

A good example of how this can be leveraged is in the second commit, which refactors the wallet export functionality to use the new public APIs rather than using members on Wallet directly.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature
  • I've updated CHANGELOG.md

@afilini afilini force-pushed the feature/more-getters branch 2 times, most recently from 3b13941 to 86eb0c5 Compare March 9, 2022 20:13
src/wallet/mod.rs Outdated Show resolved Hide resolved
@afilini afilini force-pushed the feature/more-getters branch from 86eb0c5 to 36dd65d Compare March 23, 2022 11:12
@afilini afilini changed the title Feature/more getters Expose more getters in Wallet and other useful descriptor traits Mar 23, 2022
@afilini afilini force-pushed the feature/more-getters branch 4 times, most recently from 80f7e0d to b5cb0f7 Compare March 23, 2022 14:11
Copy link
Contributor

@rajarshimaitra rajarshimaitra left a comment

Choose a reason for hiding this comment

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

ACK b5cb0f7

Code changes looks good to me. Tried the doc example and it works. Agree with the idea to expose more descriptor level functionality to users..

Below are few comments and questions

src/wallet/mod.rs Outdated Show resolved Hide resolved
src/wallet/mod.rs Outdated Show resolved Hide resolved
src/wallet/export.rs Show resolved Hide resolved
@afilini afilini force-pushed the feature/more-getters branch from b5cb0f7 to 519ebe3 Compare March 25, 2022 10:17
@afilini afilini force-pushed the feature/more-getters branch from 519ebe3 to 11c091e Compare March 25, 2022 10:19
@notmandatory
Copy link
Member

It looks like this one is ready for the next release, @rajarshimaitra or @LLFourn since you've both taken a look already would one of your like to approve it?

Copy link
Contributor

@rajarshimaitra rajarshimaitra left a comment

Choose a reason for hiding this comment

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

ReACK 11c091e

Just one nit.

CHANGELOG.md Outdated Show resolved Hide resolved
@notmandatory notmandatory force-pushed the feature/more-getters branch from 11c091e to cc4dbf0 Compare April 5, 2022 01:12
@notmandatory notmandatory force-pushed the feature/more-getters branch from cc4dbf0 to 1b90148 Compare April 5, 2022 01:57
Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

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

ACK 8cd0550

@notmandatory notmandatory merged commit 213f18f into bitcoindevkit:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants