Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreNotificationsclassifyNotification

classifyNotification

Classify a raw action_status into a NotificationType. Unknown or missing statuses are treated as NotificationType.FAILED.

import { classifyNotification } from "@symmio/trading-core"; classifyNotification("success"); // NotificationType.SUCCESS classifyNotification("seen"); // NotificationType.SEEN classifyNotification(null); // NotificationType.FAILED

Parameters

actionStatusstring | nullrequired

The raw action_status field from the wire frame.

Returns

The classification. Unknown or missing statuses map to FAILED.

Last updated on