Metadata: Retain a subset of metadata pallets#879
Merged
Conversation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
jsdw
reviewed
Mar 24, 2023
jsdw
reviewed
Mar 24, 2023
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This reverts commit 725a2e5. Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
jsdw
reviewed
Mar 28, 2023
Co-authored-by: James Wilson <james@jsdw.me>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
jsdw
reviewed
Mar 28, 2023
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
jsdw
reviewed
Mar 29, 2023
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Collaborator
|
Awesome; looks like removing those generic types had a really notable impact! (allets like Sudo and MultiSig I guess depend on |
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
jsdw
approved these changes
Mar 31, 2023
Collaborator
jsdw
left a comment
There was a problem hiding this comment.
Looks great; happy to see this merge :)
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
niklasad1
approved these changes
Apr 4, 2023
…out use of it for better overall wins/clarity
Collaborator
|
Instead of trying to strip type params out of the extrinsic type (whose effect is primarily to remove the reference to the RuntimeCall type), I now strip the RuntimeCall type variants to only include those for pallets we want to keep. This keeps the size fairly uniformly small across all pallets now (below based on artifacts/polkadot.metadata):
|
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
niklasad1
reviewed
Apr 4, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR strips the metadata to include only some provided pallets.
Metadata size with single pallet
The
No Genericsmeans that the extrinsic types were stripped of the generic type parameters.Those generics where not needed and include nested type IDs that are unnecessarily increasing
the final metadata size. (Relies on paritytech/scale-info#176).
Closes #629.
// CC @paritytech/subxt-team