diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-28 14:22:35 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-28 14:22:35 +0530 |
commit | 4365cd6401713b2e207d8c032c0558487e860154 (patch) | |
tree | f66b4bc5aa9dd7e92b72546e0b2fe79c18ed6573 /src/wallet.ts | |
parent | 472307a607b046e32f50b05a8be44c47c4b153d4 (diff) | |
download | wallet-core-4365cd6401713b2e207d8c032c0558487e860154.tar.xz |
towards the new withdrawal API (temporarily breaks WebExtension wallet)
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index c47acbace..2abd6c0c8 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -29,8 +29,8 @@ import { Database } from "./util/query"; import { Amounts, AmountJson } from "./util/amounts"; import { - getWithdrawDetailsForUri, getExchangeWithdrawalInfo, + getWithdrawalDetailsForUri, } from "./operations/withdraw"; import { @@ -53,7 +53,7 @@ import { CoinSourceType, RefundState, } from "./types/dbTypes"; -import { CoinDumpJson } from "./types/talerTypes"; +import { CoinDumpJson, WithdrawUriInfoResponse } from "./types/talerTypes"; import { BenchmarkResult, ConfirmPayResult, @@ -62,7 +62,6 @@ import { TipStatus, WalletBalance, PreparePayResult, - WithdrawalDetailsResponse, AcceptWithdrawalResponse, PurchaseDetails, RefreshReason, @@ -479,15 +478,8 @@ export class Wallet { return getExchangeTrust(this.ws, exchangeInfo); } - async getWithdrawDetailsForUri( - talerWithdrawUri: string, - maybeSelectedExchange?: string, - ): Promise<WithdrawalDetailsResponse> { - return getWithdrawDetailsForUri( - this.ws, - talerWithdrawUri, - maybeSelectedExchange, - ); + async getWithdrawalDetailsForUri(talerWithdrawUri: string): Promise<WithdrawUriInfoResponse> { + return getWithdrawalDetailsForUri(this.ws, talerWithdrawUri); } /** |