diff options
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index a0613fd39..b0605cb1d 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -151,7 +151,7 @@ export const CURRENT_DB_CONFIG_KEY = "currentMainDbName"; * backwards-compatible way or object stores and indices * are added. */ -export const WALLET_DB_MINOR_VERSION = 4; +export const WALLET_DB_MINOR_VERSION = 5; declare const symDbProtocolTimestamp: unique symbol; @@ -996,14 +996,6 @@ export enum DepositElementStatus { RefundFailed = 0x0501_0000, } -/** - * Additional information about the reason of a refresh. - */ -export interface RefreshReasonDetails { - originatingTransactionId?: string; - proposalId?: string; -} - export interface RefreshGroupPerExchangeInfo { /** * (Expected) output once the refresh group succeeded. @@ -1035,10 +1027,7 @@ export interface RefreshGroupRecord { */ reason: RefreshReason; - /** - * Extra information depending on the reason. - */ - reasonDetails?: RefreshReasonDetails; + originatingTransactionId?: string; oldCoinPubs: string[]; @@ -2461,6 +2450,13 @@ export const WalletStoresV1 = { }), { byStatus: describeIndex("byStatus", "operationStatus"), + byOriginatingTransactionId: describeIndex( + "byOriginatingTransactionId", + "originatingTransactionId", + { + versionAdded: 5, + }, + ), }, ), refreshSessions: describeStore( |