aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/harness
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-10 17:31:01 +0100
committerFlorian Dold <florian@dold.me>2023-01-10 17:31:36 +0100
commita82d8fab696d3fca24c2f1c48a1646107e38cef8 (patch)
treecb493f6072ec4a761df214db920d709629a1eee1 /packages/taler-harness/src/harness
parent688518ec7311ea0dc68e1cce6d363a00609ef9f8 (diff)
downloadwallet-core-a82d8fab696d3fca24c2f1c48a1646107e38cef8.tar.xz
wallet-core: KYC mvp
Only hard withdrawal KYC is supporte so far, and no long-polling is done yet.
Diffstat (limited to 'packages/taler-harness/src/harness')
-rw-r--r--packages/taler-harness/src/harness/harness.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts
index a9298637f..5b72cbc06 100644
--- a/packages/taler-harness/src/harness/harness.ts
+++ b/packages/taler-harness/src/harness/harness.ts
@@ -1081,6 +1081,17 @@ export class ExchangeService implements ExchangeServiceInterface {
return this.exchangeConfig.httpPort;
}
+ /**
+ * Run a function that modifies the existing exchange configuration.
+ * The modified exchange configuration will then be written to the
+ * file system.
+ */
+ async modifyConfig(f: (config: Configuration) => Promise<void>): Promise<void> {
+ const config = Configuration.load(this.configFilename);
+ await f(config);
+ config.write(this.configFilename);
+ }
+
async addBankAccount(
localName: string,
exchangeBankAccount: HarnessExchangeBankAccount,