summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-12 15:26:15 +0200
committerFlorian Dold <florian@dold.me>2021-05-12 15:26:15 +0200
commitb1500241f7672c8f73047014c55ff723595c3d13 (patch)
tree24e3adc1593385a8059eee2a27431f0b1cca2b3d /packages/taler-wallet-core/src
parent4fdcaab6325289fd8525fc9e63c8c86b07131376 (diff)
downloadwallet-core-b1500241f7672c8f73047014c55ff723595c3d13.tar.gz
wallet-core-b1500241f7672c8f73047014c55ff723595c3d13.tar.bz2
wallet-core-b1500241f7672c8f73047014c55ff723595c3d13.zip
tombstones
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/db.ts14
1 files changed, 14 insertions, 0 deletions
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 "<type>:<key>".
+ */
+ 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",
{