Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]


## [0.2.0]

### Added

- feat: Added `FeeStrategy` enum which defines the fee target as either a feerate or fee amount #31
- feat: Add member `PsbtParams::sighash_type` #25
- feat: Update signer impl for `XOnlyPublicKey` #20
- feat: Allow multiple change sources #18

### Changed

- chore: Bump MSRV to 1.85.0 #23
- `SelectorParams::target_feerate` field is renamed to `fee_strategy`.
- `SelectorParams::change_policy` field is changed to have type `bdk_coin_select::ChangePolicy`.
- `SelectorParams::new` is changed to accept the `FeeStrategy` and `ChangePolicy` as inputs.
- deps: Bump `miniscript` to 12.3.5
- deps: Bump `bdk_coin_select` to 0.4.1

### Fixed

- fix: Include `fallback_locktime` in locktime accumulation #24

### Removed

- `SelectorParams::change_weight` field is removed now that the change weights are represented in the actual change policy.
- Removed `SelectorParams::to_cs_change_policy` as the conversion is no longer necessary.
- Removed `ChangePolicyType` enum to allow the user to construct the intended `ChangePolicy`.

## [0.1.0]

### Added

- The new "Tx builder" #1

[unreleased]: https://github.com/bitcoindevkit/bdk-tx/compare/0.2.0...HEAD
[0.2.0]: https://github.com/bitcoindevkit/bdk-tx/compare/0.1.0...0.2.0
[0.1.0]: https://github.com/bitcoindevkit/bdk-tx/releases/tag/0.1.0
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bdk_tx"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
rust-version = "1.85.0"
homepage = "https://bitcoindevkit.org"
Expand All @@ -11,16 +11,16 @@ license = "MIT OR Apache-2.0"
readme = "README.md"

[dependencies]
miniscript = { version = "12", default-features = false }
bdk_coin_select = "0.4.0"
miniscript = { version = "12.3.5", default-features = false }
bdk_coin_select = "0.4.1"

[dev-dependencies]
anyhow = "1"
bdk_tx = { path = "." }
bitcoin = { version = "0.32", features = ["rand-std"] }
bitcoin = { version = "0.32.8", features = ["rand-std"] }
bdk_testenv = "0.13.0"
bdk_bitcoind_rpc = "0.20.0"
bdk_chain = { version = "0.23.0" }
bdk_bitcoind_rpc = "0.22.0"
bdk_chain = { version = "0.23.2" }

[features]
default = ["std"]
Expand Down
8 changes: 4 additions & 4 deletions examples/common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use bdk_bitcoind_rpc::{Emitter, NO_EXPECTED_MEMPOOL_TXIDS};
use bdk_bitcoind_rpc::{Emitter, NO_EXPECTED_MEMPOOL_TXS};
use bdk_chain::{
bdk_core, Anchor, Balance, CanonicalizationParams, ChainPosition, ConfirmationBlockTime,
};
Expand Down Expand Up @@ -41,17 +41,17 @@ impl Wallet {
pub fn sync(&mut self, env: &TestEnv) -> anyhow::Result<()> {
let client = env.rpc_client();
let last_cp = self.chain.tip();
let mut emitter = Emitter::new(client, last_cp, 0, NO_EXPECTED_MEMPOOL_TXIDS);
let mut emitter = Emitter::new(client, last_cp, 0, NO_EXPECTED_MEMPOOL_TXS);
while let Some(event) = emitter.next_block()? {
let _ = self
.graph
.apply_block_relevant(&event.block, event.block_height());
let _ = self.chain.apply_update(event.checkpoint);
}
let mempool = emitter.mempool()?;
let mempool_event = emitter.mempool()?;
let _ = self
.graph
.batch_insert_relevant_unconfirmed(mempool.new_txs);
.batch_insert_relevant_unconfirmed(mempool_event.update);
Ok(())
}

Expand Down