feat: retrieve layer 1 gas fee from transaction controller#23521
Merged
matthewwalsh0 merged 40 commits intodevelopfrom Apr 15, 2024
Merged
feat: retrieve layer 1 gas fee from transaction controller#23521matthewwalsh0 merged 40 commits intodevelopfrom
matthewwalsh0 merged 40 commits intodevelopfrom
Conversation
13 tasks
9223ee2 to
2c89128
Compare
layer1GasFeelayer1GasFee
layer1GasFeelayer1GasFee
Member
Author
|
@metamaskbot update-policies |
Collaborator
|
Policies updated |
Contributor
1591ae9 to
38967d6
Compare
Update calls to getLayer1GasFee to use request object. Remove unnecessary simulation logic.
layer1GasFee
Member
|
@metamaskbot update-policies |
Collaborator
|
Policies updated |
matthewwalsh0
previously approved these changes
Apr 12, 2024
Collaborator
Builds ready [449f256]
Page Load Metrics (1319 ± 529 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
cryptotavares
approved these changes
Apr 12, 2024
cryptotavares
previously approved these changes
Apr 12, 2024
Contributor
|
why do we still need the |
Member
That's exactly the plan in a pending branch as it requires alot of additional changes also and test updates etc. |
Contributor
50e0dcc
Member
|
@metamaskbot update-policies |
Collaborator
|
Policies updated |
matthewwalsh0
approved these changes
Apr 15, 2024
Collaborator
Builds ready [27b8937]
Page Load Metrics (1131 ± 690 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
vinistevam
approved these changes
Apr 15, 2024
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.




Description
This PR is aiming to implement
OptimismLayer1GasFeeFlowas a first use oftransactionMeta.layer1GasFee. Hence it contains removal offetchEstimatedL1Feefunction and it's helper functions.New
transaction-controllerversion also includes agetLayer1GasFeefunction which could be used to obtainlayer1GasFeeValuefor un-existing transactions. This is being used in swaps controller.Optimism Layer 1 Gas Fee Flow PR in core: MetaMask/core#4055
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/1945
Manual testing steps
This PR should not affect existing gas component that shows
Layer1GasFeeamount which appear on send flow, confirmation page & swaps. Hence manually testing any transaction onOptimismwill work fine.Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist