Commit b215185
authored
refactor: revise and add tests for
* refactor: updated sync committees handlers
* refactor: move and update sync committees db functions
* refactor: update sync committees db functions
* test: add SyncCommitteeClient mocks wth mockery
* refactor: update sync committees save and move SyncCommittee type def to commons/types
* test: add ConsensusDBI mocks wth mockery
* refactor: update tiered cache handler
* test: added sync committees Export tests
* fix: lint
* fix: update sync committees calls in misc/main.go
* refactor: rename ConsensusDBI to ConsensusRepository and move it to /db2/consensus.go
* test: update ConsensusRepository mocks with mockery
* refactor: pass deployment type as param to NewStatusReport funcexporter/modules/sync_committees.go (#1375)1 parent 8e9885c commit b215185
File tree
23 files changed
+421
-118
lines changed- backend
- cmd/misc
- pkg
- api/services
- commons
- db2
- mocks
- db
- rpc/mocks
- types
- exporter/modules
- monitoring
- services
23 files changed
+421
-118
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
2086 | | - | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
2087 | 2091 | | |
2088 | 2092 | | |
2089 | 2093 | | |
2090 | 2094 | | |
2091 | 2095 | | |
2092 | 2096 | | |
2093 | | - | |
| 2097 | + | |
2094 | 2098 | | |
2095 | 2099 | | |
2096 | 2100 | | |
2097 | 2101 | | |
2098 | | - | |
| 2102 | + | |
2099 | 2103 | | |
2100 | 2104 | | |
2101 | 2105 | | |
| |||
2121 | 2125 | | |
2122 | 2126 | | |
2123 | 2127 | | |
2124 | | - | |
| 2128 | + | |
2125 | 2129 | | |
2126 | 2130 | | |
2127 | 2131 | | |
2128 | 2132 | | |
2129 | | - | |
| 2133 | + | |
2130 | 2134 | | |
2131 | 2135 | | |
2132 | 2136 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments