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: support one-off percentage overrides for user operations #289

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

denniswon
Copy link
Contributor

@denniswon denniswon commented Nov 28, 2023

PR-Codex overview

This PR focuses on improving the fee options and overrides functionality in the code.

Detailed summary:

  • Renamed applyFeeOption to applyUserOpFeeOption and added new functions applyUserOpOverride and applyUserOpOverrideOrFeeOption.
  • Updated the UserOperationOverrides type to include new fields for overrides and fee options.
  • Updated the withFeeDataGetter method in the provider to handle the new overrides and fee options.
  • Updated the gas manager middleware to use the new functions for applying overrides and fee options.
  • Updated the gas fees middleware to use the new functions for applying overrides and fee options.
  • Updated the base provider to use the new functions for applying overrides and fee options.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@denniswon denniswon force-pushed the denniswon/feeoptions branch 4 times, most recently from 9048fcb to f06f1c5 Compare November 29, 2023 17:40
@denniswon denniswon force-pushed the denniswon/userop-overrides-percentage branch 3 times, most recently from 5dd80e2 to 05b78a3 Compare November 30, 2023 00:50
Base automatically changed from denniswon/feeoptions to development November 30, 2023 01:43
@denniswon denniswon force-pushed the denniswon/userop-overrides-percentage branch from 05b78a3 to 21aa58e Compare November 30, 2023 01:51
Comment on lines 532 to 535
applyUserOperationOverride(
estimates.callGasLimit,
overrides?.callGasLimit
) || applyFeeOption(estimates.callGasLimit, feeOptions?.callGasLimit);
Copy link
Contributor

Choose a reason for hiding this comment

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

can you wrap this in a util? seems repeated below but generalizable on input

Copy link
Contributor

@avasisht23 avasisht23 left a comment

Choose a reason for hiding this comment

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

nits, lgtm

@denniswon
Copy link
Contributor Author

@avasisht23 accommodated your comment. thank you!

@denniswon denniswon merged commit 225b7c3 into development Dec 1, 2023
3 checks passed
@denniswon denniswon deleted the denniswon/userop-overrides-percentage branch December 1, 2023 00:10
@moldy530 moldy530 mentioned this pull request Dec 1, 2023
8 tasks
moldy530 pushed a commit that referenced this pull request Dec 1, 2023
* feat: support one-off percentage overrides for user operations

* feat: apply user op override or fee option utils in aa-core
moldy530 pushed a commit that referenced this pull request Dec 1, 2023
* feat: support one-off percentage overrides for user operations

* feat: apply user op override or fee option utils in aa-core
avasisht23 pushed a commit that referenced this pull request Dec 3, 2023
* feat: support one-off percentage overrides for user operations

* feat: apply user op override or fee option utils in aa-core
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