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

chore(deps): bump bdk wallet & friends to 1.0.0 #553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

storopoli
Copy link
Member

@storopoli storopoli commented Dec 19, 2024

Description

BDK 1.0.0 has been released. No more betas!
See: https://github.com/bitcoindevkit/bdk/releases/tag/wallet-1.0.0

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency Update

Notes to Reviewers

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.

@storopoli storopoli requested review from a team as code owners December 19, 2024 20:22
bdk_esplora = { version = "0.20.1", features = [
"async-https",
"async-https-rustls",
"tokio",
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed now 😓 Cc @Zk2u

Comment on lines +82 to +92
// F***! BDK 1.0 removed the `insert_tx` method, so we have to do this the hard way
// Taken from https://github.com/bitcoindevkit/bdk/pull/1658/commits/3135e291d777d474ab4b76de36d43a96ff104a3c
recovery_wallet.transactions().for_each(|tx| {
l1w.insert_tx(tx.tx_node.tx);
l1w.apply_update(Update {
tx_update: TxUpdate {
txs: vec![tx.tx_node.tx],
..Default::default()
},
..Default::default()
})
.expect("could not insert transaction");
Copy link
Member Author

Choose a reason for hiding this comment

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

Any ideas here @Zk2u?

Choose a reason for hiding this comment

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

IIRC you can use the apply_unconfirmed_txs.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 44 lines in your changes missing coverage. Please review.

Project coverage is 56.75%. Comparing base (5008f3d) to head (bfc0deb).

Files with missing lines Patch % Lines
bin/strata-cli/src/cmd/recover.rs 0.00% 16 Missing ⚠️
bin/strata-cli/src/cmd/deposit.rs 0.00% 8 Missing ⚠️
bin/strata-cli/src/cmd/drain.rs 0.00% 7 Missing ⚠️
crates/util/python-utils/src/taproot.rs 0.00% 7 Missing ⚠️
bin/strata-cli/src/cmd/send.rs 0.00% 6 Missing ⚠️
@@            Coverage Diff             @@
##             main     #553      +/-   ##
==========================================
- Coverage   56.76%   56.75%   -0.02%     
==========================================
  Files         306      306              
  Lines       31263    31264       +1     
==========================================
- Hits        17747    17743       -4     
- Misses      13516    13521       +5     
Files with missing lines Coverage Δ
bin/strata-cli/src/signet/backend.rs 0.00% <ø> (ø)
crates/util/python-utils/src/drt.rs 87.17% <100.00%> (-0.07%) ⬇️
bin/strata-cli/src/cmd/send.rs 0.00% <0.00%> (ø)
bin/strata-cli/src/cmd/drain.rs 0.00% <0.00%> (ø)
crates/util/python-utils/src/taproot.rs 60.99% <0.00%> (+0.25%) ⬆️
bin/strata-cli/src/cmd/deposit.rs 0.00% <0.00%> (ø)
bin/strata-cli/src/cmd/recover.rs 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

Copy link
Contributor

@AaronFeickert AaronFeickert left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -76,8 +79,17 @@ pub async fn recover(args: RecoverArgs, seed: Seed, settings: Settings) {
continue;
}

// F***! BDK 1.0 removed the `insert_tx` method, so we have to do this the hard way
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there an issue filed on this?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, but as said above we can use method.apply_unconfirmed_txs.

Just waiting input from @Zk2u since he did a lot of development as well with BDK in Strata.

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.

4 participants