From dd14e67c70cd7b5b6891295759cb08aa2f94f180 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 5 Oct 2022 12:52:49 +0200 Subject: wallet-core: improve crypto worker code duplication Also add new testCrypto call for later testing --- packages/taler-wallet-core/src/wallet-api-types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts') diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index de955e5c7..2860a6972 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -92,6 +92,7 @@ export enum WalletApiOperation { WithdrawTestBalance = "withdrawTestBalance", PreparePayForUri = "preparePayForUri", RunIntegrationTest = "runIntegrationTest", + CryptoTest = "cryptoTest", TestPay = "testPay", AddExchange = "addExchange", GetTransactions = "getTransactions", @@ -524,6 +525,15 @@ export type RunIntegrationTestOp = { response: {}; }; +/** + * Test crypto worker. + */ +export type CryptoTestOp = { + op: WalletApiOperation.CryptoTest; + request: {}; + response: any; +}; + /** * Make withdrawal on a test deployment of the exchange * and merchant. @@ -639,6 +649,7 @@ export type WalletOperations = { [WalletApiOperation.AddBackupProvider]: AddBackupProviderOp; [WalletApiOperation.GetBackupInfo]: GetBackupInfoOp; [WalletApiOperation.RunIntegrationTest]: RunIntegrationTestOp; + [WalletApiOperation.CryptoTest]: CryptoTestOp; [WalletApiOperation.WithdrawTestBalance]: WithdrawTestBalanceOp; [WalletApiOperation.TestPay]: TestPayOp; [WalletApiOperation.ExportDb]: ExportDbOp; -- cgit v1.2.3