Skip to content

feat(wallet): add opt-in ramps initialization configs#9290

Open
georgeweiler wants to merge 6 commits into
mainfrom
feat/wallet-ramps-init
Open

feat(wallet): add opt-in ramps initialization configs#9290
georgeweiler wants to merge 6 commits into
mainfrom
feat/wallet-ramps-init

Conversation

@georgeweiler

Copy link
Copy Markdown
Contributor

Summary

  • Add opt-in @metamask/wallet initialization configs for RampsService, RampsController, and TransakService under @metamask/wallet/initialization/instances/ramps.
  • Bump @metamask/wallet to 4.1.0 and add @metamask/ramps-controller as a dependency.
  • Include unit tests for all three configs; no changes to the @metamask/ramps-controller package itself.

Test plan

  • yarn workspace @metamask/wallet run jest --no-coverage --testPathPattern=ramps --watchman=false
  • yarn workspace @metamask/wallet run build

Made with Cursor

@georgeweiler georgeweiler requested a review from a team as a code owner June 26, 2026 18:32
Export RampsService, RampsController, and TransakService wallet init configurations for clients that opt in, bumping @metamask/wallet to 4.1.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
@georgeweiler georgeweiler force-pushed the feat/wallet-ramps-init branch from ff63aca to 5ad0e0f Compare June 27, 2026 10:48
@socket-security

socket-security Bot commented Jun 27, 2026

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

George Weiler and others added 2 commits June 27, 2026 05:05
- Remove rampsController/rampsService/transakService slots from
  InstanceSpecificOptions — opt-in configs are self-contained and
  should not leak into the default options surface
- Use indexed access into RampsControllerOptions for requestCacheTTL
  and requestCacheMaxSize to stay coupled to the upstream type
- Document AuthenticationController:getBearerToken prerequisite on
  the rampsService export so consumers know what must be registered
- Replace client-specific context strings ('extension', 'mobile-ios')
  with 'test' in unit tests
- Add ramps instance directory to CODEOWNERS under money-movement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Restore rampsController/rampsService/transakService slots in
  InstanceSpecificOptions — the InitializationConfiguration type
  derives options typing from this map, removing them makes options
  unknown throughout all three init functions
- Add type casts (as never) for parent and actions in ramps messenger
  construction — ramps messenger types require parent actions
  (RampsService:*, TransakService:*, AuthenticationController:getBearerToken)
  not present in DefaultActions, since these are opt-in configs
- Bump @metamask/ramps-controller dep from ^14.3.0 to ^15.0.0 to
  satisfy yarn constraints
- Bump @metamask/wallet dep in wallet-cli from ^5.0.0 to ^5.1.0
- Bump root monorepo version from 1077.0.0 to 1078.0.0
- Add [5.1.0] CHANGELOG section with footer links

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@georgeweiler georgeweiler requested a review from a team as a code owner June 27, 2026 11:23
George Weiler and others added 3 commits June 27, 2026 05:29
- Run readme-content:update to regenerate dependency graph after
  adding @metamask/ramps-controller to wallet's dependencies
- Add PR link and dep bump entry to wallet [5.1.0] changelog section
- Update wallet-cli changelog to reflect @metamask/wallet ^5.1.0 bump

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The test files are nested at ramps/<name>/ so the path to
initialization/defaults.ts is ../../../defaults, not ../../defaults.
Fixes lint:dependencies unresolved import failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant