-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: Validate Msg proto annotations #13793
Merged
Merged
Changes from 50 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
e867834
wip
amaury1093 88cb125
feat: Validate Msg proto annotations
amaury1093 4e88fe6
Regenerate
amaury1093 419418a
Update
amaury1093 40b3958
Add comments
amaury1093 fe94644
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 1ac9468
go mod tidy
amaury1093 db4cafe
wip merge fd sets
amaury1093 3b5d07d
fix gomods
amaury1093 168d125
wip
amaury1093 9981a0b
Fix nil any
amaury1093 59d9a83
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 0dad494
Revert
amaury1093 2ae4914
Small cleanup
amaury1093 3b59f38
Move registration fix to types
amaury1093 e48ded0
revert some stuff
amaury1093 f0f2fd8
comments
amaury1093 0458789
Return err
amaury1093 6aea9ee
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 708c5e9
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 b2a0414
go mod tidy
amaury1093 22c6718
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 3fcd4c0
Revert some stuff
amaury1093 43b0a04
Revert
amaury1093 61e9b54
revert
amaury1093 bd9dd66
Make it cleaner
amaury1093 39eaea5
Add tests
amaury1093 33f09ed
Add comments
amaury1093 64be084
Support MultiMsgsend
amaury1093 7152c27
Add comments
amaury1093 ab20001
Revert
amaury1093 dd1d67f
revert
amaury1093 e6e6a98
revert
amaury1093 cbeddfb
Don't panic
amaury1093 f0d7560
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 489b2f3
go-mod-tidy-all
amaury1093 862cbec
Revert
amaury1093 a7823a0
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 e5d877b
make proto-gen
amaury1093 a229a64
Use merged registry
amaury1093 767c236
Use os.StdErr
amaury1093 b02329e
Merge branch 'main' into am/13405-valid-annotations
amaury1093 4f84a83
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 fbd9a35
Merge branch 'am/13405-valid-annotations' of ssh://github.com/cosmos/…
amaury1093 69a6ed4
Use MergedRegistry
amaury1093 b8e7bee
Use standalone validation
amaury1093 0ea3bd2
Merge branch 'main' into am/13405-valid-annotations
amaury1093 d226a51
Log instead of panic
amaury1093 719da5a
Merge branch 'am/13405-valid-annotations' of ssh://github.com/cosmos/…
amaury1093 aa62be7
revert
amaury1093 7fa3497
Move msg validation to GetSignersContext
amaury1093 55bf5d4
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 b8435e2
Use commit hash for api
amaury1093 34fa561
Put in ProvideApp
amaury1093 b39b168
Fix build
amaury1093 0e20595
Remove replace
amaury1093 a302c5d
Fix test
amaury1093 e1042a1
Merge branch 'main' into am/13405-valid-annotations
amaury1093 c596277
Update x/tx/signing/get_signers.go
amaury1093 b6d287c
Merge branch 'main' into am/13405-valid-annotations
amaury1093 7c8b8b9
Merge branch 'main' of ssh://github.com/cosmos/cosmos-sdk into am/134…
amaury1093 90bdbe8
Fix build
amaury1093 2cb4fab
Return err
amaury1093 449d98c
Fix PR number in CL
amaury1093 cdfe4a9
Merge branch 'main' into am/13405-valid-annotations
amaury1093 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.
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
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.
@aaronc Is this a good place to put the proto annotations startup check?
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.
hmm, should we be thinking how to use runtime in normal app.go settings or should we try to get people to migrate to depinject sooner?
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 although we can probably do it even sooner in
ProvideApp
. We should probably pass*proto.Files
intoInterfaceRegistry
and make it define the resolver interfaces and/or provide the resolver interfaces directly into the container.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.
OK i'll do that.
@tac0turtle for the old simapp way, I can probably add it somewhere on the bottom of
NewSimApp
.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.
In 34fa561 I put this logic:
With protov2,
InterfaceRegistry
should become legacy, right? I decided to do your 2nd proposal, expose those 2 resolver interfaces in the container.