-
Notifications
You must be signed in to change notification settings - Fork 248
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
codegen: Generate type aliases for better API ergonomics #1249
Merged
Merged
Changes from 32 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
0be80cc
codegen: Generate type alias for storage return types
lexnv f522e5a
codegen: Generate type alias for call function arguments
lexnv d050859
testing: Update polkadot.rs code from commit 2e2a75ff81
lexnv bd8f602
codegen: Type aliases for runtime API parameters
lexnv bfa70d1
codegen: Type alias for runtime apis output
lexnv c5dff9b
storage: Change path of the aliased module
lexnv c6bb349
codegen: Adjust module indentation
lexnv 10fdc75
codegen: Do not alias for api::runtime_types with unresolved generics
lexnv 8008665
codegen: Fix and document runtime API alias generation
lexnv 2bd89d4
Update artifacts
lexnv a777163
Update cargo.lock file
lexnv 977b4fb
codegen: Generate composite structs with alias unnamed fields
lexnv e353f16
testing: Update polkadot.rs file
lexnv 0a316b0
Merge remote-tracking branch 'origin/master' into lexnv/codegen-type-…
lexnv 0798ad9
codegen: Alias storage unnamed parameters
lexnv b9398dd
Update polkadot.rs
lexnv 8c51c2a
examples: Change polkadot to rococo runtime
lexnv 3ccb99f
codegen: Fix compiling tests in the codegen crate
lexnv 354704e
codegen: Extend storage test with alias module
lexnv 8761283
cli/tests: Adjust exepcted commands to the latest metadata
lexnv 43d9175
Merge remote-tracking branch 'origin/master' into lexnv/codegen-type-…
lexnv c408e97
Merge remote-tracking branch 'origin/master' into lexnv/codegen-type-…
lexnv 6ec86d9
codegen: Remove missleading comment and docs
lexnv 17bdaeb
codegen: Ensure unique names for generated runtime API types
lexnv b8425b9
codegen/tests: Test expected runtime type generation
lexnv 1588869
codegen/tests: Check duplicate params in runtime APIs
lexnv ab105eb
codegen/tests: Test colliding names of type aliases and parameters
lexnv 4bf9ac5
Fix clippy
lexnv 5a9f834
Merge remote-tracking branch 'origin/master' into lexnv/codegen-type-…
lexnv 6142e2f
Merge branch 'master' into lexnv/codegen-type-aliases
lexnv 4352c01
codegen: Separate alias module from struct definition
lexnv d65be15
Update polkadot.rs
lexnv 4c0c9f3
codegen: Remove outdated docs from composite def
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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 need to remind myself to make these updates in #1290 later, will probably have merge conflicts.