Metadata V15: Expose types for the overarching Call, Event, Error enums (#14143)
* frame-metadata: Point to unreleased branch Signed-off-by:Alexandru Vasile <alexandru.vasile@parity.io> * frame: Generalize outer enum generation for events and errors Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame: Remove individual generation of outer enum events Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * primitives/traits: Add marker trait for outer runtime enums Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame: Derive Clone, PartialEq, Eq for RuntimeEvents only Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/pallet: Include `#[pallet::error]` enum into pallet parts Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * metadata-ir: Include call, event, error types Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/metadata: Include outer enum types in V15 metadata Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/tests: Ensure `RuntimeError` includes `#[pallet::error]` parts Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Document the reserved name for `RuntimeError` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame: Use self-generated `RuntimeEvent` for `GetRuntimeOuterEnumTypes` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/ui: Fix UI tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Remove unused system path Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/ui: Unexpected field and reintroduce frame_system::Config for RuntimeCall Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Remove `GetRuntimeOuterEnumTypes` marker trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Remove `;` from macro Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update frame-metadata to point to unreleased branch Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename error_enum_ty to module_error_enum_ty Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update module_error_ty documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame: Implement from_dispatch_error Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Adjust test to ModuleErrorType Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Improve documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/tests: Check `from_dispatch_error` impl Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update frame-metadata Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove the module_error_ty Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Apply fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Revert unneeded parts Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Revert "Revert unneeded parts" This reverts commit b94bbd16078a025775a48da1095edec1705e6a4d. Revert "Apply fmt" This reverts commit 9b1c3e7b4ef27d32e10b35054a99916067e0397b. Revert "Remove the module_error_ty" This reverts commit 98de5b24653f9f9ec6ee842b749401b18a01758a. * Update frame-metadata to origin/master Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add outerEnums to the metadata Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Keep backwards compatibility for explicit pallet parts Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename tt_error_part to be more generic Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Increase recursion_limit to 1k Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `fully_expanded` to `expanded` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Improve documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Adjust UI tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update UI tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update undefined_validate_unsigned_part.stderr UI test Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Adjust yet again Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Optimise macro expansions Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Use latest frame-metadata and rename `moduleErrorType` to `RuntimeError` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix comment Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Apply fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update frame/support/procedural/src/construct_runtime/parse.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame/support/procedural/src/construct_runtime/parse.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update frame-metadata PR Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `expanded` from error messages and fix typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Move docs to the function Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ui: Use the intermed syntax for pallet parts Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update frame-metadata with latest release Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame: Address feedback for `from_dispatch_error` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Bastian Köcher <git@kchr.de>
Showing
- substrate/Cargo.lock 2 additions, 2 deletionssubstrate/Cargo.lock
- substrate/bin/node/runtime/src/lib.rs 2 additions, 2 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/support/Cargo.toml 1 addition, 1 deletionsubstrate/frame/support/Cargo.toml
- substrate/frame/support/procedural/src/construct_runtime/expand/metadata.rs 9 additions, 1 deletion...pport/procedural/src/construct_runtime/expand/metadata.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/mod.rs 2 additions, 2 deletions...me/support/procedural/src/construct_runtime/expand/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/outer_enums.rs 283 additions, 0 deletions...rt/procedural/src/construct_runtime/expand/outer_enums.rs
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 142 additions, 16 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/parse.rs 70 additions, 5 deletions...e/frame/support/procedural/src/construct_runtime/parse.rs
- substrate/frame/support/procedural/src/pallet/expand/tt_default_parts.rs 34 additions, 2 deletions.../support/procedural/src/pallet/expand/tt_default_parts.rs
- substrate/frame/support/test/tests/common/mod.rs 19 additions, 0 deletionssubstrate/frame/support/test/tests/common/mod.rs
- substrate/frame/support/test/tests/common/outer_enums.rs 146 additions, 0 deletionssubstrate/frame/support/test/tests/common/outer_enums.rs
- substrate/frame/support/test/tests/construct_runtime_ui/generics_in_invalid_module.stderr 1 addition, 1 deletion...ts/construct_runtime_ui/generics_in_invalid_module.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details_keyword.stderr 1 addition, 1 deletion...onstruct_runtime_ui/invalid_module_details_keyword.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.rs 1 addition, 1 deletion...t/test/tests/construct_runtime_ui/invalid_module_entry.rs
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr 3 additions, 3 deletions...st/tests/construct_runtime_ui/invalid_module_entry.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.rs 2 additions, 2 deletions...ntime_ui/missing_event_generic_on_module_with_instance.rs
- substrate/frame/support/test/tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.stderr 1 addition, 1 deletion...e_ui/missing_event_generic_on_module_with_instance.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.rs 2 additions, 2 deletions...time_ui/missing_origin_generic_on_module_with_instance.rs
- substrate/frame/support/test/tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.stderr 1 addition, 1 deletion..._ui/missing_origin_generic_on_module_with_instance.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/undefined_event_part.rs 2 additions, 2 deletions...t/test/tests/construct_runtime_ui/undefined_event_part.rs
Please register or sign in to comment