diff --git a/packages/api/types.ts b/packages/api/types.ts index 500ba46ebe9f..c19e66d977df 100644 --- a/packages/api/types.ts +++ b/packages/api/types.ts @@ -302,6 +302,8 @@ type TPrivateSocketEndpoints = { | 'PERFORMING_BLOCKCHAIN_TXN' | 'PROCESSING' | 'REJECTED' + | 'REVERTED' + | 'REVERTING' | 'SENT' | 'VERIFIED'; /** diff --git a/packages/cashier/src/constants/transaction-status.tsx b/packages/cashier/src/constants/transaction-status.tsx index 1fd9c54792a1..4ba96ac52d04 100644 --- a/packages/cashier/src/constants/transaction-status.tsx +++ b/packages/cashier/src/constants/transaction-status.tsx @@ -87,6 +87,20 @@ export const getStatus = ( renderer: 'unsuccessful', transaction_hash: localize('NA'), }, + REVERTED: { + name: localize('Unsuccessful'), + description: localize( + "Your withdrawal is unsuccessful. We've sent you an email with more information." + ), + renderer: 'unsuccessful', + transaction_hash: localize('NA'), + }, + REVERTING: { + name: localize('In process'), + description: localize("We're processing your withdrawal."), + renderer: 'in-process', + transaction_hash: formatted_transaction_hash, + }, SENT: { name: localize('Successful'), description: localize('Your withdrawal is successful.'),