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

feat: bridge controller #5276

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open

feat: bridge controller #5276

wants to merge 48 commits into from

Conversation

infiniteflower
Copy link
Contributor

@infiniteflower infiniteflower commented Feb 4, 2025

Explanation

This PR adds a new controller: BridgeController.

This controller handles the quote fetching and polling from the Bridge API.

References

This is a port of the BridgeController from Extension: https://github.com/MetaMask/metamask-extension/tree/main/app/scripts/controllers/bridge

Some minor changes were needed to fill in the missing functions and variables from Extension.

This package will be consumed initially by the Metamask Mobile application first. Eventually, we wish to migrate the Extension to use this core/bridge-controller package.

Changelog

@metamask/bridge-controller

  • : New BridgeController!

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@infiniteflower infiniteflower marked this pull request as ready for review February 5, 2025 20:48
Copy link

socket-security bot commented Feb 5, 2025

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@infiniteflower
Copy link
Contributor Author

@SocketSecurity ignore npm/[email protected]

Was Introduced by @metamask/[email protected]

@infiniteflower infiniteflower requested a review from a team February 6, 2025 21:41
@infiniteflower infiniteflower changed the title chore: WIP bridge controller, most tests passing feat: bridge controller Feb 6, 2025
micaelae
micaelae previously approved these changes Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants