-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Refactor the middleware setup [starts v7 breaking changes] #3169
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
24 commits
Select commit
Hold shift + click to select a range
87f6908
Initial commit for middleware refactor
fselmo 27c2e62
Refactor new middleware onion setup
fselmo 30351ea
Refactor caching as a decorator on ``make_request()``
fselmo 1c07cce
Remove middleware dependent on old logic
fselmo af912fa
Add request mocker fixture for mocking requests
fselmo 9c2f959
Some refactoring to make cached_requests work with WSV2
fselmo 3d6ac9d
WIP: Fix or comment out core test errors so core suite can run
fselmo 3822ad0
Allow for manipulating the method via middleware
fselmo aea95c1
Re-introduce the sandwiched middleware model via a method on the midd…
fselmo 6338ddb
Build on the wrapped make_request middleware refactor
fselmo 806eb73
Fix remaining tests that were broken due to refactor
fselmo 731e349
Remove the necessity for the ``abi_middleware``
fselmo caaa618
Reinstate the http retry request tests as configuration
fselmo 89c6a9c
Fix type hinting for refactor
fselmo 81decfb
Fix inconsistency with eth-tester integration test
fselmo 5f2f1fb
Remove unnecessary imports hidden by # noqa: F401
fselmo fd13864
use request mocker + no need to format logsBloom in eth-tester middle…
fselmo 45d61cb
Rename all references of geth_poa to extradata_to_poa
fselmo f6a3ae9
Minor cleanups from refactor PR
fselmo 57d8921
'name_to_address' -> 'ens_name_to_address' for consistency.
fselmo 35b245a
Make caching more robust; add tests back for cached requests
fselmo c3894c6
Changes from comments on PR #3169
fselmo a548a4e
Use as_tuple_of_middlewares() to get around typing issues
fselmo 91e872d
newsfragment for 3169
fselmo 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Refactor the middleware setup so that request processors and response processors are separated. This will allow for more flexibility in the future and aid in the implementation of features such as batched requests. This PR also closes out a few outstanding issues and will be the start of the breaking changes for `web3.py` ``v7``. Review PR for a full list of changes. |
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.
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.