commit 95528ff732e0fda0ad643b7ec52b7e16d497ece3
parent 2571dbcedd4841da0184c9b69acf584a03490fdd
Author: Florian Dold <florian@dold.me>
Date: Mon, 23 Jun 2025 19:21:11 +0200
wallet-core: migrations for BFH and GLS
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
@@ -2920,10 +2920,18 @@ export class InternalWalletState {
this.cryptoDispatcher = new CryptoDispatcher(cryptoWorkerFactory);
this.cryptoApi = this.cryptoDispatcher.cryptoApi;
this.timerGroup = new TimerGroup(timer);
- // Migration record used for testing.
+ // Migration record used for testing with sandcastle or local deployment.
this.exchangeMigrationPlan.set("http://exchange.taler.localhost:4321/", {
newExchangeBaseUrl: "http://exchange.taler2.localhost:4321/",
});
+ // Prod migration (BFH)
+ this.exchangeMigrationPlan.set("https://exchange.chf.taler.net/", {
+ newExchangeBaseUrl: "https://exchange.taler.ti.bfh.ch/",
+ });
+ // Prod migration (GLS)
+ this.exchangeMigrationPlan.set("https://exchange.glstest.taler.net/", {
+ newExchangeBaseUrl: "https://exchange.test.taler.gls.de/",
+ });
}
async ensureWalletDbOpen(): Promise<void> {