This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Metadata V15: Add Runtime API metadata #13302
Merged
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
a730fe1
impl_runtime_apis: Generate getters for `metadata_at` functions
lexnv bc1fed4
runtime: Implement new `Metadata` runtime trait
lexnv 46681dd
runtime: Move `metadata_at` functions to construct_runtime macro
lexnv d03dd7d
contruct_runtime: Use `OpaqueMetadata` from hidden imports
lexnv 441b7ad
Adjust testing
lexnv 555ccfb
frame/tests: Add tests for the new API
lexnv b43038f
Merge remote-tracking branch 'origin/master' into lexnv/md15_expose_m…
d19bbcd
primitives/proc-macro: Helper to extract documentation literals
lexnv d6d2868
primitives/proc-macro: Helper to filter all `cfg` attributes
lexnv 10a2cc5
primitives/proc-macro: Generate documentation getters for metadata
lexnv a345ece
primitives/proc-macro: Avoid trait collision with snake case methods
lexnv 397eaa0
proc-macro/tests: Check doc getters
lexnv 04b0c38
primitives/proc-macro: Generate metadata for runtime methods
lexnv a87dd22
primitives/api: Export scale-info and frame-metadata
lexnv 874cf6e
primitives/proc-macro: Generate metadata for runtime traits
lexnv dad0980
frame/runtime: Expose metadata v15 internally
lexnv df770ec
test: Use metadata v15 from `lexnv/md_v15_test` branch
lexnv c33d3ca
primitives/proc-macro: Generate crate access one module up
lexnv e4782de
frame: Implement `runtime_metadata` for mocks and tests
lexnv 3e9f5d4
primitives/proc-macro: Fix warnings
lexnv 417fb8d
primitives/proc-macro: Add no-docs flag
lexnv de1352c
frame: Adjust more tests
lexnv 3bf46aa
frame/tests: Check runtime metadata correctness
lexnv ae85bbe
frame/benchmarking: Adjust benchmarks
lexnv d37aa22
frame/benchmarks: Adjust more benchmarks
lexnv 0d09ae6
primitives/api: Fix clippy
lexnv e8969d6
primitives/proc-macro: Generate runtime metadata on the `decl_runtime…
lexnv 6239543
frame: Abuse Deref to resolve `runtime_metadata`
lexnv 6822962
Revert "frame: Implement `runtime_metadata` for mocks and tests"
lexnv b1c3dd9
primitives/proc-macro: Remove unused imports and function
lexnv 5ddfc55
frame/support: Adjust runtime metadata test
lexnv 6511a2f
primitives/tests: Remove doc getter test
lexnv aeb125f
frame/support: Enable `no-metadata-docs` feature from `sp-api`
lexnv cb05db6
primitives/tests: Add `TypeInfo` for test::extrinsic
lexnv d1d8cbc
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
lexnv 4c8287d
primitives/api: Expose scale-info and frame-metadata
lexnv e894ab0
Update frame-metadata to include v15
lexnv a6bfa9a
Fix merge conflicts
lexnv bd9be6d
frame/metadata_ir: Add IR for runtime API metadata
lexnv a7a5460
frame/metadata_ir: Convert IR to V15
lexnv c99200b
primitives/api: Collect IR metadata for runtime API
lexnv bc801f9
primitives/api: Move `metadata_ir` from frame/support
lexnv a069503
frame/tests: Adjust testing
lexnv 436a3e2
frame/tests: Adjust `metadata_versions` test
lexnv 24cfec5
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
081fbc0
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
5e841c1
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
e1cd816
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
112ea17
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
24dfc28
primitives/runtime_metadata: Exclude default type parameters from met…
lexnv 3787289
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv b64cfe5
Update primitives/api/src/metadata_ir/types.rs
lexnv 36519ca
Update primitives/api/src/metadata_ir/mod.rs
lexnv c6c5336
Update primitives/api/proc-macro/src/utils.rs
lexnv e48afb1
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv 4f5ae6d
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv 8b1b3cf
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv 6ee1a09
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv f0d857a
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv 24f8c64
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv fa2a517
primitives: Fix build
lexnv e6888b9
primitives/metadata-ir: Move IR to dedicated crate
lexnv 4c92435
primitives: Reexport metadata-ir and frame-metadata
lexnv e496815
frame: Use apis field instead of runtime
lexnv ca77baa
Better documentation for the `Deref` abstraction
lexnv cf78a71
ui-tests: Check empty `impl_runtime_apis`
lexnv 5178e38
primitives: Remove unneeded bounds on generic params
lexnv be55193
primitives: Rename `collect_where_bounds` to `get_argument_type_param`
lexnv 9e1fc77
primitives: Generate crate access per fn call
lexnv e281bc9
Revert "primitives: Remove unneeded bounds on generic params"
lexnv c850d2b
metadata-ir: Add no-std
lexnv df4d33d
primitives: Adjust where bounds
lexnv a3b5a4c
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
lexnv beada2c
Change `frame-metadata` branch to "origin/main"
lexnv bae34a7
Update to `main` from origin
lexnv 0d9aad1
Update frame-metadata to crates.io v15.1
lexnv 2d76e6d
Revert "ui-tests: Check empty `impl_runtime_apis`"
lexnv 3bafb29
Move ui test to primitives/ui
lexnv 27d8044
Update frame/support/test/tests/runtime_metadata.rs
lexnv f551830
Update primitives/api/proc-macro/src/runtime_metadata.rs
lexnv b558af5
Test already covered by `empty_impl_runtime_apis_call.stderr`
lexnv 6f7675b
Retriger CI
lexnv add36ef
Merge remote-tracking branch 'origin/master' into lexnv/md15_runtime_…
8d582bf
Import `TokenStream` as `TokenStream2`
lexnv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.