diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-25 19:11:20 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-25 19:11:20 +0100 |
commit | adebfab94e76ee5d34a4f22d15fc085daef9ae00 (patch) | |
tree | 2dd0f233661fc32d2e5c2ee83750b3616d421359 /src/crypto/workers/cryptoApi.ts | |
parent | 54f7999c63292ca63f5f584c49bdef0b55627d71 (diff) | |
download | wallet-core-adebfab94e76ee5d34a4f22d15fc085daef9ae00.tar.xz |
fix and simplify coin selection
Diffstat (limited to 'src/crypto/workers/cryptoApi.ts')
-rw-r--r-- | src/crypto/workers/cryptoApi.ts | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/crypto/workers/cryptoApi.ts b/src/crypto/workers/cryptoApi.ts index 1c54d286a..489d56f5c 100644 --- a/src/crypto/workers/cryptoApi.ts +++ b/src/crypto/workers/cryptoApi.ts @@ -35,14 +35,13 @@ import { import { CryptoWorker } from "./cryptoWorker"; -import { ContractTerms, PaybackRequest } from "../../types/talerTypes"; +import { ContractTerms, PaybackRequest, CoinDepositPermission } from "../../types/talerTypes"; import { BenchmarkResult, - CoinWithDenom, - PaySigInfo, PlanchetCreationResult, PlanchetCreationRequest, + DepositInfo, } from "../../types/walletTypes"; import * as timer from "../../util/timer"; @@ -384,19 +383,13 @@ export class CryptoApi { ); } - signDeposit( - contractTermsRaw: string, - contractData: WalletContractData, - cds: CoinWithDenom[], - totalAmount: AmountJson, - ): Promise<PaySigInfo> { - return this.doRpc<PaySigInfo>( - "signDeposit", + signDepositPermission( + depositInfo: DepositInfo + ): Promise<CoinDepositPermission> { + return this.doRpc<CoinDepositPermission>( + "signDepositPermission", 3, - contractTermsRaw, - contractData, - cds, - totalAmount, + depositInfo ); } |