update solochain to use #[runtime] (#5772)
# Description * This is part of [issue 5242](https://github.com/paritytech/polkadot-sdk/issues/5242), specifically getting solochain to use `#[frame::runtime]` * Furthermore, reinforced the convention of `Template` instead of `TemplateModule` ## Integration * Should be integrated into the `solochain` template and documentation ## Review Notes * Refactored `solochain` template from [construct_runtime!](https://paritytech.github.io/polkadot-sdk/master/frame_support/macro.construct_runtime.html) to [#[runtime]](https://paritytech.github.io/polkadot-sdk/master/frame_support/attr.runtime.html). * AFAIU `Template` is our new convention, and preferred over `TemplateModule`. # Out of scope * The [#[runtime]](https://paritytech.github.io/polkadot-sdk/master/frame_support/attr.runtime.html) documentation is still very rudimentary, and should ideally be expanded to explain the macro, both what it does and the input options. * Furthermore, suggest update [#[runtime]]...
Showing
- prdoc/1.9.0/pr_1378.prdoc 1 addition, 1 deletionprdoc/1.9.0/pr_1378.prdoc
- templates/parachain/pallets/template/src/mock.rs 1 addition, 1 deletiontemplates/parachain/pallets/template/src/mock.rs
- templates/parachain/pallets/template/src/tests.rs 2 additions, 5 deletionstemplates/parachain/pallets/template/src/tests.rs
- templates/parachain/pallets/template/src/weights.rs 8 additions, 8 deletionstemplates/parachain/pallets/template/src/weights.rs
- templates/solochain/README.md 1 addition, 1 deletiontemplates/solochain/README.md
- templates/solochain/pallets/template/src/mock.rs 24 additions, 8 deletionstemplates/solochain/pallets/template/src/mock.rs
- templates/solochain/pallets/template/src/tests.rs 2 additions, 5 deletionstemplates/solochain/pallets/template/src/tests.rs
- templates/solochain/pallets/template/src/weights.rs 8 additions, 8 deletionstemplates/solochain/pallets/template/src/weights.rs
- templates/solochain/runtime/src/benchmarks.rs 1 addition, 1 deletiontemplates/solochain/runtime/src/benchmarks.rs
- templates/solochain/runtime/src/lib.rs 1 addition, 1 deletiontemplates/solochain/runtime/src/lib.rs
Please register or sign in to comment