From 143a4fe4ac5b8724cf6e13a704e88daa99dd4202 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 11 Jan 2023 17:12:08 +0100 Subject: wallet-core: refresh when aborting payments --- packages/taler-wallet-core/src/db.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (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 f3ef3aea5..7f114df78 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -848,6 +848,13 @@ export enum RefreshOperationStatus { FinishedWithError = 51 /* DORMANT_START + 1 */, } +/** + * Additional information about the reason of a refresh. + */ +export interface RefreshReasonDetails { + proposalId?: string; +} + /** * Group of refresh operations. The refreshed coins do not * have to belong to the same exchange, but must have the same @@ -880,6 +887,11 @@ export interface RefreshGroupRecord { */ reason: RefreshReason; + /** + * Extra information depending on the reason. + */ + reasonDetails?: RefreshReasonDetails; + oldCoinPubs: string[]; // FIXME: Should this go into a separate @@ -2006,7 +2018,7 @@ export const WalletStoresV1 = { ), }, ), - exchangeSignkeys: describeStore( + exchangeSignKeys: describeStore( "exchangeSignKeys", describeContents({ keyPath: ["exchangeDetailsRowId", "signkeyPub"], -- cgit v1.2.3