diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-20 11:53:21 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-20 11:53:21 +0100 |
commit | c5906abf106d22cc35b8facdda4313b6125160b9 (patch) | |
tree | c66f888d567f17733e8e7c1882156c83a515e707 /src/types/history.ts | |
parent | a76219b8debfc3f7e932ec9ad996248e431f437e (diff) | |
download | wallet-core-c5906abf106d22cc35b8facdda4313b6125160b9.tar.xz |
verboseDetails for pay and withdraw
Diffstat (limited to 'src/types/history.ts')
-rw-r--r-- | src/types/history.ts | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/types/history.ts b/src/types/history.ts index a0e816148..7acf84dc5 100644 --- a/src/types/history.ts +++ b/src/types/history.ts @@ -23,7 +23,6 @@ import { ReserveTransaction } from "./ReserveTransaction"; import { WithdrawalSource } from "./dbTypes"; import { Timestamp } from "../util/time"; - /** * Type tags for the history event types. */ @@ -466,6 +465,15 @@ export interface HistoryPaymentAbortedEvent { amountLost: string; } +export interface VerbosePayCoinDetails { + coins: + { + value: string, + contribution: string; + denomPub: string; + }[], +} + /** * History event to indicate that a payment has been (re-)submitted * to the merchant. @@ -501,6 +509,8 @@ export interface HistoryPaymentSent { * Session ID that the payment was (re-)submitted under. */ sessionId: string | undefined; + + verboseDetails: VerbosePayCoinDetails; } /** @@ -575,6 +585,13 @@ export interface HistoryRefreshedEvent { refreshGroupId: string; } +export interface VerboseWithdrawDetails { + coins: { + value: string; + denomPub: string; + }[]; +} + /** * A withdrawal has completed. */ @@ -604,6 +621,8 @@ export interface HistoryWithdrawnEvent { * Amount that actually was added to the wallet's balance. */ amountWithdrawnEffective: string; + + verboseDetails: VerboseWithdrawDetails; } /** |