Skip to main content

RampsController Events

3 events registered.

NameDeprecated
autorampStatusChanged
orderStatusChanged
stateChange

RampsController:autorampStatusChanged​

Package: @metamask/ramps-controller

Published when an autoramp's last-seen status changes after refresh or push. Every transition is published so analytics can observe the full lifecycle; shouldNotify distinguishes the subset the UI should surface to the user.

Payload signature:

[
{
autoramp: AutorampAccount;
previousStatus: AutorampAccount['status'];
shouldNotify: boolean;
}
]

RampsController:orderStatusChanged​

Package: @metamask/ramps-controller

Published when a V2 order's status transitions. Consumed by mobile's init layer for notifications and analytics.

Payload signature:

[{
order: RampsOrder;
previousStatus: RampsOrderStatus;
}]

RampsController:stateChange​

Package: @metamask/ramps-controller

Published when the state of RampsController changes.

Payload signature:

[RampsControllerState, Patch[]]