feat(dot/types): moves ParachainInherentData type to types package#3048
feat(dot/types): moves ParachainInherentData type to types package#3048EclesioMeloJunior wants to merge 1 commit intodevelopmentfrom
ParachainInherentData type to types package#3048Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #3048 +/- ##
===============================================
+ Coverage 51.43% 51.47% +0.04%
===============================================
Files 219 219
Lines 28009 28009
===============================================
+ Hits 14406 14419 +13
+ Misses 12318 12306 -12
+ Partials 1285 1284 -1 |
There was a problem hiding this comment.
👍 Although I would instead have it in the interrnal/ directory to limit the external usage of these types from outside repositories.
Crossing my mind are:
internal/babe/parachaininternal/babe/inherentsinternal/primitives(=internal replacement fordot/types)internal/primitives/parachaininternal/primitives/inherents
If not, maybe it would be the time to separate things in the dot/types package and add a dot/types/parachain package, to reduce the tight coupling/dependency contention.
PS: Forgive my opinionated opinion 😄
|
I like |
kishansagathiya
left a comment
There was a problem hiding this comment.
you could have just added this change as part of #3047
That way reviewer would have more context of circular dependency
Good point, @EclesioMeloJunior does #3047 modify these files? If not we can move those changes to #3047 and close this PR? File movements will be tracked correctly even if commits are squashed, as long as we don't modify these babe files too much.
|
|
I will include these changes in #3047, and I will move these files to |
Changes
ParachainInherentDatatype fromlib/babepackage and moves it todot/typespackage, this is needed since there is a bunch of tests that need it but cannot import due to cyclic dependency.Tests
N/A
Issues
westend-devspec file inTestNodeRuntime_ValidateTransaction#3047Primary Reviewer
@timwu20
@qdm12