-
Notifications
You must be signed in to change notification settings - Fork 236
feat: validate feeder responses on the client layer #3749
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e3fcfd2
feat(validation): add Validatable interface and accept it in the doRe…
thiagodeev 6a48f72
feat(validation): implement validation for PreConfirmedDeltaUpdate type
thiagodeev 654c858
feat(validation): enhance validation for PreConfirmedBlock and refact…
thiagodeev eb8d513
refactor(validation): remove redundant checks in AdaptPreConfirmedBlo…
thiagodeev f9e0c8c
refactor(sn2core): remove candidate transactions handling in AdaptPre…
thiagodeev 6c4a05c
test(validation): add tests for feeder, PreConfirmedBlock and PreConf…
thiagodeev 85c83ec
ci: fix linter
thiagodeev cfda3e8
chore: reorg doRequest params
thiagodeev a8f87f9
fix: PR comments from Claude
thiagodeev 737dd18
style: move methods within the file
thiagodeev f723f54
reafactor(validation): move placeholder validation methods close to t…
thiagodeev a6b485f
refactor(feeder): move doRequest and Validatable to a new request.go …
thiagodeev 94e7289
refactor(feeder): move get and buildQueryString methods to request.go…
thiagodeev f526296
refactor(feeder): replace custom publicKey type with starknet.PublicK…
thiagodeev 4fceb15
refactor(validation): update Validate methods to return only an error…
thiagodeev d7bf4db
feat(feeder): new error message for invalid feeder responses
thiagodeev 65f27f1
feat(sync): log error as error level for invalid feeder responses in …
thiagodeev 319266e
docs(validation): update Validatable interface to clarify error handl…
thiagodeev 54813e4
refactor(validation): improve error messages and formatting in valida…
thiagodeev e7b8ea0
chore; move .get() back to feeder.go file
thiagodeev fb44a2e
refactor(feeder): update Client to use *url.URL for URL handling and …
thiagodeev 6f0583b
feat(validation): add URL validation for custom network feeder and ga…
thiagodeev 38adaa0
refactor(feeder): update tests and client initialization to use *url.…
thiagodeev 030c4cf
feat(validation): enhance error message in validateTxsLength for bett…
thiagodeev db31c27
fix(validation): improve error messages in validateHTTPURL for cleare…
thiagodeev 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 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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.