Integrate Runtime APIs into lib.rs and Enhance Metadata Testing #823
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
enhancement, tests
Description
lib.rs
, removing theapis.rs
file.spec_version
to 2292 and adjusted related configurations.Cargo.toml
to includeframe-metadata
andassert-json-diff
.RUNTIME_SPEC_VERSION
in the end-to-end test configuration.Changes walkthrough 📝
service.rs
Update Runtime API imports and dispatch method
node/src/service.rs
RuntimeApi
fromlaos_runtime::apis
.RuntimeApi
directly fromlaos_runtime
.laos_runtime::api::dispatch
.apis.rs
Remove deprecated Runtime API definitions
runtime/laos/src/apis.rs
apis.rs
file.lib.rs
Integrate Runtime APIs into lib.rs and update version
runtime/laos/src/lib.rs
apis
module.lib.rs
.spec_version
to 2292.metadata.rs
Add test for runtime metadata validation
runtime/laos/src/tests/metadata.rs
file.
mod.rs
Include metadata tests module
runtime/laos/src/tests/mod.rs
metadata
module for testing.config.ts
Update runtime specification version in config
e2e-tests/tests/config.ts
RUNTIME_SPEC_VERSION
to 2292.Cargo.toml
Update version and add new dependencies
Cargo.toml
frame-metadata
andassert-json-diff
.Cargo.toml
Add new dependencies for runtime testing
runtime/laos/Cargo.toml
serde_json
,frame-metadata
, andassert-json-diff
asdependencies.