Skip to content

Commit c6a9f87

Browse files
chore(runway): cherry-pick chore(deps): ramps-controller preview for MetaMask/core#8251 -> cp-7.71.0 (#27823)
- chore(deps): ramps-controller preview for MetaMask/core#8251 -> cp-7.71.0 (#27709) ## **Description** Integration PR to validate **MetaMask/core** changes in mobile CI/E2E by resolving `@metamask/ramps-controller` from a **preview** npm package (`previewBuilds` in `package.json` + updated `yarn.lock`). No application code changes. **Core PR:** MetaMask/core#8251 After core merges and a **released** version is published, this PR should be updated to remove `previewBuilds` and bump `dependencies` to the real version before merge. ## **Changelog** CHANGELOG entry: null ## **Related issues** Fixes: N/A (validation / dependency preview only) ## **Manual testing steps** ```gherkin Feature: ramps-controller preview validation Scenario: app resolves preview package Given a clean install from this branch When the app bundles and runs Then @metamask/ramps-controller resolves to the preview version from previewBuilds Scenario: ramps flows still work Given the app is built from this branch When user exercises on-ramp flows that use ramps-controller Then no regressions vs main (same UX; underlying package is preview) ``` ## **Screenshots/Recordings** N/A — dependency-only change. ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [ ] I've included tests if applicable - [ ] I've documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [x] 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. --- <!-- Optional: paste below into GitHub if you use Cursor Bugbot summary --> > [!NOTE] > **Low Risk** > Low risk because this is a dependency source/version switch for `@metamask/ramps-controller` with no application code changes; main risk is behavior changes introduced by the preview package at runtime. > > **Overview** > Switches `@metamask/ramps-controller` to a **preview build** via `previewBuilds` in `package.json` and `yarn.lock` (e.g. `@metamask-previews/ramps-controller@12.0.0-preview-434bd0c`). Update the preview version string if the bot publishes a newer build for core#8251. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk patch-level dependency update; main risk is any runtime behavior changes in `@metamask/ramps-controller` affecting ramp flows, plus potential test fixture mismatches if state shape changes again. > > **Overview** > Updates `@metamask/ramps-controller` from `12.0.0` to `12.0.1` (including lockfile resolution changes). > > Aligns the default E2E/unit fixture (`default-fixture.json`) with the newer `RampsController` state shape by adding persisted sub-state for countries, providers/payment methods/tokens, native provider (Transak) auth/kyc/user details, requests, and orders. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0b2fc2f. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> [4a4f0ae](4a4f0ae) Co-authored-by: Yu-Gi-Oh! <54774811+imyugioh@users.noreply.github.com>
1 parent 8d1b7c0 commit c6a9f87

3 files changed

Lines changed: 55 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
"@metamask/preinstalled-example-snap": "^0.7.2",
278278
"@metamask/profile-metrics-controller": "^3.1.0",
279279
"@metamask/profile-sync-controller": "^28.0.0",
280-
"@metamask/ramps-controller": "^12.0.0",
280+
"@metamask/ramps-controller": "^12.0.1",
281281
"@metamask/react-native-acm": "1.2.0",
282282
"@metamask/react-native-actionsheet": "2.4.2",
283283
"@metamask/react-native-button": "^3.0.0",

tests/framework/fixtures/json/default-fixture.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,55 @@
480480
"useTransactionSimulations": true
481481
},
482482
"RampsController": {
483+
"countries": {
484+
"data": [],
485+
"error": null,
486+
"isLoading": false,
487+
"selected": null
488+
},
489+
"nativeProviders": {
490+
"transak": {
491+
"buyQuote": {
492+
"data": null,
493+
"error": null,
494+
"isLoading": false,
495+
"selected": null
496+
},
497+
"isAuthenticated": false,
498+
"kycRequirement": {
499+
"data": null,
500+
"error": null,
501+
"isLoading": false,
502+
"selected": null
503+
},
504+
"userDetails": {
505+
"data": null,
506+
"error": null,
507+
"isLoading": false,
508+
"selected": null
509+
}
510+
}
511+
},
512+
"orders": [],
513+
"paymentMethods": {
514+
"data": [],
515+
"error": null,
516+
"isLoading": false,
517+
"selected": null
518+
},
519+
"providers": {
520+
"data": [],
521+
"error": null,
522+
"isLoading": false,
523+
"selected": null
524+
},
525+
"requests": {},
526+
"tokens": {
527+
"data": null,
528+
"error": null,
529+
"isLoading": false,
530+
"selected": null
531+
},
483532
"userRegion": null
484533
},
485534
"RemoteFeatureFlagController": {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9387,14 +9387,14 @@ __metadata:
93879387
languageName: node
93889388
linkType: hard
93899389

9390-
"@metamask/ramps-controller@npm:^12.0.0":
9391-
version: 12.0.0
9392-
resolution: "@metamask/ramps-controller@npm:12.0.0"
9390+
"@metamask/ramps-controller@npm:^12.0.1":
9391+
version: 12.0.1
9392+
resolution: "@metamask/ramps-controller@npm:12.0.1"
93939393
dependencies:
93949394
"@metamask/base-controller": "npm:^9.0.0"
93959395
"@metamask/controller-utils": "npm:^11.19.0"
93969396
"@metamask/messenger": "npm:^0.3.0"
9397-
checksum: 10/fb22bbab95045b7c5d80d3fb24bd41b831e0516733cdf1a0159514cbd8b0aededd599818adecfbc86802299095a223251733c271a8d0b6db2d88b25c971da1ed
9397+
checksum: 10/a7f9428cb824bd0175ee1cc603d77c650fa7a23c7183e2cc0a0f21ee9b6378d80bbd1e496654e40d2edcfc840e60dd4a09d80feacb1746087a67b66761e1e6c7
93989398
languageName: node
93999399
linkType: hard
94009400

@@ -35597,7 +35597,7 @@ __metadata:
3559735597
"@metamask/profile-metrics-controller": "npm:^3.1.0"
3559835598
"@metamask/profile-sync-controller": "npm:^28.0.0"
3559935599
"@metamask/providers": "npm:^18.3.1"
35600-
"@metamask/ramps-controller": "npm:^12.0.0"
35600+
"@metamask/ramps-controller": "npm:^12.0.1"
3560135601
"@metamask/react-native-acm": "npm:1.2.0"
3560235602
"@metamask/react-native-actionsheet": "npm:2.4.2"
3560335603
"@metamask/react-native-button": "npm:^3.0.0"

0 commit comments

Comments
 (0)