Allow pallet in construct_runtime to have fixed index (#6969)
* implement index for pallet + some tests * add test and doc * remove deprecated and document behavior * update internal doc * Apply suggestions from code review Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * address review * use index for all module, break construct_runtime * fix line length * implement migration helper funciton in scheduler * fix start at index 0 * Update frame/scheduler/src/lib.rs Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> * Update frame/support/procedural/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * bump frame-metadata crate * factorize * avoid some unwrap and remove nightly join * Update frame/support/src/event.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * fix test * add test and improve error message * factorize test * keep iterator, and use slice instead of vec * refactor to avoid to have expects * small refactor * Test something * Make sure we update the `Cargo.lock` * Apply suggestions from code review Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * return 2 error * Apply suggestions from code review Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update frame/scheduler/src/lib.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * fix typo * Revert "fix typo" This reverts commit f2de8f2db34e8ac72bc9c34437c60dca3fa4ac22. * Revert "Update frame/scheduler/src/lib.rs" This reverts commit 6feb4605c6f784b64591e229de7a6fec6dbffb4b. Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
parent
86594727
Showing
- substrate/Cargo.lock 2 additions, 1 deletionsubstrate/Cargo.lock
- substrate/frame/metadata/Cargo.toml 1 addition, 1 deletionsubstrate/frame/metadata/Cargo.toml
- substrate/frame/metadata/src/lib.rs 10 additions, 5 deletionssubstrate/frame/metadata/src/lib.rs
- substrate/frame/scheduler/src/lib.rs 134 additions, 2 deletionssubstrate/frame/scheduler/src/lib.rs
- substrate/frame/support/Cargo.toml 1 addition, 1 deletionsubstrate/frame/support/Cargo.toml
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 118 additions, 41 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/parse.rs 13 additions, 16 deletions...e/frame/support/procedural/src/construct_runtime/parse.rs
- substrate/frame/support/procedural/src/lib.rs 16 additions, 4 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/src/dispatch.rs 2 additions, 1 deletionsubstrate/frame/support/src/dispatch.rs
- substrate/frame/support/src/event.rs 41 additions, 15 deletionssubstrate/frame/support/src/event.rs
- substrate/frame/support/src/metadata.rs 14 additions, 7 deletionssubstrate/frame/support/src/metadata.rs
- substrate/frame/support/src/origin.rs 53 additions, 10 deletionssubstrate/frame/support/src/origin.rs
- substrate/frame/support/test/Cargo.toml 1 addition, 0 deletionssubstrate/frame/support/test/Cargo.toml
- substrate/frame/support/test/tests/construct_runtime.rs 393 additions, 21 deletionssubstrate/frame/support/test/tests/construct_runtime.rs
- substrate/frame/support/test/tests/construct_runtime_ui/conflicting_index.rs 14 additions, 0 deletions...port/test/tests/construct_runtime_ui/conflicting_index.rs
- substrate/frame/support/test/tests/construct_runtime_ui/conflicting_index.stderr 11 additions, 0 deletions.../test/tests/construct_runtime_ui/conflicting_index.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/conflicting_index_2.rs 16 additions, 0 deletions...rt/test/tests/construct_runtime_ui/conflicting_index_2.rs
- substrate/frame/support/test/tests/construct_runtime_ui/conflicting_index_2.stderr 11 additions, 0 deletions...est/tests/construct_runtime_ui/conflicting_index_2.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/more_than_256_modules.rs 14 additions, 0 deletions.../test/tests/construct_runtime_ui/more_than_256_modules.rs
- substrate/frame/support/test/tests/construct_runtime_ui/more_than_256_modules.stderr 5 additions, 0 deletions...t/tests/construct_runtime_ui/more_than_256_modules.stderr
Please register or sign in to comment