Ran
|
Jobs
1
|
Files
40
|
Run time
3s
|
Badge
README BADGES
|
push
github
Merge bitcoindevkit/bdk#1048: Remove TransactionDetails from Wallet API 5fb506164 ci: fix msrv dependency versions for rustls (Steve Myers) dd5b8d759 test(wallet): add check_fee!(wallet,psbt) macro and use it in place of psbt.fee_amount() (Steve Myers) 465d53cc8 docs(wallet): update docs for calculate_fee/fee_rate and add_foreign_utxo (Steve Myers) 036299803 feat(wallet): add Wallet::insert_txout function and updated docs for fee functions (Steve Myers) d443fe7f6 feat(tx_graph)!: change TxGraph::calculate_fee to return Result<u64,CalculateFeeError> (Steve Myers) b4c31cd5b feat(wallet)!: remove TransactionDetails from bdk::Wallet API (Steve Myers) Pull request description: ### Description Removed `TransactionDetails` and changed `Wallet::get_tx` to return a `CanonicalTx`, and `TxBuilder::finish` to return only a `PartiallySignedTransaction`. This should fix #922 and fix #1015. I also added `Wallet` functions to get a `Transaction` send and receive amounts, fee, and `FeeRate`. see: https://github.com/bitcoindevkit/bdk/issues/922#issuecomment-1652814975 ### Notes to the reviewers Alot of wallet tests had to change since `TxBuilder::finish` only returns a PSBT now. I added a new `CalculateFeeError` which follows changes coming in #1028. ### Changelog notice Added - Wallet::sent_and_received function - Wallet::calculate_fee and Wallet::calculate_fee_rate functions - Wallet::error::CalculateFeeError - Wallet::insert_txout function to allow inserting foreign TxOuts BREAKING CHANGES: Removed - TransactionDetails struct Changed - Wallet::get_tx now returns CanonicalTx instead of TransactionDetails - TxBuilder::finish now returns only a PartiallySignedTransaction ### Checklists #### All Submissions: * [x] I've signed a... (continued)
56 of 56 new or added lines in 4 files covered. (100.0%)
8004 of 10158 relevant lines covered (78.8%)
5051.44 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
87.33 |
0.21% | crates/chain/src/tx_graph.rs |
9 |
95.03 |
-0.84% | crates/bdk/src/wallet/coin_selection.rs |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 6033429981.1 | 40 |
78.8 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|