diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 88389fd99..dd07bdebc 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -92,10 +92,13 @@ import { } from "@gnu-taler/taler-util"; import { InternalWalletState } from "../internal-wallet-state.js"; import { + OperationAttemptResult, + OperationAttemptResultType, + TaskIdentifiers, + constructTaskIdentifier, makeCoinAvailable, makeExchangeListItem, runLongpollAsync, - runOperationWithErrorReporting, } from "../operations/common.js"; import { HttpRequestLibrary, @@ -115,12 +118,6 @@ import { GetReadWriteAccess, } from "../util/query.js"; import { - OperationAttemptResult, - OperationAttemptResultType, - TaskIdentifiers, - constructTaskIdentifier, -} from "../util/retries.js"; -import { WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, } from "../versions.js"; @@ -1225,10 +1222,6 @@ async function queryReserve( result.talerErrorResponse.code === TalerErrorCode.EXCHANGE_RESERVES_STATUS_UNKNOWN ) { - ws.notify({ - type: NotificationType.ReserveNotYetFound, - reservePub, - }); return { ready: false }; } else { throwUnexpectedRequestError(resp, result.talerErrorResponse); @@ -1258,12 +1251,6 @@ async function queryReserve( notifyTransition(ws, transactionId, transitionResult); - // FIXME: This notification is deprecated with DD37 - ws.notify({ - type: NotificationType.WithdrawalGroupReserveReady, - transactionId, - }); - return { ready: true }; } @@ -2053,8 +2040,6 @@ async function registerReserveWithBank( }); notifyTransition(ws, transactionId, transitionInfo); - // FIXME: This notification is deprecated with DD37 - ws.notify({ type: NotificationType.ReserveRegisteredWithBank }); } interface BankStatusResult { @@ -2176,15 +2161,6 @@ async function processReserveBankStatus( const now = AbsoluteTime.toPreciseTimestamp(AbsoluteTime.now()); r.wgInfo.bankInfo.timestampBankConfirmed = now; r.status = WithdrawalGroupStatus.PendingQueryingStatus; - // FIXME: Notification is deprecated with DD37. - const transactionId = constructTransactionIdentifier({ - tag: TransactionType.Withdrawal, - withdrawalGroupId: r.withdrawalGroupId, - }); - ws.notify({ - type: NotificationType.WithdrawalGroupBankConfirmed, - transactionId, - }); } else { logger.info("withdrawal: transfer not yet confirmed by bank"); r.wgInfo.bankInfo.confirmUrl = status.confirm_transfer_url; |