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 status controller #5317

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

Conversation

infiniteflower
Copy link
Contributor

@infiniteflower infiniteflower commented Feb 12, 2025

Explanation

This PR adds a new controller: BridgeStatusController.

This controller handles the bridge transaction status fetching and polling from the Bridge API.

References

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

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-status-controller package.

Very closely related to the BridgeController: #5276

Changelog

@metamask/bridge-status-controller

  • : New BridgeStatusController!

@metamask/bridge-controller

  • : BridgeController FeeType enum now exported as an enum, not just a type

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 force-pushed the feat/bridge-status-controller branch from 095dd8d to 618d362 Compare February 13, 2025 21:42
Base automatically changed from feat/bridge-controller to main February 13, 2025 22:28
@infiniteflower infiniteflower force-pushed the feat/bridge-status-controller branch from 618d362 to 027eb7a Compare February 13, 2025 22:29
@infiniteflower infiniteflower force-pushed the feat/bridge-status-controller branch from 027eb7a to ccabffd Compare February 13, 2025 22:36
@infiniteflower infiniteflower marked this pull request as ready for review February 13, 2025 22:37
@infiniteflower infiniteflower requested a review from a team as a code owner February 13, 2025 22:37
@infiniteflower infiniteflower requested a review from a team as a code owner February 13, 2025 22:43
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