diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-16 16:59:09 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-16 17:00:46 +0100 |
commit | c2ee8fd9ab6754275d7423152681236a46cf36a9 (patch) | |
tree | c7306f6575f89e3b66226fdaf7af342b0dc973c2 /src/wallet.ts | |
parent | 35a7b76a7d935dc2c749fd39ac80c6af1096b795 (diff) |
cleanup, avoid some circular deps
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 8decbc00a..1ea8c2fd2 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -30,7 +30,6 @@ import { AmountJson } from "./util/amounts"; import * as Amounts from "./util/amounts"; import { - acceptWithdrawal, getWithdrawDetailsForUri, getExchangeWithdrawalInfo, } from "./operations/withdraw"; @@ -82,7 +81,7 @@ import { getExchangePaytoUri, acceptExchangeTermsOfService, } from "./operations/exchanges"; -import { processReserve } from "./operations/reserves"; +import { processReserve, createTalerWithdrawReserve } from "./operations/reserves"; import { InternalWalletState } from "./operations/state"; import { createReserve, confirmReserve } from "./operations/reserves"; @@ -111,15 +110,6 @@ import { applyRefund, } from "./operations/refund"; -/** - * Wallet protocol version spoken with the exchange - * and merchant. - * - * Uses libtool's current:revision:age versioning. - */ -export const WALLET_PROTOCOL_VERSION = "3:0:0"; - -export const WALLET_CACHE_BREAKER_CLIENT_VERSION = "3"; const builtinCurrencies: CurrencyRecord[] = [ { @@ -690,7 +680,7 @@ export class Wallet { selectedExchange: string, ): Promise<AcceptWithdrawalResponse> { try { - return acceptWithdrawal(this.ws, talerWithdrawUri, selectedExchange); + return createTalerWithdrawReserve(this.ws, talerWithdrawUri, selectedExchange); } finally { this.latch.trigger(); } |