This repository has been 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.6k
Enrich metadata with type information #8615
Merged
Merged
Changes from 250 commits
Commits
Show all changes
618 commits
Select commit
Hold shift + click to select a range
f612dd9
Merge branch 'master' into aj-metadata-vnext
ascjones bdfc96d
Cargo.lock after merge
ascjones 4a550a1
Restore scale-info feature
ascjones 5ec82c1
Fully qualify TypeInfo derive
ascjones 8b5ba7c
Skip PendingSwap T
ascjones e6d7970
Add missing skip_type_params attr
ascjones 833c821
metadata docs features
ascjones 6558710
Reduce pallet event attribute to struct
ascjones e85008b
Merge branch 'master' into aj-metadata-vnext
ascjones cb0af26
Cargo.lock
ascjones 2a6dc3f
Update frame/balances/src/tests_composite.rs
ascjones 0de9fea
Merge branch 'master' into aj-metadata-vnext
ascjones c350d88
Merge branch 'aj-metadata-vnext' of github.com:paritytech/substrate i…
ascjones 7372505
Line widths check
ascjones f9052c2
Merge branch 'master' into aj-metadata-vnext
ascjones 2cd71b6
Cargo.lock
ascjones 848d3b6
Add scale-info/std
ascjones 6e2313c
Update frame/system/src/lib.rs
ascjones 8a2bbdb
Use `skip_type_params` to remove `TypeInfo` requirements on checks
ascjones 5de104e
Revert "Remove unused Call metadata stuff"
ascjones b825c08
Skip BalanceSwapAction type parameter
ascjones 72c8e8e
Remove unused event metadata macro
ascjones 8c7abdc
Update frame-metadata
ascjones 90d6239
Merge branch 'master' into aj-metadata-vnext
ascjones 6a199e5
Update primitives/npos-elections/compact/src/codec.rs
ascjones 501a7c8
Merge branch 'aj-metadata-vnext' of github.com:paritytech/substrate i…
ascjones 876d77b
Manual TypeInfo for Header
ascjones b7a2a78
Remove TypeInfo requirement for consts in BoundedVec etc.
ascjones b63835a
Another TypeInfo bound removed
ascjones e9e60c0
review: fix indentation
ascjones 0f331df
Merge branch 'master' into aj-metadata-vnext
ascjones 68f4659
TypeInfo impls for Identity types
ascjones 24adee5
Add some todos to add custom TypeInfo impls
ascjones ea6ce17
Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
ascjones f56a2c1
Add some todos to add custom TypeInfo impls
ascjones 63a8d1d
Merge remote-tracking branch 'origin/aj-metadata-vnext' into aj-metad…
ascjones 6fbce22
Add a test for manual Data TypeInfo impl
ascjones 39073c1
Add custom TypeInfo impl for Vote
ascjones 481d77e
Era custom TypeInfo crimes
ascjones 214aa23
Revert finality-grandpa version to 0.14.z
ascjones cc2456d
Merge branch 'master' into aj-metadata-vnext
ascjones 90315e6
review: renamed module to pallet_constants_metadata
ascjones 38de836
New line at end of file
ascjones 7ea7943
Add missing scale-info/std
ascjones ce2ecc8
Update frame/support/src/storage/types/mod.rs
ascjones 60b5887
Remove StorageEntryType::Map unused flag
ascjones 6156440
Merge branch 'aj-metadata-vnext' of github.com:paritytech/substrate i…
ascjones 5da01d6
Merge branch 'master' into aj-metadata-vnext
ascjones 3050fac
Add missing scale-info dependency after merge
ascjones aa5417b
SignedExtension::AdditionalSigned metadata
ascjones 6a9dc0d
Merge branch 'master' into aj-metadata-vnext
ascjones e42fe3e
Update frame-metadata, use abbreviated docs and args fields
ascjones 1dd2990
Update frame/example/Cargo.toml
ascjones 166c9bb
Add scale_info/std and remove unused scale-info dependency
ascjones e1ba36c
Merge remote-tracking branch 'origin/aj-metadata-vnext' into aj-metad…
ascjones 4bee356
Remove scale-info dependency
ascjones cab3bb5
Remove treasury pallet::metadata
ascjones bacc000
Remove redundant Event test
ascjones c91215c
Add back scale-info as dev dependency
ascjones 27fa7e2
fix error metadata when no error defined in decl_module
gui1117 82fb538
Add Module3 to tests
ascjones f944dbe
Merge branch 'aj-metadata-vnext' of github.com:paritytech/substrate i…
ascjones 7410615
Merge branch 'master' into aj-metadata-vnext
ascjones e3865c2
Fix metadata test
ascjones b2d9c25
Add docs feature to frame-support test
ascjones 9fcccb8
WIP fixing pallet metadata test
ascjones cdf65fc
Merge branch 'master' into aj-metadata-vnext
ascjones 3c3945c
Remove redundant FunctionMetadata, FunctionArgumentMetadata as per ht…
ascjones c849732
Use main branch of frame-metadata
ascjones 97174b5
Merge branch 'master' into aj-metadata-vnext
ascjones 93ba3c7
Merge branch 'master' into aj-metadata-vnext
ascjones fa4b2d7
Use patch of scale-info for latest changes
ascjones 22ab7d2
Use latest patched scale-info
ascjones 9d67a31
Manual TypeInfo for DigestItem
ascjones 4491a42
Manual TypeInfo for DigestItem
ascjones 094f0da
Update scale-info
ascjones c2c10c5
Merge branch 'master' into aj-metadata-vnext
ascjones eb43e7b
Skip __Ignore variants for Error, depends on https://github.com/parit…
ascjones 72db5b3
Merge branch 'master' into aj-metadata-vnext
ascjones a83be03
Merge branch 'master' into aj-metadata-vnext
ascjones a83096e
Named fields for FRAME v2 pallet Call variants
ascjones 42752e6
Named fields for FRAME v1 pallet Call variants
ascjones 6053b08
Add missing scale-info dependency
ascjones 0397626
WIP expand benchmark call variant
ascjones dbb0c1e
fix benchmark with new function
gui1117 fe85997
fix tests
gui1117 5e499ea
more fix
gui1117 9b426ac
Fix staking tests
ascjones 11f7419
Fix offchain workers calls
ascjones 1576ce5
Merge branch 'master' into aj-metadata-vnext
ascjones d5818d8
Cherry pick rustfmt.toml from master
ascjones 3b74c20
cargo +nightly-2021-06-22 fmt --all
ascjones 1a6d126
Merge branch 'master' into aj-metadata-vnext
ascjones d92d9b5
Update to new call variant structs
ascjones d2c8dfd
More call variant struct updates
ascjones bfd13c1
Remove unused import
ascjones 5651295
More call variant structs
ascjones 529d0d8
More call variant structs
ascjones cb4c2ee
Merge branch 'master' into aj-metadata-vnext
ascjones 6b88259
Even more call variant structs
ascjones 0d69600
Mooar variant structs
ascjones 490d742
Evermore variant structs
ascjones bc17010
Call variant structs ad infinitum
ascjones 64bb2c8
Merge branch 'master' into aj-metadata-vnext
ascjones 759c715
Fmt
ascjones fe357cf
More call variants
ascjones c2d2708
Last call variant
ascjones 5b4cc00
Call variants all done?
ascjones 125695a
Fix SS58Prefix type
ascjones 7adee68
Potential workaround for BitFlags<IdentityFields> TypeInfo
ascjones d2466f3
Merge branch 'master' into aj-metadata-vnext
ascjones 006b248
Enable docs capturing for Call, Event, and Error types
ascjones fc49b39
Fix IdentityFields TypeInfo
ascjones 9e18d2d
Remove metadata-docs feature
ascjones a32257b
Add capture_docs = true for legacy Call, Event and Error types
ascjones 686dd77
Fmt
ascjones 2aaf01d
Fix metadata test type
ascjones 26bcc50
Update benchmarks with call struct variants
ascjones d74d11e
Fmt
ascjones de94f5d
More test fixes
ascjones a39bb31
Fmt
ascjones 2b41890
Merge branch 'master' into aj-metadata-vnext
ascjones ab822b5
Fix benches
ascjones 2a53f72
Use latest capture_docs attr
ascjones 9194f00
Latest scale_info
ascjones cfc4af8
Merge branch 'master' into aj-metadata-vnext
ascjones 98b4c28
Fmt
ascjones b0abff3
review: change &Vec to &[]
ascjones c7786aa
Remove pallet metadata attr
ascjones b5f1f27
review: remove commented out test code
ascjones 52488ec
review: skip_type_params trailing comma suggestion
ascjones a11fc27
Update to scale-info 0.10.0
ascjones 66f28d2
Update construct_runtime ui tests, different because of metadata Type…
ascjones 2237de8
Add some TypeInfo derives for UI tests
ascjones 4763c9d
Update storage ensure span ui stderrs
ascjones 66aa463
Update call argument bound ui tests
ascjones 8ce94a8
Add scale-info dev dependency
ascjones 7683b7d
Update to latest finality-grandpa release
ascjones 4cbfc85
review: missing newline
ascjones e20f56f
review: missing scale-info/std
ascjones 106eea1
review: remove duplicate scale-info/std
ascjones b664596
review: remove fully qualified TypeInfo
ascjones 5c1f8fe
review: add missing scale-info/std
ascjones 1551a83
review: remove unnecessary imports.
ascjones 54147eb
Fmt
ascjones 288385a
Use crates.io RC version of frame-metadata
ascjones ee5299f
Remove scale-info/std because it is a dev dependency
ascjones 00a6476
Add missing scale_info dev-dependency for test
ascjones a96a65f
Delete empty metadata folder
ascjones 79e8d10
Fix sp_std import
ascjones ee9b70e
Merge branch 'master' into aj-metadata-vnext
ascjones e5d95bb
Merge branch 'master' into aj-metadata-vnext
ascjones 030f732
review: improve manual UncheckedExtrinsic TypeInfo impl
ascjones 0905ccf
review: use full scale-info for dev-dependency
ascjones 6e2c25c
Remove DefaultByteGetter impl
ascjones f4814ed
Merge branch 'master' into aj-metadata-vnext
ascjones 9d0b217
review: derive TypeInfo for generic header
ascjones fb09d4f
Fmt
ascjones 8956089
Update primitives/runtime/src/generic/unchecked_extrinsic.rs
ascjones a48635c
Update primitives/runtime/src/generic/unchecked_extrinsic.rs
shawntabrizi cc86b08
Update bin/node/executor/Cargo.toml
ascjones 9cbdff5
Update frame/identity/src/types.rs
ascjones 911ca7d
Update frame/support/src/dispatch.rs
ascjones f082b5d
Remove redundant derive
ascjones 5b1297d
Simplify scale-info dependency
ascjones 1268e74
Merge branch 'master' into aj-metadata-vnext
ascjones 2b91aa8
Strip underscore prefix from call variant struct names
ascjones 03f43ba
Another underscore field
ascjones eced48b
More underscore fields
ascjones 594b0e8
Another underscore field
ascjones 942683c
Merge branch 'master' into aj-metadata-vnext
ascjones 3f01437
Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
ascjones c740873
Fmt
ascjones 214e8f3
Revert weights formatting
ascjones b56e6bf
Merge branch 'master' into aj-metadata-vnext
ascjones 640e1d3
Fix up some tests
ascjones 8c0bb8e
Fix up some tests for StorageEntryTypeMetadata
ascjones 82481dd
scale-info dev dependency
ascjones f615b16
Fix test error
ascjones 0e157e5
Merge branch 'master' into aj-metadata-vnext
ascjones 0ccfdb4
Merge branch 'master' into aj-metadata-vnext
ascjones c905e48
Merge branch 'master' into aj-metadata-vnext
ascjones da90c11
Merge branch 'master' into aj-metadata-vnext
ascjones 75dabfb
Merge branch 'master' into aj-metadata-vnext
ascjones adf72ee
Add missing TypeInfo derives
ascjones 5a2122a
Merge branch 'master' into aj-metadata-vnext
ascjones aa185bb
Add back missing scale-info dependency
ascjones 2c47f9b
Add back missing scale-info dependency
ascjones 32371bb
Fix npos compact impls
ascjones 91f8206
Cargo.lock
ascjones 9dbdbdc
Fmt
ascjones f695da4
Fix errors
ascjones e2d74d0
Fmt
ascjones a61df94
Fix renamed raw_solution field
ascjones 8e37997
Fix error
ascjones 2f526bc
Fmt
ascjones 7b386d8
Fix some benchmarks
ascjones 1f12152
Fmt
ascjones cd8a63a
Stray R
ascjones 9cf4223
Fix
ascjones 1ce3f1d
Merge branch 'master' into aj-metadata-vnext
ascjones fda7a89
Add missing TypeInfos
ascjones 2d15ec0
ui test fix
ascjones 9b0e650
Fix line widths
ascjones 24d1caa
Merge branch 'master' into aj-metadata-vnext
ascjones 9289212
Merge branch 'master' into aj-metadata-vnext
ascjones c094c04
Revert "ui test fix"
ascjones 047bb17
Upgrade to scale-info 0.11.0
ascjones 6b18b04
Revert "Upgrade to scale-info 0.11.0"
ascjones 7518d5d
Merge branch 'master' into aj-metadata-vnext
ascjones dc4314c
Merge branch 'master' into aj-metadata-vnext
ascjones c3567ba
Add Runtime type
ascjones 3497b6f
Update to scale-info 0.12
ascjones 894f0a4
Update to scale-info 1.0
ascjones 4022140
Update frame-metadata to version 14.0.0
ascjones e332c5d
Patch finality-grandpa until release available
ascjones 3e4b18c
Merge branch 'master' into aj-metadata-vnext
ascjones 29a077e
Fix metadata tests
ascjones 6616dc2
Fix metadata tests
ascjones 5c78705
Fmt
ascjones d4566d1
Remove patched finality-grandpa
ascjones 16d002d
Fix tests, use scale_info imports
ascjones fa01b4f
Fix pallet tests
ascjones 6a49e30
Merge branch 'master' into aj-metadata-vnext
ascjones 84f048e
Add BlockNumber TypeInfo bound
ascjones af2903c
ui test fix
ascjones 62f92fe
Merge branch 'master' into aj-metadata-vnext
ascjones 4539f03
Merge branch 'master' into aj-metadata-vnext
ascjones bc90e36
Merge branch 'master' into aj-metadata-vnext
ascjones e10a528
Cargo.lock
ascjones c37994e
Merge branch 'master' into aj-metadata-vnext
ascjones ae88f63
Merge branch 'master' into aj-metadata-vnext
ascjones 9436947
Remove pallet metadata
ascjones db4b16d
Merge branch 'master' into aj-metadata-vnext
ascjones 9610410
Cargo.lock
ascjones 4e5372d
Merge branch 'master' into aj-metadata-vnext
ascjones 09280c2
Add missing scale-info dependency
ascjones 44b6259
Remove pallet event metadata
ascjones 0bd45fa
Fix error
ascjones c1e06c6
Fix collective errors
ascjones 48c3076
Semicolol
ascjones fe3ed51
Fmt
ascjones 7345cb2
Remove another metadata attribute
ascjones 3f2b619
Add new variant to custom digest TypeInfo
ascjones b993d85
Fmt
ascjones a0851e2
Cargo.lock from master
ascjones 73e6801
Remove comma lol
ascjones 3737c03
Merge branch 'master' into aj-metadata-vnext
ascjones cb2605a
Fix example call error
ascjones 6875219
Fix example call error properly
ascjones 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing this patch will eventually be reverted once everything is set up correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed, once https://github.com/paritytech/finality-grandpa/pull/133/files is merged and released as
0.14.3
.