[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: introduce balance-change notification
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: introduce balance-change notification |
Date: |
Mon, 26 Jun 2023 12:48:25 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 66432cdd0588836000a8114e360aea537713712c
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Jun 26 10:52:50 2023 +0200
introduce balance-change notification
---
packages/taler-util/src/notifications.ts | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/packages/taler-util/src/notifications.ts
b/packages/taler-util/src/notifications.ts
index 37848e40f..ed26c6ae7 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -26,7 +26,7 @@ import { TransactionState } from "./transactions-types.js";
import { TalerErrorDetail } from "./wallet-types.js";
export enum NotificationType {
- CoinWithdrawn = "coin-withdrawn",
+ BalanceChange = "balance-change",
ExchangeOperationError = "exchange-operation-error",
ExchangeAdded = "exchange-added",
BackupOperationError = "backup-error",
@@ -48,16 +48,14 @@ export interface TransactionStateTransitionNotification {
errorInfo?: ErrorInfoSummary;
}
-export interface CoinWithdrawnNotification {
- type: NotificationType.CoinWithdrawn;
- numWithdrawn: number;
- numTotal: number;
-}
-
export interface ExchangeAddedNotification {
type: NotificationType.ExchangeAdded;
}
+export interface BalanceChangeNotification {
+ type: NotificationType.BalanceChange;
+}
+
export interface ExchangeOperationErrorNotification {
type: NotificationType.ExchangeOperationError;
error: TalerErrorDetail;
@@ -76,9 +74,9 @@ export interface PendingOperationProcessedNotification {
export type WalletNotification =
+ | BalanceChangeNotification
| BackupOperationErrorNotification
| ExchangeAddedNotification
| ExchangeOperationErrorNotification
- | CoinWithdrawnNotification
| PendingOperationProcessedNotification
| TransactionStateTransitionNotification;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.