Use real rust type for pallet alias in `runtime` macro (#4769)
Fixes https://github.com/paritytech/polkadot-sdk/issues/4723. Also, closes https://github.com/paritytech/polkadot-sdk/issues/4622 As stated in the linked issue, this PR adds the ability to use a real rust type for pallet alias in the new `runtime` macro: ```rust #[runtime::pallet_index(0)] pub type System = frame_system::Pallet<Runtime>; ``` Please note that the current syntax still continues to be supported. CC: @shawntabrizi @Kianenigma --------- Co-authored-by: command-bot <> Co-authored-by:Bastian Köcher <git@kchr.de>
parent
414a8fc2
Showing
- prdoc/pr_4769.prdoc 20 additions, 0 deletionsprdoc/pr_4769.prdoc
- substrate/bin/node/runtime/src/lib.rs 80 additions, 80 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/support/procedural/Cargo.toml 1 addition, 1 deletionsubstrate/frame/support/procedural/Cargo.toml
- substrate/frame/support/procedural/src/lib.rs 6 additions, 59 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/procedural/src/runtime/expand/mod.rs 8 additions, 2 deletionssubstrate/frame/support/procedural/src/runtime/expand/mod.rs
- substrate/frame/support/procedural/src/runtime/parse/mod.rs 22 additions, 1 deletionsubstrate/frame/support/procedural/src/runtime/parse/mod.rs
- substrate/frame/support/procedural/src/runtime/parse/pallet.rs 101 additions, 16 deletions...rate/frame/support/procedural/src/runtime/parse/pallet.rs
- substrate/frame/support/procedural/src/runtime/parse/pallet_decl.rs 121 additions, 8 deletions...frame/support/procedural/src/runtime/parse/pallet_decl.rs
- substrate/frame/support/src/lib.rs 23 additions, 0 deletionssubstrate/frame/support/src/lib.rs
- substrate/frame/support/src/tests/mod.rs 20 additions, 6 deletionssubstrate/frame/support/src/tests/mod.rs
- substrate/frame/support/src/tests/runtime.rs 130 additions, 0 deletionssubstrate/frame/support/src/tests/runtime.rs
- templates/minimal/runtime/src/lib.rs 6 additions, 6 deletionstemplates/minimal/runtime/src/lib.rs
Please register or sign in to comment