From a82d8fab696d3fca24c2f1c48a1646107e38cef8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 10 Jan 2023 17:31:01 +0100 Subject: wallet-core: KYC mvp Only hard withdrawal KYC is supporte so far, and no long-polling is done yet. --- packages/taler-harness/src/harness/harness.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/taler-harness/src/harness/harness.ts') 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): Promise { + const config = Configuration.load(this.configFilename); + await f(config); + config.write(this.configFilename); + } + async addBankAccount( localName: string, exchangeBankAccount: HarnessExchangeBankAccount, -- cgit v1.2.3