Skip to content

chore: Update RampsController to expose all methods through messenger#8221

Merged
Mrtenz merged 5 commits into
mainfrom
mrtenz/ramps-method-actions
Mar 19, 2026
Merged

chore: Update RampsController to expose all methods through messenger#8221
Mrtenz merged 5 commits into
mainfrom
mrtenz/ramps-method-actions

Conversation

@Mrtenz

@Mrtenz Mrtenz commented Mar 17, 2026

Copy link
Copy Markdown
Member

Explanation

This updates the RampsController to expose all methods through the messenger in a standardised way.

References

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 communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Mostly additive, type-only changes plus changelog updates; low risk aside from potential downstream TypeScript type/export or build issues if consumers rely on these new action types.

Overview
Adds a new auto-generated RampsController messenger action type surface. Introduces RampsController-method-action-types.ts, defining action types (and a RampsControllerMethodActions union) that map RampsController:* action names to their corresponding RampsController method handlers, including Transak-specific methods.

Updates the ramps-controller changelog to document that all public RampsController methods are now exposed via the messenger and that the corresponding action types are exported.

Written by Cursor Bugbot for commit 26c306d. This will update automatically on new commits. Configure here.

@Mrtenz Mrtenz marked this pull request as ready for review March 17, 2026 12:50
@Mrtenz Mrtenz requested review from a team as code owners March 17, 2026 12:50

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread packages/ramps-controller/CHANGELOG.md Outdated
mcmire
mcmire previously approved these changes Mar 17, 2026

@mcmire mcmire left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment thread packages/ramps-controller/CHANGELOG.md
@mcmire mcmire dismissed their stale review March 17, 2026 21:11

(Noticed one more thing above)

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
@Mrtenz Mrtenz added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit 835475a Mar 19, 2026
322 checks passed
@Mrtenz Mrtenz deleted the mrtenz/ramps-method-actions branch March 19, 2026 14:45
@imyugioh imyugioh mentioned this pull request Mar 20, 2026
4 tasks
github-merge-queue Bot pushed a commit that referenced this pull request Mar 20, 2026
## Explanation

This PR cuts **monorepo release `875.0.0`** and publishes a new
**`@metamask/ramps-controller`** version so consumers can pick up ramps
work that is already on `main` but was **not** included in the previous
npm publish train.

**Current state**

- `main` includes ramps updates (notably messenger exposure and
`getOrder` wallet/query handling), documented under **Unreleased** in
`packages/ramps-controller/CHANGELOG.md`.
- Without a release, clients stay on the last published
`@metamask/ramps-controller` and do not get those fixes/features from
the registry.

**What this change does**

- Bumps the monorepo root version to **`875.0.0`** (release branch
convention).
- Releases **`@metamask/ramps-controller@12.0.1`**, with changelog
entries moved from **Unreleased** into **`[12.0.1]`** per [Keep a
Changelog](https://keepachangelog.com/).
- **Added:** public `RampsController` methods exposed via the messenger
([#8221](#8221)).
- **Fixed:** `getOrder` wallet handling so requests and
`orderStatusChanged` payloads stay consistent
([#8251](#8251)).

**Note for reviewers**

- If this branch also bumps **other** workspace packages (lockfile /
dependents), that is to satisfy release tooling and dependency
constraints for anything else selected for **875**—not arbitrary scope
creep.

---

## References

- Ramps fixes / API surface:
[#8221](#8221),
[#8251](#8251)
- Internal tracking (if applicable): **TRAM-3349**
- Changelog guidelines: [updating
changelogs](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- Consumer follow-up: bump `@metamask/ramps-controller` in **MetaMask
mobile/extension** (and any other consumers) after this version is on
npm

---

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
_(N/A — release-only if no code changes on this branch)_
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate _(N/A unless this PR adds docs)_
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them _(unchecked — **patch** release; no
breaking changes expected)_

---


<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Low Risk**
> Low risk release-only change: version bumps and changelog/link updates
with no functional code modifications.
> 
> **Overview**
> Cuts the monorepo release by bumping the root version to `875.0.0`.
> 
> Publishes a patch release of `@metamask/ramps-controller` (`12.0.1`)
by bumping its package version and moving the existing *Unreleased*
changelog entries into a new `12.0.1` section, updating the compare
links accordingly.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5b33da9. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

4 participants