Commit dbb143a
committed
Merge #294: feat(utxo-locking)!: Add commands to lock, unlock and list locked UTXOs
7c2dfac feat(utxo-locking): Limit locking to known utxos (Vihiga Tyonum)
90270f7 fix(bip322): Re-enable bip322 feature (Vihiga Tyonum)
aba6c66 feat(utxo-locking): Add tests for utxo locking (Vihiga Tyonum)
d3dde30 fix(bip322): disable bip322 feature (Vihiga Tyonum)
242d4da feat(utxo-locking): Add wallet locking commands (Vihiga Tyonum)
205d46c feat(cbf): Update bdk_kyoto to v0.17.0 (Vihiga Tyonum)
d89a08d feat(wallet-3.1.0): Update Wallet to v3.1.0 (Vihiga Tyonum)
cbee8a0 fix(proxy_opts): add saving and reading proxy_opts (Vihiga Tyonum)
eec81e2 ref(verbose): Dropped `verbose` flag from tests (Vihiga Tyonum)
dfeb580 test(online): Add test transaction full cycle (Vihiga Tyonum)
ae0c32a test: Add integration tests for offline wallet ops (Vihiga Tyonum)
b8761bc test: Add wallets, descriptor, compile & config (Vihiga Tyonum)
38a709f test: Add helper fns & integration tests for key (Vihiga Tyonum)
Pull request description:
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
### Description
<!-- Describe the purpose of this PR, what's being adding and/or fixed -->
This PR updates the Wallet API to v3.1.0 and adds wallet subcommands to lock and unlock UTXOs. Locked outpoints are excluded from coin selection, and the lock state is stored in the wallet. It also updates the `bdk_redb` to v0.2.0 and `bdk_kyoto` to v0.17.0.
Fixes #293 and builds upon #289 and #278
### Notes to the reviewers
<!-- In this section you can include notes directed to the reviewers, like explaining why some parts
of the PR were done in a specific way -->
## Changelog notice
<!-- Notice the release manager should include in the release tag message changelog -->
<!-- See https://keepachangelog.com/en/1.0.0/ for examples -->
- Update bdk_wallet to v3.1.0
- Add wallet `lock_utxo` command
- Add wallet `unlock_utxo` command
- Add wallet `locked_uxtos` command
- Update bdk_redb to v0.2.0
- Update bdk_kyoto to v0.17.0
- Replace `Network` enum with `NetworkKind`
- Replace `include_output_redeem_witness_script` with `add_global_xpubs` in TxBuilder
- Replace `submit_package` with `broadcast_random` for broadcasting transactions in KyotoClient
### Checklists
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md)
* [x] I ran `cargo fmt` and `cargo clippy` before committing
#### New Features:
* [ ] I've added tests for the new feature
* [ ] I've added docs for the new feature
* [ ] I've updated `CHANGELOG.md`
Top commit has no ACKs.
Tree-SHA512: df9291a93f2231408981d5a90b6164a75e6ca4b6c73e5638fe1c18323ea2be1c1b485bddc86efbfc64620087238df19dcb5274272a1ea27cd8b5dac0f08e6b6b13 files changed
Lines changed: 282 additions & 101 deletions
File tree
- src
- handlers
- dns
- utils
- tests/integration
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
| |||
205 | 198 | | |
206 | 199 | | |
207 | 200 | | |
208 | | - | |
| 201 | + | |
| 202 | + | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
| |||
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
277 | 267 | | |
278 | 268 | | |
279 | 269 | | |
280 | 270 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
285 | 274 | | |
286 | 275 | | |
287 | 276 | | |
| |||
0 commit comments