diff options
author | Florian Dold <florian@dold.me> | 2024-02-21 13:01:23 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-21 13:01:23 +0100 |
commit | 612b85c18fc17af412d08e075e1fddaa67aa7bf0 (patch) | |
tree | 2209cb052c94f70145d33271b7711e39728ad72b /packages/taler-wallet-core/src/withdraw.ts | |
parent | 06635c195816121ed7d90cf7bd3834850b674564 (diff) | |
download | wallet-core-612b85c18fc17af412d08e075e1fddaa67aa7bf0.tar.xz |
move helpers to util
Diffstat (limited to 'packages/taler-wallet-core/src/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/withdraw.ts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts index 391fbc9e2..2d9f5c35c 100644 --- a/packages/taler-wallet-core/src/withdraw.ts +++ b/packages/taler-wallet-core/src/withdraw.ts @@ -69,7 +69,10 @@ import { WithdrawUriInfoResponse, WithdrawalExchangeAccountDetails, addPaytoQueryParams, + assertUnreachable, canonicalizeBaseUrl, + checkDbInvariant, + checkLogicInvariant, codeForBankWithdrawalOperationPostResponse, codecForCashinConversionResponse, codecForConversionBankConfig, @@ -92,6 +95,10 @@ import { throwUnexpectedRequestError, } from "@gnu-taler/taler-util/http"; import { + selectForcedWithdrawalDenominations, + selectWithdrawalDenominations, +} from "./coinSelection.js"; +import { PendingTaskType, TaskId, TaskRunResult, @@ -120,6 +127,7 @@ import { WithdrawalRecordType, timestampPreciseToDb, } from "./db.js"; +import { isWithdrawableDenom } from "./denominations.js"; import { ReadyExchangeSummary, fetchFreshExchange, @@ -134,13 +142,6 @@ import { constructTransactionIdentifier, notifyTransition, } from "./transactions.js"; -import { assertUnreachable } from "./util/assertUnreachable.js"; -import { - selectForcedWithdrawalDenominations, - selectWithdrawalDenominations, -} from "./util/coinSelection.js"; -import { isWithdrawableDenom } from "./util/denominations.js"; -import { checkDbInvariant, checkLogicInvariant } from "./util/invariants.js"; import { WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, |