aboutsummaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-27 23:37:02 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-27 23:37:02 +0530
commit131d2b34d9d1f84782d749c9943a7da5ab9dab8a (patch)
tree7fd4a00cddd65c917623baa9a1362413b18f202c /src/types
parent1c747ae004fcaa947a62cd23b77857161f7ff03e (diff)
downloadwallet-core-131d2b34d9d1f84782d749c9943a7da5ab9dab8a.tar.xz
generate cleaner history for recoup
Diffstat (limited to 'src/types')
-rw-r--r--src/types/dbTypes.ts11
-rw-r--r--src/types/history.ts1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts
index c8c4ed617..5a0a653ee 100644
--- a/src/types/dbTypes.ts
+++ b/src/types/dbTypes.ts
@@ -1397,9 +1397,20 @@ export interface RecoupGroupRecord {
*/
recoupFinishedPerCoin: boolean[];
+ /**
+ * We store old amount (i.e. before recoup) of recouped coins here,
+ * as the balance of a recouped coin is set to zero when the
+ * recoup group is created.
+ */
oldAmountPerCoin: AmountJson[];
/**
+ * Public keys of coins that should be scheduled for refreshing
+ * after all individual recoups are done.
+ */
+ scheduleRefreshCoins: string[];
+
+ /**
* Retry info.
*/
retryInfo: RetryInfo;
diff --git a/src/types/history.ts b/src/types/history.ts
index f4a1d0631..b1ac0ef9d 100644
--- a/src/types/history.ts
+++ b/src/types/history.ts
@@ -349,6 +349,7 @@ export interface HistoryFundsDepositedToSelfEvent {
*/
export interface HistoryFundsRecoupedEvent {
type: HistoryEventType.FundsRecouped;
+ numCoinsRecouped: number;
}
/**