From abbab3b029002eb5d603af611db6f411daf5d490 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 17 Jun 2024 13:50:43 +0200 Subject: wallet-core: coin history --- packages/taler-wallet-core/src/db.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (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 7c2380e2d..3438cbdc7 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -905,7 +905,12 @@ export interface CoinRecord { ageCommitmentProof: AgeCommitmentProof | undefined; } -export type WalletCoinHistoryItem = +/** + * History item for a coin. + * + * DB-specific format, + */ +export type DbWalletCoinHistoryItem = | { type: "withdraw"; transactionId: TransactionIdStr; @@ -944,7 +949,7 @@ export interface CoinHistoryRecord { * We store this as an array in the object store, as the coin history * is pretty much always very small. */ - history: WalletCoinHistoryItem[]; + history: DbWalletCoinHistoryItem[]; } export enum RefreshCoinStatus { -- cgit v1.2.3