aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-23 19:05:46 +0200
committerFlorian Dold <florian@dold.me>2022-10-23 19:05:54 +0200
commitd87f3c242c59fa347aa13d1c2e398638e09ed42f (patch)
treec84e2eff8ec99de442c843f5126a0f276cecf3be /packages/taler-wallet-core
parent1ab63a1840a516ef5f4655e6c08e62c01fd05949 (diff)
downloadwallet-core-d87f3c242c59fa347aa13d1c2e398638e09ed42f.tar.xz
taler-wallet-embedded: tweak init response, rollup bundling, add test
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 584129c9c..de7f6f42c 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -84,6 +84,7 @@ import {
ExchangeTosStatusDetails,
FeeDescription,
GetExchangeTosResult,
+ InitResponse,
j2s,
KnownBankAccounts,
KnownBankAccountsInfo,
@@ -415,6 +416,7 @@ async function runTaskLoop(
ws.notify({
type: NotificationType.WaitingForRetry,
numGivingLiveness,
+ numDue,
numPending: pending.pendingOperations.length,
});
// Wait until either the timeout, or we are notified (via the latch)
@@ -434,6 +436,7 @@ async function runTaskLoop(
});
ws.notify({
type: NotificationType.PendingOperationProcessed,
+ id: p.id,
});
}
}
@@ -987,7 +990,10 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
await fillDefaults(ws);
}
await maybeInitDevMode(ws);
- return {};
+ const resp: InitResponse = {
+ versionInfo: getVersion(ws),
+ };
+ return resp;
}
case WalletApiOperation.WithdrawTestkudos: {
await withdrawTestBalance(ws, {