Skip to content

Remove use of ethgasstation; use metaswap /gasPrices api for gas price estimates#9867

Merged
danjm merged 9 commits intodevelopfrom
replace-ethgasstation
Dec 2, 2020
Merged

Remove use of ethgasstation; use metaswap /gasPrices api for gas price estimates#9867
danjm merged 9 commits intodevelopfrom
replace-ethgasstation

Conversation

@danjm
Copy link
Copy Markdown
Contributor

@danjm danjm commented Nov 13, 2020

This PR removes our reliance on ethgasstation in favour of the metaswap /gasPrices api.

For now, to make this change, we have to remove our time estimate functionality. Most of the PR is deletion of code.

@danjm danjm requested a review from a team as a code owner November 13, 2020 10:16
@danjm danjm requested a review from rekmarks November 13, 2020 10:16
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@danjm danjm force-pushed the replace-ethgasstation branch from 253fef0 to 9d45175 Compare November 13, 2020 11:19
@danjm danjm closed this Nov 13, 2020
@danjm danjm force-pushed the replace-ethgasstation branch from 9d45175 to 67303b7 Compare November 13, 2020 11:41
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2020
@danjm danjm reopened this Nov 13, 2020
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ccb3c62]
Page Load Metrics (618 ± 116 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaintNaNNaNNaNNaNNaN
domContentLoaded3001134615241116
load3021141618242116
domInteractive3001134615241116

@kumavis
Copy link
Copy Markdown
Member

kumavis commented Nov 13, 2020

sad to see the price/time chart gone
glad to see quick fix for gas pricing

@MetaMask MetaMask unlocked this conversation Nov 13, 2020
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

Great job getting this in. I left a handful of inline comments.

I agree that getting rid of the chart and times is worth it to get this feature in, and the reason we have to do that is because the MetaSwap API doesn't have time estimates yet?

Edit: Left one question here, too: #9867 (comment)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [8ab0573]
Page Load Metrics (372 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30463742
domContentLoaded25659537011254
load25859737211254
domInteractive25659437011254

@rekmarks
Copy link
Copy Markdown
Member

For future reference: #9870

rekmarks
rekmarks previously approved these changes Nov 13, 2020
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b185603]
Page Load Metrics (319 ± 24 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30523863
domContentLoaded2594373175024
load2604383195024
domInteractive2594373175024

@Gudahtt
Copy link
Copy Markdown
Member

Gudahtt commented Nov 13, 2020

The gas price chart appears to now be unused, but it hasn't been deleted

@danjm
Copy link
Copy Markdown
Contributor Author

danjm commented Nov 13, 2020

@Gudahtt The gas price chart was deleted in 106a631

brad-decker
brad-decker previously approved these changes Nov 13, 2020
Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM. So long time estimates 👋 😢

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [26ce08c]
Page Load Metrics (371 ± 56 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28403342
domContentLoaded23958736911656
load24058937111656
domInteractive23858736911656

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [394f93b]
Page Load Metrics (325 ± 35 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29413631
domContentLoaded2605793237335
load2625803257335
domInteractive2605793237335

@danjm
Copy link
Copy Markdown
Contributor Author

danjm commented Nov 23, 2020

@Gudahtt I believe I have addressed all your latest comments, and removed other code as well, in the latest commit

@danjm danjm force-pushed the replace-ethgasstation branch from 0064827 to d2c5c52 Compare November 23, 2020 15:08
@Gudahtt
Copy link
Copy Markdown
Member

Gudahtt commented Nov 23, 2020

The d3/c3 removal requires build script changes, as they are explicitly pulled into a ui-libs bundle.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [cfa2657]
Page Load Metrics (385 ± 61 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint308144157
domContentLoaded25872938412861
load25973138512861
domInteractive25872938312861

@danjm danjm force-pushed the replace-ethgasstation branch from cfa2657 to 60b820f Compare November 25, 2020 14:39
@danjm danjm requested a review from kumavis as a code owner November 25, 2020 14:39
@danjm
Copy link
Copy Markdown
Contributor Author

danjm commented Nov 25, 2020

@Gudahtt this should be good to go now

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [60b820f]
Page Load Metrics (359 ± 44 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint297550168
domContentLoaded2655043589244
load2665063599244
domInteractive2645043589244

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM, but needs a rebase to resolve the lockfile conflict

@danjm danjm force-pushed the replace-ethgasstation branch from 60b820f to 3ad445a Compare December 2, 2020 16:53
@danjm
Copy link
Copy Markdown
Contributor Author

danjm commented Dec 2, 2020

@Gudahtt this has been rebased

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3ad445a]
Page Load Metrics (388 ± 38 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint308453199
domContentLoaded2905503868039
load2925513888038
domInteractive2905503868039

@danjm danjm merged commit 97d268c into develop Dec 2, 2020
@danjm danjm deleted the replace-ethgasstation branch December 2, 2020 23:25
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants