diff options
author | Florian Dold <florian@dold.me> | 2022-10-05 12:52:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-05 12:52:49 +0200 |
commit | dd14e67c70cd7b5b6891295759cb08aa2f94f180 (patch) | |
tree | 296b07938b676d21ba9f75196cae621e292fc714 /packages/taler-wallet-core/src/wallet-api-types.ts | |
parent | 4d232fd56510ae69b76fef4f4ecade1e0d4b230d (diff) | |
download | wallet-core-dd14e67c70cd7b5b6891295759cb08aa2f94f180.tar.xz |
wallet-core: improve crypto worker code duplication
Also add new testCrypto call for later testing
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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", @@ -525,6 +526,15 @@ export type RunIntegrationTestOp = { }; /** + * 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; |