-
Notifications
You must be signed in to change notification settings - Fork 113
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
Conversation
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
denniswon
requested review from
moldy530,
rthomare,
dancoombs,
mokok123 and
avasisht23
as code owners
November 28, 2023 21:03
moldy530
reviewed
Nov 28, 2023
avasisht23
reviewed
Nov 28, 2023
denniswon
force-pushed
the
denniswon/feeoptions
branch
4 times, most recently
from
November 29, 2023 17:40
9048fcb
to
f06f1c5
Compare
denniswon
force-pushed
the
denniswon/userop-overrides-percentage
branch
3 times, most recently
from
November 30, 2023 00:50
5dd80e2
to
05b78a3
Compare
denniswon
force-pushed
the
denniswon/feeoptions
branch
from
November 30, 2023 00:51
f108d0a
to
4f5d49f
Compare
denniswon
force-pushed
the
denniswon/userop-overrides-percentage
branch
from
November 30, 2023 01:51
05b78a3
to
21aa58e
Compare
moldy530
approved these changes
Nov 30, 2023
avasisht23
reviewed
Nov 30, 2023
packages/core/src/provider/base.ts
Outdated
Comment on lines
532
to
535
applyUserOperationOverride( | ||
estimates.callGasLimit, | ||
overrides?.callGasLimit | ||
) || applyFeeOption(estimates.callGasLimit, feeOptions?.callGasLimit); |
There was a problem hiding this comment.
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
avasisht23
approved these changes
Nov 30, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits, lgtm
@avasisht23 accommodated your comment. thank you! |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR-Codex overview
This PR focuses on improving the fee options and overrides functionality in the code.
Detailed summary:
applyFeeOption
toapplyUserOpFeeOption
and added new functionsapplyUserOpOverride
andapplyUserOpOverrideOrFeeOption
.UserOperationOverrides
type to include new fields for overrides and fee options.withFeeDataGetter
method in the provider to handle the new overrides and fee options.