summaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-16 21:10:57 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-16 21:10:57 +0100
commitfb6508de9d71600dbca59cb0e6a4c77e4f3f3ee5 (patch)
tree8f1e9e50574ee6d9f561cb93d2ea29663943672d /src/types
parentc2ee8fd9ab6754275d7423152681236a46cf36a9 (diff)
downloadwallet-core-fb6508de9d71600dbca59cb0e6a4c77e4f3f3ee5.tar.gz
wallet-core-fb6508de9d71600dbca59cb0e6a4c77e4f3f3ee5.tar.bz2
wallet-core-fb6508de9d71600dbca59cb0e6a4c77e4f3f3ee5.zip
finish refresh correctly, display fees correctly
Diffstat (limited to 'src/types')
-rw-r--r--src/types/history.ts10
-rw-r--r--src/types/notifications.ts7
-rw-r--r--src/types/pending.ts2
3 files changed, 17 insertions, 2 deletions
diff --git a/src/types/history.ts b/src/types/history.ts
index 8b46276be..aa35ab962 100644
--- a/src/types/history.ts
+++ b/src/types/history.ts
@@ -486,6 +486,16 @@ export interface HistoryPaymentSent {
replay: boolean;
/**
+ * Number of coins that were involved in the payment.
+ */
+ numCoins: number;
+
+ /**
+ * Amount that was paid, including deposit and wire fees.
+ */
+ amountPaidWithFees: string;
+
+ /**
* Session ID that the payment was (re-)submitted under.
*/
sessionId: string | undefined;
diff --git a/src/types/notifications.ts b/src/types/notifications.ts
index c64d33bfb..30ede151c 100644
--- a/src/types/notifications.ts
+++ b/src/types/notifications.ts
@@ -1,3 +1,5 @@
+import { OperationError } from "./walletTypes";
+
/*
This file is part of GNU Taler
(C) 2019 GNUnet e.V.
@@ -29,7 +31,7 @@ export const enum NotificationType {
RefreshRevealed = "refresh-revealed",
RefreshMelted = "refresh-melted",
RefreshStarted = "refresh-started",
- RefreshRefused = "refresh-refused",
+ RefreshUnwarranted = "refresh-unwarranted",
ReserveUpdated = "reserve-updated",
ReserveConfirmed = "reserve-confirmed",
ReserveDepleted = "reserve-depleted",
@@ -100,7 +102,7 @@ export interface RefreshStartedNotification {
}
export interface RefreshRefusedNotification {
- type: NotificationType.RefreshRefused;
+ type: NotificationType.RefreshUnwarranted;
}
export interface ReserveUpdatedNotification {
@@ -170,6 +172,7 @@ export interface WithdrawOperationErrorNotification {
export interface ReserveOperationErrorNotification {
type: NotificationType.ReserveOperationError;
+ operationError: OperationError;
}
export interface ReserveCreatedNotification {
diff --git a/src/types/pending.ts b/src/types/pending.ts
index 53932e8f3..efb97f536 100644
--- a/src/types/pending.ts
+++ b/src/types/pending.ts
@@ -87,6 +87,8 @@ export interface PendingRefreshOperation {
type: PendingOperationType.Refresh;
lastError?: OperationError;
refreshGroupId: string;
+ finishedPerCoin: boolean[];
+ retryInfo: RetryInfo;
}
export interface PendingProposalDownloadOperation {