Commit 3c4c556
authored
feat: Use
## High Level Overview of Change
Use `network_id` value from the Validation subscription stream. This PR
obviates the need for complex `chains` assignment logic in the
`chains.updateChains` method.
<!--
Please include a summary/list of the changes.
If too broad, please consider splitting into multiple PRs.
If a relevant Asana task, please link it here.
-->
### Context of Change
<!--
Please include the context of a change.
If a bug fix, when was the bug introduced? What was the behavior?
If a new feature, why was this architecture chosen? What were the
alternatives?
If a refactor, how is this better than the previous implementation?
If there is a design document for this feature, please link it here.
-->
<!--
Please check relevant options, delete irrelevant ones.
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] Refactor (non-breaking change that only restructures code)
- [ ] Tests (You added tests for code that already exists, or your new
feature included in this PR)
- [ ] Documentation Updates
- [ ] Release
## Before / After
There are no changes to the externally visible APIs.
<!--
If just refactoring / back-end changes, this can be just an in-English
description of the change at a technical level.
If a UI change, screenshots should be included.
-->
## Test Plan
Existing unit tests pass with this refactor. Additional unit tests have
also been added to test the logic of chains.
<!--
Please describe the tests that you ran to verify your changes and
provide instructions so that others can reproduce.
-->
<!--
## Future Tasks
For future tasks related to PR.
-->network_id in the Validation subscripton stream (#396)1 parent 14f60ff commit 3c4c556
File tree
24 files changed
+1246
-195
lines changed- src
- api/routes/v1
- connection-manager
- crawler
- test
- chains
- fixtures
- crawler
- fixtures
24 files changed
+1246
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
| |||
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | | - | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
260 | | - | |
| 263 | + | |
261 | 264 | | |
262 | 265 | | |
263 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
107 | 132 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
113 | 145 | | |
114 | 146 | | |
115 | 147 | | |
| |||
129 | 161 | | |
130 | 162 | | |
131 | 163 | | |
132 | | - | |
| 164 | + | |
133 | 165 | | |
134 | 166 | | |
135 | 167 | | |
| |||
138 | 170 | | |
139 | 171 | | |
140 | 172 | | |
141 | | - | |
| 173 | + | |
142 | 174 | | |
143 | 175 | | |
144 | 176 | | |
145 | 177 | | |
146 | | - | |
| 178 | + | |
147 | 179 | | |
148 | 180 | | |
149 | 181 | | |
| |||
182 | 214 | | |
183 | 215 | | |
184 | 216 | | |
185 | | - | |
| 217 | + | |
186 | 218 | | |
187 | 219 | | |
188 | 220 | | |
| |||
254 | 286 | | |
255 | 287 | | |
256 | 288 | | |
257 | | - | |
| 289 | + | |
258 | 290 | | |
259 | 291 | | |
260 | 292 | | |
| |||
268 | 300 | | |
269 | 301 | | |
270 | 302 | | |
271 | | - | |
| 303 | + | |
272 | 304 | | |
273 | 305 | | |
274 | 306 | | |
| |||
289 | 321 | | |
290 | 322 | | |
291 | 323 | | |
292 | | - | |
| 324 | + | |
293 | 325 | | |
294 | 326 | | |
295 | 327 | | |
296 | 328 | | |
297 | 329 | | |
298 | 330 | | |
299 | | - | |
| 331 | + | |
300 | 332 | | |
301 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
302 | 339 | | |
303 | 340 | | |
304 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
305 | 348 | | |
306 | 349 | | |
307 | 350 | | |
| |||
312 | 355 | | |
313 | 356 | | |
314 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
315 | 361 | | |
316 | 362 | | |
317 | 363 | | |
| |||
361 | 407 | | |
362 | 408 | | |
363 | 409 | | |
| 410 | + | |
0 commit comments