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: contract based binary search for call gas limit estimate #214

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

nikhilkumar1612
Copy link

Description

  • Added new contract type (CallGasEstimationProxy)
  • Call gas limit is now calculated using contract binary search.
  • changes to simulateHandleOps() to get call gas limit in targetData.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Further comments (optional)

  • Changes are added to simulate handleops.
  • What are the values to be used for EstimateCallGasArgs

Copy link
Member

@ch4r10t33r ch4r10t33r left a comment

Choose a reason for hiding this comment

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

Thanks for submitting the PR @nikhilkumar1612 . I have a couple of minor comments.

Please wait for @0xSulpiride to complete his review and then address all of the comments together.

packages/executor/src/modules/eth.ts Outdated Show resolved Hide resolved
@ch4r10t33r ch4r10t33r changed the title enhancement: contract based binary search for call gas limit estimate feat: contract based binary search for call gas limit estimate Jul 7, 2024
@ch4r10t33r
Copy link
Member

@nikhilkumar1612 Please update package.json to reflect the latest version number.

Copy link
Member

@0xSulpiride 0xSulpiride left a comment

Choose a reason for hiding this comment

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

Hey @nikhilkumar1612 great job 🚀 I just have some comments.

Also how has this been tested? I'd suggest that you do some testing on sepolia testnet

And pls set up eslint in your IDE

packages/executor/src/modules/eth.ts Outdated Show resolved Hide resolved
Copy link
Member

@0xSulpiride 0xSulpiride left a comment

Choose a reason for hiding this comment

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

@nikhilkumar1612 great job 🚀

I'll merge it and will update the version

@0xSulpiride 0xSulpiride changed the base branch from develop to issue-211 July 16, 2024 14:49
@0xSulpiride 0xSulpiride merged commit a63e760 into etherspot:issue-211 Jul 16, 2024
3 checks passed
0xSulpiride added a commit that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants