diff options
author | Florian Dold <florian@dold.me> | 2023-01-11 17:12:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-11 17:14:49 +0100 |
commit | 143a4fe4ac5b8724cf6e13a704e88daa99dd4202 (patch) | |
tree | 07b2fe6d993ae46838bc4072db8eba609bbb1801 /packages/taler-wallet-core/src/db.ts | |
parent | 5fc0cb7927e7a81a80129f6165b2027e72b89d33 (diff) | |
download | wallet-core-143a4fe4ac5b8724cf6e13a704e88daa99dd4202.tar.xz |
wallet-core: refresh when aborting payments
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 14 |
1 files changed, 13 insertions, 1 deletions
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 @@ -849,6 +849,13 @@ export enum RefreshOperationStatus { } /** + * 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 * currency. @@ -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<ExchangeSignkeysRecord>({ keyPath: ["exchangeDetailsRowId", "signkeyPub"], |