aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-12 21:19:09 +0200
committerFlorian Dold <florian@dold.me>2022-10-12 21:20:22 +0200
commit3da1e82a245851c384c22293c928fcef1c4c2f34 (patch)
tree27de90b822f2d8047524659fd8a5084d26ef65bc /packages/taler-wallet-core/src/wallet.ts
parent8bfa77200e711718e24c72ee84a28fa443c61786 (diff)
downloadwallet-core-3da1e82a245851c384c22293c928fcef1c4c2f34.tar.xz
wallet-core: skeleton for dev-experiments
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 357dd586a..e25b4bd95 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -90,6 +90,7 @@ import {
parsePaytoUri,
RefreshReason,
TalerErrorCode,
+ codecForApplyDevExperiment,
URL,
WalletCoreVersion,
WalletNotification,
@@ -109,6 +110,7 @@ import {
importDb,
WalletStoresV1,
} from "./db.js";
+import { applyDevExperiment } from "./dev-experiments.js";
import { getErrorDetailFromException, TalerError } from "./errors.js";
import {
ActiveLongpollInfo,
@@ -1325,6 +1327,11 @@ async function dispatchRequestInternal(
const req = codecForAcceptPeerPullPaymentRequest().decode(payload);
return await acceptPeerPullPayment(ws, req);
}
+ case "applyDevExperiment": {
+ const req = codecForApplyDevExperiment().decode(payload);
+ await applyDevExperiment(ws, req.devExperimentUri);
+ return {};
+ }
case "getVersion": {
const version: WalletCoreVersion = {
hash: GIT_HASH,