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: update bdk-cli to use bdk_wallet v1 #174

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

tvpeter
Copy link

@tvpeter tvpeter commented Feb 3, 2025

Description

This PR update bdk-cli to use bdk_wallet v1

Issue: #172 (comment)

Notes to the reviewers

  • replaced list_transactions with transactions
  • set enable_rbf to be true by default
  • update creating and serializing Psbts
  • update new_wallet to return PersistedWallet<Connection>
  • default fee_rate to use FeeRate::BROADCAST_MIN
  • update zeroize to version 1.8.1 from <1.4.0
  • update bdk-reserves from 0.27.1 to 0.29.0
  • replace bdk/electrum with bdk_electrum for the electrum feature
  • add bdk_esplora for the bdk/use-esplora-ureq and bdk/use-esplora-reqwest features
  • add bdk_bitcoind_rpc lib to replace bdk/rpc feature
  • add hwi library to replace bdk/hardware-signer feature

Changelog notice

  • set enable_rbf to be true by default
  • update using PartiallySignedTransaction to Psbt
  • default fee_rate to use FeeRate::BROADCAST_MIN
  • update zeroize to version 1.8.1 from <1.4.0
  • update bdk-reserves from 0.27.1 to 0.29.0
  • replace bdk/electrum with bdk_electrum for the electrum feature
  • replace bdk/use-esplora-ureq and bdk/use-esplora-reqwest with bdk_esplora lib
  • replace bdk/rpc with bdk_bitcoind_rpc lib
  • replace bdk/hardware-signer with hwi lib

Checklists

All Submissions:

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

Bugfixes:

  • This pull request breaks the existing API
  • I'm linking the issue being fixed by this PR

add bdk_wallet to Cargo.toml

* the bdk crate is still in using because of the
error enum, which will be removed after feedback
[Ticket: X]
-update imports from bdk to use bdk_wallet
- set `enable_rbf` command option to be `true` by
default
- add `parse_address` fn to parse address from
string
- replace `ExtendedPrivateKey` with `Xpriv` from
bdk_wallet
- update derving address from string to use
`assumed_check`

[Ticket: X]
- replace `list_transactions` method  with
`transactions`
- format `recipients` to be a vec of `ScriptBuf`
and `Amount`
- update creating and serializing `Psbt`s
- update `fee_rate` method and default to
`FeeRate::BROADCAST_MIN`
- replace `allow_shrinking` method with `drain_to`
method
- update `handle_offline_wallet_subcommands` to
use `PersistedWallet<D>` instead of `Wallet<D>`
[Ticket: X]
- update imports from bdk to bdk_wallet
- fix compilation warnings

[Ticket: X]
- add `parse_address` method
- remove `key-value-db` feature as it uses `sled`
- update `open_database` fn to return
rusqlite::Connection
- update `new_wallet` fn to return
`PersistedWallet<Connection>`

[Ticket: X]
@notmandatory notmandatory added the enhancement New feature or request label Feb 3, 2025
- Replace `bdk` with `bdk_wallet` v1 in Cargo.toml
- replace removed features in bdk features/mods
with crates

[Ticket: X]
-add error enum for handling errors

[Ticket: X]
@tvpeter tvpeter force-pushed the feat/bdk-wallet-v1-update branch from 6653428 to c7bd335 Compare February 6, 2025 12:45
- replace bdk::error with custom error enum
- update imports and handling of errors

[Ticket: X]
@tvpeter tvpeter force-pushed the feat/bdk-wallet-v1-update branch from c7bd335 to 50233dd Compare February 6, 2025 14:04
- update deps imports
- refactor reserves feature

[Ticket: X]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants