From fb5f098f9e60f03cdd6f78aba5aa248ec5889485 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 22 Jan 2024 21:29:47 +0100 Subject: wallet-core: implement and test balance reporting with scope info --- packages/taler-wallet-core/src/db.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'packages/taler-wallet-core/src/db.ts') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index ceca24c82..149d73abc 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -30,6 +30,8 @@ import { import { AbsoluteTime, AgeCommitmentProof, + AmountJson, + AmountLike, AmountString, Amounts, AttentionInfo, @@ -1003,6 +1005,13 @@ export interface RefreshReasonDetails { proposalId?: string; } +export interface RefreshGroupPerExchangeInfo { + /** + * (Expected) output once the refresh group succeeded. + */ + outputEffective: AmountString; +} + /** * Group of refresh operations. The refreshed coins do not * have to belong to the same exchange, but must have the same @@ -1038,6 +1047,8 @@ export interface RefreshGroupRecord { expectedOutputPerCoin: AmountString[]; + infoPerExchange?: Record; + /** * Flag for each coin whether refreshing finished. * If a coin can't be refreshed (remaining value too small), @@ -1717,6 +1728,14 @@ export interface DepositTrackingInfo { exchangePub: string; } +export interface DepositInfoPerExchange { + /** + * Expected effective amount that will be deposited + * from coins of this exchange. + */ + amountEffective: AmountJson; +} + /** * Group of deposits made by the wallet. */ @@ -1768,6 +1787,8 @@ export interface DepositGroupRecord { statusPerCoin: DepositElementStatus[]; + infoPerExchange?: Record; + /** * When the deposit transaction was aborted and * refreshes were tried, we create a refresh -- cgit v1.2.3