forked from ethereum/web3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs and refactoring from discussions on PR ethereum#2457
- Add documentation - Refactor out the provider flag since there is no support for sending transactions w/ CCIP Read support - Refactor some around the way the ``eth_call`` is made, add flag directly to ``eth_call`` and make ``durin_call()`` and internal ``_durin_call()`` - Refactor data back into post request after linting issues went away - Make CCIP Read max redirects configurable and add tests - OffchainLookup should extend from ContractLogicError - Add some more testing and refactor some more; use web3 ValidationError instead of importing from eth_utils - Add MultipleFailedRequests if multiple failed requests for similar / same data
- Loading branch information
Showing
25 changed files
with
577 additions
and
238 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ Table of Contents | |
web3.miner | ||
web3.geth | ||
web3.parity | ||
web3.utils | ||
gas_price | ||
ens | ||
constants | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Utils | ||
===== | ||
|
||
.. py:module:: web3.utils | ||
The ``utils`` module houses public utility and helper functions. | ||
|
||
|
||
.. py:method:: Utils.handle_offchain_lookup(offchain_lookup_payload, transaction) | ||
Handle ``OffchainLookup`` reverts on contract function calls manually. For an example, see :ref:`ccip-read-example` | ||
within the examples section. | ||
|
||
|
||
.. py:method:: Utils.async_handle_offchain_lookup(offchain_lookup_payload, transaction) | ||
The async version of the ``handle_offchain_lookup()`` utility method described above. |
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.