-
-
Notifications
You must be signed in to change notification settings - Fork 250
feat: (controllers) stream swap quotes #6760
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
base: main
Are you sure you want to change the base?
Conversation
@metamaskbot publish-preview |
return v; | ||
}) | ||
.catch(() => { | ||
console.error('===onValidQuotesReceived error'); |
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.
Bug: Remove Debugging Logs from Function
The fetchBridgeQuoteStream
function contains several debug console.log
and console.error
statements. These appear to be temporary debugging code and should be removed.
Additional Locations (2)
Caution MetaMask internal reviewing guidelines:
|
@metamaskbot publish-preview |
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
45b6fbd
to
cfbd89b
Compare
cfbd89b
to
f3be855
Compare
1e904bd
to
6ae7634
Compare
6ae7634
to
bcf5a41
Compare
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
@SocketSecurity @microsoft/fetch-event-source@2.0.1 |
Explanation
References
Related to https://github.com/consensys-vertical-apps/va-mmcx-bridge-api/pull/517
Checklist
Note
Introduces server‑sent events quote streaming and integrates incremental quote updates into the bridge controller polling flow.
packages/bridge-controller/src/bridge-controller.ts
):_executePoll
using new#fetchBridgeQuoteStream
, with abort handling, metrics, and state updates.state.quotes
; set loading/fetched/error statuses; maintain refresh stats; stop polling per feature flags.packages/bridge-controller/src/utils/fetch.ts
):fetchBridgeQuoteStream
usingfetchEventSource
(SSE) to streamQuoteResponse
items, validate each message, and invoke handlers (onValidQuotesReceived
,onValidationFailures
,onError
).@microsoft/fetch-event-source
for SSE support; wire new imports.Written by Cursor Bugbot for commit 5f4179b. This will update automatically on new commits. Configure here.