You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polkadot follows a new approach, which makes the gigantic runtime/src/lib.rs file divided into more meaningful components. This makes the code easier to inspect and reason about.
Here is a screenshot:
And here is the potential changes we can do by following their approach:
impl config for each pallet inside lib.rs -> configs/mod.rs
xcm_config.rs -> configs/xcm_config.rs
impl_runtime_apis! inside lib.rs -> apis.rs
This will make our ~1000 lines long lib.rs reduced to somewhere in between 200-400 lines.
Contribution Guidelines
I agree to follow this project's Contribution Guidelines
The text was updated successfully, but these errors were encountered:
What is the feature you would like to see?
Polkadot follows a new approach, which makes the gigantic
runtime/src/lib.rs
file divided into more meaningful components. This makes the code easier to inspect and reason about.Here is a screenshot:
And here is the potential changes we can do by following their approach:
impl config
for each pallet insidelib.rs
->configs/mod.rs
xcm_config.rs
->configs/xcm_config.rs
impl_runtime_apis!
insidelib.rs
->apis.rs
This will make our ~1000 lines long
lib.rs
reduced to somewhere in between 200-400 lines.Contribution Guidelines
The text was updated successfully, but these errors were encountered: