aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-08 16:40:21 +0200
committerFlorian Dold <florian@dold.me>2024-04-08 16:40:25 +0200
commit4fda640cbb68a6eb077b8313eb93e2a65266eded (patch)
treef1094fe879d6c1b9b1f4f299fcb5ed494afc7509
parent0aeb79b84d9347ba9642d0e2dccf1b20927b45e0 (diff)
downloadwallet-core-4fda640cbb68a6eb077b8313eb93e2a65266eded.tar.gz
wallet-core-4fda640cbb68a6eb077b8313eb93e2a65266eded.tar.bz2
wallet-core-4fda640cbb68a6eb077b8313eb93e2a65266eded.zip
wallet-core: rename request to setWalletRunConfig
The old name was ambiguous, as the request does not refer to the persistent config of the wallet, but the ephemeral run-time configuration of the wallet-core instance.
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts8
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index 0fd0ffbd6..d7f34409f 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -154,7 +154,7 @@ import { PaymentBalanceDetails } from "./balance.js";
export enum WalletApiOperation {
InitWallet = "initWallet",
- SetConfig = "setConfig",
+ SetWalletRunConfig = "setWalletRunConfig",
WithdrawTestkudos = "withdrawTestkudos",
WithdrawTestBalance = "withdrawTestBalance",
PreparePayForUri = "preparePayForUri",
@@ -281,8 +281,8 @@ export type InitWalletOp = {
*
* Currently an alias for the initWallet request.
*/
-export type SetConfigOp = {
- op: WalletApiOperation.SetConfig;
+export type SetWalletRunConfigOp = {
+ op: WalletApiOperation.SetWalletRunConfig;
request: InitRequest;
response: InitResponse;
};
@@ -1160,7 +1160,7 @@ export type ForceRefreshOp = {
export type WalletOperations = {
[WalletApiOperation.InitWallet]: InitWalletOp;
- [WalletApiOperation.SetConfig]: SetConfigOp;
+ [WalletApiOperation.SetWalletRunConfig]: SetWalletRunConfigOp;
[WalletApiOperation.GetVersion]: GetVersionOp;
[WalletApiOperation.PreparePayForUri]: PreparePayForUriOp;
[WalletApiOperation.SharePayment]: SharePaymentOp;
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index b54204d64..fa78cf24b 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -688,7 +688,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
await recoverStoredBackup(wex, req);
return {};
}
- case WalletApiOperation.SetConfig:
+ case WalletApiOperation.SetWalletRunConfig:
case WalletApiOperation.InitWallet: {
const req = codecForInitRequest().decode(payload);