Skip to content

Commit 3a5a67e

Browse files
committed
feat!: Replace PsbtUpdater and Builder with create_psbt method
**Remove `PsbtUpdater` & `Builder`** These was no need for these to be separated. The builder pattern was nice but not needed at this stage. **Remove `DataProvider`** Instead of creating a separate struct for passing in data for inputs/outputs. We can just have the data within our inputs/outputs. **Introduce `Input` and `Output` types** The `Input` type is what is passed through all stages of tx-building. From canonicalization, grouping/filtering, coin-selection and finally used to create the psbt. The `Output` type is used to describe a psbt output. It either is one that we own (in which, we have the descriptor), or one we do not (in which case, we just have a spk).
1 parent 686bdb6 commit 3a5a67e

File tree

8 files changed

+1027
-1366
lines changed

8 files changed

+1027
-1366
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ readme = "README.md"
1010

1111
[dependencies]
1212
miniscript = { version = "12", default-features = false }
13+
bdk_coin_select = "0.4.0"
1314

1415
[dev-dependencies]
1516
anyhow = "1"

0 commit comments

Comments
 (0)