-
Notifications
You must be signed in to change notification settings - Fork 268
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
Json RPC method parameter validation #2097
Merged
Merged
Changes from 46 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
af96058
Updating BlockHash related methods having validated parameters. Added…
asoto-iov 22cc178
Updated deserializers parent class and updated new eth_getTransaction…
asoto-iov f1baf19
fix hex input validation
casiojapi d45a14f
fix unit test exception message
casiojapi 1722017
fix sonarqube warning
casiojapi 50df9f9
add serialVersionUID to deserializer
casiojapi bc6baa5
Add deserializers for CallArguments, RawData, Address and BlockIdenti…
rmoreliovlabs ba11d0f
Fix sonarcloud issues
rmoreliovlabs e9f27a0
Refactor deserializers
rmoreliovlabs 9e04a89
Add BlockRef and BlockRefParam classes
rmoreliovlabs 63e7dd6
Refactor BlockRefParam
rmoreliovlabs 85c2fe0
Adding new Parameter classes
asoto-iov acbde9e
Refactor BlockRefParam deserialize to check for the param's type
rmoreliovlabs 8c5affe
Updating eth_newFilter method with FilterRequestParam
asoto-iov 27cc17d
Updating eth_getLogs method with FilterRequestParam
asoto-iov 7a9a5d4
Adding param validation to eth_unistallFilter, eth_getFilterChanges a…
asoto-iov 95d61d6
Merge pull request #2117 from rsksmart/json_rpc_param_validation_pt1
Vovchyk eda346b
Refactor CallArgumentsParam and add HexNumberParam
rmoreliovlabs 5c00e1e
Fix SonarCloud issues
rmoreliovlabs a0f9f5a
Code cleaning
rmoreliovlabs 7bfa8ee
Add HexKeyParam and HexDurationParam classes
rmoreliovlabs e970d38
Fix sonar issues
rmoreliovlabs 207d69a
Remove Serializable implementation from HexStringParam child classes
rmoreliovlabs 8cc47ef
Merge branch 'master' into json_rpc_param_validation
Vovchyk 9104c17
Fix failing tests
rmoreliovlabs e6f9cc7
Implement deserializers
rmoreliovlabs 5963770
Refactor CallArgumentsParam implementation
rmoreliovlabs d1f32b5
Make sendTransaction method synchronized
rmoreliovlabs fddec39
Fix code smells
rmoreliovlabs d0fe948
Suppress Sonar warnings
rmoreliovlabs b3ed700
Fix failing tests on EthModuleTest
rmoreliovlabs f36a9fc
Merge pull request #2121 from rsksmart/implement_json_param_validation
Vovchyk 5131f49
Update methods argument classes
rmoreliovlabs 4ad802d
Merge pull request #2130 from rsksmart/json_rpc_param_validation_pt3
Vovchyk aefe3d7
Remove unused methods
rmoreliovlabs c717e62
Update methods arguments types
rmoreliovlabs 66589f9
Fix failing tests
rmoreliovlabs 35df451
Merge pull request #2132 from rsksmart/json_rpc_param_validation_pt5
Vovchyk 59ebddf
Merge remote-tracking branch 'origin/master' into json_rpc_param_vali…
Vovchyk 50412d2
Addressing comments
rmoreliovlabs d770ff7
Fix failing tests
rmoreliovlabs 016b547
Move null check from HexKeyParam to the importRawKey method
rmoreliovlabs bdc6dd1
Check null value in newAccount method
asoto-iov 82079f9
Merge pull request #2136 from rsksmart/check_null_parameter_for_new_a…
Vovchyk aabccdd
Revert changes on EthModuleWallet sign method
rmoreliovlabs 61c0687
Remove unused imports
rmoreliovlabs 0dd8a3e
Add (C) header to new files
rmoreliovlabs 5ca790a
Update invalid hex error messages
rmoreliovlabs 8d27c79
Send error object to invalidParamError for logging
rmoreliovlabs 24fe940
Adding support for null topics
asoto-iov 73909be
minor code improvement
asoto-iov f05a209
Merge pull request #2139 from rsksmart/support_null_topics_in_FilterR…
Vovchyk 66549ed
Merge remote-tracking branch 'origin/master' into json_rpc_param_vali…
Vovchyk 55b42e8
Fixed tests after the merge from master
Vovchyk 3b3bcc6
Added proper handling of number parsing
Vovchyk 5d0a327
Added check for empty string in HexIndexParamTest
Vovchyk 4e64426
Merge pull request #2140 from rsksmart/hex-num-parsing
Vovchyk 59173f6
Merge branch 'master' into json_rpc_param_validation
Vovchyk bdc22a1
Merge branch 'master' into json_rpc_param_validation
Vovchyk 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
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.
about making this method synchronized, what is the reason for that?
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.
Sonar Cloud triggered a warning asking to change it to a syncronized method because the class this one was overridden from,
EthModuleTransactionBase
, has the sendTransaction method as synchronized.