Skip to content
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

Organize eth module as separate files #2753

Merged

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Dec 12, 2022

What was wrong?

  • Reorganize eth module into separate files
  • Tighten up typing on eth methods

Todo:

Cute Animal Picture

20221216_142842

@fselmo fselmo force-pushed the organize-eth-module-as-separate-files branch from 2ee9322 to 49cf737 Compare December 12, 2022 19:43
@fselmo fselmo mentioned this pull request Dec 13, 2022
22 tasks
@fselmo fselmo force-pushed the organize-eth-module-as-separate-files branch from ef70b1b to 11b9457 Compare December 16, 2022 21:25
@@ -115,7 +115,7 @@ def __init__(
validate_w3_instance(w3)

self.w3 = w3
self.w3.eth.defaultContractFactory = cast(Type[Contract], LinkableContract)
self.w3.eth._default_contract_factory = cast(Type[Contract], LinkableContract)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this ever meant to be a public property? 🤔

I don't mind putting this back, but this made a bit more sense. We don't have documentation on this afaik.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any docs either, so I think this is good.

@fselmo fselmo marked this pull request as ready for review December 16, 2022 21:30
@fselmo fselmo force-pushed the organize-eth-module-as-separate-files branch from 11b9457 to dc1b92a Compare December 16, 2022 21:35
@fselmo fselmo force-pushed the organize-eth-module-as-separate-files branch 2 times, most recently from e8118fe to cf175bf Compare January 5, 2023 18:42
@fselmo fselmo force-pushed the organize-eth-module-as-separate-files branch from cf175bf to f177ec9 Compare January 5, 2023 18:47
Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I just left a few comments, mostly nits :)

@@ -115,7 +115,7 @@ def __init__(
validate_w3_instance(w3)

self.w3 = w3
self.w3.eth.defaultContractFactory = cast(Type[Contract], LinkableContract)
self.w3.eth._default_contract_factory = cast(Type[Contract], LinkableContract)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any docs either, so I think this is good.

web3/eth/async_eth.py Show resolved Hide resolved
web3/eth/async_eth.py Show resolved Hide resolved
- Reorganize and add comments to ``AsyncEth`` for filter-related, eth-underscored calls.
@fselmo fselmo merged commit 15d185b into ethereum:master Jan 5, 2023
@fselmo fselmo deleted the organize-eth-module-as-separate-files branch January 5, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants