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

chore: bridge-api fetchBridgeQuotes util #28027

Merged
merged 8 commits into from
Oct 28, 2024
Merged

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented Oct 22, 2024

Description

Changes

  • Implement the fetchBridgeQuotes util to be used for making requests to the bridge-api getQuotes endpoint
  • Copy in bridge-api types
  • Create test data

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MMS-1448

Manual testing steps

N/A

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@micaelae micaelae marked this pull request as ready for review October 22, 2024 23:21
@micaelae micaelae requested a review from a team as a code owner October 22, 2024 23:21
@metamaskbot
Copy link
Collaborator

Builds ready [7227ebf]
Page Load Metrics (1901 ± 118 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30126871767492236
domContentLoaded164826791873243117
load166626891901245118
domInteractive19213675526
backgroundConnect890282211
firstReactRender44204923617
getState557202110
initialActions00000
loadScripts118821641397225108
setupStore1172332411
uiStartup184828852115262126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.21 KiB (0.05%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@micaelae micaelae requested a review from a team October 23, 2024 01:03
ejwessel
ejwessel previously approved these changes Oct 23, 2024
test/data/bridge/mock-quotes-erc20-erc20.ts Outdated Show resolved Hide resolved
ejwessel
ejwessel previously approved these changes Oct 23, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [0691f81]
Page Load Metrics (1906 ± 114 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21826971814438210
domContentLoaded166426541878235113
load167326891906238114
domInteractive26142502613
backgroundConnect773292110
firstReactRender46215984421
getState45212147
initialActions01000
loadScripts11231744135915474
setupStore1189362612
uiStartup187529232129253121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.21 KiB (0.05%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@micaelae micaelae requested a review from a team October 23, 2024 23:27
ui/pages/bridge/bridge.util.ts Outdated Show resolved Hide resolved
ui/pages/bridge/bridge.util.ts Outdated Show resolved Hide resolved
ui/pages/bridge/types.ts Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [2961691]
Page Load Metrics (1887 ± 72 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint52920631788300144
domContentLoaded16852375185314569
load17202426188715072
domInteractive17148523416
backgroundConnect870362110
firstReactRender48115922210
getState45813157
initialActions01000
loadScripts12341945138414871
setupStore1168252010
uiStartup19252594207914771
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.87 KiB (0.09%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [27299ad]
Page Load Metrics (1932 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44821791782446214
domContentLoaded16792164190411354
load16932183193211957
domInteractive228548178
backgroundConnect980302311
firstReactRender522961094622
getState561232210
initialActions01000
loadScripts1206162014069948
setupStore1199322713
uiStartup18972675218117684
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.87 KiB (0.09%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@micaelae micaelae added this pull request to the merge queue Oct 28, 2024
Merged via the queue into develop with commit 6343b34 Oct 28, 2024
76 checks passed
@micaelae micaelae deleted the mb891-1-fetch-quotes-util branch October 28, 2024 20:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2024
@metamaskbot metamaskbot added the release-12.7.0 Issue or pull request that will be included in release 12.7.0 label Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.7.0 Issue or pull request that will be included in release 12.7.0 team-bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants