Commit fcaf66e
refactor(key-wallet): drop unused
Every field of `AccountMetadata` (`name`, `description`, `color`, `tags`,
`created_at`, `total_received`, `total_sent`, `tx_count`) was dead. The
only field that was ever written, `last_used`, was never read by any
caller in the workspace. The associated `metadata()`/`metadata_mut()`
trait methods on `ManagedAccountTrait` had no callers either.
Remove the struct, the field on `ManagedCoreAccount` and
`ManagedPlatformAccount`, the trait methods, the `current_timestamp()`
helpers that became dead with the writes, and the corresponding
serde/bincode plumbing.
This is a breaking change for any persisted wallet snapshot, but the
API is still pre-1.0 and there is no consumer of the field's data.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>AccountMetadata struct (#717)1 parent 5603fff commit fcaf66e
5 files changed
Lines changed: 4 additions & 95 deletions
File tree
- key-wallet/src
- account
- managed_account
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
| |||
Lines changed: 1 addition & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | | - | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| |||
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
| |||
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
116 | | - | |
117 | 111 | | |
118 | 112 | | |
119 | 113 | | |
| |||
143 | 137 | | |
144 | 138 | | |
145 | 139 | | |
146 | | - | |
147 | 140 | | |
148 | 141 | | |
149 | 142 | | |
| |||
171 | 164 | | |
172 | 165 | | |
173 | 166 | | |
174 | | - | |
175 | 167 | | |
176 | 168 | | |
177 | 169 | | |
| |||
254 | 246 | | |
255 | 247 | | |
256 | 248 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 249 | + | |
262 | 250 | | |
263 | 251 | | |
264 | 252 | | |
| |||
300 | 288 | | |
301 | 289 | | |
302 | 290 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 291 | | |
312 | 292 | | |
313 | 293 | | |
| |||
347 | 327 | | |
348 | 328 | | |
349 | 329 | | |
350 | | - | |
351 | 330 | | |
352 | 331 | | |
353 | 332 | | |
| |||
370 | 349 | | |
371 | 350 | | |
372 | 351 | | |
373 | | - | |
374 | 352 | | |
375 | 353 | | |
376 | 354 | | |
| |||
380 | 358 | | |
381 | 359 | | |
382 | 360 | | |
383 | | - | |
384 | 361 | | |
385 | 362 | | |
386 | 363 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | | - | |
58 | | - | |
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
| |||
301 | 296 | | |
302 | 297 | | |
303 | 298 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 299 | | |
308 | 300 | | |
309 | 301 | | |
| |||
615 | 607 | | |
616 | 608 | | |
617 | 609 | | |
618 | | - | |
619 | 610 | | |
620 | 611 | | |
621 | 612 | | |
| |||
1175 | 1166 | | |
1176 | 1167 | | |
1177 | 1168 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | 1169 | | |
1187 | 1170 | | |
1188 | 1171 | | |
| |||
1302 | 1285 | | |
1303 | 1286 | | |
1304 | 1287 | | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | 1288 | | |
1314 | 1289 | | |
1315 | 1290 | | |
| |||
1349 | 1324 | | |
1350 | 1325 | | |
1351 | 1326 | | |
1352 | | - | |
1353 | 1327 | | |
1354 | 1328 | | |
1355 | 1329 | | |
| |||
1368 | 1342 | | |
1369 | 1343 | | |
1370 | 1344 | | |
1371 | | - | |
1372 | 1345 | | |
1373 | 1346 | | |
1374 | 1347 | | |
| |||
0 commit comments