Skip to content

Commit 06e95d2

Browse files
authored
Merge pull request #154 from SatoshiPortal/0.4.0
bump: 0.4.0
2 parents 10fe2c9 + 1dba39e commit 06e95d2

3 files changed

Lines changed: 35 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [0.4.0]
6+
7+
### Added
8+
- BOLT12 invoice support in `submarine_cooperative_claim`. New `LightningInvoice` enum (`Bolt11` / `Bolt12`) in `util::invoice`, plus a `util::bolt12::parse_bolt12_invoice` helper.
9+
- `get_tx(txid)` on the `BitcoinClient` and `LiquidClient` traits, implemented for both Electrum and Esplora backends.
10+
- Optional `transaction: Option<TransactionOut>` field on `ClaimDetails` and `RefundDetails`, plus a new `TransactionOut { id, vout }` struct, to support the extended swap-restore API response.
11+
- Python bindings: `BtcLikeTransaction.hex()` and `BtcLikeTransaction.txid()`.
12+
13+
### Changed
14+
- HTTP error reporting in `BoltzApiClientV2` unified across GET / POST / PATCH. Non-success responses now surface as `Error::HTTPStatusNotSuccess(StatusCode, Value)` carrying both status and the server-returned body (JSON or text), instead of `Error::HTTP(String)` with only the `error` field.
15+
- `201 Created` responses are now treated as success.
16+
- `macros` is published as `boltz-client-macros = "1.0.0"` on crates.io; the workspace no longer depends on it by path.
17+
- Boltz `regtest` submodule bumped; submarine integration tests updated to cooperatively claim mainchain swaps (the new backend defers claims).
18+
- CI now builds the language bindings.
19+
- Removed the "early alpha" warning from the crate docs.
20+
21+
### Dependencies
22+
- Added `lightning = "0.2.2"` (for BOLT12 parsing).
23+
- Bumped `env_logger` from `0.7` to `0.11.8`.
24+
- Locked `wasm-pack` version in tooling.
25+
26+
### Breaking
27+
- `ClaimDetails` and `RefundDetails` gained a new field; struct-literal construction of these types must be updated.
28+
- Boltz HTTP failures previously returned `Error::HTTP(String)`; they now return `Error::HTTPStatusNotSuccess(StatusCode, Value)`. The `Error::HTTP` variant still exists for other call sites, so callers that pattern-matched it for Boltz errors will silently stop matching.
29+
30+
## [0.3.1]
31+
32+
Baseline for this changelog. See git history for prior releases.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "boltz-client"
33
description = "a boltz exchange client for swaps between BTC/LBTC & LN"
44
authors = ["i5hi <ishi@satoshiportal.com>", "Rajarshi Maitra <raj@bitshala.org>"]
5-
version = "0.3.1"
5+
version = "0.4.0"
66
edition = "2021"
77
license = "MIT"
88

@@ -35,7 +35,7 @@ codegen-units = 1
3535
panic = "abort"
3636

3737
[dependencies]
38-
bitcoin = { workspace = true }
38+
bitcoin = { workspace = true }
3939

4040
# Used for musig API not available in secp included in bitcoin/elements
4141
# TODO: remove once bitcoin included version contains musig

bindings/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "boltz_client"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "Boltz Swap library"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)