diff options
author | Florian Dold <florian@dold.me> | 2024-06-17 13:50:43 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-17 13:50:43 +0200 |
commit | abbab3b029002eb5d603af611db6f411daf5d490 (patch) | |
tree | c48a79a4dc28649ac274b3dafdbb849e3bf517b0 /packages/taler-wallet-core/src/db.ts | |
parent | 05535fdc226f39666ed0a692871f54dea904af7b (diff) | |
download | wallet-core-abbab3b029002eb5d603af611db6f411daf5d490.tar.xz |
wallet-core: coin history
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 9 |
1 files changed, 7 insertions, 2 deletions
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 { |