|
39 | 39 | //! let psbt = tx_builder.finish()?;
|
40 | 40 | //! # Ok::<(), anyhow::Error>(())
|
41 | 41 | //! ```
|
42 |
| -
|
43 |
| -use crate::collections::BTreeMap; |
44 |
| -use crate::collections::HashSet; |
45 | 42 | use alloc::{boxed::Box, rc::Rc, string::String, vec::Vec};
|
46 |
| -use bdk_chain::PersistBackend; |
47 | 43 | use core::cell::RefCell;
|
48 | 44 | use core::fmt;
|
49 | 45 | use core::marker::PhantomData;
|
50 | 46 |
|
| 47 | +use bdk_chain::PersistBackend; |
51 | 48 | use bitcoin::psbt::{self, PartiallySignedTransaction as Psbt};
|
52 |
| -use bitcoin::{absolute, script::PushBytes, OutPoint, ScriptBuf, Sequence, Transaction, Txid}; |
| 49 | +use bitcoin::script::PushBytes; |
| 50 | +use bitcoin::{absolute, FeeRate, OutPoint, ScriptBuf, Sequence, Transaction, Txid}; |
53 | 51 |
|
54 | 52 | use super::coin_selection::{CoinSelectionAlgorithm, DefaultCoinSelectionAlgorithm};
|
55 |
| -use super::ChangeSet; |
56 |
| -use crate::types::{KeychainKind, LocalOutput, WeightedUtxo}; |
57 |
| -use crate::wallet::CreateTxError; |
58 |
| -use crate::{Utxo, Wallet}; |
59 |
| -use bitcoin::FeeRate; |
| 53 | +use super::{ChangeSet, CreateTxError, Wallet}; |
| 54 | +use crate::collections::{BTreeMap, HashSet}; |
| 55 | +use crate::{KeychainKind, LocalOutput, Utxo, WeightedUtxo}; |
| 56 | + |
60 | 57 | /// Context in which the [`TxBuilder`] is valid
|
61 | 58 | pub trait TxBuilderContext: core::fmt::Debug + Default + Clone {}
|
62 | 59 |
|
|
0 commit comments