]> Untitled Git - bdk/commit
feat: update `wallet::Balance` to use `bitcoin::Amount`
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Wed, 24 Apr 2024 21:12:45 +0000 (18:12 -0300)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Sun, 5 May 2024 00:59:07 +0000 (21:59 -0300)
commit8a33d98db977a07e130ad57fa9c658a5c90d4a4b
treeff52b738edb10bafd6daaba3bdf5336f73c86a44
parent08fac47c2921ffd8d8e1b8d223bc89ae7e94abb1
feat: update `wallet::Balance` to use `bitcoin::Amount`

- update all fields `immature`, ` trusted_pending`, `unstrusted_pending`
  and `confirmed` to use the `bitcoin::Amount` instead of `u64`
- update all `impl Balance` methods to use `bitcoin::Amount`
- update all tests that relies on `keychain::Balance`
15 files changed:
crates/bdk/src/wallet/mod.rs
crates/bdk/src/wallet/tx_builder.rs
crates/bdk/tests/psbt.rs
crates/bdk/tests/wallet.rs
crates/bitcoind_rpc/tests/test_emitter.rs
crates/chain/src/keychain.rs
crates/chain/src/spk_txout_index.rs
crates/chain/src/tx_graph.rs
crates/chain/tests/test_indexed_tx_graph.rs
crates/chain/tests/test_tx_graph_conflicts.rs
crates/electrum/tests/test_electrum.rs
example-crates/example_cli/src/lib.rs
example-crates/wallet_electrum/src/main.rs
example-crates/wallet_esplora_async/src/main.rs
example-crates/wallet_esplora_blocking/src/main.rs