Commit 81a987c
committed
refactor: remove primaryEndpointUrl from chain-level RPC events
Remove primaryEndpointUrl field from NetworkController chain-level events:
- NetworkController:rpcEndpointChainUnavailable
- NetworkController:rpcEndpointChainDegraded
- NetworkController:rpcEndpointChainAvailable
Chain-level events are designed to represent the overall status of an
endpoint chain, not individual endpoints. The primaryEndpointUrl field
is redundant since consumers can derive endpoint information from the
networkClientId using getNetworkClientById() or
getNetworkConfigurationByNetworkClientId().
Individual endpoint events (rpcEndpointUnavailable, rpcEndpointDegraded,
rpcEndpointRetried) retain the primaryEndpointUrl field, as it's useful
for comparing endpointUrl to primaryEndpointUrl to determine whether the
affected endpoint is a primary or a failover.
Updated event type definitions, event publishing logic, test assertions,
and changelog to reflect these changes.1 parent 7b9c736 commit 81a987c
File tree
4 files changed
+6
-20
lines changed- packages/network-controller
- src
- create-network-client-tests
4 files changed
+6
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | 458 | | |
460 | 459 | | |
461 | 460 | | |
| |||
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
467 | | - | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
| |||
519 | 517 | | |
520 | 518 | | |
521 | 519 | | |
522 | | - | |
523 | 520 | | |
524 | 521 | | |
525 | 522 | | |
| |||
529 | 526 | | |
530 | 527 | | |
531 | 528 | | |
532 | | - | |
533 | 529 | | |
534 | 530 | | |
535 | 531 | | |
| |||
584 | 580 | | |
585 | 581 | | |
586 | 582 | | |
587 | | - | |
588 | 583 | | |
589 | 584 | | |
590 | 585 | | |
| |||
593 | 588 | | |
594 | 589 | | |
595 | 590 | | |
596 | | - | |
597 | 591 | | |
598 | 592 | | |
599 | 593 | | |
| |||
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | | - | |
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
| |||
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
484 | 481 | | |
485 | 482 | | |
486 | 483 | | |
| |||
829 | 826 | | |
830 | 827 | | |
831 | 828 | | |
832 | | - | |
| 829 | + | |
833 | 830 | | |
834 | 831 | | |
835 | 832 | | |
| |||
860 | 857 | | |
861 | 858 | | |
862 | 859 | | |
863 | | - | |
864 | 860 | | |
865 | 861 | | |
866 | 862 | | |
| |||
951 | 947 | | |
952 | 948 | | |
953 | 949 | | |
954 | | - | |
955 | 950 | | |
956 | 951 | | |
957 | 952 | | |
| |||
1028 | 1023 | | |
1029 | 1024 | | |
1030 | 1025 | | |
1031 | | - | |
1032 | 1026 | | |
1033 | 1027 | | |
1034 | 1028 | | |
| |||
1265 | 1259 | | |
1266 | 1260 | | |
1267 | 1261 | | |
1268 | | - | |
1269 | 1262 | | |
1270 | 1263 | | |
1271 | 1264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
| |||
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
298 | 296 | | |
299 | 297 | | |
300 | 298 | | |
| |||
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
326 | | - | |
327 | 324 | | |
328 | 325 | | |
329 | 326 | | |
| |||
0 commit comments