Commit 23265b3
refactor(ckbtc): Generic events (#7991)
Refactor the ckBTC event log to be generic over the type of events
stored, so that the ckDOGE minter, that reuses code from the ckBTC
minter can have dedicated events. Quite a few ckBTC events are only
there for backwards-compatibility reasons or are not relevant for the
ckDOGE minter (e.g. events related to checking whether UTXOs or
addresses are tainted).
This PR is pure refactoring and does not change the behaviour of the
ckBTC or ckDOGE minter. It only allows to have 2 implementations, which
are currently identical, on how to record and replay events. The next PR
will change the ckDOGE implementation to have dedicated events.
1. #7991
2. #8035
---------
Co-authored-by: Thomas Locher <[email protected]>
Co-authored-by: IDX GitHub Automation <[email protected]>1 parent c83b503 commit 23265b3
File tree
19 files changed
+557
-357
lines changed- rs
- bitcoin/ckbtc
- agent/src
- minter
- src
- lifecycle
- state
- storage
- updates
- tests
- dogecoin/ckdoge
- minter
- src
- event
- test_utils/src
19 files changed
+557
-357
lines changedSome 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 | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
1584 | 1585 | | |
1585 | 1586 | | |
1586 | 1587 | | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1587 | 1591 | | |
1588 | 1592 | | |
1589 | 1593 | | |
| |||
1631 | 1635 | | |
1632 | 1636 | | |
1633 | 1637 | | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1634 | 1641 | | |
1635 | 1642 | | |
1636 | 1643 | | |
| |||
1687 | 1694 | | |
1688 | 1695 | | |
1689 | 1696 | | |
| 1697 | + | |
1690 | 1698 | | |
1691 | 1699 | | |
1692 | 1700 | | |
| |||
1697 | 1705 | | |
1698 | 1706 | | |
1699 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1700 | 1712 | | |
1701 | 1713 | | |
1702 | 1714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| |||
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
262 | | - | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
0 commit comments