From b1500241f7672c8f73047014c55ff723595c3d13 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 May 2021 15:26:15 +0200 Subject: tombstones --- packages/taler-wallet-core/src/db.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/taler-wallet-core/src') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 946e71e10..7a7c36561 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1695,6 +1695,13 @@ export interface GhostDepositGroupRecord { }[]; } +export interface TombstoneRecord { + /** + * Tombstone ID, with the syntax ":". + */ + id: string; +} + class ExchangesStore extends Store<"exchanges", ExchangeRecord> { constructor() { super("exchanges", { keyPath: "baseUrl" }); @@ -1877,6 +1884,12 @@ class DepositGroupsStore extends Store<"depositGroups", DepositGroupRecord> { } } +class TombstonesStore extends Store<"tombstones", TombstoneRecord> { + constructor() { + super("tombstones", { keyPath: "id" }); + } +} + /** * The stores and indices for the wallet database. */ @@ -1904,6 +1917,7 @@ export const Stores = { bankWithdrawUris: new BankWithdrawUrisStore(), backupProviders: new BackupProvidersStore(), depositGroups: new DepositGroupsStore(), + tombstones: new TombstonesStore(), ghostDepositGroups: new Store<"ghostDepositGroups", GhostDepositGroupRecord>( "ghostDepositGroups", { -- cgit v1.2.3