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

feat(traits): update use of ethers Provider and contract binding of entrypoint to use traits #326

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

0xfourzerofour
Copy link
Collaborator

@0xfourzerofour 0xfourzerofour commented Aug 23, 2023

[Closes] #267

Proposed Changes

  • update use of ethers Provider and contract binding of entrypoint to use traits
  • Did not update provider config with use of Signer yet as I will need to look further into the config
  • I did have to clone some instances of EntrypointLike to get around the compiler but could most likely remove memory cloning however I don't think that will much memory overhead in this case

@0xfourzerofour 0xfourzerofour changed the title feat(traits): update use of ethers Provider and contract binding of entrypoint to use traits WIP[traits]: update use of ethers Provider and contract binding of entrypoint to use traits Aug 23, 2023
@0xfourzerofour 0xfourzerofour changed the title WIP[traits]: update use of ethers Provider and contract binding of entrypoint to use traits feat(traits): update use of ethers Provider and contract binding of entrypoint to use traits Aug 23, 2023
Copy link
Collaborator

@dphilipson dphilipson left a comment

Choose a reason for hiding this comment

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

Looks great! A few comments inline.

src/common/types/provider_like.rs Show resolved Hide resolved
src/common/types/provider_like.rs Outdated Show resolved Hide resolved
src/common/types/provider_like.rs Outdated Show resolved Hide resolved
src/rpc/eth/mod.rs Outdated Show resolved Hide resolved
src/rpc/task.rs Outdated Show resolved Hide resolved
src/rpc/task.rs Show resolved Hide resolved
src/rpc/eth/mod.rs Outdated Show resolved Hide resolved
aggregator_address: Address,
user_op: UserOperation,
gas_cap: u64,
) -> anyhow::Result<AggregatorOut>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets move the AggregatorOut definition to this file, since its part of this interface now.

Copy link
Collaborator

@dancoombs dancoombs Aug 24, 2023

Choose a reason for hiding this comment

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

Unless its used in other places where ProviderLike isn't used, in that case we should move it a level above this.

@0xfourzerofour 0xfourzerofour merged commit 4015e4d into main Aug 24, 2023
5 checks passed
@0xfourzerofour 0xfourzerofour deleted the josh/pl-el branch August 24, 2023 21:57
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.

3 participants