aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-03-03 21:20:05 +0100
committerFlorian Dold <florian@dold.me>2021-03-03 21:20:05 +0100
commit1a0610f222f841237f9940a3a3a55635eec7d324 (patch)
treeb80c67be371a006080cd26b2d61f26cd3aa77697 /packages/taler-wallet-core
parent186a38250ff4a11f88c8956db4da574f08e741dc (diff)
WIP: wallet backup integration test
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/types/backupTypes.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/types/backupTypes.ts b/packages/taler-wallet-core/src/types/backupTypes.ts
index 5e4844b51..d4b1625f6 100644
--- a/packages/taler-wallet-core/src/types/backupTypes.ts
+++ b/packages/taler-wallet-core/src/types/backupTypes.ts
@@ -189,7 +189,7 @@ export interface WalletBackupContentV1 {
/**
* Clock when the purchase was deleted
*/
- clock_deleted: number;
+ clock_deleted: ClockStamp;
/**
* Proposal ID identifying the purchase.
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 5aa951d5f..8f9999cc1 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1159,6 +1159,10 @@ export class Wallet {
await runBackupCycle(this.ws);
return {};
}
+ case "getBackupInfo": {
+ const resp = await getBackupInfo(this.ws);
+ return resp;
+ }
case "createDepositGroup": {
const req = codecForCreateDepositGroupRequest().decode(payload);
return await createDepositGroup(this.ws, req);