@metamask-previews/ramps-controller 20.0.0-preview-0b5bfc2 → 20.0.0-preview-2db395e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
- - Add `RampsController.provisionMoneyAccount({ address, autoramp })` and `RampsController.setMoneyAccountProvisioningIntent(intent)` (plus the matching messenger actions and the exported `ProvisionMoneyAccountParams` / `ProvisionMoneyAccountResult` types). `provisionMoneyAccount` refreshes KYC status via `KycController:refreshKycStatus`, throws unless the status is `completed`, then registers the Money Account wallet and creates an autoramp. Concurrent and repeat calls for the same address share one run. Setting a non-null intent subscribes to `KycController:statusChanged` and auto-runs the same provision (without a second status refresh) when status becomes `completed`. Hosts that enable this path must also delegate `KycController:refreshKycStatus` (`RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS`) and `KycController:statusChanged` (`RAMPS_CONTROLLER_REQUIRED_CONTROLLER_EVENTS`).
13
- - Export structural KYC messenger types `KycControllerRefreshKycStatusAction`, `KycControllerStatusChangedEvent`, and `KycStatusPayload` so hosts can type those delegations without depending on `@metamask/kyc-controller`.
12
+ - Add `RampsController.provisionMoneyAccount({ address, autoramp })` and `RampsController.setMoneyAccountProvisioningIntent(intent)` (plus the matching messenger actions and the exported `ProvisionMoneyAccountParams` / `ProvisionMoneyAccountResult` types). `provisionMoneyAccount` refreshes KYC status via `KycController:refreshKycStatus`, throws unless the status is `completed`, then registers the Money Account wallet and creates an autoramp. Concurrent and repeat calls for the same address share one run. Setting a non-null intent subscribes to `KycController:statusChanged` and auto-runs the same provision (without a second status refresh) when status becomes `completed`. Hosts that enable this path must also delegate `KycController:refreshKycStatus` (`RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS`) and `KycController:statusChanged` (`RAMPS_CONTROLLER_REQUIRED_CONTROLLER_EVENTS`). ([#9933](https://github.com/MetaMask/core/pull/9933))
13
+ - Export structural KYC messenger types `KycControllerRefreshKycStatusAction`, `KycControllerStatusChangedEvent`, and `KycStatusPayload` so hosts can type those delegations without depending on `@metamask/kyc-controller`. ([#9933](https://github.com/MetaMask/core/pull/9933))
14
14
  - Add `RampsController.createAutoramp(request, options?)` method and the `RampsController:createAutoramp` messenger action (plus the exported `RampsControllerCreateAutorampAction` and `CreateAutorampRequest` types). It resolves the MoonPay `customer_id` from Profile Sync (`AuthenticationController:getSessionProfile`) via `NeoBankService:getCustomerByExternalId`, injects it into the request (overwriting any caller-supplied `customer_id`), forwards the body to `NeoBankService:createAutoramp`, and applies the returned snapshot to local state. Throws when the wallet is not signed in or no MoonPay customer is mapped to the external id. ([#9853](https://github.com/MetaMask/core/pull/9853))
15
15
  - Add the exported `RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS` constant listing the other-controller actions (`KycController:getCustomerIdentity`, `AuthenticationController:getSessionProfile`, `KeyringController:signPersonalMessage`) that hosts must delegate to the `RampsController` messenger to enable autoramp creation and Money Account wallet registration. ([#9853](https://github.com/MetaMask/core/pull/9853), [#9908](https://github.com/MetaMask/core/pull/9908))
16
16
  - Export `KycControllerGetCustomerIdentityAction` so hosts can type the KYC messenger action they delegate onto `RampsController` without depending on `@metamask/kyc-controller`. ([#9908](https://github.com/MetaMask/core/pull/9908))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/ramps-controller",
3
- "version": "20.0.0-preview-0b5bfc2",
3
+ "version": "20.0.0-preview-2db395e",
4
4
  "description": "A controller for managing cryptocurrency on/off ramps functionality",
5
5
  "keywords": [
6
6
  "Ethereum",