Commit 4b99549
committed
Merge #16: WIP: Update
51f8b14 chore: Add `.github/pull_request_template.md` (valued mammal)
15d60f2 feat(wallet): Update wallet to read/write locked outpoints (valued mammal)
8dd9ac5 schema: Add migration `0003_schema.up.sql` (valued mammal)
1344f47 Bump dependencies (valued mammal)
Pull request description:
### Description
Updates `bdk_wallet` from 2.3.0 to 3.0.0, along with companion bumps to `bdk_chain` (0.23.2 → 0.23.3) and `bdk_esplora` dev dependency (0.22.1 → 0.22.2).
`bdk_wallet` 3.0.0 adds a `locked_outpoints` field to `ChangeSet`, representing the persisted state of UTXO locks. This PR adds support for reading and writing that state:
- Adds migration `0003_schema.up.sql` which creates the `locked_outpoint(txid, vout)` table
- Adds `write_locked_outpoints` / `read_locked_outpoints` on `Store`, wired into the existing `write_changeset` / `read_changeset` methods
### Notes to the reviewers
The `write_locked_outpoints` implementation uses the `locked_outpoints::ChangeSet` semantics directly: a `true` value inserts the row (`INSERT OR IGNORE`), and a `false` value deletes it. On read, all rows in the table are returned as locked (`true`) (an absent row means unlocked).
### Changelog notice
### Added
- Migration `0003_schema.up.sql`: add `locked_outpoint` table for persisting UTXO lock state
### Changed
- Bump `bdk_chain` 0.23.2 → 0.23.3
- Bump `bdk_wallet` 2.3.0 → 3.0.0
- Bump `bdk_esplora` (dev) 0.22.1 → 0.22.2
Top commit has no ACKs.
Tree-SHA512: cc5beed27cbfb07c60d75f5ecea3144a5ca0f32c1231f921a4d60fb9d4d9e4268a3c923754c5121f2d3e5bcc4c38bf69ff8a75d4bb8c12b052a26d12d6199f19bdk_wallet to 3.0.04 files changed
Lines changed: 72 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
129 | 177 | | |
130 | 178 | | |
131 | 179 | | |
| |||
0 commit comments