-
Notifications
You must be signed in to change notification settings - Fork 961
v16: Expose the unstable metadata v16 #5732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lexnv
merged 87 commits into
master
from
lexnv/metadata-v16-associated-types-enable-unstable
Nov 27, 2024
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
7e8baee
metadata-ir: Introduce PalletAssociatedTypeMetadata
lexnv 1c12f15
frame/config: Add associated types to parsed config
lexnv 20b22d8
frame/expand: Implement associated types expansion
lexnv 350efce
frame/expand: Use provided cfgs for the associated types
lexnv 3e97971
frame/construct_runtime: Extract associated types from pallet config
lexnv 5d8021e
frame/pallet: Introduce `config(without_metadata)`
lexnv 5679244
frame/pallet: Introduce `#[pallet::include_metadata]` for associated
lexnv 958611e
frame/pallet: Include associated type iff bounds contain TypeInfo
lexnv 7f26b67
frame/pallet: Proper flag for metdata collection
lexnv cc001f3
frame/tests/ui: Fix type in test
lexnv b2803e2
frame/tests/ui: Check config without metadata
lexnv 94007d8
frame/tests/ui: Check config with multiple attributes
lexnv 75d2697
frame/tests/ui: Add negative test for duplicate attributes in config
lexnv ebcb4a0
frame/tests/ui: Add negative test for collecting metadata from constants
lexnv 5115021
frame/tests/ui: Add negative test for metadata collection on events
lexnv aba029a
frame/tests: Check PalletAssociatedTypeMetadataIR collection
lexnv 6502c83
frame/support: Add documentation
lexnv e9571cb
Add PRdoc
lexnv 31bf284
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv 7429eb7
Update prdoc
lexnv 8a0c138
prdoc: Remove unneeded crate
lexnv c6c1800
prdoc: Include frame-support
lexnv 90c100c
Prupdate
lexnv fc87031
metadata-ir: Add v16 wrappers in preparation for frame-md release
lexnv f627476
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv b533f60
metadata-ir: Add conversion methods
lexnv e298259
metadata-ir: Enable v16 version as unstable
lexnv d0ff8f4
metadata-ir: Fix into stable conversion
lexnv 4060637
frame-md: Use git dependency instead
lexnv adf7508
metadata-ir: Adjust for new transaction format
lexnv 2982c59
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv 4ee1d7f
Merge branch 'lexnv/metadata-v16-associated-types' into lexnv/metadat…
lexnv 97eb703
cargo: Use frame-metadata 17
lexnv a95183e
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv 6ff6f37
metadata-ir: Adjust metadata
lexnv fba3502
metadata-ir: Prepare metadataIR for multiple version collection
lexnv ca2b0f0
Add prdoc
lexnv daf8dc3
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv 379ec83
Update substrate/frame/metadata-hash-extension/Cargo.toml
lexnv 475288c
Update cargo lock with pending branches
lexnv 195e514
Update prdoc
lexnv 332a900
metadata-ir/v14: Populate with lowest supported version
lexnv f9b635d
metadata-ir/unstable: Adjust for new frame-md version
lexnv ce42813
extrinsic: Modify ExtrinsicMetadata to return a Vec of versions
lexnv bdf9e7e
metadata-ir: Use IR versions instead of hardcoding
lexnv 7ed95ff
Update substrate/primitives/metadata-ir/src/v15.rs
lexnv b81abd8
Update substrate/primitives/runtime/src/traits/mod.rs
lexnv 1384674
metadata-ir: Assume version 0 for transaction_extensions
lexnv aef4a5c
Update cargo to latest
lexnv 628616e
Update Cargo.toml
lexnv 0c8efe9
Merge remote-tracking branch 'origin/lexnv/metadata-v16-associated-ty…
lexnv 2390a7b
Update cargo lock with unreleased branch
lexnv b5a45a4
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv eeb7e4a
metadata-ir: Do not specify vec
lexnv 06c0eb3
Update PRdoc
lexnv e0b9c32
cargo: Update merkleized-metadata to unreleased branch
lexnv 5e7aada
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv d05af73
cargo: Update dependencies
lexnv 3e611b1
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv 0979d1a
benchmark-cli/overhead: Select latest stable version for metadata
lexnv e378438
Merge remote-tracking branch 'origin/lexnv/metadata-v16-associated-ty…
lexnv f7dfa0d
Add space to cargo.toml features
lexnv bb682dd
utils/cli: Use latest stable metadata for tests
lexnv 15b361c
frame/support: Check unstable metadata is propagated
lexnv 8747a92
Update PRdoc
lexnv e397ca8
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv 75d2f94
Update from lexnv running command 'prdoc --audience node_dev --bump p…
actions-user cae9c1e
Update PRdoc
lexnv 0de89ed
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv 9b251c4
ci: Check-semver update CI to stable
lexnv 1f4ae8c
ci: Update to nightly as toolchain for semvercheck
lexnv 4a23b69
ci: Use an older nightly version
lexnv f6b9aa3
ci: Switch to v0.9 instead
lexnv 5a9c623
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv d64fd33
Revert CI changes for a followup
lexnv 61bf04f
Include semver-fix
lexnv 9293fca
Adjust PRdoc
lexnv 10d6bcb
Bump none for frame tests support crate
lexnv 8da158a
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv 6cf31bc
prdoc: Make frame-support-test a patch again
lexnv c52b80c
prdoc: Remove frame-support-test
lexnv 3f61d31
prdoc: Add frame-support-test as Minor bump
lexnv bc98d08
prdoc: Bump as major
lexnv 60cf5fe
Update .github/workflows/check-semver.yml
lexnv e5bfbcd
Merge remote-tracking branch 'origin/master' into lexnv/metadata-v16-…
lexnv dc57834
Merge branch 'master' into lexnv/metadata-v16-associated-types-enable…
lexnv e68ecbd
prdoc: Replace description |- with |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
title: Expose the unstable metadata v16 | ||
doc: | ||
- audience: Node Dev | ||
description: | | ||
This PR exposes the *unstable* metadata V16. The metadata is exposed under the unstable u32::MAX number. | ||
Developers can start experimenting with the new features of the metadata v16. *Please note that this metadata is under development and expect breaking changes until stabilization.* | ||
The `ExtrinsicMetadata` trait receives a breaking change. Its associated type `VERSION` is rename to `VERSIONS` and now supports a constant static list of metadata versions. | ||
The versions implemented for `UncheckedExtrinsic` are v4 (legacy version) and v5 (new version). | ||
For metadata collection, it is assumed that all `TransactionExtensions` are under version 0. | ||
|
||
crates: | ||
- name: sp-metadata-ir | ||
bump: major | ||
- name: frame-support-procedural | ||
bump: patch | ||
- name: frame-support | ||
bump: minor | ||
- name: frame-support-test | ||
bump: major | ||
- name: frame-metadata-hash-extension | ||
bump: patch | ||
- name: substrate-wasm-builder | ||
bump: minor | ||
- name: pallet-revive | ||
bump: minor | ||
- name: sp-runtime | ||
bump: major | ||
- name: frame-benchmarking-cli | ||
bump: patch | ||
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
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.
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.